TableViewer Column resized event [message #510173] |
Tue, 26 January 2010 15:46 |
Edin Edin Messages: 101 Registered: January 2010 |
Senior Member |
|
|
Hi, is there any way to listen to a TableColumn of a TableViewer to get informed if the size has changed?
have placed some textfields over the TableViewer and want to resize them when size of the tableviewer columns have changed.
Well what i actually need are the bounds of the table header fields, for each one. so when some of them resize, i want to resize the textfield
THx
[Updated on: Tue, 26 January 2010 16:07] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: TableViewer Column resized event [message #775077 is a reply to message #559870] |
Thu, 05 January 2012 09:36 |
Edin Edin Messages: 101 Registered: January 2010 |
Senior Member |
|
|
Hey guys, thnx for your help,
that is exactly what im looking for (overview and posibillity to see how the actual default theme is defined). Anyway, when i try to change Menu element, it has no effect for me. It stays gray. Im actually working with standalone version of RAP 1.5. so i have to create the shell on my own, and then add Menu instance. The MenuItems are correctly changed.
In my css im using this:
Menu {
color: #FFFFFF;
background-color: #0099CC;
}
And the menu is created on this way:
this.shell = new Shell(Display.getCurrent(), SWT.NO_TRIM);
Menu menuBar = new Menu(shell, SWT.BAR); //this remains gray, css has no affect!
MenuItem mainMenuHeader = new MenuItem(menuBar, SWT.CASCADE); //this works fine!
ANy idea why?
Is there a posibillity for a Widget to get its theme settings programatically and change them on the runtime. For example i have TableItem and if table is editable then css pointer property should be different then if its not editable. Or just simply to change the color and backgroundcolor (without setting it over SWT SYSTEM COLOR)?
[Updated on: Thu, 05 January 2012 10:27] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04559 seconds