Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-12

Question about Actions

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bart

Hi,

Coming from Delphi 3 originally I have no experience with actions/actionlists. Now I re-created one of my old Delphi apps, and use actions.

However I was surpised by the following observation: If I have an action defined in my main form, lets say with shortcut Ctrl+V, then when I show second form and make that active (so my mainform isn't the active form), the action propagates to the second form.

If I ShowModal the second form, the action does not propagate to it.

So:

Form2.Show -> press Ctrl+V (with second form active) -> Action is executed Form2.ShowModal -> press Ctrl+V --> Action is not executed.

Is this supposed to happen like this (I cannot check because D3 doesn't have Actions).
I find that rather annoying.
For instance it means that any shortcut I assign to an Action on my form, now gets processed and "eaten" if I have another form active, for example a TFindDialog, where in this case the standard Ctrl+V wont let me paste text in the search field (TEdit) anymore (but pastes it in my editor where I was trying to do a search).

Bart

Reply by email