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   |
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
|
|
|
Goto Forum:
Current Time: Wed May 14 02:12:05 CEST 2025
Total time taken to generate the page: 0.03313 seconds
|