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

Home » Public Forums » archive » Re: having IDL output to another X11 window
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: having IDL output to another X11 window [message #32097 is a reply to message #32083] Wed, 11 September 2002 06:39 Go to previous messageGo to previous message
Jacques Basson is currently offline  Jacques Basson
Messages: 17
Registered: May 1999
Junior Member
David Fanning wrote:
> Bringfried Stecklum (stecklum@tls-tautenburg.de) writes:
>
>
>> Interesting suggestion. I checked it out with the following result
>>
>> IDL Version 5.4.1 (linux x86). (c) 2000, Research Systems, Inc.
>> IDL> window,set_x_id='194.94.209.12:0.0'
>> Xlib: unexpected async reply (sequence 0xaa)!
>> % X windows protocol error: BadDrawable (invalid Pixmap or Window parameter).
>>
>> It seems the keyword is still there but the connection to the X server
>> could not be established.
>
>
> The ID must be the ID of a X window "visual". I
> don't recall now what this is exactly, but I'm
> pretty sure it is not the display number
> sequence you used. This is a number that the
> operating system assigns to a window when
> it is created.
>
> You can probably use the GET_X_ID keyword when
> you create a window in IDL to see what one of
> these would look like. You will have to do some
> Motif programming, I guess, to get to it.
>
> Cheers,
>
> David
>

I have used this recently, and David's description is perfectly correct,
so here is a working example.

Run the following wish script to get a window and ID (alternatively
check out "man xwininfo" for finding the id of some other window if you
don't have wish installed)
------------------------------------------------------------
#!/bin/sh
# the next line restarts using wish \
exec wish "$0" "$@"

frame .test -width 500 -height 500
listbox .windowid -height 1
button .exit -text "Exit" -command exit

set frameid [winfo id .test]
.windowid insert end $frameid

pack .exit .test .windowid
------------------------------------------------------------ -

Then in IDL

IDL Version 5.5a (linux x86). (c) 2001, Research Systems, Inc.

IDL> window, set_x_id='0x380000e'X
IDL> plot, findgen(100)

Of course yout must insert the appropriate ID (in hex above). Works with
no problems for me. Don't know about Motif though...

Jacques
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Pointer Behavior Objects Vs Plain routines?
Next Topic: Re: Simple animation?

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

Current Time: Sat Oct 11 04:44:48 PDT 2025

Total time taken to generate the page: 1.91958 seconds