Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pictures in command buttons
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00577796
Message ID:
00577898
Vues:
15
Another workaround is to prepare the picture for the button, which contains both picture and text the way you want it.

>Eugene,
>
>From CommandButton, I think it is not possible. Try following -
>
>
>
>Public oForm
>
>oForm=CreateObject("Form")
>oForm.AddObject("cntButton","clsButton")
>oForm.cntButton.Visible = .t.
>oForm.show
>
>DEFINE CLASS clsbutton AS Container
>	Width = 78
>	Height = 26
>	SpecialEffect = 0
>	Name = "cntbutton"
>	
>	ADD OBJECT image1 AS Image WITH ;
>		Picture = "c:\program files\devstudio\vfp\samples\graphics\bmps\assorted\heart.bmp", ;
>		Height = 22, ;
>		Left = 2, ;
>		Top = 1, ;
>		Width = 24, ;
>		Name = "Image1"
>
>	ADD OBJECT label1 AS Label WITH ;
>		Caption = "Heart", ;
>		Height = 17, ;
>		Left = 37, ;
>		Top = 4, ;
>		Width = 40, ;
>		Name = "Label1"
>ENDDEFINE
>
>
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform