[Gambas-user] WebDrawingArea having trouble getting / setting size
gian
bagoneo at libero.it
Thu Aug 25 15:48:17 CEST 2022
Il 25/08/22 15:11, Bruce Steers ha scritto:
>
>
> On Thu, 25 Aug 2022 at 13:41, gian via User <user at lists.gambas-basic.org
> <mailto: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
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
Hi,
I am not familiar with the subject but looking at the page sources it
seems that the error may be here:
gw.image.preload(['/cgi-bin/WebDrawingArea.gambas/message/error.png',
'/cgi-bin/WebDrawingArea.gambas/message/info.png',
'/cgi-bin/WebDrawingArea.gambas/message/question.png',
'/cgi-bin/WebDrawingArea.gambas/message/warning.png',
'/cgi-bin/WebDrawingArea.gambas/gw-arrow-down.png',
'/cgi-bin/WebDrawingArea.gambas/gw-arrow-left.png',
'/cgi-bin/WebDrawingArea.gambas/gw-arrow-right.png',
'/cgi-bin/WebDrawingArea.gambas/gw-arrow-up.png',
'/cgi-bin/WebDrawingArea.gambas/gw-close.png']);
gw.drawingarea.init('@1.WebDrawingArea1');
gw.image.preload(['message/error.png', 'message/info.png',
'message/question.png', 'message/warning.png', 'gw-arrow-down.png',
'gw-arrow-left.png', 'gw-arrow-right.png', 'gw-arrow-up.png',
'gw-close.png']);
gw.drawingarea.init('@1.View');
Regards
Gianluigi
More information about the User
mailing list