Home » Community » Newbie corner » [SOLVED] How to load an array added to an TabCtrl?
Re: How to load an array added to an TabCtrl? [message #47730 is a reply to message #47729] |
Sun, 12 March 2017 19:29   |
Oblivion
Messages: 1205 Registered: August 2007
|
Senior Contributor |
|
|
Hello,
You seem to declare Grid locally in the constructor. Therefore it will be out of scope (won't be available). Try to make it a member.
class Test1 : public WithTest1Layout<TopWindow> {
WithGridLayout<ParentCtrl> Grid; // <------ Grid should be declared here, or elswhere
// so that it can be reached within the Test1 class.
public:
typedef Test1 CLASSNAME;
Test1(){
CtrlLayoutOK(*this, "Window title");
WithGridLayout<ParentCtrl> Grid; // <------ Grid is declared locally in constructor (The reason of the error.).
CtrlLayout(Grid);
tb.Add(Grid.SizePos(),"Tableau");
Grid.arr.SizePos();
Grid.arr.AddRowNumColumn();
Grid.arr.AddColumn("Colonne 1").Sorting();
Grid.arr.AddColumn("Colonne 2").Sorting();
alim <<= THISBACK(fAlim);
}
void fAlim();
};
Regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sun, 12 March 2017 19:35] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue May 06 21:42:56 CEST 2025
Total time taken to generate the page: 0.00622 seconds
|