TT BASIC Studio 0.12
===================

NEDERLANDS
Start C:\TTBASIC\TTBASIC.PRG.
Project > OO-voorbeeld laden, daarna F5 voor het objectvoorbeeld.
Imports "COUNTER.BAS" gebruikt de klasse uit een extern bestand.
Klik links op een importbestand om het te bewerken.
F5 start MAIN.BAS met de werkversies van alle geopende bestanden.
F2 slaat het actieve bestand op en bewaart de vorige versie als .BAK.
Beeld > Nederlands / English / Deutsch kiest de interfacetaal.

ENGLISH
Start C:\TTBASIC\TTBASIC.PRG.
Project > Load OO example, then F5 runs the object example.
Imports "COUNTER.BAS" loads a class from an external source file.
Click an imported file in the project tree to edit it.
F5 runs MAIN.BAS using the current contents of all open files.
F2 saves the active file, preserving the previous version as .BAK.
View > Nederlands / English / Deutsch selects the interface language.

DEUTSCH
C:\TTBASIC\TTBASIC.PRG starten.
Projekt > OO-Beispiel laden, danach F5 fuer das Objektbeispiel.
Imports "COUNTER.BAS" laedt eine Klasse aus einer externen Datei.
Importdateien im Projektbaum anklicken, um sie zu bearbeiten.
F5 startet MAIN.BAS mit den Arbeitsfassungen aller offenen Dateien.
F2 speichert die aktive Datei mit .BAK-Sicherung der alten Version.
Ansicht > Nederlands / English / Deutsch waehlt die Oberflaechensprache.

F1 Help / Hilfe
F2 Save / Opslaan / Speichern
F3 Reload / Laden
F4 Properties / Eigenschappen / Eigenschaften
F5 Run / Uitvoeren / Starten
F6 Find next / Volgende zoeken / Weitersuchen
Ctrl+F Find / Zoeken / Suchen
Ctrl+Z Undo (one step / een stap / ein Schritt)
Ctrl+C/X/V Copy/cut/paste whole line / Hele regel / Ganze Zeile
Ctrl+Q Quit / Afsluiten / Beenden

Manuals / Handleidingen / Handbuecher:
https://github.com/PanzerFaustNL/ttbasic/tree/main/docs

256 lines per file, 159 ASCII chars per line; 16 files per project.
Numeric values: -1000000 .. +1000000.
Classes, constructors, Public/Private fields, Sub, Function and Return.
If/ElseIf/Else, While/Wend, Do/Loop, For/Next, For Each and Select Case.
String variables, arrays, collections, Input, inheritance and interfaces.
Project menu: FLOW.BAS, POLY.BAS and INPUT.BAS examples.
Escape stops a running program. Cancel stops an Input dialog.
Pure C: absolute calls (-P), 512 KiB stack.
One-dimensional arrays, 128 items; 32 array/collection allocations per run.
Strings: 127 chars; GEM Input: 63 chars; execution limit: 1000000 steps.
No standalone BASIC compiler yet.
Built and tested in Hatari / Pure C; physical TT validation pending.

PROJECTS / PROJECTEN / PROJEKTE (0.5)
Ctrl+N: New project / Nieuw project / Neues Projekt
Ctrl+O: Open .TBP project / Project openen / Projekt oeffnen
F7: New source file / Nieuw bestand / Neue Datei
Ctrl+F7: Add existing .BAS / Bestand toevoegen / Datei hinzufuegen
Ctrl+Shift+S: Save all / Alles opslaan / Alles speichern

New projects: C:\TTBASIC\PROJECTS\NAME\NAME.TBP + MAIN.BAS.
Use 1-8 characters for the project name (TOS filenames).
Existing files from other folders are copied; originals are preserved.
Use Imports "MODEL.BAS" in MAIN.BAS to execute a module.
The .TBP remembers membership; the last project reopens on startup.
Projects use relative paths, .PTM temporary manifests and .PBK backups.

GEM / DEBUGGER (0.7)
Project > GEM-voorbeeld laden / Load GEM example / GEM-Beispiel laden.
F5: Run / Continue
F8: Step into / Stap in / Einzelschritt
Shift+F8: Step over / Stap over / Prozedurschritt
Ctrl+Shift+F8: Step out / Stap uit / Prozedur verlassen
F9: Breakpoint / Haltepunkt (also click the left margin)
Ctrl+P: Request pause / Pauze aanvragen / Pause anfordern
Ctrl+I: Inspect variable / Variabele / Variable
Escape: Stop
Open GEMDEMO.TBP or DEBUG.TBP via File > Open project.
Window, Button, Label, TextBox, CheckBox; AddHandler and RemoveHandler.
A paused program is read-only. No standalone compiler yet.

