[Gambas-user] Hand drawn WebButton using WebDrawingArea and gradients

Bruce Steers bsteers4 at gmail.com
Tue Aug 23 18:47:59 CEST 2022


Bwahahahaha  IT'S ALIIIIVE!!!!!!
hehe.

Finally i have a hand made web button (supreme respects to Ben for all he's
done with WebDrawingArea)

All i was missing was Paint.FillText and Paint.Font So i've implemented my
own for now.

My FillText() implementation sucks as I have no Align property and also
there is no no way to get the length of a text string in the client browser.

"Best guess" method for now.

but got a working (ish) button here with the old black/white border
switching for pressed state effect. a Text property and gradient fill bg.
http://bws.org.uk/cgi-bin/WebDrawingArea.gambas

Respects.
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220823/633c1cde/attachment.htm>


More information about the User mailing list