Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with Windows Open dialog
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00212508
Message ID:
00212699
Vues:
31
>>I'm basically reposting a message that I wrote yesterday, but I don't think I gave enough info, asked the right question, etc. anyhoo...
>> I've written a simple program that opens only one component of my program, the main pageframes. I don't want the standard VFP desktop, I want to use the form as top level, as it has all that is necessary to run it (find, next record, exit, etc.). I've got the form to run if I hardcode the location of the database file into the main.prg. However, I'd like to make it so that before the form comes up it goes to a default directory and when the file isn't found there it brings up the standard windows open dialog. So in order to do this I used LOCFILE() and it works fine, however, when it brings up the open dialog it must move it off the screen. I say this because there is a button on the taskbar that says Open, but the dialog box is nowhere to be found. What am I doing wrong? How can I tell the box to stay in the middle of the screen without using VFPs desktop? I appreciate your help:)
>
>Hi John,
>
>LOCFILE() (as well as GETFILE() and PUTFILE()) won't be visible unless the main VFP window (_SCREEN) is. You'll either have to make it visible or use the Common Dialogs ActiveX control.

It seems pretty logical, but you know, I just checked one project where I use these functions extensively, and see, that only LOCFILE() required making _SCREEN visible. For some reason, GETFILE() and PUTFILE() work Ok when _SCREEN.visible=.f.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform