>Hi,
> I have a grid in my form. I set the textbox's mouseicon = "c:\...myicon.cur and mouse pointer to 99. When the mouse pointer move over the text box when the textbox is not setfocus, it still remain to the default pointer. How could I set my own mouse pointer for mouse over the textbox even it was not setfocus?
>
Hi, John,
The grid's mousepoiner is probably the custom cursor you installed (I just installed one as a test -- and it works just fine).
However, when the mouse moves over the grid, the cursor displayed is the cursor of the (1) header or (2) controls installed in the grid. The only time you see the grid's cursor is when you move over a part of the grid that is not occupied by an included control -- for example along the record mark bars (if you have them in your grid).
To make the grid's cursor show over all of the controls in the grid, you must install the grid's cursor in each control included in the grid. For example, in the grid's Init() you can do something like:
WITH this
FOR EACH loColumn in Columns
FOR EACH loControl in Controls
IF PEMSTATUS(loControl,"mousepointer",5) .AND. ;
PEMSTATUS(loControl,"mouseicon",5)
WITH loControl
.mousepointer = 99
.mouseicon = "myMouseIcon.cur"
ENDWITH
ENDIF
NEXT
NEXT
ENDWITH
RETURN
regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.