After smoothly re-compiling my Clipper (FoxPro) application to FlagShip, the screen output/coordinates do not match. Why?
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
- I have the GoogleMaps application installed and when I try to Map a query result, the screen just flashes and returns to the application launcher. Whats wrong?
- After smoothly re-compiling my Clipper (FoxPro) application to FlagShip, the screen output/coordinates do not match. Why?
- Can a screen reader be used to complete the Florida Bar Application and the Florida Bar Examination Application?