CN103902165B - The method and apparatus for realizing menu background - Google Patents
The method and apparatus for realizing menu background Download PDFInfo
- Publication number
- CN103902165B CN103902165B CN201210581388.XA CN201210581388A CN103902165B CN 103902165 B CN103902165 B CN 103902165B CN 201210581388 A CN201210581388 A CN 201210581388A CN 103902165 B CN103902165 B CN 103902165B
- Authority
- CN
- China
- Prior art keywords
- background
- menu
- background picture
- picture
- current
- Prior art date
Links
- 230000000875 corresponding Effects 0.000 claims abstract description 29
- 238000010422 painting Methods 0.000 claims description 5
- 241000699666 Mus <mouse, genus> Species 0.000 description 7
- 238000010586 diagrams Methods 0.000 description 3
- 230000003068 static Effects 0.000 description 2
- 239000012141 concentrates Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive Effects 0.000 description 1
- 238000000034 methods Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006011 modification reactions Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000006467 substitution reactions Methods 0.000 description 1
Abstract
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and apparatus for realizing menu background.
Background technology
With the continuous improvement of computer hardware performance, the UI of various softwares has been driven(User Interface, Yong Hujie Face)The innovation of technology.Especially in terms of user mutual UI, various friendly interaction UI emerge in an endless stream, and pass through this friendly friendship Mutual UI, substantially increases the quality of software.In existing various interactive UI, most of technology and application all concentrate on software In displaying in terms of overall interface and control, and it often have ignored the optimization at menu background interface.
The existing method for realizing menu background is as follows:Menu background is set to static images form, or transparent form.
However, during the present invention is realized, inventor has found that prior art at least has problems with:
Existing that menu background simply is set into static images form, or transparent form, menu background is single.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of method and dress for realizing menu background Put.The technical scheme is as follows:
On the one hand there is provided a kind of method for realizing menu background, methods described includes:
Receive the information for selecting menu option in a menu;
Default menu option and background picture configuration file are inquired about, multiple back ofs the body corresponding with the menu option selected are obtained Scape picture;
According to default time interval and order, the multiple background picture is illustrated on menu background successively.
On the other hand there is provided a kind of device for realizing menu background, described device includes:
Receiving module, the information of menu option is selected for receiving in a menu;
Enquiry module, for after the receiving module receives the information of selection menu option in a menu, inquiry to be default Menu option and background picture configuration file, obtain multiple background pictures corresponding with the menu option of selection;
Display module, for after the enquiry module obtains the corresponding multiple background pictures of menu option with selecting, According to default time interval and order, the multiple background picture is illustrated on menu background successively.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
It is corresponding many by the menu option for obtaining with selecting after the information of selection menu option in a menu is received Individual background picture, according to default time interval and order, multiple background pictures are illustrated on menu background successively so that When choosing different menu options, it is possible to achieve different dynamic menu backgrounds so that menu background variation.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow diagram for realizing menu background that the embodiment of the present invention one is provided;
Fig. 2 is a kind of method flow diagram for realizing menu background that the embodiment of the present invention two is provided;
Fig. 3 is a kind of apparatus structure schematic diagram for realizing menu background that the embodiment of the present invention three is provided.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of method for realizing menu background, referring to Fig. 1, this method includes:
101:Receive the information for selecting menu option in a menu.
102:Default menu option and background picture configuration file are inquired about, obtains corresponding many with the menu option selected Individual background picture.
103:According to default time interval and order, multiple background pictures are illustrated on menu background successively.
Preferably, the information for selecting menu option in a menu is received, including:
Obtain the information that mouse moves into any menu option in menu.
Preferably, according to default time interval and order, multiple background pictures are illustrated on menu background successively, wrapped Include:
The first frame background picture in multiple background pictures is set to current background picture;
Current background picture is shown on menu background;
Judge whether the displaying time span of current background picture reaches default time span value;
Whether if reached, it is last frame background picture to judge current background picture;
If it is not, then the next frame background picture of current background picture is set into current background picture, then perform The step of current background picture being shown on menu background.
Preferably, after judging current background picture and whether being last frame background picture, in addition to:
If it is, performing the step that the first frame background picture in multiple background pictures is set to current background picture Suddenly.
Preferably, show that current background picture includes on menu background:
By way of painting certainly, by current background picture presentation on menu background.
The method for realizing menu background described in the embodiment of the present invention, is receiving the letter of selection menu option in a menu To be many according to default time interval and order by obtaining multiple background pictures corresponding with the menu option of selection after breath Individual background picture is illustrated on menu background successively so that when choosing different menu options, it is possible to achieve different dynamics Menu background so that menu background variation.
Embodiment two
The embodiments of the invention provide a kind of method for realizing menu background, referring to Fig. 2, this method includes:
201:Judge whether to receive the information for selecting menu option in a menu, if received, perform 202;It is no Then, terminate.
Specifically, when user is selected from the menu menu option, correspondingly, it can be received by modes such as mouse, keyboards The information of menu option is selected in a menu, including:
Obtain the information that mouse moves into any menu option in menu.
Specifically, the coordinate moved into according to the coordinate of the menu option of each in menu, mouse, it can be determined that go out mouse tool What body was moved into is which of menu menu option, so as to learn which menu option is selected.
202:Default menu option and background picture configuration file are inquired about, obtains corresponding many with the menu option selected Individual background picture.
Specifically, the mode of configuration file can be used, the corresponding background picture of each menu option is configured.Configuration file Configuration content include:The corresponding background picture of each menu option, the path of background picture, the exhibition method of background picture Deng.Wherein, between the displaying order of the exhibition method of background picture including background picture, and time between each background picture Every.
Wherein, multiple background pictures corresponding with each menu option, can be that each object is carried out to be continuously shot Parsed to or to existing animation.Wherein, background picture can be Gif(Graphics Interchange Format, graphic interchange format)、JPEG(Joint Photographic Experts Group, joint figure As expert group) etc. various forms.
203:The first frame background picture in multiple background pictures is set to current background picture.
204:Current background picture is shown on menu background.
Specifically, when showing current background picture on menu background, it can be realized by way of painting certainly, with Layout and each action of menu background are realized based on Windows windows.
Specifically, can be by using GDI(Graphics Device Interface, GDI)+ parse With each background picture of displaying.
205:Judge whether the displaying time span of current background picture reaches default time span value, if reached, Then perform 206;Otherwise, 204 are performed.
Specifically, the displaying time span of each background picture(That is, default time span value), i.e., every 2 Backgrounds Time interval between piece, can be configured according to practical application situation, such as could be arranged to 100us, 50us.
Specifically, it can control whether displaying time span reaches the default time by using thread or timer Length value.When such as using thread, a thread can be set for each background picture, each thread is used to show corresponding background Picture, sets the displaying time span of corresponding background picture in each thread.
206:Whether judge current background picture is last frame background picture in multiple background pictures, if it is, Perform 203;Otherwise, 207 are performed.
207:The next frame background picture of current background picture is set to current background picture, 204 are then performed.
It should be noted that the use habit in order to not change user, the behaviour of other basic operations, such as various mouses Response of work, keyboard direction and shortcut etc., imitates the mode of operation of the original menus of Windows completely.
The method for realizing menu background described in the embodiment of the present invention, is receiving the letter of selection menu option in a menu To be many according to default time interval and order by obtaining multiple background pictures corresponding with the menu option of selection after breath Individual background picture is illustrated on menu background successively so that when choosing different menu options, it is possible to achieve different dynamics Menu background so that menu background variation.
Embodiment three
Referring to Fig. 3, the embodiments of the invention provide a kind of device for realizing menu background, it is characterised in that the device bag Include:
Receiving module 301, the information of menu option is selected for receiving in a menu;
Enquiry module 302, for after receiving module 301 receives the information of selection menu option in a menu, inquiry to be pre- If menu option and background picture configuration file, obtain multiple background pictures corresponding with the menu option of selection;
Display module 303, for obtaining multiple background pictures corresponding with the menu option selected in enquiry module 302 Afterwards, according to default time interval and order, multiple background pictures are illustrated on menu background successively.
Preferably, the receiving module 301 includes:
Acquiring unit, the information of any menu option in menu is moved into for obtaining mouse.
Preferably, the display module 303 includes:
First setting unit, for after multiple background pictures corresponding with the menu option of selection are obtained, by multiple back ofs the body The first frame background picture in scape picture is set to current background picture;
Display unit, for being set to the first frame background picture in multiple background pictures currently in the first setting unit After background picture, current background picture is shown on menu background;
First judging unit, for after display unit shows current background picture on menu background, judging the current back of the body Whether the displaying time span of scape picture reaches default time span value;
Second judging unit, for being to reach in the judged result of the first judging unit, then judges that current background picture is No is last frame background picture;
Second setting unit, for being in the judged result of the second judging unit, then by under current background picture One frame background picture is set to current background picture, then notifies display unit is performed to show current background figure on menu background The step of piece.
Preferably, the display module 303 also includes:
Notification unit, for being then to notify the first setting unit is performed will be many in the judged result of the second judging unit The step of the first frame background picture in individual background picture is set to current background picture.
Preferably, display unit includes:
Subelement is shown, for the first frame background picture in multiple background pictures being set in the first setting unit to work as After preceding background picture, by way of painting certainly, by current background picture presentation on menu background.
The device for realizing menu background described in the embodiment of the present invention, is receiving the letter of selection menu option in a menu To be many according to default time interval and order by obtaining multiple background pictures corresponding with the menu option of selection after breath Individual background picture is illustrated on menu background successively so that when choosing different menu options, it is possible to achieve different dynamics Menu background so that menu background variation.
It should be noted that:The device for realizing menu background of above-described embodiment offer is in triggering intelligent network service, only With the division progress of above-mentioned each functional module for example, in practical application, can as needed and by above-mentioned functions distribution by Different functional modules is completed, i.e., the internal structure of equipment is divided into different functional modules, described above complete to complete Portion or partial function.In addition, above-described embodiment provide realize the device of menu background and realize that the method for menu background is real Apply example and belong to same design, it implements process and refers to embodiment of the method, repeats no more here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210581388.XA CN103902165B (en) | 2012-12-27 | 2012-12-27 | The method and apparatus for realizing menu background |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210581388.XA CN103902165B (en) | 2012-12-27 | 2012-12-27 | The method and apparatus for realizing menu background |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103902165A CN103902165A (en) | 2014-07-02 |
CN103902165B true CN103902165B (en) | 2017-08-01 |
Family
ID=50993516
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210581388.XA CN103902165B (en) | 2012-12-27 | 2012-12-27 | The method and apparatus for realizing menu background |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103902165B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9547425B2 (en) | 2012-05-09 | 2017-01-17 | Apple Inc. | Context-specific user interfaces |
US10304347B2 (en) | 2012-05-09 | 2019-05-28 | Apple Inc. | Exercised-based watch face and complications |
US10613743B2 (en) | 2012-05-09 | 2020-04-07 | Apple Inc. | User interface for receiving user input |
US9459781B2 (en) | 2012-05-09 | 2016-10-04 | Apple Inc. | Context-specific user interfaces for displaying animated sequences |
CN106462340B (en) | 2014-06-27 | 2019-09-13 | 苹果公司 | The user interface that size reduces |
DE112015003083T5 (en) * | 2014-08-02 | 2017-05-11 | Apple Inc. | Context-specific user interfaces |
US10452253B2 (en) | 2014-08-15 | 2019-10-22 | Apple Inc. | Weather user interface |
US10254948B2 (en) | 2014-09-02 | 2019-04-09 | Apple Inc. | Reduced-size user interfaces for dynamically updated application overviews |
CN106797415A (en) | 2014-09-02 | 2017-05-31 | 苹果公司 | Telephone user interface |
US10055121B2 (en) | 2015-03-07 | 2018-08-21 | Apple Inc. | Activity based thresholds and feedbacks |
WO2016144385A1 (en) | 2015-03-08 | 2016-09-15 | Apple Inc. | Sharing user-configurable graphical constructs |
US9916075B2 (en) | 2015-06-05 | 2018-03-13 | Apple Inc. | Formatting content for a reduced-size user interface |
DK201770423A1 (en) | 2016-06-11 | 2018-01-15 | Apple Inc | Activity and workout updates |
DK179412B1 (en) | 2017-05-12 | 2018-06-06 | Apple Inc | Context-Specific User Interfaces |
US20200356063A1 (en) | 2019-05-06 | 2020-11-12 | Apple Inc. | Clock faces for an electronic device |
US10852905B1 (en) | 2019-09-09 | 2020-12-01 | Apple Inc. | Techniques for managing display usage |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201260228Y (en) * | 2008-08-06 | 2009-06-17 | 青岛海信移动通信技术股份有限公司 | Mobile terminal |
WO2009101937A1 (en) * | 2008-02-12 | 2009-08-20 | Sharp Kabushiki Kaisha | Content display processing device, content display processing method, and content display processing program |
CN102439558A (en) * | 2009-05-19 | 2012-05-02 | 三星电子株式会社 | Mobile device and method for editing pages used for a home screen |
CN102541528A (en) * | 2010-12-29 | 2012-07-04 | 北京新媒传信科技有限公司 | Menu creating method and device |
-
2012
- 2012-12-27 CN CN201210581388.XA patent/CN103902165B/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009101937A1 (en) * | 2008-02-12 | 2009-08-20 | Sharp Kabushiki Kaisha | Content display processing device, content display processing method, and content display processing program |
CN201260228Y (en) * | 2008-08-06 | 2009-06-17 | 青岛海信移动通信技术股份有限公司 | Mobile terminal |
CN102439558A (en) * | 2009-05-19 | 2012-05-02 | 三星电子株式会社 | Mobile device and method for editing pages used for a home screen |
CN102541528A (en) * | 2010-12-29 | 2012-07-04 | 北京新媒传信科技有限公司 | Menu creating method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103902165A (en) | 2014-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107797657B (en) | For generating equipment, method and the graphic user interface of tactile output | |
CN108139863B (en) | For with the equipment, method and graphic user interface of feedback are provided during strength sensitive button interaction | |
CN104903835B (en) | For abandoning equipment, method and the graphic user interface of generation tactile output for more contact gestures | |
US10101846B2 (en) | Systems, methods, and computer-readable media for managing collaboration on a virtual work of art | |
EP2605129B1 (en) | Method of rendering a user interface | |
US9075631B2 (en) | Method of rendering a user interface | |
EP2584464B1 (en) | Method of rendering a user interface | |
CN103473027B (en) | A kind of communicating terminal split screen multi-task interaction method and communicating terminal | |
Leganchuk et al. | Manual and cognitive benefits of two-handed input: an experimental study | |
CN103034406B (en) | Method and apparatus for the operating function in touching device | |
CA2792900C (en) | Method of rendering a user interface | |
US8952991B1 (en) | Selective zoom response behavior in computing systems | |
US5784056A (en) | System and method for temporally varying pointer icons | |
KR20150127254A (en) | Device, method, and graphical user interface for adjusting the appearance of a control | |
AU2004227740B2 (en) | A windowing and controlling system thereof comprising a computer device | |
CN101606124B (en) | Multi-window managing device, program, storage medium, and information processing device | |
CN102957809B (en) | Method for optimizing application programs on intelligent mobile phone | |
JP2014059911A (en) | Content development and distribution using cognitive science database | |
KR20140057160A (en) | Encoding dynamic haptic effects | |
CN106951176A (en) | Electronic touch communicates | |
EP2344944B1 (en) | Painting user controls | |
Hinckley et al. | Input/Output Devices and Interaction Techniques. | |
CN103246638B (en) | A kind of information stickup method and apparatus | |
EP2245612B1 (en) | Device and method for providing tactile information | |
CN109791702A (en) | Head portrait creation and editor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080 Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A room 602 Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. |