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   |
Satervalley
Messages: 20 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
|
|
|
 |
|
2022.3
By: mirek on Thu, 29 December 2022 09:26
|
 |
|
Re: 2022.3
By: Tom1 on Thu, 29 December 2022 10:16
|
 |
|
Re: 2022.3
By: zsolt on Thu, 29 December 2022 11:15
|
 |
|
Re: 2022.3
By: Klugier on Thu, 29 December 2022 11:43
|
 |
|
Re: 2022.3
By: unodgs on Thu, 29 December 2022 23:20
|
 |
|
Re: 2022.3
By: Lance on Fri, 30 December 2022 00:47
|
 |
|
Re: 2022.3
By: Oblivion on Fri, 30 December 2022 04:37
|
 |
|
Re: 2022.3
|
 |
|
Re: 2022.3
By: Klugier on Fri, 30 December 2022 18:44
|
 |
|
Re: 2022.3
|
 |
|
Re: 2022.3
By: mirek on Sun, 01 January 2023 16:48
|
 |
|
Re: 2022.3
|
 |
|
Re: 2022.3
By: mirek on Tue, 03 January 2023 10:35
|
 |
|
Re: 2022.3
|
 |
|
Re: 2022.3
By: mirek on Tue, 03 January 2023 23:26
|
 |
|
Re: 2022.3
By: mdelfede on Wed, 04 January 2023 10:22
|
 |
|
Re: 2022.3
By: mirek on Wed, 04 January 2023 11:36
|
 |
|
Re: 2022.3
By: mdelfede on Wed, 04 January 2023 16:10
|
 |
|
Re: 2022.3
|
Goto Forum:
Current Time: Fri Apr 25 21:33:56 CEST 2025
Total time taken to generate the page: 0.03469 seconds
|