[Gambas-user] webhtml click event

Mayost Sharon sharon at 455.co.il
Sun Mar 5 22:17:37 CET 2023


Hello

first thanks

In GTK or QT, controls that are views also have a click event, sometimes you need events on a view as well

I can't use the WebButton for example:
I want the label of the button to be aligned to the left side

I am attaching an example file in which in WEBHTML I manage to align the caption to the left

Thanks again

---------- Original Message -----------
From: Benoit Minisini <benoit.minisini at gambas-basic.org>
To: user at lists.gambas-basic.org
Sent: Sun, 5 Mar 2023 19:45:48 +0100
Subject: Re: [Gambas-user] webhtml click event

> Le 05/03/2023 à 15:02, Mayost Sharon a écrit :
> > And also is there a good reason that there are no click events in all the gb.web.gui controls
> >
> 
> Yes, Logic.
> 
> If a control is for displaying, it can't any event related to user 
> interaction. Otherwise it will not be a display-only control.
> 
> Why do you want to add a "Click" event to all controls? Why don't you 
> use a WebButton is that case, customizing its look with css?
> 
> -- 
> Benoît Minisini.
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
------- End of Original Message -------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: html_click2.zip
Type: application/zip
Size: 18998 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230305/e90f0faa/attachment-0001.zip>


More information about the User mailing list