Hi there
I try to use the group an an object (object oriented programming). In the group is an image and a label. How can I change after a mousedown on the group the forecolor for only that label? I have cloned the group many times, how can I know the id of the label in the clicked group?
Best
Fredi
group as object
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: group as object
Hi Fredi,
If the backgroundbehavior of the group = false, the command set backgroundcolor of fld "myLabel" of the clicked group only.
I hope this help
Best regards
Jean-Marc
If the backgroundbehavior of the group = true, the command set the backgroundcolor of fld "myLabel" of each groups placed.In the group is an image and a label. How can I change after a mousedown on the group the forecolor for only that label?
If the backgroundbehavior of the group = false, the command set backgroundcolor of fld "myLabel" of the clicked group only.
Code: Select all
on mouseup
set the backgroundcolor of fld "myLabel" to red
end mouseup
how can I know the id of the label in the clicked group
Code: Select all
put the short id of the target into MyId
Best regards
Jean-Marc
https://alternatic.ch
Re: group as object
Hi Jean-Marc
Thank you, that helps.
Thank you, that helps.