Owner Vs PArent and Taction shortcuts on Frames
Posted
by
Fred
on Stack Overflow
See other posts from Stack Overflow
or by Fred
Published on 2011-03-16T07:21:19Z
Indexed on
2011/03/16
8:10 UTC
Read the original article
Hit count: 295
I have a form with a panel.
I create frames at runtime and display them on the panel by setting frame's parent property to the panel.
When creating panels I do not set the owner property because i manage myself the lifetime of the frame.
Until now i got no problem. Next I put an TActionList on the frame with some shortcuts on the actions.
I found that my actions did not execute until I set the owner property of the frame to the panel.
Can someone can explain me that ? I thought that owner property was just about wich component is responsible to free the children components, and not responsible to forward key events.
© Stack Overflow or respective owner