Page 1 of 1

embeded pictures px area

Posted: Friday 13th October 2023 8:59am
by pentilisea
Hi there,
I wonder, if there are methods to define a px area on/in an immage and assign it to an action.

For example, if a picture shows a colored square and the user ckicks on it something should hapen - a value would be assigned or raised or being stored in variables or treated in a procedure ...

Thanks for any hint. I'm adding a picture I'm pondering about ...

Klaus

Re: embeded pictures px area

Posted: Friday 13th October 2023 9:42am
by cogier
I think the best way to do this is with Labels. Have a look at the attached code that I have started. Hopefully it will help you.
Test-0.0.1.tar.gz
(12.98 KiB) Downloaded 286 times

Re: embeded pictures px area

Posted: Friday 13th October 2023 10:23am
by vuott
pentilisea wrote: Friday 13th October 2023 8:59amif there are methods to define a px area on/in an image and assign it to an action.
I :? think this page from the Italian forum Wiki may help you:

https://www.gambas-it.org/wiki/index.ph ... rettangoli

Re: embeded pictures px area

Posted: Friday 13th October 2023 5:57pm
by pentilisea
Thanks guys, will report when I looked at your suggestions. May take some time.
The italien code appears to be promissing.
For the other code regarding labels I need to switch to my linux box.

So, many thenks
Klaus