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 
Return to the default flat view Create a new topic Submit Reply
Objects with Widgets, Save/Restore [message #26115] Fri, 03 August 2001 08:19 Go to previous 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
[Message index]
 
Read Message
Read Message
Read Message
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:15 PDT 2025

Total time taken to generate the page: 0.00437 seconds