CN106484218A - A kind of real-time Zoom method of the unification of software graphical interface - Google Patents
A kind of real-time Zoom method of the unification of software graphical interface Download PDFInfo
- Publication number
- CN106484218A CN106484218A CN201610819773.1A CN201610819773A CN106484218A CN 106484218 A CN106484218 A CN 106484218A CN 201610819773 A CN201610819773 A CN 201610819773A CN 106484218 A CN106484218 A CN 106484218A
- Authority
- CN
- China
- Prior art keywords
- window
- basic
- control
- graphical
- monitoring thread
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Digital Computer Display Output (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
A kind of real-time Zoom method of the unification of software graphical interface, comprises the following steps:1) after a basic window is generated, that is, start a monitoring thread with the window, the processing procedure of the adjoint monitoring thread is as follows:1.1) all graphical controls in basic window are enumerated, obtains the window handle of these graphical controls;1.2) size of basic window is checked;1.3) judge whether basic window size changes, such as no, then return to step 1.2);1.4) the scaling coefficient based on basic window, calculates the new position of each control window, wide high numerical value;1.5) scale each control;1.6) step 1.2 is returned to);2) when the basic window is closed or is destroyed, the adjoint monitoring thread of the window is executed and is exited.The present invention effectively realizes the graphical control size of resize-window in real time in proportion.
Description
Technical field
The present invention relates to software graphical interface process field, especially a kind of Zoom method of software graphical interface.
Background technology
The software of modern software especially terminaloriented user be essentially all using graphical interfaces, graphic interface software
Commonly referred to as gui program (GUI, Graphic User Interface).It typically has a basic main window, thereon
It is distributed the subwindow of some graphical controls;New subwindow can also be ejected after the selected click of subwindow, only not lead
Explicitly there is (but existing by clicking on the implicit for ejecting) on window;This new subwindow can also be used as basic window
Mouthful, some graphical controls of EDS maps on it.The form of graphical control has button, text box, edit box, frames images, scroll bar,
Etc..Basic window and the thereon explicit control subwindow for existing form the structure of one two layers of tree, such as Fig. 1.
In general, when user changes window edge scope (stretching or compress), the size of graphical control in window, point
Cloth position proportional to window zooms in or out or constant so as to being partly blocked or showing.For example, windows system
When window edge changes, the word in its window in main control text box can reduce or put WORD software on system
Greatly;It is equally the browser software (such as Tengxun's browser) in windows system, when the side of left and right " extruding " browser window
During boundary, the word in its forms is blocked.
But the graphical control on window unifies scaling equably, in proportion with the change of window size size, also
Never the seeing on some softwares of " perfection ".Actually compromised as the change of the WORD of example from above be blocked/show, from
Adapt to 2 kinds of modes of scaling, its content of text is scaled in real time, but its toolbar the various menu button can then be blocked/show.Read
Person can see for oneself, and when the border of WORD window is compressed in left and right, menu section option above successively can be lost, and following
Word then can be scaled.
Content of the invention
In order to overcome the shortcomings of in existing software graphical interface cannot resize-window in real time in proportion graphical control size,
The present invention is provided and a kind of effective realizes in proportion the real-time unification of the software graphical interface of the graphical control size of resize-window
Real-time Zoom method.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of real-time Zoom method of the unification of software graphical interface, the method comprising the steps of:
1) after a basic window is generated, that is, start a monitoring thread with the window, the monitoring thread is used
In monitoring, control the window;
The processing procedure of the adjoint monitoring thread is as follows:
1.1) all graphical controls in basic window are enumerated, obtains the window handle of these graphical controls;
1.2) size of basic window is checked;
1.3) judge whether basic window size changes, such as no, then return to step 1.2), otherwise enter step 1.4);
1.4) the scaling coefficient based on basic window, calculates the new position of each control window, wide high numerical value;
1.5) each control is scaled;
1.6) step 1.2 is returned to);
2) when the basic window is closed or is destroyed, the adjoint monitoring thread of the window is executed and is exited.
The zoom operations i.e. graphical control that graphical control of the present invention just for basic window and thereon is carried out is with base
The size variation of this window and scale.When software has a lot of basic windows, as long as to including all basic including main window
Window is all implemented this class and is processed.
The unification (in proportion) of the present invention graphical control size in real time on resize-window method, its zooming effect
Similar to the change displaying of screen content produced during change screen resolution.First figure is that screen resolution is set to
Screen content during 1366*768, second figure are resolution ratio for content during 1024*768, and 2 is same content, mainly poor
The scaling of not exactly two figure width causes.When software window is artificially scaled, the graphical control of its first figure
Proportionally scale, this effect is similar to the scaling that causes of change of screen resolution.
Beneficial effects of the present invention are mainly manifested in:The graphical control size of in proportion in real time resize-window is effectively realized.
Description of the drawings
Fig. 1 is that basic window and the graphical control being distributed thereon constitute schematic diagram of the window for the two-layer tree of leaf node.
Fig. 2 is the theory diagram of the real-time Zoom method of the unification of software graphical interface.
Specific embodiment
The invention will be further described below in conjunction with the accompanying drawings.
With reference to Fig. 2, a kind of real-time Zoom method of the unification of software graphical interface, the method comprising the steps of:
1) after a basic window is generated, that is, start a monitoring thread with the window, the monitoring thread is used
In monitoring, control the window;
The processing procedure of the adjoint monitoring thread is as follows:
1.1) all graphical controls in basic window are enumerated, obtains the window handle of these graphical controls;
1.2) size of basic window is checked;
1.3) judge whether basic window size changes, such as no, then return to step 1.2), otherwise enter step 1.4);
1.4) the scaling coefficient based on basic window, calculates the new position of each control window, wide high numerical value;
1.5) scale each control;
1.6) step 1.2 is returned to);
2) when the basic window is closed or is destroyed, the adjoint monitoring thread of the window is executed and is exited.
The zoom operations i.e. graphical control that graphical control of the present embodiment just for basic window and thereon is carried out with
The size variation of basic window and scale.When software has a lot of basic windows, as long as to including all bases including main window
This window is all implemented this class and is processed.
In the present embodiment, a false code prototype has been write using windows platform win32 programming SDK, the prototype is mainly retouched
State the action of the inside with thread, generation without basic window and destroy the corresponding startup with thread and move back
Go out.
False code:
Claims (1)
1. a kind of real-time Zoom method of the unification of software graphical interface, it is characterised in that:The method comprising the steps of:
1) after a basic window is generated, that is, start a monitoring thread with the window, the monitoring thread is used for supervising
Depending on, control the window;
The processing procedure of the adjoint monitoring thread is as follows:
1.1) all graphical controls in basic window are enumerated, obtains the window handle of these graphical controls;
1.2) size of basic window is checked;
1.3) judge whether basic window size changes, such as no, then return to step 1.2), otherwise enter step 1.4);
1.4) the scaling coefficient based on basic window, calculates the new position of each control window, wide high numerical value;
1.5) each control is scaled;
1.6) step 1.2 is returned to);
2) when the basic window is closed or is destroyed, the adjoint monitoring thread of the window is executed and is exited.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610819773.1A CN106484218A (en) | 2016-09-13 | 2016-09-13 | A kind of real-time Zoom method of the unification of software graphical interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610819773.1A CN106484218A (en) | 2016-09-13 | 2016-09-13 | A kind of real-time Zoom method of the unification of software graphical interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106484218A true CN106484218A (en) | 2017-03-08 |
Family
ID=58273724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610819773.1A Pending CN106484218A (en) | 2016-09-13 | 2016-09-13 | A kind of real-time Zoom method of the unification of software graphical interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484218A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107272993A (en) * | 2017-06-30 | 2017-10-20 | 深圳铂睿智恒科技有限公司 | The control method and system of intelligent terminal window view |
CN112328353A (en) * | 2021-01-06 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Display method and device of sub-application player, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1802691A (en) * | 2003-04-08 | 2006-07-12 | 费弗里特系统公司 | A windowing and controlling system thereof comprising a computer device |
CN1845054A (en) * | 2005-04-08 | 2006-10-11 | 皮克塞(研究)有限公司 | System and method for dynamically zooming and rearranging display items |
CN1869925A (en) * | 2006-06-23 | 2006-11-29 | 上海科泰世纪科技有限公司 | Method for setting controller style in computer graphic system |
CN1950794A (en) * | 2004-05-06 | 2007-04-18 | 柳濑隆敏 | Window display system, window display method, program development support device, and server device |
CN101276573A (en) * | 2007-03-30 | 2008-10-01 | 上海奇码数字信息有限公司 | Apparatus and method for zooming all-purpose image |
CN102331933A (en) * | 2011-09-30 | 2012-01-25 | 南京航天银山电气有限公司 | Embedded software interface implementing method and system |
CN102799720A (en) * | 2012-07-03 | 2012-11-28 | 武汉天喻软件有限责任公司 | Computer-aided design (CAD) graph and image mixed editing system |
CN104077034A (en) * | 2014-07-03 | 2014-10-01 | 成都众联基智科技有限公司 | Directional area scale variable zoom method and device |
CN105009057A (en) * | 2013-02-20 | 2015-10-28 | 谷歌公司 | Intelligent window placement with multiple windows using high DPI screens |
-
2016
- 2016-09-13 CN CN201610819773.1A patent/CN106484218A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1802691A (en) * | 2003-04-08 | 2006-07-12 | 费弗里特系统公司 | A windowing and controlling system thereof comprising a computer device |
CN1950794A (en) * | 2004-05-06 | 2007-04-18 | 柳濑隆敏 | Window display system, window display method, program development support device, and server device |
CN1845054A (en) * | 2005-04-08 | 2006-10-11 | 皮克塞(研究)有限公司 | System and method for dynamically zooming and rearranging display items |
CN1869925A (en) * | 2006-06-23 | 2006-11-29 | 上海科泰世纪科技有限公司 | Method for setting controller style in computer graphic system |
CN101276573A (en) * | 2007-03-30 | 2008-10-01 | 上海奇码数字信息有限公司 | Apparatus and method for zooming all-purpose image |
CN102331933A (en) * | 2011-09-30 | 2012-01-25 | 南京航天银山电气有限公司 | Embedded software interface implementing method and system |
CN102799720A (en) * | 2012-07-03 | 2012-11-28 | 武汉天喻软件有限责任公司 | Computer-aided design (CAD) graph and image mixed editing system |
CN105009057A (en) * | 2013-02-20 | 2015-10-28 | 谷歌公司 | Intelligent window placement with multiple windows using high DPI screens |
CN104077034A (en) * | 2014-07-03 | 2014-10-01 | 成都众联基智科技有限公司 | Directional area scale variable zoom method and device |
Non-Patent Citations (1)
Title |
---|
王昕,马世奎: "《界面编程技巧》", 《DELPHI 7.0编程实战导航》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107272993A (en) * | 2017-06-30 | 2017-10-20 | 深圳铂睿智恒科技有限公司 | The control method and system of intelligent terminal window view |
CN112328353A (en) * | 2021-01-06 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Display method and device of sub-application player, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108279964B (en) | Method and device for realizing covering layer rendering, intelligent equipment and storage medium | |
US20140189576A1 (en) | System and method for visual matching of application screenshots | |
US20140218385A1 (en) | System and method for visual segmentation of application screenshots | |
US7337409B2 (en) | Customizable drag and drop for industrial software applications | |
CN104679519B (en) | Graphical user interface software function acquisition methods and device | |
CN102262528B (en) | The method of instant communication client and dragging on embedded webpage thereof | |
CN109543559A (en) | Method for tracking target and system based on twin network and movement selection mechanism | |
CN103677552B (en) | The control of picture and methods of exhibiting and its device in a kind of webpage | |
DE19957780A1 (en) | Computer program editing system has editing effected in graphic environment by use of browser accessing layout control and editing control with editing icons and editing windows | |
CN107209773B (en) | Automatic invocation of unified visual interface | |
KR20010041944A (en) | Object oriented method of structuring a software step program | |
DE102013205970A1 (en) | Approximate calculation of the last reading position in electronic documents | |
EP2555109A2 (en) | Search utility program for software developers | |
DE102016001467A1 (en) | A method for intelligently loading web references in advance based on a prediction of user behavior | |
US10754522B2 (en) | Apparatus for editing objects | |
CN106484218A (en) | A kind of real-time Zoom method of the unification of software graphical interface | |
US7478375B1 (en) | Directed acyclic graph (DAG) exploration through separation of concerns | |
CN105868235A (en) | Image preview method and apparatus of intelligent terminal | |
CN104866807B (en) | A kind of Face detection method and system | |
CN109871205B (en) | Interface code adjustment method, device, computer device and storage medium | |
CN113312125A (en) | Multi-window adjusting method, system, readable storage medium and electronic equipment | |
DE19530669A1 (en) | Method for automatically selecting a clock-controlling signal path in reprogrammable systems for hardware emulation | |
Huang et al. | Understanding and Visualizing Generative Adversarial Network in Architectural Drawings | |
CN107729006B (en) | Page information intelligent acquisition tool and method based on pc end | |
CN114816184A (en) | Display method, device, equipment and storage medium of operation control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170308 |
|
RJ01 | Rejection of invention patent application after publication |