Re: Maximze a minimize GUI [message #42682] |
Fri, 18 February 2005 06:17  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Patrick Dillmann writes:
> I have a question about maximize a minimized GUI.
> After minimized a SubGUI, which has been started from my MainGUI, e.g.
> from a pull-down menu or a button, is it possible to maximize the
> SubGUI when I press the button in the MainGUI again instead of open a
> new SubGUI?
Depending upon how you have written this application,
XREGISTERED might give you this functionality directly.
If not, XREGISTERED will probably give you the information
you need to do it. But if you *still* have no joy, then
you can use WIDGET_INFO to see if the subGUI TLB is
realized (REALIZED keyword), or valid (VALID_ID keyword).
If so, then maximize rather than recreate.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Maximze a minimize GUI [message #42740 is a reply to message #42682] |
Mon, 21 February 2005 04:17  |
patrick.dillmann
Messages: 5 Registered: November 2004
|
Junior Member |
|
|
David Fanning, Ph.D. <david@dfanning.com> wrote in message news:<MPG.1c7fa6db2434cf64989685@news.frii.com>...
> Patrick Dillmann writes:
>
>> I have a question about maximize a minimized GUI.
>> After minimized a SubGUI, which has been started from my MainGUI, e.g.
>> from a pull-down menu or a button, is it possible to maximize the
>> SubGUI when I press the button in the MainGUI again instead of open a
>> new SubGUI?
>
> Depending upon how you have written this application,
> XREGISTERED might give you this functionality directly.
> If not, XREGISTERED will probably give you the information
> you need to do it. But if you *still* have no joy, then
> you can use WIDGET_INFO to see if the subGUI TLB is
> realized (REALIZED keyword), or valid (VALID_ID keyword).
> If so, then maximize rather than recreate.
>
> Cheers,
>
> David
I tried it with XREGISTERED and the SubGUI is brought to the front but
only if it is maximized somewhere in the background and not if it is
minimized. I also tried it with WIDGET_CONTROL,id,/SHOW and the same
happens. Maybe it exists an other command that maximizes a SubGUI?
Something like pressing the button in the windows taskbar.
Cheers,
Patrick
|
|
|