Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Old Code (@ GET) - Determine focus and change display
Message
From
20/07/2007 14:54:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/07/2007 14:28:22
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01242455
Message ID:
01242464
Views:
17
>Using old @ GET stuff...
>
>Bunch of fields that make up a scheduling grid are displayed. Each has a VALID that runs some procedure if they are clicked. I need to be able to determine which one has the focus and also would like to change the focus display (very light line around the fields) to be something more pronounced. How would I do this? The fields/GETs are displayed via a loop, but when they are done, the user can move around them with the arrow keys or TAB. I'm thinking that there must be another clause I can include that would handle whether one has the focus. Thanks!

I FPD days the get field with the focus was emphasized by specifying a color (6th pair in the color scheme... um, 2?). Now if you run that code under VFP, I'm not sure the color schemes work at all, but you may try to Set Color Of Scheme 2 to ,,,,,RGB(),,, or something like that.

Had to dig into help for FPD2.6 to find the scheme numbers:
		  Color Schemes
	ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ	
	User Wind		Scheme 1
	User Menus		Scheme 2
	Menu Bar		Scheme 3
	Menu Pops		Scheme 4
	Dialogs			Scheme 5
	Dlog Pops		Scheme 6
	Alert			Scheme 7
	Windows			Scheme 8
	Wind Pops		Scheme 9
	Browse			Scheme 10
	Report			Scheme 11
	Alert Pops		Scheme 12

User Winds (Scheme 1)
	Color Pair 1	SAY field
	Color Pair 2	GET field
	Color Pair 3	Border
	Color Pair 4	Title, active
	Color Pair 5	Title, idle & message
	Color Pair 6	Selected item
	Color Pair 7	Clock, Hot keys
	Color Pair 8	Shadow
	Color Pair 9	Enabled ctrl.
	Color Pair 10	Disabled ctrl.
So it's color pair 6 of scheme 1.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform