U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » how to set/get data in a composite embedded ctrl in an arrayctrl
Re: how to set/get data in a composite embedded ctrl in an arrayctrl [message #3118 is a reply to message #3116] Sun, 07 May 2006 22:06 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Quote:


I think that the elegance can stay at second place if one can dispose of such powerful method that resolve many (all?) kind of problems with embedded ctrl.



Yes, the only problem is that sometimes there exists elegant solution...

E.g. in this case, other interface solution I am considering is to alternatively pass

Array<T>

to the "Ctrls" method,

void Ctrls<T>(Array<T>& ctrls);

so that ArrayCtrl would create its stuff in the place you have "external" access to. This way, downcasts would not be necessary.

OTOH, current inteface cannot be now removed (that is why I am always afraid when creating new stuff....), so Ctrl *GetCtrl method addition is very likely...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl cell consisting of edit and helper button
Next Topic: ArrayCtrl cell color
Goto Forum:
  


Current Time: Sat Sep 05 16:56:52 GMT+2 2026

Total time taken to generate the page: 0.00653 seconds