Size of the Video Display

Under PCDOS, 25-line video displays are normal. Many terminals, however, are only 24-lines. Keep this in mind especially when you are placing and sizing windows, forms, menus, and other video output on the screen.

One tip is to use the functions vs_rowq(), which returns the number of rows on the screen, and vs_colq(), which returns the number of columns on the video display. Thus, instead of explicitly typing in a row or column number to create a status line on the last line of the screen, you can call:

WINDOWPTR statwnp;



statwnp = wn_def(vs_rowq() - 1, 0, 1, vs_colq(), LMESSAGE, BDR_NULLP);


Home Contents Previous Next