Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Old Code (@ GET) - Determine focus and change display
Message
De
24/07/2007 15:44:13
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
20/07/2007 14:28:22
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01242455
Message ID:
01243266
Vues:
29
>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!


UPDATE3: Ok, the WHEN clause works (thanks Sergey), but how can I cycle through these fields after they are displayed to force the WHEN to fire? I need to click on a button on the form and move through all the fields being created in the code below and fire the WHEN, at which point a criteria is evaluated to know whether to stop or continue moving through the fields.
FOR yy = 1 TO max_room
	FOR xx = 1 TO n_lines
		* JJ - Next Open Slot - DEBUG
		@ xx - 1, 8 + but_size * ( yy - 1 ) GET x_room( xx, yy ) ;
			PICTURE '@*IV ' SIZE 1, but_size - 1, 0 ;
			WHEN call_NextOpen(STR(_CUROBJ)) ;
			VALID pullsch()
	ENDFOR
ENDFOR
.
.
.
READ CYCLE MODAL
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform