1. wxTextCtrl in wxDialog

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 ) 
new topic     » topic index » view message » categorize

2. Re: wxTextCtrl in wxDialog

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: wxTextCtrl in wxDialog

Thanks Greg. That'll work.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu