RE: XForms: Question on how to raise minimized form

Chip Sutton (chip@cs-net.com)
Tue, 10 Nov 1998 10:10:37 -0500

# To subscribers of the xforms list from "Chip Sutton" <chip@cs-net.com> :

Steve,

Thanks for the information. It indeed does exactly what I want. Just a
point of information, through my testing on HP CDE I found that if the user
is in a different workspace than the form window, then the map_state is
IsUnmapped (same state as if it is minimized). If the XMapRaised function
is executed when the user is in a workspace that does not currently display
the form then the form is displayed.

I failed to mention in my post that I am using Xforms4Perl,however, I was
able to add two functions (XGetWindowMapState(form), XMapRaised(form)) to
return the map_state value to the Perl script and to perform the XMapRaised
function.

Thanks again for your help.

Chip

> -----Original Message-----
> From: owner-xforms@bob.usuf2.usuhs.mil
> [mailto:owner-xforms@bob.usuf2.usuhs.mil]On Behalf Of Steve Lamont
> Sent: Monday, November 09, 1998 2:39 PM
> To: xforms@bob.usuf2.usuhs.mil
> Subject: Re: XForms: Question on how to raise minimized form
>
>
> # To subscribers of the xforms list from spl@szechuan.ucsd.edu
> (Steve Lamont) :
>
> > Is there a way I can determine if the window has been minimized
> ? Or not in
> > the current workspace ? Or maybe there is a better way to do what I am
> > trying to do.
>
> Check to see if the Window is mapped with XGetWindowAttributes():
>
> XWindowAttributes attrs;
>
> XGetWindowAttributes( fl_get_display(),
> form->window,
> &attrs );
> if ( attrs.map_state == IsUnmapped )
> XMapRaised( fl_get_display(),
> form->window );
>
> should do it.
>
> I'm not sure what XGetWindowAttributes() will tell you if it's not in
> the current workspace -- perhaps IsUnviewable. You should probably
> experiment.
>
> Why you can't query the Window Manager directly to find this out is
> beyond me.
>
> spl
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuf2.usuhs.mil or see
> http://bob.usuf2.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://bragg.phys.uwm.edu/xforms
> List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/
>

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/