GoCode Windows and UI - Owen2k6/GoOS GitHub Wiki

Windows & UI

GoCode can create simple GoOS windows and place clickable buttons.

window=Name=width=height

Creates a window, sets its Title to Name, size to width×height, clears with LightGray, draws a system border, shows it, and registers it in the Windows table.

Example:

window=MyApp=400=240

button=Parent=ButtonName=width=height=x=y=clickLine

Creates a Button inside the Parent window at position (x,y) with the given size. The button's text is ButtonName. Clicking the button jumps the interpreter to clickLine by setting the internal instruction index.

Example:

window=MyApp=320=180
button=MyApp=OK=80=24=12=120=25

When the user clicks OK, execution continues at line 25 (1‑based in the source).

Notes

  • The interpreter must already have a window with that parent name.
  • Buttons use ClickedAlt = ClickAction to trigger a jump. You can use this to implement menus by placing labels and goto targets in your script.
⚠️ **GitHub.com Fallback** ⚠️