TheOrignl Posted December 9, 2008 Share Posted December 9, 2008 I created a Progressbar after a Label using the $WS_EX_TRANSPARENT and $WS_EX_TOPMOST extended styles on the Label.$lbl_annc_path = GUICtrlCreateLabel($NOMED, $ANNC_LEFT+5, $ANNC_TOP+14+$PATH_OFFSET, $GROUP_LENGTH-10, 17, $SS_SUNKEN, _ BitOR($WS_EX_TRANSPARENT, $WS_EX_TOPMOST)) GUICtrlSetOnEvent($lbl_annc_path, "group_set") $annc_progbar = GUICtrlCreateProgress($ANNC_LEFT+5, $ANNC_TOP+14+$PATH_OFFSET, $GROUP_LENGTH-10, 17, $PBS_SMOOTH)That's not allowing the Progressbar to display through. Can any point out what I'm missing? Placing the creation of the Progressbar before the Label creation doesn't do the trick either. Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice! Link to comment Share on other sites More sharing options...
rasim Posted December 9, 2008 Share Posted December 9, 2008 TheOrignlThis?#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> Global $iProgress = 0 $hGUI = GUICreate("Test", 300, 200) GUICtrlCreateLabel("Progress bar demo", 10, 10, 280, 100, BitOR($SS_SUNKEN, $WS_CLIPSIBLINGS)) $ctlProgress = GUICtrlCreateProgress(50, 40, 200, 20) GUISetState(@SW_SHOW) AdlibEnable("_Progress") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd AdlibDisable() Func _Progress() $iProgress += 5 If $iProgress = 100 Then $iProgress = 0 GUICtrlSetData($ctlProgress, $iProgress) EndFunc ;==>_Progress Link to comment Share on other sites More sharing options...
TheOrignl Posted December 9, 2008 Author Share Posted December 9, 2008 (edited) TheOrignl This? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> Global $iProgress = 0 . . .Not exactly. I'm trying to display the Progressbar under the text in the Label. I'll look into the $WS_CLIPSIBLINGS style though. Thanks. Edited December 9, 2008 by TheOrignl Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice! Link to comment Share on other sites More sharing options...
Aceguy Posted December 9, 2008 Share Posted December 9, 2008 This #include <GUIConstants.au3> $Form1 = GUICreate("Form1", 625, 445, 193, 125) $Progress1 = GUICtrlCreateProgress(48, 88, 353, 65,Default) GUICtrlSetColor(-1, 0x00FF00) DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle(-1), "wstr", " ", "wstr", " ") GUICtrlSetStyle(-1, 1) $Label1 = GUICtrlCreateLabel("Label is on top", 80, 96, 116, 49) GUICtrlSetBkColor($Label1, $GUI_BKCOLOR_TRANSPARENT) GUISetState(@SW_SHOW) GUICtrlSetData($Progress1,0) for $ct=0 to 100 GUICtrlSetData($Progress1,$ct) GUICtrlSetData($Label1,"Label is on top") sleep(50) Next sleep(2000) Exit [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
TheOrignl Posted December 9, 2008 Author Share Posted December 9, 2008 (edited) This #include <GUIConstants.au3> $Form1 = GUICreate("Form1", 625, 445, 193, 125) $Progress1 = GUICtrlCreateProgress(48, 88, 353, 65,Default) GUICtrlSetColor(-1, 0x00FF00) DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", GUICtrlGetHandle(-1), "wstr", " ", "wstr", " ") GUICtrlSetStyle(-1, 1) $Label1 = GUICtrlCreateLabel("Label is on top", 80, 96, 116, 49) GUICtrlSetBkColor($Label1, $GUI_BKCOLOR_TRANSPARENT) GUISetState(@SW_SHOW) GUICtrlSetData($Progress1,0) for $ct=0 to 100 GUICtrlSetData($Progress1,$ct) GUICtrlSetData($Label1,"Label is on top") sleep(50) Next sleep(2000) ExitExactly. Thank you for the example. Also I was successful in pulling out the pieces I need for my particular implementation. Given the use of DllCall, could you point me to or tell me how to obtain reference on Dll parameters? Edited December 9, 2008 by TheOrignl Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice! Link to comment Share on other sites More sharing options...
wraithdu Posted December 9, 2008 Share Posted December 9, 2008 Search on MSDN -http://msdn.microsoft.com/en-us/default.aspx Link to comment Share on other sites More sharing options...
TheOrignl Posted December 9, 2008 Author Share Posted December 9, 2008 Search on MSDN -http://msdn.microsoft.com/en-us/default.aspxThanks. Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice! Link to comment Share on other sites More sharing options...
TheOrignl Posted December 10, 2008 Author Share Posted December 10, 2008 OK I'm a pain and a perfectionist. I want to make the color of the text in the Label the color of the GUI Forum. But I also would like to change the color according to the current Windows theme. Is there a way to retrieve the 'messagebox' color of Windows? Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice! Link to comment Share on other sites More sharing options...
Josbe Posted December 10, 2008 Share Posted December 10, 2008 OK I'm a pain and a perfectionist. I want to make the color of the text in the Label the color of the GUI Forum. But I also would like to change the color according to the current Windows theme. Is there a way to retrieve the 'messagebox' color of Windows?hmm... read about _WinAPI_GetSysColor() in the helpfile. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
TheOrignl Posted December 10, 2008 Author Share Posted December 10, 2008 hmm... read about _WinAPI_GetSysColor() in the helpfile.Ah Josbe you're good. It's as simple as GUICtrlSetColor($lbl_med_path, _WinAPI_GetSysColor($COLOR_3DFACE)). Thank you all for the responses and being a part of the Autoit Community. Managing the complexities of our daily lives is always our own responsibility; Allowing God to help us and accepting His guidance is our choice. The best choice! Link to comment Share on other sites More sharing options...
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