embeded pictures px area

New to Gambas? Post your questions here. No question is too silly or too simple.
Post Reply
pentilisea
Posts: 8
Joined: Thursday 24th February 2022 12:18pm

embeded pictures px area

Post 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
Attachments
board6.png
board6.png (50.92 KiB) Viewed 3352 times
User avatar
cogier
Site Admin
Posts: 1127
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: embeded pictures px area

Post 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 245 times
vuott
Posts: 263
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: embeded pictures px area

Post 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
Europaeus sum !

Amare memorentes atque deflentes ad mortem silenter labimur.
pentilisea
Posts: 8
Joined: Thursday 24th February 2022 12:18pm

Re: embeded pictures px area

Post 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
Post Reply