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? 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? 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; 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