wxGridSizer

German C. Basisty german.basisty at eipsistemas.ath.cx
Tue Nov 21 08:47:04 PST 2006


Hi!

I'm (still) making some experience with wxWidgets. I'm triyng to setup a
dialog using wxGridSizer. In the .h file:

Bla bla bla..

Private:
	Enum
	{
		ID_HOST,
		ID_DB
	};

And the .cpp file looks like this:

	  wxFlexGridSizer *dialogSizer = new wxFlexGridSizer(4, 2, 10, 10);
        dialogSizer -> Add(new wxStaticText(this, -1, "Host:"), 0,
wxALIGN_CENTRE_VERTICAL);
        dialogSizer -> Add(new wxTextCtrl(this, ID_HOST), 10,
wxALIGN_CENTRE_VERTICAL);
        dialogSizer -> Add(new wxStaticText(this, -1, "DB:"), 0,
wxALIGN_CENTRE_VERTICAL);
        dialogSizer -> Add(new wxTextCtrl(this, ID_DB), 0,
wxALIGN_CENTRE_VERTICAL);

Everything is working fine. Now I desire to write some text to de
wxTextCrl's but they have no name! How should I do to call those controls
using their ID's? Is that possible?

Bests regards

Ing. Germán C. Basisty
Estudio Informático Patagónico
Consultor
tel. +54 (2942) 15 696 624
german.basisty at eipsistemas.ath.cx
http://www.eipsistemas.ath.cx






More information about the wx-users mailing list