Mouse button release above some types of windows

View: New views
2 Messages — Rating Filter:   Alert me  

Mouse button release above some types of windows

by Jan Vachulka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have problem with different behaviour of FOX under windows and linux -

I have class inherited from FXHorizontalFrame and I implemented handler for the SEL_LEFTBUTTONRELEASE message, so handler does something when user releases mouse button above it, it works fine under windows, but under linux - handler is never executed. I failed to find out why or to find any workaround.

Notes: the same holds for classes derived for example from FXVerticalFrame or FXDialogBox, but e.g. FXLabel works fine under win and linux - I don't know why ..

I would be thankful for any advice, thank you

Jan

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users

Parent Message unknown Re: Mouse button release above some types of windows

by jeroen-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Hi all,
>
> I have problem with different behaviour of FOX under windows and linux -
>
> I have class inherited from FXHorizontalFrame and I implemented handler for
> the SEL_LEFTBUTTONRELEASE message, so handler does something when user
> releases mouse button above it, it works fine under windows, but under
> linux - handler is never executed. I failed to find out why or to find any
> workaround.
>
> Notes: the same holds for classes derived for example from FXVerticalFrame
> or FXDialogBox, but e.g. FXLabel works fine under win and linux - I don't
> know why ..
>
> I would be thankful for any advice, thank you
>
> Jan

There are two things which affect mouse event delivery:

        1) you've enabled the widget.

        2) you've not grabbed the mouse to some other widget.


If 1) isn't true, the raw event may still be actually delivered (due to
Windows idiosyncracies, we can't actually stop that like we can on X11),
but the widget usually doesn't process them since it always tests if
the widget is enabled.

If you've enabled and are still not getting the event, then most likely
its dues to (2).


                - Jeroen



--
+----------------------------------------------------------------------------+
| Copyright (C) 22:20 09/24/2009 Jeroen van der Zijp.   All Rights Reserved. |
+----------------------------------------------------------------------------+

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Foxgui-users mailing list
Foxgui-users@...
https://lists.sourceforge.net/lists/listinfo/foxgui-users