I use the standard actions Cut, Copy, Paste in the main menu. They have shortcuts Ctrl-X, Ctrl-Cand Ctrl-V.
When I open a modal form, for example. FindFilesForm.ShowModal, then all the shortcuts work from the form.
But when I open a modeless form, for example. FindFilesForm.Show, then the shortcuts do not work.
I would think that these actions should work if FindFilesForm is an active form. This modality should have nothing to do with it, or am I mistaken in my thoughts?
Never, how can I get shortcuts for working in a non-modal form?
After Carey's answer, I examined it further. This is not a problem with some controls, for example. TMemo or TEdit.
But this is for some others. In particular, those where this occurs include:
- text in TComboBox
- text in TFindDialog
- TElTreeInplaceEdit control, part of LMD ElPack
I will see if there are others and add them to the list.
All this refers to important non-modal forms in my program.
So I still need a solution.
Good. I really need help with this. Thus, this becomes the first question I place the reward on.
My discussion with Carey, which goes through his answer, and the comments there describe my problem in more detail.
And as I mentioned in one of these comments, the related issue seems to be discussed here.
, Ctrl-X, Ctrl-C Ctrl-V TComboBox TFindDialog . , , TElTreeInplaceEdit .
, , . , - .
, , , -, , . , .
, .
Mghie , , OnExecute ActionListUpdate . .
actionlist , , . , Ctrl+A Ctrl-Y , , , . .
, , , IsShortcut. OnExecute, . , , .
, , , , . . ( , , , , 6 .)