Using main buttonbar with keyboard
Moderators: Hacker, petermad, Stefan2, white
Using main buttonbar with keyboard
A few days ago I had my mouse batteries discharged and... I realized that it is impossible to use buttonbar with keyboard.
If main buttonbar use TToolBar as base class, it might be achieved by calling TToolBar.SetFocus and using in form's OnKeyDown handler following code for clicking on selected button (for flat toolbar):
Code: Select all
index := toolbar1.Perform(TB_GETHOTITEM, 0, 0);
toolbar1.Buttons[item].Click;
Just wait…
2MVV
Hello !
• Just wait for TC 7.5, glance HERE - §8… and meanwhile, care to keep your battery full !
KR
Claude
Clo

• Just wait for TC 7.5, glance HERE - §8… and meanwhile, care to keep your battery full !


Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials