Re: choose from list
Re: choose from list
- Subject: Re: choose from list
- From: Matthew Smith <email@hidden>
- Date: Sun, 24 Mar 2002 18:17:52 +1100
on 24/03/2002 16:06, Paul Berkowitz at email@hidden wrote:
>
choose from list {"a", "b", "c"} with prompt "Select one:" with empty
>
selection allowed
>
>
Although 'empty selection allowed' is true, there is no way to de-select an
>
item once you've selected one. You can only change it to another selection,
>
or Cancel.
In this instance you could add an extra item to the list that signifies
neither a, b or c (ie. none of the above). The logic would still make sense,
only if you gave it a default value.
>
choose from list {"a", "b", "c"} with prompt "Select one:" with empty
>
selection allowed and multiple selections allowed
>
>
Now you can se-select any number of choices via command-click, even back to
>
'empty' (nothing selected), then click OK.
You couldn't add a 'none of the above' item when multiple selection is
allowed as you could select it and one of the other items. The logic falls
over. In this case you would have to be allowed to select none.
>
I think you should always be able to command-click to de-select back to no
>
selection when 'empty selection allowed' is true.
If the command is going to allow you include 'empty selection allowed' when
you can only choose one item then it should allow you to deselect the
selected item. Personally I would probably not program the code that way. I
would use the 'none of the above' item approach. It is a lot easier for the
user to know they can select that item than they would know that you could
deselect the selected item. In the 'multiple selection' case it is a little
more obvious.
--
Matthew Smith
_______________________________________________
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.