Page 1 of 2

Windowed Mode and Events

PostPosted: Sep 29, 2003 @ 9:11pm
by mlepage

PostPosted: Sep 29, 2003 @ 11:03pm
by ppcStudios

PostPosted: Sep 29, 2003 @ 11:40pm
by mlepage
True. But it still leaves problems.

On the PC build I have a fancy toolbar that works just like in Visual Studio 6. When you move the mouse over the buttons, they pop out with a rollover effect. This is without pressing the mouse button.

So, if I move outside the toolbar, they all go back to normal. But if I move off the toolbar outside the window, that button retains its rollover effect which is unaesthetic. Normally I would just handle this on window exit, but I'm unsure where to do that in GapiDraw.

I suppose a brutish hack would be to try to detect a mouse leaving the window. But you can always move the mouse really quickly and defeat that attempt.

When I move the mouse back in the window, not on the toolbar, the rollover effect disappears because I'm not on the toolbar.

But let's say instead of a toolbar rollover effect, I was instead dragging something. Normally I would stop draggin on mouse up, but in this case I have left the window without a mouse up event.

Now, I could let go of the mouse button and reenter the window at any place. My app still thinks it is dragging the object, but now there is a dire consequence. The object I was dragging will snap to whatever position I reentered the window, which is startling and not intended.

Are these little problems we just have to live with when using GapiDraw on the PC in windowed mode? I know they sound like insignificant details, but these little things always bother me. That's why I gave the Tower Mogul folks such a hard time on doing button actions on mouse down when they should be on mouse up. :-)

PostPosted: Sep 30, 2003 @ 12:50am
by ppcStudios
How about simply checking the stylus location to see if it is out of bounds of your window size?

PostPosted: Sep 30, 2003 @ 3:19am
by mlepage

PostPosted: Sep 30, 2003 @ 7:42am
by Johan

PostPosted: Sep 30, 2003 @ 11:20am
by ppcStudios

PostPosted: Sep 30, 2003 @ 6:09pm
by mlepage

PostPosted: Sep 30, 2003 @ 10:26pm
by maurice

PostPosted: Oct 1, 2003 @ 6:34am
by InexorableTash

PostPosted: Oct 1, 2003 @ 7:30am
by Johan

PostPosted: Oct 1, 2003 @ 7:53am
by maurice

PostPosted: Oct 1, 2003 @ 3:59pm
by InexorableTash

PostPosted: Oct 1, 2003 @ 4:07pm
by Johan

PostPosted: Oct 1, 2003 @ 9:13pm
by mlepage