Jump to content

Recommended Posts

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...