Sign in to follow this  
Followers 0
GeekS

MouseOver image/button

6 posts in this topic

#1 ·  Posted (edited)

$FormAmazon = GUICreate("Amazon", 633, 447, 285, 315, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER))
$Stats = GuiCtrlCreateButton("Your stats",351, 340, 104, 26, $BS_BITMAP)
GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_NewStats.bmp")

Whenever i have my mouse over $Stats i want it to change into GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_OldStats.bmp"), is there any chance of doing this, while still having the same button push-able?

Thanks in advance, Gnu / GeekS.

Edited by GeekS

Share this post


Link to post
Share on other sites



$FormAmazon = GUICreate("Amazon", 633, 447, 285, 315, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER))
$Stats = GuiCtrlCreateButton("Your stats",351, 340, 104, 26, $BS_BITMAP)
GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_NewStats.bmp")

Whenever i have my mouse over $Stats i want it to change into GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_OldStats.bmp"), is there any chance of doing this, while still having the same button push-able?

Thanks in advance, Gnu / GeekS.

Why you using a bitmap??

Anyway, yes there is. You need to use:

$CI = GUIGetCursorInfo()
If $CI[4] = $MYBUTTON thenoÝ÷ Ù.粶§X¤zØZ¶)íì!W¥¢@Ê-¢f¤z+g¢×åɯ*.綬y«Ú®&ëhuë^®h§{Z¶Ø^¬{¬¢÷««-)Ùh¢¶èºZºÚ"µÍÌÍÐÒHHÕRQÙ]ÝÛÜ[Ê
BY  ÌÍÐÒVÍHH   ÌÍÓVPUÓS    ÌÍÓÝ[ÝÙSÝ    ÉÝÈ  ÌÍÓVPUÓ[ÕRPÝÙ][XYÙJ ÌÍÓVPUÓTÈÈÊB ÌÍÓÝ[ÝÙSÝH   ÌÍÓVPUÓ[Y

=)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Why you using a bitmap??

Anyway, yes there is. You need to use:

Blabla

=)

Seems simple, however i'm having trouble inserting it into my script / what to insert on the $LastMouseOver etc.

#Region ### START Koda GUI section ### Form=
[color="#FF0000"]$FormAmazon = GUICreate("Amazon", 633, 447, 285, 315, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER))

$Stats = GuiCtrlCreateButton("Your stats",351, 340, 104, 26, $BS_BITMAP)
GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_NewStats.bmp")[/color]
$Breakpoint = GuiCtrlCreateButton("Amazon breakpoints", 25, 222, 160, 32, $BS_BITMAP)
GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_Breakpoints.bmp")
$Startattributes = GuiCtrlCreateButton("Start attributes", 25, 264, 160, 32, $BS_BITMAP)
GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_SAttributes.bmp")
$Gain = GuiCtrlCreateButton ("Attributes gain", 25, 306, 160, 32, $BS_BITMAP)
GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_PerLvl.bmp")
$Back = GuiCtrlCreateButton ("Back", 565, 41, 28, 28, $BS_BITMAP)
GUICtrlSetImage (-1, @WorkingDir&"\Images\Button_Back.bmp")

GUICtrlCreatePic(@WorkingDir & "\Images\AmazonBG.bmp", 0, 0, 633, 447)

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

And why shouldnt i be using bitmap? :P

Edited by GeekS

Share this post


Link to post
Share on other sites

As you might have seen on my script i've been using a bit of EzSkin already, but i'm having trouble inserting my customized image on the rollover instead of the images on EzSkin's image buttons.

There is an updated Button/Control Hover au3 script here, it allows for your own pic buttons. you will need three normal, hover, and pressed.

This is what you want...

http://www.autoitscript.com/forum/index.ph...st&p=514558

8)


NEWHeader1.png

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  
Followers 0