Ecere SDK/eC Forums
http://ecere.org/community/
Print view

Resizing Windows
http://ecere.org/community/viewtopic.php?f=5&t=59
Page 1 of 1
Author:  sacrebleu [ Mon Mar 22, 2010 4:30 pm ]
Post subject:  Resizing Windows

How to resize a window?

doing this:

Code: Select all

this.clientSize = { 300, 400 };
Changed the display size but did not update the size of the mouse hot-box
The above only seemed to work in the class declaration as:
Window w { clientSize = { 300, 400 } };

In one window I have this doesn't seem to be effective and for some reason it is full screen, btw.

:ugeek:
Author:  jerome [ Fri Apr 02, 2010 10:40 am ]
Post subject:  Re: Resizing Windows

To resize a window, just do size = { 300, 400 } if you want to specify the size of the entire window including decorations, or clientSize = { 300, 400 } if you want to specify the size excluding the decorations.

I have no idea about that mouse hot-box issue, might be something to do with other windows around. I'd need to see the particular code.

As for the full screen window, would it be that you forgot to set a parent? That last Window instantiation you showed doesn't have a parent set. But then you're using the full screen mode, but I can't see why it would be bigger than 300 x 400?
All times are UTC-05:00 Page 1 of 1