Mike Posted April 3, 2018 Share Posted April 3, 2018 How can a timer be disabled on a frame when the frame lost focus? function blur(sender, e, eOpts) { var me=sender; ajaxRequest(me, '_hide', []); } In Ajax event of frame is the following. if EventName = '_hide' then begin tiRefreshMonitor.Enabled := False; tiRefreshQueries.Enabled := False; end; However this doesn't work. Any suggestions how to get this working? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 3, 2018 Share Posted April 3, 2018 Hi, Which build are you using? Can you make a simple testcase for this? Quote Link to comment Share on other sites More sharing options...
Mike Posted April 4, 2018 Author Share Posted April 4, 2018 Hi,I am using version 1.0.0.1425. Got already a working solution. Ajax event on Mainform. if EventName = 'deactivate' then begin TfraTestFrame(MainForm.FindComponent('fraTestFrame')).TimerStop(True); end; 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.