caret Questions

1

I'm developing a WPF application that has TextBox components. I'm having a problem with the caret of the text boxes. It seems that, depending on the location of the TextBox itself, the caret disap...
Broeder asked 25/12, 2016 at 9:6

1

Solved

I have this contentedittable div <div contenteditable="true" id="text">minubyv<img src="images/smiley/Emoji Smiley-01.png" class="emojiText" />iubyvt</div> Here is an image des...
Corporate asked 22/11, 2016 at 17:5

3

Solved

I have an issue with the right alignment of the caret. Using .pull-right in the span makes it go to the top right corner. How can I make it vertically centered again ? I also would like to align t...
Heavensent asked 2/6, 2014 at 20:10

4

Solved

I got two TEdit controls. When I tab out of edit1, edit2 receives the focus. On my OnExit event of Edit1 I have the following code: procedure TForm1.Edit1Exit(Sender: TObject); begin edit2.Enabl...
Linnealinnean asked 5/9, 2011 at 7:58

3

What I am trying to do is something similar to how collaborative editor works. I want to allow two people to edit the same document. And for this I have to simulate an artificial caret. I can extra...
Gobang asked 28/5, 2012 at 7:56

7

Solved

I want to change color of caret and make it not relative from input text, because it's hard to make it look good when it is.
Guild asked 29/5, 2012 at 14:37

4

Solved

How do you get the caret position in a <textarea> using JavaScript? For example: This is| a text This should return 7. How would you get it to return the strings surrounding the cursor / s...
Antibody asked 4/11, 2008 at 22:36

2

Solved

So I thought it would be a nice idea to name a function that calculates the exponential ^, but it seems like the caret actually does something special, as the Clojure REPL generates an error when e...
Zadazadack asked 19/1, 2012 at 1:55

1

Solved

I'm working on a Java application with Swing-based GUI. The application uses JTextPane to output log messages as follows: 1) truncate existing text to keep total text size under the limit; 2) appen...
Merrimerriam asked 17/6, 2015 at 21:49

1

I am asking myself if I am doing it right. The problem I have is that I want to preserve caret position after AngularJS update textarea value. HTML looks like this: <div ng-controlle="editorCo...
Osgood asked 18/3, 2014 at 11:36

2

Solved

I would like to hide the input caret of a TextField in JavaFX8. I already tried to set the text fill to white (my TextField has a white background), but then my user input also disappears. The pr...
Bohunk asked 5/12, 2014 at 12:26

1

Solved

I have a contenteditable div and it contains other tags and not only plain text. Only one @ is allowed in. How can I get the range of the characters between @ and caret if such a range exists?
Popedom asked 4/11, 2014 at 5:57

1

In order to manage automatic scrolling in a content editable UIWebView, I need to get the correct caret Y vertical coordinate. I identified two methods, using javascript. The first one uses getCl...
Brookes asked 6/5, 2014 at 9:50

2

I'm changing the insertion point size by overriding -(void)drawInsertionPointInRect:(NSRect)aRect color:(NSColor *)aColor turnedOn:(BOOL)flag, But it doesn't handle the first blink (when you move t...
Silvern asked 26/3, 2013 at 21:36

2

Solved

Summary: I am trying to achieve the effect where when user types a ( or [ in the content-editable div, the second ) or ] is auto-inserted, and the caret be positioned between the two of them, that...
Superfamily asked 20/6, 2014 at 14:7

1

Solved

SEE BEFORE MARKING DUPLICATE/DOWNVOTING The contenteditable div will not have child elements I do not want to set the position at the end of the div I do not want a cross-browser solution, only C...
Byrnie asked 9/6, 2014 at 7:47

0

There are a lot of questions here how to set the caret at the end of a contenteditable div, but I would like to know how to check if the caret/cursor is at the end. Currently I do the following te...
Guadalcanal asked 27/11, 2013 at 14:55

6

Solved

I am currently learning C++. I was trying to compute power of an integer using the expression: val=10^1; Instead of expected answer 10, the result was 11. I have fixed the problem by using pow f...
Supernumerary asked 1/11, 2013 at 15:53

2

Solved

I've found a few things on setting CaretBrushes in WPF4, but has anybody actually ever changed the caret itself? What I'd like to do is use the OVERWRITE caret in INSERT mode. I've seen a hack fro...
Pepper asked 15/2, 2012 at 9:20

3

Solved

I have an problem with Caret, Caret didn't blink without focusGained(see code in Swing Action) to 2nd. JTextField and back to 1st. JTextField how to override DefaultCaret#setBlinkRate() correctly ...
Lownecked asked 14/8, 2013 at 22:4

1

Solved

Now finishing my custom menu popup, but the problem is that if I select some text in JTextField and click mouse button to show popup menu, then focus is transferred to popup window, AND selected te...
Bridle asked 14/8, 2013 at 16:32

3

Solved

I am trying to mimic the caret of a textarea for the purpose of creating a very light-weight rich-textarea. I don't want to use something like codemirror or any other massive library because I will...
Scavenger asked 8/7, 2013 at 12:8

1

I am trying to write a function that will, on keyup, give me a reference to the element immediately preceding the caret in a contentEditable div. If the caret is in a text node then the function s...
Fizzy asked 27/1, 2013 at 19:12

3

Solved

By default, when a JTextField gains focus the caret is positioned at the beginning of the text. However, I think the better behavior is to position it at the end, or to select all the text, e.g. ht...
Kansas asked 3/7, 2013 at 7:29

1

While I could turn on Rewrite Logging and mess with this rule to figure out what it does (if anything), I bet someone already knows. Here's the rule by itself: RewriteRule ^ - [L] Here it is in ...
Unearned asked 25/6, 2013 at 16:26

© 2022 - 2024 — McMap. All rights reserved.