Jump to content

Disable timer on frame when lost focus (other modal form)


Mike

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...