|
"Yair Altman" <altmanyDEL@gmailDEL.comDEL> wrote in message <htc2hs$2mv$1@fred.mathworks.com>...
> Walter Roberson <roberson@hushmail.com> wrote ...
> > HorizontalAlignment
> > left | {center} | right
> > On Microsoft Windows systems, this property affects only edit and
> > text uicontrols.
>
> Since the OP had a textbox, this will indeed solve the OP's problem. But for anyone who is interested, the HorizontalAlignment can be set for all other uicontrols using their underlying Java component, which can be retrieved via the FindJObj utility on the File Exchange.
>
> The same Java object can also be used to set the VerticalAlignment property and quite a few other useful properties that Matlab does not expose.
>
> Yair Altman
> http://UndocumentedMatlab.com
Thanks Yair and Walter
Jens
|