Jump to content
Sign in to follow this  
adik2dmax666

[solved] About GUICtrlSetImage

Recommended Posts

adik2dmax666

I wonder why $Fav_Btn doesn't show any image but sometimes it does on other machines... :blink:

Im using 64 bit xp, there seems to be an issue with it...

Global $shell = "shell.dll"
    Global $Fav_Btn = GUICtrlCreateButton(" ",3,2,35,35)
    GUICtrlSetResizing(-1,BitOR($GUI_DOCKHEIGHT, $GUI_DOCKTOP))
    GUICtrlSetImage(-1,$shell,-247)
    GUICtrlSetTip(-1,$LANG_Toolbar_Favourites,$LANG_Toolbar_Favourites_Title)
    GUICtrlSetOnEvent(-1,"_Favourites")
    GUICtrlSetState($Fav_Btn,$GUI_ENABLE)

SOLVED: just need to add the EXSTYLE $BS_ICON

Global $Fav_Btn = GUICtrlCreateButton(" ",3,2,35,35, $BS_ICON)
Edited by adik2dmax666

First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. -George Carrette[sub]GD Keylogger Creator (never released)[/sub][sub]Garena Autojoin v3.0[/sub]

Share this post


Link to post
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
Sign in to follow this  

×