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 12:39 Go to next message
Scott Lewis is currently offline Scott Lewis
Messages: 970
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 06:17 Go to previous message
Vijay Raj
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: Sat Aug 30 18:33:56 EDT 2014

Powered by FUDForum. Page generated in 0.08615 seconds