Underline first letter
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Underline first letter
Hi all,
Is there a way to underline the first character of a button's label ? In this case, an underlined 'N' at the beginning of 'Next' would indicate to the user that a keyboard shortcut is available (Ctrl + N).
Is there a way to underline the first character of a button's label ? In this case, an underlined 'N' at the beginning of 'Next' would indicate to the user that a keyboard shortcut is available (Ctrl + N).
Re: Underline first letter
Hi CAsba,
looks like we cannot have this in a button LABEL, only for the text of fields.
You need to "fake" something like this with an extra field or another button or whatever.
Or just use a FIELD with a script instead of a button.
Best
Klaus
looks like we cannot have this in a button LABEL, only for the text of fields.

You need to "fake" something like this with an extra field or another button or whatever.
Or just use a FIELD with a script instead of a button.
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 10141
- Joined: Fri Feb 19, 2010 10:17 am
Re: Underline first letter
Not that I can see.
My way of dealing with this is to use images-as-buttons.
My way of dealing with this is to use images-as-buttons.
-
- Livecode Opensource Backer
- Posts: 10141
- Joined: Fri Feb 19, 2010 10:17 am
Re: Underline first letter
Kalus's idea is OK up to the point that when you take your pointer over the field the cursor will change to an 'insert'.
So, I'd set up a field to look like the sort of button I want and then import a snapshot of it so you have an image looking exactly the way you want.
So, I'd set up a field to look like the sort of button I want and then import a snapshot of it so you have an image looking exactly the way you want.

Re: Underline first letter
Oh, come on, of course I presume that the field will be set up correctly to act as a button (locktext = TRUE etc...)richmond62 wrote: ↑Fri Aug 29, 2025 11:25 amKalus's idea is OK up to the point that when you take your pointer over the field the cursor will change to an 'insert'.
...
P.S.
A propos: Kalus
Are you lefthanded?
I am and also do this sometimes, since my left hand is obiously faster than my right one.

-
- Livecode Opensource Backer
- Posts: 10141
- Joined: Fri Feb 19, 2010 10:17 am
Re: Underline first letter
No, not lefthanded, just cackhanded. 

-
- Livecode Opensource Backer
- Posts: 10141
- Joined: Fri Feb 19, 2010 10:17 am
Re: Underline first letter
One of the annoying things is that IF one uses a field as a faux button, and the text is BOLDED, on underlining the first letter of that text that letter is de-BOLDED:
- -
UNLESS one is careful to REITERATE the BOLDING:
-
- -
UNLESS one is careful to REITERATE the BOLDING:
-
Re: Underline first letter
Much ado about little.
Craig
Craig