CN102467328A - Method for managing pop-up window based on embedded system graphics library - Google Patents

Method for managing pop-up window based on embedded system graphics library Download PDF

Info

Publication number
CN102467328A
CN102467328A CN2010105477254A CN201010547725A CN102467328A CN 102467328 A CN102467328 A CN 102467328A CN 2010105477254 A CN2010105477254 A CN 2010105477254A CN 201010547725 A CN201010547725 A CN 201010547725A CN 102467328 A CN102467328 A CN 102467328A
Authority
CN
China
Prior art keywords
window
pop
new
incident
focus
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
CN2010105477254A
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.)
Konka Group Co Ltd
Original Assignee
Konka Group 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 Konka Group Co Ltd filed Critical Konka Group Co Ltd
Priority to CN2010105477254A priority Critical patent/CN102467328A/en
Publication of CN102467328A publication Critical patent/CN102467328A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for managing a pop-up window based on an embedded system graphics library. The method comprises the following steps of: when a new window is required to be popped up in a system, judging whether the pop-up window exists in the system; if the pop-up window exists in the system, automatically logging off the system, and destroying the existing pop-up window to make a focal point of the pop-up window lost; and creating a new pop-up window, acquiring the focal point, and responding to a key message event. By adoption of the method, the problem that a key mistakenly responds or does not respond due to error transfer and loss of the focal point of the window caused by popping-up of a plurality of windows can be solved.

Description

A kind of method of the management pop-up window based on the embedded system shape library
Technical field
The present invention relates to the embedded system field, relate in particular to a kind of method of the management pop-up window based on the embedded system shape library.
Background technology
Pop-up window is a common GUI window, uses very extensively, and be exactly a kind of pop-up window like common dialog box.No matter still on the graphical interfaces at embedded device, can see pop-up window everywhere, give user's display reminding information, warning message, carry out information interaction etc. with the user at PC.
But general pop-up window is the pop-up window under the situation of known parent window, and perhaps system at a time only can trigger a pop-up window, can not occur also responding new accident and the situation of pop-up window when there being existing pop-up window.
In specific embedded type GUI application program, just exist to have a plurality of Event triggered pop-up windows.As operating as the user, trigger out a pop-up window, and this moment the automatic trigger event of system or telecommunication network incident, require to eject new pop-up window, at this time need in system, carry out unified management to pop-up window.
When a plurality of incidents trigger pop-up window simultaneously, window focus mistake or focus loss can appear and cause button correctly not respond or not the response situation.
Therefore, how to solve a plurality of bullet windows in the prior art and cause button correctly not respond or the problem of response not, become one of technical matters that current urgent need solves.
Summary of the invention
The method that the purpose of this invention is to provide a kind of management pop-up window based on the embedded system shape library, it can prevent to cause window focus transmission mistake, focus loss to cause key errors reaction or unresponsive problem because of ejecting a plurality of windows.
For solving technical matters of the present invention; The present invention discloses a kind of method of the management pop-up window based on the embedded system shape library, it is characterized in that, when needing to eject a new window in the system; Whether elder generation is judged has had pop-up window to exist in the system; If there has been pop-up window to exist in the system, then elder generation nullifies automatically and destroys original pop-up window, and makes it lose focus; And then create new pop-up window, obtain focus and response button message event.
Compared with prior art; Pop-up window management method of the present invention; Can prevent to cause window focus transmission mistake, focus loss to cause key errors reaction or problem such as reactionless because of ejecting a plurality of windows; The pop-up window of last triggering is an active window in the assurance system, guarantees the correct transmission of system focus, the correct response of button.
Description of drawings
Fig. 1 is the process flow diagram that the present invention is based on the management pop-up window method of embedded system shape library.。
Embodiment
As an embodiment of the invention, the present invention is at CC1203 and MSTAR 6i78 hardware platform, based on linux system, realize based on the embedded type GUI shape library of supporting frame buffer (FrameBuffer).
Embedded system gets into window master interface or any one common window interface, and these generic interface might have the user to operate the window of ejection, any pop-up window that also has network, system event to cause.These are uncertain and can appear at the pop-up window of any common window just; If do not adopt unified way to manage; Be easy to cause window focus transmission mistake, focus loss and cause system mistake corresponding event message or response message not, cause the seemingly-dead phenomenon of system.
Correctly transmit with the assurance focus in order to manage these windows that eject arbitrarily, need two global variables of in-system define; The first global variable CWindow*g_pParentWin and the second global variable CWindow*g_pActivePopWin; The first global variable CWindow* g_pParentWin is used for preserving the pointer of the common window of current active, and using RegisterParentWin (CWin*pWin) function is exactly to give this variable assignments; The second global variable CWindow*g_pActivePopWin is used for the pop-up window pointer of saved system current active, and RegisterActivePopWin (CWin*pWin) function is exactly to give this variable assignments.
When need ejecting a new window in the system, judge whether had pop-up window to exist in the system earlier, if having; Then earlier nullify and destroy original pop-up window automatically; And make it lose focus, and then create new pop-up window, obtain focus and response button message event.
See also Fig. 1, system is following to the method step that the bullet window is managed:
Step S1: system start-up, get into the main window interface, calling this window of RegisterParentWin (CWin*pWin) function registration is system's parent window, calls WM_PUSH () function main interface is pressed into the window management stack;
Step S2: get into new common window interface, calling this window of RegisterParentWin (CWin*pWin) function registration is system's parent window, calls WM_PUSH () this window is pressed into the window management stack;
Whether step S3: judging has the user to operate the establishment pop-up window of generation on this common window, if there is not the user to operate the new pop-up window of establishment of generation, gets into step S4; If have the user to operate the new pop-up window of establishment of generation, then get into step S5;
Step S4: judge whether that the incident that triggers new pop-up window takes place, do not take place, then return step S3 if trigger the incident of new pop-up window; If have the incident that triggers new pop-up window to take place, then get into step S5;
Step S5: call RegisterActivePopWin (CWin*pWin) function, registering this new window is the system activity pop-up window; Establishment also shows the pop-up window that this is movable and obtains focus; Get into step S6 then;
Step S6: judge whether that the incident that triggers new pop-up window takes place, do not take place, then return step S3 if trigger the incident of new pop-up window; If have the incident that triggers new pop-up window to take place, then get into step S7;
Step S7: call Vgm_UnRegisterActivePopWin () function earlier, nullify previous activation pop-up window, and hide and perhaps destroy this movable pop-up window; Calling this new incident pop-up window of RegisterActivePopWin (CWin*pWin) function registration then is the system activity pop-up window; Establishment also shows the pop-up window that this is movable and obtains focus; Turn back to step S3 then.
So cycling, system to whether having new pop-up window to judge, needs At time of eject as new window always, nullifies original active window, and with the movable pop-up window of new pop-up window as system.
In step S5 and step S7, create the success of this pop-up window after, need call RegisterActivePopWin (pWin) function and carry out location registration process.The pop-up window function that all establishments are new must return the pop-up window pointer of new establishment, and the pop-up window of all establishments can not get in the window stack of system, and is to use global variable g_pActivePopWin to carry out Unified Treatment.Common window pointer must get in the window stack of system and carry out unified management.
In sum; Realization and way to manage according to pop-up window of the present invention; Just can prevent to cause window focus transmission mistake, focus loss to cause key errors reaction or problem such as reactionless because of ejecting a plurality of windows; The pop-up window of last triggering is an active window in the assurance system, guarantees the correct transmission of system focus, the correct response of button.

