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

Home » Public Forums » archive » Re: How to know a window id is valid
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: How to know a window id is valid [message #7080 is a reply to message #7072] Fri, 20 September 1996 00:00 Go to previous messageGo to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
On 19 Sep 1996, Gary Fu wrote:
> Is there a command to tell that a window id created by a
> draw window widget is valid for WSET to use ?

I don't know of a neat way to do this. I use the following hack:

function draw_valid,draw
;returns 1 if the draw-widget or plot-window ID in DRAW is valid, else 0
catch,e &if (e ne 0) then return,0
wshow,draw
return,1
end

It works with plot windows and draw widgets (regular and pixmap).
(Use WIDGET_CONTROL,draw_widget_id,GET_VAL=draw to get the draw ID of a draw
WIDGET.)

It has the side-effect of de-iconising the window and bringing it to the
foreground. (Something you might want to do anyway if you're about to plot
to the thing.)

Peter Mason
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: BEYOND TECHNOLOGY
Next Topic: Re: Drawing axes for volumetric data

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

Current Time: Sun Nov 30 10:40:21 PST 2025

Total time taken to generate the page: 0.96475 seconds