database publishing GASSENHUBER DATAform DBP  
 
   
First page  <<  >> Last page
First page  <<  >> Last page
II. DATAformTags 79 Developer handbook DATAformXTension © 1992-2004 www.gassenhuber.de {66-67} *Aa Anchor {66} *A Anchor in box [object number] This Tag defines the destination box in which the text box or the picture should be anchored. The object number is a DATAform object number. The destination box must be positioned before the anchored box in the text with DATAformTags. The box will be anchored in the destination boxes text. The place holder is in the text of the destination box at the anchoring point {{object number of the anchored box}}. The place hold- er consists of {{, the object number of the box that should be anchored at this position and closes with }}. ¶*T3*x0*y500*X120*Y650*39*F1*#20*$This is the text in which a text box will be anchored. At this position:{{33}} the text box should be anchored . ¶*T3*X70*Y42*A20*#33*$Text in the anchored text box¶ The text with DATAformTags creates this text box with an anchored box. Procedure At the end of the import procedure, DATAformXTension meets the box number #33 and the Tag *A20. It then looks for a text box with object number #20, the destination box for anchor- ing, and then looks in the text of the box for the place holder “{{33}}” and anchors the box at this position. When exporting anchored boxes the reverse occurs and instead of the anchored box the place holder is inserted in the text. The anchored boxes are then exported following the “mother box”. Box size Only two position details are required for anchored boxes: The width is transferred by the DATAformTag {8} *X The height is transferred by the DATAformTag {10} *Y Both the other position Tags {7} *x and {9} *y may be left out or must be set to zero. Example The following text with DATAformTags creates a picture box of 100 x 23 pt and anchors it in a text box: ¶*T3*x0*y500*X120*Y590*39*F1*#1517*$This is the text in which a picture will be anchored. At this position: {{1518}} the picture should be anchored.¶*T12*X100*Y23*A1517*#1518*Z3*$DATAformLogo¶