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

Home » Public Forums » archive » Re: iTools and WSET
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: iTools and WSET [message #46970 is a reply to message #46969] Fri, 13 January 2006 09:46 Go to previous messageGo to previous message
David Alexander is currently offline  David Alexander
Messages: 26
Registered: August 2005
Junior Member
James,

You need to make the window ids of the draw windows accessible to the
command line environment so you can call WSET with the right ids. The
ids of the draw windows aren't set until the panel is realized, so you
could put some code in your panel's notify_realize routine to get the
ids, and save them somewhere where you can access them from the command
line later. For example, in your notify_realize routine you could get
the ids, and save them as a property in the tool object.

I would save the draw widget ids, as well as a reference to the tool
object, in a state structure that you add as the user value to your
panel widget. Then, in the notify_realize routine, retrieve the state
structure and get the widget ids and the tool object. Call
WIDGET_CONTROL with the GET_VALUE keyword on the draw widgets to get
the associated window ids.

If you implement a new property in your custom tool class that will
hold the window ids, then call the tool's SetProperty method while in
the notify_realize routine to set this property with the window id
values.

Now, from the command line, after the tool has started, you can get the
tool object (using itGetCurrent as usual), and call GetProperty on the
tool to get the list of window ids for the thumbnail windows. Then call
WSET with the id of the window you're interested in using.

Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Dual Core Apple "MacBook", and RSI's Mac Intel plans
Next Topic: Strange Java bridge problem !!!

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

Current Time: Fri Oct 10 09:39:57 PDT 2025

Total time taken to generate the page: 0.80077 seconds