Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MousePointer over a Grid's Textbox
Message
From
18/10/1996 13:48:26
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00010393
Message ID:
00010458
Views:
37
>I just got VFP5.0 and I'm trying to create a class based on a Grid that is used to display read-only information.
>The I_Beam cursor over the Grid.Column.Textbox is quite annoying so I changed the Textbox.MousePointer to Arrow.
>Well, it doesn't seem to work.
>I also tried to replace the column.textboxes with labels but then the data awareness is gone. Same problem with the data unaware ActiveX grid.
>Any ideas?
>Thank you all.

declare integer SetSystemCursor in win32api integer hcur, integer hnum
declare integer LoadCursorFromFile in win32api string lpszFilename

I create a property name icon_pointer in my form and add this in the init method

this.icon_pointer = "C:\formation\h_point.cur"
xx = LoadCursorFromFile(this.icon_pointer)
if xx <> 0
=SetSystemCursor(XX, 32641) && replace system icon # 4
endif

and I change the property mousepointer of any control (ex. textbox) to 4-icon

When I pass over this control with the mouse the cursor change with the shape of H_point.cur. You can find many example of .cur files in vfp.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform