THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/02/2005 at 11:09, xxxxxxxx wrote:
Rui, thanks for the compliment.
If AddItem() is not working, then I don't know if there is a way to do it programmatically in COFFEE. As you say, the ListView class in C++ has similar methods to ComboBox in COFFEE but utilizing BaseContainers, but there is no ListView class in COFFEE, so there's no way to connect the dialog element to your code. There isn't even a way to add a ListView to a dialog from within COFFEE (except through a dialog resource, obviously).
You could experiment with different SetXXX() methods using the ListView ID and see if something gets through. I checked on BaseContainer, but there are a limited set of classes (none dialog related) which Set/Get them.
My only other suggestion is to try a scrollable group with one column (rows, that is) of text buttons. Then use LayoutFlushGroup() and LayoutChanged() to append/insert/remove list 'items' (i.e.: text buttons). This would be similar to the C++ example that creates a DynamicGroup.