stlai
May 18th, 2001, 09:30 AM
Hi,
Does anyone know 1 DLU equal how many twips in VB?
Thanks
Sue
Does anyone know 1 DLU equal how many twips in VB?
Thanks
Sue
|
Click to See Complete Forum and Search --> : DLU to Twips stlai May 18th, 2001, 09:30 AM Hi, Does anyone know 1 DLU equal how many twips in VB? Thanks Sue shree May 18th, 2001, 10:34 AM Do you mean the Dialog Unit? A horizontal DLU is the average width of the current dialog box font divided by 4. A vertical DLU is the average height of the current dialog-box font divided by 8. You can get the average width and height of the current font using the GetTextMetrics() API function. You can convert the values to twips by multiplying with Screen.TwipsPerPixelX and Screen.TwipsPerPixelY. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |