[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Width and Height values of a WebDrawingArea (or a web object in general)


On Wed, 3 Sept 2025 at 19:08, Linus <olivier.cruilles@xxxxxxxx> wrote:

> Hello,
>
> I would like to know what is the Width and Height of a WebDrawingArea
> (gb.web.gui) in the way to create/draw inside it using the dimension of
> this WebDrawingArea.
>
> Unfortunately when I try  WebDrawingArea1.Width or WebDrawingArea1.Height
> I always get an empty response.
>
> Someone know how I could get this information please ? Did I missed
> something
>
> Thank you
>
>
> Olivier
>

Inside the WebDrawingArea_Draw event you should be able to use Paint.Width
and Paint.Height properties.

Respects
BruceS