[AccessD] ampersand curiosity

John Colby jwcolby at gmail.com
Sat May 20 21:28:54 CDT 2023


Correct, without the & the character will not be underlined and it will not
respond to the Alt.

On Sat, May 20, 2023 at 9:30 PM Ryan W <wrwehler at gmail.com> wrote:

> Part of ampersand in a control caption is creating a keyboard shortcut for
> a control.
>
> If you set a control's caption to &Copy, you'll see the C in the word
> "Copy" (on a button face, as an example) is underlined in normal form view,
> signalling that pressing Alt-C will perform the same action as the button
> press.
>
> If you want to show an ampersand and only an ampersand, you need to use
> three ampersands in the caption property.  If you want an ampersand and
> text, double up the ampersand.. eg: &&Copy becomes &Copy on the button
> face.
>
> On Sat, May 20, 2023 at 8:21 PM Steve Schapel <
> steve at datamanagementsolutions.biz> wrote:
>
> > Hi all.
> >
> > I haven't participated actively in this group for a while, but it's
> > great to still have the connection.
> >
> > I wanted to display a symbol on a toggle button, the symbol being a
> > character from the Webdings or Wingdings font.
> >
> > I have done this before, obviously by using the control's Caption
> > property, and it has served my purpose well.
> > (For the record, to achieve a kind of "poor man's conditional
> > formatting" on a continuous view form.)
> >
> > All good, until the Webdings character I wanted to use was the one that
> > corresponds, in a regular text character font, with the '&' character.
> > Hmmm, doesn't work.
> >
> > And then, as part of my trouble-shooting efforts, I discovered something
> > that some of you possibly know (but I didn't), that even using a regular
> > font, using a Caption of & or && does not show up on the control.
> >
> > This isn't too debilitating - I can get around it another way.  But I
> > found it curious, and wondered whether anyone has any light to shine on
> > this.  Thanks.
> >
> > Regards
> > Steve
> > --
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > https://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> >
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> https://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>


-- 
John W. Colby
Colby Consulting


More information about the AccessD mailing list