Home »
Public Forums »
archive »
Re: Object Graphics and Widgets
Re: Object Graphics and Widgets [message #10634] |
Thu, 01 January 1998 00:00 |
David Burridge
Messages: 33 Registered: January 1998
|
Member |
|
|
Hi Bernard,
In order to get an object view to appear in a draw widget you need to take
two steps:
1. When you create the draw widget use the "GRAPHICS_LEVEL=2" keyword to
ensure this is an object draw widget rather than a direct graphics one.
2. You need the object reference of the draw widget to make the "mywinobj->
Draw, myview" call. This is stored in the VALUE parameter in exactly like
the window id is for a direct graphics draw widget. You can retrieve this
using: "WIDGET_CONTROL, drawwidgetid, GET_VALUE=mywinobj".
Hope this helps. Good luck with the objects - they're worth the learning
curve in my opinion!
All the best,
Dave.
Bernard Puc <puc@gsfc.nasa.gov> wrote in article
<34A92481.B8A57651@gsfc.nasa.gov>...
> Hello Folks,
>
> I'm not clear on how to display a view object inside a draw widget. I
> have a widgets base that contains several buttons and a draw widget. It
> creates a plot which I'd like to display in the draw widget area. Any
> pointers appreciated.
>
> -Bernard Puc
> Code 717 NASA GSFC/HSTX
> puc@gsfc.nasa.gov
>
|
|
|
Current Time: Wed Oct 08 20:02:23 PDT 2025
Total time taken to generate the page: 0.02417 seconds