Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container causes refresh problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00052009
Message ID:
00052023
Vues:
43
>>KEYBOARD '{HOME}'?
>
>Yes, but to do that keyboard macro, we need to be in the Editbox. In this application, the user may scroll the message from the treeview. So, the focus is not in the treeview at that time and keyboard will not work. :)

Ok, let me understand.

In your form you have a treeview.
(UT browser i suppose...)
In this treeview, the user select one message and click on it.
(like i do in the upper section of UT)
When this appen, you need to display the selected message in an editbox (this editbox is named 'message').
The cursor is not always at the rigth place when this occur.


For that reason you need to put some code in the treeview click.
Nooo...

This behaviour occurs only when the edit box was previuosly accessed and the cursor was let to the end of the editbox.

In this case you just have to put the code in the right place, on the source of the problem.

This.SelStart=0 && not 1!
in the Message.LostFocus()

:0)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform