Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picture position on VFP8 buttons
Message
From
14/11/2002 06:16:18
 
 
To
14/11/2002 05:58:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00721588
Message ID:
00722590
Views:
34
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.com
ICQ #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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform