[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
oWin:nGetChrHight() -> < nPixel>
------------------------------------------------------------------------------
DESCRIPTION:
::nGetChrHeight() returns the hight of the font that is used to
display text on the window. The hight is mesasured in pixel
EXAMPLE:
+-------------------------------------------------------------+
| /* get CharHigh and CharWide */ |
| nCharHigh := oWin:nGetChrHeight() |
| nCharWide := oWin:GetWidth( "A" ) |
| |
| /* Get Parent Window Position */ |
| oRect := oWin:GetCliRect() |
| oRect:nTop += (( ::nPos - .5 ) * nCharHigh ) |
| oRect:nRight -= ( ::nPos * nCharWide ) + nCharWide |
| |
| /* MDI Size is 19 * 32 chars */ |
| oRect:nBottom := oRect:nTop + ( nCharWide * 19 ) |
| oRect:nLeft := orect:nRight - ( nCharWide * 32 ) |
| |
| /* - */ |
| /* CREATE MDI WINDOW in Pixel ! */ |
| /* - */ |
| DEFINE WINDOW oChild ; |
| FROM oRect:nTop,oRect:nLeft TO ; |
| oRect:nBottom,oRect:nRight ; |
| MDICHILD ; |
| PIXEL |
+-------------------------------------------------------------+
See Also:
GetWidth
nHeight
GetTextHeight
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson