Difference in CALCTEXT in OIPI32 vs OIPI16 (OpenInsight 32-bit Specific)
At 29 JUL 2003 06:29:12AM Oystein Reigem wrote:
I think there might be a difference in the value received from "CALCTEXT" in OIPI16 and OIPI32. (With "CALCTEXT" one can find the width and height of some text in the current font.) It seems OIPI16 includes the spacing in its value for height while OIPI32 does not. (One can set the spacing in the "FONT" message.)
Here's an excerpt of some code of mine to illustrate what I'm doing:
…
TFont=Courier New,10,L,0"
Spacing=125
Stat=Set_Printer( "FONT", TFont, Spacing )
Stat=Set_Printer( "CALCTEXT", "Some text" )
Size=Get_Printer( "CALCTEXT" )
TextHeight=Size
…
In OIPI16 I get different values for TextHeight when I vary Spacing (e.g, try 125 and 100). In OIPI32 I get the same value.
Disclaimer: I haven't done all the relevant experiments now. Some of my conclusions are from indirect evidence.
- Oystein -
At 31 JUL 2003 09:23AM Gerald Lovel wrote:
Every now and then I run across a piece of code which says,
* If using version 2.11 then…
(code goes here)
* else using version 2.12 ….
(alternative code here)
How long ago was AREV 2.11, anyway?