FORM DESIGNER / FORMULIERONTWERPER / FORMULARENTWURF (0.8)
Ctrl+Shift+D: New form project / Nieuw formulierproject / Neues Formular
Ctrl+D: Open designer / Ontwerper openen / Entwurf oeffnen
Toolbox: Button, Label, TextBox, CheckBox; click on form to place.
Drag: move. Bottom-right corner: resize. Arrow keys: move 8 pixels.
Shift+arrow: resize. Ctrl+arrow: pan. Delete: remove. Ctrl+Z: undo.
F4: event code. F5: apply and test. F2 / Ctrl+S: apply and save.
Open DESIGN.TBP for a complete editable example.
Keep handwritten event code outside the marked @TTFORM layout region.
Existing handlers are preserved; renaming objects does not refactor user code.
One designer form per project, max 16 controls, source limit 256 lines.

MIDI / DX7 (0.9)
Project > DX7 MIDI-demo openen / Open DX7 MIDI demo.
Or File > Open project: C:\TTBASIC\DX7DEMO.TBP, then F5.
Starts in DRY RUN. Send MIDI OUT enables actual transmission.
Physical TT: MIDI OUT -> DX7 MIDI IN; audio comes from the DX7.
Mac/Hatari: select the USB-MIDI PortMidi output before enabling.
Original DX7: matching channel; System Information available;
Memory Protect off for parameter SysEx (see Yamaha manual).
Demo: internal voice 1-32, algorithm 1-32, feedback 0-7,
operator 1-6, output level 0-99, test note 60, note off and Panic.
DX7.BAS contains the reusable BASIC class and SysEx encoding.
Own notes are released on stop/end/error and debugger pause.
No MIDI input, patch-bank transfers or stored-patch writes.
No connection detection; physical DX7 testing still pending.

LANGUAGE / TAAL / SPRACHE (0.10)
Single/Double, decimal literals and scientific notation are supported.
Integer/Long are signed 32-bit aliases. Use / for real division and \ for
integer division. Fractions require explicit conversion for integer targets.
CInt/CLng round ties to even; Fix truncates, Int rounds down.
Math: ^, Abs, Sgn, Sqr, Sin, Cos, Tan, Atn, Exp, Log (radians).
Typed array fields and ReDim Preserve Me.field(...) are supported.
Single and Double are reserved type names; rename methods named Double.
See chapter 20 of the NL/EN/DE manuals for examples and migration.
This is a bounded VB-inspired dialect; see README for remaining limits.

0.11 - APPS / DEBUG / TRY-CATCH
NL: Ctrl+E bouwt een zelfstandige PRG; TTRUN.PRG moet naast Studio staan.
EN: Ctrl+E builds a standalone PRG; keep TTRUN.PRG beside Studio.
DE: Ctrl+E erstellt eine eigene PRG; TTRUN.PRG neben Studio behalten.
Ctrl+R Run/Continue, Ctrl+T Into, Ctrl+Shift+T Over, Ctrl+Alt+T Out.
Ctrl+B Breakpoint, Ctrl+P Pause, Ctrl+I Inspect, Esc Stop.
F5/F8/F9 remain available. Open TRYDEMO.TBP for Try/Catch/Throw.
Standalone PRGs embed the interpreter and sources, not native BASIC code.
They run without Studio/Pure C/source files; debug source projects in Studio.
See manual chapter 21 for usage and limits.

0.12 - LISTBOX / COMBOBOX / RADIOBUTTON / MESSAGEBOX
Open CONTROLS.TBP. Ctrl+R runs; Ctrl+D opens the form designer.
ListBox supports multiple selection, items, Count/ListIndex and Change.
ComboBox allows typing; Ctrl+Space opens its list, Esc cancels the popup.
RadioButton/OptionButton groups0..31 are independent per Window.
MessageBox.Show(text, buttons, title): OK1 Cancel2 Yes6 No7.
See manual chapter22 for methods, keyboard operation and limits.
Install both TTBASIC.PRG and the matching TTRUN.PRG template.
