comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Table widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Table widgets [message #17422 is a reply to message #17404] Sun, 10 October 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Nils Johnson (nilsj@unixg.ubc.ca) writes:

> : Don't know about the table widget. Don't use it. :-)
>
> So what do you use to get a bunch of strings on the screen so
> that it looks like columns of text? Is the table widget overkill
> for doing this if I just want to display data and not have it be
> modified by the user?

Oh, it might be just the thing for this purpose. I don't
use it on principle, since I dislike it so much. I'd hack
something--anything--together to avoid using it and my program
would probably be worse off for it. :-)

> : I once took a survey of the 10 best widget programmers I knew.
> : I asked them how they size their text widgets. I got 10
> : completely different answers. The only common thread was
> : that each answer bordered on voodoo.
>
> How about bugging your friends at RSI to fix this so there's no
> black magic anymore? Like getting a fixed-width font and then
> having a UNIT setting in characters...

My "friends" at RSI think I'm basically nuts and have
long since discounted my input on user-interface issues.
However, if *you* wrote them a note, I'd bet they would be
much more inclined to listen to the input. :-)

But if it is a fixed width font that you want, even
I can figure out a way to size text widgets:

stringValue='This is text'
textID = Widget_Text(tlb, Value=stringValue, $
XSize=StrLen(stringValue), Font='Courier*12')

It is all the non-proportionally spaced fonts that cause
the havoc.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL's handling of LOGICAL quantities (WHERE)
Next Topic: Reading ENVI roi file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 04:41:10 PDT 2025

Total time taken to generate the page: 1.28016 seconds