Jump to content

Button pictures


au3scr
 Share

Recommended Posts

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]

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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
WEnd

001.bmp

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

Link to comment
Share on other sites

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

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