Thread Subject: vertical alignment of text in uicontrol

Subject: vertical alignment of text in uicontrol

From: Naor Movshovitz

Date: 5 Nov, 2008 22:25:03

Message: 1 of 5

Is there really no vertical alignment option for GUI text objects 'text' and 'edit'? Is there a workaround?

Thanks,
-naor

Subject: vertical alignment of text in uicontrol

From: Walter Roberson

Date: 5 Nov, 2008 22:53:37

Message: 2 of 5

Naor Movshovitz wrote:
> Is there really no vertical alignment option for GUI text objects 'text' and 'edit'?

text() offers 'HorizontalAlignment' and 'VerticalAlignment' parameters.

There is no such thing in Matlab as a "GUI text objects 'edit'"

uicontrol objects of Style 'text' or 'edit' offer a 'HorizontalAlignment'
option but no vertical alignment option.

> Is there a workaround?

Yes, if you are willing to go in at the Java level and reprogram how that
uicontrol works.

--
.signature note: I am now avoiding replying to unclear or ambiguous postings.
Please review questions before posting them. Be specific. Use examples of what you mean,
of what you don't mean. Specify boundary conditions, and data classes and value
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?

Subject: vertical alignment of text in uicontrol

From: Naor Movshovitz

Date: 5 Nov, 2008 23:11:02

Message: 3 of 5

Walter Roberson <roberson@hushmail.com> wrote in message <qtpQk.1856$Mq5.1008@newsfe01.iad>...

> text() offers 'HorizontalAlignment' and 'VerticalAlignment' >parameters.

but no scroll bar sadly
 
> uicontrol objects of Style 'text' or 'edit' offer >a 'HorizontalAlignment'
> option but no vertical alignment option.

that's what i thought was odd. anyway, at least i am reassured it's not just me. thanks.

-naor

Subject: vertical alignment of text in uicontrol

From: Walter Roberson

Date: 6 Nov, 2008 00:09:12

Message: 4 of 5

Naor Movshovitz wrote:
> Walter Roberson <roberson@hushmail.com> wrote in message <qtpQk.1856$Mq5.1008@newsfe01.iad>...
>
>> text() offers 'HorizontalAlignment' and 'VerticalAlignment' >parameters.

> but no scroll bar sadly
>
>> uicontrol objects of Style 'text' or 'edit' offer >a 'HorizontalAlignment'
>> option but no vertical alignment option.

> that's what i thought was odd. anyway, at least i am reassured it's not just me. thanks.


Perhaps the FEX contribution for scrollable editable tables would be of interest,
http://www.mathworks.com/matlabcentral/fileexchange/6734

--
.signature note: I am now avoiding replying to unclear or ambiguous postings.
Please review questions before posting them. Be specific. Use examples of what you mean,
of what you don't mean. Specify boundary conditions, and data classes and value
relationships -- what if we scrambled your data or used -Inf, NaN, or complex(rand,rand)?

Subject: vertical alignment of text in uicontrol

From: Naor Movshovitz

Date: 6 Nov, 2008 00:19:01

Message: 5 of 5

Walter Roberson <roberson@hushmail.com> wrote in message > Perhaps the FEX contribution for scrollable editable tables would be of interest,
> http://www.mathworks.com/matlabcentral/fileexchange/6734
yes it would. thanks Walter.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
uicontrol Naor Movshovitz 5 Nov, 2008 17:30:21
text alignment Naor Movshovitz 5 Nov, 2008 17:30:21
rssFeed for this Thread

Contact us at files@mathworks.com