tiko 0.2.0 released (Dec 1, 2026)

Started by Paul Squires, December 01, 2026, 06:20:36 PM

Previous topic - Next topic

Paul Squires

tkEdit's Settings dialog and Project Options, and project.toml

This release is about the editor: every setting in one dialog, build configurations you edit in a form, and a project that builds with the same configurations as a single file.

New in 0.2.0
  • tkEdit's Settings dialog: every setting is on a page — open it from the Settings panel or with Ctrl+Comma. Its Builds page holds your build configurations, each edited in a form (optimisation, console or GUI, runtime checks, debug info, AddressSanitizer, warnings) with Paths and Defines for include and library folders and -d defines.
  • Project Options: one page in place of the old Project dialog — output file name, command line, compiler switches added to the build configuration you pick, folders to copy the output to, and a switch that creates the resource file and manifest. OK writes only what changed and keeps the file's comments.
  • One way to build: a project now builds with the same build configurations as a single file, picked in the status line's Build picker, whose Build Configurations... row opens Settings at the Builds page.
  • project.toml: a project file may be named project.toml as well as tiko.toml — one format, two names — and New Project writes project.toml. The language server and the VS Code extension know both names. See tiko build.
  • tiko build --profile none: a profile with no flags of its own, so --options alone says how the program is built — what tkEdit uses.
  • Fixes: an open .rc file no longer flashes a console window when tkEdit starts, and the Build, Encoding and Line ending pickers show a check mark on the one in force.
The Form Designer is unchanged in this release: build your first form with the step-by-step Contacts tutorial. The forms you design run on Windows, Linux and macOS.

Breaking changes: tkEdit now builds a project with a build configuration from Settings, no longer with the project's [profile.*] tables (tiko build in a terminal reads the file as before) — put a project's own switches in Project Options. New projects are written as project.toml, which a tiko older than 0.2.0 does not read.

Get it
Learn more
Paul Squires
PlanetSquires Software

Marc Giao

Marc

docroger

Hi,

Big problem for me : cannot compile my test app...
No more AFXnova in this version...

I put afxnova (download on github) in the tiki-lang inc folder and i get many errors on compile with dwstrprocs.inc...
The code use DDT.inc

I have not test another source...

With version 0.1 i can compile the same source...

Babababa...

The code :

'#TEMPLATE DDT Dialog - Animation demo
'#lang "fb"
#define UNICODE 1

#include once "Afxnova/DDT.inc"
USING DDT

DECLARE FUNCTION WinMain (BYVAL hInstance AS HINSTANCE, _
                          BYVAL hPrevInstance AS HINSTANCE, _
                          BYVAL szCmdLine AS ZSTRING PTR, _
                          BYVAL nCmdShow AS LONG) AS LONG
END WinMain(GetModuleHandleW(NULL), NULL, COMMAND(), SW_NORMAL)

DECLARE FUNCTION DlgProc (BYVAL hDlg AS HWND, BYVAL uMsg AS DWORD, BYVAL wParam AS DWORD, BYVAL lParam AS LPARAM) AS INT_PTR

' // Control identifiers
CONST IDC_START = WM_USER + 2048
CONST IDC_STOP = WM_USER + 2049
CONST IDC_ANIM = WM_USER + 2050

' ========================================================================================
' Main
' ========================================================================================
FUNCTION WinMain (BYVAL hInstance AS HINSTANCE, _
                  BYVAL hPrevInstance AS HINSTANCE, _
                  BYVAL szCmdLine AS ZSTRING PTR, _
                  BYVAL nCmdShow AS LONG) AS LONG

   ' // Set process DPI aware
   SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE)
   ' // Enable visual styles without including a manifest file
   AfxEnableVisualStyles

   ' // Create a new dialog
   DIM hDlg AS HWND = DialogNew(0, "Animation Demo",,, 185, 60, WS_CAPTION OR WS_SYSMENU)
   ' // Add controls to it
   ControlAddButton, hDlg, IDC_START, "&Start", 6, 40, 55, 14
   ControlAddButton, hDlg, IDC_STOP, "Sto&p", 65, 40, 55, 14, WS_DISABLED OR WS_TABSTOP
 '  ControlAdd "SysAnimate32", hDlg, IDC_ANIM, "", 6, 6, 172, 24, ACS_CENTER OR ACS_TRANSPARENT
   ControlAddAnimate, hDlg, IDC_ANIM, "", 6, 6, 172, 24, ACS_CENTER OR ACS_TRANSPARENT
   ControlAddButton, hDlg, IDCANCEL, "E&xit", 124, 40, 55, 14

   ' // Display and activate the dialog as modal
    DIM hico AS HICON
   hico = LoadImage(hInstance, Cast(LPCTSTR, 101), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR)
   'hicon=ExtractIconExW(GetModuleHandle(NULL), 101)
   'DialogSetIconEx(hDlg, hIconBig, hIconSmall)
   IF hIco THEN DialogSetIconEx(hDlg, hIco, hIco)
   'dialogseticon hdlg, 0
   DialogShowModal hDlg, @DlgProc

   RETURN DialogEndResult(hDlg)

