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 » How to Xmlize gridctrl
How to Xmlize gridctrl [message #44624] Sun, 26 April 2015 15:58 Go to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hi all,
I have some problem trying to xmlize my gridcrtl.

here is where i define my gridctrl:
BulloniCtrl::BulloniCtrl()
{
	// Carica DropList
	LoadDroplList();
	
	//Geometria
	alfa.SetInc(1).Min(0).Max(90);
	
	geomGrid.SetToolBar();
	geomGrid.Editing().Accepting().Canceling();
	geomGrid.EvenColor().ColoringMode(2);
	geomGrid.AddColumn(MAT_ID, t_("Materiale"));
	geomGrid.AddColumn(SP_ID,  t_("Spessore")).Fixed(60).Edit(sp);
	geomGrid.AddColumn(UM_ID,  t_("UM")).Fixed(35);
	geomGrid.AddColumn(CDR_ID, t_("Classe di resistenza")).Fixed(100).Edit(CdRdl);
	geomGrid.AddColumn("alfa", t_("Angolo α")).Edit(alfa);
	geomGrid.WhenChangeRow = THISBACK(Loadcdrdl);
	geomGrid.WhenAcceptedRow = THISBACK(OnGeometriaEdit);
	geomGrid.AddRow("Legno - t1:", "", "mm", "", 90);
	geomGrid.AddRow("Legno - t2:", "", "mm", "", 90);
	GetGridRows(geomGrid);
	
	//Connettore
	bullonedl	 	<<= THISBACK(OnBulloneEdit);
	CdRAcciaiodl	<<= THISBACK(Getfuk);
	fukEdit 		<<= THISBACK(OnfukEdit);
	Getfuk();
        .....


and here how I try to save it:
virtual void Xmlize(XmlIO xml)
	{
		ConnettoriCtrl::Xmlize(xml);
		xml
			("Geometria", 		geomGrid)
			("Connettore1", 	bullonedl)
			("Connettore2", 	passEdit)
			("Connettore3", 	AresEdit)
			("Connettore4", 	CdRAcciaiodl)
			("Connettore5", 	fukEdit)
			("RopeEffect1",		ropeOption)
			("RopeEffect2",		ArondellaEdit)
		;
	}


There are 2 variables I'm not able to xmlize and they are "sp" and "CdRdl" btw I have no problems with others columns. Someone can try to explain me where I am wrong???

Regards,
Matteo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Starting a top window hidden?
Next Topic: How does one position the mouse cursor?
Goto Forum:
  


Current Time: Mon Apr 29 00:06:42 CEST 2024

Total time taken to generate the page: 0.06778 seconds