Fill-in focus

jad sakr

New Member
Hello!

I have a case of disabled fill-in widgets (edit object) that have to be enable once at a time while leaving each fill-in in a row. For example if i have 3 fill-in f1, f2 and f3 : f1 is enable at the beginning, f2 and f3 are disabled; when i fill f1 and on the leave action f2 should be enabled. Same thing for f3 that would be enabled at the leave action of f2. My problem is that once i leave f1 (and enable f2), i cannot focus on f2 ( even if i apply specificaly entry to it). Progress jumps automaticaly to the first widget already enabled.

Any hints?
Thanks
Jad
 
Sounds like you are trying to write some sort of wizard or something.
This seems to work quite well in the leave trigger. Note the code to allow them to click CANCEL button - just makes the whole thing a bit nicer. :)

Code:
IF LAST-EVENT:WIDGET-ENTER <> BTN-CANCEL:handle
THEN DO:
	 FILL-IN-2:SENSITIVE = TRUE.
	 APPLY "ENTRY":U to FILL-IN-2.
	 SELF:SENSITIVE = FALSE.
	 RETURN NO-APPLY.
END.
 
Thanks a lot!

It worked.
The purpose of the "wizard" that i'm trying to write is to leave no space for errors regarding operator input. ;)

Thanks one more time Mr. Simon Sweetman, I really appreciated.

Regards
Jad
 
Back
Top