User forums > Using Code::Blocks

wxSmith dataobjects for controls

<< < (2/2)

byo:
Ok, I hope I've understood you well :).
I quess that you prepare some wxArrayString before window is being created and than want to add it to wxChoice. As long as this list is static (it's always the same no matter what), there's no use adding it through array and you may specify all inside wxSmith.

If the sting list is dynamic (it changes during program execution), you have to add it manually, either by adding your own code into constructor or by using the "additional code" property (just put ChoiceVariable->Append(YourArray); there). If you additionally want the wxChoice to dynamically change it's content while window is shown, this also has to be handled manually.

Hope that now it's clear :)

Regards
  BYO

frithjofh:
many thanks, that was exactly the information i needed, indeed i have some content for the wxChoice which must be able to change dynamically...

thanks a lot...

i think tomorrow ill bug you with something else, but i can imagen, and this evening i will harness and find out about something similar:

those validator-objects which can go into some constructors, as wxTextCtrl... having read what you posted i think this will do also or manually or by the aditional code line...

regards and thanks  :D

frithjofh

Navigation

[0] Message Index

[*] Previous page

Go to full version