Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering Picture On Command Button
Message
De
02/05/1997 11:04:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00030624
Message ID:
00030639
Vues:
38
Do you have a command button that you are going to use in many places, where it will be a different size in each place? If this is what you are trying to do I found a trick that works pretty well....

Create an image that looks exacly like a push button, adding your other image to it as well. The image control has almost all the same properties and methods that a command button does. But there is also a property in the image control called "Stretch". If you change that to "2-Stretch" then as you resize the image the picture changes size with it.

GeneS


>Ok, what is the trick! I am creating a subclass, and want to put a picture on a command button. It is meant to be a small button, and as I reduce its size the picture disappears. The picture seems not to be centered, but rather lies on the upper quarter of the button. Yes I did the help file and rtfm with no clue.
>tia-
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform