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++ Core » Array problems
Re: Array problems [message #48634 is a reply to message #48618] Thu, 10 August 2017 16:21 Go to previous messageGo to previous message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
By the way: I found an even better/safer method of doing this (IMO):
Create a class inheriting from the layout so you don't have to create the auto& variables:
class TestLayout : public WithTestLayout<ParentCtrl>
{
public:
    typedef TestLayout CLASSNAME;
    TestLayout() { CtrlLayout(*this); }
};

TestWindow::TestWindow()
{	
    Array<ParentCtrl> layoutArray;
    layoutArray.Add(new TestLayout);
    Add(layoutArray[0].SizePos());
}


Greetings
Daniel

[Updated on: Thu, 10 August 2017 16:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Is there a U++ function to copy a String contents to the clipboard
Next Topic: Missing ArrayIndex and AIndex
Goto Forum:
  


Current Time: Wed May 14 02:12:05 CEST 2025

Total time taken to generate the page: 0.03313 seconds