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

Home » Public Forums » archive » Re: Using Comm... err, alternative?
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: Using Comm... err, alternative? [message #21182 is a reply to message #21181] Thu, 17 August 2000 00:00 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
Pavel Romashkin wrote:
>
> David Fanning wrote:
>>
>> The more relevant question, it seems to me, is why
>> in the world would you care? Multiple windows on the
>> display are going to be mixed up by the user anyway.
>> Why try to go to any effort to order them?
>
> My idea was, if a user creates several plot windows during an ad-hoc
> session, then he can overplot from command line to any one of them by
> just bringing it to the foreground. I am beginning to think that a
> common block is appropriate here, because I see no other way to link an
> existing widget with command-line executed code.

Am I being obtuse or couldn't you just use the provided !D.WINDOW sysvar in the
focus event callback simply as:

widget_control,self.mywin,get_value=win
wset,win

I do this all the time at the same time as resetting colors. All plot commands
then go to the relevant chosen window. One issue is with using tracking events
for the callback, so that by the time the user has returned to the command line,
another window has been unintentionally entered. You can also try expose and/or
keyboard focus events.

Or is this an object graphics thing? I'm embarrassed to say that I have yet to
invoke a single O.G. command. Too many case changes and underlines make my code
ugly (IDL_ThisDISPlays_a_VIEWofaModel_withinAConTainerofWindowsgr dotcom).

JD

--
J.D. Smith /*\ WORK: (607) 255-6263
Cornell University Dept. of Astronomy \*/ (607) 255-5842
304 Space Sciences Bldg. /*\ FAX: (607) 255-5875
Ithaca, NY 14853 \*/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: VIRUS ALERT (was: Ghost object)
Next Topic: Re: get values from WIDGET_TABLES

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

Current Time: Fri Oct 10 17:52:58 PDT 2025

Total time taken to generate the page: 0.24363 seconds