1. wxTextCtrl in wxDialog
- Posted by evanmars Jan 13, 2015
- 1320 views
Is it not permitted to use a wxTextCtrl in a wxDialog?
If so, how do I enter multiple values in a Dialog?
This fails with a machine-level exception when the Dialog is closed:
include wxeud.e constant main = create( wxFrame, {0, -1, "", -1, -1, 200, 320}), win = create( wxPanel, main ), dlg = create( wxDialog, {main, -1, "Dialog"}), TextControl1 = create( wxTextCtrl, {dlg, -1, "", 10, 20, 50, 20} ), TextControl2 = create( wxTextCtrl, {dlg, -1, "", 70, 20, 50, 20} ), TextControl3 = create( wxTextCtrl, {dlg, -1, "", 130, 20, 50, 20} ) show_modal( dlg ) destroy( dlg ) wxMain( main )
2. Re: wxTextCtrl in wxDialog
- Posted by ghaberek (admin) Jan 13, 2015
- 1241 views
evanmars said...
Is it not permitted to use a wxTextCtrl in a wxDialog?
If so, how do I enter multiple values in a Dialog?
I don't think there's anything wrong with your dialog. The something is crashing in the library in the call to destroy().
You can probably just skip the call to destroy(). The dialog will hang out in memory until your app closes, but it won't consume very much space.
-Greg