@ ... TO DOUBLE Not Working in FoxPro for Windows

ID: Q105594

The information in this article applies to:

SUMMARY

The @ ... TO command is used to draw a box, circle, or ellipse using the coordinates specified. If the DOUBLE clause is used, the line that is drawn has a double border. However, the DOUBLE clause does not work in FoxPro for Windows unless the output font is FoxFont.

MORE INFORMATION

The following command demonstrates this phenomenon:

   @ 2,2 to 2,110 DOUBLE

The above command should draw a horizontal line with a double border. The double border does not appear unless the default font of the current output device is FoxFont. This behavior occurs because the double line is drawn using the box-drawing character set, and FoxFont is the only screen font that includes this character set.

The paragraphs that follow are taken from the Help file information for this command:

   Caution: In FoxPro for Windows, if FoxFont is the current font
   and the PATTERN, PEN and STYLE clauses aren't included,
   rectangles are drawn with the FoxFont box drawing characters.
   This provides compatibility with earlier versions of FoxPro.

   If FoxFont isn't the current font, or if FoxFont is the current
   font and a PATTERN, PEN or STYLE clause is included, rectangles
   are drawn using Windows-style graphics. A rectangle drawn with
   the FoxFont box-drawing characters and the same rectangle drawn
   with Windows graphics are drawn at slightly different positions.

Additional reference words: FoxWin 2.50 DOUBLE HELP KBCategory: kbprg KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995