Hide columns in table [message #449189] |
Wed, 19 January 2005 01:30 |
Eclipse User |
|
|
|
Originally posted by: lindseygeorge.hotmail.com
I would like to hide certain columns, or provide a user with a menu to
hide certain columns in a Table or TableTree. For example, in an e-mail
client I would have "Sender" "Subject" "Date" columns, and I want to
hide, say, the "Date" column. Or if I run my application in regular mode
as opposed to development/debug mode, I would like to show or hide
columns accordingly. Any suggestions on how to accomplish this?
Thanks,
Lindsey.
|
|
|
|
Re: Hide columns in table [message #449270 is a reply to message #449198] |
Wed, 19 January 2005 23:52 |
Eclipse User |
|
|
|
Originally posted by: lindseygeorge.hotmail.com
Thanks Yves!
Yves Harms wrote:
> Lindsey George wrote:
>
>> I would like to hide certain columns, or provide a user with a menu to
>> hide certain columns in a Table or TableTree. For example, in an
>> e-mail client I would have "Sender" "Subject" "Date" columns, and I
>> want to hide, say, the "Date" column. Or if I run my application in
>> regular mode as opposed to development/debug mode, I would like to
>> show or hide columns accordingly. Any suggestions on how to accomplish
>> this?
>>
>> Thanks,
>> Lindsey.
>
>
> Hiding a column:
>
> column.setWidth(0);
> column.setResizeable(false);
>
> Triggering a menue:
> Right clicks on a table headers are not recognized, a workaround could
> be e.g. STRG+left klick. To get the STRG modifier you have to add a
> filter to the display. The keymasks of the SelectionEvents for the
> tableHeader seem to be buggy.
>
> Yves
|
|
|
Powered by
FUDForum. Page generated in 0.02217 seconds