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 » U++ community news and announcements » 2022.3
Re: 2022.3 [message #59476 is a reply to message #59474] Tue, 03 January 2023 16:44 Go to previous messageGo to previous message
Satervalley is currently offline  Satervalley
Messages: 18
Registered: December 2022
Promising Member
1st, in my TopWindow derived class's constructor,I add 2 columns:
	PopUpTable& pt = dlFields.ListObject(); // dlFields ref to DropList
	pt.AddColumn("Name");
	pt.AddColumn("Type");

2nd, when I got the database fields info:
	dlFields.Clear();
	PopUpTable& pt = dlFields.ListObject();
	for(auto i = 0; i < vFields.GetCount(); i++) // vFields is a Vector of String contains field names 
	{
		dlFields.Add(vFields[i]);
	}
	for(int i = 0; i < vFieldsType.GetCount(); i++) // vFieldsType is a Vector of String contains field type
	{
		pt.Set(i, 1, vFieldsType[i]);
	}


I have to add the first column rows, then set the second column rows, the code works fine. when select a row, the first column's content of selected row is showed.

[Updated on: Tue, 03 January 2023 17:07] by Moderator

Report message to a moderator

 
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: 2022.3rc1
Next Topic: ide insert data/timestep/GUID
Goto Forum:
  


Current Time: Sat Jul 27 07:36:12 CEST 2024

Total time taken to generate the page: 0.01993 seconds