Method and device for implementing screen matching of owner-draw controls
An implementation method and self-drawing technology, which is applied in the computer field, can solve problems such as inconvenient interface modification and optimization, increased dependence on self-drawing controls, and difficulty in screen adaptation, and achieve the effects of lower installation threshold, small coupling, and simple method
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0043] figure 2 It is a schematic flowchart of the method for implementing screen adaptation of self-drawn controls in the first embodiment of the present invention. Please refer to figure 2 The screen adaptation implementation method of the self-drawn control in this embodiment includes:
[0044] Step S11: Lay out the self-drawn controls according to the resolution of the initial screen to obtain a first view adapted to the initial screen, the first view including the first interface and the self-drawn controls laid out on the first interface.
[0045] The screen resolution is the number of pixels that can be displayed on the display. For example, a screen with a screen resolution of 480*800 has 480 pixels in the horizontal direction and 800 pixels in the vertical direction. Please also refer to image 3 , in step S11, lay out each self-drawn control according to the resolution of the initial screen 11 (or design draft) to obtain the first view adapted to the initial scr...
no. 2 example
[0068] Figure 8 It is a schematic flowchart of a method for implementing screen adaptation of self-drawn controls in the second embodiment of the present invention. Please refer to Figure 8 The screen adaptation implementation method of the self-drawn control in this embodiment includes:
[0069] Step S21: Lay out the self-drawn controls according to the resolution of the initial screen to obtain a first view adapted to the initial screen, the first view including the first interface and the self-drawn controls laid out on the first interface;
[0070] Step S22: Define a container control for each self-drawing control on the first interface, and define the first interface as a container control of one of the self-drawing controls, and obtain the edge of each self-drawing control relative to its corresponding container control margin, and set the property of the margin as fixed margin or zoom margin, the margin corresponding to the fixed margin remains fixed, and the margin...
no. 3 example
[0075] Figure 11 It is a schematic flowchart of the method for implementing screen adaptation of self-drawn controls in the third embodiment of the present invention. Please refer to Figure 11 The screen adaptation implementation method of the self-drawn control in this embodiment includes:
[0076] Step S31: Lay out the self-drawn controls according to the resolution of the initial screen to obtain a first view adapted to the initial screen, the first view including the first interface and the self-drawn controls laid out on the first interface.
[0077] Step S32: Determine the adaptation interface of the first interface on the target screen according to the resolution of the target screen.
[0078] Step S33: Calculate the interface preprocessing ratio according to the resolution of the target screen and the resolution of the initial screen, perform proportional scaling on the first interface of the first view and the self-drawn control according to the interface preproce...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com