I have a large form consisting of hundreds of wxTextCtrl boxes.
I need to be able to get the wxTextCtrl objects themselfs into an array I can access.
to further complicate things I'm useing wxSmith in codeblocks to develop the GUI with. which means I can't touch the actual creation of the boxes as it overwrites them regularly.
any ideas?
is there a way to get an array of wxTextCtrl? Topic is solved
If you need an array of GUI controls, and that array is likely to go past the border of 20 elements, you should really start to think in solving it another way. 100+ controls is a real strain on the Window GUI system, most likely you will run into the limitations of how many window handles can be created.
Maybe wxGrid is a better solution? You can make an array with it, and all cells can be set to be editable, and the limit of elements in this way is virtually non existing.
- Jorgen
Maybe wxGrid is a better solution? You can make an array with it, and all cells can be set to be editable, and the limit of elements in this way is virtually non existing.
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
thanks for the replies, I didn't want to ditch the rad editor, and didn't want to use wxgrid as I might as well of made this in excell.
but the controls aren't all displayed at once. they are on several notebook pages organized and catagorized as neatly as I could.
just that reading and writeing all of them is a real pain.
but the controls aren't all displayed at once. they are on several notebook pages organized and catagorized as neatly as I could.
just that reading and writeing all of them is a real pain.
Dispayed at once or in several notebook pages does not make a difference. They are all created in one go (unless you consider creating them when the tab is selected) they are still going to put a strain on the windows GDI system
Regards,
- Jorgen
Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb