I believe the table header has 'owner draw' support on the platforms we 
support (win32, cocoa and GTK). SWT would have to expose API for this. I 
suppose the API would be similar to the  custom draw API for 
TableItem/TreeItem (i.e. SWT.PaintItem/SWT.EraseItem/SWT.MesuareItem 
events).  SWT would also have to expose the table header as a control with 
items: probably Header and HeaderItem.

Here are links to the related documentation:

http://msdn.microsoft.com/en-us/library/windows/desktop/bb775300(v=vs.85).aspx
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableHeaderView_Class/Reference/Reference.html
http://developer.gnome.org/gtk/stable/GtkTreeViewColumn.html

Menus can probably be 'owner drawn' on Windows and GTK (need to confirm). 
I am sure not about mac given it is an application menu.

Silenio



From:   Eric Moffatt/Ottawa/IBM@IBMCA
To:     E4 Project developer mailing list <[email protected]>, 
Date:   07/11/2012 10:55 AM
Subject:        Re: [e4-dev] Themes for Eclipse 4
Sent by:        [email protected]




Mike, the other area that seems problematic is the menu rendering which 
has limited styling abilities at least on some platforms (Windows ?). 
Perhaps we should be producing platform-specific themes that use the menu 
(and header?) styling where it's supported in the true CSS 'best attempt' 
manner ? 

Question for SWT: Do either the table header or menu support 'owner draw' 
? If so then using this would likely be far less effort that 
re-implementing them... 

Onwards, 
Eric 


From: 
Mike Wilson/Ottawa/IBM@IBMCA 
To: 
E4 Project developer mailing list <[email protected]> 
Cc: 
[email protected] 
Date: 
07/10/2012 03:09 PM 
Subject: 
Re: [e4-dev] Themes for Eclipse 4 
Sent by: 
[email protected]




Well, one possibility would be (for SWT) to hide the standard headers and 
"custom draw" an equivalent (if you've styled them). Obviously, this is a 
lot of work, but if that's what's standing in the way of the theming 
flexibility we want, then we should consider it. I'm not going to assume, 
a priori, any restrictions on what is possible. If you need the capability 
enter a bug requesting it.

McQ.

Brian de Alwis ---07/10/2012 02:29:22 PM---On 10-Jul-2012, at 1:32 PM, 
Roger Dudler wrote: > For example, how would you achieve to style those

From: Brian de Alwis <[email protected]>
To: E4 Project developer mailing list <[email protected]>, 
Date: 07/10/2012 02:29 PM
Subject: Re: [e4-dev] Themes for Eclipse 4
Sent by: [email protected]



On 10-Jul-2012, at 1:32 PM, Roger Dudler wrote:
> For example, how would you achieve to style those headers and grid lines 
in the attached Table?

Those are Aqua widgets and can't be changed, just like SWT 
Button(SWT.PUSH). The only solution is to change to a different platform, 
I think!

Brian.

[attachment "smime.p7s" deleted by Mike Wilson/Ottawa/IBM] 
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

<<image/gif>>

_______________________________________________
e4-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to