Re: Overridden button caption - left-aligned???

Tech-Archive recommends: Fix windows errors by optimizing your registry



Bernie,

are you loading the captions from a table? Maybe you forgot to rtrim() the
text.

Example:
THISFORM.Command1.Caption= "Hello" + Space(20) && Left-aligned
THISFORM.Command1.Caption= rtrim("Hello" + Space(20)) && Centered

--
Cheers
Carsten
_______________________________

"Bernie Beattie" <BernieBeattie@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb im
Newsbeitrag news:DB79F564-1187-49D3-B23C-9912488AAB43@xxxxxxxxxxxxxxxx
> I have VFP8 code that overrides a button caption but the caption displays
> left-aligned rather than centered for some reason. There doesn't seem to
be
> any property to set to correct this. Has anyone any ideas?
>
> Bernie


.


Quantcast