Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Prev Previous Post   Next Post Next
Old 03-01-2017, 12:04 AM   #1
Human being with feelings
Join Date: Nov 2016
Posts: 332
Default onMouseOut() not being called

I have this code, with mouseOver being initialised to FALSE, and draw() only draws lines for the crossfair if the mouseOver is TRUE. Moving the mouse over the control successfully activates the crosshair, but moving away from the control does not.

	void OnMouseOver(int x, int y, IMouseMod* pMod)
		mouseOver = TRUE;
		crosshairX = x;
		crosshairY = y;

	void onMouseOut()
		mouseOver = FALSE;
For testing, I commented out all of OnMouseOver and put the code into onMouseOut, and it's not being called at all! I called pGraphics->HandleMouseOver(true) when setting up the GUI, is there something else I'm missing?

Last edited by Bobflip; 03-02-2017 at 07:34 AM.
Bobflip is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 10:56 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.