Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close alternate after nowait
Message
De
10/10/2010 07:55:03
 
 
À
10/10/2010 06:03:23
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01484505
Message ID:
01484608
Vues:
30
>>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.

Thats a little odd. But frankly, this discovery which I made just a few days ago, can be quite handy in many situations.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform