A way for a VCL TFrame to be notified when it is actually shown (via G+)
Posted by jpluimers on 2014/08/27
Interesting, as I didn’t think this was possible. Thanks Oliver Funcke!
Notification when a `TFrame` becomes visible.
TMyCommonFrame = class(TFrame)
private
FOnShow: TNotifyEvent;
procedure CMShowingChanged(var M: TMessage); message CM_SHOWINGCHANGED;
public
property OnShow : TNotifyEvent read FOnShow write FOnShow;
end;
...
procedure TMyCommonFrame.CMShowingChanged(var M: TMessage);
begin
inherited;
if Showing and Assigned(FOnShow) then
FOnShow(Self);
end;
–jeroen
via Is there any way for a VCL TFrame to be notified when it is actually shown to….






Leave a comment