[Migrated content. Thread originally posted on 13 May 2003]
Hello,I am trying to center a floating window (display floating window...) over the main window even if it is not opened from the main window. The problem is that I have some dialogs and other programs that open themselves relative to the main window. This usually works ok, but (as the documentation says) when I pop up a floating window all newly created floating windows open up relative to the pop up window.
The upon phrase of the display floating window command does not appear to work (5.2.1) as documented. The set output window to ... also does not work, and I am assuming this is becuase my pop up windows are modal.
To get around this and some other problems with the runtime I have subclassed the runtime so I can execute win32 api commands. However, the handles that are returned from the display window command (display window handle is...) are not actual handles. Is it possible to convert them to a real handle? This would provide q quick and permanent solution to most of my problems (I have access to the main application window handle only).
What happens is:
main window opens window1 at line 10...ok!
window1 opens dialog at line 10...not ok! I want to open dialog relative to main window, not window1!
Thanks in advance,
Merlin



