OIPI - TEXTXY (OpenInsight)
At 06 SEP 2001 05:16:10PM Rick Todd wrote:
I'm trying to use the TEXTXY message to place text on specific location on the output but I get nothing. I've tried it with and without the POS message and I get the same result. If I use the TEXT message it works fine.
DECLARE FUNCTION SET_PRINTER
X=SET_PRINTER("INIT")
X=SET_PRINTER("POS",0:@FM:0)
X=SET_PRINTER("TEXTXY","This is a test of the emergency broadcasting system",500:@FM:500)
X=SET_PRINTER("TERM")
RETURN 0
Any Suggestions? Oh, another question. Is the X/Y row and coloumn like 80 column 66 row or is it based on pixels / DPI of the printer?
I'm currently sending the output to a HP DeskJet 932C.
Thanks
Rick
At 06 SEP 2001 06:57PM Oystein Reigem wrote:
Rick,
Since OIPI can print proportional fonts measurements are not in columns and lines. At least that's how it was in the old 16-bit OIPI, and I'd be surprised if the new version is different. I quote from the docs: The Units parameter of the INIT message determines what units are used by the Set_Printer and Get_Printer functions. The twips units are the smallest units used be the OIPI. One inch is equal to 1440 twips, and 1 point is equal to 20 twips. … 1=inches 2=mm 3=cm 4=twips 5=points.
Default is 1, i.e, inches. So perhaps your text was printed 4 floors down and out in the street.
![]()
- Oystein -
At 07 SEP 2001 08:55AM Donald Bakke wrote:
Rick,
We've had numerous problems using TEXTXY with certain printers, especially inkjets. The usual problem is that nothing prints. This might be your problem as well, or, as Oystein suggests, your neighbor's printer is getting your test prints.
We almost exclusively use ADDTABLE for all printing, whether or not we are printing one or more columns.
At 07 SEP 2001 09:22AM Don Miller - C3 Inc. wrote:
BTW .. FYI, there's a neat little piece of freeware called SCALE.ZIP that will put a ruler on your desktop. It will measure in in, mm, points, twips, etc. Very useful in figgering out where OIPI should put things using Addtable ..
An excerpt from the README.TXT:
Scale v. 1.0 - FREE WARE - Win 9x
Needs the vb40032.dll - comes with the install
This program puts a scale to measure the size of objects in your screen. It offers different scales: twips, pixels, inches, centimeter, character and points. You can drag the scale over the screen in vertical or horizontal position.
Installation
Unzip the files in the same directory. The scale.exe executes the program. The tray_scale.exe puts an icon in the system tray to open the main program.
ATTENTION: Do not change the name of the programs.
To uninstall just erase the files.
Ricardo Sgrillo
Thought it might be useful to you.
Don Miller
C3 Inc.
At 07 SEP 2001 01:37PM Oystein Reigem wrote:
Don,
Neat. Might come in handy when I start up OIPI development again.
But that will be after the OIPI installation stuff's been sorted out. Is it really so that nobody got the new Pro version working yet?
- Oystein -