CN104516621A - Cursor display method and device - Google Patents

Cursor display method and device Download PDF

Info

Publication number
CN104516621A
CN104516621A CN201310453065.7A CN201310453065A CN104516621A CN 104516621 A CN104516621 A CN 104516621A CN 201310453065 A CN201310453065 A CN 201310453065A CN 104516621 A CN104516621 A CN 104516621A
Authority
CN
China
Prior art keywords
cursor
drawn
ordinate
window
width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310453065.7A
Other languages
Chinese (zh)
Inventor
李波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201310453065.7A priority Critical patent/CN104516621A/en
Publication of CN104516621A publication Critical patent/CN104516621A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04801Cursor retrieval aid, i.e. visual aspect modification, blinking, colour changes, enlargement or other visual cues, for helping user do find the cursor in graphical user interfaces

Abstract

The invention discloses a cursor display method and device and belongs to the computer field. The cursor display method comprises obtaining the width and the height of a cursor to be drawn and creating the cursor to be drawn according to the width and the height; obtaining an indication value which is used for indicating whether the cursor to be drawn is displayed or not, setting the transparency of the cursor to be drawn into a first value if the indication value is true so as to display the cursor to be drawn and performing timing on a first time for displaying the cursor to be drawn; setting the transparency of the cursor to be drawn into a second value when the first time reaches a first preset time so as to hide the cursor to be drawn and performing timing on a second time for hiding the cursor to be drawn; setting the transparency of the cursor to be drawn into the first value when the second time reaches a second preset time so as to display the cursor to be drawn. According to the cursor display method and device, the cursor which flashes constantly can be displayed on a layered window.

Description

