Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COMMAND window: Docking/Text Display Question
Message
From
19/12/2006 17:24:15
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
COMMAND window: Docking/Text Display Question
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01179036
Message ID:
01179036
Views:
49
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,

Spencer
Next
Reply
Map
View

Click here to load this message in the networking platform