Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Showing a picture on Mouse Enter
Message
From
19/07/2013 08:20:26
 
 
To
16/07/2013 12:04:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01578538
Message ID:
01578858
Views:
50
Have a look at download#37149 - you'll need to adapt it

>Hi all:
>
>I have a grid on a form. One of the fields in the grid's recordsource contains the name of a picture file. The corresponding column in the grid is coded to display a Y/N based on whether or not a picture is associated with the record.
myform.mygrid.column1.controlsource = "IIF(EMPTY(mycursor.pict_name),'N','Y')"
>
>I've also put an image control on the form. This is usually set as invisible.
>
>What I would like to have happen is that as the mouse moves over each cell in the column the picture will display in the image control. Something like
>
IF NOT EMPTY(mycursor.pict_name)
>     thisform.image1.picture = mycursor.pict_name
>     thisform.image1.visible = .T.
>ELSE
>     thisform.image1.visible = .F.
>ENDIF
>
>and then when the mouse leaves the cell
>
thisform.image1.visible = .F.
>
>The issue at the moment is where to put the code. I tried putting it in the column mouse enter/leave event, but that will only display the picture from the current record in the cursor. Moving the mouse from row to row doesn't trigger any record movment in the cursor.
>
>All suggestions welcome, including alternate approaches.
>
>TIA.............Rich
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform