I've struggled my way through creating a dialog but there is still one thing I can't figure out. How do you add an accelerator to a label (i.e. underscore a letter) and then associate that label with another control, such as a text box. For example, if I press ALT+A the focus is taken to the text box adjacent to the label that has the A accelerator.
OOo 2.31 on Windows Vista
Dialog box accelerator
Re: Dialog box accelerator
AFAIK there is no API to control the accelerators. They are somehow automagic when you take care of the tab order (label before listbox).
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
-
- Volunteer
- Posts: 1160
- Joined: Mon Oct 08, 2007 1:26 am
- Location: France, Paris area
Re: Dialog box accelerator
Hi,
Just put a tilde character ( ~ ) at left of the character you want as accelerator.
______
Bernard
Just put a tilde character ( ~ ) at left of the character you want as accelerator.
______
Bernard