Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Old Code (@ GET) - Determine focus and change display
Message
 
 
To
24/07/2007 10:30:37
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:
01243165
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>>>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!
>>
>>UPDATE: Looks like what I really need to do is be able to cycle through all the fields on the screen in code and then take some action if it's value meets a criteria. Then, if the user decides that they want to continue, start from that point in the cycle looking for the next one that meets the criteria. This would be relatively simple in newer code, but the old @ GET stuff is killing me. The changing the focus appearance is no longer an issue as the key is to find the next field that matches criteria in code. Any ideas?
>
>UPDATE2: I thought I was onto something in that I had a button on the screen that would display the current objects number - then I would just have to figure out how to cycle through the fields programatically - but it only displays the button's own number because it is the current object when it's clicked. Catch-22. I could use a F-Key, but I was told this wasn't an option unless as a last resort. What I really want is the equivalent of GotFocus for these @...Get fields. Thanks!

You can use WHEN which fires right before @GET gets focus
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform