dzony91 Posted November 25, 2007 Share Posted November 25, 2007 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 --- Link to comment Share on other sites More sharing options...
JustinReno Posted November 25, 2007 Share Posted November 25, 2007 I don't see anything wrong. Link to comment Share on other sites More sharing options...
dzony91 Posted November 25, 2007 Author Share Posted November 25, 2007 there's a bug behind the labeli want it to be transparent behind the label ! Link to comment Share on other sites More sharing options...
JustinReno Posted November 25, 2007 Share Posted November 25, 2007 (edited) You can't. And it's not a bug. Edited November 25, 2007 by JustinReno Link to comment Share on other sites More sharing options...
Valuater Posted November 25, 2007 Share Posted November 25, 2007 GUICtrlCreateLabel ("my label", 10,20) GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT ) 8) Link to comment Share on other sites More sharing options...
Valuater Posted November 25, 2007 Share Posted November 25, 2007 (edited) Also... $Pic_1 = GuiCtrlCreatePic("C:\WINDOWS\Zapotec.bmp", 10, 10, 370, 290) GUICtrlSetState( -1, $GUI_DISABLE) 8) Edited November 25, 2007 by Valuater Link to comment Share on other sites More sharing options...
JustinReno Posted November 25, 2007 Share Posted November 25, 2007 Oh, I didn't know that. Link to comment Share on other sites More sharing options...
dzony91 Posted November 25, 2007 Author Share Posted November 25, 2007 thank you Link to comment Share on other sites More sharing options...
Valuater Posted November 25, 2007 Share Posted November 25, 2007 thank you Welcome!8) Link to comment Share on other sites More sharing options...
dzony91 Posted November 25, 2007 Author Share Posted November 25, 2007 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 ) Link to comment Share on other sites More sharing options...
Generator Posted November 25, 2007 Share Posted November 25, 2007 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. Link to comment Share on other sites More sharing options...
dzony91 Posted November 25, 2007 Author Share Posted November 25, 2007 what to use for icon??? Link to comment Share on other sites More sharing options...
Generator Posted November 25, 2007 Share Posted November 25, 2007 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. Link to comment Share on other sites More sharing options...
dzony91 Posted November 30, 2007 Author Share Posted November 30, 2007 I want this icon button but see #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 --- Link to comment Share on other sites More sharing options...
dzony91 Posted December 6, 2007 Author Share Posted December 6, 2007 Anyone? Is it bug in autoit or what (icon transparency) ? 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