Few questions about the 'A Complete Project' Sample
Publicado: Dom Ago 19, 2007 7:15 pm
Hello Ignacio , Jose
I study very carefully the ' A Complete Project' sample and kindly ask if
you can explain the following lines of code.
From the constructor of class TPrnDoc
--> UPDATE ::oDevice TO oDevice
And form the PrintHeader() methode
nStdPaso := Round( :PixelsToMapMode( 0, Abs(
oFontStd:nHeight ) )[ 2 ] * 1.2, 0 )
nBldPaso := Round( :PixelsToMapMode( 0, Abs(
oFontBld:nHeight ) )[ 2 ] * 1.2, 0 )
nTitPaso := Round( :PixelsToMapMode( 0, Abs(
::oFontTitle:nHeight ) )[ 2 ] * 1.2, 0 )
especialy the [2] *1.2
Many thanks for your attention
Regards
Dionisis
I study very carefully the ' A Complete Project' sample and kindly ask if
you can explain the following lines of code.
From the constructor of class TPrnDoc
--> UPDATE ::oDevice TO oDevice
And form the PrintHeader() methode
nStdPaso := Round( :PixelsToMapMode( 0, Abs(
oFontStd:nHeight ) )[ 2 ] * 1.2, 0 )
nBldPaso := Round( :PixelsToMapMode( 0, Abs(
oFontBld:nHeight ) )[ 2 ] * 1.2, 0 )
nTitPaso := Round( :PixelsToMapMode( 0, Abs(
::oFontTitle:nHeight ) )[ 2 ] * 1.2, 0 )
especialy the [2] *1.2
Many thanks for your attention
Regards
Dionisis