Mouse down on a field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Mouse down on a field
ciao all,
I've 10 grouped text fields, I would like to put the text of the one clicked into another field. it's possible to do without repeat the code of handler mouseDown of each field.
thanks
franco
I've 10 grouped text fields, I would like to put the text of the one clicked into another field. it's possible to do without repeat the code of handler mouseDown of each field.
thanks
franco
Re: Mouse down on a field
Hi Franco,
Put your mousedown handler in your group script
You can use also "behavior"
Best regards
Jean-Marc
Yesit's possible to do without repeat the code of handler mouseDown of each field

Put your mousedown handler in your group script
You can use also "behavior"
Best regards
Jean-Marc
https://alternatic.ch
Re: Mouse down on a field
Hi.
Please check out the "target" function in the dictionary. It will amaze you. I am sure you can take it from there, also using Bernd"s suggestion about placing your handler in the group script.
Craig Newman
Please check out the "target" function in the dictionary. It will amaze you. I am sure you can take it from there, also using Bernd"s suggestion about placing your handler in the group script.
Craig Newman
Re: Mouse down on a field
HI Jean-Marc, Craig
yes me too was thinking about to put code in the group script, the problem was what code............. answer target is the solution.
many thanks
franco
yes me too was thinking about to put code in the group script, the problem was what code............. answer target is the solution.
many thanks
franco
Re: Mouse down on a field
Hi.
For your original question:
Or even better:
Now you must go back to the dictionary and tell us what the difference is between the function "the target" and the keyword "target" is.
Craig
For your original question:
Code: Select all
Put the value of the target into fld "yourOtherField"
Code: Select all
Put target into fld "yourOtherField"
Craig
Re: Mouse down on a field
yes I saw, I've used the keyword "target" because my need is to show the contents of the clicked field. quote from the Dictionary:dunbarx wrote: ...
Now you must go back to the dictionary and tell us what the difference is between the function "the target" and the keyword "target" is.
Craig
"Specifies the text contents of the field which was the target of the message currently being handled." and more:
"Use the target keyword to access the contents of the field named in the target function."
while the function "the target" "Returns the object which received the message that started execution." and could be used to make actions and events with that object.
so I've understood
franco
P.S.:
I've used "Answer" because it is an automatic window, open and close in a line of code
f
Re: Mouse down on a field
Franco.
Exactly so. These are so powerful and convenient.
Craig
Exactly so. These are so powerful and convenient.
Craig