New Window (gb.ncurses)

Dim hWindow As Window
hWindow = New Window ( [ BorderFrame As Boolean, X As Integer, Y As Integer, W As Integer, H As Integer ] ) [ As "EventName" ]

Creates a new Window:
  • Missing coordinates default to 0

  • Missing dimensions default to screen maxima

  • A missing event name will attach the newly created object to the program startup class assigning it the event name "Window"

A newly created Window is appended to the top of the panel stack.

Since this class is auto-creatable, a full-screen Window is usable upon program start.
Keep in mind that you cannot specify an event name to the auto-creatable instance. Consequently, it will be attached to the startup class as "Window" (like all the others). One cannot handle events of that Window outside the startup class unless one utilises Observer.

Examples

' Display a centred message window
Dim hMessage As New Window((Window.- 9) / 2, (Window.- 1) / 2, 9, 1)

hMessage.Print("Surprise!")