au3scr Posted December 18, 2007 Posted December 18, 2007 how to draw trasparent color? i made my own button with paint but it has white square. can some one help here?
au3scr Posted December 18, 2007 Author Posted December 18, 2007 here is picture How i can lose that white color?
DirtDBaK Posted December 18, 2007 Posted December 18, 2007 Umm I dont remember that I know that ICON files can have alpha chanels but icons only work in the menuitems, at least i think, the best way to fix up that prob is use the eyedroper, get the color and use the bucket to make the white the button color... You do know that wingdings 1,2, or 3 (one of them) has a Play symbol... [center][/center]
DirtDBaK Posted December 18, 2007 Posted December 18, 2007 Umm I dont remember that I know that ICON files can have alpha chanels but icons only work in the menuitems, at least i think, the best way to fix up that prob is use the eyedroper, get the color and use the bucket to make the white the button color... You do know that wingdings or webdings 1,2, or 3 (one of them) has a Play symbol... [center][/center]
ValeryVal Posted December 18, 2007 Posted December 18, 2007 This is a subject of old story The point of world view
au3scr Posted December 19, 2007 Author Posted December 19, 2007 But how can have button pictures from user32.dll transpatent background color? then is mus be abe to use my self made buttons as transparent
star2 Posted December 25, 2007 Posted December 25, 2007 (edited) I don't know if I'm missing something here? check my example #include <GuiConstants.au3> $Gui = GUICreate("test", 125, 160) ; ====== Buttons with big Icons =========== GUICtrlCreateButton("", 10, 10, 48, 48, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 250,1) GUICtrlCreateButton("", 68, 10, 48, 48, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 246,1) ; ===== Button with Small Icons =========== GUICtrlCreateButton("", 10, 70, 36, 36, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 250,0) GUICtrlCreateButton("", 10, 115, 36, 36, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 246,0) ; ========= Button with bitmap =========== GUICtrlCreateButton("", 68, 70, 48, 80, $BS_BITMAP) GUICtrlSetImage (-1, "001.bmp") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd001.bmp Edited December 25, 2007 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]
star2 Posted December 25, 2007 Posted December 25, 2007 #include <GuiConstants.au3> $Gui = GUICreate("test", 200, 180) $pic=GUICreate("", 200, 180, -1, -1,$WS_POPUP,BitOr($WS_EX_LAYERED,$WS_EX_MDICHILD),$Gui) ; ====== Buttons with big Icons =========== GUICtrlCreateButton("", 10, 10, 48, 48, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 250,1) GUICtrlCreateButton("", 68, 10, 48, 48, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 246,1) ; ===== Button with Small Icons =========== GUICtrlCreateButton("", 10, 70, 36, 36, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 250,0) GUICtrlCreateButton("", 10, 115, 36, 36, $BS_ICON) GUICtrlSetImage (-1, "shell32.dll" , 246,0) ; ========= Button with transparent bitmap =========== GUICtrlCreateButton("", 68, 70, 48, 80, $BS_BITMAP) GUICtrlSetImage (-1, "001.bmp") GUICtrlCreatePic("001.bmp",120,10,0,0) GUISetState(@SW_SHOW,$pic) GUISetState(@SW_SHOW,$gui) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd search the help file for ( GUICtrlCreatePic ) and read the transparency notes !!001.bmp [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]
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