| xHarbour Reference Documentation > Command Reference |
![]() |
![]() |
![]() |
Displays a single or double lined frame on the screen.
@ <nTop>, <nLeft> TO <nBottom>, <nRight> ;
[COLOR <cColor>] [DOUBLE]
The @...TO command displays a frame on the screen using the standard color of SetColor() or <cColor>, if specified.
When the frame is completely drawn, the cursor is positioned at the coordinates <nTop>+1 and <nLeft>+1, so that Row() and Col() can be used to start displaying text in the upper left corner of the frame area.
| See also: | @...BOX, @...CLEAR, DispBox() |
| Category: | Output commands |
| Source: | rtl\box.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example displays two frames using different colors and
// borders.
PROCEDURE Main
CLS
@ 10, 5 TO 20, 35 COLOR "W+/B"
@ Row(), Col() SAY "Single"
@ 10, 45 TO 20, 75 COLOR "N/BG" DOUBLE
@ Row(), Col() SAY "Double"
RETURN
http://www.xHarbour.com