CN100465897C - Method and apparatus for opening window - Google Patents

Method and apparatus for opening window Download PDF

Info

Publication number
CN100465897C
CN100465897C CNB2006100784372A CN200610078437A CN100465897C CN 100465897 C CN100465897 C CN 100465897C CN B2006100784372 A CNB2006100784372 A CN B2006100784372A CN 200610078437 A CN200610078437 A CN 200610078437A CN 100465897 C CN100465897 C CN 100465897C
Authority
CN
China
Prior art keywords
window
application module
current window
shaking hands
order
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.)
Expired - Fee Related
Application number
CNB2006100784372A
Other languages
Chinese (zh)
Other versions
CN1967484A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100784372A priority Critical patent/CN100465897C/en
Publication of CN1967484A publication Critical patent/CN1967484A/en
Application granted granted Critical
Publication of CN100465897C publication Critical patent/CN100465897C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to a dialog window open method and device. The method includes: a receiving user opens one or more other windows request; the process of the said current window starts the process of other windows described in the said request; the process of other windows opens other windows, and establishes a link between the processes of the said current window and of the said other windows to process the communication. The device includes: current window application module, other windows application modules, the request receiving module linking with the current window application module, and the process initialization module and message transmitting module connected between the current window application module and other windows application module. The invention solves that other windows can be inoperative as a result of the congestion of the dialog, convenient to users to use applications, and enhances the users' satisfaction.

Description

