Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture position on VFP8 buttons
Message
From
14/11/2002 05:58:44
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721588
Message ID:
00722587
Views:
45
Hi!

>Did you look to the PicturePosition property of the CommandButton in VFP 8 beta? :-) This property does exactly what you mentioned.
>

Are we talking about the same version? :)

Run this code, please:

*** CODE STARTS HERE
PUBLIC oForm
oForm = CREATEOBJECT('form')
oForm.Show
oForm.AddObject('oCmd','CommandButton')
WITH oForm.oCmd
.Left = 100
.Top = 100
.Height = 25
.Width = 250
.Caption = 'Short text'
.Picture = SYS(2004)+'Graphics\Bitmaps\Tlbr_w95\CAMERA.BMP'
.PicturePosition = 2
.Visible = .t.
ENDWITH
*** CODE ENDS HERE

You will see camera icon and caption centered on button. (Can I post here same screen shots? How?). I want this icon to be aligned to the left edge of button.

Got idea?

Janusz Czudek
WORD Software
http://www.wordsoft.com.pl
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform