Mark, just to let you know that implementing the code to save the current window position works well from the queryCancel method. Thanks.
Now the problem is the reverse in a way. I have dialog A that does a popupAsChild of a PropertSheet dialog. What I want is that this dialog should position itself where it was when it was closed last time. So in the initDialog of class B, which is a subclass of PropertySheetDialog I do:
forward class(super) continue
self~moveWindow("top", x, y, "showwindow")
But I've found that 'forward' doesn't cause the window to show up, this doesn't happen until initDialog returns to the system. But moveWindow still gives return code .true. When the window shows up it is in it's 'normal', semi-random position.
So my question is, where should moveWindow be called from if initDialog is not the place?
Grateful for any help.