当前位置:网站首页>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.
边栏推荐
- Nezha monitoring - server status monitoring, SSL certificate change expiration, Ping monitoring and scheduled task reminder
- Modelarts, Pangu big model, ModelBox... Detailed explanation of Huawei cloud AI development production line
- [understanding of opportunity-49]: three seasons and cognitive dimension
- Environment preparation of Nacos configuration center
- This visual analysis library makes it easy for you to play with data science!
- Elastomer simulation (elasticity)
- Virtual machine win7 system installation vmtool
- Classic interview questions of interface testing: what is the difference between session, cookie and token?
- Introduction and advanced tutorial of Albert duilib
- Sword finger offer 47. the maximum value of gifts
猜你喜欢

LSTM and Gru of RNN_ Attention mechanism
![[JVM learning 03] class loading and bytecode Technology](/img/b4/9482b02b58580171235fd4c36129e9.png)
[JVM learning 03] class loading and bytecode Technology

Meshlab & PCL ISS key points

day 2

How does PostgreSQL decide PG's backup strategy

Common methods of string class

Hidden Markov model HMM

Description of large and small end mode

PostgreSQL weekly news - July 13, 2022

Create a life cycle aware MVP architecture
随机推荐
Analysis and Simulation of strlen function
2019 Hangzhou Electric Multi School Game 7 6651 final exam [Law + thinking]
MySQL index principle and query optimization "suggestions collection"
聊下自己转型测试开发的历程
Hidden Markov model HMM
Hold the C pointer
Techempower web framework performance test 21st round results release --asp Net core continue to move forward
Day 10 (inheritance, rewriting and use of super)
Taokeeper environment setup
Pyhanlp installation tutorial
Pay close attention! List of the latest agenda of 2022 open atom open source Summit
Channel state information (CSI) conjugate multiplication denoising method
asp. Net coree file upload and download example
Sword finger offer 45. arrange the array into the smallest number
Elastomer simulation (elasticity)
[understanding of opportunity-48]: Guiguzi - Chapter 7 - collect information in advance, make predictions and implementation plans in advance
Environment preparation of Nacos configuration center
Cmake series tutorial 1- initial cmake
Conversion between VC string and timestamp
Jedi survive and eat chicken F12 screenshot save path reference