cursor

How to change the cursor in a embedded browser

Hi, I have an application with an embedded gecko browser. I want to know how to change the cursor from the default cursor to a custom cursor when I am in the embedded browser? There is forms.css file in the res folder of the gecko sdk, I tried changing the cursor in that file with no success. Any suggestions? Thanks jbsp72 ...

I need some help with cursor event handling in python+Tkinter

Hey, I'm building a code in which I'd like to be able to generate an event when the user changes the focus of the cursor from an Entry widget to anywhere, for example another entry widget, a button... So far i only came out with the idea to bind to TAB and mouse click, although if i bind the mouse click to the Entry widget i only get m...

How to get cursor position in textarea?

How do you get the cursor position in text area using JavaScript? For example: This is| a text This should return 7. How would you get it to return the strings surrounding the cursor/selection? eg: 'This is', '', ' a text' If the word "is" is highlighted, then it would return 'This ', 'is', ' a text' ...

Is there any way to get a list of open/allocated cursors in SQL server?

I have a stored procedure that creates and opens some cursors. It closes them at the end, but if it hits an error those cursors are left open! Then subsequent runs fail when it tries to create cursors since a cursor with the name already exists. Is there a way I can query which cursors exists and if they are open or not so I can close...

Why do people hate SQL cursors so much?

I can understand wanting to avoid having to use a cursor due to the overhead and inconvenience, but it looks like there's some serious cursor-phobia-mania going on where people are going to great lengths to avoid having to use one for example, one question asked how to do something obviously trivial with a cursor and the accepted answer...

Drawing a point on the screen

I need to read the color of and draw to a calculated point on the screen What is the VB.NET equivalent of the old Peek and Poke, or PointSet and PointGet, commands in older versions of VB. Or in the alternative, is there a way to use a label as a Cursor object, so that it does not erase my picturebox contents as I move it around. I ca...

Making the Cursor Disappear

I am constructing an Editor for a little Webapp. My concept is to have a Bar where I put all the functions. It changes concerning to the content. Now i got the following problem. As you can see in the picture when i click on the button it happens that the button will be on a new button just after beeing clicked. My question is: Is there ...

How to inject text to the cursor focus

I am developing a .NET windows app that needs to insert text in the place where the cursor is. The cursor will be in a different application that I have no control over. I think the operating system needs to be used here to achieve this. Can you help please? ...

C# How can I hide the cursor in a winforms app?

Im developing a touchscreen app and I need to hide the cursor whenever it is within the main Form. Any ideas? ...

Cursor inside cursor

Main problem is about changing the index of rows to 1,2,3.. where contact-id and type is the same. but all columns can contain exactly the same data because of some ex-employee messed up and update all rows by contact-id and type. somehow there are rows that aren't messed but index rows are same. It is total chaos. I tried to use an in...

Best way to use a postgresql sproc (returning ref cursor) with PHP ?

Hi. I'm using stored procs and call them from PHP (I use the same procedures in a Java app too). Right now I do it this way (which works): if(!($result = pg_query($connection, 'BEGIN; SELECT '.$query.'; FETCH ALL IN '.self::$cursor.';'))) return NULL; where $query is something like "CALL create_account('foo', 'bar', 'etc')" and $cu...

How do you make sql server jdbc calls to stored procedure use a server side cursor?

I am using JDBC to call a stored procedure in MSSql 2005. I would like to have the result set make use of server side cursors to limit the amount of memory used by the client. I am able to do this easily using a simple query and setting the SelectMethod=cursor on the connection. When I put that query in a stored procedure, it appears ...

Android : BaseAdapter how to?

Ok, I have been searching thick and thin, and I am having some issues implementing a BaseAdapter. I have been able to implement a Simple Cursor Adapter http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/List7.html as per the example above. There is a pretty good BaseAdapter example here : List14 google e...

PL/SQL: Best practice for fetching 2 or more joined tables from a cursor?

I've heard that it's a good practice to define your records in PL/SQL by using the %ROWTYPE attribute. This saves typing and allows your package to continue functioning even when a column is added or deleted. (Correct me if I'm wrong!) However, when I am fetching from a cursor that involves a join, I find that I have to fetch into a pro...

How can a table be returned from an Oracle function without a custom type or cursor?

I am looking to return a table of results from an Oracle function. Using a cursor would be easiest, but the application I have to work this into will not accept a cursor as a return value. The alternative is to create a type (likely wrapped in a package) to go along with this function. However, it seems somewhat superfluous to create ...

Sending an Array into a PL/SQL Procedure

I have created a Web Service to send in a bunch of information to a PL/SQL procedure, however one of them is a array. What type do I use for this? I also want to put that array into a cursor after it comes in. ...

Change cursor type for an html document from javascript

Let's say I have a method that takes a little to long to finish to go without any user feedback at all. In my case it's sorting the rows in a table element (all in the DOM; only takes too long if there are a lot of rows), but it might do anything. I want to show the "progress" cursor while it runs. Here is what I have currently, but I...

Using "like" in a cursor/query with a parameter in python (django)

Hello, I know this may be something stupid but I decided to ask any way. I've been trying to query something like: cursor.execute("select col1, col2 \ from my_tablem \ where afield like '%%s%' and secondfield = %s order by 1 desc " % (var1, var2) ) Bu...

Moving mouse cursor programmatically

To start out I found this code at http://swigartconsulting.blogs.com/tech_blender/2005/08/how_to_move_the.html: public class Win32 { [DllImport("User32.Dll")] public static extern long SetCursorPos(int x, int y); [DllImport("User32.Dll")] public static extern bool ClientToScreen(IntPtr hWnd, ref POINT point); [StructLayout(LayoutKind....

How to hide the hourglass icon in C# (.NET Compact Framework)

Hi, does anyone have an idea how to hide the hourglass icon when you execute an application from another? E.g. App-A with pretty background screen starts App-B. While App-B is loading windows puts this ugly grey block with the rotating hourglass in the middle of App-A. I have tried calling System.Windows.Forms.Cursor.Hide(); but that...