Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • "CharWidth": The width of each character cell in pixels.
  • "CharHeightCharLength": The height of each character cell in pixels.
  • "BackgroundColor": The background color of the text field as an integer specifying eight bits (for each) for red, green and blue in the form &Hrrggbb.
  • "TextColor": The color of the text as an integer specifying eight bits (for each) for red, green and blue in the form &Hrrggbb.
  • "Size": An alternative to "CharWidth" and "CharHeightCharLength" for specifying either normal size text (0) or double-sized text (1).\
Note
titleNote

In TV modes, a border around the screen may not be displayed due to overscanning. You may want to use the roVideoMode object functions GetSafeXfunctions GetSafeX() and GetSafeY and GetSafeY() to ensure that the coordinates you use will be visible.

...

Code Block
titleExample
meta = CreateObject("roAssociativeArray")
meta.AddReplace("CharWidth", 20)
meta.AddReplace("CharHeightCharLength", 32)
meta.AddReplace("BackgroundColor", &H101010) ' Dark grey
meta.AddReplace("TextColor", &Hffff00) ' Yellow
vm = CreateObject("roVideoMode")
tf = CreateObject("roTextField", vm.GetSafeX(), vm.GetSafeY(), 20, 20, meta)
print #tf, "Hello World"
tf.SetCursorPos(4, 10)
print #tf, "World Hello"

...