Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need help - Hide VFP Main Screen Problem
Message
De
26/11/1997 10:40:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00062346
Message ID:
00062405
Vues:
30
>Now I have been able to hide the main VFP window and run the program module that has been choosen
>from the menu bar. But the focus stays on the taskbar, and I have to press Alt+Tab to set the focus to my
>form's grid control. In the INIT method of the form, I have set the focus to :
>thisform.grid1.column1.text1.setfocus and it does not work. Why ?
>
>
>
>>I'm developing an application which shows a menu bar at startup. I want to hide the main VFP
>>screen after the user chooses a menu option from the menu bar and run the selected module as
>>Top-Level.
>>
>>I have set the following:
>>1. in CONFIG.FPW :
>> screen=OFF
>>2. in INIT method of the form:
>> _screen.visible = .F.
>>3. in LOAD method of the form:
>> SELECT 0
>> USE table1 SHARED
>>4. form's showwindow :
>> 2-As Top Level Form
>>
>>Using the above steps, when the user chooses the program module from the menu bar, I see
>>that the main screen of VFP disappears, but after that I see an error message saying:
>> "File is in use"
>>Then I change or add commands of LOAD method of the form to the following:
>> SELECT 0
>> IF NOT USED('TABLE1')
>> USE table1 SHARED
>> ENDIF
>>
>>but the result is when the user chooses the program from the menu bar, then the main screen
>>of VFP disappears for a while and then the program module exits to the menu
bar again. Why?

See article Q136755 in the knowledge base.
Also no need to put screen=off in the config.fpw. That is used if you want to hide the main window at start up.

HTH
>>
>>Thanks a lot for any kind of help,
>>Andi Hidajat
>>pkshq@cbn.net.id
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform