CN102662666B - A kind of creation method of interface menu and device - Google Patents

A kind of creation method of interface menu and device Download PDF

Info

Publication number
CN102662666B
CN102662666B CN201210090953.2A CN201210090953A CN102662666B CN 102662666 B CN102662666 B CN 102662666B CN 201210090953 A CN201210090953 A CN 201210090953A CN 102662666 B CN102662666 B CN 102662666B
Authority
CN
China
Prior art keywords
submenu
data
function
menu
bar
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
CN201210090953.2A
Other languages
Chinese (zh)
Other versions
CN102662666A (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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210090953.2A priority Critical patent/CN102662666B/en
Publication of CN102662666A publication Critical patent/CN102662666A/en
Application granted granted Critical
Publication of CN102662666B publication Critical patent/CN102662666B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

This application provides a kind of creation method and device of interface menu, can not meet consumers' demand to solve menu in prior art, the problem that user's result of use is poor.Described method comprises: in menu bar, add at least one menu item; At least one behavior submenu in described menu item is set; Initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof; To arrange in described submenu at least one is classified as a function bar; For described function bar, from submenu data, search the functional entrance data of at least one function described; According to descriptor, the width on regulatory function hurdle and/or the height of submenu of the described functional entrance data found.The application can according to the descriptor of described functional entrance data, the width on regulatory function hurdle and/or the height of submenu, optimizes the display effect of submenu data.

Description

A kind of creation method of interface menu and device
Technical field
The application relates to menu technique, particularly relates to a kind of creation method and device of interface menu.
Background technology
The design and implimentation technology of menu is a kind of technology conventional in the software of Windows, all comprises menu in the software of most Windows.Menu item is the available options of row, and user can perform corresponding operation easily by menu.
Usually show immediately preceding the below of header line at the window Chinese food single file of an application program, this menu is capable to be also referred to as " master menu " or " top menu ".Wherein, the menu item normally pull-down menu of described top menu, is also called " pop-up menu ".A menu item can comprise several " submenus ", and namely can define the pop-up menu of multinest, the project on pop-up menu can access another pop-up menu.
Usually we see that what show in every a line in menu item is that icon adds word content, or display is that word content adds shortcut, this is because when creating menu mode menu, the size of menu, form are fixing, namely every a line of menu item and the size of each row are fixing, and have fixing columns in each menu item, specify simultaneously each row shown by content.Therefore can only according to the corresponding content of menu style configuration set when creating menu, such as, the first row in menu item can only configure icons, and secondary series can only configured letters, and the font of described word, color are also fixing.
But along with the development of computer technology, user's request is diversity more and more, menu is more and more many, and content is more and more detailed, and form is fixed, single menu can not be met consumers' demand, and user's result of use is poor.Such as, if preserve web page address in the collection menu of browser, the site title of this webpage is long, because the size of a line every in menu is fixing, therefore there will be in a line and cannot show denominative situation, user can be made cannot to understand the effect of this web page address completely, and result of use is poor.
Summary of the invention
This application provides a kind of creation method and device of interface menu, can not meet consumers' demand to solve menu in prior art, the problem that user's result of use is poor.
In order to solve the problem, this application discloses a kind of creation method of interface menu hurdle, comprising:
At least one menu item is added in menu bar;
At least one behavior submenu in described menu item is set;
Initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof;
To arrange in described submenu at least one is classified as a function bar;
For described function bar, from submenu data, search the functional entrance data of at least one function described;
According to descriptor, the width on regulatory function hurdle and/or the height of submenu of the described functional entrance data found.
Preferably, the function of function bar comprises: display icon, display word, Show Picture and at least one in the Show Button.
Preferably, the method for the described width on regulatory function hurdle and/or the height of submenu comprises:
Obtain width and the height of at least one menu item in menu bar;
Obtain the resolution of screen and the size of interfaces windows;
According to preset adjustment ratio, regulate the display mode of at least one menu item described.
Preferably, the display mode of described menu item comprises:
Scroll bar is loaded, at least one submenu described in roll display in menu item.
Preferably, the display mode of described menu item comprises:
Scroll bar is loaded, at least one function bar described in roll display in menu item.
Preferably, it is characterized in that, the descriptor of described functional entrance data is site title, then the method for the described width on regulatory function hurdle and/or the height of submenu comprises:
Pre-determine the optimization display mode of site title, and preserve configuration information corresponding to site title;
During submenu display site title, from described site title, read corresponding optimization according to configuration information and show data;
Load described optimization display data in submenu, with the height of the width on regulatory function hurdle and/or submenu.
Preferably, described submenu is used for storage network page address, and the function of at least one function bar described is automatically log in,
Then described method of searching the functional entrance data of at least one function described from submenu data comprises:
Search described submenu data, comprise if confirm the data automatically logged in, then add corresponding login banner;
And add login user name and password to described login banner as functional entrance data.
Preferably, extract the web page address stored in a menu in a period of time, and recommend corresponding Internet resources by analyzing described web page address.
Preferably, the function of the function bar in described submenu is pre-set.
Preferably, described initialization submenu, the step obtaining submenu data comprises:
Send submenu request to network side, and obtain the function bar data submenu from network side;
And/or,
The function bar data in submenu are obtained from the submenu data that this locality is preserved.
Accordingly, disclosed herein as well is a kind of creation apparatus of interface menu hurdle, comprising:
Add module, for adding at least one menu item in menu bar;
First arranges module, for arranging at least one behavior submenu in described menu bar;
Data acquisition module, for initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof;
Second arranges module, is classified as a function bar for arrange in described submenu at least one,
Data search module, for for described function bar, searches the functional entrance data of at least one function described from submenu data;
Adjustment module, for descriptor, the width on regulatory function hurdle and/or the height of submenu according to the described functional entrance data found.
Preferably, the function of function bar comprises: display icon, display word, Show Picture and at least one in the Show Button.
Preferably, described adjustment module, also comprises:
First obtains submodule, for obtaining width and the height of at least one menu item in menu bar;
Second obtains submodule, for the size of the resolution and interfaces windows that obtain screen;
Regulate submodule, for according to preset adjustment ratio, regulate the display mode of at least one menu item described.
Preferably, described adjustment submodule comprises:
First display unit, for loading scroll bar in menu item, at least one submenu described in roll display.
Preferably, described adjustment submodule comprises:
Second display unit, for loading scroll bar in menu item, at least one function bar described in roll display.
Preferably, it is characterized in that, the descriptor of described functional entrance data is site title, and described adjustment module, comprising:
Preserve submodule, for the optimization display mode of predefined site title, and preserve configuration information corresponding to site title;
Reading submodule, during for submenu display site title, reads corresponding optimization according to configuration information and shows data from described site title;
Loading and display sub-module, showing data in submenu, with the height of the width on regulatory function hurdle and/or submenu for loading described optimizations.
Preferably, described submenu is used for storage network page address, and the function of at least one function bar described is automatically log in, and described data search module, comprising:
Search submodule, for searching described submenu data, comprising if confirm the data automatically logged in, then adding corresponding login banner;
Add submodule, for adding login user name and password to described login banner as functional entrance data.
Preferably, described device also comprises:
Extracting and analysis module, for extracting the web page address stored in a menu in a period of time, and recommending corresponding Internet resources by analyzing described web page address.
Preferably, described device also comprises:
Function setting module, for pre-setting the function of the function bar in described submenu.
Preferably, described data acquisition module, comprising:
Network Capture submodule, for sending submenu request to network side, and obtains the function bar data submenu from network side;
Local obtain submodule, for obtaining the function bar data in submenu in the submenu data of preserving from this locality.
Compared with prior art, the application comprises following advantage:
First, the application adds at least one menu item in menu bar, at least one behavior submenu in described menu bar is set, initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof.To arrange in described submenu at least one is classified as a function bar, for described function bar, the functional entrance data of at least one function described are searched, according to descriptor, the width on regulatory function hurdle and/or the height of submenu of the described functional entrance data found from submenu data.The application can according to the descriptor of described functional entrance data, the width on regulatory function hurdle and/or the height of submenu, optimizes the display effect of submenu data.
Secondly, in the application, the size of menu and form can be arranged, and the row, column number of its menu item can be arranged, and size can be arranged, and content can be arranged, and can meet the various demands of user.And every content of the menu display that the application creates is clear, and user's result of use is relatively good.
Again, the application according to the size of the resolution of screen and interfaces windows, can regulate the display mode of at least one menu item described in master menu.One loads scroll bar in menu item, at least one submenu described in roll display, such as, if submenu is many in certain menu item, beyond the height of screen or interfaces windows, then can take the mode of roll display.Another kind loads scroll bar in menu item, at least one function bar described in roll display, such as, if the content of certain function bar is long in menu item, all cannot show, also can take the mode of roll display.The menu that the application creates can according to the size of resolution and interfaces windows, intelligence, changes display mode flexibly, and user is very easy to use.
Again, when the content that the application shows in submenu is site title, sometimes site title is long, and the assorted opinion of content is without chapter, now can according to the optimization display mode of predefined site title, extract data corresponding in site title, show described site title to optimize display mode.Present application addresses site title long, and content is mixed, opinion is without the problem of chapter, can clear, succinctly, intuitively show site title to user, user can understand the main contents of this website easily.
Again, acquisition methods for described submenu data in the application is very flexible, can obtain from network, namely submenu request is sent to network side, and obtain the function bar data submenu from network side, or directly obtain from this locality, from the submenu data that this locality is preserved, namely obtain the function bar data in submenu, both can certainly obtain from network, obtain from this locality again.
Accompanying drawing explanation
Fig. 1 is the creation method process flow diagram of a kind of interface menu described in the embodiment of the present application;
Fig. 2 is the creation method process flow diagram of a kind of interface menu described in the application's preferred embodiment;
Fig. 3 is the method flow diagram of the display mode regulating menu item described in the embodiment of the present application;
Fig. 4 is the process flow diagram of the optimization display mode of site title described in the embodiment of the present application;
Fig. 5 is the creation apparatus structural drawing of a kind of interface menu described in the embodiment of the present application.
Embodiment
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
The design and implimentation technology of menu is a kind of technology conventional in the software of Windows, all comprises menu in the software of most Windows.
Prior art is when creating menu mode menu, and the size of menu, form are fixing, and namely size of every a line of menu item and each row is fixing, and has fixing columns in each menu item, specifies each content shown by row simultaneously.
But along with the development of computer technology, user's request is diversity more and more, menu is more and more many, and content is more and more detailed, and form is fixed, single menu can not be met consumers' demand, and user's result of use is poor.
In the application, the size of menu and form can be arranged, and the row, column number of its menu item can be arranged, and size can be arranged, and content can be arranged, and can meet the various demands of user.And every content of the menu display that the application creates is clear, and user's result of use is relatively good.Lower mask body is discussed:
With reference to Fig. 1, give the creation method process flow diagram of a kind of interface menu described in the embodiment of the present application.
Step 11, adds at least one menu item in menu bar;
When creating interface menu hurdle, first to add at least one menu item and name respectively in menu bar.
Such as, add 4 menu items at interface master menu, respectively called after file, view, window and help.
Step 12, arranges at least one behavior submenu in described menu item;
For each menu item, can using a line in menu item as a submenu, described submenu is used for the particular content in display menu item, and such as, described menu item is collection, then what show in each submenu can be the webpage collected.
Step 13, initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof;
Then can submenu described in initialization, from database, obtain submenu data.Wherein, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof.
Wherein, described functional entrance data are the data realizing described function, and described descriptor is the data describing described function.Such as, submenu data are the collection data in collection, then functional entrance data can be web page addresses, described webpage can be logged in by described web page address, corresponding descriptor can be web page title, can describing the function of this webpage, can see A video as logged in this webpage.
Step 14, to arrange in described submenu at least one is classified as a function bar;
For each menu item, using row in menu item as a function bar, such as, the function bar in collection can the content such as icon, web page title of website, display web page place.
Step 15, for described function bar, searches the functional entrance data of at least one function described from submenu data;
After getting described submenu data, described submenu data can be loaded to corresponding function bar, corresponding functional entrance data and descriptor corresponding to described functional entrance data can be loaded in described function bar.
Such as, to the first function bar value-added tax function entry data of submenu 1, i.e. web page address: http://www.xx1.com, the so corresponding descriptor that can load correspondence in described first function bar, i.e. web page title: xx1 net.
For described function bar, then from submenu, at least search the functional entrance data of a function and descriptor corresponding to described functional entrance data.
Such as, web page address can be searched from the function bar of submenu: http://www.xx1.com, and the web page title of correspondence: xx1 net.
Step 16, according to descriptor, the width on regulatory function hurdle and/or the height of submenu of the described functional entrance data found.
Then can according to the descriptor of the described functional entrance data found, the width on regulatory function hurdle, or regulate the height of submenu, or simultaneously regulatory function hurdle width and regulate the height of submenu.Such as, the first function bar display web page title in submenu 1, the second function bar display web page icon, usual web page title is long, therefore can wider by the width adjusting of the first function bar, and Web page icon is usually smaller, therefore can narrow by the width adjusting of the second function bar.
In sum, the application adds at least one menu item in menu bar, at least one behavior submenu in described menu bar is set, initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof.To arrange in described submenu at least one is classified as a function bar, for described function bar, the functional entrance data of at least one function described are searched, according to descriptor, the width on regulatory function hurdle and/or the height of submenu of the described functional entrance data found from submenu data.The application can according to the descriptor of described functional entrance data, the width on regulatory function hurdle and/or the height of submenu, optimizes the display effect of submenu data.
Preferably, the function of described function bar comprises: display icon, display word, Show Picture and at least one in the Show Button.
Below in conjunction with a kind of method in concrete enforcement, tell about the constructive process of menu.
With reference to Fig. 2, give the creation method process flow diagram of a kind of interface menu described in the application's preferred embodiment.
Step 201, creates several menu items in page master menu;
The method used can be: 1. create first menu item; 2. create second menu item; 3. create the 3rd menu item; 4. creative management menu item; 5. create help menu item.
Menu pointer can be added at UI root node pointer, for identifying it for menu simultaneously.
Below, for wherein the 3rd menu item, the constructive process of menu item is described.
Step 202, to interface master menu and menu item name;
Such as, to the above-mentioned the 3rd menu item name, wherein said method can be, name to menu.
Step 203, the picture resource in configuration menu;
1, the picture resource of the scroll bar that menu may occur can be set, as scroll bar background, down arrows picture etc.;
2, the Background of menu can be set.
Step 204, the function of each function bar in choice menus item;
Each row ladies and gentlemen function bar in menu item, the function that can arrange each function bar of menu item is display icon, and display word, Show Picture, the Show Button etc., such as, menu item has 5 row.
Step 205, arranges the width of each function bar;
Step 206, arranges the height of each submenu;
In menu item, every a line is as a submenu, can arrange the height of each submenu, concrete implements, and each submenu can be arranged to same height, also can the difference of content to import of general layout, and arranges different height.
Step 207, initialization submenu, and from database, read submenu data;
Step 208, for each function bar, searches corresponding performance data and loads from submenu data.
Such as, when submenu is collection first, initialization submenu:
Wherein, the implementation procedure of submenu is as follows:
1. first read data, initialization will be carried out according to the data read to menu item afterwards;
2. read data, initialization:
1) if this supports automatically to log in, then lightning icon is added;
2) Web page icon is read;
3) according to word, pictorial information initialization menu items such as icon, page title, user names;
4) contextual information of menu item is set, corresponding menu item can be got according to id and account number name.
Wherein, if the website stored needs to be logged in by log-on message, then can when setting up the menu item of collection, arrange a function bar for display lightning icon, when loading data, if detect, the Data support in database logs in automatically, then can load lightning icon, otherwise, namely detect that the data in database do not support automatic login, then do not need to load lightning icon.
The data of described contextual information corresponding to submenu, but in reality is implemented, whether the application does not limit it and shows.Such as, can load lightning icon when above-mentioned support logs in automatically, the log-on message needed when wherein automatically logging in is contextual information, but can not show in submenu.
Wherein, master menu has a menu handle, and each pop-up menu also has its menu handle, and described menu handle is for identifying it for menu.
Each menu has three characteristics.First characteristic what shows in menu, and it can be character string or bitmap.Second characteristic is the menu ID that in WM_COMMAND message, Windows sends to program, or the menu handle of pop-up menu of the Windows display when user's choice menus item.3rd characteristic is the attribute of menu item, comprises whether disabled, ineffective treatment or selected.
Lower mask body introduces operable method in the establishment of a kind of interface menu.
One, realize the class for representing each row (function bar) in menu item, such is for representing the row in menu item.In current menu interface realizes, each row can be display word, Show Picture, and width can free setting.The important method realized is as described below:
(1) setting value;
(2) set, read col width.
Two, realize menu item type, such is for representing a menu item.Each menu item is made up of multiple menu bar.The important method realized is as described below:
(1) context of menu item is set;
(2) user's string is set.
Three, realize menu class, such is for representing a master menu.Master menu is made up of multiple menu item.The important method realized is as described below:
(1) height of setting and reading menu item;
(2) index of menu item is obtained;
(3) menu item is deleted;
(4) menu is created;
(5) menu item is increased.
Four, realize the struct building menu bar, adopt the mould plate technique in C++, can build to easy and flexible the menu item of different pattern.
In sum, in the application, the size of menu and form can be arranged, and the row, column number of its menu item can be arranged, and size can be arranged, and content can be arranged, and can meet the various demands of user.And every content of the menu display that the application creates is clear, and user's result of use is relatively good.
In actual use, the different equipment that different user may use, the display of the equipment that such as user 1 uses is 17 cun, the display of the equipment that user 2 uses is 11 cun, the application is for the different problem of size of display, devise the method that can change menu size according to size of display, specific as follows:
Preferably, the method for the described width on regulatory function hurdle and/or the height of submenu comprises:
With reference to Fig. 3, give the method flow diagram of the display mode regulating menu item described in the embodiment of the present application.
Step 301, obtains width and the height of at least one menu item in menu bar;
According to the size of screen resolution and menu, the display of adjustment menu, first, obtains width and the height of menu.
Step 302, obtains the resolution of screen and the size of interfaces windows;
Such as, obtain the vertical resolution of screen, obtain the size of window, the horizontal resolution of screen can certainly be obtained.
Step 303, according to preset adjustment ratio, regulates the display mode of at least one menu item described;
According to the position of specific ratio setting displaying interface.
Step 304, loads scroll bar in menu item, at least one submenu described in roll display;
If submenu is long in menu item, such as, exceed the vertical resolution of screen, or exceeded the size of interface main window, just can load scroll bar in menu item, each submenu of roll display.
Step 305, loads scroll bar in menu item, at least one function bar described in roll display.
If the content in menu item in certain function bar is long, such as, exceed the horizontal resolution of screen, or exceeded the size of interface main window, just can load scroll bar in menu item, the content in this function bar of roll display.
If the function bar certainly in certain submenu is many, also can each function bar in submenu described in roll display.
In sum, the application according to the size of the resolution of screen and interfaces windows, can regulate the display mode of at least one menu item described in master menu.One loads scroll bar in menu item, at least one submenu described in roll display, such as, if submenu is many in certain menu item, beyond the height of screen or interfaces windows, then can take the mode of roll display.Another kind loads scroll bar in menu item, at least one function bar described in roll display, such as, if the content of certain function bar is long in menu item, all cannot show, also can take the mode of roll display.The menu that the application creates can according to the size of resolution and interfaces windows, intelligence, changes display mode flexibly, and user is very easy to use.
For when store website title, the situation that title content is long sometimes, present applicant proposes a kind of method, when the content shown in submenu is site title, takes the mode optimized to show, specific as follows:
Preferably, the descriptor of described functional entrance data is site title, then the method for the described width on regulatory function hurdle and/or the height of submenu comprises:
With reference to Fig. 4, give the process flow diagram of the optimization display mode of site title described in the embodiment of the present application.
Step 401, pre-determines the optimization display mode of site title, and preserves configuration information corresponding to site title;
The optimization display mode of site title can be pre-determined, and preserve configuration information corresponding to site title.
Such as in the function bar of display site title, add scroll bar, allow long site title roll display.
And for example, described site title can be carried out segmentation display, such as the descriptor of the first function bar display is main web site title, as xx video, the descriptor of the second function bar display is website icon, and the descriptor of the 3rd function bar display is the first detail content, as TV play, the descriptor of the 4th function bar display is the second detail data, as aa-the 1st collects.
Step 402, during submenu display site title, reads corresponding optimization according to configuration information and shows data from described site title;
Step 403, loads described optimization display data in submenu, with the height of the width on regulatory function hurdle and/or submenu.
During submenu display site title, described configuration information can be read, and then from described site title, read corresponding optimization according to the needs of configuration information and show data, and be loaded in submenu, with the height of the width on regulatory function hurdle and/or submenu.
If such as roll display just can the width on preset function hurdle, then show.If segmentation display, then according to the difference of the descriptor of each function bar, can come the width on regulatory function hurdle and/or the height of submenu.
Such as:
1, by investigating and run the optimization display Name of the hundreds of home Web site obtaining commonly using, and configuration file is saved as with specific format;
2, these site titles optimized are loaded in program;
3, the content of respective field is read;
4, according to rule match site title.
In sum, when the content that the application shows in submenu is site title, sometimes site title is long, and the assorted opinion of content is without chapter, now can according to the optimization display mode of predefined site title, extract data corresponding in site title, show described site title to optimize display mode.Present application addresses site title long, and content is mixed, opinion is without the problem of chapter, can clear, succinctly, intuitively show site title to user, user can understand the main contents of this website easily.
Preferably, described submenu is used for storage network page address, and the function of at least one function bar described is automatically log in,
In step 15, described method of searching the functional entrance data of at least one function described from submenu data comprises:
Step 151, searches described submenu data, comprises the data automatically logged in, then add corresponding login banner if confirm;
Step 152, and add login user name and password to described login banner as functional entrance data.
If described submenu is used for storage network page address, and the function of at least one function bar is automatically log in, then can search described submenu data, if comprise the data automatically logged in described submenu data, then can add corresponding login banner in described function bar, lightning icon as escribed above.Then can using log-on message as functional entrance data, described login banner, as username and password etc., now can be regarded as descriptor corresponding to described functional entrance data by described log-on message.
Certainly, for same web page address, user may organize log-on message more, multiple function bar now can be used to show described log-on message, also a function bar can be used to show described log-on message, now drop-down button can be set in described function bar, show in the submenu that described drop-down button is corresponding and often organize log-on message.
Preferably, extract the web page address stored in a menu in a period of time, and recommend corresponding Internet resources by analyzing described web page address.
The application can also extract the web page address stored in a menu in a period of time, then recommends corresponding Internet resources by analyzing described web page address.
Such as, in described web page address, 50% is the web page address of shopping class website, then can recommend corresponding shopping advertisement for user, or the plug-in unit etc. of Network Bank security; If 70% is the web page address of software download class website in web page address, then can recommend some software or plug-in units etc. for user.
Preferably, the function of the function bar in described submenu is pre-set.
In the application, independently can arrange the number (i.e. the columns of menu item) of function bar, and select the function of each function bar, such as first function bar display word, second function bar display icon, the 3rd function bar Shows Picture.
Preferably, described initialization submenu, the step obtaining submenu data comprises:
Send submenu request to network side, and obtain the function bar data submenu from network side;
And/or,
The function bar data in submenu are obtained from the submenu data that this locality is preserved.
Acquisition methods for described submenu data in the application is very flexible, can obtain from network, namely submenu request is sent to network side, and obtain the function bar data submenu from network side, or directly obtain from this locality, namely from the submenu data that this locality is preserved, obtain the function bar data in submenu, both can certainly obtain from network, and obtain from this locality again.
This application provides a kind of main interface menu generation technique easy-to-use flexibly, this technology all supports row display, different-format display, the display of icon spelling words intellectual in every a line at main interface, single to solve traditional Windows menu pattern, fixing defect.The application can also according to the resolution of display simultaneously, Data Entry, and the position also intelligence generation scroll bar of the information intelligent determination menus such as display position, solves the defect that traditional Windows menu cannot adjust menu according to the specification of display device.Website name display in this application for website is optimized process, can show clear, succinctly, site title intuitively, the length for heading solving the originating website is long, not easily identification, rambling defect.
Wherein a kind of implementation of interface menu is the interface database based on DirectUI, the application achieve a kind of on window dynamically, graphing and the word high-level interface technology that is for simulating traditional dish single file flexibly, complexity, menu interface changeable, attractive in appearance can be developed light, convenient, efficiently.
Wherein, DirectUI is the general designation of a class interface actualizing technology, mean and directly on parent window, draw (Paint on parent dc directly), namely subwindow does not create (windowless) with the form of window handle, be window in logic, be plotted on parent window.The benefit of DirectUI is very easily by interface and logical separation, to build efficient, gorgeous, be highly susceptible to the interface expanded.
With reference to Fig. 5, give the creation apparatus structural drawing of a kind of interface menu described in the embodiment of the present application.
Accordingly, present invention also provides a kind of creation apparatus of interface menu, comprising: module 11, first arranges module 12, data acquisition module 13, second arranges module 14, data search module 15 and adjustment module 16 in interpolation, wherein:
Add module 11, for adding at least one menu item in menu bar;
First arranges module 12, for arranging at least one behavior submenu in described menu bar;
Data acquisition module 13, for initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof;
Second arranges module 14, is classified as a function bar for arrange in described submenu at least one,
Data search module 16, for for described function bar, searches the functional entrance data of at least one function described from submenu data;
Adjustment module 17, for descriptor, the width on regulatory function hurdle and/or the height of submenu according to the described functional entrance data found.
Wherein, the function of described function bar comprises: display icon, display word, Show Picture and at least one in the Show Button.
Preferably, described adjustment module 17 comprises:
First obtains submodule 171, for obtaining width and the height of at least one menu item in menu bar;
Second obtains submodule 172, for the size of the resolution and interfaces windows that obtain screen;
Regulate submodule 173, for according to preset adjustment ratio, regulate the display mode of at least one menu item described.
Described adjustment submodule 173 comprises:
First display unit 1731, for loading scroll bar in menu item, at least one submenu described in roll display.
Second display unit 1732, for loading scroll bar in menu item, at least one function bar described in roll display.
The descriptor of described functional entrance data is site title, and described adjustment module 17, comprising:
Preserve submodule 174, for the optimization display mode of predefined site title, and preserve the configuration information of corresponding site title;
Reading submodule 175, during for submenu display site title, reads corresponding optimization according to configuration information and shows data from described site title;
Loading and display sub-module 176, showing data in submenu, with the height of the width on regulatory function hurdle and/or submenu for loading described optimizations.
Preferably, described submenu is used for storage network page address, and the function of at least one function bar described is automatically log in, and described data search module 16, comprising:
Search submodule 161, for searching described submenu data, comprising if confirm the data automatically logged in, then adding corresponding login banner;
Add submodule 162, for adding login user name and password to described login banner as functional entrance data.
Preferably, described device also comprises:
Extracting and analysis module 18, for extracting the web page address stored in a menu in a period of time, and recommending corresponding Internet resources by analyzing described web page address.
Preferably, described device also comprises:
Function setting module 15, for pre-setting the function of the function bar in described submenu.
Preferably, described data acquisition module 13, comprising:
Network Capture submodule 131, for sending submenu request to network side, and obtains the function bar data submenu from network side;
Local obtain submodule 132, for obtaining the function bar data in submenu in the submenu data of preserving from this locality.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment comprising described key element and also there is other identical element.
Above to creation method and the device of a kind of interface menu that the application provides, be described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (14)

