Jump to content
Sign in to follow this  
Instynct

onMouseEnter and onMouseExit don't work

Recommended Posts

Has anyone been able to get these handlers to work for controls? They don't appear to be working. If someone else could test maybe I'll open a report in feedback tracker.

Share this post


Link to post
Share on other sites

I've tried using it with a list box and the actual dialog itself.

Share this post


Link to post
Share on other sites
_ctrlMenu ctrlSetEventHandler ["mouseMoving","
	if (_this select 3) exitWith {}
	systemChat 'out of bounds';
"];


Use mouseMoving instead as a workaround

Share this post


Link to post
Share on other sites

You are ignoring the "on" part of the name when you add it right?

 

_myCtrl ctrlAddEventHandler ["MouseEnter", {...}]   and not "OnMouseEnter"?

  • Like 2

Share this post


Link to post
Share on other sites
On 8/28/2017 at 4:11 PM, Muzzleflash said:

You are ignoring the "on" part of the name when you add it right?

 

_myCtrl ctrlAddEventHandler ["MouseEnter", {...}]   and not "OnMouseEnter"?

@Muzzleflash is right. Read the top part of the the community wiki page about eventhandlers.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×