How to avoid/change shortcuts for buttons in dialog

Keyboard macros or custom scripts

How to avoid/change shortcuts for buttons in dialog

Postby Davte » Mon Sep 26, 2016 12:33 pm

When I add a button (or even fixed text), manually or at runtime, in a dialog, a letter gets underlined and becomes shortcut for that key (see picture).
Image
Often it's useful, but I would like to manage this process and be able to set it off.
I x-rayed the whole object but couldn't find a property or method with a suggestive name, so I'm asking if anyone knows the name of the property/method and eventually how it works and how to interfere.
Thank you in advance,
Davide
OpenOffice 4.1.2 on Windows 10
Davte
 
Posts: 16
Joined: Sat Sep 10, 2016 11:29 pm
Location: Italy

Re: How to avoid/change shortcuts for buttons in dialog

Postby JohnSUN-Pensioner » Mon Sep 26, 2016 12:51 pm

Just use tilda (~) to define one character of the label as a mnemonic
I may not have a lot to give but what I got I'll give to you...
Apache OpenOffice 4.1.4, LibreOffice 5.4.2.2 (x64) on Windows 7
If you think that I did not answer your question, make allowances for my imperfect English
User avatar
JohnSUN-Pensioner
Volunteer
 
Posts: 760
Joined: Fri Jan 14, 2011 1:21 pm
Location: Kyiv, Ukraine

Re: How to avoid/change shortcuts for buttons in dialog

Postby Davte » Mon Sep 26, 2016 1:29 pm

Thank you a lot! This was useful for changing the underlined letter. What if I want to prevent any letter to be underlined (i.e. no shortcut for this button)?
OpenOffice 4.1.2 on Windows 10
Davte
 
Posts: 16
Joined: Sat Sep 10, 2016 11:29 pm
Location: Italy


Return to OpenOffice Basic, Python, BeanShell, JavaScript

Who is online

Users browsing this forum: No registered users and 4 guests