playlet Posted October 24, 2009 Share Posted October 24, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
wraithdu Posted October 25, 2009 Share Posted October 25, 2009 Why do you have an extra parameter in your code above? The 'tag' parameter is prepended to the name of the button image. All images must be in the same directory. So for two styles... $Button1 = __HoverButton("text", "left", "top", "width", "height", "style1_", "color") $Button2 = __HoverButton("text", "left", "top", "width", "height", "style2_", "color") Then you must have images in your skin directory - style1_Normal.bmp, style1_Over.bmp, style1_Pressed.bmp style2_Normal.bmp, style2_Over.bmp, style2_Pressed.bmp Link to comment Share on other sites More sharing options...
playlet Posted October 25, 2009 Share Posted October 25, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
playlet Posted October 25, 2009 Share Posted October 25, 2009 (edited) --- Edited August 18, 2016 by playlet Link to comment Share on other sites More sharing options...
wraithdu Posted October 26, 2009 Share Posted October 26, 2009 I'm not even going there...with this set of functions, no. Link to comment Share on other sites More sharing options...
Valuater Posted October 28, 2009 Author Share Posted October 28, 2009 I'm not even going there...with this set of functions, no. I'm following your lead on that one... no way! 8) Link to comment Share on other sites More sharing options...
AutID Posted October 19, 2014 Share Posted October 19, 2014 Interesting small function. In my poor opinion, _HoverButton function should return the array with both controls instead of returning only the control id of the pic so both controls can be used since there is a label and a pic. This way you can get the text of the "button", modify it and many more things. I also removed the _CheckHoverAndPressed in the while loop and made it work similarly with less cpu usage. Thanks for the function. https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
Ourumov94 Posted July 4, 2018 Share Posted July 4, 2018 Hi Valuater, First of all thanks for theses nices UDFs. I have an issue c oncerning the __ButtonHoverTag.au3 one. When I use it, when I click on a button, the associated "click on" event is not executed both on "OnEvent" Mode or "Classic" mode. The __HoverButton function doesn't seem to return a value? Thanks in advance for any help SLA5.au3 Link to comment Share on other sites More sharing options...
Ourumov94 Posted July 4, 2018 Share Posted July 4, 2018 Hi, Sorry for my stupid question, I just saw that the function returns an array so I modified the code as attached. Thx, SLA5.au3 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