Formating text in a GUI listbox

  • Follow


Hi,

I am trying to present formatted data in a listbox I created in a GUI
(using Matlab 6.5 rel. 13 and GUIED).
suppose I want to write the following:

AA 13 0.3
BBBB 123 0.15

What ever I do (calculate the size of the spaces and insert blanks at
the right places...) I get something of the sort:

AA 13 0.3
BBBB 123 0.15

It looks as if a blank occupies much less space then a letter.

Can you help please?
Thanks,
Utzli
0
Reply dont9412 (33) 1/29/2004 9:27:41 AM

Utzli Gutzli wrote:
>
>
> Hi,
>
> I am trying to present formatted data in a listbox I created in a
> GUI
> (using Matlab 6.5 rel. 13 and GUIED).
> suppose I want to write the following:
>
> AA 13 0.3
> BBBB 123 0.15
>
> What ever I do (calculate the size of the spaces and insert blanks
> at
> the right places...) I get something of the sort:
>
> AA 13 0.3
> BBBB 123 0.15
>
> It looks as if a blank occupies much less space then a letter.
>
> Can you help please?
> Thanks,
> Utzli

You need to use a a fixed-width font, e.g. Courier or maybe better:

"properly written MATLAB application that needs to use a fixed-width
font should set FontName to FixedWidth and rely on the root
FixedWidthFontName property to be set correctly in the end user's
environment."

/per
0
Reply poi3 (1062) 1/29/2004 11:40:01 AM


per isakson wrote:
>
> You need to use a a fixed-width font, e.g. Courier or maybe better:
>
>
> "properly written MATLAB application that needs to use a
> fixed-width
> font should set FontName to FixedWidth and rely on the root
> FixedWidthFontName property to be set correctly in the end user's
> environment."
>
> /per

Thank you very much - it solved the problem :-)

I also found that the font 'fixedsys' works as well. Both fonts have
a problem of scaling to a desired size, but they provide the
alinement.

Thanks again,
Utzli
0
Reply dont9412 (33) 1/29/2004 11:53:43 AM

2 Replies
43 Views

(page loaded in 0.098 seconds)

Similiar Articles:
















6/21/2012 6:57:52 PM


Reply: