I'm trying to figure how to make my custom control (based on static text) respond to accelerator key (delphi, which i use, names it accelchar) press. By responding i mean adding some code. Best i came up with is processing WM_SYSKEYUP and checking the caption and the character code manually. I suspect there must be a simpler and more reliable solution.
custom control sensing accelchar
127 Views Asked by miodrag At
1
There are 1 best solutions below
Related Questions in DELPHI
- How can I read the header of request to webserver
- Receiving Notifications for Individual Task Completion OmniThreadLibrary Parallel.ForEach
- Delphi - How to get result of function from QuickReport without viewing a report?
- Out of memory while adding documents to a Firebird BLOB field with Delphi
- How to MakeScreenshot fullpage on Delphi
- How to program a COM object with an IEnumerator, IEnumerable interface inside
- How to Dynamically Add Controls to Delphi Form
- How to write a string in Stringrid with DelimitedText in FMX Delphi 11
- TGrid/TStringGrid multi cell selection / multi editing in delphi firemonkey (12)
- How to localize "Today" in the Delphi TMonthCalendar?
- How can I call a SOAP webserver method in Vue.js?
- Efficiently Handling Large Number of API Calls with Delphi 10.4 and OmniThreadLibrary
- Delphi can not compile the unit create by its "XML Data Binding Wizard"
- Save Form Properties in File and then restore those Properties after reopening
- Is it possible to open a blob without saving it to file
Related Questions in KEYBOARD
- On iOS, the keyboard does not offer a 6-character SMS code
- Using javaFx, how to distinguish between return-key and enter-key on the numpad?
- Way to adding emoji to textarea with keyboard, other than copy/paste
- Win32api send message and Pydirectinput and Powertoy (Keyboard Manager ) Not working when open the application
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Xamarin android emulate usb PC Keyboard
- Pygame response to superfast human key presses?
- Why am I getting keyboard letter repeats with Chrome and not Firefox?
- python keyboard libary problem with writhing too many characters
- Wordpress keyboard navigation
- is on keyboard one side alt is more prominent than other side while using them in shortcut keys
- Preserving TextField Input After Keyboard Dismissal in Flutter
- combine KeyCode pressed and modifiers to get final KeyCode
- Shadcn Drawer component with Inputs on mobile, keyboard hides inputs or shows a blank space hiding them
- Create an onscreen swipe keyboard for Mac
Related Questions in CONTROLS
- How to control the volume of an iPhone programmatically in objective-c
- Accurately placing multiple controls in a row programmatically with dynamic table layout panel
- How to change the rule set in the qcc R package for Control Charts / Statistical Process Control
- C# Winform Change the type of row for data grid view
- How to use Complex conjugate in GEKKO
- Logging to a dynamically created WinForms control using the configuration file with log4net
- rlocus block diagram issue, k gain block before or after the summing junction for rlocus() command?
- What's git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags --set-upstream origin master:master
- C# UWP MediaPlayerElement customize TransportControls CCSelection with Choose Subtitle
- 'AutoSize=true' panel height not adjusting when labels become multiline
- .NET Maui What is wrong with this custom control's bindable properties?
- HTB overlimits traffic BW
- How can i get rid of the error = " Control must be added to the page first." on flet python
- Get all elements of a group property in Gambas
- Unity Scene view unable to pan
Related Questions in VCL
- how to set c++ if...else statement for user input?
- How to close a C++ VCL form and open another one on a button click?
- a Delphi form does incorrect behavior, when maximizing the form (even in IDE designer), why?
- Why do some non-ASCII Unicode symbols appended to strings disappear in Delphi 12?
- How to handle an error when loading a picture into a TImage component?
- Labels disappear behind GIF after animating
- TTreeView checkbox loses "selected" state after change scale on screen
- How to log a message from a VCL or FMX app in Delphi?
- Can the TTreeView display more than 259 characters in a Row?
- ilink64 Error Fatal: Unable to open file 'VCL.VIRTUALIMAGELIST.O'
- How does the TrackButton property work on the TPopupMenu component?
- How to save my form as an SVG using Skia4Delphi?
- How to make a rectangle with drop shadow in Delphi using Skia4Delphi?
- TPageControl not changing tabs when clicked
- How to disable automatic painting for TLabel?
Related Questions in ACCELERATOR
- Issue with Embedded Video Playback on Mobile Devices After Seraphinite Accelerator wordpress plugin Integration
- How to select a radiobutton in a menu without opening the menu (tkinter accelerator)?
- Integrating GW sonarqube accelerator with Guidewire
- Accelerator on JMenuItem doesn't work if the JMenu is not open (but only a few)
- Limits of workload that can be put into hardware accelerators
- STM32L4 and accelerometer program
- Why do we use low-pass filter to eliminate the gravity effect on the accelerator?
- Not able to run Hybris (Accelerator) server
- C# WinForms TabStrip control: no accelerator
- Pyspark: Identify the arrayType column from the the Struct and call udf to convert array to string
- Extend controller acceleratorservices in Hybris
- How to get started and deploy application with Microsoft Dynamics 365 Higher Education Accelerator
- PHP accelerator does not work for Symfony
- How to customize b2bacceleratoraddon addon
- Not able to insert data in to AOT (Acclerated Only Table) table in IDAA server
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You say your control is based on TStaticText. If you peek into TStaticText (or its ancestor, TCustomStaticText actually), you will see a message handler that handles the default behavior of focusing another control:
In its implementation, you can see how it verifies its own state:
In the base implmentation, the focuscontrol will be focused when that
ifis entered, but in your implementation, you can simply make a new message handler, with that same if in it, and add your own implementation to it.