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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VFP forcing a mouse click in a grid

Status
Not open for further replies.

eric43

Programmer
Apr 29, 2005
94
AU
I need to force a mouse click - ideally in n column of a grid when the init method is called.

Can this be done. ( I have tried some time ago without success).

Thanks

Eric

 

Eric,

Do you really want to "force a mouse click", or do you in fact want to execute some code in a click event?

If the latter, why not execute the code directly? Or perhaps use BindEvent() to simulate it?

If you could explain what you are trying to achieve, we might be able to give you more guidance.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
This is my 3rd attemp to post a followup. -Test before actual content
 
I have a grid of 17 columns. Col17 is a picture Col7 is the path to the picture file.

The grid is always wider than the data and the right most cols are always hidden.

When I horiz scroll to the picture column I see 'stuff' in each cell behind the picture.

Clicking in any cell in that column causes a refresh that 'cleans up' the stuff so that each picture is on a grey background.

Hence I would like to try and 'clean up' the picture column and present the User with the required result - picture on grey background.

if it is allowed I could give the URL to the relevant page of the on-line manual.
 

Eric,

Sorry if I haven't understood this properly, but there are two possible issues here.

First, you could try setting the picture column's Sparse property to .F. That might be enough to make the picture visible.

Second, the fact that you can see "stuff in each cell behind the picture" suggests that you might have two controls in the column, and the one you want is behind the other one. Check that the only control in the column in an Image control; if necessary, remove the other one.

Finally, rather than forcing a mouse click, it might be enough to set focus to the control in question.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top