Hi, I have like this application with 4 tab views and 3 of them have a drop box… but I want to do different actions with the different drop boxes. Is this possible somehow ? can I use the a handler more than once ?
Thanks
Hi, I have like this application with 4 tab views and 3 of them have a drop box… but I want to do different actions with the different drop boxes. Is this possible somehow ? can I use the a handler more than once ?
Thanks
Hi,
of course you can use a handler more than once.
All handlers have a parameter like theObject to identify the sender
But I mean:
On clicked theObject
end clicked
On clicked theObject
end clicked
and not :
On clicked theObject
if name of theObject = "test" then
--Do stuff
else if name of theObject = "this ain't a test" then
--Do other stuff
end if
end clicked
Or am I completely understanding you wrong ?
I see, no, you can use only the second version. But what’s wrong with filtering the sender?
Do you mean this ?
if name of theobject = "test" then
--123
else if name of theobject "test2" then
--123
end if
Is that possible with all handlers ? (with all I just mean, clicked, toolbar and drop ) ?
Thanks for your relpies so far!
yes, it’s possible with all handlers which have a theObject parameter
Oh, thanks, I’ll try it… thought it wasn’t possible with the drop handler and some others…
Take a look at the Drag&Drop sample project in /Developer/Examples/AppleScript Studio/Drag and Drop/ to customize drag&drop