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

Home » Public Forums » archive » Object 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: Object Widgets [message #17850 is a reply to message #17810] Mon, 15 November 1999 00:00 Go to previous messageGo to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
Struan Gray wrote:
>
> Struan Gray, struan.gray@sljus.lu.se writes:
>
> Whoops. Bad formatting in my last post.
>
> This:
>
>> objwidref = obj_new('object_widget') objwidref -> Start
>
> Should read:
>
>> objwidref = obj_new('object_widget')
>> objwidref -> Start
>
>
> Struan

I often do all sorts of things in the Start method. Usually they are along the
lines of setting up variables (like window id's), that don't yet exist until a
subsidiary object is Started. Also for drawing to widget_draw's, and similar
things which require the widgets already to have been started up. But it's not
just for widget issues.

For instance, I have a color manager object which other object widgets inquire
for various colors to set themselves up. Until this object is initialized, it
makes no sense to inquire things of it. If there were only one object utilizing
it... no problem -- just make sure it's initted first. But when many objects
being initted in many different places might be involved, this is *much*
easier.

Another nice thing about having a standard method "Start" is that a controlling
class can automatically "Start" all of it's composited objects, without knowing
the details of what they're doing (be it widget or otherwise).

JD

--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: object widgets
Next Topic: Re: IDL + Linux (Ubuntu) ??

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

Current Time: Wed Oct 08 17:48:05 PDT 2025

Total time taken to generate the page: 0.00374 seconds