caret

Selection overridden by formatter.

I have applied a Formatter to a JFormattedTextField using a FormatterFactory, when a user clicks into the text field I want to select the contents. A focus listener does not work as expected because the formatter gets called, which eventually causes the value to be reset which ultimately de-selects the fields contents. I think what is ...

MFC: What on earth is a CSplitterWnd Caret?

What on earth is a caret in the context of a CSplitterWnd class? I can't find any documentation relating explicitly to CSplitterWnds... EDIT: Specifically, what do these functions actually do: CWnd * pCurView = m_wndSplitter2.GetPane(2, 0); pCurView->ShowCaret() pCurView->HideCaret() EDIT2: Please note, I know what a caret is, I am s...

How to hide a caret in IE? (JavaScript)

While displaying a pop-up window above a wysiwyg editor, the caret (cursor in text area) is still visible under the pop-up window. Any ideas? ...

How did the term "caret" for text insertion evolve?

Where did the term "caret" originate for a text insertion point? I've tried to google for it, but this is something difficult to locate (even my historic computer reference books don't seem to help here). I'm reasonably sure I remember some archaic Wang/mainframe apps that used a literal caret (ie: ^) as a text insertion mark, but I co...

How do you programmatically move the caret of a Flex TextArea to the end?

I'm trying to move the caret in a Flex TextArea to the end after appending some text from my code. I've looked through the reference documentation for TextArea and its underlying TextField but it appears there is no method provided to handle this. One approach I've tried is to set focus to the text area and dispatch a KeyUp KeyboardEven...

Custom Caret for WinForms TextBox

Hi, I'm developing a custom HyperTerminal like application in a WinForms .Net 2.0 application. I have a multiline TextBox in a Panel in which you can interact with a hardware device. My customer wants to have a custom Caret, a filled rectangle the size of one character space instead of the vertical line that is by default. I know .Ne...

C++/QT: drawing a caret

I'm learning QT. I just started to write a text editor from scratch by inheriting QAbstractScrollArea. I'm doing this just for practice. But now I'm faced with the problem of displaying a caret. What comes to my mind is painter.drawLine and QTimer. Can you give some advices on this. I would also be glad hear some strategies to implement ...

Change text cursor (caret) colour in Cocoa?

Hello! Does anyone know if it’s possible to change the text cursor (aka caret) colour in Cocoa? I need to create a textfield which would change its caret colour depending on something. Please notice that I’m not talking about the mouse pointer picture, but the blinking vertical line which helps you understand where you are typing :-) ...

wxWidgets: how to change caret style in StyledTextCtrl (sending a command to scintilla)

wxWidgets has wxStyledTextCtrl which (as I understand) uses Scintilla behind the scenes I don't know much about Scintilla API, but I kinda have the idea that you issue commands to it. In particular, I want to make the cursor have a block style, I found in Notepad++ the following snippet: execute(SCI_SETCARETSTYLE, CARETSTYLE_BLOCK) ...

Drawing a blinking caret in Winforms

I'm developing a custom control, which most resembles a text area. I am drawing text, which works correctly, and accepting input which also works.. But I (the user) am left guessing where the caret is while I type, since I'm doing everything manually. How do I draw a blinking caret to show where I am currently typing? Is there a standard...

C#: Changing caret position in a DataGridView

In a TextBox, I could use textBox1.SelectionStart = 4. How can I do this in a DataGridView? edit for clarification: suppose a specific cell is already selected and in editing mode. If I push the right arrow key, the caret moves to the right one position over whatever text is in that cell. I wish to create a button that does the same ...

WPF PasswordBox Caret

Is there a way to hide or move the PasswordBox's caret? ...

wpf passwordbox caret

Hi all, How do I use a passwordbox control with a virtual keyboard using WPF? With the textbox control, it's fairly simple to just move the caret to the next text position; not so with passwordbox, which doesn't expose the caret position. Should I just derive my own? Seems like weak sauce. ...

Winforms: Screen Location of Caret Position

How can I find the screen position of the caret for a standard Winforms TextBox? ...

how to easily experiment with elisp code that involves moving a cursor (caret)?

I usually play with elisp code on my scratch buffer. I find it hard to play with elisp code that moves cursors in this way because I don't know how to separate the buffer for editing code and the buffer for testing the code. For example if I want to play with the following code: (backward-up-list 1) (backward-sexp 1) (kill-sexp 2) fr...

How can I assing the Caret to a Control in WPF

Need to make a new WPF control and give the Caret to it. In WINFORMS or previos Windows UI it was easy using the WIN API Caret functions, but now in WPF we don't have hwnd for each control so... is there a way to do it? ...

How can I get the element the caret is in with Javascript, when using contentEditable?

Hi, Let's say I have some HTML code like this: <body contentEditable="true"> <h1>Some heading text here</h1> <p>Some text here</p> </body> Now the caret (the blinking cursor) is blinking inside the H1 element, let's say in the word "heading". How can I get the name of the element the caret is in with JavaScript? Here I would li...

Blackberry Java: TextField *without* the caret?

I want a non-editable TextField (or a subclass) that doesn't even have the caret displayed. Alternatively, I want a multiline LabelField. Is any of these possible? ...

WPF TextBox - programatically select text while preserving "selection direction"

When editing text the user is able to use the keybord shift button and direction keys to modify the selection - one position stays anchored while the other moves. By pressing left it is possible to get the movable part on the left of the anchored part. I'm trying to dinamicaly modify the users selection in WPF's TextBox (for the purpose...

special comments and pre-processing.

Is a comment of the form /*:[url=users/%id]:*/ going to be a problem with any documentation toolkits out there (especially for PHP)? Or any other comment pre-preprocessors? (Related to http://code.google.com/p/caret/ ) ...