Jump to content
Sign in to follow this  
dzony91

bugged label :(

Recommended Posts

dzony91

Why is this label bugged?

i am new here :/

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Pic_1 = GuiCtrlCreatePic("C:\WINDOWS\Zapotec.bmp", 10, 10, 370, 290)
$Label_2 = GuiCtrlCreateLabel("Label2", 50, 190, 290, 70)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

Share this post


Link to post
Share on other sites
JustinReno

I don't see anything wrong.

Share this post


Link to post
Share on other sites
dzony91

there's a bug behind the label

Posted Image

i want it to be transparent behind the label !

Share this post


Link to post
Share on other sites
JustinReno

You can't. And it's not a bug.

Edited by JustinReno

Share this post


Link to post
Share on other sites
Valuater

GUICtrlCreateLabel ("my label", 10,20)

GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT )

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Valuater

Also...

$Pic_1 = GuiCtrlCreatePic("C:\WINDOWS\Zapotec.bmp", 10, 10, 370, 290)

GUICtrlSetState( -1, $GUI_DISABLE)

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
JustinReno

Oh, I didn't know that. :P

Share this post


Link to post
Share on other sites
dzony91

thank you :P

Share this post


Link to post
Share on other sites
Valuater

thank you :P

Welcome!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
dzony91

1 more question:\ i added 1 icon and its bugged like label... and i was added

GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT )

but not working , why?

$ic = GUICtrlCreateIcon("shell32.dll", -5, 19, 19, 32, 32)
GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT )

Share this post


Link to post
Share on other sites
Generator

1 more question:\ i added 1 icon and its bugged like label... and i was added

GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT )

but not working , why?

$ic = GUICtrlCreateIcon("shell32.dll", -5, 19, 19, 32, 32)
GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT )
You can't use that for icon or picture.

Share this post


Link to post
Share on other sites
dzony91

what to use for icon???

Share this post


Link to post
Share on other sites
Generator

what to use for icon???

The point is AutoIt won't recongize the blank part of the icon and make it transparent, in my opinion there's no way you can do that unless you create a picture control instead.

Share this post


Link to post
Share on other sites
dzony91

I want this icon button but see :P

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
GUISetBkColor(0x000000)

$ic = GUICtrlCreateIcon("shell32.dll", -30, 105, 105, 16, 16)
GUICtrlSetState(-1,$GUI_DISABLE)
GUICtrlCreateButton("Icon button",100,100,100,30,$WS_CLIPSIBLINGS)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
   ;;;
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

Share this post


Link to post
Share on other sites
dzony91

Anyone? Is it bug in autoit or what (icon transparency) ?

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  

×