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:45:48
 
 
À
17/04/2019 16:04:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01668156
Message ID:
01668161
Vues:
55
Hi Rick,
Thanks for answer

Yes, it does, but the problem is when I invoke a another form or for example browse from the grid by right-clicking in the edit box, so I go back to editbox in the grid

After returning to the grid, the cursor has position 1 in editbox

in the case when editbox is on the form - works correctly, but when editbox is inside a grid - then no

>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