Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add image to the Toolbar ?
Message
 
To
09/02/1999 12:57:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00184681
Message ID:
00185611
Views:
58
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform