cursor

How do I change the color of the text cursor in an input field in IE?

别等时光非礼了梦想. 提交于 2019-12-19 13:08:36
问题 From what I saw, in Firefox and Chrome, the color of the text cursor in an input field changes to the value of the "color" css property. However in IE it has no effect whatsoever. Is there any way to achieve this effect in IE? 回答1: The color of the text cursor in an input on IE is always the inverse of the background color. So you can't on IE. This is also unspecced by W3C so don't expect support to be anywhere, if there is, then it's merely an artifact :-) Edit: 9-years later and we now have

Get contacts with email id

你离开我真会死。 提交于 2019-12-19 10:35:12
问题 I need to get contacts information(cursor) with email. They must be distinct. There must be one entry per contact if he has got an email. How to do it? I am targetting new contacts API comes with 2.0. 1)I tried to do it using CursorJoiner, but a strange thing happens. Here is my code : MatrixCursor matCur = new MatrixCursor( new String[]{ Contacts._ID, Contacts.DISPLAY_NAME, "photo_id", "starred" } ); Cursor newContactCursor = managedQuery( ContactsContract.Contacts.CONTENT_URI, new String[]{

PLS-00386: type mismatch found between FETCH cursor and INTO variables

佐手、 提交于 2019-12-19 10:16:50
问题 The following package throws : PLS-00386: type mismatch found at 'V_STUDYTBL' between FETCH cursor and INTO variables Purpose of the code: Define two types outside the package, one is used to send a bunch of numbers into the stored proc and the other is used to return the corresponding rows from my_table Thank you in advance for the inputs. Create OR REPLACE Type InputTyp AS VARRAY(200) OF VARCHAR2 (1000); CREATE TYPE OBJTYP AS OBJECT ( A NUMBER, B VARCHAR2 (1000), C VARCHAR2 (100) ); CREATE

Does SQLite have Cursors?

无人久伴 提交于 2019-12-19 09:38:27
问题 i wonder if i could run the following procedure in SQLite: set nocount on select T.ID, max(T.SerialNo) as SerialNo into #Tmp_Ticket_ID from Ticket as T, Ticket as inserted where t.ID = inserted.ID group by T.id having count(*) > 1 declare zeiger cursor for select SerialNo from #Tmp_Ticket_ID declare @SerialNo int OPEN Zeiger FETCH NEXT FROM zeiger INTO @SerialNo WHILE (@@fetch_status <> -1) BEGIN IF (@@fetch_status <> -2) BEGIN update T set ID = (select max(id) + 1 from Ticket) from ticket AS

Unable to open database file error on using subsequent queries

ⅰ亾dé卋堺 提交于 2019-12-19 08:20:08
问题 I have the following code, the first cursor object works fine, but when i do another query and assign it to the flightCursor, it gives the error. Cursor cursor = database.query( CityAndAirportsTable.notificationsTable, new String[] { CityAndAirportsTable.notifyFlightId }, null, null, null, null, "Id DESC" ); cursor.moveToFirst(); while( !cursor.isAfterLast() ){ String id = String.valueOf( cursor.getInt( 0 ) ); Cursor flightCursor = database.query( CityAndAirportsTable.flightTable, new String[

ExpandableListView is showing indicator for groups with no child

陌路散爱 提交于 2019-12-19 08:16:30
问题 I'm creating an ExpandableListView with data from a database. For that, I'm using a CursorTreeAdapter and I populate it with a Cursor object which contains the data I retrieve from database. I thought that, by default Android would consider the groups with no child "not expandable" . However it still shows the expand icon on the row, and when I click it, it does nothing. I don't want it to show this icon. I want only the groups that has childs to show the expand icon, which is not happening.

Cursor icon does not change after triggering setCursor method

冷暖自知 提交于 2019-12-19 08:16:20
问题 There is a JTable in my application with resizable header columns. Normally when I move the cursor over table header for resizing, the cursor icon changes to resize arrow, like <-->. But things are different in the following scenario. There is a button action in the same Frame , and during action performed, I am setting the cursor to busy icon and change it back to default cursor once the action is completed, using Container.setCurosr(Cursor cursor) method. Sometimes if I move the cursor over

Python-Oracle Passing in a Cursor Out Parameter

↘锁芯ラ 提交于 2019-12-19 07:49:39
问题 I am trying to call a stored procedure between python and an oracle db. The problem I am having is passing a cursor out-parameter. The Oracle stored procedure is essentially: create or replace procedure sp_procedure( cid int, rep_date date, ret out sys_refcursor ) is begin open ret for select ... end; The python code calling to the database is: import cx_Oracle from datetime import date connstr='user/pass@127.0.0.1:2521/XE' conn = cx_Oracle.connect(connstr) curs = conn.cursor() cid = 1 rep

Is SQL or general file access appropriate in the Android main UI thread?

别来无恙 提交于 2019-12-19 07:01:09
问题 I'm trying to follow Android best practices, so in debug mode I turn all the following on: StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build()); //detect and log all thread violations StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog().build()); //detect and log all virtual machine violations Android now yells at me when I try to use any sort of file access or SQL in the main (UI) thread. But I see so many

Cursor while loop returning every value but the last

故事扮演 提交于 2019-12-19 06:57:18
问题 I am using a while loop to iterate through a cursor and then outputing the longitude and latitude values of every point within the database. For some reason it is not returning the last (or first depending on if I use Cursor.MoveToLast) set of longitude and latitude values in the cursor. Here is my code: public void loadTrack() { SQLiteDatabase db1 = waypoints.getWritableDatabase(); Cursor trackCursor = db1.query(TABLE_NAME, FROM, "trackidfk=1", null, null, null,ORDER_BY); trackCursor