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; 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 ?! 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. 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 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now