Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG ? - X not enabled
Message
De
17/02/2005 09:51:41
Suhas Hegde
Dental Surgeon
Sirsi, Inde
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Divers
Thread ID:
00987428
Message ID:
00987913
Vues:
53
>>>Do you have a READ EVENTS?
>>
>>Hi thanx for replying.
>>
>>My typo
>>
>>The line should have read
>>If i set windowtype = 0 the application just flashes and disappears.
>>
>>If it is 1 it is modal as good as read events (thats my understanding).
>
>You understand correctly. However, your basic design is a bit flawed. If you want the _screen to be closable, you can not have modal forms and you have to issue a READ EVENTS command to prevent the "flash". Can you post the relevant code from your main PRG file? What we would be interested in is where you are starting your formset. It should be something like:
>
>CLEAR
>SET TALK OFF
>SET EXLCUSIVE OFF
>SET DELETED ON
>*!* other setup code here
>ON ERROR DoSomethingHere
>ON SHUTDOWN QUIT
>loFormSet = createobject('formsetclass', 'formsetclass.fxp')
>loFormSet.Show()
>READ EVENTS && would go here

Hi,
In fact there is no main.prg to handle these. I put them into the formset.load(). I didnt do it here for simplicity. Only added on shutdown quit to enable the closure of the formset.

What i intended to do is not use a prg atall. Easy to maintain in my point of view. 2 files and thats it. All go into the custom properties and methods of the formset.

So when i make formset modal there would be no need for the createobject,show,read events etc. Maybe my approach is flawed but i am much confortable this way.

But why would 'X' be disabled with a minimise and a restore ??? The application must be as it is after a restore because there is nothing in the form resize. (Maybe something in the screen resize ??)

suhashegde
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform