Jump to content

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


Recommended Posts

Posted

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?

Posted

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;


 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...