Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COMMAND window: Docking/Text Display Question
Message
De
19/12/2006 17:55:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/12/2006 17:24:15
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01179036
Message ID:
01179054
Vues:
14
>I prefer my COMMAND window sized tall to display as much command history as possible.
>From time to time, though, I move the COMMAND window's contents to the top:
>
>While the following basically does what I want is there a BETTER more direct way to accomplish this?
>
>DOCK window "Command" position -1
>size window "Command" to 5,130
>keyboard "{Ctrl+End}" plain clear
>doevents
>if ( version(5) >= 900 )  && Ver. 9 IntelliSense doesn't insert "window" after DOCK
>	DOCK window "Command" position 4 window view
>else	&& Ver. 8 IntelliSense automatically inserts "window" after DOCK
>	keyboard  [DOCK "Command" position 4 window "view"] plain
>	keyboard  "{ENTER}" plain
>endif
>
>Thanks in advance for suggestions,

The question here is how do you run this? As a .prg? In that case, you can turn intellisense off temporarily, by setting _vfp.EditorOptions="" and then restoring it. But then I don't see why would you need to run the commands as a macro. Tried this as a .prg, and it just worked:
DOCK window "Command" position -1
size window "Command" to 5,130
keyboard "{Ctrl+End}" plain clear
doevents
DOCK window "Command" position 4 window view
I tied it to an On Key Label, and it worked.

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