Legacy template chain: the window appears, then jumps to its last saved position

Applies to: Clarion Legacy template chain, build 7.1.7118 as named in the thread title; ABC did not show the effect for the poster.

Problem

In a Legacy app the window opens, is visible, and then moves to the position saved in the INI. In ABC the window already appears at the saved position. The poster wanted to keep it hidden until it was in place.

Solution

  1. First check for a DISPLAY issued by embedded code in the window setup before the position is restored; a reply named that as the usual cause. Remove it, or move it after the routine in the ACCEPT loop. In ABC the same code belongs in an embed after the Window Manager Init, "Resize window to INI saved size".
  2. In the poster's Legacy app that was not enough: the generated code opened the window and then called the INI restore of the focus manager, so the move came after the open. A reply suggested hiding the window right after OPEN() and unhiding it in EVENT:OpenWindow, as used when a lot of setup work would otherwise flash on screen.
  3. The poster then found the delay: a third-party invoice template did a lot of setup after the window opened and before the INI restore. He decided to use the hide and unhide approach.

Caveats

  • The thread did not report the final result of the hide and unhide change.
  • The cause was in a third-party template in this case; yours may be your own embed code.

Today (2026)

The hide after OPEN, unhide at EVENT:OpenWindow idea is plain Clarion and likely still works; not re-tested.

Sources: Jack O. (May 2010, the question), Kerwin M., Lee W. (May 2010) in sv.clarion.clarion7.