1. the creation method on interface menu hurdle, is characterized in that, comprising:
At least one menu item is added in menu bar;
At least one behavior submenu in described menu item is set;
Initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof, wherein, described functional entrance data are the data realizing described function, and described descriptor is the data describing described function;
To arrange in described submenu at least one is classified as a function bar;
For described function bar, from submenu data, search the functional entrance data of at least one function described;
According to the descriptor of the described functional entrance data found, the width on regulatory function hurdle and/or the height of submenu;
Wherein, the step of the described width on regulatory function hurdle and/or the height of submenu comprises: the width and the height that obtain at least one menu item in menu bar; Obtain the resolution of screen and the size of interfaces windows; According to preset adjustment ratio, regulate the display mode of at least one menu item described; Scroll bar is loaded, roll display at least one submenu in menu item; Scroll bar is loaded, at least one function bar of roll display in menu item.
2. method according to claim 1, is characterized in that, the function of function bar comprises: display icon, display word, Show Picture and at least one in the Show Button.
3. method according to claim 1 and 2, is characterized in that, the descriptor of described functional entrance data is site title, then the method for the described width on regulatory function hurdle and/or the height of submenu comprises:
Pre-determine the optimization display mode of site title, and preserve configuration information corresponding to site title;
During submenu display site title, from described site title, read corresponding optimization according to configuration information and show data;
Load described optimization display data in submenu, with the height of the width on regulatory function hurdle and/or submenu.
4. method according to claim 1, is characterized in that, described submenu is used for storage network page address, and the function of at least one function bar described is automatically log in,
Then described method of searching the functional entrance data of at least one function described from submenu data comprises:
Search described submenu data, comprise if confirm the data automatically logged in, then add corresponding login banner;
And add login user name and password to described login banner as functional entrance data.
5. method according to claim 4, is characterized in that, also comprises:
Extract the web page address stored in a menu in a period of time, and recommend corresponding Internet resources by analyzing described web page address.
6. method according to claim 1, is characterized in that, comprises further: the function pre-setting the function bar in described submenu.
7. method according to claim 1, is characterized in that, described initialization submenu, and the step obtaining submenu data comprises:
Send submenu request to network side, and obtain the function bar data submenu from network side;
And/or,
The function bar data in submenu are obtained from the submenu data that this locality is preserved.
8. the creation apparatus on interface menu hurdle, is characterized in that, comprising:
Add module, for adding at least one menu item in menu bar;
First arranges module, for arranging at least one behavior submenu in described menu bar;
Data acquisition module, for initialization submenu, obtain submenu data, described submenu data comprise the functional entrance data of at least one function in function bar and the descriptor of correspondence thereof, wherein, described functional entrance data are the data realizing described function, and described descriptor is the data describing described function;
Second arranges module, is classified as a function bar for arrange in described submenu at least one,
Data search module, for for described function bar, searches the functional entrance data of at least one function described from submenu data;
Adjustment module, for the descriptor according to the described functional entrance data found, the width on regulatory function hurdle and/or the height of submenu;
Described adjustment module, comprising: first obtains submodule, for obtaining width and the height of at least one menu item in menu bar; Second obtains submodule, for the size of the resolution and interfaces windows that obtain screen; Regulate submodule, for according to preset adjustment ratio, regulate the display mode of at least one menu item described; Described adjustment submodule comprises: the first display unit, for loading scroll bar in menu item, and roll display at least one submenu; Second display unit, for loading scroll bar in menu item, at least one function bar of roll display.
9. device according to claim 8, is characterized in that, the function of function bar comprises: display icon, display word, Show Picture and at least one in the Show Button.
10. according to Claim 8 or 9 arbitrary described devices, it is characterized in that, the descriptor of described functional entrance data is site title, and described adjustment module, comprising:
Preserve submodule, for the optimization display mode of predefined site title, and preserve configuration information corresponding to site title;
Reading submodule, during for submenu display site title, reads corresponding optimization according to configuration information and shows data from described site title;
Loading and display sub-module, showing data in submenu, with the height of the width on regulatory function hurdle and/or submenu for loading described optimizations.
11. devices according to claim 8, is characterized in that, described submenu is used for storage network page address, and the function of at least one function bar described is automatically log in, and described data search module, comprising:
Search submodule, for searching described submenu data, comprising if confirm the data automatically logged in, then adding corresponding login banner;
Add submodule, for adding login user name and password to described login banner as functional entrance data.
12. devices according to claim 11, is characterized in that, also comprise:
Extracting and analysis module, for extracting the web page address stored in a menu in a period of time, and recommending corresponding Internet resources by analyzing described web page address.
13. devices according to claim 8, is characterized in that, also comprise:
Function setting module, for pre-setting the function of the function bar in described submenu.
14. devices according to claim 8, is characterized in that, described data acquisition module, comprising:
Network Capture submodule, for sending submenu request to network side, and obtains the function bar data submenu from network side;
Local obtain submodule, for obtaining the function bar data in submenu in the submenu data of preserving from this locality.
CN201210090953.2A 2012-03-30 2012-03-30 A kind of creation method of interface menu and device Expired - Fee Related CN102662666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210090953.2A CN102662666B (en) 2012-03-30 2012-03-30 A kind of creation method of interface menu and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210090953.2A CN102662666B (en) 2012-03-30 2012-03-30 A kind of creation method of interface menu and device

