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

Home » Public Forums » archive » Multiple widgetized windows in one application
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: Multiple widgetized windows in one application [message #15218 is a reply to message #15153] Mon, 26 April 1999 00:00 Go to previous messageGo to previous message
Pavel Romashkin is currently offline  Pavel Romashkin
Messages: 166
Registered: April 1999
Senior Member
> I found a typo in my code and have made the program work, but that does
> not mean that I understand /GROUP_LEADER, /JUST_REG, and EVENT_PRO

Well, typo, after all! Told ya!
GROUP_LEADER : the only use I have for it is to kill a dependent top-level base,
like a modal dialog.
JUST_REG : I have never used it and from the description I see no use for it in
what I am doing.
EVENT_PRO: This is just redirector for the event handling procedure, to let you
bypass the default "your_pro_EVENT" procedure name. XMANAGER still provides event
handling (unless you are advanced enough to use WIDGET_EVENTdirectly, which I
never needed).

> Just out of curiosity, how many widget programmers prefer to write a
> separate event-handler for each widget or group of widgets, and how many
> prefer to have a single event handler routine?

In my first useful widget application (not big, <1500 lines of code) I used one
event handling procedure. As I expanded it, it quickly grew out of reasonable
limits, it became difficult to find and change things. Now I have separate event
handling routines for logically related tasks (modes of application operation:
data loading, application setup, integration, time series analyses, etc.). This
way event handling parts don't screw up each other and it is easy to expand one
of them without going through a lot of code.
Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: on_ioerror?
Next Topic: Re: Widget draw problems...

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

Current Time: Sat Oct 11 08:47:43 PDT 2025

Total time taken to generate the page: 0.01066 seconds