Is there a way to change the string list (selections) of wxChoice once
it is created ??
I checked the wx online docs and noted there was a GetStrings() method
in one of the base classes that appears to return the current list, but
there is no equivalent SetStrings() method.
Thanks, Brendan.
I changed my google inputs and found a solution.
Either:
choice.Clear()
choice.AppendItems( newList )
choice.SetSelection(0)
or
choice.SetItems( newList )
choice.SetSelection(0)
I presume that Clear() is not required when calling SetItems(). i.e. it
is implicit.
Brendan Simon (eTRIX) wrote:
···
Is there a way to change the string list (selections) of wxChoice once
it is created ??
I checked the wx online docs and noted there was a GetStrings() method
in one of the base classes that appears to return the current list, but
there is no equivalent SetStrings() method.
Thanks, Brendan.