Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send a variable to form?
Message
De
08/09/1999 19:05:26
 
 
À
08/09/1999 18:49:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00262206
Message ID:
00262653
Vues:
21
>Ed
>Now I could plot use _screen.line(1,2,3,4). I just want to move whatever I ploted from the screen to the form. What do I do that would be an easiest.
>

AFAIK, there is no line collection or array in _screen to use, and it's not like a DOS screen with a fixed number of rows and columns - the form (and this includes the main VFP Window itself) is resizable, and that size can be expressed in several different units of measure, the most common being pixels and foxels (foxels are a unit of measure unique to VFP AFAIK.) There is an X-Y coordinate system available for the current Window available through the Win32 API, but it's not trivially accessible from VFP, and would be slow to access using just native VFP.

If you're trying to get the plot output to appear on the form rather than on the main VFP window, the graphics package you use may allow you to do this, but you'll need to examine the documentation for the graphics package you're using to see how to point it at a form rather than the main VFP window; it likely will require you to extract the Windows handle for the form and pass it as a reference to the graphics package, but not knowing anything about the plotting software or how it references where it draws, it's impossible to tell you how to do this. I'm afraid you'll need to look at the documentation for the graphics package for details.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform