Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13975
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: Thu Apr 18 06:57:26 CEST 2024

Total time taken to generate the page: 0.02152 seconds