Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 17 NOV 1998 06:16:44PM Duane ALDATA wrote:

   Is there any way to stop a screensave from triggering the lostfocus event on an editline?  We have a program that routinely runs for extended periods without user interaction, and the screensaver usually starts up.  The problem is that the first editline on the form validates the data entered on the lostfocus event, and the screensaver triggers this event when it starts up.  The result is that as soon as the user returns to the computer and moves the mouse, the program tells them that the data entered is invalid.  This is annoying, but hardly a major catastrophe.
   Can I trap the lostfocus event if focus is moving to another application so that the event doesn't get run?  Is there any other way to stop it from firing this event in this instance?
   TIA
        Duane Pekse
        ALDATA Software Management Inc.
        [email protected]

At 19 NOV 1998 09:43AM Cameron Revelation wrote:

Duane,

There is a way to detect this, but I cannot remember what it is. I had the same problem years ago when I was working with Powerbuilder … I think it would GPF when the screen saver kicked in (if the focus was on a control that had a lost-focus implementation).

What I would suggest is using the Flag parameter in the LOSTFOCUS event to handle this:

Flag can have one of three values:

Cameron Purdy

Revelation Software

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/144b307a2b2835cc852566bf007fe049.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1