GoCode Windows and UI - Owen2k6/GoOS GitHub Wiki
GoCode can create simple GoOS windows and place clickable buttons.
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
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 andgoto
targets in your script.