cursor

Cursor disappears on bitblt

I have a windows application that scrapes pixels from the screen for recording (in the form of a video) to a custom screen-sharing format. The problem is that on machines using a software cursor, blitting from the screen with SRCCOPY|CAPTUREBLIT (so that layered windows also show up in the image) causes the cursor to blink, as described...

Windows Forms: Making a cursor bitmap partially transparent

I want to use partially transparent images in drag/drop operations. This is all set up and works fine, but the actual transformation to transparency has a weird side effect. For some reason, the pixels seem to be blended against a black background. The following image describes the problem: Figure a) is the original bitmap. Figure ...

"Cursor is closed" error - when trying to execute an Oracle SP using JDBC

The Oracle version of our database is 10g. The stored procedure selects all the elements in a table and returns a REF CURSOR type as follows: create or replace PROCEDURE S_S_TEST( test_OUT OUT OAS_TYPES.REFCURSOR ) AS BEGIN OPEN test_OUT FOR SELECT * FROM table_p; CLOSE test_OUT; END S_S_TEST; When this sto...

display image as cursor

i am developing a portal, where client require animated cursor on page I have done something but it is not working. steps which i have taken to make this is following: in photoshop develop a image and save as cursor.ani 2 pest this image in images folder. pest the following code in html page before body tag in head tag. <styl...

Hide the WinForms cursor 'persistently'?

Hi, I am developing a full-screen application which contains some animated Forms controls (basically, labels which move). I want to hide the cursor after a period of inactivity, and I have tried using the method given in this thread: http://stackoverflow.com/questions/744980/hide-mouse-cursor-after-an-idle-time While this works in a s...

How to change cursor of hyperlink in richtextbox wpf?

I add hyperlinks dynamically in code to a Richtextbox, but I can't seem to set link.Cursor to any value, such as Cursors.Hand (it just ignores it). Any help? ...

Should I use SQL cursors here?

I have recently read about how cursors should be avoided. Well, I would like to know if my usage of them is appropriate. I am creating a scripting engine that will work online(embedded in a page, server-side) This scripting engine will be used by "advanced" end users of this product. The product works very heavily with the database howe...

Navigating the results of a stored procedure via a cursor using T-SQL

Due to a legacy report generation system, I need to use a cursor to traverse the result set from a stored procedure. The system generates report output by PRINTing data from each row in the result set. Refactoring the report system is way beyond scope for this problem. As far as I can tell, the DECLARE CURSOR syntax requires that its ...

How to Access Cursor Columns Without FETCH .. INTO

I'm using SQL Server to build stored procedures, and I'm using cursors to loop through a select statement I'm defining the cursor as follow: DECLARE @c_col1 varchar(max); DECLARE @c_col2 varchar(max); DECLARE c as CURSOR FOR SELECT col1, col2 FROM table; OPEN c; FETCH NEXT FROM c INTO @c_col1, @c_col2; SELECT @c_col1, @c_col2; I...

How can I skin or change the default cursor in Flex?

How can I skin, or otherwise change, the default cursor (white arrow) displayed in a Flex application? ...

Get all item from cursor in android

I use this code to get the item from cursor, but it just return one item on my list. So, how can I get all items to my list, this is my code? class MyAdapter extends SimpleCursorAdapter { private Context context; public MyAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { super(context, layout, c, from, t...

Can I limit blocking to individual loops within my SQL cursor

Hi Folks, I've some work to do on a largish database which basically requires calling a stored proc with different parameters for every value in a table (approx. 20k entries). I want to do this without blocking on that table or the other tables involved for each loop for the time it takes the whole process to run. Is is possible from wi...

Track text cursor, to display menu above

I want to build predictive sentence advisor, like (Onion News) Apple Introduces Revolutionary New .... Sentences can probably be generated by stylized pseudo-random text generating algorithm like Markov chain. I imagine this as - while typing, menubox with predictive sentences are displayed above text cursor. How to 'text cursor track...

How can I put "String" (get from cursor) into an "Array" in android

Hi, I want to put a "All String" data (get from "Cursor") into an "Array". But I don't know why the "Array" just return one value? I'm get lost here. Can someone help me? This is my code snippet private String[] getOneColumn(){ String[] myArray = null; Cursor cursor = mDbHelper.fetchAllNotes(); startManagingCurs...

How can I create a list Array with the cursor data in android

How can I create a list Array (the list display First Alphabet when scroll) with the cursor data? ...

Create dynamic cursor in sybase asa

Hi all, I need to create a dynamic resultset in a stored procedure in Sybase ASA 9. Lets say I have a query: 'SELECT '+@Description+', '+@Id+' From '+@Table; I need to create a cursor to get all values of that query. How? ...

Convert String to Array (android)

I get a String data from Cursor, but I don't know how to convert it to Array. How can I do that? String[] mString; for(cursor.moveToFirst(); cursor.moveToNext(); cursor.isAfterLast()) { mTitleRaw = cursor.getString(cursor.getColumnIndex(SBooksDbAdapter.KEY_TITLE_RAW)); } mString = mTitleRaw ???? ...

Go over all columns in tables in Oracle

This is a noobie question, most likely syntax one. But I am kinda lost... I need to go over all columns in all tables in Oracle to generate trigger script. That trigger should insert the row being updated to a log table which is nearly the same as the original table. I thought I would just go over all the columns and just concatenate st...

Cursor on table type in Oracle

I have a table declaration: TYPE PERSON_TYPE AS OBJECT (ID NUMBER(38), NAME VARCHAR2(20)); TYPE PERSON_TYPE_TABLE AS TABLE OF PERSON_TYPE; Can I declare cursor which will be work with my table type in Oracle? ...

GetIconInfo function not working properly

I have written an application which is getting the Icon info of current cursor using GetIconInfo function of user32.dll, It works fine for some time, but after some time it starts providing wrong information in ICONINFO.hbmMask (some negative value), and when on the next line I try to get Bitmap object from Bitmap.HBitmap(bitmask), it th...