A kind of display light calibration method and device
Technical field
The present invention relates to computer realm, particularly a kind of display light calibration method and device.
Background technology
A window can comprise multiple edit box, when user needs input content in certain edit box comprised to this window, usually can show the input position that a cursor constantly glimmered points out user current in this edit box.
At present, provide a kind of display light calibration method, be specially: in the edit box that terminal comprises at this window, draw cursor, obtain the device context handle of this window, the background colour of the color of the cursor of drafting and window is carried out the color that XOR obtains drawing cursor by the device context handle according to obtaining, according to the cursor that the color display of drawing cursor is drawn, when cursor is drawn in position identical in the edit box again comprised to this window, terminal obtains the device context handle of window again, the background colour of the color of the cursor of drafting and window is carried out XOR by the device context handle according to obtaining, now, the color that computing obtains the cursor drawn is identical with the background colour of window, the cursor of drafting is hidden according to the color of the cursor drawn, achieve the display of cursor with hiding, and then achieve the cursor showing a continuous flicker in edit box.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Because common window is the refreshing being realized window by the device context handle of window; And layered window draws out different window backgrounds, window shape and window transparency degree by loading a picture, namely layered window is the refreshing realizing layered window by loading different pictures.So layered window can not get the device context handle of window, and then the device context handle not by window on layered window realizes the display of cursor with hiding, and layered window cannot show the cursor of constantly flicker.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of display light calibration method and device.Described technical scheme is as follows:
On the one hand, provide a kind of display light calibration method, described method comprises:
Obtain the width of cursor to be drawn and height, the cursor to be drawn according to described width with described in highly creating;
Obtain the indicated value that described in being used to indicate, whether cursor to be drawn shows, if described indicated value is true, then the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing, and timing is carried out to the very first time of cursor to be drawn described in display;
When the described very first time arrives the first Preset Time, the transparency of cursor described to be drawn is set to second value, with cursor to be drawn described in hiding, and timing is carried out to the second time of cursor to be drawn described in hiding;
When described second time arrives the second Preset Time, the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing.
Wherein, described width and the height obtaining cursor to be drawn, comprising:
If the edit box at the current place of focus is RichText Edition frame, then receive the width of the cursor to be drawn that operating system sends and height.
Alternatively, described width and the height obtaining cursor to be drawn, comprising:
If the edit box at the current place of focus is plain text edit box, then obtain the height of the font arranged in the edit box of described focus current place;
The font height of acquisition is defined as the height of cursor to be drawn, the width of cursor to be drawn described in being defined as by default numerical value.
Further, described method also comprises:
When described in movement wait the cursor drawn time, the first horizontal ordinate described in acquisition after the cursor drawn is moved relative to described window and the first ordinate;
Obtain described window relative to the second horizontal ordinate of the screen of terminal and the second ordinate;
According to described first horizontal ordinate and described second horizontal ordinate, the 3rd horizontal ordinate described in calculating after the cursor drawn is moved relative to described screen, and according to described first ordinate and described second ordinate, the 3rd ordinate described in calculating after the cursor drawn is moved relative to described screen;
According to described 3rd horizontal ordinate and described 3rd ordinate, cursor to be drawn described in mobile.
Further, described method also comprises:
When described in movement when the window at the cursor place of drawing, receive window position changes message, described the window's position change in message carry described window be moved relative to the screen of described terminal after the 4th horizontal ordinate and the 4th ordinate;
According to described 4th horizontal ordinate and described 4th ordinate, move described window and cursor described to be drawn simultaneously.
On the other hand, provide a kind of device of display highlighting, described device comprises:
Creation module, for obtaining the width of cursor to be drawn and height, the cursor to be drawn according to described width with described in highly creating;
First arranges module, for obtain be used to indicate described in the indicated value that whether shows of cursor to be drawn, if described indicated value is true, then the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing, and timing is carried out to the very first time of cursor to be drawn described in display;
Second arranges module, for when the described very first time arrives the first Preset Time, the transparency of cursor described to be drawn is set to second value, with cursor to be drawn described in hiding, and carries out timing to the second time of cursor to be drawn described in hiding;
3rd arranges module, for when described second time arrives the second Preset Time, the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing.
Wherein, described creation module comprises:
Receiving element, if be RichText Edition frame for the edit box at the current place of focus, then receives the width of the cursor to be drawn that operating system sends and height, the cursor to be drawn according to described width with described in highly creating.
Alternatively, described creation module comprises:
Acquiring unit, if be plain text edit box for the edit box at the current place of focus, then obtains the height of the font arranged in the edit box of described focus current place;
Determining unit, for the font height of acquisition being defined as the height of cursor to be drawn, the width of cursor to be drawn described in default numerical value is defined as, the cursor to be drawn according to described width with described in highly creating.
Further, described device also comprises:
First acquisition module, for described in mobile wait the cursor drawn time, the first horizontal ordinate described in acquisition after the cursor drawn is moved relative to described window and the first ordinate;
Second acquisition module, for obtaining described window relative to the second horizontal ordinate of the screen of terminal and the second ordinate;
Computing module, for according to described first horizontal ordinate and described second horizontal ordinate, the 3rd horizontal ordinate described in calculating after the cursor drawn is moved relative to described screen, and according to described first ordinate and described second ordinate, the 3rd ordinate described in calculating after the cursor drawn is moved relative to described screen;
First mobile module, for according to described 3rd horizontal ordinate and described 3rd ordinate, cursor to be drawn described in mobile.
Further, described device also comprises:
Receiver module, for described in mobile when the window at the cursor place of drawing, receive window position changes message, described the window's position change in message carry described window be moved relative to the screen of described terminal after the 4th horizontal ordinate and the 4th ordinate;
Second mobile module, for according to described 4th horizontal ordinate and described 4th ordinate, moves described window and cursor described to be drawn simultaneously.
In embodiments of the present invention, according to the width of cursor to be drawn with highly create cursor to be drawn, obtain the indicated value being used to indicate cursor to be drawn and whether showing, if this indicated value is true, the transparency then arranging cursor to be drawn is the first numerical value, to show cursor to be drawn, and timing is carried out to the very first time showing cursor to be drawn; When the very first time arrives the first Preset Time, the transparency arranging cursor to be drawn is second value, to hide cursor to be drawn, carries out timing to second time of hiding cursor to be drawn, when the second time arrived the second Preset Time, return and show cursor to be drawn.So, in the first Preset Time, show cursor to be drawn, in the second Preset Time, hide cursor to be drawn, achieve the continuous flicker of cursor to be drawn in layered window.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of display highlighting that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of a kind of display highlighting that the embodiment of the present invention two provides;
Fig. 3 is the apparatus structure schematic diagram of a kind of display highlighting that the embodiment of the present invention three provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of display light calibration method, see Fig. 1, the method comprises:
Step 101: the width obtaining cursor to be drawn and height, according to the width of cursor to be drawn with highly create cursor to be drawn;
Step 102: obtain the indicated value being used to indicate cursor to be drawn and whether showing, if this indicated value is true, then the transparency of cursor to be drawn is set to the first numerical value, to show cursor to be drawn, and timing is carried out to the very first time showing cursor to be drawn;
Step 103: when the very first time arrives the first Preset Time, is set to second value by the transparency of cursor to be drawn, and to hide cursor to be drawn, and carries out timing to second time of hiding cursor to be drawn;
Step 104: when the second time arrived the second Preset Time, the transparency of cursor to be drawn is set to the first numerical value, to show cursor to be drawn.
Wherein, obtain the width of cursor to be drawn and height, comprising:
If the edit box at the current place of focus is RichText Edition frame, then receive the width of the cursor to be drawn that operating system sends and height.
Alternatively, obtain the width of cursor to be drawn and height, comprising:
If the edit box at the current place of focus is plain text edit box, then obtain the height of the font arranged in the edit box of this focus current place;
The font height of acquisition is defined as the height of cursor to be drawn, default numerical value is defined as the width of cursor to be drawn.
Further, the method also comprises:
When moving wait the cursor drawn, obtain the first horizontal ordinate after the cursor drawn is moved relative to this window and the first ordinate;
Obtain this window relative to the second horizontal ordinate of the screen of terminal and the second ordinate;
According to the first horizontal ordinate and the second horizontal ordinate, calculate the 3rd horizontal ordinate after the cursor drawn is moved relative to this screen, and according to the first ordinate and the second ordinate, calculate the 3rd ordinate after the cursor drawn is moved relative to this screen;
According to the 3rd horizontal ordinate and the 3rd ordinate, cursor mobile to be drawn.
Further, the method also comprises:
When mobile when the window at the cursor place of drawing, receive window position changes message, this window's position change in message carry this window be moved relative to the screen of this terminal after the 4th horizontal ordinate and the 4th ordinate;
According to the 4th horizontal ordinate and the 4th ordinate, this window mobile and cursor to be drawn simultaneously.
In embodiments of the present invention, according to the width of cursor to be drawn with highly create cursor to be drawn, obtain the indicated value being used to indicate cursor to be drawn and whether showing, if this indicated value is true, the transparency then arranging cursor to be drawn is the first numerical value, to show cursor to be drawn, and timing is carried out to the very first time showing cursor to be drawn; When the very first time arrives the first Preset Time, the transparency arranging cursor to be drawn is second value, to hide cursor to be drawn, carries out timing to second time of hiding cursor to be drawn, when the second time arrived the second Preset Time, return and show cursor to be drawn.So, in the first Preset Time, show cursor to be drawn, in the second Preset Time, hide cursor to be drawn, achieve the continuous flicker of cursor to be drawn in layered window.
Embodiment two
Embodiments provide a kind of display light calibration method, see Fig. 2, the method comprises:
Step 201: the width obtaining cursor to be drawn and height, according to the width of cursor to be drawn with highly create cursor to be drawn;
Wherein, if the edit box at focus place is RichText Edition frame in window, then this step is specifically as follows: when user by this Focal Point Shift to the text edit box time, operating system notifies that this window needs to show the cursor of a continuous flicker in text edit box, and by the width of cursor to be drawn in text edit box with highly send to text edit box; Text edit box is according to the width of cursor to be drawn and highly create an analogue window, and this analogue window is defined as cursor to be drawn.
Wherein, if the edit box at focus place is plain text edit box in this window, then this step is specifically as follows: the height obtaining the font arranged in the edit box of this focus current place; The font height of acquisition is defined as the height of cursor to be drawn, default numerical value is defined as the width of cursor to be drawn, text edit box is according to the width of cursor to be drawn and highly create an analogue window, and this analogue window is defined as cursor to be drawn.
Step 202: obtain the indicated value being used to indicate cursor to be drawn and whether showing, if the indicated value obtained is true, then the transparency of cursor to be drawn is set to the first numerical value, to show cursor to be drawn, and timing is carried out to the very first time showing cursor to be drawn;
Wherein, be used to indicate the indicated value whether cursor to be drawn show and can be set to 0 or 1, when this indicated value is 1, determines that this indicated value is true, then show cursor to be drawn; When this indicated value is 0, determines that this indicated value is false, then hide cursor to be drawn.
Wherein, in embodiments of the present invention cursor to be drawn is set to layering pattern, the transparency of cursor to be drawn can be set after cursor to be drawn is set to layering pattern.When showing the cursor wait drawing, the transparency of cursor to be drawn being set to the first numerical value, when hiding wait the cursor drawn, the transparency of cursor to be drawn being set to second value.
Wherein, the first numerical value can be 0, and second value can be 255.
Step 203: when the very first time arrives the first Preset Time, is set to the first numerical value by the transparency of cursor to be drawn, and to hide cursor to be drawn, and carries out timing to second time of hiding cursor to be drawn;
Step 204: when the second time arrived the second Preset Time, the transparency of cursor to be drawn is set to second value, to show cursor to be drawn, returns step 202;
Wherein, the cursor of constantly flicker can be realized in an edit box according to step 201 to step 204, for the input position of pointing out user current, when other edit boxes that Focal Point Shift comprises to this window by user, a cursor constantly glimmered can also be shown according to above-mentioned steps 201 to step 204.
Wherein, a timer can be set timing is carried out to the very first time and the second time, and the first Preset Time can be identical with the second Preset Time, also can be different, be not specifically limited whether the first Preset Time and the second Preset Time be identical in the embodiment of the present invention.
Wherein, after show a cursor constantly glimmered in edit box, if this cursor mobile, then can realize according to the process of following steps 205 to step 208.
Step 205: when moving wait the cursor drawn, obtain the first horizontal ordinate after the cursor drawn is moved relative to this window and the first ordinate;
Particularly, determining the true origin in this window coordinates system, set up window coordinates system according to the true origin determined, when moving wait the cursor drawn, obtaining the first horizontal ordinate after the cursor drawn is moved in this window coordinates system and the first ordinate.
Wherein, window coordinates system can be set up as the initial point of coordinate system in the upper left corner of this window, also window coordinates system can be set up as the initial point of coordinate system in the lower right corner of this window, in the embodiment of the present invention, the true origin of window coordinates system is not limited, only need after true origin determines, this window coordinates system no longer changes.
Step 206: obtain this window relative to the second horizontal ordinate of the screen of terminal and the second ordinate;
Particularly, determine the true origin in this screen coordinate system, the true origin according to determining sets up screen coordinate system, obtains second horizontal ordinate of this window in this screen coordinate system and the second ordinate.
Wherein, screen coordinate system can be set up as the initial point of coordinate system in the upper left corner of this terminal screen, also screen coordinate system can be set up as the initial point of coordinate system in the lower right corner of this screen, in the embodiment of the present invention, the true origin of screen coordinate system is not limited, only need after true origin determines, this screen coordinate system no longer changes.
Wherein, after screen coordinate system and window coordinates system determine, this window can be got relative to the second horizontal ordinate of the screen movement of terminal and the second ordinate.
Step 207: according to the first horizontal ordinate and the second horizontal ordinate, calculate the 3rd horizontal ordinate after the cursor drawn is moved relative to screen, and according to the first ordinate and the second ordinate, calculate the 3rd ordinate after the cursor drawn is moved relative to screen;
Particularly, first horizontal ordinate is added with the second horizontal ordinate, obtain the 3rd horizontal ordinate after the cursor drawn is moved relative to screen, and the first ordinate and the second ordinate are added, obtain the 3rd ordinate after the cursor drawn is moved relative to screen.
Step 208: according to the 3rd horizontal ordinate and the 3rd ordinate, cursor mobile to be drawn;
Particularly, cursor to be drawn is moved to the 3rd abscissa positions place along the transverse axis in screen coordinate system, and cursor to be drawn is moved to the 3rd ordinate position along the longitudinal axis in screen coordinate system.
Wherein, when mobile when the window at the cursor place of drawing, can realize according to the process of following steps 209 and step 210.
Step 209: when mobile when the window at the cursor place of drawing, receive window position changes message, this window's position change in message carry this window be moved relative to the screen of terminal after the 4th horizontal ordinate and the 4th ordinate;
Step 210: according to the 4th horizontal ordinate and the 4th ordinate, simultaneously this window mobile and cursor to be drawn.
Particularly, this window and cursor to be drawn are moved to the 4th abscissa positions place along the transverse axis in screen coordinate system simultaneously, and this window and cursor to be drawn are moved to the 4th ordinate position along the longitudinal axis in screen coordinate system simultaneously.
Alternatively, cursor to be drawn can also monitor the window at its place in real time, when this window mobile, cursor to be drawn is tackled this window's position and is changed message, this the window's position change in message carry this window be moved relative to the screen of terminal after the 4th horizontal ordinate and the 4th ordinate, cursor to be drawn is moved to the 4th abscissa positions place along the transverse axis in screen coordinate system, and cursor to be drawn is moved to the 4th ordinate position along the longitudinal axis in screen coordinate system simultaneously.
Alternatively, the process that the embodiment of the present invention not only can pass through above-mentioned steps 201 to step 204 show a cursor constantly glimmered in edit box, but also can show a cursor constantly glimmered by edit box from paint cursor.Edit box from the detailed process of painting cursor and show a continuous cursor for flicker is: edit box obtains width and the height of cursor to be drawn, when needs are in edit box during display highlighting, this edit box draws cursor to be drawn according to the width of cursor to be drawn and height in this edit box, now shows cursor to be drawn and carries out timing to the very first time showing cursor to be drawn.When the very first time arrives the first Preset Time, wipe cursor to be drawn, now hide cursor to be drawn and timing is carried out to second time of hiding cursor to be drawn, so, the cursor that show or hide is repeatedly to be drawn, achieves and show a cursor constantly glimmered in this edit box.
Wherein, due at edit box from painting in cursor, cursor to be drawn is that edit box oneself is drawn, thus when the window is moved cursor also together with time movement, there will not be the problem of independent mobile cursor; And when moving wait the cursor drawn, edit box can obtain the horizontal ordinate after the cursor drawn is moved in this edit box and ordinate, and cursor to be drawn is drawn at the horizontal ordinate after being moved in this edit box wait the cursor drawn and ordinate place.
In embodiments of the present invention, according to the width of cursor to be drawn with highly create cursor to be drawn, obtain the indicated value being used to indicate cursor to be drawn and whether showing, if this indicated value is true, the transparency then arranging cursor to be drawn is the first numerical value, to show cursor to be drawn, and timing is carried out to the very first time showing cursor to be drawn; When the very first time arrives the first Preset Time, the transparency arranging cursor to be drawn is second value, to hide cursor to be drawn, carries out timing to second time of hiding cursor to be drawn, when the second time arrived the second Preset Time, return and show cursor to be drawn.So, in the first Preset Time, show cursor to be drawn, in the second Preset Time, hide cursor to be drawn, achieve the continuous flicker of cursor to be drawn in layered window.
Embodiment three
Embodiments provide a kind of device of display highlighting, see Fig. 3, this device comprises:
Creation module 301, for the width and the height that obtain cursor to be drawn, according to the width of cursor to be drawn with highly create cursor to be drawn;
First arranges module 302, for obtaining the indicated value being used to indicate cursor to be drawn and whether showing, if this indicated value is true, then the transparency of cursor to be drawn is set to the first numerical value, to show cursor to be drawn, and timing is carried out to the very first time showing cursor to be drawn;
Second arranges module 303, for when the very first time arrives the first Preset Time, the transparency of cursor to be drawn is set to second value, to hide cursor to be drawn, and carries out timing to second time of hiding cursor to be drawn;
3rd arranges module 304, for when the second time arrived the second Preset Time, the transparency of cursor to be drawn is set to the first numerical value, to show cursor to be drawn.
Wherein, this creation module 301 comprises:
Receiving element, if be RichText Edition frame for the edit box at the current place of focus, then receives the width of the cursor to be drawn that operating system sends and height, according to the width of cursor to be drawn with highly create cursor to be drawn.
Alternatively, this creation module 301 comprises:
Acquiring unit, if be plain text edit box for the edit box at the current place of focus, then obtains the height of the font arranged in the edit box of focus current place;
Determining unit, for the font height of acquisition being defined as the height of cursor to be drawn, is defined as the width of cursor to be drawn by default numerical value, according to the width of cursor to be drawn with highly create cursor to be drawn.
Further, this device also comprises:
First acquisition module, for when moving wait the cursor drawn, obtains the first horizontal ordinate after the cursor drawn is moved relative to this window and the first ordinate;
Second acquisition module, for obtaining this window relative to the second horizontal ordinate of the screen of terminal and the second ordinate;
Computing module, for according to the first horizontal ordinate and the second horizontal ordinate, calculate the 3rd horizontal ordinate after the cursor drawn is moved relative to this screen, and according to the first ordinate and the second ordinate, calculate the 3rd ordinate after the cursor drawn is moved relative to this screen;
First mobile module, for according to the 3rd horizontal ordinate and the 3rd ordinate, moves cursor to be drawn.
Further, this device also comprises:
Receiver module, for when mobile when the window at the cursor place of drawing, receive window position changes message, this window's position change in message carry this window be moved relative to the screen of this terminal after the 4th horizontal ordinate and the 4th ordinate;
Second mobile module, for according to the 4th horizontal ordinate and the 4th ordinate, moves this window and cursor to be drawn simultaneously.
In embodiments of the present invention, according to the width of cursor to be drawn with highly create cursor to be drawn, obtain the indicated value being used to indicate cursor to be drawn and whether showing, if this indicated value is true, the transparency then arranging cursor to be drawn is the first numerical value, to show cursor to be drawn, and timing is carried out to the very first time showing cursor to be drawn; When the very first time arrives the first Preset Time, the transparency arranging cursor to be drawn is second value, to hide cursor to be drawn, carries out timing to second time of hiding cursor to be drawn, when the second time arrived the second Preset Time, return and show cursor to be drawn.So, in the first Preset Time, show cursor to be drawn, in the second Preset Time, hide cursor to be drawn, achieve the continuous flicker of cursor to be drawn in layered window.
It should be noted that: the device of the display highlighting that above-described embodiment provides is when display highlighting, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the display highlighting that above-described embodiment provides and the embodiment of the method for display highlighting belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a display light calibration method, is characterized in that, described method comprises:
Obtain the width of cursor to be drawn and height, the cursor to be drawn according to described width with described in highly creating;
Obtain the indicated value that described in being used to indicate, whether cursor to be drawn shows, if described indicated value is true, then the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing, and timing is carried out to the very first time of cursor to be drawn described in display;
When the described very first time arrives the first Preset Time, the transparency of cursor described to be drawn is set to second value, with cursor to be drawn described in hiding, and timing is carried out to the second time of cursor to be drawn described in hiding;
When described second time arrives the second Preset Time, the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing.
2. the method for claim 1, is characterized in that, described width and the height obtaining cursor to be drawn, comprising:
If the edit box at the current place of focus is RichText Edition frame, then receive the width of the cursor to be drawn that operating system sends and height.
3. the method for claim 1, is characterized in that, described width and the height obtaining cursor to be drawn, comprising:
If the edit box at the current place of focus is plain text edit box, then obtain the height of the font arranged in the edit box of described focus current place;
The font height of acquisition is defined as the height of cursor to be drawn, the width of cursor to be drawn described in being defined as by default numerical value.
4. the method as described in claim as arbitrary in claim 1-3, is characterized in that, described method also comprises:
When described in movement wait the cursor drawn time, the first horizontal ordinate described in acquisition after the cursor drawn is moved relative to described window and the first ordinate;
Obtain described window relative to the second horizontal ordinate of the screen of terminal and the second ordinate;
According to described first horizontal ordinate and described second horizontal ordinate, the 3rd horizontal ordinate described in calculating after the cursor drawn is moved relative to described screen, and according to described first ordinate and described second ordinate, the 3rd ordinate described in calculating after the cursor drawn is moved relative to described screen;
According to described 3rd horizontal ordinate and described 3rd ordinate, cursor to be drawn described in mobile.
5. the method for claim 1, is characterized in that, described method also comprises:
When described in movement when the window at the cursor place of drawing, receive window position changes message, described the window's position change in message carry described window be moved relative to the screen of described terminal after the 4th horizontal ordinate and the 4th ordinate;
According to described 4th horizontal ordinate and described 4th ordinate, move described window and cursor described to be drawn simultaneously.
6. a device for display highlighting, is characterized in that, described device comprises:
Creation module, for obtaining the width of cursor to be drawn and height, the cursor to be drawn according to described width with described in highly creating;
First arranges module, for obtain be used to indicate described in the indicated value that whether shows of cursor to be drawn, if described indicated value is true, then the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing, and timing is carried out to the very first time of cursor to be drawn described in display;
Second arranges module, for when the described very first time arrives the first Preset Time, the transparency of cursor described to be drawn is set to second value, with cursor to be drawn described in hiding, and carries out timing to the second time of cursor to be drawn described in hiding;
3rd arranges module, for when described second time arrives the second Preset Time, the transparency of cursor described to be drawn is set to the first numerical value, with cursor to be drawn described in showing.
7. device as claimed in claim 1, it is characterized in that, described creation module comprises:
Receiving element, if be RichText Edition frame for the edit box at the current place of focus, then receives the width of the cursor to be drawn that operating system sends and height, the cursor to be drawn according to described width with described in highly creating.
8. device as claimed in claim 6, it is characterized in that, described creation module comprises:
Acquiring unit, if be plain text edit box for the edit box at the current place of focus, then obtains the height of the font arranged in the edit box of described focus current place;
Determining unit, for the font height of acquisition being defined as the height of cursor to be drawn, the width of cursor to be drawn described in default numerical value is defined as, the cursor to be drawn according to described width with described in highly creating.
9. the device as described in claim as arbitrary in claim 1-8, is characterized in that, described device also comprises:
First acquisition module, for described in mobile wait the cursor drawn time, the first horizontal ordinate described in acquisition after the cursor drawn is moved relative to described window and the first ordinate;
Second acquisition module, for obtaining described window relative to the second horizontal ordinate of the screen of terminal and the second ordinate;
Computing module, for according to described first horizontal ordinate and described second horizontal ordinate, the 3rd horizontal ordinate described in calculating after the cursor drawn is moved relative to described screen, and according to described first ordinate and described second ordinate, the 3rd ordinate described in calculating after the cursor drawn is moved relative to described screen;
First mobile module, for according to described 3rd horizontal ordinate and described 3rd ordinate, cursor to be drawn described in mobile.
10. device as claimed in claim 6, it is characterized in that, described device also comprises:
Receiver module, for described in mobile when the window at the cursor place of drawing, receive window position changes message, described the window's position change in message carry described window be moved relative to the screen of described terminal after the 4th horizontal ordinate and the 4th ordinate;
Second mobile module, for according to described 4th horizontal ordinate and described 4th ordinate, moves described window and cursor described to be drawn simultaneously.
CN201310453065.7A 2013-09-27 2013-09-27 Cursor display method and device Pending CN104516621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310453065.7A CN104516621A (en) 2013-09-27 2013-09-27 Cursor display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310453065.7A CN104516621A (en) 2013-09-27 2013-09-27 Cursor display method and device

