Questions tagged [selectedtext]

93 questions
1
vote
2 answers

jQuery fieldselection replaceSelection doesn't works for me

hi this is the simple jquery fieldselection plugin. /* * jQuery plugin: fieldSelection - v0.1.1 - last change: 2006-12-16 * (c) 2006 Alex Brem - http://blog.0xab.cd */ (function() { var fieldSelection = { …
itsme
  • 48,972
  • 96
  • 224
  • 345
1
vote
1 answer

Change word macro to scan selected text only (to save time in large documents)

I used the macro below and it works nicely! However, would it be possible to limit it to the text I selected in the active document only? The seperate document has 2000 words, so if the active document has too much text it will take ages... Even…
1
vote
0 answers

How to change color of selected text for Entry and Editor controls in MAUI.NET

Like in the title. I cleared all styles and still - when the user select text in entry or editor there is coloured background of this selected text. I want to set what colour it would be. How to do that? Right now this is the Windows theme colour…
jaydopartu
  • 63
  • 1
  • 8
1
vote
1 answer

Select characters (highlight text) in input on mousedown and mouseup with Blazor Component

Same thing as Javascript Window.GetSelection. Basically I want to be able to grab the selected text in an html input with Blazor. So whatever value is written into the input, upon mouse-selection will be stored in a…
Villads Claes
  • 111
  • 10
1
vote
1 answer

New tab with the url + selected text (js, Chrome extension)

I'm designer who tries to develop the chrome extension. Please don't guilt me that this question was answered. It wasn't. Here is what I want: User select text on any page on the web Clicks extension icon New tab opens with url:…
1
vote
1 answer

Retain user selected text on blur/focus

How can I retain the user's text selection when calling $(inputElement).focus() on some text input element, inputElement, so that they can still use Ctrl+C after inputting some text top their initial selection? I have considered intercepting the…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
1
vote
1 answer

Get font of selected text in JEditorPane

Basically the question says it all; I have a JEditiorPane with the content type 'text/html'. I have created a font family and font size combo box and enabled them using the StyledEditorKit actions. This works great and I can change the font…
Andy
  • 3,600
  • 12
  • 53
  • 84
1
vote
3 answers

C# show MessageBox based on Combobox SelectedText

How do I show a messagebox based on the various SelectedText in the Combobox? It currently just returns a NULL value when running. I need to show the specific messagebox for each Combobox Text as once I can do this then depending on the…
WHoward
  • 131
  • 4
  • 18
1
vote
1 answer

Retrieving font name of selected text in RichTextBox

I'm trying to retrieve font names for each line of text in a RichTextBox (each line is having a different font). Below is the code that I'm using to get the font name of second line in the RTB. RichTextBox2.Select(RichTextBox2.Lines(0).Length + 1, …
Charan
  • 13
  • 3
1
vote
4 answers

selected text and xy coordinates

how to get a selected text and xy coordinates of the word in the same time??
user495688
  • 973
  • 2
  • 15
  • 25
1
vote
3 answers

Get the string from selected text/ highlighted text using JXA

I'm supper new here, either Javascript and JXA, so pardon me if I make some stupid questions. But I'm trying to figure out a way to get the string from the highlighted text using JXA - JavaScript for Automation, for Javascript can be recognized in…
Le Hoa
  • 23
  • 4
1
vote
1 answer

nodeName for selected text in Javascript

I have HTML which looks something like this: some text bla bla and when user selects something, I want to identify which elements he had…
domagojk
  • 1,020
  • 2
  • 11
  • 25
1
vote
1 answer

Is it possible to highlight only the text of the current QComboBox Selection?

I want only text of the current QComboBox Selection to be highlighted instead of the whole area until the down arrow. to illustrate better I want something like this: instead of this: Is this possible? If yes how? I searched online, tried a…
mj1261829
  • 1,200
  • 3
  • 26
  • 53
1
vote
1 answer

dropdownlist selected text change on arrow key press

I have a Dropdownlist.I have added wrapper class on that dropdown.And this class added span after dropdownlist to show selected text.