comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Determining window types
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Determining window types [message #33324 is a reply to message #33323] Thu, 19 December 2002 08:10 Go to previous messageGo to previous message
James Tappin is currently offline  James Tappin
Messages: 54
Registered: December 1995
Member
David Fanning wrote:

> James Tappin (sjt@star.sr.bham.ac.uk) writes:
>
>> Is there any way of determining whether a graphics window is:
>> 1) A draw widget
>> 2) A pixmap or
>> 3) A regular window?
>>
>> While "device, window_state=wstat" is useful to prevent trying to do
>> illegal operations on on-existent windows, there are sufficient
>> differences between the 3 types of window it would be very useful to be
>> able to distinguish from within a program.
>
> I don't think there is any way to determine between
> windows of different types, but I have to admit I
> don't really see the need for this capability.
>
> Graphics programs are typically either written in such
> a way that they are completely ignorant of where they
> are "going" (I.e., they go into PostScript output as
> easily as they go into the current graphics window)
> or they are written in such as way that you know
> *exactly* where graphic output is going (ie., a
> widget program).
>
> I think only programs that *hope* they know what
> the hell they are doing would benefit from this
> feature. :-)

The particular application I had in mind was a case where I wanted to run an
interactive locator tool within a package that can either be operated from
a CLI in which case it uses regular graphics windows, or from a GUI in
which case it uses a draw_widget and since they get positions in different
ways this is clearly tricky.

James
--
+------------------------+-------------------------------+-- -------+
| James Tappin | School of Physics & Astronomy | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+--------------------------------------------------------+-- -------+
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: The IDL Book Bidness
Next Topic: How do I get the path for a UNIT of a file?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 16:31:56 PDT 2025

Total time taken to generate the page: 0.00195 seconds