Jump to content

Recommended Posts

Posted

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 ---
Posted

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 )
Posted

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.
Posted

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.
Posted

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

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
×
×
  • Create New...