Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Image in Text widget?
Image in Text widget? [message #754474] Wed, 02 November 2011 16:39 Go to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 974
Registered: July 2009
Senior Member
Hi,

I would like to be able to embed a small icon within a text field (e.g. in a wizard or other)...where the icon appears on the left of the text box...and text input happens to the right of the image...e.g:

My field: <icon> <text input>

This isn't the same as a background image (that's behind the entire text box)...rather it's an icon that takes up some space on the left (or optionally, right) of the text box.

Is there some existing instance of such a widget? Or similar examples?

Thanksinadvance,

Scott
Re: Image in Text widget? [message #755095 is a reply to message #754474] Mon, 07 November 2011 11:17 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
Try using a StyledText
http://www.java2s.com/Tutorial/Java/0280__SWT/StyledTextembedimages.htm


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Widget transparency problems. Been stuck for weeks.
Next Topic:Problem in Handling Ole Event
Goto Forum:
  


Current Time: Tue Nov 25 23:25:50 GMT 2014

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

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