Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] 2 SWT Questions

1) CTabFolder.setSelectionBackground() sets the background colour of the 
selected tab  and CTabFolder.setBackground() sets the colour of unselected 
tabs.

2) Create the pop-up menu on the Table and populate the menu based on the 
selected table item.  The following example is for Tree but the concept is 
the same for Table:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet97.java?rev=HEAD&content-type=text/vnd.viewcvs-markup




K W <mikemyers@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
06/04/2005 10:22 PM
Please respond to
K W and "Eclipse Platform SWT component developers list."


To
platform-swt-dev@xxxxxxxxxxx
cc

Subject
[platform-swt-dev] 2 SWT Questions






1) How do I make colored tabs using CTabFolder?

2) How do I make a pop-up menu when I right click on a TableItem?
TableItem does not inherit Control so I can't setMenu(). What is the
right way to do this?

Thanks!
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top