1. wxEuphoria Centre (Center)

OK, after 45 minutes of looking through docs and trying various combinations I'm throwing in the towel ...

How do I create a window/frame and center it on the screen? It would appear from my reading that I simply add the 'style' in the definition and after the positioning and size parameters but it complains loudly about that.

TIA.

Tom

new topic     » topic index » view message » categorize

2. Re: wxEuphoria Centre (Center)

tbohon said...

OK, after 45 minutes of looking through docs and trying various combinations I'm throwing in the towel ...

How do I create a window/frame and center it on the screen? It would appear from my reading that I simply add the 'style' in the definition and after the positioning and size parameters but it complains loudly about that.

I think the correct way is to call wxFrame::Centre, which is not currently wrapped in wxEuphoria.

Matt

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

3. Re: wxEuphoria Centre (Center)

Certainly could be. I went through the wxeud.e file and found several references to horizontal and vertical center constants but maybe it isn't implemented yet or at least it's implemented in something different than the 4215.36 ways I tried to use them ... smile

Thanks.

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

4. Re: wxEuphoria Centre (Center)

tbohon said...

Certainly could be. I went through the wxeud.e file and found several references to horizontal and vertical center constants but maybe it isn't implemented yet or at least it's implemented in something different than the 4215.36 ways I tried to use them ... smile

I think those are used for other controls that get aligned in various ways. Top level windows (frames) are different in a lot of ways.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu