showCanvas


procedure showCanvas;

Displays the canvas on the device screen. The device screen can show either form or canvas. The form contains labels, images, text fields and other user interface elements. The canvas, on the other hand, does not contain user interface elements; it is an area that is painted by the program. When the MIDlet is started, the canvas is shown on the screen.

  var label_id, textField_id: integer;
  begin
    label_id := formAddString('Hello world');
    textField_id := formAddTextField('Enter your name', 'Mr.Smith', 20, TF_ANY);
    showForm;
    delay(2000);
    showCanvas;
    drawText('Hello world', 0, 0);
    repaint;
    delay(2000);
  end.

See also: showForm, Drawing on the screen