Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Creating an email-recipient like widget(a widget with multiple buttons that can switch to text mode)
Creating an email-recipient like widget [message #673748] Tue, 24 May 2011 15:52
Niklas  is currently offline Niklas Friend
Messages: 1
Registered: May 2011
Junior Member
Hello

I am fairly new to SWT development but I have a very specific kind of widget in mind and wondering how to best implement this using the SWT.

The widget is similar to the widgets you will see in some email applications when entering the recipients. So in the beginning there should be just a text input field in which the user can type in some text. In this case the text will be a class or method name. Once entering a whitespace character such as enter, tab or space the text should be replaced by the widget, which should look something like this:
index.php/fa/2821/0/

index.php/fa/2822/0/

The Star and the "X" should be clickable with the Star having a toggle semantic and the X beeing used to delete the widget.

The user should then be able to edit the widget by doubleclicking on the name and changing the text like this:
index.php/fa/2823/0/

index.php/fa/2824/0/

index.php/fa/2825/0/

Could you give any advise to me on how to go about implementing this?
Should I try to customize a Button and replace it with a Text widget when necessary? How do I get such fine-grained control over the appearance?

Thanks
Niklas
  • Attachment: forum1.png
    (Size: 7.78KB, Downloaded 667 times)
  • Attachment: forum2.png
    (Size: 12.40KB, Downloaded 660 times)
  • Attachment: forum3.png
    (Size: 20.56KB, Downloaded 643 times)
  • Attachment: forum4.png
    (Size: 18.50KB, Downloaded 712 times)
  • Attachment: forum5.png
    (Size: 20.82KB, Downloaded 636 times)

[Updated on: Tue, 24 May 2011 15:56]

Report message to a moderator

Previous Topic:High contrast mode setting for textbox in a jface dialog
Next Topic:Problem with SWT Text
Goto Forum:
  


Current Time: Fri Aug 07 19:58:32 GMT 2020

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

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

Back to the top