embeded pictures px area

Post

Posted
Rating:
#1 (In Topic #1112)
Trainee
 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

Image

(Click to enlarge)

Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
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.
Attachment
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
vuott is in the usergroup ‘Regular’

pentilisea said

if 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.php/Cliccare_in_un_oggetto_qualsiasi_o_in_una_immagine_suddivisi_in_rettangoli

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#4
Trainee
 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
Online now: No Back to the top
1 guest and 0 members have just viewed this.