buzz44 Posted May 9, 2005 Share Posted May 9, 2005 I have been fiddling with the below code and I can't seem to get the button to appear on top of it. To get it to appear you have to move the mouse over it so it 'refreshs' but I really can't accept that. Can any one help please? I have tried different styles/ExStyles. I have tried creating the buttins before and after the label, moving the setbkcolor around and I can't do it. This is for a much larger script which will have 3 buttons like below. It that script 1 of the buttons appears but again for the other buttons you have to hover over them.#include <GUIConstants.au3> GUICreate("My GUI") ; will create a dialog box that when displayed is centered $g = GUICtrlCreateButton ("", 50, 35, 10,10) ; first cell 50 width GUICtrlCreateLabel ("Done", 10, 30, 50, -1,-1, $WS_EX_TRANSPARENT ) ; first cell 50 width GUICtrlSetBkColor(-1,0xE3500B) GUICTRLSetState ($g, $GUI_SHOW) ; will display an empty dialog box GUISetState () ; will display an empty dialog box While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend qq Link to comment Share on other sites More sharing options...
GaryFrost Posted May 9, 2005 Share Posted May 9, 2005 (edited) Couldn't get it to work correctly using transparent. #include <GUIConstants.au3> GUICreate("My GUI"); will create a dialog box that when displayed is centered $label = GUICtrlCreateLabel ("Done", 10, 30, 50) ; first cell 50 width GUICtrlSetBkColor(-1,0xE3500B) $g = GUICtrlCreateButton ("", 50, 35, 10,10) ; first cell 50 width GUICTRLSetState ($label, $GUI_DISABLE) ; will display an empty dialog box GUISetState () ; will display an empty dialog box While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Edited May 9, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
buzz44 Posted May 9, 2005 Author Share Posted May 9, 2005 It half works lol, I have the text of the label Black, and when its disables it turns grey with some off pigemnt stuff . I'm continouing to work at it. Thanks. qq Link to comment Share on other sites More sharing options...
GaryFrost Posted May 9, 2005 Share Posted May 9, 2005 (edited) here's somthing you might look at doing: #include <GUIConstants.au3> GUICreate("My GUI"); will create a dialog box that when displayed is centered $graphic = GuiCtrlCreateGraphic(10, 10, 60,20) GUICtrlSetBkColor(-1,0xE3500B) ;GUICtrlSetColor(-1,0) $label = GUICtrlCreateLabel ("Done", 12, 12, 40) ; first cell 40 width $g = GUICtrlCreateButton ("", 50, 15, 10,10) GUICTRLSetState ($graphic, $GUI_DISABLE) GUISetState () ; will display an empty dialog box While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Edited May 9, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
buzz44 Posted May 9, 2005 Author Share Posted May 9, 2005 You read my mind, I just done that and its working fine with 3 buttons, using $BS_BITMAP. There seems to be a 'bug'? maybe with it. Or a small problem. As I stated in my first post I can get one button to work, but when I tried more, only the first button you create will appear. I'll try make up an example but its late so it'll have to wat till tomorrow. Thanks again. qq 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