A progress bar drawing method and system

A progress bar and progress technology, which is applied in the computer field, can solve the problems such as the inability to realize the control style customization, and achieve the effect of satisfying the beautiful interface and satisfying the beauty

Active Publication Date: 2017-07-28
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But for vertical scale controls, GTK only supports scale changes from top to bottom
If you want to make a control that changes from bottom to top, it s

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A progress bar drawing method and system
  • A progress bar drawing method and system
  • A progress bar drawing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] Please refer to figure 1 , Embodiment 1 provided by the present invention is:

[0062] A window for preset scale controls on the GTK interface;

[0063] Intercept the drawing process of the progress bar;

[0064] dividing the window into a progress bar display area and a progress background area, and the size and shape of the progress bar display area and the preset progress graphic are the same;

[0065] Obtain the background color of the audio and video screen where the progress bar is located;

[0066] rendering the progress background area as the background color; rendering the progress bar display area as a preset first color;

[0067] According to the progress indicator icon of the progress bar, the progress bar display area is divided into a first area and a second area; the background of the first area is set as a preset first image; the background of the second area is set as Preset the second image;

[0068] If the position of the progress indicator icon ...

Embodiment 2

[0071] Please refer to figure 2 , the second embodiment of the present invention is:

[0072] The window of the proportion control is preset on the GTK interface through the preset module, and the preset window is sent to the first split module; the interception module intercepts the drawing process of the progress bar; the first split module splits the window into a progress bar display area And the progress background area, the size and shape of the progress bar display area and the preset progress graphic are the same, and the segmentation result is sent to the first rendering module; the first acquisition module acquires the background color of the audio and video picture where the progress bar is located, And send the obtained result to the first rendering module; the first rendering module is used to render the progress background area as the background color; render the progress bar display area as the preset first color; the second segmentation module according to the...

Embodiment 3

[0073] Please refer to Figure 3 to Figure 4 , Embodiment three of the present invention is:

[0074] Set a proportional control window on the GTK interface, and use the signal binding function to bind the signal of the proportional control to a custom static function. The static function is used to intercept the drawing event of the control; divide the window into a progress bar display area And the progress background area, the size and shape of the progress bar display area and the preset progress graphic are the same; obtain the background color of the audio and video screen where the progress bar is located; render the progress background area as the background color; render the progress bar The display area is the default first color;

[0075] According to the progress indicator icon of the progress bar, the progress bar display area is divided into a first area and a second area; the background of the first area is set as a preset first image; the background of the sec...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of computers and in particular provides a progress bar drawing method and system. User-defined drawing of progress bars is achieved via the following steps: presetting a window of a percentage control on a GTK interface; intercepting a progress bar drawing process; dividing the window into a progress bar display area and a progress background area, wherein the progress bar display area and a preset progress graph are the same in size and shape; acquiring a background color of an audio/video frame where the progress bar is in; applying the background color to the progress background area; applying a preset first color to the progress bar display area. The method and the system solve the problem that the shape and the color of a progress bar cannot be customized on the conventional GTK interface. The method for drawing progress bars on a GTK interface is simple and easy to implement and can meet the requirements for eye-pleasing interfaces.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for drawing a progress bar. Background technique [0002] When using GTK for interface development in the LINUX environment, GTK provides two proportional controls, horizontal and vertical. But for vertical scale controls, GTK only supports scale changes from top to bottom. If you want to make a control that changes from bottom to top, it seems powerless. At the same time, the interface currently provided by GTK's proportional control cannot realize the customization of the control style. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a drawing method and system of a progress bar, which realizes the custom drawing of the progress bar and satisfies the requirement of beautiful interface. [0004] In order to solve the above technical problems, the present invention provides a method for drawing...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
CPCG06F8/38
Inventor 刘德建林冰棋方振华郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products