object question, persistent vs. scope [message #61942] |
Wed, 13 August 2008 12:00 |
cgoethel
Messages: 20 Registered: April 2008
|
Junior Member |
|
|
Hi All,
I'm trying to make the transition to IDL object oriented programming,
but am having a few problems with the visibility of my object. I have
a very basic GUI - myGUIProgram, which is not an object, but has a
definition procedure and an event handler. I create a new object (one
that I wrote) in the definition procedure, and it is successfully
realized
MYSTATUS OBJREF =
<ObjHeapVar1(THM_UI_STATUSBAR)> ;from command line help
Using a stop in my program right before Xmanager is called, I can
successfully call all of its methods. However, my event handler
procedure is not able to see it, or it is invalid
Invalid object reference: <OBJREF (<ObjHeapVar1>)>
I've tried passing myObject to the event handler in a state structure
stored in uvalue (using widget_control get and set procedures), but
that doesn't work either.
Am I missing something big about OO or misunderstand what scope and
persistence really mean for objects? I've got 3 reference books and
the IDL help, but I am lost.
Any help is appreciated!!!
Thanks - Cindy
|
|
|