Skip to main content

Floating Window not moving with Main Window

  • June 21, 2011
  • 1 reply
  • 0 views

[Migrated content. Thread originally posted on 16 June 2011]

Hi All,

Wondering if you can help me, experiencing this problem, where you open the main window and then open a floating window. When you move the Main window the floating windows stays in it original spot, it does not move with the main window. Would like to see the floating window move with the main window. If you minimize the main window the floating window is also minimized.
Has anyone run into this problem? Working with ACUCOBOLGT 9.
I was told that maybe we can call an window API to find the position of the main window and another API to move the floating window to its proper spot.
Thanks in advance!!

1 reply

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • June 21, 2011

[Migrated content. Thread originally posted on 16 June 2011]

Hi All,

Wondering if you can help me, experiencing this problem, where you open the main window and then open a floating window. When you move the Main window the floating windows stays in it original spot, it does not move with the main window. Would like to see the floating window move with the main window. If you minimize the main window the floating window is also minimized.
Has anyone run into this problem? Working with ACUCOBOLGT 9.
I was told that maybe we can call an window API to find the position of the main window and another API to move the floating window to its proper spot.
Thanks in advance!!
Yes, a floating Window does exactly that - it floats, it floats based on the column and position that you set it at - it will not track another Window's movement. A floating window will mimimize with the Main or standard window as it is a child of the main or standard window, consider using an Independent Window. An Independent window will not minimize when the main window is minimized, it will minimize when the user selects the minimize item on the Window title.