Open the method and the device of window
Technical field
The present invention relates to the window operation application, relate in particular to a kind of method and device of opening window.
Background technology
When software development, the application program that the user needs software shows with the form of a plurality of windows, and the user can see more information like this, and can operate user-friendly application program simultaneously to the interface of a plurality of windows.But, in the various software that the user uses at ordinary times, problem of ubiquity: when in the application program of a software, showing a plurality of window, if wherein there is a window to eject dialog box, will cause thus all can't operating, influence the satisfaction that the user uses other window.In order to describe clearlyer, now be exemplified below: in word-processing application, the user opens two documents, at this moment, two window: word1 and help document is arranged in this word-processing application; Open " saving as " dialog box in word1, this dialog box is a dialog box; The user can't carry out any operation to help document, when for example by rolling mouse, kbhit help document being consulted, can not get response, therefore, brings very big inconvenience to the user.
Summary of the invention
The objective of the invention is to propose a kind of window deployment method and device of dialog box, solved when in application program, showing a plurality of window,, caused the problem that to operate other window if there is a window to eject dialog box.
To achieve these goals, the invention provides a kind of method of opening window, be applied in application program, show a plurality of windows, may further comprise the steps:
Step 1: opened current window receives the user and opens one or more other windows request;
Step 2: the process at current window place starts the process of other window according to described request;
Step 3: use the process of described other window to open other window, the row communication of going forward side by side connects between the process of the process at described current window place and described other window, make described other window and the different process of described current window use open, make dialog box not block operation other window.
Between the process of the process at described current window place and described other window, connect in the step 3, specifically comprise:
Step 311: the process at described current window place sends to the process of described other window with the request message that connects, and comprises the order of shaking hands in this request message;
Step 312: the process of described other window will comprise the process that the affirmation message of confirming the described order of shaking hands returns to described current window place;
Step 313: the process at described current window place sends the process of the response of described acknowledge message to described other window, thereby connects.
Between the process of the process at described current window place and described other window, connect in the step 3, specifically comprise:
The process at described current window place is according to the time interval of setting, and to the described order of shaking hands of process transmission of described other window, the process of described other window receives this order of shaking hands, and sends the affirmation message of the described order of shaking hands, thereby connects; Or,
The process of described other window is according to the time interval of setting, and the process to described current window place sends the order of shaking hands, and the process at described current window place receives this and shakes hands brightly, sends the described order acknowledge message of shaking hands, thereby connects.
The time interval of described setting triggers by timer is set.
Mode by socket between the process of carrying out process that communication is the current window place and described other window described in the described step 3 communicates.
In described step 1, described request comprises the order of opening other window.
In described step 2, the assembling of the process at described current window place also moves described order of opening other window, starts the process of other window.
A kind of device of opening window comprises current window application module, other window application module, and this device also comprises:
The request receiver module is used to receive the user and opens one or more other windows request, and this request is sent to described current window application module;
The process initiation module, be connected with other window application module with described current window application module, be used for starting the process of other window application module according to described request, make described other window and the different process of described current window use open, make dialog box not block operation other window;
Message is transmitted module, be connected with other window application module with described current window application module, be used for the row communication of going forward side by side that between the process of the process at described current window application module place and described other window application module, connects, open the window of other window application module.
Transmit in the module in described message and also to be provided with the command generator of shaking hands, be used to produce the order and send of shaking hands to the process of other window application module.
Transmit in the module in described message and also to be provided with timer, is connected, be used for regularly triggering the command generator of shaking hands and produce the order and of shaking hands to the process transmission of other window application module with the described command generator of shaking hands.
In the technique scheme, because by starting the process of other window earlier, thereby be implemented in and in the process of this other window, open other window, therefore, make described other window of opening use different processes with described current window, make dialog box not block operation to other window, so eject at described current window under the situation of dialog box, described other window is also unaffected, the user can be to its any operation, convenient for users, solved in the prior art because all windows all use same process, thereby can be subjected to the dialog box occlusive effects opened at current window, before this dialog box is closed, the problem that can't operate other window; And connect between the process at described current window place and the process of described other window, can carry out communication in the mode of socket, thereby make and between the process of window, keep related, when a process withdraws from, response can be perceived and in time be made to another process, convenient for users, improved user satisfaction.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 opens the process flow diagram of the method specific embodiment 1 of window for the present invention;
Fig. 2 opens the process flow diagram of the method specific embodiment 2 of window for the present invention;
Fig. 3 opens the device synoptic diagram of the device specific embodiment 1 of window for the present invention;
Fig. 4 opens the device specific embodiment 2 of window for the present invention message is transmitted the inner structure synoptic diagram of module;
Fig. 5 opens the device specific embodiment 3 of window for the present invention message is transmitted the inner structure synoptic diagram of module.
Embodiment
Referring to shown in Figure 1, Fig. 1 is the process flow diagram of the window deployment method specific embodiment 1 of dialog box of the present invention, and this flow process may further comprise the steps:
Step 100: receive the user and open one or more other windows request;
Step 101: the process at described current window place starts the process of other window according to described request;
Step 102: connect between the process of the process at described current window place and described other window, the row communication of going forward side by side is opened other window in the process of this other window.
At this moment, under the situation of having opened a plurality of windows, open corresponding dialog box in a window therein, when wanting other window and operating on it, switch to other window by described current window, the user just can operate this other window.
In described step 100, described request comprises the order of opening other window; In described step 101, the assembling of the process at described current window place also moves described order of opening other window, starts the process of other window.
In described step 102, between the process of the process at described current window place and described other window, connect, can carry out communication in the mode of socket, thereby make and between the process of window, keep related, when a process withdraws from, another process can be perceived and in time make response, and is convenient for users, improved user satisfaction.
In sum, in the present invention, when the user need open other window, can start a new process in addition for this window, be the process of other window, and open other window in the process of this other window, other window and original window do not belong to same process like this; When original window (current window) is operated, when this current window is hit by a bullet out dialog box, just can exert an influence, thereby reach the purpose that a plurality of windows are operated other window.Because confidential relation is arranged between the window, need the mutual of information between them, but after adopting two processes now, can not be in the mode under the situation of same process, call mutually and information interaction, therefore, for setting up a kind of communication channel between these two processes, and carry out communication in the mode of socket, guarantee the information interaction between the window.
Referring to shown in Figure 2, Fig. 2 is a process flow diagram of opening the method specific embodiment 2 of window of the present invention, in this embodiment, connects by handshake mechanism between the process of two windows, and this flow process may further comprise the steps:
Step 200: the process that second windows request sends to opened current window place is opened in user's request, and promptly the process at first window place comprises the order of opening second window in this request;
Step 201: the process assembling at first window place and the order that second window opened in operation, the process of second window of startup;
Step 202: between the process of the process at first window place and second window, connect, and carry out communication in the mode of socket, in the process of this second window, open second window, at this moment, switch to second window by first window, the user just can operate this second window.
In the step 202,, between the process of the process at first window place and second window, connect, specifically comprise by handshake mechanism:
Step 2021a: the process at first window place sends to the process of second window with the request message that connects, and comprises the order of shaking hands in this request message;
Step 2021b: the affirmation message that the process of second window will comprise the order of confirming to shake hands returns to the process at first window place;
Step 2021c: shake hands successfully between the process of the process at first window place and second window, connect.
At this moment, under the situation of having opened two windows, open dialog box in first window, can be by switching to ought opening second window and operating on it.
Specific embodiment 3: in this embodiment, connect by the two-shipper handshake mechanism between the process of two windows, based on the foregoing description shown in Figure 2, in the present embodiment, in the step 202, by the two-shipper handshake mechanism, between the process of the process at first window place and second window, connect, specifically comprise:
The process at described current window place is according to the time interval of described setting, send the described order of shaking hands to the process of described other window, receive the affirmation message that the process of this other window is returned, then shake hands successfully, connect, determine to exist the process of this other window;
The process of described other window is according to the time interval of described setting, send the order of shaking hands to the process at described current window place, receive the affirmation message that the process at this current window place is returned, then shake hands successfully, connect, determine to exist the process at this current window place.
So that timer to be set, and realize the two-shipper handshake mechanism in the above-mentioned steps according to the mode that this timer pre-set time interval sends the described order of shaking hands.
For example the process of in the webmaster application program client window and the Online Help window corresponding with it being operated is: when pressing the F1 key on the client window, whether the client process inspection has started the Online Help process, if be not activated, the then order that client process is assembled and the Online Help window is opened in operation starts the Online Help process; After starting this new process of Online Help process, connect between client process and the Online Help process, and carry out communication in the mode of socket; Send an order that shows the Online Help window to the Online Help process then, after the Online Help process receives this order, open the Online Help window, switch to the Online Help window, and the Online Help content of correspondence is shown in the help window by client window
When the Tools menu item of clicking on the client window, open a dialog box, can but and to Online Help check document this moment.
Simultaneously, in order to guarantee that the another one process can be known, by the two-shipper handshake mechanism, connects, and determines that the other side's process still exists under the situation that certain process exception stops between the two.Be that per 30 seconds of client process sends the order of shaking hands to the Online Help process, the Online Help process, illustrated and shakes hands successfully if can both receive the affirmation message of returning respectively to order of shaking hands of client process transmission in per 30 seconds, connect, thereby determine that the other side's process still exists.
The present invention also provides a kind of device of opening window, and referring to Fig. 3, the device synoptic diagram of the device specific embodiment 1 that it is opened for window of the present invention comprises:
Current window application module 1 and other window application module 2;
Request receiver module 3 is used to receive the user and opens one or more other windows request;
Process initiation module 4 is connected with other window application module 2 with described current window application module 1, is used for starting according to described request the process of other window application module;
Message is transmitted module 5, be connected with other window application module with described current window application module 2, be used for the row communication of going forward side by side that between the process of the process at described current window application module place and described other window application module, connects, open the window of other window application module.
As shown in Figure 4, its message of opening the device specific embodiment 2 of window for the present invention is transmitted the inner structure synoptic diagram of module, present embodiment and the foregoing description difference are: transmit in the module 5 in described message and can also be provided with the command generator 51 of shaking hands, be used to produce the order and send to the process of other window application module of shaking hands.
As shown in Figure 5, its message of opening the device specific embodiment 3 of window for the present invention is transmitted the inner structure synoptic diagram of module, present embodiment and embodiment difference shown in Figure 5 are: transmit in the module 5 in described message and can also be provided with timer 52, be connected with the described command generator 51 of shaking hands, be used for regularly triggering the command generator of shaking hands and produce the order and send of shaking hands to the process of other window application module.
Beneficial effect: because method of the present invention and device are by starting the process of other window earlier, thereby be implemented in and in the process of this other window, open other window, therefore, make described other window of opening use different processes with described current window, make dialog box not block operation to other window, so eject at described current window under the situation of dialog box, described other window is also unaffected, the user can be to its any operation, convenient for users, solved in the prior art because all windows all use same process, thereby can be subjected to the dialog box occlusive effects opened at current window, before this dialog box is closed, the problem that can't operate other window; And connect between the process at described current window place and the process of described other window, can carry out communication in the mode of socket, thereby make and between the process of window, keep related, when a process withdraws from, response can be perceived and in time be made to another process, convenient for users, improved user satisfaction.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (10)

