Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hot tracking buttons not always visible
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00687535
Message ID:
00687663
Vues:
9
>I've had this problem intermittently, and no matter what I've tried, it still pops up. I've got a couple of buttons on a form that are set to hot-track (SpecialEffect = 2). Their Picture property is set via: ='images/myImage.bmp'. About 20% of the time, the buttons aren't painted until the mouse moves over them, at which point they appear. If I change the buttons to 3D, they work everytime.
>
> I've tried setting the buttons to 3D initially, then in the Init(), or Show(), or Activate() setting them back to hot track, but it still fails. Has anyone else seen this behavior and/or have any work arounds for it?

Include the BMP files in your project. Add the EXTERNAL clauses before assigning the images to picture property:
External file myImage.bmp
ThisForm.MyButton.Picture = 'myImage.bmp'
Another possibility is to deploy your pictures along with your application executable.

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform