Home » Community » Newbie corner » Buttons in Array using ArrayCtrl
Re: Buttons in Array using ArrayCtrl [message #37759 is a reply to message #37757] |
Fri, 09 November 2012 20:48   |
nejnadusho
Messages: 60 Registered: October 2012
|
Member |
|
|
Luigi,
Thank you.
Yes I have been trying to figure exactly this out.
I just tweaked the code a little now I have no compiling errors but it does not display the buttons, however, the rows are there and clickable but once I click them the app crashes.
#include "test.h"
test::test()
{
Array<Button> myButt;
myButt.Add();
myButt.Add();
CtrlLayout(*this, "Window title");
myArray.AddColumn("List of Tables");
myArray.Add();
myArray.Add();
myArray.SetCtrl(0,0, myButt[0].SetLabel("Push1").SizePos());
myArray.SetCtrl(1,0, myButt[1].SetLabel("Push2").SizePos());
}
GUI_APP_MAIN
{
test().Run();
}
I just cannot get complete understanding of the ArrayCtrlSetCtrl package.
Best,
nejnio
|
|
|
Goto Forum:
Current Time: Sat May 03 15:04:12 CEST 2025
Total time taken to generate the page: 0.03173 seconds
|