cursor

Drawing a system-like cursor, top-most, anywhere

I need to draw a system-like cursor that I simply can control the position of. In other words, I need to draw a transparent image that looks just like the system cursor and I need it to be rendered on top of all other windows. I've tried multiple approaches, but they all seem to have some downside. I've figured out that I can load the c...

SWT cursor object on Linux

I've been testing out code like this here ( http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/Cursorcreateacolorcursorfromanimagefile.htm ) to see if I can make custom cursors on SWT with Linux. Instead of replacing the cursor, the default cursor becomes invisible and I don't see anything. Is this not supported on Linux? I don't have a W...

What needs to be passed to an editor from a keyboard app to move the cursor one char left?

What key code does an Android editor app expect the keyboard app to send when it is going to be interpreted as a left arrow? In other words, what is the keyboard program supposed to send to its calling program (some kind of editor) if the user intends to move the cursor one char to the left? A related issue: what do the minus values for ...

How to use this square cursor in a HTML input field ?

How can I use this square cursor ( image below ) in the input tags ? ...

Strange WPF Thumb Cursor behavior

hi there, i´m currently facing a strange behavior with Cursors on WPF thumb controls. i have a thumb with a multibinding on the Cursor property that changes the cursor depending no the thumb´s rotationtransform angle. This works fine when i hover the mouse over the thumb. however, when i press the mouse (to do some transform) on the thu...

managedQuery not closed cursor onDestroy ?

I have run into a problem I don't understand. I'm using managedQuery with the only Cursor of an activity and when I quit the activity (the app in this case), I get the following error printed in logcat : I/dalvikvm( 420): Uncaught exception thrown by finalizer (will be discarded): I/dalvikvm( 420): Ljava/lang/IllegalStateExc...

Data deduplificaton

The code below explains best what I'm trying to accomplish. I know that I can use a cursor or other looping routine to loop through the records to find the duplicates and create my notes records based on what is found. I'm trying to avoid that, unless there's no better option. DROP TABLE #orig DROP TABLE #parts DROP TABLE #part_notes ...

Cursors in SQL Server 2005 database

I am working with cursors and successfully executed in T-SQL and the database I use is Microsoft SQL Server 2005. My query is after I execute the cursor, the output is shown in message area. When I deallocate the cursor using deallocate <cursor name> it gets deallocated. Again I execute my cursor. Now in the message area I get this: ...

Firefox css cursor property in anchor tag

In Firefox 3.6.10 and 3.6.7 when a page is first loaded and the mouse pointer is over a link it turns into a hand. But when I set the anchor tag cursor style to auto by javascript and hover the mouse pointer over that same anchor tag now it shows as it was over pure text. In IE8 and Chrome it works as expected (by me). Do I understand i...

Delphi 6 - Change cursor on TWebBrowser component

In my Delphi 6 Pro program I'm able to change the cursor on a TWebBrowser component successfully using the code below, but only when it does not contain a valid web document: const theCursorID: integer = 1; Screen.Cursors[theCursorID] := LoadCursorFromFile(PChar(theAniCursorFilename)); theWebBrowser.Cursor := theCursorID; As soon...

Hide mouse cursor on OS X after a few seconds

For my fullscreen app, I want to hide the cursor after a few seconds if it's not moved, like the fullscreen mode in QuickTime or iTunes. Presumably I'm looking to call [NSCursor setHiddenUntilMouseMoves:YES], but how do I know when to call it? Presumably I'm looking for the same as http://stackoverflow.com/questions/744980/hide-mouse-cu...

Distinct values in Android ExpandableListView

Hi all, I'm having trouble with an ExpandableListView. What I want is for each group to be from column "bond", which is non-unique, but I want the groups to be unique (i.e. each value of "bond" should only have one group). Each value in the group has data in other columns which should be displayed. The problem is that it seems I can eit...

PL/SQL - Use of variables in nested queries

Hey, I'd like to do something like this with PL/SQL: for ACCOUNT in account_cursor loop for related_data in (select something from table where some_column = ACCOUNT.column) loop endloop; endloop; (caps for emphasis) I'm away from my dev environment so I can't test this out, so please ignore any minor syntactical...

ExpandableListView and CheckedTextView strange behavior

I have an ExpandableListActivity with a CursorTreeAdapter and CheckedTextView displayed. It's working fine on click (I have to toggle the CheckedTextView by hand but that's because this is an ExpandableListView) but when the adapter call requery on the cursor, items that are checked are not the right one (as equal as before). Do you hav...

Android: Cursor results to String[]

I have a query in my android app that pulls all image paths from a custom table and displays them to a gallery. The problem is with my database I cant seem to get a row of the database to a String[]. I can easily get the results to a listArray but I need the image path in a string or string array. I want to be able to click on an image...

Java - custom cursor is different in different operating systems

Hi I create custom cursor with bottom code: Toolkit toolkit = Toolkit.getDefaultToolkit(); Image image = toolkit.getImage("C:/Users/Administrator/Desktop/gaea/core/ui/gaeawindow/src/si/xlab/gaea/core/ui/gaeawindow/HandCursor.gif"); // Somewhere in mouse pressed action public void mousePressed(MouseEvent e) { Cursor cursor...

CursorAdapter calling bindView on every item

I was using some of the code from DeskClock and found that when I tried to modify the CursorAdapter that newView was getting called for each item. (I actually wanted to add a divider and it seems like adding the dividers separately is better than adding them into a single listView) If I have 3 items I get the following behavior: new...

android expandableListView - add items to a specific group at run time

Hi all , i met a problem , i have a expandableListView has 5 groups if i wanna add some items to the second group , and update the expandableListView at run time, could someone teach me how to do that? ...

What are the benefits of using database cursor?

It is based on the interview question that I faced. Very short definition can be It can be used to manipulate the rows returned by a query. Besides the use of the cursor (Points are listed here on MSDN), I have a question in my mind that if we can perform all the operations using query or stored procedure (if I'm not wrong, Like...

C# get every cursor position

How can i get every cursor movement thats done by the user? even if its out of my form? on google i see getcursorpos but how to get that function? or is there something else? THNX! ...