CN101295244B - Progress bar design system and method - Google Patents

Progress bar design system and method Download PDF

Info

Publication number
CN101295244B
CN101295244B CN2007102005599A CN200710200559A CN101295244B CN 101295244 B CN101295244 B CN 101295244B CN 2007102005599 A CN2007102005599 A CN 2007102005599A CN 200710200559 A CN200710200559 A CN 200710200559A CN 101295244 B CN101295244 B CN 101295244B
Authority
CN
China
Prior art keywords
progress bar
control
progress
data
picture
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
CN2007102005599A
Other languages
Chinese (zh)
Other versions
CN101295244A (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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2007102005599A priority Critical patent/CN101295244B/en
Publication of CN101295244A publication Critical patent/CN101295244A/en
Application granted granted Critical
Publication of CN101295244B publication Critical patent/CN101295244B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a progress bar design method, comprising the steps as follows: the progress bar ActiveX is initially designed; the total mount of the data required to be processed is calculated out; the progress percentage completed by the processing is calculated according to the currently processed data mount; the foreground picture is pulled according to the calculated progress percentage so as to cover the background picture; whether the data is completely processed or not is judged; when the data is completely processed the user is prompted that all data is completely processed and the foreground picture is pulled to completely cover the background picture. The invention also provides a progress bar design system. The progress bar design method of the invention adopts a picture layer overlapping idea to carry out the progress bar design; the method is simple and the designed progress bar is beautiful and full of unique colours.

Description

Progress bar design system and method
Technical field
The present invention relates to a kind of progress bar design system and method.
Background technology
When window application is handled mass data, require the user to wait for through regular meeting, in this case, adopt the mode of progress bar usually, make the user understand the progress of data processing.
The progress bar of traditional control formula, as shown in Figure 1, its design pattern is single, and is not attractive in appearance, lets the user who waits for data processing feel dull, dull.
In addition, the deviser in the progress bar of design personalized, the method that often employing program redraws, the expansion class of in program, writing a progress bar again is respectively to each zone of control drafting of encoding.This method can realize personalized progress bar design really, but when utilizing this method design schedule bar, its encoding amount is quite big, and designer's technical capability is required quite high, carefully will not make mistakes a little.Therefore, a kind of progress bar design system and method need be provided, can realize simply, have individual character and progress bar design attractive in appearance.
Summary of the invention
In view of above content, be necessary to propose a kind of progress bar design system, can realize progress bar design simple attractive in appearance again.
In view of above content, be necessary to propose a kind of progress bar method for designing, can realize progress bar design simple attractive in appearance again.
A kind of progress bar design system, it runs in the computing machine.This system comprises: initialization module is used for the progress bar control is carried out initialization design; The progress computing module is used to calculate the data total amount of required processing, and the progress percentage of finishing dealing with is calculated; And picture pulling module, the progress percentage that is used for going out according to aforementioned calculation spurs foreground picture, makes it cover Background according to ratio.
A kind of progress bar method for designing, the method comprising the steps of: initialization design progress bar control; Calculate the data total amount of required processing; According to present treated data volume, the progress percentage of finishing dealing with is calculated; Progress percentage pulling foreground picture according to calculating makes it hide Background; Whether judgment data all disposes; And, then point out user data all to dispose if data all dispose, and the pulling foreground picture, make it cover Background fully.
Compared to prior art, the thought of progress bar design system provided by the present invention and method employing figure ply is carried out the progress bar design, and method is simple and progress bar that design is attractive in appearance, be full of personalized color.
Description of drawings
Fig. 1 is the synoptic diagram of traditional control formula progress bar.
Fig. 2 is the functional block diagram of progress bar design system preferred embodiment of the present invention.
Fig. 3 is the implementing procedure figure that in the progress bar method for designing of the present invention preferred embodiment progress bar is carried out initialization design.
Fig. 4 is the implementing procedure figure of progress bar control operation in the progress bar method for designing of the present invention preferred embodiment.
Fig. 5 is the operational effect synoptic diagram of progress bar control in the progress bar method for designing of the present invention preferred embodiment.
Embodiment
Consulting shown in Figure 2ly, is the functional block diagram of progress bar design system preferred embodiment of the present invention.Each alleged module of the present invention is each program segment that computer program is accomplished specific function, be more suitable in the implementation of description software in computing machine than program itself, so the present invention describes with module the description of software.
Progress bar design system of the present invention may operate in the personal computer, and it mainly comprises: initialization module 100, progress computing module 110, picture pulling module 120, and judge module 130.
Said initialization module 100 is used for the progress bar control is carried out initialization design.Preferred embodiment of the present invention is to adopt C Plus Plus to carry out programmed.Said initialization design comprises: prepare two big little pictures identical with the target progress bar, the form of this two pictures is the bmp form, and size is identical, and color and pattern can be selected according to user's demand voluntarily; Import above-mentioned two pictures,, can be set to IDB_FORE and IDB_BACK the resource identification of two pictures respectively as the foreground picture and the Background of progress bar control; On a dialog control, place " Static Text " control, and revise its sign (ID), make its not IDC_STATIC for giving tacit consent to; Above-mentioned " Static_Text " control is associated with the variable of a Control type; Write an expansion class, realize the pulling effect of foreground picture in the progress bar; The type of variables of above-mentioned Control type is revised as the type of above-mentioned expansion class of writing.
Said progress computing module 110 is used to calculate the data total amount of required processing, and the progress percentage of finishing dealing with is calculated.
The progress percentage that said picture pulling module 120 is used for going out according to aforementioned calculation spurs foreground picture, makes it cover Background according to ratio.
Whether said judge module 130 is used for judgment data and all disposes.
Consulting shown in Figure 3ly, is the implementing procedure figure that in the progress bar method for designing of the present invention preferred embodiment progress bar is carried out initialization design.
Step S100, user prepare two big little pictures identical with the target progress bar, and the form of this two pictures is the bmp form, and size is identical, and color and pattern can be selected according to user's demand voluntarily.
Step S101 imports above-mentioned two pictures, respectively as the foreground picture and the Background of progress bar control, can be set to IDB_FORE and IDB_BACK to the resource identification of two pictures.
Step S102 places " Static Text " control, and revises its sign (ID) on a dialog control, make its not IDC_STATIC for giving tacit consent to.
Step S103 is associated above-mentioned " Static Text " control with the variable of a Control type.
Step S104 writes an expansion class, realizes the pulling effect of foreground picture in the progress bar.
Step S105 is revised as the type of variables of above-mentioned Control type the type of above-mentioned expansion class of writing.
Consulting shown in Figure 4ly, is the implementing procedure figure of progress bar control operation in the progress bar method for designing of the present invention preferred embodiment.
Step S200, initialization module 100 is carried out the initialization design of user to the progress bar control, and this initialization design flow process is consulted shown in Figure 3.
Step S201, progress computing module 110 calculate the data total amount of required processing.
Step S202, progress computing module 110 calculates the progress percentage of finishing dealing with according to present treated data volume.
Among the step S203, picture pulling module 120 makes it hide Background according to the progress percentage pulling foreground picture that calculates
Step S204, whether judge module 130 judgment data all dispose.
If all do not dispose, then return step S202, progress computing module 110 recomputates current schedule number percent.
If data all dispose, then in step S205, picture pulling module 120 prompting user data all dispose, and the pulling foreground picture, make it cover Background fully.
Consulting shown in Figure 5ly, is the operational effect synoptic diagram of progress bar control in the progress bar method for designing of the present invention preferred embodiment.The traditional control formula progress bar among Fig. 1 of comparing; The figure ply is adopted in progress bar design among the present invention, utilizes the pullings between a plurality of figure layers to cause a kind of animation effect, and Background and foreground picture can be selected according to user's demand voluntarily; Convenient attractive in appearance, be full of personalization.

Claims (8)

1. a progress bar design system runs in the computing machine, it is characterized in that this system comprises:
Initialization module is used for the progress bar control is carried out initialization design, comprising:
Prepare two big little pictures identical with the target progress bar;
Import above-mentioned two pictures, respectively as the foreground picture and the Background of progress bar control;
The progress computing module is used to calculate the data total amount of required processing, and the progress percentage of finishing dealing with is calculated; And
Picture pulling module, the progress percentage that is used for going out according to aforementioned calculation spurs foreground picture, makes it cover Background according to ratio.
2. progress bar design system as claimed in claim 1 is characterized in that, this system also comprises:
Whether judge module is used for judgment data and all disposes.
3. progress bar design system as claimed in claim 1 is characterized in that, described initialization module also comprises the initialization design of the control of progress bar:
On a dialog control, place " Static Text " control, and revise its sign;
Above-mentioned " Static Text " control is associated with the variable of a Control type;
Write an expansion class, realize the pulling effect of foreground picture in the progress bar; And
The type of variables of above-mentioned Control type is revised as the type of above-mentioned expansion class of writing.
4. progress bar design system as claimed in claim 1 is characterized in that, the form of described picture is the bmp form.
5. progress bar method for designing is characterized in that the method comprising the steps of:
Initialization design progress bar control comprises step:
Prepare two big little pictures identical with the target progress bar;
Import above-mentioned two pictures, respectively as the foreground picture and the Background of progress bar control;
Calculate the data total amount of required processing;
According to the present data volume of deal with data, the progress percentage of finishing dealing with is calculated;
Progress percentage pulling foreground picture according to calculating makes it hide Background;
Whether judgment data all disposes; And
If data all dispose, then point out user data all to dispose, and the pulling foreground picture, make it cover Background fully.
6. progress bar method for designing as claimed in claim 5 is characterized in that, this method also comprises:
If data all do not dispose, then return the step of calculating progress percentage.
7. progress bar method for designing as claimed in claim 5 is characterized in that, described initialization design progress bar control also comprises step:
On a dialog control, place " Static Text " control, and revise its sign;
Above-mentioned " Static Text " control is associated with the variable of a Control type;
Write an expansion class, realize the pulling effect of foreground picture in the progress bar; And
The type of variables of above-mentioned Control type is revised as the type of above-mentioned expansion class of writing.
8. progress bar method for designing as claimed in claim 5 is characterized in that, the form of described picture is the bmp form.
CN2007102005599A 2007-04-29 2007-04-29 Progress bar design system and method Expired - Fee Related CN101295244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007102005599A CN101295244B (en) 2007-04-29 2007-04-29 Progress bar design system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007102005599A CN101295244B (en) 2007-04-29 2007-04-29 Progress bar design system and method

Publications (2)

Publication Number Publication Date
CN101295244A CN101295244A (en) 2008-10-29
CN101295244B true CN101295244B (en) 2012-05-30

Family

ID=40065546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007102005599A Expired - Fee Related CN101295244B (en) 2007-04-29 2007-04-29 Progress bar design system and method

Country Status (1)

Country Link
CN (1) CN101295244B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101390957B1 (en) * 2009-09-04 2014-05-02 나이키 인터내셔널 엘티디. Monitoring and tracking athletic activity
CN101888440A (en) * 2010-03-22 2010-11-17 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying information transmission progress of mobile terminal, and mobile terminal
CN102012813A (en) * 2010-11-24 2011-04-13 康佳集团股份有限公司 Implementation method for control of slider
CN103488555B (en) * 2011-04-01 2016-09-28 北京奇虎科技有限公司 Progress bar implementation method and device
CN103530145B (en) * 2011-04-01 2017-05-10 北京奇虎科技有限公司 progress bar setting method and device
CN102141953B (en) * 2011-04-01 2013-10-16 奇智软件(北京)有限公司 Method and device for showing progress bar
CN103136207B (en) * 2011-11-23 2018-09-04 腾讯科技(深圳)有限公司 A kind of Multi-image browsing reminding method and device
CN103136089B (en) * 2011-11-25 2016-08-17 腾讯科技(深圳)有限公司 A kind of progress bar display packing and device
CN103513856B (en) * 2012-06-28 2017-08-25 腾讯科技(深圳)有限公司 The method and apparatus of refresh page
CN103853569B (en) * 2012-12-04 2017-03-08 腾讯科技(深圳)有限公司 A kind of method and apparatus of display incremental update progress
CN110851213B (en) 2016-09-23 2024-01-30 华为机器有限公司 Information display method and terminal
CN106484432B (en) * 2016-11-01 2023-10-31 武汉斗鱼网络科技有限公司 Progress bar customization method and device and progress bar
CN106990951B (en) * 2017-02-22 2020-04-17 福建天泉教育科技有限公司 Method and system for drawing progress bar
CN109213548B (en) * 2017-06-29 2022-02-08 武汉斗鱼网络科技有限公司 Method and device for controlling progress bar
CN113867857A (en) * 2021-09-06 2021-12-31 贵阳语玩科技有限公司 Progress bar display method, device and equipment based on Android system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0499353A2 (en) * 1991-01-31 1992-08-19 Hewlett-Packard Company Iconic method of showing progress toward an oscilloscope's target number of waveform averages
JP2000032200A (en) * 1998-07-14 2000-01-28 Seiko Epson Corp Management device, its controlling method and recording medium
CN1395171A (en) * 2001-07-06 2003-02-05 华为技术有限公司 Code statistical tool of computer software program and its implementing method
CN1755641A (en) * 2004-10-01 2006-04-05 三星电子株式会社 The method that is used for the state of display process data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0499353A2 (en) * 1991-01-31 1992-08-19 Hewlett-Packard Company Iconic method of showing progress toward an oscilloscope's target number of waveform averages
JP2000032200A (en) * 1998-07-14 2000-01-28 Seiko Epson Corp Management device, its controlling method and recording medium
CN1395171A (en) * 2001-07-06 2003-02-05 华为技术有限公司 Code statistical tool of computer software program and its implementing method
CN1755641A (en) * 2004-10-01 2006-04-05 三星电子株式会社 The method that is used for the state of display process data

Also Published As

Publication number Publication date
CN101295244A (en) 2008-10-29

Similar Documents

Publication Publication Date Title
CN101295244B (en) Progress bar design system and method
KR101554292B1 (en) Input Method Editor User Profiles
CN104885041B (en) The progress of handwriting input is shown
CN106681593A (en) Display control method and device for user interface UI control
CN102402453B (en) System virtual machine for microprocessor without interlocked piped stages (MIPS) platform
EP1766567A4 (en) System and method for developing animated visualization interfaces
CN101377738B (en) Method for implementing page turning of electric document
CN105339889B (en) The technology that language translation for computer application localizes
CN109408786B (en) Intelligent novel auxiliary creation system
CN107992304A (en) A kind of method and apparatus for generating display interface
CN105404512B (en) A kind of application window interface change method and device
CN106373570A (en) Voice control method and terminal
CN102307208A (en) Cloud-computing-based virtual machine running control device and running control method thereof
CN104808986A (en) Intelligent terminal desktop customization method and device
CN106777036A (en) A kind of data rendering method and data render system
CN103218120A (en) Method for quickly unlocking application program of android terminal
CN103677841A (en) IETM code generation method and device based on element-level template
CN106293758A (en) The method and apparatus that a kind of Web application interface changes skin
CN101127980A (en) Layout method for standby interface of mobile terminal
US9753544B2 (en) Korean character input apparatus and method using touch screen
CN102662662A (en) Embedded graphics interface generation system and method
WO2016201813A1 (en) Dynamic layout method and system based on android
CN104345877B (en) The method and electronic equipment of a kind of information processing
CN105241011A (en) Air conditioner group control system development device and method
Park et al. Study on Arduino Kit VR contents modularization based on virtualization technology in software education field

Legal Events

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

Granted publication date: 20120530

Termination date: 20140429