[Migrated content. Thread originally posted on 10 September 2010]
We are using the old method of programming and i have a problem with the focus sinch we install active fax printer we print and after printing the program his capable to send message to the user but when the program ask the first question of the screen the focus his there but if you go to the next field the program go to the next field but the focus does not changed!To solve the problem we click on a order window and click back and evething his ok!
I try
1-DISPLAY FLOATHING WINDOW
SET INPUT WINDOW TO H
CLOSE WINDOW HANDLE
2-move lc-main-window to ws-sys-handle
move lc-main-window to MAIN-WINDOW-HANDLE
MODIFY MAIN-WINDOW-HANDLE
VISIBLE FALSE
MODIFY MAIN-WINDOW-HANDLE
VISIBLE TRUE
MODIFY MAIN-WINDOW-HANDLE
ACTION ACTION-MAXIMIZE
SET ENVIRONMENT "DLL-CONVENTION" TO 1
CALL "USER32.DLL"
CALL "SetForegroundWindow" using
BY VALUE WS-SYS-HANDLE
END-CALL
CALL "ShowWindow" USING
BY VALUE WS-SYS-HANDLE
BY VALUE 6
END-CALL
CALL "ShowWindow" USING
BY VALUE WS-SYS-HANDLE
BY VALUE 9
END-CALL
CANCEL "USER32.DLL"
SET ENVIRONMENT "DLL-CONVENTION" TO 0.