Claims (3)

1. method based on the management pop-up window of embedded system shape library; It is characterized in that; When need ejecting a new window in the system, judge whether had pop-up window to exist in the system earlier, if there has been pop-up window to exist in the system; Then elder generation nullifies automatically and destroys original pop-up window, and makes it lose focus; And then create new pop-up window, obtain focus and response button message event.
2. the method for the management pop-up window based on the embedded system shape library according to claim 1; It is characterized in that; If there is not pop-up window to exist in the system, then directly registering this new window is the system activity pop-up window, and creating and show should the activity pop-up window and obtain focus.
3. the method for the management pop-up window based on the embedded system shape library according to claim 1, its concrete steps comprise:
Step S1: system start-up gets into the main window interface;
Step S2: the step that gets into the new common window interface of entering;
Whether step S3: judging has the user to operate the establishment pop-up window of generation on this common window, if there is not the user to operate the new pop-up window of establishment of generation, gets into step S4; If have the user to operate the new pop-up window of establishment of generation, then get into step S5;
Step S4: judge whether that the incident that triggers new pop-up window takes place, do not take place, then return step S3 if trigger the incident of new pop-up window; If have the incident that triggers new pop-up window to take place, then get into step S5;
Step S5: registering this new window is the system activity pop-up window, creates and shows the pop-up window that this is movable and obtain focus, gets into step S6 then;
Step S6: judge whether that the incident that triggers new pop-up window takes place, do not take place, then return step S3 if trigger the incident of new pop-up window; If have the incident that triggers new pop-up window to take place, then get into step S7;
Step S7: nullify previous activation pop-up window, and hide and perhaps destroy this movable pop-up window; Registering this new incident pop-up window then is the system activity pop-up window, creates and shows the pop-up window that this is movable and obtain focus, turns back to step S3 then.
CN2010105477254A 2010-11-17 2010-11-17 Method for managing pop-up window based on embedded system graphics library Pending CN102467328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105477254A CN102467328A (en) 2010-11-17 2010-11-17 Method for managing pop-up window based on embedded system graphics library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105477254A CN102467328A (en) 2010-11-17 2010-11-17 Method for managing pop-up window based on embedded system graphics library

