Re: How do you build GUIs in Smile? (was Re: Plotting question)
Re: How do you build GUIs in Smile? (was Re: Plotting question)
- Subject: Re: How do you build GUIs in Smile? (was Re: Plotting question)
- From: Andy Wylie <email@hidden>
- Date: Thu, 22 Aug 2002 21:50:19 +1200
on Thu, 22 Aug 2002 18:13:25 +1000 Timothy Bates wrote:
>
> on Thu, 22 Aug 2002 10:14:29 +1000 Timothy Bates wrote:
>
>> (who is discovering that Smile has really entered a new realm...
>
>> They just need to include a drag and drop UI editor and we have a workable >
>
> > Hypercard substitute.)
>
>
>Andy
>
> It's had one for many revisions, see scripts:development:dialogs:palette
>
>
Yes: but how do use the thing? I can make a dialog, but I have no idea how
>
to attach scripts to the items or what/how it generates events.
>
Run the 'new dialog' script and drag a button onto it, command option click
the dialog and paste this into the script window...
on click in theDlog item number i
set theWind to first window whose class is in {text window, script
window}
set w to selection of theWind as text
if i = 1 then
set x to "{" & w & "}"
end if
set the selection of theWind to (x)
set visible of theWind to true
end click in
close the window and press command y, select some text in a text or script
window and press the button. Study help (see intro for users list) and the
dialogs that ship with Smile. hint: command y toggles editing.
>
Also I can't see how to compile scripts with GUIs (independent of smile).
>
You can't but Emmanuel once threatened to implement that.
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.