Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Descriptive File Types with PUTFILE()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00574248
Message ID:
00577490
Vues:
72
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform