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

Home » Public Forums » archive » How to package existing non-OO widget application into a catalyst based objects?
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: How to package existing non-OO widget application into a catalyst based objects? [message #86307 is a reply to message #86222] Thu, 24 October 2013 11:56 Go to previous messageGo to previous message
Jie Zhou is currently offline  Jie Zhou
Messages: 27
Registered: February 2014
Junior Member
On Saturday, October 19, 2013 12:13:50 AM UTC+2, David Fanning wrote:
> Jie Zhou writes:
>
>
>
>> Now I have a widget application developed using the normal non-OO widget, i.e. the top level base is created using WIDGET_BASE. And I want to improve it using the objected widgets in catalyst library. But the time is limited. Now I just have time to change the image view part of the system. So How can I combine the WIDGET_BASE and BASEWIDGET object into the same application.
>
>> I have tried to set a widget_base as the parent to a BASEWIDGET objects. But I have no idea how to do it.
>
>
>
> Yeah, I'm afraid it is all or nothing when you switch to the Catalyst
>
> Library. *Everything* has to be an object over there. It *can* drive you
>
> crazy until you build up enough objects in your own library. There are a
>
> number of advantages to doing so, however.
>
>
>
> The problem really has to do with how widget events get propagated in
>
> widget objects. The way this has to be done makes it impossible (I
>
> believe) to build a hybrid system.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

I use the toplevelbase at the top base, then use getID()method to get the id of embed base widget, and then create children widgets with the ID as parent. Also use the xmanager to dispatch the events of these child-widgets to a specific procedure. More or less, it worked. Absolutely, i well change all parts of my system into oo-based step by step.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strange error: % Keyword parameters not allowed in call.
Next Topic: Fast local contrast calculations?

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

Current Time: Fri Oct 10 17:50:42 PDT 2025

Total time taken to generate the page: 2.88007 seconds