Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Add an action to a CLabel
Add an action to a CLabel [message #674324] Thu, 26 May 2011 14:04 Go to next message
Ivan Raichs is currently offline Ivan RaichsFriend
Messages: 17
Registered: April 2011
Junior Member

Hello,

In the current Eclipse IDE I've created a view which works as a menu. Inside the view I've added CLables which are supposed to work as the buttons. My question is, how can I add actions to those CLabels to make them work as buttons.

For example, I have a CLabel in which I've set a folder image, so it's supposed to allow the user to open files when he click it, like the File->Open option.

What do I have to add to the Mouse Listener of the CLabel??

Thank you very much in advanced for any response.


Ivan RAICHS
Re: Add an action to a CLabel [message #674500 is a reply to message #674324] Fri, 27 May 2011 07:15 Go to previous message
Ivan Raichs is currently offline Ivan RaichsFriend
Messages: 17
Registered: April 2011
Junior Member
Hello,

I've been googling and trying different things, and I think that what I have to do is add a handler via extension point to my CLabels, but I don't know really how to do it. I've been testing that is easy to do with commands added in menus, but I don't know really how to manage my specific case.

Thank you for any guidance!

Ivan RAICHS

Previous Topic:Problem with SWT Text
Next Topic:Java SWT x64 deploy problem
Goto Forum:
  


Current Time: Fri Apr 26 12:15:36 GMT 2024

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

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

Back to the top