Hello!
Simple question. How do you disable the text selection of DocumentViewer in WPF? This is the feature where an XPS document is displayed by the viewer and then text can be highlighted via mouse. The highlighted text can also be copied but I have already disabled this. I just don't know how to disable the highlighting.
Thanks!
...
I'm working on what is basically a small utility that displays a piece of sourcecode in a table which has two columns, one for line numbers and one for the actual source.
I found that you can prevent the appearance of text being selected with the following CSS:
table th {
-moz-user-select: none;
-webkit-user-select: none;
}
Unfortu...
Hello,
I'm trying to set a selection on a textrange from the active TextArea, but it doesn't work. The code below selects the text from the cursorposition, which can be anywhere if the user clicks the textarea, and sets the selection from there to the endposition.
var textRange = (IHTMLTxtRange)_activeHtmlDocument2.selection.createRang...
Hi,
I am trying to develop my first plug-in.
The plug-in should manipulate the content of the selected text in the active text editor.
I started with the “hello world” example from the “Cheat sheet” which worked perfect.
When tried to modify I found that project not recognizing many types.
I added the following jars to the project bui...
One of the nicer features in MacVim is that it is possible to use the usual OS commands for copying and pasting text (namely command+C and command+V) in it.
This is especially nice in situations when you’ve worked in another editor just a minute before and your brain isn’t ready yet to advise your fingers on how to type the real thing.
...
Hi guys,
I have a problem. Part of my app requires text to be shown in a table. The text needs to be selectable/copyable (but not editable) and any URLs within the text need to be highlighted and and when tapped allow me to take that URL and open my embedded browser.
I have seen a couple of solutions that solve one of either of these p...
Hi,
I am a developer of Elipse's plugins, I created an Editor containing a TextViewer
I wanted to disable the standard selection of text so I created a class that inherits SyledText in a package "org.eclipse.swt.custom", then I override the method doMouseSelection ()
the problem is when I put this package in a fragment (plugin-host = or...
I'm running C# 2.0, and I've written an application with a DataGridView in virtualmode and a TreeView in the same form, but in different panels of a SplitContainer.
My application has a "find all" function that finds all instances of a certain string, and adds them as the child nodes to a new node to the TreeView (it's a tree view becau...
Hi.
Let's consider the following scenario. I have the following page where all rendered elements must be non-selectable.
<html>
<head>
<style type="text/css">
body {
-webkit-user-select: none;
-moz-user-select: none;
}
div {
border: solid 1px green;
padding: 5p...
Is it possible to select multiple parts of text within a WPF textbox? For instance, for a textbox that contains the string THIS IS A TEST, I want to be able to highlight THIS, then hold Ctrl and highlight TEST without unselecting THIS.
For a visual clue about what I'm aiming at, see this article about the feature in Firefox.
If by defa...
I have a NSTextField Label that has attributed text in it. The color and size are different from the defaults. (The text is a bit larger and green) Now, I need to be able to select the text in the label so as the click the hyperlinks embedded in the attributed text. This works fine; however, when selecting the text the format of the text...
There are quite a few applications that allow you to select a box or rectangle of text by sweeping with mouse while the Alt key is pressed. Visual Studio 2010 does this in the code editor, for instance. Emacs does it. Winword does it. We've all seen it. It seems like there must be a standard pattern to follow to encode this behavior but ...
This code will return true if the browser supports selectionStart and some text is selected, but if no text is selected it returns false (even on browsers that support it):
if (el.selectionStart) {
}
How do you determine if the property is available regardless of whether text happens to be selected?
Thanks
...
Novice programmer asking first question on stack-overflow. I am writing an app for mac osx that monitors for text selection ie when a user does a double click on some text. The text can come from a browser or text editor, etc. The goal is to capture the text and do some processing on the text.
I been reading about the mouse and curso...
While collecting some training data for NLP, I discovered that it is impossible to select parts of 2 adjacent words in a RichTextBox.
For example: you can not select "lect Me" from "Select Me" in a RichTextBox using mouse..!!
However it can be done using SHIFT key
Is there a property to be able to select parts of adjacent words not the...
How to make a text selection in my overlays?
Now my overlays inactive for text selection
and creates a zoom when i double-click in overlay.
http://img121.imageshack.us/img121/9022/overlayph.png
...
I need to enable selecting certain fragment of text in IE for further JS processing.
Unfortunately, IE has strange text selection behaviour - when you try to select text fragment that contains whitespace, IE will extend selection to the whole words, e.g. if you try to select (using your mouse) only: rem ips fragment from the sentence: L...
I have a UITextField in my iPhone app. I know how to make the text field select all of its text, but how can change the selection? Say I wanted to select the last 5 characters, or a specific range of characters, is that possible? if not, can I move the lines marking the beginning and end of the selection, as if the user is dragging them?...
Hi
I have a large TextView. I want to select and extract particular word or some text from that.
Is it possible in Android. If yes then how
...
For standard browsers you can use something like this to change the coloring of selected text.
div.txtArea::selection {
background: transparent;
}
div.txtArea::-moz-selection {
background: transparent;
}
div.txtArea::-webkit-selection {
background: transparent;
}
Is there a way to do this with javascript?
My users can select tex...