wxGetMultipleChoices bug in 2.8.0rc1

Milan Babuskov milanb at panonnet.net
Tue Nov 28 13:12:17 PST 2006


Hi,

I built one of my apps. against wx2.8.0 rc1. At some places I use 
::wxGetMultipleChoices. The nice thing is that the dialog looks much 
better now with checkboxes.

However, it seems to ignore those checkboxes completely:

wxArrayInt selected_columns;
::wxGetMultipleChoices(selected_columns,
	_("Select one or more fields"),
	_("Table fields"), columns, parent));

For example, I get checklist with 5 items. If I select an item (not 
placing checkbox, but selecting - i.e. having a blue background and 
white letters) only that one is really put into "selected_columns" 
array. Otherwise, the array is empty, and

selected_columns.GetCount()

returns zero, no matter if I have some boxes checked or not.

Thanks,

P.S. If you really want to improve it, one of the nice features would be 
ability to re-order items in the checklist.

-- 
Milan Babuskov
http://www.flamerobin.org





More information about the wx-dev mailing list