1, a kind of method of opening window is applied to show a plurality of windows in application program, it is characterized in that, may further comprise the steps:
Step 1: opened current window receives the user and opens one or more other windows request;
Step 2: the process at current window place starts the process of other window according to described request;
Step 3: use the process of described other window to open other window, the row communication of going forward side by side connects between the process of the process at described current window place and described other window, make described other window and the different process of described current window use open, make dialog box not block operation other window.
2, method according to claim 1 is characterized in that, connects between the process of the process at described current window place and described other window in the step 3, specifically comprises:
Step 311: the process at described current window place sends to the process of described other window with the request message that connects, and comprises the order of shaking hands in this request message;
Step 312: the process of described other window will comprise the process that the affirmation message of confirming the described order of shaking hands returns to described current window place;
Step 313: the process at described current window place sends the process of the response of described acknowledge message to described other window, thereby connects.
3, method according to claim 2 is characterized in that, connects between the process of the process at described current window place and described other window in the step 3, specifically comprises:
The process at described current window place is according to the time interval of setting, and to the described order of shaking hands of process transmission of described other window, the process of described other window receives this order of shaking hands, and sends the affirmation message of the described order of shaking hands, thereby connects; Or,
The process of described other window is according to the time interval of setting, and the process to described current window place sends the order of shaking hands, and the process at described current window place receives this order of shaking hands, and sends the described order acknowledge message of shaking hands, thereby connects.
4, method according to claim 3 is characterized in that, the time interval of described setting triggers by timer is set.
5, method according to claim 1 is characterized in that, the mode by socket between the process of carrying out process that communication is the current window place and described other window described in the described step 3 communicates.
6, method according to claim 1 is characterized in that, in described step 1, described request comprises the order of opening other window.
7, method according to claim 6 is characterized in that, in described step 2, the assembling of the process at described current window place also moves described order of opening other window, starts the process of other window.
8, a kind of device of opening window comprises current window application module, other window application module, it is characterized in that this device also comprises:
The request receiver module is used to receive the user and opens one or more other windows request, and this request is sent to described current window application module;
The process initiation module, be connected with other window application module with described current window application module, be used for starting the process of other window application module according to described request, make described other window and the different process of described current window use open, make dialog box not block operation other window;
Message is transmitted module, be connected with other window application module with described current window application module, be used for the row communication of going forward side by side that between the process of the process at described current window application module place and described other window application module, connects, open the window of other window application module.
9, device according to claim 8 is characterized in that, transmits in the module in described message and also is provided with the command generator of shaking hands, and is used to produce the order and send to the process of other window application module of shaking hands.
10, device according to claim 9, it is characterized in that, transmit in the module in described message and also to be provided with timer, is connected, be used for regularly triggering the command generator of shaking hands and produce the order and of shaking hands to the process transmission of other window application module with the described command generator of shaking hands.
CNB2006100784372A 2006-05-26 2006-05-26 Method and apparatus for opening window Expired - Fee Related CN100465897C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100784372A CN100465897C (en) 2006-05-26 2006-05-26 Method and apparatus for opening window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100784372A CN100465897C (en) 2006-05-26 2006-05-26 Method and apparatus for opening window

