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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » "Forlano tabs" - how to reduce a headache by the proper use of the designer...
Re: "Forlano tabs" - how to reduce a headache by the proper use of the designer... [message #2163 is a reply to message #2157] Sun, 02 April 2006 18:51 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
fudadmin wrote on Sun, 02 April 2006 15:56

What next.. I guess you will want to have some columns in your ArrayCtrl...
You will need 2 more steps:
1. Create a name for it in your *.lay file e.g. - arr
2. initialize it in the constructor like this:
Tab1::Tab1()
{
	CtrlLayout(*this, "");
	arr.AddColumn("col1");
	arr.AddColumn("col2");
	arr.AddColumn("col3");	
}

Edit:
or
Tab1::Tab1()
{
	CtrlLayout(*this, "");
      arr.AddColumn("Name");
      arr.AddColumn("Fed");
      arr.AddColumn("Birthday");
      arr.AddColumn("Gender");
      arr.AddColumn("Title");
      arr.AddColumn("ID FIDE");
      arr.AddColumn("Rat FIDE");
      arr.AddColumn("ID Nat");
      arr.AddColumn("Rat Nat");
      arr.AddColumn("K");
      arr.AddColumn("Available");
}



Fantastic... Shocked
It is very easy. Only one stupid problem. I used
#define "editmask.lay"

but the compiler didn't see it. So I tried
#define LAYOUTFILE <tabs/Tab1Layout.lay>

with no result. At the end I tried
#define LAYOUTFILE "c:\MyApps\tabs\editmask.lay"

and works. Do you know how to fix this problem?
Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to combine two widget-class in the topwindow
Next Topic: Getting data in a row of ArrCtrl
Goto Forum:
  


Current Time: Wed May 15 13:26:31 CEST 2024

Total time taken to generate the page: 0.03414 seconds