Jump to content

Button icon transparency


Madza91
 Share

Recommended Posts

Hi, i want to make icon in button something like this but without this litle bug :P

#include <GuiConstants.au3>

$Gui = GUICreate("button icon", 200, 100, -1, -1)
$ic = GUICtrlCreateIcon("shell32.dll", -30, 19, 19, 32, 32)
GUICtrlSetState(-1, $GUI_DISABLE)
$button = GUICtrlCreateButton("", 10, 10, 52, 70, $WS_CLIPSIBLINGS)
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd

Screenshot:

Posted Image

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

Maybe...

#include <GuiConstants.au3>

$Gui = GUICreate("button icon", 200, 100, -1, -1)
$button = GUICtrlCreateButton("", 10, 10, 52, 70, $BS_ICON );$WS_CLIPSIBLINGS)
GUICtrlSetImage($button,"shell32.dll", -30) 
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd

8)

NEWHeader1.png

Link to comment
Share on other sites

No no, i want nice button like in picture, no like $BS_ICON :/

is possible to make icon transparent and fix that ugly bug :|

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

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