On Fri, 15 Oct 1999, Peter Reid wrote:

> Hi
> 
> I'm developing an app for Mac & Win that will be used on laptops
> where users want the option to use keyboard control as well as mouse
> control. I have some questions about button options:

Hi Peter,

> 1) On Win when a button is the focus object it is highlighted with a
> rectangle so you can see which button will activate as you tab across
> a set of buttons.  On the Mac there's no visible indication of
> current button - can this be made consistent with the Win version?

There is no provision for this in the Mac interface. However you may be
willing to define your own non-standard behaviour: I might suggest for
example, surrounding the current button with a custom "marquee" graphic, or
setting the default of the current button to true to give it a default
border. Depending on how non-standard you are willing to get, you could even
do something like setting the foreGroundColor (foreColor) of the current
button to a color other than black.

> 2) Can a shortcut character be set as part of the label of a button
> so the user can ALT-x (Win) or CMD-x (Mac) instead of mouse clicking?

Yes. Set the mnemonic property of your button to the number of the letter on
the button that you would like to have pressed. The modifier key will be the
default for the platform (i.e. command/alt)

You may set the accelKey of the button instead of the mnemonic, though an
exact character must be specified and the character will not be underlined
on Windows. The modifier key may be specified by setting the accelMods of
the button to the modifier key you wish to have pressed (i.e command).

The mnemonic button property will not underline the mnemonic letter on the
Mac so the accelText may be set to indicate the mnemonic. Alternatively, you
can use the Mac convention of supplying mnemonics for the first letter only
in buttons e.g. "N" for "No" and "D" for "Don't Save" etc.

Cheers,

Alan

> Thanks for any help.
>
> Peter
> --------------------------------------------------------
> Peter Reid
> Reid-IT Limited, Loughborough, Leics., UK
> Tel: +44 (0)1509 268843 Fax: +44 (0)1509 264986
> E-mail: [EMAIL PROTECTED]
> Web: http://www.reidit.co.uk

-----------------------------------------------------------------
Alan Beattie <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.

Reply via email to