Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add image to the Toolbar ?
Message
 
À
09/02/1999 12:57:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00184681
Message ID:
00185611
Vues:
54
>George,
> can you show me the sample code ? The image control is an Ms ActiveX control ?
>
>regard,

Hi chang,

It's just the standard image control, it's not ActiveX. Let's assume that you've got a "hot" image (one to appear when the mouse is over the image) named hot.bmp, a "cool" image (one for when the mouse isn't over it) named cool.bmp, and a disable image named disabled.bmp. For purposes of the code, we'll call the Image contol myImage
* In the image's MouseMove event
This.Picture = "hot.bmp"
* In the form's MouseMove event
IF ThisForm.myImage.Enabled
  ThisForm.myImage.Picture = "cool.bmp"
ELSE
  ThisForm.myImage.Picture = "disabled.bmp"
ENDIF
Whenever the enabled status changes, call the form's MouseMove event to update the picture.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform