[Gambas-user] Supped up the WebAudio.class

Benoit Minisini benoit.minisini at gambas-basic.org
Thu Jul 28 10:28:44 CEST 2022


Le 28/07/2022 à 01:23, Bruce Steers a écrit :
> 
>   How about a hidden event and use it for passing the data and firing 
> required event?
> 

Nope.

You must send the 'Position' property from the browser to the server by 
using:

     gw.update(<id>, '<property>', <value>);

Where <id> is the id of the control, <property> the name of the 
property, and <value> its value.

Then you handle that message on the server in the '_UpdateProperty' 
hidden method of the control.

Look at the source code of 'WebTextBox' to see how the 'Text' property 
is updated when the text changes on the browser.

Once you have updated the property, you can raise the 'Position' event.

Regards,

-- 
Benoît Minisini.


More information about the User mailing list