Publications (2)

Publication Number Publication Date
CN102662666A CN102662666A (en) 2012-09-12
CN102662666B true CN102662666B (en) 2015-09-16

Family

ID=46772167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210090953.2A Expired - Fee Related CN102662666B (en) 2012-03-30 2012-03-30 A kind of creation method of interface menu and device

Country Status (1)

Country Link
CN (1) CN102662666B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970427B (en) * 2013-02-04 2018-07-24 腾讯科技(深圳)有限公司 The method for refreshing and device of Webpage
CN104346139A (en) * 2013-07-26 2015-02-11 镇江雅迅软件有限责任公司 Method for dynamically managing system function module in real time
CN104020933B (en) * 2014-05-22 2017-11-07 小米科技有限责任公司 menu display method and device
CN105511736A (en) * 2015-12-04 2016-04-20 中国建设银行股份有限公司 Method and system for adjusting menus
CN106919596B (en) * 2015-12-25 2021-03-23 北京奇虎科技有限公司 Information recommendation method and device
CN106326364A (en) * 2016-08-10 2017-01-11 无锡天脉聚源传媒科技有限公司 Method and device for adding resources in micro website
CN107765955A (en) * 2016-08-15 2018-03-06 南京中兴软件有限责任公司 Drop-down menu display methods, device, component and application based on component
CN109407918A (en) * 2018-09-25 2019-03-01 苏州梦想人软件科技有限公司 The implementation method of augmented reality content multistage interactive mode
CN113722024A (en) * 2020-05-25 2021-11-30 华为技术有限公司 Method and apparatus for managing user interface display of storage device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246754C (en) * 1999-08-31 2006-03-22 索尼公司 Information processing device and method, and program storage medium
CN101546248A (en) * 2009-05-05 2009-09-30 阿里巴巴集团控股有限公司 Method and device for presenting cascade option menu

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1246754C (en) * 1999-08-31 2006-03-22 索尼公司 Information processing device and method, and program storage medium
CN101546248A (en) * 2009-05-05 2009-09-30 阿里巴巴集团控股有限公司 Method and device for presenting cascade option menu

