CN102799441A - Method for realizing software interface sliding effect under WINDOWS system - Google Patents
Method for realizing software interface sliding effect under WINDOWS system Download PDFInfo
- Publication number
- CN102799441A CN102799441A CN2012102573314A CN201210257331A CN102799441A CN 102799441 A CN102799441 A CN 102799441A CN 2012102573314 A CN2012102573314 A CN 2012102573314A CN 201210257331 A CN201210257331 A CN 201210257331A CN 102799441 A CN102799441 A CN 102799441A
- Authority
- CN
- China
- Prior art keywords
- child form
- child
- special efficacy
- displacement
- target location
- 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
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to a method for realizing software interface sliding effect under a WINDOWS system. A child window is locked or unlocked by using an application program interface (API), and the API is manually invoked for redrawing after the sliding effect of the whole child window is completed, so that the problem of image tail or flickering caused by a window redrawing mechanism of the WINDOWS when the window slides is solved in the WINDOWS system.
Description
Technical field
The present invention relates to realize under a kind of windows system method of software interface slip special efficacy.
Background technology
Computer user interface is meant the dialog interface between computing machine and its user, is the important component part of computer system.The development history of computing machine is not only processing speed of computing machine own and the memory capacity history that improves at full speed, and is to calculate the history that user interface is updated.Current software interface is rich and varied, and the characteristics of the maximum at these interfaces have provided friendly more interface to be different from common dialog box application program.In the WINDOWS system, when forms slide, can produce certain smear or flicker at present because the forms of WINDOWS redraw mechanism.
Summary of the invention
The present invention provides a kind of and when child form switches, is not easy to occur smear or flicker when Main form for the deficiency that overcomes above-mentioned prior art, and realizes the method for software interface slip special efficacy under the more smooth windows system of visual effect.
Realize the method for software interface slip special efficacy under a kind of windows system, specifically may further comprise the steps:
Step 1, will realize that the forms of sliding effect are called child form, the starting point of will sliding out that child form is positioned at is called initial position, and it is invisible that this child form is set, and the shown variable of this child form is made as false;
Step 2, open timer when beginning to slide earlier, the cycle of this timer is that child form moves to the needed time of target location from initial position;
During the slip special efficacy of step 3, beginning child form, child form is set, the shown variable of this child form is made as true for visible;
Step 4, in above-mentioned timing cycle, at interval a few tens of milliseconds is carried out the displacement of child form in Main form to the hundreds of millisecond, this child form is moved to the left x pixel, locks whole child form with win32 API before changing the child form position;
Whether the position of judging this child form immediately after step 5, the displacement of subwindow completion is in the target location; Read the distance value left of the left hand edge of child form with respect to the left hand edge of Main form; Judge whether to conform to,, represent that this child form has slided to finish if conform to and represent that then child form has reached the target location with threshold value; Jump to step 8, otherwise continue step 6;
Step 6, threshold value is deducted displacement pixel value x, so that in step 5, judge;
Step 7, return step 4;
Step 8, release child form are accomplished the slip special efficacy, and timer stops;
Step 9, whole child form is carried out once initiatively calling redrawing of API.
The present invention utilizes API that child form is carried out the locking and unlocking; After the slip special efficacy of accomplishing whole child form, manually calling API again redraws; Solved in the WINDOWS system; When forms slide,, the forms of WINDOWS produce the problem of certain smear or flicker because redrawing mechanism.
Description of drawings
Fig. 1 is a fundamental diagram of the present invention;
Fig. 2 is a workflow diagram of the present invention.
Below in conjunction with accompanying drawing and specific embodiment the present invention is made further detailed description.
Specific embodiment
Like Fig. 1, shown in 2, realize the method for software interface slip special efficacy under a kind of windows of the present invention system, specifically may further comprise the steps:
Step 1, will realize that the forms of sliding effect are called child form; The starting point of will sliding out that child form is positioned at is called initial position; If the shown variable of this child form is false, represent that this child form also normally shows, and this child form is set is invisible (invisible);
Step 2, open timer when beginning to slide earlier, the cycle of this timer is that child form moves to the needed time of target location from initial position;
During the slip special efficacy of step 3, beginning child form, with child form be made as visible (visible), and the shown variable of this child form is made as true;
Step 4, in above-mentioned timing cycle; A few tens of milliseconds is carried out the displacement of child form in Main form to the hundreds of millisecond at interval; This child form is moved to the left x pixel (occurrence is decided according to situation); Do not see sliding with naked eyes and be advisable, before changing the child form position, lock whole child form with win32 API, with guarantee child form on the throne move past in the journey because windows redraw machine-processed the photograph into smear;
Whether the position of judging this child form immediately after step 5, the displacement of subwindow completion is in the target location; Read the distance value left of the left hand edge of child form with respect to the left hand edge of Main form; Judge whether to conform to,, represent that this child form has slided to finish if conform to and represent that then child form has reached the target location with threshold value; Jump to step 8, otherwise continue step 6;
Step 6, threshold value is deducted displacement pixel value x, so that in step 5, judge;
Step 7, return step 4;
Step 8, release child form are accomplished the slip special efficacy, and timer stops;
Step 9, whole child form is carried out once initiatively calling redrawing of API, redraw smear so that guarantee not produce once more.
The above; It only is preferred embodiment of the present invention; Be not that technical scope of the present invention is done any restriction, so every foundation technical spirit of the present invention all still belongs in the scope of technical scheme of the present invention any trickle modification, equivalent variations and modification that above embodiment did.
Claims (1)
1. realize the method for software interface slip special efficacy under the windows system, it is characterized in that specifically may further comprise the steps:
Step 1, will realize that the forms of sliding effect are called child form, the starting point of will sliding out that child form is positioned at is called initial position, and it is invisible that this child form is set, and the shown variable of this child form is made as false;
Step 2, open timer when beginning to slide earlier, the cycle of this timer is that child form moves to the needed time of target location from initial position;
During the slip special efficacy of step 3, beginning child form, child form is set, the shown variable of this child form is made as true for visible;
Step 4, in above-mentioned timing cycle, at interval a few tens of milliseconds is carried out the displacement of child form in Main form to the hundreds of millisecond, this child form is moved to the left x pixel, locks whole child form with win32 API before changing the child form position;
Whether the position of judging this child form immediately after step 5, the displacement of subwindow completion is in the target location; Read the distance value left of the left hand edge of child form with respect to the left hand edge of Main form; Judge whether to conform to,, represent that this child form has slided to finish if conform to and represent that then child form has reached the target location with threshold value; Jump to step 8, otherwise continue step 6;
Step 6, threshold value is deducted displacement pixel value x, so that in step 5, judge;
Step 7, return step 4;
Step 8, release child form are accomplished the slip special efficacy, and timer stops;
Step 10, whole child form is carried out once initiatively calling redrawing of API.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012102573314A CN102799441A (en) | 2012-07-24 | 2012-07-24 | Method for realizing software interface sliding effect under WINDOWS system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012102573314A CN102799441A (en) | 2012-07-24 | 2012-07-24 | Method for realizing software interface sliding effect under WINDOWS system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102799441A true CN102799441A (en) | 2012-11-28 |
Family
ID=47198558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012102573314A Pending CN102799441A (en) | 2012-07-24 | 2012-07-24 | Method for realizing software interface sliding effect under WINDOWS system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102799441A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104063241A (en) * | 2014-06-05 | 2014-09-24 | 广东威创视讯科技股份有限公司 | Image synchronous display method and system of host program and COM component |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100268940A1 (en) * | 2009-04-15 | 2010-10-21 | Wyse Technology Inc. | Method and apparatus for portability of a remote session |
-
2012
- 2012-07-24 CN CN2012102573314A patent/CN102799441A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100268940A1 (en) * | 2009-04-15 | 2010-10-21 | Wyse Technology Inc. | Method and apparatus for portability of a remote session |
Non-Patent Citations (2)
Title |
---|
BALONFAN: "LockWindowUpdate系列3:什么样的操作中应当使用LockWindowUpdate?", 《LOCKWINDOWUPDATE系列3:什么样的操作中应当使用LOCKWINDOWUPDATE?》 * |
唐耀 等: "《Visual Basic.NET程序设计教程》", 30 April 2004, 中国水利水电出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104063241A (en) * | 2014-06-05 | 2014-09-24 | 广东威创视讯科技股份有限公司 | Image synchronous display method and system of host program and COM component |
CN104063241B (en) * | 2014-06-05 | 2017-07-18 | 广东威创视讯科技股份有限公司 | The method and system that the image synchronization of host program and com component is shown |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2439629B1 (en) | Information processing apparatus, information processing method, and program | |
CN106095262B (en) | Method and apparatus for extracting static pattern from output of event-based sensor | |
US10395094B2 (en) | Method and apparatus for detecting glasses in a face image | |
CN104375797A (en) | Information processing method and electronic equipment | |
US20130009865A1 (en) | User-centric three-dimensional interactive control environment | |
Zhang et al. | Template matching using grey wolf optimizer with lateral inhibition | |
WO2012067881A3 (en) | Gesture recognition | |
CN103677602A (en) | Mobile terminal screen unlocking method and device | |
US9529463B1 (en) | Method and device for reducing latency for rendering and displaying stylus strokes | |
US9798437B2 (en) | Information processing method and electronic device | |
CN103810708A (en) | Method and device for perceiving depth of laser speckle image | |
CN103793137A (en) | Display method and electronic device | |
CN102902458A (en) | Page turning method for E-books | |
TW201224955A (en) | System and method for face detection using face region location and size predictions and computer program product thereof | |
CN103729124A (en) | Control method and system for slide list | |
CN113359995B (en) | Man-machine interaction method, device, equipment and storage medium | |
CN105654505A (en) | Collaborative tracking algorithm based on super-pixel and system thereof | |
CN105447968A (en) | Method for achieving installment payment of underwear machine control system | |
CN105630468A (en) | Focal point movement method and device of UI (User Interface) frame | |
CN102799441A (en) | Method for realizing software interface sliding effect under WINDOWS system | |
CN106325657A (en) | Screen projection display control method and device and mobile terminal | |
CN105824534B (en) | A kind of information processing method and electronic equipment | |
EP2987069B1 (en) | Detection of pan and scaling during multi-finger touch interactions | |
JP6742837B2 (en) | Image processing apparatus, image processing method and program | |
US9786087B1 (en) | Management of animation collisions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20121128 |