Jump to content

Recommended Posts

Posted (edited)

Hello,

I would like to know if there is an option to make a picture appear when hovering over an control (Let's say a label).
I've been looking all over but couldn't find a thing about it:(

so possible, not possible? and if it's possible can someone give me some tips or a link?

 

Greetings

Edited by satanttin
Posted

For the people that see this post and want to know what worked for me it's this link. (it's an UDF and it's very easy to use)

simple test script:

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include "GUICtrlOnHover.au3"

Opt("GUIOnEventMode", 1)

main()
Func main()
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Label1 = GUICtrlCreateLabel("Label1", 85, 55, 36, 17)
_GUICtrl_OnHoverRegister($Label1, "test", "test2")
GUISetOnEvent($GUI_EVENT_CLOSE, "stop")
GUISetState(@SW_SHOW)
EndFunc

Func stop()
Exit
EndFunc

Func test($iCtrlID)
MsgBox(0,"test1","")
EndFunc

Func test2($iCtrlID)
MsgBox(0,"test2","")
EndFunc

While 1
    Sleep(50)
WEnd

 

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
×
×
  • Create New...