Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close alternate after nowait
Message
De
10/10/2010 06:03:23
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/10/2010 14:24:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01484505
Message ID:
01484605
Vues:
34
>Actually I found this out recently myself, it's a really handy feature. And remember that juststem() can be used to find the name of teh editor window.
>lcFile='c:\yourpath\yoursubpath\yourfile.txt'
>lcWindow=juststem(lcFile)
>modi file (lcFile) nowait
>Release Windows (lcWindow)
This made me play around with it for a few minutes. What I found is that wontop() will return the name of the window with the extension, but you can address the window with or without it, both ways work. Also, the window name can contain spaces - just enclose it in quotation marks or use a name expression. And the coordinates of the window are translated into pixels via the fontmetric() of the parent form (_Screen in general case, unless you open a window in a window). IOW, repeated move window to 10,10 will yield different positions if you change _screen.fontsize, .fontname etc.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform