Scalabium Software |
|
| Knowledge for your independence. | |
|
Sometimes in run-time you must detect the sizes of some system controls. For example, width of scrollbar or height of form caption etc. If you want to get this system value, you must call the Windows API's function GetSystemMetrics with different parameter. In result you'll get the wished. For example, intFormCaptionHeight := GetSystemMetrics(SM_CYCAPTION) As result, you in intFormCaptionHeight you have a height of normal caption area in pixels. The full list of wished system metrics you can view in Windows API's help by GetSystemMetrics topic. The some useful metrics: |
|
||||||||||||||||||||||||||||||||||||
![]() |
Copyrightc 1998-2008, Scalabium
Software. All rights reserved. |
December 9, 1999 |