Jump to content

two tone glossy GUI


Influx
 Share

Recommended Posts

ok i am making a OS shell, it works my creating multipule GUIs i have the start bar and start menu down.

However i want my start bar to have a two tone glossy look like the windows vista start bar(black bottom half, grey top half) (or at least thats hwo it apears they have done it to me if i look closley)

thanks in advance

Influx

(sorry to ask so many questions, but i will share the finished item with everyone here)

Edited by Influx
Link to comment
Share on other sites

the grey also apears to be gradient i am not sure but if anyone knows anymore about how they give it this effect please tell me. Also if anyone has a blank vista start button(just the blue circle) so i can put my own design on it.

Link to comment
Share on other sites

Example:

#include <WindowsConstants.au3>

$BarW = @DesktopWidth
$BarH = 30
$BarL = 0
$BarT = @DesktopHeight - $BarH
$PicPath = @ScriptDir & "\bar.bmp"


GUICreate("Bar",$BarW,$BarH,$BarL,$BarT,$WS_POPUP,$WS_EX_TOPMOST)
GUICtrlCreatePic($PicPath,0,0,$BarW,$BarH)
GUISetState()

Do
Until GUIGetMsg() = -3

Pic: bar.bmp

Link to comment
Share on other sites

ok ok. Tired it and it disabled all my controls(using on event mode)

also how do i set the background of my icon and text to transpaent?

thanks

start bar code:

guicreate("Start[CL:102939]", $width, 40, 0, $height-30, $WS_POPUP,BitOr($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST))
GUICtrlCreatePic(@ScriptDir&"/bar.bmp",0,0,$width, 40)
GUICtrlCreateIcon("start.ico", "start.ico", 5, -3, 40, 43)
GUICtrlSetOnEvent(-1, "_start")
$l1 = GUICtrlCreateLabel("00:00:00", $width-100, 10, 70)
GUICtrlSetOnEvent(-1, "_exit")
GUICtrlSetColor(-1, 0xffffff) 
;GUICtrlSetDefBkColor(0x000000)
;GUISetBkColor(0x000000)
GUISetState()
GUIRegisterMsg($WM_SYSCOMMAND, "WM_SYSCOMMAND")
Link to comment
Share on other sites

GUICreate("Start[CL:102939]", $width, 40, 0, $height - 30, $WS_POPUP, BitOR($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST))
GUICtrlCreatePic(@ScriptDir & "/bar.bmp", 0, 0, $width, 40)
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlCreateIcon("start.ico", "start.ico", 5, -3, 40, 43)
GUICtrlSetOnEvent(-1, "_start")
$l1 = GUICtrlCreateLabel("00:00:00", $width - 100, 10, 70)
GUICtrlSetOnEvent(-1, "_exit")
GUICtrlSetColor(-1, 0xffffff)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUISetState()

... not tested..

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...