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

Home » Public Forums » archive » Re: 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 #17789 is a reply to message #17721] Mon, 08 November 1999 00:00 Go to previous messageGo to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
David Fanning, davidf@dfanning.com writes

> One of the difficulties with object widgets is handling
> the events that get generated. It is not possible, of
> course, to assign object methods as event handlers,
> so you have to have an event handler that dispatches
> the events to the appropriate methods.

I have found that I can have just one such event handler routine
in an ur-widget, which automatically calls the correct event handler
of subclassed widgets. All my 'real' widgets need is a structure
definition which inherits the ur-widget, an INIT method and an event
handling method.

I am actually in the process of putting together web pages to
describe the widget and how to effectively subclass other widgets from
it, but as always other things keep getting in the way. If people
want to look at the code, the following pages has links to the
ur-widget, a minimal widget which actually does something, and shows
how to inherit from and interact with the ur-widget, and a more
complex colour-picker widget.

http://www.sljus.lu.se/stm/IDL/Obj_Widgets/

I promise, hand on heart, to try and get some explanatory text
written up real soon now. I'm now using this ur-widget for all my
standalone widgets (I've not started trying to make any compound
widgets with it, though I don't see why it wouldn't work), and love
the way I can add functionality to the ur-widget (see the SHOW method)
which is then immediately available to all my other widgets, including
those up and running on the screen.


Struan
[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
Previous Topic: Two widget questions
Next Topic: Re: Center of mass???

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

Current Time: Fri Oct 10 03:18:55 PDT 2025

Total time taken to generate the page: 1.43776 seconds