Jump to content

Recommended Posts

Posted (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 by Influx
Posted

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.

Posted

Well... you can create a bmp pic with the style you like and then create a pic control the size of the bar.

Posted

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

Posted

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")
Posted (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 by Valuater

NEWHeader1.png

Posted (edited)

perfect... except my icon has grey behind it and the background is supposed to be transparent.

Edited by Influx

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
×
×
  • Create New...