dynamic UI widgets at runtime

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
zambizzi
Earned some good credits
Earned some good credits
Posts: 115
Joined: Mon Jan 03, 2005 9:16 pm
Location: Boise Idaho
Contact:

dynamic UI widgets at runtime

Post by zambizzi » Sun Feb 13, 2005 1:06 am

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

Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

Post by Cursor » Sun Feb 13, 2005 9:21 am

You probably want to use wxSizer (and co) features.

Look at wxWindow::Fit to.

Post Reply