Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hide columns in table
Hide columns in table [message #449189] Wed, 19 January 2005 01:30 Go to next message
Eclipse UserFriend
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 #449198 is a reply to message #449189] Wed, 19 January 2005 10:45 Go to previous messageGo to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
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
Re: Hide columns in table [message #449270 is a reply to message #449198] Wed, 19 January 2005 23:52 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to get a window to front in SWT?
Next Topic:Table margins always white???
Goto Forum:
  


Current Time: Thu Mar 28 22:17:40 GMT 2024

Powered by FUDForum. Page generated in 0.02217 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top