Page 1 of 1

dynamic UI widgets at runtime

Posted: Sun Feb 13, 2005 1:06 am
by zambizzi
I need to write a dialog that contains a series of horizontally-displayed UI widgets dynamically, at run-time.

What would be my best approach?

Isn't there some sort of container or panel that will auto-size them for me? That is my biggest concern, making them appear in a nice row in an attractive way.

The user will be defining what widgets show up on the dialog by entering data into a database. I'll read that data and output enough fields to handle their definition.

Thanks for the advice!

-v

Posted: Sun Feb 13, 2005 9:21 am
by Cursor
You probably want to use wxSizer (and co) features.

Look at wxWindow::Fit to.