Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does the control only use pixel sizes and dimensions, why not twips?

CONTROL dimensions pixel twips
0
Posted

Why does the control only use pixel sizes and dimensions, why not twips?

0

The reason is simply to improve performance, the less conversion the control has to do; the faster it can get the job done. And you don’t have to do the conversion either if you choose, simply set your control container’s ScaleMode property to vbPixels. The exception are containers that do not support Pixel scale modes, like VB’s Frame control. If you want to keep your scale mode at Twips, simply use VB’s ScaleX and ScaleY functions to convert twips to pixels as needed.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123