END FUNCTION
' ========================================================================================

' ========================================================================================
' Dialog callback procedure
' ========================================================================================
FUNCTION DlgProc (BYVAL hDlg AS HWND, BYVAL uMsg AS DWORD, BYVAL wParam AS DWORD, BYVAL lParam AS LPARAM) AS INT_PTR
  
   STATIC hAnimate AS HWND
  
   SELECT CASE uMsg

      CASE WM_INITDIALOG
         hAnimate = ControlHandle(hDlg, IDC_ANIM)
         chdir(exepath)
         DIM wszName AS WSTRING * 260 ="FILECOPY.AVI"
         Animate_Open(hAnimate, @wszName)
         RETURN TRUE

      CASE WM_COMMAND

         ' Trap only click events
         IF CBCTLMSG(wParam, lParam) <> BN_CLICKED THEN EXIT SELECT

         SELECT CASE CBCTL(wParam, lParam)

            CASE IDC_START
               ControlDisable hDlg, IDC_START
               ControlEnable hDlg, IDC_STOP
               ControlSetFocus hDlg, IDC_STOP
               Animate_Play(hAnimate, 0, -1, -1)

            CASE IDC_STOP
               ControlDisable hDlg, IDC_STOP
               ControlEnable hDlg, IDC_START
               ControlSetFocus hDlg, IDC_START
               Animate_Stop(hAnimate)

            CASE IDCANCEL
               DialogEnd hDlg

         END SELECT

   END SELECT

   RETURN FALSE

END FUNCTION


rnbw

I have been using V0.2.0 and now I have lost the Menu Bar.  How can I retrieve it.

Johan Klassen

press Control comma then select Appearance and tick Menu bar

rnbw

Quote from: Johan Klassen on December 03, 2026, 06:49:15 AMpress Control comma then select Appearance and tick Menu bar
Thank you for that.  I've also been told elsewhere to use CTRL+SHIFT+M and this also works. I was getting a bit desperate because I needed to save some code and I wasn't aware of any short cuts.  I'm very new to Tiko and still finding my way.

Johan Klassen

I forgot about the CTRL+SHIFT+M shortcut, it's possible that you pressed that shortcut by accident and turned the Menu bar off

Paul Squires

Quote from: docroger on December 03, 2026, 05:29:00 AMI put afxnova (download on github) in the tiki-lang inc folder and i get many errors on compile with dwstrprocs.inc...
The code use DDT.inc
You will need to slightly modify the dwstrprocs.inc file to remove the "$" prefix from this statement.

' line 299
  ' pRegExp.Pattern = $"([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
  pRegExp.Pattern = "([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"

The latest version of tiko has a new feature, string interpolation, and it uses the "$" prefix to signal that feature. In the above code, the "{}" characters embedded in the string is what is causing the error. If you omit the leading "$" then the string is treated as a normal string, not an interpolation string.

Paul Squires
PlanetSquires Software

Paul Squires

@docroger

If you still have trouble getting your code to work then please let me know and I'll work with you to get it fixed.
Paul Squires
PlanetSquires Software

Paul Squires

Quote from: rnbw on December 03, 2026, 06:58:22 AM
Quote from: Johan Klassen on December 03, 2026, 06:49:15 AMpress Control comma then select Appearance and tick Menu bar
Thank you for that.  I've also been told elsewhere to use CTRL+SHIFT+M and this also works. I was getting a bit desperate because I needed to save some code and I wasn't aware of any short cuts.  I'm very new to Tiko and still finding my way.

Press CTRL+K to access all of the keyboard shortcuts.
- or -
Click the ""Keys" panel in the Statusbar at the bottom of the editor.

If you have any questions at all about using the editor of tiko in general then be sure to ask. tiko is a HUGE new compiler with substantial amounts of functions so it can be a bit overwhelming.

Paul Squires
PlanetSquires Software

docroger

My code with afxnova cant compile with newtiko... Many many errors compile...
Not usable for me...
The editor is very slow when typing code.
Disapointed...

Paul Squires

@docroger

There is an error in your earlier code that you posted.
Seems you were USING DDT, when it should be USING AFXNOVA

#include once "Afxnova/DDT.inc"
' USING DDT
USING AFXNOVA

If you make that change, and the one I outlined for the dwstrprocs.inc file:

' line 299
  ' pRegExp.Pattern = $"([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
  pRegExp.Pattern = "([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"

Now everything compiles on my machine with no errors.

QuoteThe editor is very slow when typing code.
I am not sure I understand. You mean there is a noticeable delay of the letter appearing on the screen after you hit a key on your keyboard? If that is the case, then try unchecking the options "Settings" called "Completion and Calltips" to see if that makes the experience smoother.

QuoteDisapointed...
I don't want you to be disappointed. Try the fixes I describe in the post to see if it helps.

Paul Squires
PlanetSquires Software