satanttin Posted April 29, 2015 Share Posted April 29, 2015 (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 April 29, 2015 by satanttin Link to comment Share on other sites More sharing options...
UEZ Posted April 29, 2015 Share Posted April 29, 2015 Try this: http://www.autoitscript.com/forum/topic/146933-solved-display-picture-as-tooltip/?do=findComment&comment=1041041 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
satanttin Posted April 29, 2015 Author Share Posted April 29, 2015 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:) Link to comment Share on other sites More sharing options...
satanttin Posted April 29, 2015 Author Share Posted April 29, 2015 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 Link to comment Share on other sites More sharing options...
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