Hi!
I just took a notice that button captions in VFP8's ToolBox are left-aligned. Your button is not the same as ToolBox's :-)
How about following:
.Caption = 'Short text' + SPACE(200)
This is a trick to left-align button's caption that comes from previous versions of VFP.
That's how I got it look similar to ToolBox's buttons.
HTH.
>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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.