Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position cursor in a EditBox in grid
Message
De
17/04/2019 16:04:23
 
 
À
17/04/2019 14:17:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01668156
Message ID:
01668160
Vues:
63
>Hi,
>
>One simple case:
>
>I have a grid and edibox inside grid. I find myself on the editbox, for example on the 25 position inside the editbox.
>I've right click from editbox and for example I've invite the browse or, for example, another form
>How to return to position 25 after returning from the browse (or another form) to editbox in grid ?
>Please example
>
>I've tried with selstart, but it's not working
>
>Thanks

I tested this code:
_screen.AddObject("abc", "editbox")
_screen.abc.Visible = .t.
Here I manually clicked on the editbox and pressed spacebar 25 times. I then ran this by typing in all lines, selecting it, right-click, "Execute selection". It reported 25.
_screen.abc.SetFocus
KEYBOARD '{SHIFT+LEFTARROW}'  && Simulate the user typing Shift+Left to begin selecting text
? _screen.abc.selStart
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform