CN105468368A - Interface beautifying method - Google Patents

Interface beautifying method Download PDF

Info

Publication number
CN105468368A
CN105468368A CN201510809998.4A CN201510809998A CN105468368A CN 105468368 A CN105468368 A CN 105468368A CN 201510809998 A CN201510809998 A CN 201510809998A CN 105468368 A CN105468368 A CN 105468368A
Authority
CN
China
Prior art keywords
interface
class
button
beautifying
state
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.)
Pending
Application number
CN201510809998.4A
Other languages
Chinese (zh)
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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201510809998.4A priority Critical patent/CN105468368A/en
Publication of CN105468368A publication Critical patent/CN105468368A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides an interface beautifying method, which comprises a button class and an interactive frame class; the interface development efficiency is improved through the packaging class library, rich interface beautifying modes are provided to meet the requirements of customers on gorgeous interfaces, and the problem of interface flicker is solved through a double-buffering technology. According to the invention, interface beautifying work is completed in the packaged class by packaging some control classes, so that the user can use the interface beautifying work directly, the flexibility is increased, the maintenance difficulty is reduced, the problems of graph jitter and slowness are solved by adopting a double-buffering technology, the project research and development cost can be well reduced, and the quick beautifying effect is achieved.

Description

A kind of interface beautification method
Technical field
The present invention relates to interface development, be specifically related to a kind of interface beautification method.
Background technology
In vc front-end interface exploitation business, the look & feel that the class libraries utilizing MFC original is drawn is too dull, and very flexible, does not reach business need, and there will be figure display shake, the problem such as slow, affects display effect.
Conventional interface mode of beautifying is all to needing the attribute of the control shown to adjust one by one in interface usually, this mode has a lot of drawback, first developer needs to expend certain hour and goes to consult relevant knowledge, because level is uneven, and likely can at substantial man-hour; Next traditional interface beautifies mode dirigibility can be very poor, due to the uncertainty of business, may need repeatedly to adjust styles or direct requirement in actual job to provide and change skin function, in this case use traditional approach beautifies the increase greatly that interface can cause workload, and brings very big inconvenience to maintenance work; 3rd works as window is changed size, by minimax, or be closed and open again, or when being covered by another window, forms are all faced with and redraw, so Window triggers the drafting of WM_PAINT Message Processing complex figure, because too much brush causes figure to demonstrate shake, the symptom such as slow frequently, the traditional interface mode of beautifying cannot address this problem.
Summary of the invention
Technical assignment of the present invention is for the deficiencies in the prior art, provides a kind of interface beautification method.By encapsulating some control classes, beautified in the class being operated in encapsulation at interface and complete, user directly uses, and adds dirigibility, reduces maintenance difficulties.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of interface beautification method, comprises button class and dialog class; Improve interface development efficiency by encapsulation class libraries, provide the abundant interface mode of beautifying to meet the requirement of client to gorgeous interface, solve interface flicker problem by double buffering technology.
Button class arranges loading 4 kinds of button state pictures, is respectively normal condition, mouse streaks state, disabled status, state after click.When button is in above-mentioned several state, can display very intuitively.
Class name: PngButton class, comprises method as follows:
SetButtonImage: button image is set
SetText: setting button text and Button Color
SetBkGnd: arrange background, this function is mainly used in Real-time Obtaining background.When preventing from just starting, time program interface is drawn and occurred flower, get wrong background.
SetFont: button text font is set
DefWindowProc: be that message pressed by button by double-click button message conversion, solves and double-clicks unresponsive problem
OnMouseLeave: mouse leaves response function during button
OnMouseHover: response function when mouse moves on button.
The background picture cutting of needs is nine parts by dialog class, is plotted to respectively on interface, makes whole structure more level and smooth, picture is not limited by dialog box size, uses dual-cache mechanism during drafting, reduce interface flicker.Make user can select the interface of liking.
Class name: LcDialogEx class, comprises method as follows:
LoadNineBK: nine grids background is loaded into drawing handle
SetTransparent: arrange dialog box transparency, parameter is 255 to the maximum
SetFilePath: dialog box is set and Loads Image path
GetFilePath: obtain dialog box picture path
DrawBK: draw dialog box background
RemoveDlgBorder: cancel the frame in Background
Compared with prior art, the beneficial effect produced is a kind of interface of the present invention beautification method:
(1) encapsulate some control classes, interface is beautified in the class being operated in encapsulation completing, user directly uses, and improves the interface development efficiency of mfc, reduces maintenance difficulties, enhance dirigibility;
(2) provide abundant interface to beautify mode, change the pattern that former dialog box is inflexible, uninteresting, dull, the demand of user to gorgeous interface can be met;
(3) reduce interface flicker, make whole structure more level and smooth, for user provides smooth, gorgeous interface landscaping effect.
Embodiment
Below a kind of interface of the present invention beautification method is described in detail below.
A kind of interface beautification method, comprises button class and dialog class; Improve interface development efficiency by encapsulation class libraries, provide the abundant interface mode of beautifying to meet the requirement of client to gorgeous interface, solve interface flicker problem by double buffering technology.
Button class arranges loading 4 kinds of button state pictures, is respectively normal condition, mouse streaks state, disabled status, state after click.When button is in above-mentioned several state, can display very intuitively.
Class name: PngButton class, comprises method as follows:
SetButtonImage: button image is set
SetText: setting button text and Button Color
SetBkGnd: arrange background, this function is mainly used in Real-time Obtaining background.When preventing from just starting, time program interface is drawn and occurred flower, get wrong background.
SetFont: button text font is set
DefWindowProc: be that message pressed by button by double-click button message conversion, solves and double-clicks unresponsive problem
OnMouseLeave: mouse leaves response function during button
OnMouseHover: response function when mouse moves on button.
The background picture cutting of needs is nine parts by dialog class, is plotted to respectively on interface, makes whole structure more level and smooth, picture is not limited by dialog box size, uses dual-cache mechanism during drafting, reduce interface flicker.Make user can select the interface of liking.
Class name: LcDialogEx class, comprises method as follows:
LoadNineBK: nine grids background is loaded into drawing handle
SetTransparent: arrange dialog box transparency, parameter is 255 to the maximum
SetFilePath: dialog box is set and Loads Image path
GetFilePath: obtain dialog box picture path
DrawBK: draw dialog box background
RemoveDlgBorder: cancel the frame in Background
The present invention improves interface development efficiency by encapsulation class libraries, provides the abundant interface mode of beautifying to meet the requirement of client to gorgeous interface, solves interface flicker problem by double buffering technology.Encapsulate some control classes, interface is beautified in the class being operated in encapsulation completing, user directly uses, and improves development efficiency, reduces maintenance difficulties; There is provided abundant interface to beautify mode, change the pattern that former dialog box is inflexible, uninteresting, dull, the demand of user to gorgeous interface can be met.Utilize double buffering technology to solve image glisten when interface redraws, load problem slowly, make whole structure more level and smooth.

