Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COMMAND window: Docking/Text Display Question
Message
From
19/12/2006 17:55:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/12/2006 17:24:15
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01179036
Message ID:
01179054
Views:
13
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform