Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
In the embodiment of the present invention main program can be it is any can support the application program of subprogram, for example:Page type
Application program, the application program of player types, the application program of the application program of type of play or security type etc..
And target subprogram can be any subprogram that can be run on main program.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of window display method provided in an embodiment of the present invention, such as Fig. 1 institutes
Show, comprise the following steps:
S101, the idsplay order for receiving display information for display target subprogram.
Optionally, above-mentioned idsplay order can include the display information of target subprogram working as in main program with any
Instruction in front window.For example:The instruction of user's input or the instruction of main program oneself generation.In addition, above-mentioned display information
The information of required display when can be target subprogram activation, for example:Need picture, word, video, the virtual key of display
Etc..
S102, the response idsplay order, obtain window parameter information corresponding with the target subprogram, according to described
The window parameter of the current window of window parameter information adjustment main program, the main program includes the target subprogram.
Above-mentioned window parameter information corresponding with target subprogram can need the display shown to believe with target subprogram
The window parameter information adapted to is ceased, for example:When target subprogram needs the display information of display excessive, above-mentioned window parameter letter
Breath can be the excessive parameter information of window size, that is, tune up the size of current window;When target subprogram needs what is shown to show
When showing that information is very few, above-mentioned window parameter information can be the too small parameter information of window size, that is, turn the chi of current window down
It is very little;When word is very few in the display information that target subprogram needs display, above-mentioned window parameter information can be window font
Excessive parameter information, that is, tune up the font in current window;It is when target subprogram needs the color of the display information shown
When green, above-mentioned window parameter information can be that window color is the parameter information of green, i.e., adjust the color of current window
For green.
The display information is shown in S103, the current window after the adjustment.
Optionally, step S103 can be existed from the local display information for obtaining target subprogram, then by the display information
Shown in current window after adjustment, i.e., the display information of target subprogram has been generated before step S103 is performed, for example:
Main program has been running for above-mentioned target subprogram before step S103 is performed, and simply the display information of target subprogram does not exist
Shown in current window, and current window is now the display information for showing another subprogram.Step S103 can also be generation
The display information of target subprogram, and will be shown in the current window of the display information after the adjustment, that is, performing step S103
The display information of target subprogram is not generated also before, for example:Main program also not actuated target before step S103 is performed
Program.
When step S103 shows above-mentioned display information in current window, i.e., the current window shows above-mentioned display information
Interface it can be understood that being user interface (User Interface, UI) interface of target subprogram.
The display information of different subprograms can be just realized by above-mentioned steps in the window of different window parameters,
So as to improve the window resource utilization of application program.In addition, while the window resource utilization of application program is improved, by
In each subprogram display information be the corresponding window parameter of the subprogram window in show, so can the subprogram
Display information most can comprehensively show, and be also to be shown in most suitable window, so experience to user is also most
Alright.
Optionally, the above method can apply to any equipment for possessing application program, for example:Tablet personal computer, hand are mechanical, electrical
Sub- reader, remote control, personal computer (Personal Computer, PC), notebook computer, mobile unit, network electricity
There is the smart machine of network function depending on, wearable device etc..
In above-mentioned technical proposal, when receiving the idsplay order for the display information of display target subprogram, institute is responded
Idsplay order is stated, window parameter information corresponding with the target subprogram is obtained, is adjusted and led according to the window parameter information
The window parameter of the current window of program, then the interior display display information of current window after the adjustment.So as to realize
The display information of different subprograms is in the window of different window parameters, so as to improve the window utilization of resources of application program
Rate.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of another window display method provided in an embodiment of the present invention, such as Fig. 2
It is shown, comprise the following steps:
S201, receive enabled instruction for starting the target subprogram.
Step S201 can receive the click commands for clicking on the icon of target subprogram in main program interface, or step
S201 can be the above-mentioned enabled instruction that main program is automatically generated, for example:Main program periodically starts above-mentioned target subprogram, or
Automatic start above-mentioned target subprogram when person's main program detects certain trigger parameter.In addition, it is to show to start target subprogram
Show the display information of target subprogram.
S202, the response enabled instruction, obtain window parameter information corresponding with the target subprogram, according to described
The window parameter of the current window of window parameter information adjustment main program, the main program includes the target subprogram.
Optionally, above-mentioned window parameter can include at least one of following:
Window size, window font and window color.
That is step S202 can be the window size for the current window for adjusting main program, or adjust the current window of main program
The window font of mouth, or adjust the window color of current window of main program etc..
Optionally, above-mentioned acquisition window parameter information corresponding with the target subprogram can include:
Window parameter is sent to server and obtains request, and the parameter acquiring request carries the mark of the target subprogram
Information;
Receive the server and respond the window parameter information that the window parameter obtains request transmission.
Wherein, server can obtain window parameter information corresponding with the target subprogram in advance, due to above-mentioned
The characteristic parameter server of target subprogram can be known a priori by, i.e., server is known a priori by the display letter of target subprogram
Breath, so that server can obtain the window parameter information being adapted to these display informations in advance.For example:Server receives user
The operation of input and the window parameter information corresponding with the target subprogram generated, or server is according to target subprogram
Display information and the window parameter information corresponding with the target subprogram that generates.
The embodiment can obtain above-mentioned parameter current information to server online, obtain more smart so as to realize
True window parameter information, because server can be the above-mentioned window parameter letter corresponding with the target subprogram of real-time update
Breath.
Optionally, it is described to obtain window parameter information corresponding with the target subprogram, it can include:
Window parameter information corresponding with the target subprogram is obtained from local.
For example:The corresponding window parameter information of each subprogram is locally previously stored with, such step S202 just can be direct
Window parameter information corresponding with the target subprogram is obtained from local.
In addition, can be locally to prestore configuration file, the configuration file can be expanded using the main use of invention
The file of markup language (Extensible Markup Language, XML) file format is opened up, the configuration file can be recorded often
The corresponding window parameter information of individual subprogram.
Optionally, it is described to obtain window parameter information corresponding with the target subprogram, it can include:
Analyzing needs the information of display in the display window, and generates the information pair for needing to show in the display window
The window parameter information answered, and it regard the window parameter information as window parameter information corresponding with the target subprogram.
For example:By analysis obtain target subprogram need show display information it is excessive when, it is possible to generate window chi
Very little excessive parameter information;By analysis obtain target subprogram need show display information it is very few when, it is possible to generate window
The undersized parameter information of mouth;By analysis obtain target subprogram need show display information in word it is very few when, just
It is the excessive parameter information of window font that can generate.
In the embodiment, it is possible to achieve generate window parameter information corresponding with the target subprogram in real time.
The display information of the target subprogram is shown in S203, the current window after the adjustment.
Optionally, methods described can also comprise the following steps:
The enabled instruction is responded, the target process of the target subprogram is generated, wherein, the display letter of target subprogram
Breath includes the display information of the target process.
Above-mentioned target process can be the process for carrying target subprogram.In addition, the display information of target process can
To be equal to the display information of target subprogram.
In the embodiment, above-mentioned acquisition window parameter information corresponding with the target subprogram, according to the window
The window parameter of the current window of parameter information adjustment main program, can include:
Window parameter information corresponding with the target subprogram is obtained by the UI processes being pre-created, and described in
UI processes adjust the window parameter of the current window of main program according to the window parameter information;
Step S203 shows the display information in the current window after the adjustment, can include:
The display of the target process is shown in the current window after the adjustment using the UI Process flowcharts
Information.
Wherein, the above-mentioned UI processes being pre-created can when operationally stating main program, be created for the main program
UI processes, in addition, the UI processes can be used for the window parameter and display content, i.e. UI processes for managing the current window of main program
It can be used for the user interface for controlling main program.
The corresponding event that target subprogram is completed by target process can be realized in the embodiment, and adjusts current window
The display information that mouth and display target are carried out all is realized by UI processes, and different events are so completed by different processes, so that
Execution efficiency is improved, furthermore it is possible to avoid causing the problem of all event handlings fail because a certain process malfunctions.
It should be noted that main program is in operation before step S201 is performed.
In above-mentioned technical proposal, the embodiment of plurality of optional is added on the basis of one embodiment, and all may be used
To realize the utilization rate for providing window resource.
Referring to Fig. 3, Fig. 3 is the schematic flow sheet of another window display method provided in an embodiment of the present invention, such as Fig. 3
It is shown, comprise the following steps:
S301, receive the display information that display is currently needed for for the display information of the target subprogram to be switched to
Switching command.
For example:Main program has been running for many sub- journeys including above-mentioned target subprogram before step S301
Sequence, and the current window of main program is the display information for showing another subprogram before step S301, so works as step
When S301 receives the out code for closing the corresponding subprogram of display information shown in current window, and show in current window
After the corresponding subprogram of display information shown is closed, when the display information of target subprogram can be shown, then the out code can
To be above-mentioned switching command.Or when receiving the click commands for the icon for clicking on target subprogram, and the click commands can
The display information of target subprogram is switched to the display information for being currently needed for display to trigger, then the out code can be
Above-mentioned click commands.
S302, the response switching command, obtain window parameter information corresponding with the target subprogram, according to described
The window parameter of the current window of window parameter information adjustment main program, the main program includes the target subprogram.
Optionally, above-mentioned window parameter can include at least one of following:
Window size, window font and window color.
That is step S302 can be the window size for the current window for adjusting main program, or adjust the current window of main program
The window font of mouth, or adjust the window color of current window of main program etc..
Optionally, above-mentioned acquisition window parameter information corresponding with the target subprogram can include:
Window parameter is sent to server and obtains request, and the parameter acquiring request carries the mark of the target subprogram
Information;
Receive the server and respond the window parameter information that the window parameter obtains request transmission.
Wherein, server can obtain window parameter information corresponding with the target subprogram in advance, due to above-mentioned
The characteristic parameter server of target subprogram can be known a priori by, i.e., server is known a priori by the display letter of target subprogram
Breath, so that server can obtain the window parameter information being adapted to these display informations in advance.For example:Server receives user
The operation of input and the window parameter information corresponding with the target subprogram generated, or server is according to target subprogram
Display information and the window parameter information corresponding with the target subprogram that generates.
The embodiment can obtain above-mentioned parameter current information to server online, obtain more smart so as to realize
True window parameter information, because server can be the above-mentioned window parameter letter corresponding with the target subprogram of real-time update
Breath.
Optionally, it is described to obtain window parameter information corresponding with the target subprogram, it can include:
Window parameter information corresponding with the target subprogram is obtained from local.
For example:The corresponding window parameter information of each subprogram is locally previously stored with, such step S202 just can be direct
Window parameter information corresponding with the target subprogram is obtained from local.
Optionally, it is described to obtain window parameter information corresponding with the target subprogram, it can include:
Analyzing needs the information of display in the display window, and generates the information pair for needing to show in the display window
The window parameter information answered, and it regard the window parameter information as window parameter information corresponding with the target subprogram.
For example:By analysis obtain target subprogram need show display information it is excessive when, it is possible to generate window chi
Very little excessive parameter information;By analysis obtain target subprogram need show display information it is very few when, it is possible to generate window
The undersized parameter information of mouth;By analysis obtain target subprogram need show display information in word it is very few when, just
It is the excessive parameter information of window font that can generate.
In the embodiment, it is possible to achieve generate window parameter information corresponding with the target subprogram in real time.
The display information is shown in S303, the current window after the adjustment.
It should be noted that main program is in operation before step S301 is performed.
In above-mentioned technical proposal, the embodiment of plurality of optional is added on the basis of one embodiment, and all may be used
To realize the utilization rate for providing window resource.
Referring to Fig. 4, Fig. 4 is the schematic flow sheet of another window display method provided in an embodiment of the present invention, this reality
Game application scene of the example with the inventive method in applicable multiple application scenarios is applied to be illustrated, certainly, this reality
Apply the applicable application scenarios of example and can also be page application scenarios or player application scene, such as browser opens multiple pages
Face, player application plays multiple videos.As shown in figure 4, this method may include steps of:
S401, the enabled instruction for receiving startup target pages game, respond the enabled instruction and create the target pages
The target process of game.
Wherein, target pages game can be any a page game in Internet technical field, and page game is also
It can be understood as web game.In addition, above-mentioned target process can be the process for carrying target pages game, such as:
Grender processes.
S402, UI process obtain the display size for being best suitable for target pages game from the configuration file being pre-configured with.
Wherein, above-mentioned UI processes can be the UI processes of QQGame, for example:Game processes.Wherein, QQGame can be with
It is a client software for being used for carrying carbon game, QQGame can concentrate in together the page game of various styles,
Facilitate player according to the different page game of the hobby selection of oneself to play.
In addition, in the embodiment, QQGame uses page game one process of correspondence, each page game
Process be independent, it is to avoid cause QQGame to collapse because page game goes wrong in itself.
In addition, above-mentioned configuration file can be recorded using XML file format every money web game suitable display it is big
It is small.
S403, UI process adjust the size of QQGame display interface, and display target page according to the display size of acquisition
The interface of face game.
Can be for page game products different in the market, according to the big of its display in above-mentioned technical proposal
It is small, it is dynamic that QQGame interface size is set, it is to avoid because QQGame interface is too small or excessive, cause page trip display incomplete or
Display is more than needed, influences the game experiencing of player.It is most comprehensively, to be also best suitable for showing this to make the interface of presentation in front of the user
The interface of video game character, makes great efforts to build a most satisfied game atmosphere to user.
It is apparatus of the present invention embodiment below, apparatus of the present invention embodiment is used to perform the inventive method embodiment one to four
The method of realization, for convenience of description, illustrate only the part related to the embodiment of the present invention, particular technique details is not disclosed
, it refer to the embodiment of the present invention one, embodiment two, embodiment three and example IV.
Referring to Fig. 5, Fig. 5 is a kind of structural representation of window display provided in an embodiment of the present invention, such as Fig. 5 institutes
Show, including:Receiving unit 51, adjustment unit 52 and display unit 53, wherein:
Receiving unit 51, the idsplay order for receiving the display information for display target subprogram.
Optionally, above-mentioned idsplay order can include the display information of target subprogram working as in main program with any
Instruction in front window.For example:The instruction of user's input or the instruction of main program oneself generation.In addition, above-mentioned display information
The information of required display when can be target subprogram activation, for example:Need picture, word, video, the virtual key of display
Etc..
Adjustment unit 52, for responding the idsplay order, obtains window parameter letter corresponding with the target subprogram
Breath, the window parameter of the current window of main program is adjusted according to the window parameter information, and the main program includes the target
Subprogram.
Above-mentioned window parameter information corresponding with target subprogram can need the display shown to believe with target subprogram
The window parameter information adapted to is ceased, for example:When target subprogram needs the display information of display excessive, above-mentioned window parameter letter
Breath can be the excessive parameter information of window size, that is, tune up the size of current window;When target subprogram needs what is shown to show
When showing that information is very few, above-mentioned window parameter information can be the too small parameter information of window size, that is, turn the chi of current window down
It is very little;When word is very few in the display information that target subprogram needs display, above-mentioned window parameter information can be window font
Excessive parameter information, that is, tune up the font in current window;It is when target subprogram needs the color of the display information shown
When green, above-mentioned window parameter information can be that window color is the parameter information of green, i.e., adjust the color of current window
For green.
Display unit 53, for showing the display information in the current window after the adjustment.
Optionally, display unit 53 can be from the local display information for obtaining target subprogram, then by the display information
Shown in current window after the adjustment.Display unit 53 can also be the display information of generation target subprogram, and this is shown
Show display in the current window of information after the adjustment.
When display unit 53 shows above-mentioned display information in current window, i.e., the current window shows above-mentioned display letter
The interface of breath is it can be understood that be user interface (User Interface, UI) interface of target subprogram.
Optionally, above-mentioned window parameter can include at least one of following:
Window size, window font and window color.
I.e. adjustment unit 52 can be the window size for the current window for adjusting main program, or adjust the current of main program
The window font of window, or adjust the window color of current window of main program etc..
Optionally, as shown in fig. 6, adjustment unit 52 can include:
Subelement 521 is asked, for responding the idsplay order, window parameter is sent to server and obtains request, it is described
Parameter acquiring request carries the identification information of the target subprogram;
Receiving subelement 522, the window that the window parameter obtains request transmission is responded for receiving the server
Mouth parameter information;
Subelement 523 is adjusted, the window parameter of the current window for adjusting main program according to the window parameter information.
Wherein, server can obtain window parameter information corresponding with the target subprogram in advance, due to above-mentioned
The characteristic parameter server of target subprogram can be known a priori by, i.e., server is known a priori by the display letter of target subprogram
Breath, so that server can obtain the window parameter information being adapted to these display informations in advance.For example:Server receives user
The operation of input and the window parameter information corresponding with the target subprogram generated, or server is according to target subprogram
Display information and the window parameter information corresponding with the target subprogram that generates.
The embodiment can obtain above-mentioned parameter current information to server online, obtain more smart so as to realize
True window parameter information, because server can be the above-mentioned window parameter letter corresponding with the target subprogram of real-time update
Breath.
Optionally, adjustment unit 52 can be used for responding the idsplay order, be obtained and the target subprogram from local
Corresponding window parameter information, the window parameter of the current window of main program is adjusted according to the window parameter information.
For example:The corresponding window parameter information of each subprogram is locally previously stored with, such adjustment unit 52 just can be straight
Connect from local and obtain window parameter information corresponding with the target subprogram.
In addition, can be locally to prestore configuration file, the configuration file can be main using XML texts using invention
The file of part form, the configuration file can record the corresponding window parameter information of each subprogram.
Optionally, adjustment unit 52 can be used for responding the idsplay order, and analyzing needs display in the display window
Information, and generate the corresponding window parameter information of information of display needed in the display window, and the window parameter is believed
Breath adjusts the current of main program as window parameter information corresponding with the target subprogram according to the window parameter information
The window parameter of window.
For example:By analysis obtain target subprogram need show display information it is excessive when, it is possible to generate window chi
Very little excessive parameter information;By analysis obtain target subprogram need show display information it is very few when, it is possible to generate window
The undersized parameter information of mouth;By analysis obtain target subprogram need show display information in word it is very few when, just
It is the excessive parameter information of window font that can generate.
In the embodiment, it is possible to achieve generate window parameter information corresponding with the target subprogram in real time.
Optionally, receiving unit 51 can be used for receiving the enabled instruction for being used for starting the target subprogram.
For example:Receiving unit 51 can receive the click commands for clicking on the icon of target subprogram in main program interface,
Or receiving unit 51 can be the above-mentioned enabled instruction that main program is automatically generated, for example:Main program periodically starts above-mentioned mesh
Mark subprogram, or main program automatic start above-mentioned target subprogram when detecting certain trigger parameter.In addition, starting target
Program is the display information of meeting display target subprogram.
In the embodiment, as shown in fig. 7, described device can also include:
Creating unit 54, for responding the enabled instruction, generates the target process of the target subprogram, the display
Information includes the display information of the target process;
Adjustment unit 52 can be used for obtaining window corresponding with the target subprogram by the UI processes being pre-created
Parameter information, and utilize window parameter of the UI processes according to the current window of window parameter information adjustment main program;
Display unit 53 can be used for showing in the current window after the adjustment using the UI Process flowcharts
The display information of the target process.
The corresponding event that target subprogram is completed by target process can be realized in the embodiment, and adjusts current window
The display information that mouth and display target are carried out all is realized by UI processes, and different events are so completed by different processes, so that
Execution efficiency is improved, furthermore it is possible to avoid causing the problem of all event handlings fail because a certain process malfunctions.
Optionally, receiving unit 51, which can be used for receiving, is used to switch to the display information of the target subprogram currently
Need the switching command of the display information of display.
For example:Main program has been running for including above-mentioned target subprogram before receiving unit 51 receives switching command
Multiple subprograms inside, and the current window of main program is to show another before receiving unit 51 receives switching command
The display information of subprogram, so when receiving unit 51 receives the corresponding sub- journey of display information closed and shown in current window
During the out code of sequence, and after the corresponding subprogram of the display information of display is closed in current window, the display of target subprogram
When information can be shown, then the out code can be above-mentioned switching command.Or when the figure for receiving click target subprogram
During target click commands, and the click commands can trigger to switch to the display information of target subprogram and be currently needed for display
Display information, then the out code can be above-mentioned click commands.
The display information of different subprograms can be just realized by said units in the window of different window parameters,
So as to improve the window resource utilization of application program.In addition, while the window resource utilization of application program is improved, by
In each subprogram display information be the corresponding window parameter of the subprogram window in show, so can the subprogram
Display information most can comprehensively show, and be also to be shown in most suitable window, so experience to user is also most
Alright.
Optionally, said apparatus can apply to any equipment for possessing application program, for example:Tablet personal computer, hand are mechanical, electrical
Sub- reader, remote control, personal computer (Personal Computer, PC), notebook computer, mobile unit, network electricity
There is the smart machine of network function depending on, wearable device etc..
In above-mentioned technical proposal, when receiving the idsplay order for the display information of display target subprogram, institute is responded
Idsplay order is stated, window parameter information corresponding with the target subprogram is obtained, is adjusted and led according to the window parameter information
The window parameter of the current window of program, then the interior display display information of current window after the adjustment.So as to realize
The display information of different subprograms is in the window of different window parameters, so as to improve the window utilization of resources of application program
Rate.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, abbreviation RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.