Sign in to follow this  
Followers 0
Influx

two tone glossy GUI

7 posts in this topic

#1 ·  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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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")

Share this post


Link to post
Share on other sites

#6 ·  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

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Edited by Influx

Share this post


Link to post
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
Sign in to follow this  
Followers 0