Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 06 DEC 2001 12:50:47PM Oystein Reigem wrote:

I have a form with a field that needs to be filled in. Normally I would have a LOSTFOCUS handler that could check if the field was filled in, and not let the user proceed with other fields until she had done so. (The requirements of the field are actually stricter than that. The value should be unique too.)

But there are exceptions to the rule. Sometimes I must tolerate that the user leaves the field without forcing her to enter a value. In particular I'd like to allow the user to switch to another window, in the same app or a different program.

Experimenting with the INACTIVATED window event I discovered this runs before the LOSTFOCUS event of the required field, allowing INACTIVATED to set a "don't worry" flag for the LOSTFOCUS event to check.

But unfortunately this doesn't seem to work when my form is a child of an MDI frame. In this connection I regard the frame as a different window; I'd like my users to switch to the frame with impunity.

Comments?

- Oystein -


At 06 DEC 2001 03:35PM B Stevens wrote:

Check the FLAG parameter in LOSTFOCUS.

0=Another window


At 06 DEC 2001 06:37PM Richard Hunt wrote:

I just thought I would add a bit more…

If FLAG=0

Lost focus to another window.

If FLAG=1

Lost focus to another focus in same window.

If FLAG=2

Lost focus doe to a MENU event.

If FLAG equals 1, then be concerned. Otherwise ignore.


At 07 DEC 2001 03:22AM Oystein Reigem wrote:

Barry, Richard,

Great, guys! Can't wait to try it out!

- Oystein -

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/db79e447c505c4bb85256b1a006208da.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1