Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Descriptive File Types with PUTFILE()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00574248
Message ID:
00577490
Views:
69
George, thank you for this idea.
The code uses .nHwndOwner property as window handle.
Help text is poperty sheets says "for internal use only". However, this property is always zero! Why ?

I added the line
  oCD.nHwndOwner = _screen.ActiveForm.hwnd
to my code. Now it is impossible to hide this dialog by clicking vfp main window caption.

However, save as dialog is still positioned at leftmost column of _screen, not at leftmost column of activeform. Why ?
There is also .nInstance property, also "for internal use only". Maybe this helps ?


>While I haven't looked closely at the code used in the 7.0 class, I'd be willing to bet that it uses the window handle of the _SCREEN. This would cause it to use the screen's coordinates in its initial positioning. I'd further be willing to bet that if the window handle to a form was used instead, that the dialog would use its coordinates for its initial positioning.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform