[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Why does the derived class instance need to be duplicated with TkComposite

Lionel MAIAUX

9/1/2006 3:32:00 PM

Hello,

Is there any reason to duplicate the derived class instance when using
TkComposite ?

Examples :

1/ tk/sample/scrollframe : there are 3 frames instantiated for a
Tk::ScrollFrame object : self (derived from TkFrame), @frame (from
TkComposite) and@base (embedded frame)
Why can't we use self for the enbedded frame ?

2/ tk/sample/tktextframe.rb : there are 2 TkText instantiated for a
TkTextFrame object : self (derived from TkText) and @text.
Why this duplication ?

Thanks for your explanations and regards,
Lionel

1 Answer

Hidetoshi NAGAI

9/5/2006 4:52:00 AM

0