Publications (2)

Publication Number Publication Date
CN1967484A CN1967484A (en) 2007-05-23
CN100465897C true CN100465897C (en) 2009-03-04

Family

ID=38076274

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100784372A Expired - Fee Related CN100465897C (en) 2006-05-26 2006-05-26 Method and apparatus for opening window

Country Status (1)

Country Link
CN (1) CN100465897C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385594A (en) * 2010-08-31 2012-03-21 腾讯科技(深圳)有限公司 Method and device for controlling inner cores of multi-core browser

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436339A (en) * 2011-08-17 2012-05-02 北京数码大方科技有限公司 Display control method and device for modal dialog boxes
CN102915256B (en) * 2012-03-08 2015-02-18 北京金山安全软件有限公司 Message transmission method and device under multi-core browser
CN106775631A (en) * 2016-11-18 2017-05-31 宇龙计算机通信科技(深圳)有限公司 Using deployment method, system and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250122A (en) * 1992-03-02 1993-09-28 Nec Corp Multiwindow control system
US6038588A (en) * 1997-06-30 2000-03-14 Sun Microsystems, Inc. Method and apparatus for creating and executing a progress dialog window
US6675371B1 (en) * 1999-04-30 2004-01-06 Hewlett-Packard Development Company, L.P. Java and native application window integration
CN1184578C (en) * 2001-04-27 2005-01-12 华为技术有限公司 Method for synchronously browing network pages in different windows

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05250122A (en) * 1992-03-02 1993-09-28 Nec Corp Multiwindow control system
US6038588A (en) * 1997-06-30 2000-03-14 Sun Microsystems, Inc. Method and apparatus for creating and executing a progress dialog window
US6675371B1 (en) * 1999-04-30 2004-01-06 Hewlett-Packard Development Company, L.P. Java and native application window integration
CN1184578C (en) * 2001-04-27 2005-01-12 华为技术有限公司 Method for synchronously browing network pages in different windows

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385594A (en) * 2010-08-31 2012-03-21 腾讯科技(深圳)有限公司 Method and device for controlling inner cores of multi-core browser
CN102385594B (en) * 2010-08-31 2015-09-30 腾讯科技(深圳)有限公司 The kernel control method of multi-core browser and device

