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

Home » Public Forums » archive » Objects with Widgets, Save/Restore
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Objects with Widgets, Save/Restore [message #26115] Fri, 03 August 2001 08:19 Go to next message
griffith is currently offline  griffith
Messages: 1
Registered: August 2001
Junior Member
Hi,

I am using a handful of home-made objects (thanks to RCK's book) in a
application with lots of widgets. I am trying to use SAVE and RESTORE
to get my objects back to where they were in a previous run of the
application. I have it sort of working but would appreciate seeing
some examples of an "object's restore method".

For example, is there an elegant way to deal with the widget IDs and
values? I am storing widgetIDs in the object for widget_control
statements, but the newly created widgets generally have different IDs
than the old Saved-object. I find myself repeatedly writing the same
statements for each and every widget that might get its value changed
-- see example statements below (* and 1 indicate multiplicity).

*
tempWidgetID=self.WidgetID

1
Restore, filename, filename=self.thisobjectsavefile

*
self.widgetID=tempWidgetID

*
widget_control, self.widgetID, set_value=self.someData

Thanks in advance

Brent Griffith, GSRA, MIT, Building Technology Program
Re: Objects with Widgets, Save/Restore [message #26166 is a reply to message #26115] Mon, 06 August 2001 09:46 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
David Fanning wrote:
>
> I tried that. Now I'm embarrassed to publish my
> *real* picture on my web page. :-(

Now, this is not good. That Coyote site needs to be truthful and
regularly updated. Maybe, check out
http://www.wigs.com/gk_jackie.asp? Only for the web site picture? Just
trying to be helpful...

Cheers,
Pavel
Re: Objects with Widgets, Save/Restore [message #26168 is a reply to message #26115] Mon, 06 August 2001 09:38 Go to previous message
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Pavel A. Romashkin writes:

> Now *that* is not IDL-related. I just start cutting hair shorter :-)

I tried that. Now I'm embarrassed to publish my
*real* picture on my web page. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Objects with Widgets, Save/Restore
Next Topic: bug in IDL's hanning() window-generating function

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

Current Time: Wed Oct 08 13:04:55 PDT 2025

Total time taken to generate the page: 0.00456 seconds