Questions tagged [styledtext]

The StyledText widget is a customizable widget that can be used to display and edit text with different colors and font styles.

A StyledText is an editable user interface object that displays lines of text. The following style attributes can be defined for the text.

  • foreground color
  • background color
  • font style (bold, italic, bold-italic, regular)
  • underline
  • strikeout

Related Links:

71 questions
0
votes
3 answers

How to show a hover popup with SWT StyledText

I am using SWT's StyledText and I am wondering how I would detect if the user hovers over a word for more then 3 seconds. An example of what I mean is how Eclipse has a popup that shows, when you hover over a text.
0
votes
1 answer

Color / Highlight White Spaces in JavaFx HTMLEditor

in my app I have a HTMLEditor and I want to highlight White Spaces to show the user where my editor inserted white spaces. In Swing this was easy but I can't find out how to do it with JavaFX. I know that there is already a question about styled…
Guido
  • 926
  • 2
  • 10
  • 19
0
votes
1 answer

Is there method how to integrate StructuredTextEditor in ViewPart or just simple widget?

We are developing Eclipse plagin project. When you select object into Editor Area properties displays in viewpart below editor. Viewpart contains textbox with XML data. Is there method how to integrate StructuredTextEditor in ViewPart or in any…
trueboroda
  • 2,650
  • 26
  • 24
0
votes
1 answer

SWT StyledText text completion ability

Is there a way to add ability like code completion in eclipse to StyledText widget. I have a list of possible string inserts which depend on previous text.
aleshko
  • 385
  • 3
  • 20
0
votes
1 answer

SWT, styledText, get x coordinates for certain line

I am working on plug-in for eclipse CDT editor, which is an overlay that can highlight certain parts of code. I have access to opened CEditor (and its IDocument), and from it also to StyledText. I also have a character offset of parts i want to…
Smarty77
  • 1,208
  • 3
  • 15
  • 30
0
votes
1 answer

Best solution for styled text within a uitableviewcell?

Fo styled text (bold, italic, diff fonts and sizes), what's the best solution for putting a chunk of text within a cell? The text can of various lengths, so the cell would have to change it's height accordingly.
cannyboy
  • 24,180
  • 40
  • 146
  • 252
0
votes
1 answer

How to use images in SWT Text field?

I'm creating a chat like application with SWT. My application uses StyledText and Text for taking input and displaying it to user. Is there a way I can insert emoticons (images) into the text field?
Harshal Pawar
  • 76
  • 1
  • 6
0
votes
1 answer

How to persistently store styled text from a Document in a database?

So I'm currently working on a program that allows users to created "posts" with styled text. Right now I'm using Java's DefaultStyledDocument, but I'm open to other options (preferably they implement StyledDocument, though). I originally posted…
DonyorM
  • 1,760
  • 1
  • 20
  • 34
0
votes
1 answer

Java SWT image in front of a styled text

I have a StyledText in my application with bold or colored words and I want to add an image in front of the text, like in the example above: But since I am very new in SWT I don't know what to search for. How is this possible? Can anyone give me…
dildik
  • 405
  • 6
  • 16
0
votes
1 answer

How to retain multiple occurrences of same string get selected within same styled text content?

How to retain multiple occurrences of same string get selected within same styled text content? Single occurrence can be selected using setSelection(). Is there any similar options?
Sana
  • 118
  • 2
  • 13
0
votes
1 answer

How to terminate currently running eclipse application via keyboard?

I am new to eclipse.Please suggest a keyboard shortcut to terminate currently running eclipse application
Sana
  • 118
  • 2
  • 13
0
votes
1 answer

SWT issue with styledtext

I'm using SWT to create the menu of an application. In the class "B" the method createContents() is the responsible of create the content of the form: protected void createContents() { shell = new Shell(); shell.setSize(500, 315); …
user2994057
  • 91
  • 1
  • 6
0
votes
1 answer

Scrolling SWT scrollBar

I have a SWT styledText area with scrollBar. I would like the scrollbar to scroll to a given index but I am experiencing some difficulties. I tried: ScrollBar vBarScroll =…
Valkyrie
  • 108
  • 13
0
votes
1 answer

StyledText nullpointer

Im working with SWT StyledText to display data to the user in one part of the window. In another part I have a graph, over which I slide my mouse pointer. As I slide my mouse over a point in the graph, it highlights the corresponding entry in the…
Valkyrie
  • 108
  • 13
0
votes
1 answer

Get contents from eclipse viewpart

I am developing a plugin in eclipse using the eclipse ViewPart class. Inside the viewpart i have the styledtext. Consider i have 2 views view_1 and view_2 and both have styledText_1 and styledText_2. For some search function, i need to get the…
AJJ
  • 3,570
  • 7
  • 43
  • 76