Recent

Author Topic: [Solved]Underline Shortcut - Menu Item  (Read 1273 times)

marcio2003

  • Jr. Member
  • **
  • Posts: 69
[Solved]Underline Shortcut - Menu Item
« on: October 12, 2020, 12:11:31 pm »
Hi,
MainMenu and PopupMenu showing underline shortcut key in design time but it isn't showed in run time.
Thanks.
Lazarus v2.0.6 - W10-64bits
« Last Edit: October 14, 2020, 01:45:37 am by marcio2003 »
Lazarus 2.0.10 Windows 10 64bits

lucamar

  • Hero Member
  • *****
  • Posts: 4217
Re: Underline Shortcut - Menu Item
« Reply #1 on: October 12, 2020, 02:11:48 pm »
It depends on some Windows desktop setting which I don't remember ATM where it is (I'm mainly a Linux user). It has a name like "Hide menu accelerators" and it can be accessed through some screen or desktop configuration or other.

Sorry I can't be more clear :-[

The question, though, is that it's a system wide setting so there's little you can do short of drawing the menu items yourself.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

Sieben

  • Sr. Member
  • ****
  • Posts: 387
Re: Underline Shortcut - Menu Item
« Reply #2 on: October 12, 2020, 02:26:45 pm »
Lazarus 2.2.0, FPC 3.2.2, .deb install on Ubuntu Xenial 32 / Gtk2 / Unity7

lucamar

  • Hero Member
  • *****
  • Posts: 4217
Re: Underline Shortcut - Menu Item
« Reply #3 on: October 12, 2020, 02:42:05 pm »
This might as well be of interest:

https://docs.microsoft.com/en-us/windows/win32/menurc/about-keyboard-accelerators

Yes, it is! Looks like there is a message you can send to the window to always show the accelerators. That's nice to know :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

marcio2003

  • Jr. Member
  • **
  • Posts: 69
Re: Underline Shortcut - Menu Item
« Reply #4 on: October 14, 2020, 01:44:50 am »
Hi,

I found this:

https://itonlineblog.wordpress.com/2018/07/12/guias-it-online-como-ativar-o-sublinhado-das-teclas-de-acesso-no-windows-10/#:~:text=Já%20no%20menu%20de%20contexto,as%20aplicações%20que%20as%20disponibilizem.

Thanks for replies.
Lazarus 2.0.10 Windows 10 64bits

 

TinyPortal © 2005-2018