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

Home » Public Forums » archive » column labels on table widgets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
column labels on table widgets [message #26196] Thu, 09 August 2001 15:33 Go to next message
ronn is currently offline  ronn
Messages: 123
Registered: April 1999
Senior Member
All,

Has anyone figured out if it is possible to put two rows in a table widget
column label? It would look something like this

-----------------------------------------
| NAME | AREA | MASS | TYPE |
| | CM^2 | KG | |
-----------------------------------------
| A2 | 12.0 | 5.3 | G2 |
-----------------------------------------

Thanks,
-Ronn


--
Ronn Kling
KRS,inc.
email: ronn@rlkling.com
"Application Development with IDL"� programming book updated for IDL5.4!
"Calling C from IDL, Using DLM's to extend your IDL code" NEW BOOK!
Shareware and Freeware at: http://www.rlkling.com/
Re: column labels on table widgets [message #26266 is a reply to message #26196] Fri, 10 August 2001 14:56 Go to previous message
Harvey Rarback is currently offline  Harvey Rarback
Messages: 24
Registered: September 1998
Junior Member
ronn kling wrote:

> Has anyone figured out if it is possible to put two rows in a table widget
> column label? It would look something like this
>
> -----------------------------------------
> | NAME | AREA | MASS | TYPE |
> | | CM^2 | KG | |
> -----------------------------------------
> | A2 | 12.0 | 5.3 | G2 |
> -----------------------------------------

I don't believe so. I have written a widget object which replaces much of the
functionality of the table widget but includes

- multiple rows of column labels
- different color backgrounds and foregrounds per cell
- different alignments per cell
- different fonts for the column labels and table body
- none of the weird sizing problems of the table widget

It uses a draw widget with separate pixmaps for each cell.

That's the good news. The bad news is that I wrote this object for my own needs
and so it is not really documented (yet).

I would be glad to give out the code as is, or if there is enough interest I
could make it available in a more easily usable form.

--Harvey
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: _ref_extra
Next Topic: Setting colors for Plotting to PRINTER

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

Current Time: Wed Oct 08 13:45:50 PDT 2025

Total time taken to generate the page: 0.00508 seconds