Disabling an Option Menu item
janschenkel at yahoo.com
Fri Apr 18 13:38:00 EDT 2003
--- Edwin Gore <edgore at shinra.com> wrote:
> Is it possible? I am letting a user import a
> delimited text file, then I snag the first line of
> it and display each item with an option menu
> underneath it. Each item on the option menu maps to
> a field on a card. When the user selects an item
> from the menu (thereby mapping that item from the
> text file to a card field) I want to disable that
> menu item, so the user can only map one field in the
> text file to one field on the card.
> When I try this, I just get a paren in front of the
> item, and it remains selectable.
> I can't use a compbo box, because the user isn't
> allowed to type anything in, I can't use a pop-up or
> drop down menu because I want the user's selction to
> remain beneath the field they are mapping...
> I'm at a loss.
Sad to say it's a known issue with Option menus in
Windows ; you can't include a divider line either.
As a workaround, I've used a field in conjunction with
a popup-menu. Or you could
set the lookAndFeel to "Macintosh"
in which case you'll get the disabled lines, but
that's not a real solution.
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
More information about the Use-livecode