1. wxDialog - bug
- Posted by Jerry Story <story.jerry at g?a?l.com> Mar 08, 2008
- 584 views
- Last edited Mar 09, 2008
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
2. Re: wxDialog - bug
- Posted by Matt Lewis <matthewwalkerlewis at gm??l.com> Mar 09, 2008
- 584 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 )
3. Re: wxDialog - bug
- Posted by Jerry Story <story.jerry at g?a?l.com> Mar 09, 2008
- 583 views
Matt Lewis wrote: > > 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: Oops, I didn't make myself clear. What I meant was the documentation is correct but the performance is not. x,y determine position, docs correctly say size cx,cy determine size, docs correctly say position