Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

After smoothly re-compiling my Clipper (FoxPro) application to FlagShip, the screen output/coordinates do not match. Why?

0
Posted

After smoothly re-compiling my Clipper (FoxPro) application to FlagShip, the screen output/coordinates do not match. Why?

0

In Terminal i/o mode, the coordinates are same as in Clipper/Fox and the application should behave equivalently. In GUI mode, FlagShip uses your default GUI font which is usually proportional (the letter “X” is wider than “i” or space). The easiest way is to use fixed font, i.e. specifying SET FONT “courier” at the begin of your main (you may enclose it in #ifdef FlagShip … #endif to stay backward/cross compatible to Clipper). Otherwise you may use pixels (the PIXEL clause) or calculate the column position according to text width, e.g. by using the Strlen2col(), Strlen2pixel(), Strlen2space(), Col2pixel() functions. You also may control the line height by using pixels, decimal fractions of row() or re-define default settings from …/system/initio.prg. For further details, refer to fsman section LNG.5.3, LNG.9.6-9.7, CMD and FUN as well as the examples directory. Note: for Foxbase/FoxPro sources, use the -fox compiler switch, see above and fsman section FSC.1.3.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123