Defining a Virtual Data Form in Code

Code: A virtual form is defined using the virtual form definition function fm_vdef():

DFORMPTR fm_vdef(rb, cb, rowq, colq, att, bdrp, vf_rowq, vf_colq)
 
int rb;
/* Beginning row of form window
*/
int cb;
/* Beginning column of form window
*/
int rowq;
/* Number of rows in form window
*/
int colq;
/* Number of columns in form window
*/
UCHAR att;
/* Form window video attribute
*/
BORDERPTR bdrp;
/* Form window border pointer
*/
int vf_rowq;
/* Number of rows in form
*/
int vf_colq;
/* Number of columns in form
*/

All arguments for fm_vdef() are the same as fm_def() except for the two additional arguments, vf_rowq and vf_colq. These two arguments specify the size of the underlying data form. When defining items on the data form, you can use the entire area of the form.


Home Contents Previous Next