Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Adding mouse down listener to chevron item in CTabFolder(Mouse down selection listener for CTabItem that is part of the "chevron list" in a CTabFolder)
Adding mouse down listener to chevron item in CTabFolder [message #634300] Thu, 21 October 2010 07:58 Go to next message
Christoph Miksovic is currently offline Christoph MiksovicFriend
Messages: 12
Registered: March 2010
Junior Member
Dear community,
can any body give me a hint what is the most elegant way to add a mouse down selection listener to a CTabItem that is part of the "chevron list" in a CTabFolder?

Thank you very much for any hint.
Christoph
Re: Adding mouse down listener to chevron item in CTabFolder [message #634538 is a reply to message #634300] Fri, 22 October 2010 07:21 Go to previous messageGo to next message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

You can use CTabFolder.addCTabFolder2Listener to add the CTabFolder2Listener or CTabFolder2Adapter. The showList() will be called when user clicks on the chevron button.
By default, CTabFolder creates a list (a Menu) with the items & displays it.
If you want to be notified when the user clicks on an item in the list, you can create your own selection list and add selection listener to the items in the list . Also,you should set event.doit = false, so that the default list is not created. Have a look at CTabFolder.showList to see how it is done in CTabFolder.


Lakshmi P Shanmugam
Re: Adding mouse down listener to chevron item in CTabFolder [message #634541 is a reply to message #634538] Fri, 22 October 2010 07:25 Go to previous message
Christoph Miksovic is currently offline Christoph MiksovicFriend
Messages: 12
Registered: March 2010
Junior Member
Hello Lakshmi,
thank you very much for your reply.
Cheers,
Christoph
Previous Topic:Polygon Figure with gradient pattern ,does not paint properly at different zooms.
Next Topic:Problem with focuslost
Goto Forum:
  


Current Time: Thu Apr 25 19:18:17 GMT 2024

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

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

Back to the top