当前位置:网站首页>Unit DLU of resource editor
Unit DLU of resource editor
2022-07-24 19:41:00 【51CTO】
Optimized a few days ago The Three Kingdoms of wisdom and courage The interface of , The goal is : It's easy to operate , The message is clear . A little experience , Share with you , Also welcome your advice .CDC Class ( Such as :TextOut) Is in pixels , The unit of the resource editor is not pixels , I didn't care . After the release of , There are a few users with chaotic page boards . I thought it was a problem of resolution , It's actually a matter of fonts . Song style small four DLU The unit is 2 Pixels , Song typeface small five DLU The unit is 1.5 Pixels .DLU What are the advantages of ? Change the font in the resource editor , Dialog boxes and controls will change size , In this way, the layout will not be disordered . Set the user to big font , It won't mess . Extension of the problem , How to specify fonts by users ,SetFont Only change the font without changing the window size .
The solution is as follows :
Knowledge point 1 , How to set big fonts .
stay windows Right click on
Click on “ attribute ”
open “ Set up ”Tab Label and click “ senior ”
stay “ routine ” label , The system changed in the font size box DPI
Restart the system
Knowledge point two : How to find DLU Equal to how many pixels .
DLU One of the X The coordinate unit of the direction is equal to... Of the average width of the font used in the dialog box 1/4,Y The coordinate unit of the direction is equivalent to the height of the font used in the dialog box 1/8. Note that the average width of the font is not the average of all characters , It's the letters a…z( Include capital ) Average width of , let me put it another way , It's equal to the string ”a…zA…Z” Divide the length of by 52.
边栏推荐
- Virtual machine win7 system installation vmtool
- Onemanager and cloudflare workers deployment and installation - binding domain names and using cloudflare CDN acceleration
- Sword finger offer 52. The first common node of the two linked lists
- Cmake series tutorial 2 HelloWorld
- [face to face experience of school recruitment] 8 real questions of pointer interview. Come and test how many you have mastered.
- Zooinspector Download
- The ark compiler is coming. What about APK reinforcement
- Meshlab&PCL ISS关键点
- 2019 Hangdian multi school first 6581 vacation [thinking]
- Day 6 (array example)
猜你喜欢
![[JVM learning 03] class loading and bytecode Technology](/img/b4/9482b02b58580171235fd4c36129e9.png)
[JVM learning 03] class loading and bytecode Technology

文献阅读:GoPose 3D Human Pose Estimation Using WiFi
![2019 Hangdian multi school first 6581 vacation [thinking]](/img/38/5a74d3ef346d6801f9da8fd3a4b23a.png)
2019 Hangdian multi school first 6581 vacation [thinking]

LSTM and Gru of RNN_ Attention mechanism

The ark compiler is coming. What about APK reinforcement

Implement a proxy pool from 0

PostgreSQL weekly news - July 13, 2022

Why are there loopholes in the website to be repaired
Cmake series tutorial 2 HelloWorld

Hidden Markov model HMM
随机推荐
Create a life cycle aware MVP architecture
Basic idea of regularization
Detailed explanation of ELF format (I)
Getaverse, a distant bridge to Web3
[Huawei lyevk-3861a intelligent IOT development board evaluation] unpacking experience and Hisilicon hi3861v100 chip learning experience
Recursion of function [easy to understand]
On July 31, 2022, the dama-cdga/cdgp data governance certification class was opened!
【德味】安全:如何为行人提供更多保护
Rotation matrix derivation process
How to export map files tutorial
mysql排序.按字段值排序
Cesium uses czml to implement dynamic routes
文献阅读:GoPose 3D Human Pose Estimation Using WiFi
profile环境切换
How to convert the world coordinates of unity's camera into view matrix
PostgreSQL Elementary / intermediate / advanced certification examination (7.16) passed the candidates' publicity
纯C实现----------尼科彻斯定理
02 | 环境准备:如何在windows下安装和配置一个基本的php开发环境?
Setting up a dual machine debugging environment for drive development (vs2017)
拦截器和过滤器