Also Published As

Publication number Publication date
CN102662666A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102662666B (en) A kind of creation method of interface menu and device
US10956531B2 (en) Dynamic generation of mobile web experience
CN112506493B (en) Table configuration method, device, equipment and medium based on vue
US10503806B2 (en) Extracting a portion of a document, such as a web page
US10542123B2 (en) System and method for generating and monitoring feedback of a published webpage as implemented on a remote client
CN103336836B (en) Page search method and page search device
US20180046637A1 (en) Uniquely identifying and tracking selectable web page objects
JP6662872B2 (en) System and method for providing transaction object information on web page
KR102110700B1 (en) Mobile user interface
US20110219321A1 (en) Web-based control using integrated control interface having dynamic hit zones
US8156448B2 (en) Site navigation and site navigation data source
CN103034518B (en) The method and browser of loading browser control instrument
US20090083661A1 (en) System and method for selectively displaying web page elements
CN102968451B (en) The browser form page loads method and the client of website data
US9886175B1 (en) Adaptive and special user interface modes
CN101539912A (en) Method for browsing webpages by tree browser
US20120110499A1 (en) Virtualized layouts
KR101340588B1 (en) Method and apparatus for comprising webpage
CN104899212B (en) Web page display method, server and system
CN110968813A (en) Index page display method and device
CN105868225A (en) Data query method, client, server and system
CN110546633A (en) Named entity based category tag addition for documents
US9575617B1 (en) Navigation payload injection
CN104182226B (en) A kind of General Mobile information system adaptation method and device
US9558047B1 (en) Navigation payload detection

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BEIJING QIHU TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20121030

Owner name: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20121030

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100016 CHAOYANG, BEIJING TO: 100088 XICHENG, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20121030

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant after: Beijing Qihu Technology Co., Ltd.

Applicant after: Qizhi Software (Beijing) Co., Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

Applicant before: Qizhi Software (Beijing) Co., Ltd.

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: 20150916

Termination date: 20210330