[XForms] XForms min/max events

Jens Thoms Toerring jt at toerring.de
Sat Oct 18 11:22:49 EDT 2008


To subscribers of the xforms list

Hi Serge,

    I have just seen your question on Savannah concerning min/max
events, Please accept my appologies for the long delay - questions
are normally asked in the XForms mailing list

http://cweblog.usuhs.mil/mailman/listinfo/xforms

and the last question coming up on Savannah was that long ago
that I don't often check there...

> Hi Xforms,

> I would like my app to trap window min/max events. I have read
> through the docs without success.

> Is there a way to set a callback or trap a SIGNAL when these events
> occur?

I guess with min/max event you mean something that happens only
when the minimize/maximize button on the window decorations is
clicked on. Please correct me if I am wrong but that's the only
thing I can think of at the moment.

The problem here is that there's no special event that would
distinguish it in any way from any other resizing of the window.
The only thing visible from an application is receiving a
ConfigureNotify X event that informs the application that the
windows size has been changed, but there's nothing that indicates
that it's due to the minimize/maximize button in the window deco-
rations having been clicked on - that's something only the window
manager would know about which takes care of these decorations.

At the momement there's not even a mechanism to set a callback
for ConfigureNotify events (even via fl_register_raw_callback()),
probably since an application normal;y doesn't need to know about
that (in case you really need to know that a windows size has
changed you typically would simply ask for it's size). But I
could add something that allows to install a preemptive handler
also for ConfigureNotify events if you think it's really needed.
But that still won't tell you if that event is due to a min/max
button the window manager may display...

I am going to send this reply also to the mailing list so that
others can comment if they think my answer is wrong or incom-
plete or have a good idea for you. If you don't want to sub-
scribe to the mailing list you will be able to see further
replies also her

http://groups.google.com/group/fa.xforms/topics?lnk

                             Best regards, Jens
-- 
  \   Jens Thoms Toerring  ________      jt at toerring.de
   \_______________________________      http://toerring.de
_______________________________________________
To unsubscribe, send any message to
xforms-leave at bob.usuhs.mil or see: 
http://cweblog.usuhs.mil/mailman/listinfo/xforms
List Archive: http://bob.usuhs.mil/pipermail/xforms and
http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms



More information about the Xforms mailing list