CN101950238A - Method for displaying document transmission progress and system - Google Patents
Method for displaying document transmission progress and system Download PDFInfo
- Publication number
- CN101950238A CN101950238A CN2010102825922A CN201010282592A CN101950238A CN 101950238 A CN101950238 A CN 101950238A CN 2010102825922 A CN2010102825922 A CN 2010102825922A CN 201010282592 A CN201010282592 A CN 201010282592A CN 101950238 A CN101950238 A CN 101950238A
- Authority
- CN
- China
- Prior art keywords
- progress
- file
- display object
- progress display
- progress 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.)
- Granted
Links
Images
Abstract
The invention discloses a method for displaying document transmission progress, comprising the following steps: generating a document transmission task ID at the time of transmitting a document; creating a document transmission progress display object, and identifying the progress display object by utilizing the ID; drawing the progress bar of a document to be transmitted in the progress display object; and inserting the progress display object which is subject to progress bar drawing into a window area for display. The invention also discloses a system for display document transmission progress, comprising an ID generation module, a module for creating a progress display object, a module for drawing a progress bar, a module for displaying a progress bar and a module for calculating transmission progress. The display for the progress bar of the invention does not occupy additional window area, thereby greatly improving the interaction of a user interface and the user experience.
Description
Technical field
The present invention relates to file transmission technique field in the network service, particularly a kind of file transfer progress display packing.
Background technology
Computer networking technology is the product that the communication technology combines with computer technology.In recent years, computer network communication has more and more important position in daily life, the user can be the exchanging of the enterprising style of writing word of computer network, sound and video, shared file, picture and video information etc., thereby user friendly life, working and learning.Carry out in the process of communication exchange at the network that uses a computer, the file transfer between is a kind of very common very basic activity mutually, also is the mode of very important a kind of shared information.File transfer is more directly perceived, faster, more real-time than Email, and the file size of transmission also has the restriction of size unlike e-mail attachment.As seen, file transfer is very substantially also to be unusual important function in computer network communication.And in the process of file transfer, how well to show the transmission progress that file is current, bringing better experience of user is good problem to study.
The transmission progress of showing file at present has two kinds of main implementations:
First kind of implementation is the normal pace bar control of placing the Windows system on the window container control, shows transmission progress number percent in real time according to the file transfer progress, though realize that simply its outward appearance is simple and crude, poor user experience.
Second kind of implementation uses no window (being windowless) technology, but also is to place no window progress bar control (being so-called windowless control) on the window container control.No window progress bar control uses from painting technology, so user experience is good, but because be not the standard control of Windows system, so need oneself exploitation.
In addition, these two kinds of schemes also have a total shortcoming, all to be placed on one independently on the window container control because show the progress bar control of file transfer progress exactly, so all can take the part in session window zone, cause interface element crowded, if user-interface design gets bad, can cause very poor user experience.
Summary of the invention
(1) technical matters that will solve
The technical problem to be solved in the present invention is: in document transmission process as why not take the progress bar that shows transmission progress under the situation of window area arrangement space on window area.
(2) technical scheme
For achieving the above object, the invention provides a kind of file transfer progress display packing, may further comprise the steps:
S1: when transfer files, spanned file transformation task ID;
S2: create file transfer progress display object, identify described progress display object with described ID;
S3: the progress bar of in described progress display object, drawing file to be transmitted;
S4: the progress display object behind the described drafting progress bar is inserted into window area shows.
Wherein, described step S3 is specially:
Fileinfo in the file transmission task and progress bar rendering parameter are delivered to described progress display object, the progress display object is drawn the file transfer progress bar according to described fileinfo and progress bar rendering parameter, described fileinfo comprises: the creation-time of file name, file size, file icon and file, described progress bar rendering parameter comprises: the width of font name, font size and progress bar that text message, the rendering text on Tip information, background color, prospect textcolor, the progress bar is required and height.
Wherein, adopt the mode of no window to draw during described drafting progress bar.
Wherein, also comprise step after the described step S4:
In document transmission process, calculate the transmission progress data, and give the progress display object that has with the identical ID of file transmission task, to upgrade the demonstration of progress bar this transmission progress data transfer according to file size and the file size transmitted.
Wherein, described progress display object is the OLE control.
Wherein, described window area is the session window message region of the RichEdit establishment of Windows.
The present invention also provides a kind of file transfer progress display system, comprising:
The ID generation module is used for when transfer files, spanned file transformation task ID;
Progress display object creation module is used to create file transfer progress display object, identifies described progress display object with described ID;
The progress bar drafting module is used for the progress bar at described progress display object drafting file to be transmitted;
The progress bar display module is used for that the progress display object behind the described drafting progress bar is inserted into window area and shows.
Wherein, also comprise:
The transmission progress computing module, be used for calculating the transmission progress data according to file size and the file size transmitted in document transmission process, and give the progress display object have with the identical ID of file transmission task with this transmission progress data transfer, to upgrade the demonstration of progress bar.
(3) beneficial effect
The present invention adopts the display object of OLE control as progress bar, and the no window rendering technique of employing, make the demonstration of progress bar additionally not take window area (not with the progress bar layout to the window container control), greatly improved the interactivity and the user experience of user interface.
Description of drawings
Fig. 1 is a kind of file transfer progress display packing process flow diagram of the embodiment of the invention;
Fig. 2 is a kind of file transfer progress display system architectures synoptic diagram of the embodiment of the invention.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used to illustrate the present invention, but are not used for limiting the scope of the invention.
The present invention uses another brand-new mode, promptly utilize The Component Object Model (COM, Component Object Model) technology and object linking and embedding (OLE, ObjectLinking and Embedding) technology, in the message area of session window, show the file transfer progress, can use no window from painting technology, additionally not take window area again.
As shown in Figure 1, be a kind of file transfer progress display packing process flow diagram of the embodiment of the invention.
Step S101, when transfer files, spanned file transformation task ID, this step is distributed a unique ID sign for each file transmission task, to distinguish the transmission of different files.
Step S102 creates file transfer progress display object, and this progress display object is preferably the OLE control, identifies this progress display object with the ID of above-mentioned file transmission task, i.e. the unique corresponding progress display object of each file transmission task.
Step S103 draws the progress bar of file to be transmitted in the progress display object, be that painting canvas is drawn progress bar with the OLE control in the present embodiment promptly.Concrete steps are: fileinfo in the file transmission task and progress bar rendering parameter are delivered to the progress display object, the progress display object is drawn the file transfer progress bar according to described fileinfo and progress bar rendering parameter, during drafting, draw by outward appearance, the information of affix corresponding file again of a normal pace bar; Also can on drafting means commonly used, carry out some and change, can mix some animation effects, use more beautiful font, text color etc. such as the demonstration of progress.Wherein, fileinfo comprises: the creation-time of file name, file size, file icon and file, the progress bar rendering parameter comprises: the width of font name, font size and progress bar that text message, the rendering text on Tip information, background color, prospect textcolor, the progress bar is required and height.In concrete the application, can adjust flexibly according to actual conditions, can define more parameter to satisfy the actual needs of drawing, be not limited to above-mentioned parameter.And when drawing progress bar, adopt the drafting mode of no window (windowless) to draw no window progress bar control.
Step S104, progress display object (OLE control) behind the drafting progress bar is inserted into window area to be shown, window area is preferably the session window message region that the RichEdit of Windows creates, standard interface STDMETHOD (InsertObject) (THIS_REOBJECT FAR*lpreobject) PURE that provides by RichEdit can insert meet the OLE standard the OLE control to session window message zone with the progress displaying bar.Show that the progress of progress bar is 0 the first time of having finished progress bar this moment.
Step S105 calculates the transmission progress data according to file size and the file size transmitted in document transmission process, real time record and upgrade the size of transfer files in document transmission process, the transfer files size/file size of transmission progress data=.And give the progress display object (OLE control) have with the identical ID of file transmission task with this transmission progress data transfer, upgrade the demonstration of progress bar, to show the current file transmission progress.Up to this document end of transmission.When having a plurality of files to transmit simultaneously, the data based ID corresponding with this document transformation task of different transmission progress can be found progress display object separately, realize the progress bar display update when a plurality of files transmit simultaneously.
The present invention also provides a kind of file transfer progress display system, as shown in Figure 2, comprising:
The ID generation module is used for when transfer files, and spanned file transformation task ID particularly, passes to progress display object creation module with the information (creation-time of file name, file size, file icon and file) of this ID and file to be transmitted.
Progress display object creation module is used to create file transfer progress display object, with the progress display object of this ID sign establishment.And the parameter of file to be transmitted and progress bar rendering parameter (width of font name, font size and progress bar that text message, the rendering text on Tip information, background color, prospect textcolor, the progress bar is required and height) passed to the progress bar drafting module.
The progress bar drafting module is used for the progress bar at progress display object drafting file to be transmitted, specifically according to above-mentioned fileinfo and progress bar rendering parameter, draws progress bar with no window rendering technique.
The progress bar display module is used for that the progress display object behind the described drafting progress bar is inserted into window area and shows.
Wherein, system of the present invention also comprises: the transmission progress computing module, be used for calculating the transmission progress data according to file size and the file size transmitted in document transmission process, and give the progress display object have with the identical ID of file transmission task with this transmission progress data transfer, to upgrade the demonstration of progress bar.Particularly, transmission progress data and file transmission task ID are passed to the progress bar display module with parametric form, the progress bar display module finds corresponding progress display object according to file transmission task ID, gives this progress display object to upgrade the demonstration of progress bar the transmission progress data transfer.
File transfer progress display packing of the present invention and system are widely used in the edit control window of rich text, and especially in the instant communication software (Instant Messaging, IM).
Above embodiment only is used to illustrate the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make various variations and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (8)
1. a file transfer progress display packing is characterized in that, may further comprise the steps:
S1: when transfer files, spanned file transformation task ID;
S2: create file transfer progress display object, identify described progress display object with described ID;
S3: the progress bar of in described progress display object, drawing file to be transmitted;
S4: the progress display object behind the described drafting progress bar is inserted into window area shows.
2. file transfer progress display packing as claimed in claim 1 is characterized in that described step S3 is specially:
Fileinfo in the file transmission task and progress bar rendering parameter are delivered to described progress display object, the progress display object is drawn the file transfer progress bar according to described fileinfo and progress bar rendering parameter, described fileinfo comprises: the creation-time of file name, file size, file icon and file, described progress bar rendering parameter comprises: the width of font name, font size and progress bar that text message, the rendering text on Tip information, background color, prospect textcolor, the progress bar is required and height.
3. file transfer progress display packing as claimed in claim 2 is characterized in that, adopts the mode of no window to draw during described drafting progress bar.
4. file transfer progress display packing as claimed in claim 1 is characterized in that, also comprises step after the described step S4:
In document transmission process, calculate the transmission progress data, and give the progress display object that has with the identical ID of file transmission task, to upgrade the demonstration of progress bar this transmission progress data transfer according to file size and the file size transmitted.
5. as each described file transfer progress display packing in the claim 1~4, it is characterized in that described progress display object is the OLE control.
6. as each described file transfer progress display packing in the claim 1~4, it is characterized in that described window area is the session window message region that the RichEdit of Windows creates.
7. a file transfer progress display system is characterized in that, comprising:
The ID generation module is used for when transfer files, spanned file transformation task ID;
Progress display object creation module is used to create file transfer progress display object, identifies described progress display object with described ID;
The progress bar drafting module is used for the progress bar at described progress display object drafting file to be transmitted;
The progress bar display module is used for that the progress display object behind the described drafting progress bar is inserted into window area and shows.
8. file transfer progress display system as claimed in claim 7 is characterized in that, also comprises:
The transmission progress computing module, be used for calculating the transmission progress data according to file size and the file size transmitted in document transmission process, and give the progress display object have with the identical ID of file transmission task with this transmission progress data transfer, to upgrade the demonstration of progress bar.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102825922A CN101950238B (en) | 2010-09-14 | 2010-09-14 | Method for displaying document transmission progress and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102825922A CN101950238B (en) | 2010-09-14 | 2010-09-14 | Method for displaying document transmission progress and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101950238A true CN101950238A (en) | 2011-01-19 |
CN101950238B CN101950238B (en) | 2013-04-24 |
Family
ID=43453744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102825922A Active CN101950238B (en) | 2010-09-14 | 2010-09-14 | Method for displaying document transmission progress and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101950238B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393830A (en) * | 2011-06-28 | 2012-03-28 | 用友软件股份有限公司 | Data processing time acquisition method and device |
CN102855236A (en) * | 2011-06-27 | 2013-01-02 | 北京东方通科技股份有限公司 | File transmitting system and file transmitting method |
CN103002413A (en) * | 2012-12-03 | 2013-03-27 | 北京小米科技有限责任公司 | Method and device for displaying multimedia message transmission schedule |
CN103500056A (en) * | 2013-09-22 | 2014-01-08 | 金硕澳门离岸商业服务有限公司 | Display method and system for data transmission |
CN103605599A (en) * | 2013-11-20 | 2014-02-26 | 珠海金山办公软件有限公司 | Method and device for displaying transmission status of cloud documents |
CN104063149A (en) * | 2014-06-13 | 2014-09-24 | 深圳市东信时代信息技术有限公司 | Adjustable progress bar system and method |
CN104778055A (en) * | 2014-01-15 | 2015-07-15 | 腾讯科技(深圳)有限公司 | Method and device for displaying progress bar |
CN104808768A (en) * | 2015-04-15 | 2015-07-29 | 广东欧珀移动通信有限公司 | Prompting method and prompting device for file transfer progress and mobile terminal |
CN107580039A (en) * | 2017-08-29 | 2018-01-12 | 广东欧珀移动通信有限公司 | Display methods, device and the terminal of transmission progress |
CN109246288A (en) * | 2018-07-27 | 2019-01-18 | Oppo广东移动通信有限公司 | Control method, device, storage medium and the electronic equipment of electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101286952A (en) * | 2008-05-27 | 2008-10-15 | 腾讯科技(深圳)有限公司 | Method and system for displaying information of file |
CN101465824A (en) * | 2008-12-29 | 2009-06-24 | 腾讯科技(深圳)有限公司 | Multi-source transmission system and method for instant communication file |
CN101488840A (en) * | 2009-02-05 | 2009-07-22 | 腾讯科技(深圳)有限公司 | Data transmission method and apparatus |
-
2010
- 2010-09-14 CN CN2010102825922A patent/CN101950238B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101286952A (en) * | 2008-05-27 | 2008-10-15 | 腾讯科技(深圳)有限公司 | Method and system for displaying information of file |
CN101465824A (en) * | 2008-12-29 | 2009-06-24 | 腾讯科技(深圳)有限公司 | Multi-source transmission system and method for instant communication file |
CN101488840A (en) * | 2009-02-05 | 2009-07-22 | 腾讯科技(深圳)有限公司 | Data transmission method and apparatus |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855236B (en) * | 2011-06-27 | 2015-04-29 | 北京东方通科技股份有限公司 | File transmitting system and file transmitting method |
CN102855236A (en) * | 2011-06-27 | 2013-01-02 | 北京东方通科技股份有限公司 | File transmitting system and file transmitting method |
CN102393830B (en) * | 2011-06-28 | 2014-05-07 | 用友软件股份有限公司 | Data processing time acquisition method and device |
CN102393830A (en) * | 2011-06-28 | 2012-03-28 | 用友软件股份有限公司 | Data processing time acquisition method and device |
CN103002413A (en) * | 2012-12-03 | 2013-03-27 | 北京小米科技有限责任公司 | Method and device for displaying multimedia message transmission schedule |
CN103002413B (en) * | 2012-12-03 | 2015-11-25 | 小米科技有限责任公司 | A kind of multimedia message transmission schedule display packing and device |
CN103500056A (en) * | 2013-09-22 | 2014-01-08 | 金硕澳门离岸商业服务有限公司 | Display method and system for data transmission |
WO2015074569A1 (en) * | 2013-11-20 | 2015-05-28 | 北京金山办公软件有限公司 | Method and apparatus for displaying transmission status of cloud documents |
CN103605599A (en) * | 2013-11-20 | 2014-02-26 | 珠海金山办公软件有限公司 | Method and device for displaying transmission status of cloud documents |
CN103605599B (en) * | 2013-11-20 | 2016-10-05 | 珠海金山办公软件有限公司 | The transmission state methods of exhibiting of cloud document and device |
CN104778055A (en) * | 2014-01-15 | 2015-07-15 | 腾讯科技(深圳)有限公司 | Method and device for displaying progress bar |
CN104063149A (en) * | 2014-06-13 | 2014-09-24 | 深圳市东信时代信息技术有限公司 | Adjustable progress bar system and method |
CN104808768A (en) * | 2015-04-15 | 2015-07-29 | 广东欧珀移动通信有限公司 | Prompting method and prompting device for file transfer progress and mobile terminal |
CN104808768B (en) * | 2015-04-15 | 2017-11-28 | 广东欧珀移动通信有限公司 | Reminding method, device and the mobile terminal of document transmission progress |
CN107580039A (en) * | 2017-08-29 | 2018-01-12 | 广东欧珀移动通信有限公司 | Display methods, device and the terminal of transmission progress |
CN107580039B (en) * | 2017-08-29 | 2020-04-14 | Oppo广东移动通信有限公司 | Transmission progress display method and device and terminal |
CN109246288A (en) * | 2018-07-27 | 2019-01-18 | Oppo广东移动通信有限公司 | Control method, device, storage medium and the electronic equipment of electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101950238B (en) | 2013-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101950238B (en) | Method for displaying document transmission progress and system | |
CN103853761B (en) | Comment demonstration, adding method and the device of web page contents | |
CN101286952B (en) | Method and system for displaying information of file | |
CN103186912B (en) | The method and system of word are shown with picture format | |
CN102810043B (en) | Method, system and information terminal for displaying weather information of mobile terminal | |
CN103312814B (en) | The method for building up of VNC concealed channel between cloud management platform and virtual machine terminal user | |
CN103279559A (en) | Rich text editing method and device based on Android system | |
CN102236709B (en) | Flex-based monitoring page display method and system | |
CN101950239A (en) | Large size image display method and system | |
CN103577197A (en) | Method for achieving android application program dynamic form | |
CN105677371A (en) | Method and system for quickly generating software interface | |
CN103631475A (en) | Method and device for switching windows | |
CN101296198B (en) | Method and client for inserting affluent interface constituent in instant communication window | |
CN101882075A (en) | Method for editing rich text and for restoring and displaying rich text through FLASH | |
CN105635464A (en) | Message processing method and apparatus | |
CN103176802A (en) | Method of achieving separation of user interface UI of system and control library through control pool | |
CN102375738B (en) | A kind of apparatus and method of mobile terminal data management | |
CN101776991A (en) | Control display text replacing method and device | |
CN103513977A (en) | Display method and device for group member list | |
CN104503769A (en) | Character dot matrix liquid crystal interface implementation method based on XML (extensive markup language) configuration file | |
CN103914859A (en) | Information processing method and apparatus capable of converting input character into picture | |
CN105468573A (en) | Configurable diagram application system | |
CN103095556B (en) | A kind of list method for refreshing based on instant messaging and device | |
CN102081902A (en) | Internet LED (Light Emitting Diode) information control system | |
CN102487362A (en) | Instant messaging (IM) message display method and device |
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 | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: Room 818, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080 Patentee after: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd. Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building A block 5 layer Patentee before: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd. |