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 » 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 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1094
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


[Updated on: Sun, 12 March 2017 19:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Reading from .txt and putting data (double) in array[]
Next Topic: GridCtrl mouse click problem (Closed)
Goto Forum:
  


Current Time: Wed May 22 13:47:12 CEST 2024

Total time taken to generate the page: 0.01345 seconds