General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only