Jump to content
uniGUI Discussion Forums
Volk65

Track changing visibility

Recommended Posts

Hi all.

 

How to track change the visibility of the UniFrame?
When changing to visible:=True|False;

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

You can use ClientEvents for this, hide and show functions

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×