Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close alternate after nowait
Message
From
10/10/2010 07:55:03
 
 
To
10/10/2010 06:03:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01484505
Message ID:
01484608
Views:
29
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform