Re: Newbie: non-modal dialog boxes, multi-line text fields
Re: Newbie: non-modal dialog boxes, multi-line text fields
- Subject: Re: Newbie: non-modal dialog boxes, multi-line text fields
- From: David Simerly <email@hidden>
- Date: Sat, 27 Apr 2002 16:18:55 -0700
- Url: http://www.digital-native.com
on 4/26/02 7:44 PM, Michael Kelly at email@hidden wrote:
>
First, is there a way I can make a dialog box non-modal? All the examples
>
I've seen have only used modal dialog boxes, which are a bit of a pain to
>
deal with.
>
Not with any of the standard UI commands in AS (display dialog, choose from
list, and so on).
>
>
Second, how can I put multi-line text input fields in a dialog box?
>
Specifically, can I specify the height and width of some such field? I've
>
never done any "real" Macintosh programming, so I'm not sure what the rules
>
are regarding which UI widgets can go in what (i.e., if it's even possible
>
to stick a multi-line text field into a dialog), but it seems logical enough
>
(someone please enlighten me if it's not).
>
Well, there9s always this ancient work-around (still works in OS X):
-- begin example
>
set usr_entry to display dialog "Please enter your address:" default answer
>
addrTmplt()
>
>
on addrTmplt()
>
return "Full_Name
>
Street
>
Street2
>
City, ST Zip
>
Country"
>
end addrTmplt
-- end example
>
Am I trying to do too much user interaction with AS? Should I just give in
>
and learn C?
Depends on what you9re trying to do. If you9re trying to make a full
functioning application with user preferences, document types, and so forth,
then yes, you9ll probably want to look at AS Studio (definitely easier than
C). But if you9re just doing something like having the user enter an address
in a field and then making an entry in your e-mail program9s address book
(which obviously wouldn9t require non-modal dialogs), then AS Studio would
probably be overkill; still a handy tool to learn though.... HTH.
DS
______________________________________
Digital Native
Your guide through the virtual jungle.
______________________________________
3There are some that only employ words for the purpose of disguising their
thoughts.2
-- Voltaire, philosopher (1694-1778)
_______________________________________________
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.