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

Home » Public Forums » archive » event_pro for compound 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: EVENT_PRO [message #73770 is a reply to message #40935] Mon, 29 November 2010 11:02 Go to previous messageGo to previous message
silje is currently offline  silje
Messages: 4
Registered: October 2010
Junior Member
On 29 Nov, 19:38, David Fanning <n...@dfanning.com> wrote:
> silje writes:
>> Changing the names to something more meaningful shouldn't be any
>> problem :) But it still feels like an easy solution. I also found this
>> in a previous discussion
>
>>    "If you do use EVENT_PRO to assign an event handler for a top-level
>> base being directly managed by XMANAGER, you will find exceedingly
>> strange things going on in your widget program, if it works at all.
>> Believe me, you don't want to do this. "
>
>> http://www.dfanning.com/widget_tips/multiple_widgets.html
>
>> Could you explain what you meant by that?
>
> In the old days, a widget that was being directly managed
> by XManager (ie, the widget ID used in the XManager call)
> could not be assigned an event handler with either EVENT_PRO
> or EVENT_FUNC keywords. Rather, you had to assign an
> event handler to this widget with the EVENT_HANDLER keyword
> to XManager.
>
> I still follow this rule in my own widget programs because,
> well ..., because I'm old school. :-)
>
> I believe this requirement is no longer in effect, although
> I haven't really tested it. I just see a lot of programs
> written by ITTVIS that assign the top-level base an event
> handler using the EVENT_PRO keyword. So I presume this
> restriction is no longer valid.
>
> You could test it and let me know. :-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

I have created many separate event handlers using EVENT_PRO and it
works just fine :) I was just a little nervous it was bad
programming..... ;)

Silje
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EVENT_PRO
Next Topic: Notable Coyote Program Updates

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

Current Time: Wed Oct 08 18:29:31 PDT 2025

Total time taken to generate the page: 0.00442 seconds