Re: Drag and drop into a window
Re: Drag and drop into a window
- Subject: Re: Drag and drop into a window
- From: Emmanuel <email@hidden>
- Date: Tue, 12 Jul 2005 02:07:35 +0200
Oddly enough, I did not get that mail through AS-Users, so I'm
replying off-list.
I downloaded Smile and read through documents for Applescript.
One thing I couldn't do was to find code example of drag-and-drop.
Smile nicely implements drag-and-drop feature.
I searched the package contents of Smile but could not find the script file
that implements actual drag-and-drop, namely "on drop" function definition.
I have difficulties to fully understand the page
http://www.satimage.fr/software/en/dialog_drag_drop.html
in that I cannot give drag-and-drop feature to a dialog window.
My understanding is that to make a text box drag-and-drop capable I
have to add the
property «class flav»:"hfs " to it. But I don't know how to do this.
I opened object eXpert and add this property in pull down menu but
this property
is not saved.
Only a few of Smile's widgets for dialogs are able of drag and drop.
Those are (in the Controls palette): the three with an icon in the
bottom of the left column, and the list item, in the top of the right
column.
To set the «class flav», you can *always* work by script: for
instance you highlight the widget to show its index (for instance,
12), then you run (in a text window):
set x to dialog item 12 of window 2
here you are, you've got a reference to the object you want to
modify. Then you quietly run:
set «class flav» of x to {"hfs "}
(expects a list, I think.)
I said, you can *always* work by script, but here the easy way is to
use the contextual menu (only active in edit mode.)
The drag-and-drop I talked about on ASUsers is in Text windows.
I also have difficulties to edit scripts in Script Window since I
cannot select by mouse
a character or place except in line beginning.
That's a very strange and unknown symptom, at first sight. Could you
send a screenshot or/and a still more detailed explanation? Can you
confirm you are talking about a colored window?
Tell me if I can help more.
Best regards,
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden