Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
Try using a StyledText
http://www.java2s.com/Tutorial/Java/0280__SWT/StyledTextembedimages.htm
Previous Topic:Widget transparency problems. Been stuck for weeks.
Next Topic:Problem in Handling Ole Event
Goto Forum:
  


Current Time: Wed Jul 23 17:36:41 EDT 2025

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

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

Back to the top