[Gambas-user] WebDrawingArea having trouble getting / setting size

Bruce Steers bsteers4 at gmail.com
Thu Aug 25 15:11:28 CEST 2022


On Thu, 25 Aug 2022 at 13:41, gian via User <user at lists.gambas-basic.org>
wrote:

> Il 24/08/22 11:20, Bruce Steers ha scritto:
> > Hi all
> > So i'm trying to make a custom button using WebDrawingArea
> >
> > Everything seemed to mostly work (had to manually set width as it did
> > not detect it just height. but was okay once set)
> >
> > Next i copied the code into another doc and made it Inherit WebControl
> > and modified to work.  but it doesn't :(
> > Now it cannot get the width again.
> > Paint.Width remains 0 thus messing up my drawing commands :(
> > Any ideas?
> >
> > Many thanks
>
>
> Hi,
>
> If I run your program I get the error:
> 'Unknown symbol Font in class Paint'
>

Commenting out lines 85-90 of the WebBrushButton.class where the text is
done will fix it :)

Thanks again
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220825/ab97776d/attachment.htm>


More information about the User mailing list