[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question from a newbie named Newby
From: |
Jeff Kingston |
Subject: |
Re: Question from a newbie named Newby |
Date: |
Wed, 27 Apr 2005 07:45:08 +1100 |
However you solve your problem, you badly need to
put the solution in a definition in your mydefs
file. I put this in a mydefs file:
import @BasicSetup
def @InventoryItem
named isbn {}
named prodnum {}
named listprice {}
named memberprice {}
named availdate {}
named distrplan {}
named remarks {}
{
@Box
{
6c @Wide { ISBN @Underline { isbn &1rt } } &2s
6c @Wide { PRODUCT NUMBER @Underline { prodnum &1rt } }
@LLP
6c @Wide { LIST PRICE @Underline { listprice &1rt } } &2s
6c @Wide { MEMBER PRICE @Underline { memberprice &1rt } }
}
}
It's incomplete, but it handles your underline continuing
problem. I tried this test file:
@SysInclude { doc }
@Doc @Text @Begin
@CD @Heading { Test of Inventory Items }
@InventoryItem
isbn { 1-8407-2716-0 }
prodnum { 30234 }
listprice { $23.03 }
memberprice {}
availdate { 01-jan-2006 }
distrplan { Backorder }
remarks {}
@End @Text
and it all seemed to work. Don't forget to separate your
inventory items with a paragraph symbol (@LP, @DP etc.)
or else put them in a list, when there is more than one.
Jeff Kingston
ps The & symbol is from raw Lout, you probably would have
to look up the Expert's Guide to read about it. &2s just
leaves two spaces between the two items on each line,
while &1rt right-justifies the bit of nothing immediately
to its right, giving the underlining a reason for going on.
pps you could probably get this to work much the same in
a table, rather than using 6c @Wide ... . But my
experience of forms is that you typically do want to
tie them down to particular dimensions, so that they
all look the same whatever they happen to contain.