Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms Visible Property
Message
De
31/08/2007 06:18:06
 
 
À
31/08/2007 06:14:06
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01251595
Message ID:
01251601
Vues:
12
Just for completion (closure?) it's usual to give the solution, for others' enlightenment.

>Sorry, I've worked around it so dont worry.
>
>Thanks
>
>>Hi All,
>>
>>I think I'm being dumb here, not the first time either.
>>
>>I have a form that I'm calling with something like:
>> DO FORM SUBSTR(xfsys->xf_prog,6) name oForm
>>
>>but when I call the form I need to position it so the actual code is:
>> DO FORM SUBSTR(xfsys->xf_prog,6) name oForm
>> oForm.Left = (((_vfp.width - oNavigation.width)/2) - (oForm.Width/2)) + oNavigation.Width
>> oForm.Top = (((_vfp.Height-110)/2) - (oForm.Height/2))
>>
>>What currently happens is the form pops up on screen and then is repositioned, this looks a little clunky to say the least. So I thought i'd set the visible property of the form baseclass to .F., position the form then show it. This doesnt seem to work, I have checked the actual form, not the baseclass, and its visible property is also set to .F.. I do have some code in the activate method and its here that it seems to be changing it to .t..
>>
>>What am I missing here, other than a few brain cells, should this approach work or am I off the mark?
>>
>>Any help appreciated.
>>
>>Thanks
>>
>>Jon
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform