Using frames

Navigation:  vpxPrint tags > Frames >

Using frames

Previous pageReturn to chapter overviewNext page

 

After a frame definition, you must set the starting frame by a use instruction.

 

<USE>        

 

Syntax: <USE#n[,AUTO]>

 

Tells to vpxPrint that every characters must be sent to the named frame #n

Each character output is then derived to the named frame, switching automatically to the next one, if available. If AUTO option is specified and there is no next frame and no room for inserting the text, then vpxPrint skip to the next page and displays text in the first frame defined by the <USE> tag.

If AUTO option is not specified then text is truncated.

 

vpxPrint frames are word-wrap frames. To reset the frame writing, use </USE> and you can use the full-page area again.

 

NOTES: frames are text containers. Do not use lines and rectangles or position to <R> <C> <AT> when writing to a frame. Lines and rectangles are not affected by the frame setting but alter the current cursor position. The next frame printing could be unpredictable. </USE> closes the current active PROGRESS frame. If you want to leave the PROGRESS frame opened, use </USE=PROGRESS>

 

Manual switching

 

 

<NEXTFRAME>        

Tells vpxPrint to switch to the next frame in the chain.

 

Syntax: <NEXTFRAME>

 

Programming notes :

A form feed while writing to a frame always skip to a new page and starts the writing at the first frame in the page previously defined by the <USE> statement.

 

A frame set can be a good solution to set top, bottom, right and left margins. See the coding in the demo program.