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