Jump to content
Sign in to follow this  
satanttin

(Solved) Hover over option?

Recommended Posts

satanttin

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

Share this post


Link to post
Share on other sites
UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
satanttin

UEZ thanks for the link:) I guess this will be a pain for a noob like myself looking at that code. But i shall take a look and try a couple of things:)

Share this post


Link to post
Share on other sites
satanttin

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

 

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.