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
windowwith that parent name. - Buttons use
ClickedAlt = ClickActionto trigger a jump. You can use this to implement menus by placing labels andgototargets in your script.