Tutorials
Tutorials are step-by-step guides focused on specific topics. For a categorical reference of language constructs, see the Reference section; for feature overviews, see Features.
Foundations:
- Hello World – create a Standard EXE project, drop a button onto a form, and run your first twinBASIC application. No prior experience assumed.
- Forms basics – adding controls to a form, naming conventions, the Properties window, common events, and runtime vs. design-time property changes. Builds a temperature converter.
- Calling the Windows API – writing
Declarestatements, 32/64-bit considerations withPtrSafeandLongPtr, and reading error information. Tracks the mouse cursor position live. - Writing unit tests with Assert – the Assert package’s three modules, test-Sub patterns, running from the CodeLens bar or F5, and testing error paths.
Reference topics:
- Arrays – fixed and dynamic arrays,
DimandReDim, bounds, and multi-dimensional shapes. No prior twinBASIC experience assumed.
Control and browser embedding:
- CustomControls – building owner-drawn controls with the
Waynes…framework: painting, event handling, the property sheet, and the DESIGNER surface. - WebView2 – embedding the Microsoft Edge runtime inside a form: local asset hosting, JavaScript interop, message exchange, and a Monaco-editor case study.
- CEF – embedding Chromium inside a form: the same patterns as WebView2 but with a developer-controlled browser runtime that ships alongside the application.