Innovative Posted April 11, 2008 Posted April 11, 2008 Im creating a button using an image .. How do i set like if the mouse is on the image , the image will change to another one (which will be kinda pop up that display the mouse is on the button) How do i do it?
someone Posted April 11, 2008 Posted April 11, 2008 Does XSkin not work for you in this case? While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd
monoceres Posted April 11, 2008 Posted April 11, 2008 MsCreatoR has created a very nice UDF named GUICtrlSetOnHover()!Mouse Hover UDF Broken link? PM me and I'll send you the file!
Innovative Posted April 11, 2008 Author Posted April 11, 2008 I've read the file .. Its like , WTF , so complicated ? Any other ways?
Nahuel Posted April 11, 2008 Posted April 11, 2008 I've read the file .. Its like , WTF , so complicated ? Any other ways? Download this example: (If I'm not wrong, it's in one of those links they already sent you.)
monoceres Posted April 11, 2008 Posted April 11, 2008 Here's a quick example on how to use the GUICtrlSetOnHover() UDF: #include <GUIConstants.au3> #include "GUICtrlSetOnHover_UDF.au3" Opt("GUIOnEventMode",1) Global $inc, $state=False GUICreate("Test",160,50) $button=GUICtrlCreateButton("Number of times hovered: 0",10,10) GUICtrlSetOnHover($button, "hover", "endhover") GUISetOnEvent($GUI_EVENT_CLOSE,"close") GUISetState() while 1 Sleep(100) WEnd Func hover ($ctrlid) If Not $state Then $inc+=1 GUICtrlSetData($button,"Number of times hovered: "&$inc) $state=True EndIf EndFunc Func endhover ($ctrlid) $state=False EndFunc Func close () Exit EndFunc Broken link? PM me and I'll send you the file!
Valuater Posted April 12, 2008 Posted April 12, 2008 ButtonHover() Was designed specifically for picture buttons...http://www.autoitscript.com/forum/index.ph...st&p=2884288)
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