Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouse Pointer problem
Message
De
03/04/1998 15:58:07
 
 
À
03/04/1998 14:52:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00089348
Message ID:
00089423
Vues:
31
>>Hi. I make up a form and has a grid on it. I want to change the mouse pointer when my mouse is over the grid control. I already set the property of the grid.mousepointer=1 (arrow) and the grid.column.textbox.mousepointer=1 but still there's no effect the mouse is still crosshair when my mouse is over the grid. I was wondering if there's a way to do it. Thanks.
>
>Hello Richard!
>
>Some weeks ago I described a trick for it.
>You have to change the default textbox control for a dinamic current control which is a container. It contains a shape and a text box. The textbox is disabled and thus the shape will provide the mouse cursor, which you can set for anything but only for prdefined types. I donnot why, but custom mouse type doesnot work.
>So, make two types of the container control. One of them will be the normal look, and the other one will be the selected look.
>In the column's dinamyccurrentcontrol property put:
>iif(recno()=giRecno,'containerselected','containernormal')
>
>assuming that you named the two container 'containerselected' and 'containernormal', and make a global variable giRecno. (of course you can use instead of it a property, like Thisform.iRecno)
>And put into the grid's afterrowcolchange method:
>giRecno=recno()
>
>This is only the base idea, I hope you can figure out the details. Or put an other thread about it.
>
>BB

Thanks for ur reply but my problem now is I can't add a textbox and shape inside the container inside the grid. Also what are the difference between the "containerselected" and "containernormal" that you mentioned above.Thanks again.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform