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

Home » Public Forums » archive » Re: Coyote graphics and resizeable draw widgets
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: Coyote graphics and resizeable draw widgets [message #79677 is a reply to message #79675] Fri, 23 March 2012 07:34 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> All you will have to do to add this to your widget
> program is pass the cgCmdWindow the ID of its parent
> widget. Then it's, well, done! Keep it's object reference
> around so you can call its methods. It is really as
> simple as that. :-)

I should have probably said a little more about this.
At the time I separated cgWindow from the underlying
object-widget functionality, I added a few methods
to make working with the object-widget easier. In
particular, the PackageCommand method will package
an IDL command up into a cgWindow_Command object.
(This was the essential functionality of the old
cgWindow code.) Once you have the command object,
you simply add it to the window with either the
ReplaceCommand or AddCommand methods.

commandObj = windowObj -> PackageCommand('cgPlot', data)
windowObj -> AddCommand, commandObj

If your interface is resized, you determine what
size your graphics window should be, and you call
the Resize method with the new sizes.

windowObj -> Resize, event.x, event.y

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote graphics and resizeable draw widgets
Next Topic: Re: Modifying Arrays and Structures in HASH's (hint: you can't)

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

Current Time: Fri Oct 10 10:20:17 PDT 2025

Total time taken to generate the page: 1.02838 seconds