<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Jens,<br>
<br>
Glads to hear the group is still active. I thought the Xforms mailing
list was replaced by the Savanna list. Thanks for putting me back on
track. As you stated earlier there is not a lot of activity on the
Savanna list. Glad to be back on the list given I work with Xorms apps
every day. Any ways, enough of that!<br>
<br>
You assumption was correct. My application, a caller ID tracking tool,
typically runs in a minimized state. This is accomplished by pressing a
button on the window that calls "fl_iconify(win_mini);". I set a
variable and when a call event occurs I check to see if the window was
minimized and if so I call "fl_winshow(win_mini);" to display the
window.<br>
<br>
My problem was when a user minimized the screen using the window
manager decoration I did not have a way of knowing whether I should
raise the window or not since no variable was set. Hence my need to
trap the iconify action from the window manager.<br>
<br>
I tried using the "fl_form_is_visible(form);" call but it always
returns TRUE whether the form is on the display or minimized. Other
attempts proved fruitless. i.e checking "form-&gt;visible" and
"form-&gt;wm_border" variables.<br>
<br>
The problem was resolved by using the "XGetWindowAttributes(fl_display,
win_mini, &amp;xwa);" call. This call fills the xwa structure and one
variable in that structure is "xwa.map_state". This is TRUE if the
window is on the display and FALSE if it is minimized or not on the
current display. A test of this variable after a caller event was all I
needed to know if I should set my variables and raise the window.<br>
<br>
Thanks for the help and look forward to participating in&nbsp; future
developments, <br>
<br>
Serge<br>
<br>
Jens Thoms Toerring wrote:
<blockquote cite="mid:20081018152249.GA21149@toerring.de" type="cite">
  <pre wrap="">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

<a class="moz-txt-link-freetext" href="http://cweblog.usuhs.mil/mailman/listinfo/xforms">http://cweblog.usuhs.mil/mailman/listinfo/xforms</a>

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

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Xforms,
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">I would like my app to trap window min/max events. I have read
through the docs without success.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">Is there a way to set a callback or trap a SIGNAL when these events
occur?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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

<a class="moz-txt-link-freetext" href="http://groups.google.com/group/fa.xforms/topics?lnk">http://groups.google.com/group/fa.xforms/topics?lnk</a>

                             Best regards, Jens
  </pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html; " http-equiv="content-type">
<title>Signature</title>
<meta content="Serge Bromow" name="author">
<pre class="moz-signature" cols="72"><span
 style="font-weight: bold; font-family: times new roman,times,serif;">Serge Bromow</span>
<small style="font-family: times new roman,times,serif;">DineAmix Inc.
<a class="moz-txt-link-rfc2396E" href="mailto:serge@dineamix.ca">&lt;serge@dineamix.ca&gt;</a>
888 411-6636
Ottawa, Canada.</small>
<small><small>
<a class="moz-txt-link-freetext" href="http://www.dineamix.ca">http://www.dineamix.ca</a>

IMPORTANT NOTICE: This message is intended only for the use of the individual or entity to which it is addressed. The message may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify DineAmix Inc. immediately by email at <a class="moz-txt-link-abbreviated" href="mailto:postmaster@dineamix.ca">postmaster@dineamix.ca</a>.

</small><small>Thank you.</small></small> </pre>
</div>
</body>
</html>