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 » 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 Go to previous messageGo to previous message
nejnadusho is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changing EditFields from header files
Next Topic: No Export to PDF button in Windows?
Goto Forum:
  


Current Time: Mon May 13 03:02:02 CEST 2024

Total time taken to generate the page: 0.02833 seconds