Ships with the tiko toolchain · MPL 2.0

GUI controls for tiko that look the same on every system

tkControls is a set of 62 owner-drawn controls written in tiko on SDL3: a data grid, charts, a code editor, date and time pickers, printing and reports. One program builds for Windows, Linux and macOS without changes.

61controls and components
3 OSesWindows, Linux (x86-64 and arm64), macOS
27controls are data-binding aware
Light + darkthemes, or your own palette
Flagship

tkDataGrid Bind list

A data grid with typed columns that are edited in place. It handles 10 rows or 100 million: only the visible cells are read and painted.

  • Text, number, check, combo, date, button, link and progress columns
  • Frozen columns, row headers, and columns that resize, autosize and reorder
  • Cell and row selection, with Ctrl+C / Ctrl+V as tab-separated text
  • In-place editors that parse input, with a row transaction
  • Sort, filter, and a block cache for slow data sources
  • tkDataGridSqlite shows an SQLite query as the rows

Also in the boxControls and components without a screenshot here. Each one has a reference page.

Data binding

Bind a form to a record

In the Form Designer, set the form's DataType to your record type and each control's Bind to one of its fields. The generated form gets LoadFrom and SaveTo, and the type conversions, validation and error messages come with them.

  • BindBoth ways. LoadFrom shows the field. SaveTo checks every bound control first and writes nothing unless all of them pass: abc for a number, 300 for a ubyte, 31 February.
  • Bind (in)Display only. Labels, badges and info bars show a field, and SaveTo leaves it alone.
  • Bind listLists. Grids, list trees, combo boxes and reports fill from an Array( of T ). A navigator steps through the records, and the grid also takes an SQLite query.

A field can be a boolean, any integer or float type, string, ustring, or a date, time or chrono.DateTime. Loading triggers no Change handlers, and a misspelled field name is a compile error.

Data binding in the Form Designer →
  frmContact.tiko
sub Form.Edit( byref c as contactdb.Contact )
    LoadFrom( c )         '' every bound control shows its field
end sub

sub Form.btnOK_Click( )
    SaveTo( Person )      '' validated, then written back
    EndModal( 1 )
end sub

Try them

The controls ship with tiko. Every control has a demo and a self-test in examples/tkControls/, and the Contacts Tutorial builds a complete SQLite address book in the Form Designer.