Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pictures in command buttons
Message
 
To
06/11/2001 01:02:01
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00577796
Message ID:
00577898
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform