Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving to next column after pop-up form
Message
 
À
24/11/2003 12:50:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00852997
Message ID:
00853011
Vues:
32
Andrew,
take this as a start point, play with it.
Put this code in the textbox lostfocus and see what happens:
DO FORM yourFORMdialog
local lnrr, lncc
lnrr=IIF(This.parent.parent.activerow <= 0, 1, This.parent.parent.activerow)
lncc=This.parent.ColumnOrder + 1
This.parent.parent.ActivateCell(lnrr, lncc)
This code activate the next column, but I think it's better to check which key is pressed (when focus is on a grid user can press leftkey, rightkey, upkey, downkey, Tab) and take the appropriate action.
Also, I think you have to store the current column and row BEFORE to run the ModalForm, because when you close it, the grid is activated again at the first row, and you lose the right row.

Hope helps.

Franco

>I have a form which I call as my user leaves a textbox contained in a grid. I want the focus to move to the next column after the user views and interacts with the modal form that I have 'popped' up.
>
>However, focus keeps returning to the textbox from which I invoked the new form.
>
>I have tried placing the call to the new form in both the lostfocus and valid events to no advantage.
>
>Any suggestions?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform