Skip to main content

[archive] Entry-field focus lost

  • September 13, 2010
  • 2 replies
  • 0 views

Dominique Sacre
Forum|alt.badge.img+2

[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.

2 replies

Dominique Sacre
Forum|alt.badge.img+2

[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.
Is this reproducible small scale? If so, how about a sample program?

Which version of Extend is it? There has been some focus issues, it might have been resolved.

Dominique Sacre
Forum|alt.badge.img+2

[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.
Is this reproducible small scale? If so, how about a sample program?

Which version of Extend is it? There has been some focus issues, it might have been resolved.