Please enable JavaScript to view this site.

A-Shell Development History

Implement new GDI print pommand SETVMI to set vertical line spacing.

//SETVMI,#

Where # is the desired number of units (must be an integer) in the current map mode to set the "Vertical Motion Increment" to—i.e., vertical line spacing. This can be useful when filling in pre-designed forms that require a certain uniform line spacing that isn't quite what you would otherwise get from setting the LPP value in the printer init file or by setting a particular font and then using //ResetLPP.

Note that if you want 6 lines per inch, to be precise, you may need to first switch to a the TWIPS mapmode, since it's units per inch can be evenly divided by 6. For example:

//SETMAPMODE,TWIPS

//; set 6 lines per inch (1440/240 = 6)

//SETVMI,240

 

You can then switch back to another map mode, but that defeats the purpose, since the units will be converted and rounded down. So converting to LOENGLISH, for example, would give you the equivalent of //SETVMI,16. (In that case, you might have done better by just setting //SETVMI,17).