Publications (1)

Publication Number Publication Date
CN104516621A true CN104516621A (en) 2015-04-15

Family

ID=52792020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310453065.7A Pending CN104516621A (en) 2013-09-27 2013-09-27 Cursor display method and device

Country Status (1)

Country Link
CN (1) CN104516621A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991722A (en) * 2015-07-06 2015-10-21 天脉聚源(北京)传媒科技有限公司 Cursor display method and apparatus
CN105955629A (en) * 2016-05-04 2016-09-21 乐视控股(北京)有限公司 Method and device for selecting rich text
CN106095246A (en) * 2016-06-21 2016-11-09 广东小天才科技有限公司 The control method of cursor color and device
CN106569655A (en) * 2016-10-13 2017-04-19 福建天泉教育科技有限公司 Method and system for displaying laser pointer on Windows desktop
CN110516222A (en) * 2019-08-30 2019-11-29 北京字节跳动网络技术有限公司 Method for editing text, device, equipment, storage medium
CN112612450A (en) * 2020-12-18 2021-04-06 平安普惠企业管理有限公司 Method, device, terminal and storage medium for implementing text input box

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1320898A (en) * 2000-04-24 2001-11-07 三星电子株式会社 Cursor display method of and image display device for screen display
US20060143574A1 (en) * 2004-12-28 2006-06-29 Yuichi Ito Display method, portable terminal device, and display program
US20100005414A1 (en) * 2004-02-27 2010-01-07 Hitachi,Ltd Display method and display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1320898A (en) * 2000-04-24 2001-11-07 三星电子株式会社 Cursor display method of and image display device for screen display
US20100005414A1 (en) * 2004-02-27 2010-01-07 Hitachi,Ltd Display method and display device
US20060143574A1 (en) * 2004-12-28 2006-06-29 Yuichi Ito Display method, portable terminal device, and display program

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HBACC1000: "如何做flash的闪烁效果", 《百度知道》 *
LYPL: "如何实现一张图片闪烁效果", 《COCOACHINA》 *
灵灵: "javascript和css实现图片闪烁效果", 《新浪博客》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104991722A (en) * 2015-07-06 2015-10-21 天脉聚源(北京)传媒科技有限公司 Cursor display method and apparatus
CN105955629A (en) * 2016-05-04 2016-09-21 乐视控股(北京)有限公司 Method and device for selecting rich text
CN106095246A (en) * 2016-06-21 2016-11-09 广东小天才科技有限公司 The control method of cursor color and device
CN106569655A (en) * 2016-10-13 2017-04-19 福建天泉教育科技有限公司 Method and system for displaying laser pointer on Windows desktop
CN110516222A (en) * 2019-08-30 2019-11-29 北京字节跳动网络技术有限公司 Method for editing text, device, equipment, storage medium
CN112612450A (en) * 2020-12-18 2021-04-06 平安普惠企业管理有限公司 Method, device, terminal and storage medium for implementing text input box

