Please enable JavaScript to view this site.

A-Shell Development History

XTEXT enhancement: Margin, paper size and orientation specifications. New fields added to TXTCTL (see below). These are mainly only of interest in TXF_PRINTVIEW mode.

MAP1 TXTCTL

    ...

    MAP2 TXC'HFLAGS2    ,B,4        ! 246 HTML flags

    MAP2 TXC'MGNLEFT    ,B,2        ! 250 left margin (twips)

    MAP2 TXC'MGNRIGHT   ,B,2        ! 252 right margin (twips)

    MAP2 TXC'MGNTOP     ,B,2        ! 254 top margin (twips)

    MAP2 TXC'MGNBOTTOM  ,B,2        ! 256 margin margin (twips)

    MAP2 TXC'MGNHEADER  ,B,2        ! 258 header margin (twips)

    MAP2 TXC'MGNFOOTER  ,B,2        ! 260 footer margin (twips)

    MAP2 TXC'PAPERSIZE  ,B,2        ! 262 paper size (see DMPAPER_xxx)

    MAP2 TXC'ORIENT     ,B,1        ! 264 orientation (0=dflt, 1=port, 2=land)

    MAP2 TXC'UNUSED     ,B,1        ! 265 (266 total)

 

Note: the original size of TXTCTL was 256, so it may be that existing applications or functions have a 256 byte limit which would make the fields starting from TXC'MGNBOTTOM be invisible. For the same reason, if using XTEXT from ATE, both server and client would need to be at 5.1.1149 or higher in order for all the new fields to work.