Feature #3246 2007-03-19 23:23

anwender4711

wxSmith: Enhanced creation of forms

I defined some custom controls using wxPanel in wxSmith putting some other controls on it. For some of the controls I need to pass for example the size to the constructor of the panel. With wxGlade it is possible, because the constructor of the panel doesn't contain a Create(parent,id,...) call. The disadvantage of this approach is, that if you change some of the paramters which in wxSmith are passed to the Create() call, these parameters can only be changed in the generated constructor code, which is not managed as in wxSmith. A solution could be, that for example for the position I could choose between default position, static position and variable name. For the last case the generated code for a panel would look like this:

class MyPanel(wxWindow* parent, wxWindowID id, const wxPoint& pos) { //(*Initialize(MyPanel) Create(parent,id,pos,...) ... //*) }

This could be done for wxFrame and wxDialog, too.

Category
RAD
Status
Closed
Close date
2007-09-13 20:17
Assigned to
byo
byo 2007-09-13 20:17

This feature has been implemented in SVN. Thank you.