cursor

How can I change the cursor shape with PyQt?

时间秒杀一切 提交于 2019-12-17 18:19:10
问题 I have a simple application that runs a process that can last for several minutes before completing. I am trying to provide an indication to the user that it is processing the request - such as changing the cursor to an hourglass. But I cannot quite get it to work right. All of my attempts have resulted in either an error or had no effect. And I seem to be calling the cursor shapes incorrectly, since PyQt4.Qt.WaitCursor returns an error that the module does not contain it. What is the correct

How to change cursor icon in Java?

穿精又带淫゛_ 提交于 2019-12-17 18:07:16
问题 I would like to change the cursor icon to my customized 32x32 image when a Java application is executing. I looked and searched, those I found are just setting cursor on a JComponent. But I want the cursor changed to my specified icon wherever it goes moving, browsing, and click, as long as the Java application is still running, or you can say program runtime. Thanks alot. 回答1: Standard cursor image: setCursor(Cursor.getDefaultCursor()); User defined Image: Toolkit toolkit = Toolkit

How to change cursor icon in Java?

孤人 提交于 2019-12-17 18:05:13
问题 I would like to change the cursor icon to my customized 32x32 image when a Java application is executing. I looked and searched, those I found are just setting cursor on a JComponent. But I want the cursor changed to my specified icon wherever it goes moving, browsing, and click, as long as the Java application is still running, or you can say program runtime. Thanks alot. 回答1: Standard cursor image: setCursor(Cursor.getDefaultCursor()); User defined Image: Toolkit toolkit = Toolkit

Un-Antialiased Hand Cursor in Windows Forms Apps!

匆匆过客 提交于 2019-12-17 16:31:17
问题 Okay, so you know how in Windows Vista and Windows 7 MS changed the Hand Cursor (the one that shows up when you hover over a hyperlink), and added more detail to it so it's antialiased and nice and smooth around the edges? Well, why isn't it like that in Windows Forms apps? I'm sick off looking at a crappy hand cursor that looks like it was drawn by a caveman, is there a way to programmatically tell it to display the one that's actually installed in the system? I looked in the Cursors folder

Cursor based records in PostgreSQL

独自空忆成欢 提交于 2019-12-17 16:26:16
问题 I'm trying to use cursors for a query that joins multiple tables. I've seen that for oracle there is a cursor based record. When I try the same for Postgres, it throws some error. How can I do the same in Postgres? CREATE OR REPLACE FUNCTION avoidable_states() RETURNS SETOF varchar AS $BODY$ DECLARE xyz CURSOR FOR select * from address ad join city ct on ad.city_id = ct.city_id; xyz_row RECORD; BEGIN open xyz; LOOP fetch xyz into xyz_row; exit when xyz_row = null; if xyz_row.city like '%hi%'

Get Multiple Values in SQL Server Cursor

孤人 提交于 2019-12-17 15:28:33
问题 I have a cursor containing several columns from the row it brings back that I would like to process at once. I notice most of the examples I've seeing on how to use cursors show them assigning a particular column from the cursor to a scalar value one at a time, then moving to the next row, e.g. OPEN db_cursor FETCH NEXT FROM db_cursor INTO @name WHILE @@FETCH_STATUS = 0 BEGIN --Do Stuff with @name scalar value, then get next row from cursor FETCH NEXT FROM db_cursor INTO @name END What I want

Find caret position in textarea in pixels [duplicate]

冷暖自知 提交于 2019-12-17 12:03:14
问题 This question already has answers here : How do I get the (x, y) pixel coordinates of the caret in text boxes? (3 answers) Closed 5 years ago . I was wondering if it is possible to find the exact location of the carret inside a textarea in pixels in relation to the entire page. For instance, if I have typed This is text into my text box, I would like to know the pixes from the top left of the screen to the carot. It would be in the form X: 200 Y: 100. This is so I can position a floating div.

assign color to mouse cursor using CSS

北城余情 提交于 2019-12-17 11:43:15
问题 How can I assign color to the mouse cursor in a web-page? Can anyone suggest me a way to do it using any of the technologies e.g. HTML, CSS, JavaScript? 回答1: Use an image along with CSS cursor property, I don't see any need of JavaScript heere... Demo div { cursor: url(YOUR_IMAGE_URL), auto; } As commented, I've used auto which is nothing but default cursor just incase your image fails to load, exactly like we declare multiple font families. 回答2: Just to add the possibility to dynamically

Using custom simpleCursorAdapter

自闭症网瘾萝莉.ら 提交于 2019-12-17 10:35:19
问题 I am trying to access a list-activity using custom adapter.I have tried it directly without using any custom adapter it was working good but because I want to add more functions in list-view I want to implement a custom adapter.Now I have tried it but I am getting an empty list-view with no data visible. List-Activity public class MainActivity extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

PL/SQL print out ref cursor returned by a stored procedure

折月煮酒 提交于 2019-12-17 09:19:34
问题 How can I fetch from a ref cursor that is returned from a stored procedure (OUT variable) and print the resulting rows to STDOUT in SQL*PLUS? ORACLE stored procedure: PROCEDURE GetGrantListByPI(p_firstname IN VARCHAR2, p_lastname IN VARCHAR2, p_orderby IN VARCHAR2, p_cursor OUT grantcur); PL/SQL: SET SERVEROUTPUT ON; DECLARE TYPE r_cursor IS REF CURSOR; refCursor r_cursor; CURSOR grantCursor IS SELECT last_name, first_name FROM ten_year_pis WHERE year_added = 2010; last_name VARCHAR2(100);