hoppy Posted December 30, 2006 Posted December 30, 2006 I'm trying to make a label with transparant background. GUICtrlCreateLabel("testlabel",320,105,80,14,-1,$GUI_BKCOLOR_TRANSPARENT ) makes the label completly transparant (label and background) and GUICtrlCreateLabel("testlabel",320,105,80,14) GuiCtrlSetbkColor(-1,$GUI_BKCOLOR_TRANSPARENT) has no effect it seems any idea what I'm forgetting? Thanks for your intrest.
NELyon Posted December 30, 2006 Posted December 30, 2006 Try something like this: $Label = GuictrlCreateLabel("testlabel", 320, 105, 80, 14) guiCtrlSetBkColor($Label, $GUI_BKCOLOR_TRANSPARENT)
hoppy Posted December 30, 2006 Author Posted December 30, 2006 Try something like this: $Label = GuictrlCreateLabel("testlabel", 320, 105, 80, 14) guiCtrlSetBkColor($Label, $GUI_BKCOLOR_TRANSPARENT)Sorry to say but has no effect. And it should be possible I think because the first try everthing got transparant. But thanks anyway for the effort.
Valuater Posted December 30, 2006 Posted December 30, 2006 here is an example of how it works #include <GUIConstants.au3> GUICreate("My GUI background color") ; will create a dialog box that when displayed is centered GUISetBkColor(0x00ff00) ; Green GUICtrlCreateTab(5, 5, 200, 300) GUICtrlCreateLabel ("my label #1", 10, 20, 100, 20) GUICtrlCreateLabel ("my label #2", 10, 50, 100, 20) GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend 8)
hoppy Posted December 30, 2006 Author Posted December 30, 2006 @ valuator That seems to work just fine. But the possition of the label I'm using, is on top of the border of a XskinGui. (Well known to you I should think and thanks for the marvelous job you did) But it doesn't seem to have the effect that I wanted there. Probably the background becomes the color of the main Gui and not the skin. I thought it would be possible because GUICtrlCreateLabel("testlabel",20,12,70,14,-1,$GUI_BKCOLOR_TRANSPARENT) gave me a complete tranparanty. At least I thougt that, most likely the label won't have been shown at all in stead of being transparant. I think I'm gonna have to try a diffrent design, or is there still some hope?
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