Re: wxDialog - bug
- Posted by Matt Lewis <matthewwalkerlewis at gm??l.com> Mar 09, 2008
- 583 views
Jerry Story wrote: > > from the documentation: > > Creation Parameters > parent > id > title > x [= -1] > y [= -1] > cx [= -1] > cy [= -1] > style [= wxDEFAULT_DIALOG_STYLE] > > x,y are position, should be size > cx,cy are size, should be position No, the docs are correct. They agree with the official documentation: http://www.wxwidgets.org/manuals/stable/wx_wxdialog.html#wxdialogctor ...as well as the source code. Here's a small test:
include wxeud.e constant main = create( wxDialog, {0, -1, "Test Dialog", 10, 10, 200, 50}), second = create( wxDialog, {0, -1, "Dialog 2", 200, 50, 100, 100}) show_window( second, 1 ) wxMain( main )