[Gambas-user] Hand drawn WebButton using WebDrawingArea and gradients
Bruce Steers
bsteers4 at gmail.com
Tue Aug 23 19:02:00 CEST 2022
On Tue, 23 Aug 2022 at 17:47, Bruce Steers <bsteers4 at gmail.com> wrote:
> 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
>
also gotta work out how to disable the browsers default right click menu
for canvas that gives "save image" options if possible for this kind of use.
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220823/27dfba1a/attachment.htm>
More information about the User
mailing list