[AccessD] ampersand curiosity
Steve Schapel
steve at datamanagementsolutions.biz
Sat May 20 22:40:43 CDT 2023
That is great, Ryan. Many thanks.
Some of that I was aware of, i.e. using the & to create a keyboard
shortcut.
But extending the logic to using three ampersands to display one, was
something that not only escaped my imagination, but also escaped my
online searches!
Thanks again.
Regards
Steve
On 21/05/2023 1:30:05 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
>> --
>>
More information about the AccessD
mailing list