Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command Window properties
Message
 
 
À
28/03/2007 09:37:24
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01209111
Message ID:
01209201
Vues:
18
You're welcome.

>
>your code reported
>
>Success
>
>Thank you for the fast answer!
>
>Hans
>
>>Hi Hans,
>>
>>You can use FoxTools to access the command window and set its font. Here's the basic code that should get you started. See George's Extended Foxtools Help File #9333 for more info.
>>
>>LOCAL ARRAY laEnv[25]
>>SET LIBRARY TO FoxTools ADDITIVE
>>
>>ACTIVATE WINDOW Command
>>lnwhandle  = _WonTop()
>>lnResult = _EdGetEnv( lnwHandle, @laEnv )
>>* Make sure that call succeed and the handle belongs to the Command WIndow
>>IF lnResult <> 0 AND laEnv[25]=0
>>	* Font Name
>>	laEnv[22] = "Consolas"
>>	* Font Size
>>	laEnv[23] = 13
>>	IF _EdSetEnv( lnwHandle, @laEnv ) <> 0
>>		? "Success"
>>	ELSE
>>		? "Could not set Command Window Font"
>>	ENDIF	
>>ELSE
>>	? "Could not get Command Window handle"
>>ENDIF	
>>

>>
>>
>>>
>>>using _SCREEN I can set properties of the main Visual FoxPro window and manipulate the main Visual FoxPro window as an object. Is there anything available to do something similar for / with the Command Window?
>>>
>>>I want to set some properties, mainly FontName and FontSize programmatically. (I know how to do it manually.)
>>>
>>>I have checked the FoxUser.dbf, ID = "WINCMD", but did not find anything, where for instance I could place something like WINCMD.FontName = ..
>>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform