I'm finally starting to post questions regarding the legacy code port that I have to do. I am starting by converting my low-level video functions, so things are starting off with very basic display issues:
The following code produces strange results for me:
- Code: Select all Expand view
#include "fivewin.ch"
FUNCTION Main()
local oWnd, cText := "GET_TEXT"
DEFINE WINDOW oWnd TITLE "TEST WINDOW"
@ 2, 2 SAY "SAY_TEXT" COLOR 1
@ 2, 30 GET cText
@ 3, 10 BUTTON "&Button" SIZE 80, 20
ACTIVATE WINDOW oWnd
RETURN NIL
First, I have to specify COLOR in the SAY statement, or the text does not appear (perhaps it is being rendered in the Windows background colour?)
Second, the text being rendered by the SAY statements is truncated, it appears that the label is not correctly calculating the length required for the ALL CAPS text. If so, how can I help @ .. SAY .. better calculate this?
Third, SAY and GET are both defined on row 2, but they do not actually display in line wth each other.
Thanks,
Carlo[/img]