Similar Documents

Publication Publication Date Title
CN104516621A (en) Cursor display method and device
US9674425B2 (en) Image acquisition method and apparatus
CN110503725A (en) Method, apparatus, electronic equipment and the computer readable storage medium of image procossing
CN105867815A (en) Split screen display method and device
CN108133454B (en) Space geometric model image switching method, device and system and interaction equipment
CN103035024A (en) Entity material quality replacement method based on three-dimensional virtual platform
CN105786417B (en) A kind of dynamic display method of static images, device and equipment
CN101763234B (en) Method and device for simulating various screen resolutions
CN106658139B (en) Focus control method and device
CN104035664A (en) Display method and device for user interface of application program
CN103679777A (en) Method and device for realizing page mask
CN104680532A (en) Object labeling method and device
EP2828831A1 (en) Point and click lighting for image based lighting surfaces
WO2017004141A1 (en) Systems and methods for providing multi-focus to applications for collaboration
CN102591500B (en) Touch-control drawing disposal system and method
CN105808035A (en) Icon display method and apparatus
CN110851050B (en) Method and device for testing clicking of page elements
CN103606179A (en) Animation image display method and device
CN106780704B (en) The direct lighting effect proximity rendering method of three-dimensional scenic reused based on visibility
CN109960543B (en) Writing operation processing method and device
CN107436765A (en) The treating method and apparatus of view control
CN110502205A (en) Picture showing edge processing method, device, electronic equipment and readable storage medium storing program for executing
CN104811639B (en) Information processing method and electronic equipment
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
CN103136169A (en) Method and device of displaying characters

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150415

RJ01 Rejection of invention patent application after publication