Recent

Author Topic: Shortcut Selection for Users  (Read 412 times)

diogenes

  • Jr. Member
  • **
  • Posts: 61
    • http://members.chello.at/diogenes
Shortcut Selection for Users
« on: May 29, 2024, 06:30:46 am »
I want to code into the options dialogue of my current project that the user can select his own shortcuts for the actions.
Now there is this shortcut selection dialogue for the ShortCut property of many LCL components. I'd like to use it for my project so that I don't have to do my own.
Please tell me how I can access it.

Thaddy

  • Hero Member
  • *****
  • Posts: 14823
  • Censorship about opinions does not belong here.
Re: Shortcut Selection for Users
« Reply #1 on: May 29, 2024, 07:18:11 am »
The sources? Strange question. Lazarus comes with the sourcecode.
bitrate is always calculated like this:sample rate * bitdepth * number of channels.

diogenes

  • Jr. Member
  • **
  • Posts: 61
    • http://members.chello.at/diogenes
Re: Shortcut Selection for Users
« Reply #2 on: May 29, 2024, 07:27:59 am »
Of course in the sources, but I have no idea idea how to find it there.

cdbc

  • Hero Member
  • *****
  • Posts: 1238
    • http://www.cdbc.dk
Re: Shortcut Selection for Users
« Reply #3 on: May 29, 2024, 07:37:24 am »
Hi
Hmmm, try looking at 'TAction' & 'TActionList' or 'TMenuItem', to see how they implement this stuff...
edit: Ctrl + left-click in the code-editor
Regards Benny
« Last Edit: May 29, 2024, 07:39:49 am by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018