Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouse pointer

Status
Not open for further replies.

mallee

Programmer
Nov 7, 2000
116
I have an fpw 2.6 app converted into vfp 6 that
uses a lot of browse screens. Problem is, the
mouse pointer does not show up as an arrow within
the screen, I think its in edit mode, How do I
make it look like a regular pointer ?

Thanks for your help.

 
At the very least, it would be useful to know how you did this "conversion" - I can think of at least four or five techniques, and each might handle grids differently. What is the code you are actually running?

Rick
 
Sorry I wasn't more clear, I am actually running
FPW 2.6 code in vfp. It is a browse grid in a user
window. The pointer shows in blank areas but if you
move it over a data areae it changes.

thanks.
 
Now I'm really confused, that's exactly how it works in FPW, why do you want it to work differently?

Rick
 
Thanks for answering, yea, I know that is how it works
but I have some functions that are called by clicking
on one of the data filled browse lines, it works correctly
but my boss ( who does not want to re-design if VFP untill
"later"), would like to see a regular mouse pointer. Maybe
I'll just tell him it has to wait till VFP.
 
I don't know about 2.6 but in VFP 6.0 grid you can put this in any column you want in the .mouseover event.

Code:
 this.parent.mousepointer = 1
.

Of course you'll have to adjust it elsewhere too since various events change the mousepointer. If you can't do this to the 2.6 grids then indeed it might be a point to be made in favor of VFP.

Dave Dardinger
 
Well I had an answer till you indicated you are actually "accessing" the grid. I was going to suggest that you place a Shape over the Grid (kind of like a big 2.x invisible button), but if you want to know the "row" you are clicking on, it would take some "fancy" code in the click event to calculate that using the current mouse position.

Even if you re-write this in 6.0/7.0 code, it's going to work (or have to be fixed) the same way - it one of those "nasty" Window's UI standards.

Note to Dave: Changing this property will only fix the pointer when he clicks into a given text box - it's still "wrong" in a hover mode.

Rick
 
Rick,

Actually when I was doing some tests I saw rather the reverse, though not totally. When the mouse was over the column it'd show what you wanted *except* for the cell which was hi-lighted. I'd guess when a cell has the focus it has it's own mousepointer source. That's why I mentioned 'elsewhere'; I didn't have time to trace down all the events involved and figure what code needs to be placed in them.

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top