Also Published As

Publication number Publication date
CN1967484A (en) 2007-05-23

Similar Documents

Publication Publication Date Title
KR101113120B1 (en) Apparatus and method to control devices using a portable terminal in a device automation system
CN103313140B (en) Television reception terminal and text information input method thereof and system, mobile terminal
CN100465897C (en) Method and apparatus for opening window
US20030122856A1 (en) Remotely controlling a computer via simulated keyboard events
WO2006099793A1 (en) A system for sending preview information in the instant messaging system and the client and method thereof
CN100521662C (en) Method and system for realizing instant communication using browsers
CN105246168A (en) Method for establishing wireless connection and related electronic devices
CN103686292A (en) Startup and shutdown method and device for intelligent electronic device
WO2004082156A3 (en) System for constraining services for a communication device
CN104660777A (en) Touch screen cellphone and function setting method for physical buttons thereof
CN105630384A (en) Method for starting application through multi-click event, and control system thereof
CN103139271A (en) System and method of controlling communication between terminals
US9164816B2 (en) System and method for exchanging information in a multimedia terminal
CN101202979B (en) Method for inter-transmitting file among mobile phones
CN102186029A (en) Television and network access method and device for same
CN101277421A (en) Equipment and plan for digital television system two-way communication
CN105867926A (en) Method and device for physical key function user defining
CN111212327A (en) Control method and device of playing equipment and storage medium
CN101888607A (en) Method for realizing mobile phone chats based on widget and mobile phone
CN112399211A (en) Operation method and convergence gateway
CN106155842A (en) A kind of data migration method and device
CN102685575A (en) Electronic equipment and television channel switching method
CN102761646A (en) System and method for command interaction correction for dual-mode phone
CN105068742B (en) The control method and intelligent watch of a kind of intelligent watch
CN101262555B (en) Method and device for calling instant messaging function with a key

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090304

Termination date: 20160526