[Gambas-user] WebDrawingArea having trouble getting / setting size
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>
> 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
> 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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User