Claims (3)

1. an interface beautification method, is characterized in that comprising button class and dialog class; Improve interface development efficiency by encapsulation class libraries, provide the abundant interface mode of beautifying to meet the requirement of client to gorgeous interface, solve interface flicker problem by double buffering technology.
2. a kind of interface according to claim 1 beautification method, is characterized in that button class arranges loading 4 kinds of button state pictures, is respectively normal condition, mouse streaks state, disabled status, state after click.
3. a kind of interface according to claim 1 beautification method, it is characterized in that the background picture cutting of needs is nine parts by dialog class, be plotted to respectively on interface, make whole structure more level and smooth, picture is not limited by dialog box size, use dual-cache mechanism during drafting, reduce interface flicker.
CN201510809998.4A 2015-11-23 2015-11-23 Interface beautifying method Pending CN105468368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510809998.4A CN105468368A (en) 2015-11-23 2015-11-23 Interface beautifying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510809998.4A CN105468368A (en) 2015-11-23 2015-11-23 Interface beautifying method

Publications (1)

Publication Number Publication Date
CN105468368A true CN105468368A (en) 2016-04-06

Family

ID=55606111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510809998.4A Pending CN105468368A (en) 2015-11-23 2015-11-23 Interface beautifying method

Country Status (1)

Country Link
CN (1) CN105468368A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598679A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Method and device for loading picture resources
CN106598614A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Picture resource recycling method and apparatus
CN106909394A (en) * 2017-03-02 2017-06-30 国工信(沧州)数控科技有限公司 Method that is a kind of nested based on MFC interfaces and being switched fast interface

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598679A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Method and device for loading picture resources
CN106598614A (en) * 2016-12-21 2017-04-26 北京奇虎科技有限公司 Picture resource recycling method and apparatus
CN106598679B (en) * 2016-12-21 2020-07-31 北京奇虎科技有限公司 Method and device for loading picture resources
CN106598614B (en) * 2016-12-21 2020-12-25 北京奇虎科技有限公司 Method and device for recycling picture resources
CN106909394A (en) * 2017-03-02 2017-06-30 国工信(沧州)数控科技有限公司 Method that is a kind of nested based on MFC interfaces and being switched fast interface

Similar Documents

Publication Publication Date Title
CN104731584B (en) A kind of customized configuration design method of Open Architecture CNC System of Display Interface
CN108279964B (en) Method and device for realizing covering layer rendering, intelligent equipment and storage medium
CN109117138B (en) Configuration method and device and computer readable storage medium
US8756044B2 (en) Graphical partitioning for parallel execution of executable block diagram models
US8554864B2 (en) System and method to synchronously display 3D object information on plural screens of plural computers
CN110096277A (en) A kind of dynamic page methods of exhibiting, device, electronic equipment and storage medium
US10228828B2 (en) Coordinating user interface elements across screen spaces
CA3054877A1 (en) Method, apparatus and computer device for implementing pop-up window in hybrid interface application
CN102866886A (en) Web-based visual algorithm animation development system
CN102385515B (en) GO image animation engine based on android system
CN101374213A (en) Implementing method for self-defining television human-machine interface
US20160274776A1 (en) System and method for modifying a look and feel of a graphical user interface for an application
US10885695B2 (en) Configurable stylized transitions between user interface element states
CN110007983A (en) Implementation method, medium, device and the calculating equipment of particle spraying animation
CN105468368A (en) Interface beautifying method
EP3262528A1 (en) Analysis view for pivot table interfacing
CN104571801A (en) Information processing method and electronic equipment
US10289388B2 (en) Process visualization toolkit
US9250784B2 (en) Event visualization and control
CN103246502B (en) A kind of implementation method of pop-up window and system
US9158452B2 (en) Early drawing system and method to improve touch screen response
CN111125451B (en) Data production processing method and device, electronic equipment and storage medium
CN108989872A (en) A kind of Android TV background fast switch over method, frame, server and storage medium
CN112328225A (en) Page operation method and operation system thereof
US10635745B2 (en) Pre-children in a user interface tree

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160406