Influx Posted December 27, 2008 Posted December 27, 2008 (edited) 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 December 27, 2008 by Influx
Influx Posted December 27, 2008 Author Posted December 27, 2008 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.
Nahuel Posted December 27, 2008 Posted December 27, 2008 Well... you can create a bmp pic with the style you like and then create a pic control the size of the bar.
Nahuel Posted December 27, 2008 Posted December 27, 2008 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
Influx Posted December 28, 2008 Author Posted December 28, 2008 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")
Valuater Posted December 28, 2008 Posted December 28, 2008 (edited) 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 December 28, 2008 by Valuater
Influx Posted December 28, 2008 Author Posted December 28, 2008 (edited) perfect... except my icon has grey behind it and the background is supposed to be transparent. Edited December 28, 2008 by Influx
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now