Volk65 Posted March 13, 2018 Posted March 13, 2018 Hi all. How to track change the visibility of the UniFrame?When changing to visible:=True|False; Quote
Sherzod Posted March 13, 2018 Posted March 13, 2018 Hi, Sorry, can you clarify your question ?! Quote
Volk65 Posted March 13, 2018 Author 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
Sherzod Posted March 13, 2018 Posted March 13, 2018 You can use ClientEvents for this, hide and show functions Quote
Volk65 Posted March 13, 2018 Author 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
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.