cursor

IllegalStateException on closed Cursor

My question appears to be linked to the following question: http://stackoverflow.com/questions/2398209/how-to-handle-in-code-illegalstateexception-on-cursor The code for the offending method is as follows: public boolean isPermanent(String screen_name) { boolean output = false; try { Cursor c = mDb.query(USERS, new...

WPF drag cursor in default cursors

I'd like to use the default drag mouse cursor on mouse-over a UIElement to indicate a control is draggable. The cursor that looks like an arrow and a FocusVisual rectangle with an overlapping plus sign inside a rectangle. Basically, the cursor that is used when setting DragDropEffects.Copy during a drag operation. However I'd like to...

force webpage cursor

According to w3schools The cursor property specifies the type of cursor to be displayed when pointing on an element. However I found an elements cursor is not shown under certain browsers when working with a rich text editor, which uses an iframe. Firefox/Chrome/Safari/Konqueror work but IE/Opera do not. Is there a way to r...

Multiple mouse/mice/cursor?

How can I show another cursor for multiple mice? I have two TMemos, two keyboards which can type into their respective TMemo, 2 mice and I need 2 cursors those. If hypothetically, I can already detect which mouse is which. How can I make my own cursor to go along with it. (using Delphi) Possibly along the lines of Multipoint as an alte...

Output values found in cursor to logcat? - Android

I'm trying to debug an issue myself. May post it later if I fail ;-) My logcat log states "android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2" I would like to use log.v("desc", cursor) to show what the cursor returns. Is there a way to specify a value from it like cursor[0] ? ...

Android SQLite Query and using cursor to deal with multiple rows

Hi Guys, I've got a query, (I'm using rawQuery()) SELECT * FROM <table> I'm then storing what it returns using a cursor. From their what I want to do is, start at the first row so.. cursor.moveToFirst() then take each column , column by column and store its particular value in a variable. I then want to move onto the next row and d...

Sql Union Query Help

Hi All, I need a little help writing a query. I have this data... vDir iNumber North 19 North 27 North 29 North 31 South 46 South 49 South 51 South 61 I need to query the data and have an output something like this vDir iLowNumber iHiNumber North 19 27 North 27 29 North 29 ...

How can I get an IBeam cursor in an XNA Game?

I've managed to get the cursor to change to an IBeam in a trivial XNA 'Game' with Update as: protected override void Update(GameTime gameTime) { // Allows the game to exit if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.Exit(); // TODO: Add your update logic here ...

How to disable mouse left click?

Hi, I want to disable mouse left click. I use the following script but not work. <h:form> <a4j:commandButton value="TestButton" onclick="alert('button cliked')"/> </h:form> JavaScript is : <script type="text/javascript"> document.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP | Event.CLICK); document.onmous...

How to show the loading status in mouse?

Hi, I create jsp page using JSF Framework. If i perform some action(Login), then go to the backend and perform some process and it will return some value. Here this whole process will be taken some times. Now that time i want to show processing status (wait or busy status) in Mouse. That means after i press Login button , i want to sho...

Can we got a dynamic cursor in Flex 4 with the CursorManager ?

Hi, I want a custom cursor I can edit in the .mxml file. For the moment I got a static one with a class extends Sprite. Is for a SketchPad application, the cursor will be the color and the size of the user choice. Let me know if it possible and how. Here the class in a .as file : package project { import flash.display.Sprite; ...

display custom cursor in myweb page

hello.. i want to do custom cursor in particular place in my webpage. i have number of images when mouseover on images then cursor image change as a custom cursor. how to do ? ...

WPF ListView Cursor Change

Hi, I have a scrollable timeline that is made from list views. When my mouse is focused over the list view. The cursor is a open hand using the code <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Cursor" Value="openHand.cur"/> </Trigger> </ControlTemplate....

How do i import my Cursor from my database class into my current class?

Here is my code for my db class: package one.two; import java.util.List; import android.app.ListActivity; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteDatabase.CursorFactory; import j...

js/css changing cursor

I'm using css/js to change the class of an element which the pointer is hoving over. The class determines the custom cursor image. Unfortunately, it seems as if the cursor does not update in Chrome unless I physically move the mouse. Unfortunately the app is primarily used through the keyboard, however the cursor image is pretty importa...

Wait cursor on thread control

I have created three checkbox controls for three threads and each would start by checking a checkbox control. When a user unchecks a checkbox, I want to turn on the Wait Cursor on the other thread controls rather than completely disabling them for an instance of time, letting a particular thread to stop. How would you set a IDC_WAIT cur...

In SQL Server, is there a way to avoid using a Cursor?

I have a table where each record has a Table_Name (name of a table). I then use a Cursor to select all table names related to some record in to a Cursor. Then I do a WHILE for each table name in the Cursor to do some job. I want to know if it's possible to solve this problem without using a Cursor. DECLARE tables_cursor CURSOR FAST_FOR...

SQL Server Row by Row operation

I am trying to do some operation in column 'Increment' based on previous row record in column 'Value' e.g. row_num| Period | Measure | Decay 1 | Jan 08 | 10 | 2 | Feb 08 | 18 | 3 | Mar 08 | 7 | 4 | Apr 08 | 67 | i would like to update column 'Decay' based on a formula row_num| Period | M...

How to intercept execution of a RoutedCommand within the view? (WPF / MVVM)

In a WPF / MVVM application, I am trying to find a code-efficient way to set the main view cursor to Cursors.Wait prior to any lengthy operation and to restore it to the default cursor after completion. Since all operations are invoked using routed commands, I'd like to find a way of intercepting command execution, ideally by creating a...

set text cursor in editable datagrid with adobe flex 3

Hi, when clicking on a row in this editable datagrid, the whole text is selected. How can I set the cursor to the first character. I've tried itemEditBegin(ning) and expected to be able to use for the ItemEditor a method like setSelection()... Please let me know, if you need anykind of additional information! Thanks, Werner <mx:Advan...