Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>In the grids mousemove you can reset it and in all the columns other then the column with the read only data.
>>Only in the column's mousemove evnet you need to set it.
>>For the objects in the column you already can set it at design time.
>
>You can, of course, set it any way you like, but the only place the mouse pointer will be affected by the design time settings is over the active cell. My experience has been that when it is ddesired the pointer to be an arrow over any specific row/column, you have to use something like the code I supplied. Any column the code is not in will operate according to the default settings made at design time or made programmatically at run time.
First of all, i didn't want to bother you.
if you read all the messages you see that we also conluded that the things you do at desing time only affect the cell if it is active. But that can you set at design time. You don't need to set it to the same value every tim you come over the control.
But about the column, then you are right.
But if you set the mousemove code only in the columns mousemove event it will already work.
You don't need to set it in the grids mousemove event, or in the headers mousemove event.
I thought it was more difficult. Thanks for directing me to that simple solution.
I now think the solution is this.
At design time set the mousepointer property to 1 for all the controls in the column.
In the column's mousemove event set the grids mousepointer to 1 (this.Parent.Mousepointer = 1
)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement