Volk65 Posted March 13, 2018 Share Posted March 13, 2018 Hi all. How to track change the visibility of the UniFrame?When changing to visible:=True|False; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2018 Share Posted March 13, 2018 Hi, Sorry, can you clarify your question ?! Quote Link to comment Share on other sites More sharing options...
Volk65 Posted March 13, 2018 Author Share Posted March 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 13, 2018 Share Posted March 13, 2018 You can use ClientEvents for this, hide and show functions Quote Link to comment Share on other sites More sharing options...
Volk65 Posted March 13, 2018 Author Share Posted March 13, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.