It is currently May 2nd, 2024, 12:31 am

Need help coding mouse-over 'drop down' menu.

Get help with creating, editing & fixing problems with skins
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Need help coding mouse-over 'drop down' menu.

Post by MerlinTheRed »

The way I would do it is add a !ShowMeterGroup to the dock icon to show all the subdocks (use LeftMouseUp or MouseOver depending on your preferences).

You will also create an invisible image (with alpha 0) that is exactly as big as the dock icon and all subdocks together and covers that entire area. Then you add a !HideMeterGroup as MouseLeaveAction to this invisible image. You can still have the !HideMeterGroup when clicking on one of the icons.

This way, if you hover/click on the dock icon, the submenu will pop up. It will close when you click on a launcher or when you leave the menu area without clicking anything.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!