Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid.TextBox.LostFocus and the same / different row
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00556603
Message ID:
00556622
Vues:
15
>Hi Nadya,
>I don't know what are you trying to do but I don't think it should be done on a textbox level.

It the GotFocus I change Header BackColor and ForeColor to Green and White to show, that this column is currently active. In the LostFocus I restore these settings back. Now, I've realized, that if I don't change Column, I don't need to change and restore. In other words, when I navigate beetween columns, I need to change these colors, otherwise, I don't.

I can save Current ActiveColumn property of the grid in a Grid New Property (added on the fly), and I also have to save Previously Active Column Index, which is a quite messy approach, but I don't currently see a simpler way...

The other way would be to check the cursor position, but it seems to be even more complicated...


>>Hi everybody,
>>
>>I have this problem: I need to know from Grid.Colum.TextBox point of view, am I changing rows or columns? TextBox is my own textbox class and I can add necessary properties and code. This is for VFP6.0
>>
>>Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform