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 » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl and EditString WithDropChoice
Re: ArrayCtrl and EditString WithDropChoice [message #30629 is a reply to message #30616] Wed, 12 January 2011 22:58 Go to previous message
mirek is currently offline  mirek
Messages: 14265
Registered: November 2005
Ultimate Member
Well, as your widget has to be configured ('predefined values')

If it is possible to configure it in default constructor, do something like:

struct MyField : WithDropChoice<EditString> {
MyField() {
AddList("Predefined value 1");
....
}
}


array.AddColumn("xyz").Ctrls<MyField>();

If this is not possible, you will need to keep widgets in your own Array and use Array::SetCtrl to assign configured items to cells where you need them.

Mirek
 
Read Message icon4.gif
Read Message
Previous Topic: ClearMultisort being called after total_cols reduced to 1 [BUG?]
Next Topic: ArrayCtrl force show scrollbars
Goto Forum:
  


Current Time: Tue Jul 08 09:14:24 CEST 2025

Total time taken to generate the page: 0.05333 seconds