Jump to content

Track changing visibility


Volk65

Recommended Posts

When I change UniFrame.Visible True or False.

I need to call my procedure, for example: procedure OnFrameVisibleChanged(....);

UniFrame does not have events like the form: OnShow, OnHide.

Link to comment
Share on other sites

I did that. Is that right?

1.ClientEvents -> ExtEvents -> beforehide

function beforehide(sender, eOpts)
{
  var me=sender;
  ajaxRequest(me, '_hide', []);
}

2. OnAjaxEvent

procedure TRootFrame.UniFrameAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings);
var RetVal: Integer;
begin
  if EventName = '_hide' then
    FrameMessage(FM_HIDE, 0, 0, RetVal);
end;

Thanks. It works.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...