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

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Proper SplitterFrame removal++
Re: Proper SplitterFrame removal++ [message #58480 is a reply to message #58458] Tue, 31 May 2022 11:22 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
luoganda wrote on Wed, 25 May 2022 21:58
1st question:
"Do what?"
I am subclassing Ctrl as SCtrl,
and i would like to use it - like it's written - in Array<SCtrl> sctrl;


sctrl.Add();

However you are doing sctrl.Create<Button>(). Not sure what you expect THAT to do. In any case, as Button does not have SCtrl as base class, you cannot do that.

Anyway, if your aim is to mix Button and SCtrl in the Array, just use

Array<Ctrl> ctrls;

ctrls.Create<SCtrl>();
ctrls.Create<Button>();
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [FEATURE] Common horizontal scroll on Shift+mouse wheel
Next Topic: How would I virtualize a scrollable view to dynamically load Ctrls?
Goto Forum:
  


Current Time: Sun Apr 26 17:30:43 GMT+2 2026

Total time taken to generate the page: 0.00611 seconds