Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing a picture on Mouse Enter
Message
 
 
À
16/07/2013 12:04:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01578538
Message ID:
01578854
Vues:
101
Doesn't sound right to me. The picture should be dispalyed at the mouse pointer position similar to a tooltip

>
>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
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform