Jump to content

transparant background problem whit label


hoppy
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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)

NEWHeader1.png

Link to comment
Share on other sites

@ 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?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...