1. wxDialog - bug

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

new topic     » topic index » view message » categorize

2. Re: wxDialog - bug

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 )


new topic     » goto parent     » topic index » view message » categorize

3. Re: wxDialog - bug

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu