[Q] When to get the size of a window ?

Hi,

I have a window that adjust it-self to its content size, and I try
to get the size of the window once it have been realized but the
size given by PtAreaWidget et PtDimWidget are not correct in the
Realized CB or Opening CB … When is the best moment to get it ?

Thanks,

regards

jean-louis

Hello,

Depending on the call you are using you might be getting the whole window size including the border. If you want to get the canvas size of the widget you could use the PtCalcCanvas( ).

Regards,
Dave B.


Jean-Louis Villecroze <jlv@kirilla.com> wrote:

Hi,

I have a window that adjust it-self to its content size, and I try
to get the size of the window once it have been realized but the
size given by PtAreaWidget et PtDimWidget are not correct in the
Realized CB or Opening CB … When is the best moment to get it ?

Thanks,

regards

jean-louis