cursor-position Questions

3

Solved

Is it possible to set the cursor position in a Tkinter Text widget? I'm not finding anything terribly useful yet. The best I've been able to do is emit a <Button-1> and <ButtonRelease-1&g...
Rainger asked 9/7, 2010 at 18:36

2

Solved

I am trying to drag an undecorated window in GLFW but am encountering some event lag, even though I am using glfwWaitEvents() I have a cursor position callback, and a simple loop: // register a c...
Dissimulation asked 13/9, 2017 at 17:43

2

Solved

I have a console application which should paint a random picture in MSPaint (mouse down -> let the cursor randomly paint something -> mouse up. This is what I have so far (I added comments to the M...
Cateran asked 2/12, 2016 at 13:18

1

Solved

I'm showing a custom image for a cursor. I'm using jQuery to swap the cursor image on mousedown, and I manually set the x and y properties of the cursor to the width and height of the image, so tha...
Thankful asked 27/11, 2015 at 22:36

1

Solved

EDITs: I've simplified the function and clarified the question. Original question is still available further down the page. Crossposted onto vim_dev mailing list: https://groups.google.com/forum...
Leathery asked 21/7, 2015 at 19:32

1

Solved

I've done my research and come across these questions on StackOverflow where people asked this same question but the thing is that they wanted to get the position either in terms of x and y coordin...
Bombshell asked 25/3, 2015 at 13:43

5

Solved

How can I set the cursor position in a Win32 Console application? Preferably, I would like to avoid making a handle and using the Windows Console Functions. (I spent all morning running down that d...
Schoolbook asked 28/4, 2010 at 18:52

5

Visual Studio tracks cursor positions and lets you move forward and backward through these positions. For example, you can type Ctrl+- to navigate backwards and Ctrl+Shift- to navigate forwards. I...
Huckleberry asked 24/7, 2009 at 16:58

2

Noticing today that on long lines of code or comments, the cursor progressively gets more and more incorrectly positioned until its apparent position can be off by more than 3 characters. (This loo...
Bullish asked 22/11, 2014 at 21:21

3

Solved

I can use [NSEvent mouseLocation] to get the cursor's location, but this gives me the screen coordinates. How do I get the coordinates of the cursor relative to the view, when it is in it? I search...
Kosse asked 18/9, 2011 at 19:39

9

Solved

I have a standard WinForms TextBox and I want to insert text at the cursor's position in the text. How can I get the cursor's position? Thanks
Marsupial asked 8/2, 2009 at 22:33

3

Solved

I'm trying to add non-editable text after the cursor in a text field/input box as to achieve the following: 1) The text before the cursor is editable 2) The text after the cursor is not editable a...
Ceremonious asked 8/9, 2014 at 20:16

1

Solved

First time asking a question here, the solutions I found on here do not seem to work for some reason. My app needs to set the mouse position when the window becomes active, I have the functio...
Fitted asked 5/9, 2014 at 21:26

1

Solved

I am working on a simple (I thought) word processor. It uses contenteditable. I have a list of words that I want to always appear highlighted. <article contenteditable="true" class="content"&gt...
Mystic asked 10/7, 2014 at 17:24

2

Solved

Working fine with iOS6 even if I change the orientation Working fine with iOS7 If I don't change the orientation Error in display when orientation gets change iOS7.* I am creating UITextField...
Ravelin asked 10/4, 2014 at 12:0

1

Solved

In My app I'm using AutoCompleteTextView. When the user select a result item, one of the option is inserting the selected text into the AutoCompleteTextView. After inserting text, the cursor return...
Geehan asked 21/5, 2014 at 7:32

3

Solved

I have a form with a textarea (id = details). Is there a way I can insert the HTML code for a line break (<br />) at the cursor position when hitting Enter within this textarea ? I would o...
Houselights asked 23/3, 2014 at 14:2

4

Solved

I have a text box with a displayed string already in it. To bring the cursor to the textbox I am already doing txtbox.Focus(); But how do I get the cursor at the end of the string in the t...
Ol asked 6/12, 2013 at 11:52

4

Solved

Is there any way in jQuery to get the current cursor-position in an text input without doing ugly browser specific code? Like in: <input id="myTextInput" type="text" value="some text" &g...
Nomology asked 3/11, 2010 at 8:43

3

Solved

I'm working with a project that is WPF and VB.net. I want to visually simulate "dragging" an object (though I do not want to use standard drag and drop for reason of purpose). Basically, I have a ...
Propositus asked 14/4, 2011 at 6:7

1

Solved

If I set my command prompt like: export PS1='\033[0;33m[\u@\h \w]\$ \033[00m' The color of the prompt will be yellow and everything after the '$' character will be the default terminal color. Th...
Cymose asked 2/7, 2013 at 18:21

1

Solved

Intro When editing the content of a contenteditable DOM Object, different browsers have different behaviours. For instance, Firefox 18.0 creates a new paragraph (<p>) or a line break <br/...
Linnea asked 15/1, 2013 at 21:41

3

Solved

Hai Guys, I want to set cursor at a position of length 14 on a textbox which will not have a value.. Iknow initially cursor will be at 0 i want it to be at 14
Pedlar asked 8/12, 2009 at 8:41

1

Solved

I cannot seem to get my image to display the coordinates of my mouse cursor, and also use ginput to store points at the same time. I currently am trying the following: MriHotrod = imread('Image.b...

6

Solved

i'm wondering if emacs has these cursor movement commands built in or if i'm going to have to write them or find a snippet somewhere. i find them pretty spiffy and use them in vim regularly. i have...
Evensong asked 5/10, 2009 at 12:24

© 2022 - 2024 — McMap. All rights reserved.