Disabling items in an option-style button
janschenkel at yahoo.com
Mon Aug 19 01:19:03 EDT 2002
Thanks for testing all those combinations and replying
with this info. I'm very glad it works under MacOS X.
Unfortunately, it doesn't under WinME or Win2K.
Maybe they used the Carbon routines under MacOS X
instead of displaying a field. At any rate, a
sub-stack as menu works just as well, so I'll go ahead
with that approach since it has to work on Mac+Win for
sure, Linux maybe.
--- Sarah <sarahr at genesearch.com.au> wrote:
> Two thoughts here:
> In the menu types were this is supported, you don't
> need to put the
> bracket before the dash. The dash itself is used as
> a special character
> to indicate a dividing line rather than an extra
> item. The dash on it's
> own will give you a dividing line or space.
> I have tested all the different types of menu
> buttons and this
> technique works on all except the combo box. Under
> OS X, it certainly
> works with an option menu.
> On Friday, August 16, 2002, at 08:55 pm, Jan
> Schenkel wrote:
> > Hi all,
> > In the process of preparing a conversion of an
> > existing FoxPro program to RunRev, I ran into a
> > problem.
> > Here's the deal:
> > The user can choose a country from a popup-menu
> > 14 items: the first is the selected item; the
> second a
> > disabled horizontal line; then the 10 pre-selected
> > items from the preferences; then another disabled
> > horizontal line; then the item 'Other...' which
> > displays a complete list where the user can pick
> > it's not in the 10 pre-selected items.
> > So for testing purposes i made an option menu
> > Belgium
> > (-
> > Belgium
> > Netherlands
> > Luxembourg
> > United Kingdom
> > France
> > Germany
> > Italy
> > Spain
> > Portugal
> > United States
> > (-
> > Other...
> > However, RunRev stubbornly refuses to disable the
> > horizontal lines, if you're working with an option
> > combo-box style button.
> > Admittedly, I can mimick the behaviour by building
> > substack, setting the menuName of the option
> button to
> > that substack, and have it show a
> > 'preOpenStack'-prepared version of a collection of
> > buttons and two horizontal lines.
> > But is this workaround really necessary or am I
> > missing something obvious? Btw, I'm running
> > 1.1.1r2 under WinME.
> > Jan Schenkel.
> > "As we grow older, we grow both wiser and more
> > at the same time." (De Rochefoucald)
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
More information about the Use-livecode