Publications (1)

Publication Number Publication Date
CN102467328A true CN102467328A (en) 2012-05-23

Family

ID=46071016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105477254A Pending CN102467328A (en) 2010-11-17 2010-11-17 Method for managing pop-up window based on embedded system graphics library

Country Status (1)

Country Link
CN (1) CN102467328A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500081A (en) * 2013-09-26 2014-01-08 乐视致新电子科技(天津)有限公司 Display method and display device
CN104580716A (en) * 2014-12-31 2015-04-29 苏州乐米信息科技有限公司 Multi-interface management mechanism and method of mobile game
CN105242821A (en) * 2014-07-07 2016-01-13 北京畅游天下网络技术有限公司 Method for realizing free movement of popup window
CN106775648A (en) * 2016-11-23 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of method and device of the automatic drawing back of control

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101287A1 (en) * 2005-11-03 2007-05-03 International Business Machines Corporation Pop-up windows in a computer system
CN101493751A (en) * 2009-02-09 2009-07-29 深圳市步科电气有限公司 Multi-window manager of embedded graph system
CN101515220A (en) * 2009-04-13 2009-08-26 青岛海信移动通信技术股份有限公司 Method and related device for moving, zooming and controlling window in touch screen

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070101287A1 (en) * 2005-11-03 2007-05-03 International Business Machines Corporation Pop-up windows in a computer system
CN101493751A (en) * 2009-02-09 2009-07-29 深圳市步科电气有限公司 Multi-window manager of embedded graph system
CN101515220A (en) * 2009-04-13 2009-08-26 青岛海信移动通信技术股份有限公司 Method and related device for moving, zooming and controlling window in touch screen

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500081A (en) * 2013-09-26 2014-01-08 乐视致新电子科技(天津)有限公司 Display method and display device
CN105242821A (en) * 2014-07-07 2016-01-13 北京畅游天下网络技术有限公司 Method for realizing free movement of popup window
CN104580716A (en) * 2014-12-31 2015-04-29 苏州乐米信息科技有限公司 Multi-interface management mechanism and method of mobile game
CN106775648A (en) * 2016-11-23 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of method and device of the automatic drawing back of control

Similar Documents

Publication Publication Date Title
US20190196693A1 (en) Method and apparatus for displaying reminder message
CN107844377B (en) Communication method and device
CN103092824A (en) Memorandum creating method and device
CN106201468B (en) A kind of processing method of screenshotss, device and electronic equipment
CN104967550A (en) Method and apparatus for displaying unread messages
US20170177405A1 (en) Switching Method, Switching System And Terminal For System And/Or Application Program
CN102467328A (en) Method for managing pop-up window based on embedded system graphics library
CN102843440A (en) Method of preventing media access control address drifting and network processing device
CN105955894A (en) Camera external connection method for intelligent terminal, and intelligent terminal
CN102004606A (en) Screen locking method and device for handheld terminal
CN104346279A (en) Method and device for software testing
CN104978180A (en) Unhandled event reminding method, unhandled event reminding device and mobile terminal
CN102929921A (en) Information operational method and client
US10897512B2 (en) Generating push notifications
CN106980531B (en) Input method operation processing method and device
CN106657299A (en) Method and system for online reminding of concerned anchor
CN107402762B (en) Fingerprint navigation implementation method and device
CN105531662A (en) Method for processing an audio message
CN108958980A (en) Prevent method, electronic device and the computer readable storage medium of Activity life cycle exception
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN107168776B (en) Event statistical method, device, equipment and storage medium
CN102866895B (en) Method for quickly positioning function customizing entrance
CN101692183B (en) Method and system for warning about losing of handwriting pen of mobile terminal, and mobile terminal
CN105528276B (en) Module support layer fault handling method based on partition operating system health monitoring
CN105630654B (en) System and method for the IP address for showing BMC

Legal Events

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

Application publication date: 20120523