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

docroger

Hi,

I precise : the example code, is not my code (i am a poor coder), this is José example.
It compile fine with tiko 1.2 or 1.3.

I just add lines for have icon on dialog window :

  DIM hico AS HICON
   hico = LoadImage(hInstance, Cast(LPCTSTR, 101), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR)
   IF hIco THEN DialogSetIconEx(hDlg, hIco, hIco)

And that code works too.

I follow your advice, and the code always dont compile.
Here is the log ( a poem) :

QuoteFailed Compile (Errors 29 Warnings 0)

Primary Source: D:\xxx\xx\freebasic\xxxxxx\EX_DDT_Animate.bas
Compile Time: 1.4 seconds (2026-12-04 09:40:48)

"D:\xxx\xx\freebasic\tiko-lang\tiko.exe" build D:\xxx\xx\freebasic\xxxxxx\EX_DDT_Animate.bas --message-format json -target windows-x86_64 --options "-O2 -s gui" --diagnostics-file C:\Users\xxxx\AppData\Roaming\tkEdit\build.diagnostics
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/DWSTRProcs.inc(975,48): error TKO1303: interpolated string: a hole needs an expression
    |
 975 |    Dim PunctSymbols AS DWSTRING = $" .,!?:;()[]{}\""-'?"  ' // List of punctuation symbols
    |                                                ^~
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/DWSTRProcs.inc(299,41): error TKO0400: expected an expression
    |
 299 |    pRegExp.Pattern = $"([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
    |                                        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(88,9): error TKO0600: 'adjustwindowrectexfordpi' is already declared in this scope
    |
  88 | DECLARE FUNCTION AdjustWindowRectExForDpi (BYVAL lpRect AS RECT PTR, BYVAL dwStyle AS DWORD, BYVAL bMenu As WINBOOL, _
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7614,9): note: declared here
    |
7614 | DECLARE FUNCTION AdjustWindowRectExForDpi LIB "user32.dll" ALIAS "AdjustWindowRectExForDpi" (BYVAL lpRect AS RECT PTR, BYVAL dwStyle AS DWORD, BYVAL bMenu AS BOOL, BYVAL dwExStyle AS DWORD, BYVAL dpi AS UINT) AS BOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(90,9): error TKO0600: 'aredpiawarenesscontextsequal' is already declared in this scope
    |
  90 | DECLARE FUNCTION AreDpiAwarenessContextsEqual (BYVAL dpiContextA AS DPI_AWARENESS_CONTEXT, BYVAL dpiContextB AS DPI_AWARENESS_CONTEXT) AS WINBOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7615,9): note: declared here
    |
7615 | DECLARE FUNCTION AreDpiAwarenessContextsEqual LIB "user32.dll" ALIAS "AreDpiAwarenessContextsEqual" (BYVAL dpiContextA AS DPI_AWARENESS_CONTEXT, BYVAL dpiContextB AS DPI_AWARENESS_CONTEXT) AS BOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(91,9): error TKO0600: 'enablenonclientdpiscaling' is already declared in this scope
    |
  91 | DECLARE FUNCTION EnableNonClientDpiScaling (BYVAL hwnd AS HWND) AS WINBOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7616,9): note: declared here
    |
7616 | DECLARE FUNCTION EnableNonClientDpiScaling LIB "user32.dll" ALIAS "EnableNonClientDpiScaling" (BYVAL hwnd AS HWND) AS BOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(92,9): error TKO0600: 'getawarenessfromdpiawarenesscontext' is already declared in this scope
    |
  92 | DECLARE FUNCTION GetAwarenessFromDpiAwarenessContext (BYVAL value AS DPI_AWARENESS_CONTEXT) AS DPI_AWARENESS
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7617,9): note: declared here
    |
7617 | DECLARE FUNCTION GetAwarenessFromDpiAwarenessContext LIB "user32.dll" ALIAS "GetAwarenessFromDpiAwarenessContext" (BYVAL value AS DPI_AWARENESS_CONTEXT) AS DPI_AWARENESS
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(93,9): error TKO0600: 'getdialogcontroldpichangebehavior' is already declared in this scope
    |
  93 | DECLARE FUNCTION GetDialogControlDpiChangeBehavior (BYVAL hwnd AS HWND) AS DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7618,9): note: declared here
    |
7618 | DECLARE FUNCTION GetDialogControlDpiChangeBehavior LIB "user32.dll" ALIAS "GetDialogControlDpiChangeBehavior" (BYVAL hwnd AS HWND) AS DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(94,9): error TKO0600: 'getdialogdpichangebehavior' is already declared in this scope
    |
  94 | DECLARE FUNCTION GetDialogDpiChangeBehavior (BYVAL hDlg AS HWND) AS DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7619,9): note: declared here
    |
7619 | DECLARE FUNCTION GetDialogDpiChangeBehavior LIB "user32.dll" ALIAS "GetDialogDpiChangeBehavior" (BYVAL hDlg AS HWND) AS DIALOG_CONTROL_DPI_CHANGE_BEHAVIORS
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(95,9): error TKO0600: 'getdpiawarenesscontextforprocess' is already declared in this scope
    |
  95 | DECLARE FUNCTION GetDpiAwarenessContextForProcess (BYVAL hProcess AS HANDLE) AS DPI_AWARENESS_CONTEXT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7620,9): note: declared here
    |
7620 | DECLARE FUNCTION GetDpiAwarenessContextForProcess LIB "user32.dll" ALIAS "GetDpiAwarenessContextForProcess" (BYVAL hProcess AS HANDLE) AS DPI_AWARENESS_CONTEXT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(96,9): error TKO0600: 'getdpiforsystem' is already declared in this scope
    |
  96 | DECLARE FUNCTION GetDpiForSystem() AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7621,9): note: declared here
    |
7621 | DECLARE FUNCTION GetDpiForSystem LIB "user32.dll" ALIAS "GetDpiForSystem" () AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(97,9): error TKO0600: 'getdpiforwindow' is already declared in this scope
    |
  97 | DECLARE FUNCTION GetDpiForWindow (BYVAL hwnd AS HWND) AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7622,9): note: declared here
    |
7622 | DECLARE FUNCTION GetDpiForWindow LIB "user32.dll" ALIAS "GetDpiForWindow" (BYVAL hwnd AS HWND) AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(98,9): error TKO0600: 'getdpifromdpiawarenesscontext' is already declared in this scope
    |
  98 | DECLARE FUNCTION GetDpiFromDpiAwarenessContext (BYVAL value AS DPI_AWARENESS_CONTEXT) AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7623,9): note: declared here
    |
7623 | DECLARE FUNCTION GetDpiFromDpiAwarenessContext LIB "user32.dll" ALIAS "GetDpiFromDpiAwarenessContext" (BYVAL value AS DPI_AWARENESS_CONTEXT) AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(99,9): error TKO0600: 'getsystemdpiforprocess' is already declared in this scope
    |
  99 | DECLARE FUNCTION GetSystemDpiForProcess (BYVAL hProcess AS HANDLE) AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7624,9): note: declared here
    |
7624 | DECLARE FUNCTION GetSystemDpiForProcess LIB "user32.dll" ALIAS "GetSystemDpiForProcess" (BYVAL hProcess AS HANDLE) AS UINT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(100,9): error TKO0600: 'getsystemmetricsfordpi' is already declared in this scope
    |
 100 | DECLARE FUNCTION GetSystemMetricsForDpi (BYVAL nIndex AS int_, BYVAL dpi AS UINT) AS int_
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7625,9): note: declared here
    |
7625 | DECLARE FUNCTION GetSystemMetricsForDpi LIB "user32.dll" ALIAS "GetSystemMetricsForDpi" (BYVAL nIndex AS int_, BYVAL dpi AS UINT) AS int_
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(101,9): error TKO0600: 'getthreaddpiawarenesscontext' is already declared in this scope
    |
 101 | DECLARE FUNCTION GetThreadDpiAwarenessContext () AS DPI_AWARENESS_CONTEXT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7626,9): note: declared here
    |
7626 | DECLARE FUNCTION GetThreadDpiAwarenessContext LIB "user32.dll" ALIAS "GetThreadDpiAwarenessContext" () AS DPI_AWARENESS_CONTEXT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(102,9): error TKO0600: 'getthreaddpihostingbehavior' is already declared in this scope
    |
 102 | DECLARE FUNCTION GetThreadDpiHostingBehavior () AS DPI_HOSTING_BEHAVIOR
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7627,9): note: declared here
    |
7627 | DECLARE FUNCTION GetThreadDpiHostingBehavior LIB "user32.dll" ALIAS "GetThreadDpiHostingBehavior" () AS DPI_HOSTING_BEHAVIOR
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(103,9): error TKO0600: 'getwindowdpiawarenesscontext' is already declared in this scope
    |
 103 | DECLARE FUNCTION GetWindowDpiAwarenessContext (BYVAL hwnd AS HWND) AS DPI_AWARENESS_CONTEXT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7628,9): note: declared here
    |
7628 | DECLARE FUNCTION GetWindowDpiAwarenessContext LIB "user32.dll" ALIAS "GetWindowDpiAwarenessContext" (BYVAL hwnd AS HWND) AS DPI_AWARENESS_CONTEXT
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(104,9): error TKO0600: 'inheritwindowmonitor' is already declared in this scope
    |
 104 | DECLARE FUNCTION InheritWindowMonitor (BYVAL hwnd AS HWND, BYVAL hwndInherit AS HWND) AS WINBOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7629,9): note: declared here
    |
7629 | DECLARE FUNCTION InheritWindowMonitor LIB "user32.dll" ALIAS "InheritWindowMonitor" (BYVAL hwnd AS HWND, BYVAL hwndInherit AS HWND) AS WINBOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(105,9): error TKO0600: 'isvaliddpiawarenesscontext' is already declared in this scope
    |
 105 | DECLARE FUNCTION IsValidDpiAwarenessContext (BYVAL value AS DPI_AWARENESS_CONTEXT) AS WINBOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7630,9): note: declared here
    |
7630 | DECLARE FUNCTION IsValidDpiAwarenessContext LIB "user32.dll" ALIAS "IsValidDpiAwarenessContext" (BYVAL value AS DPI_AWARENESS_CONTEXT) AS WINBOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\AfxNova/AfxExt.bi(106,9): error TKO0600: 'logicaltophysicalpointforpermonitordpi' is already declared in this scope
    |
 106 | DECLARE FUNCTION LogicalToPhysicalPointForPerMonitorDPI (BYVAL hwnd AS HWND, BYVAL lpPoint AS LPPOINT) AS WINBOOL
    |        ^
D:\xxx\xx\freebasic\tiko-lang\inc\win/winuser.bi(7631,9): note: declared here
    |
7631 | DECLARE FUNCTION LogicalToPhysicalPointForPerMonitorDPI LIB "user32.dll" ALIAS "LogicalToPhysicalPointForPerMonitorDPI" (BYVAL hwnd AS HWND, BYVAL lpPoint AS LPPOINT) AS WINBOOL
    |        ^
tiko-lang: error TKO0990: too many errors; stopping



I work with Windows 11 (last man on earth with this OS, i know).

I have many sources that compile fine with old tiko, and uses AFXNOVA.
I cant not use them with the new tiko.

I precise that with tiko 0.1, the code compile debug not on release.

Its discouraging, if i should modify afxnova source...

Thats my two cents...

Paul Squires

@docroger

You were right. There were a fair number of incompatibilities between AfxNova and tiko. I have fixed them all and recompiled all of the example programs.

You will need to replace your existing inc\AfxNova with the one in this download:
https://www.planetsquires.com/files/AfxNova-fixed.zip

I do not think think that José is developing AfxNova any further because he is working with me on tiko and he has migrated all of his AfxNova code to tiko. You can find his examples in tiko's examples\win64 folder. I urge you to switch over to that code although if you still desire to use José's DDT.inc code then you may have to stay with AfxNova because he has not ported that code to tiko (as far as I know).
Paul Squires
PlanetSquires Software

hajubu

#14
Hi Paul
Hi DocRogers,

I do confirm the problem with AfxNova (AfxNova-main_7dd854c_261030).
( had the same observation as DocRogers)


My Resume is follows. Pauls was right and DocRogers is right because , they are using different " versions" AfxNova.
The latest version of Jose Repo on Github cause the trouble, as the version Paul is using in it bundle for Tiko v016 (261120 inside the zip-file)

Here the outcome without an error and no changes to the DWStrProcs.inc in AfxNova ( out-of-the-box)

The the same is valid for other BAS of Jose ( like the org EX_DDT_ANIMATE.BAS or  EX_CDialog_Animate.bas , EX_DDT_Buttn_01.bas , even after converting them from ANSI to UTF8).



Therefore we can assume that the follow-up Errors
are based on this changes or not yet adapted at Tiko v020

Solution A) use only the "old" AfxNova ( asof Tiko v016 )
Solution B) adapt Tiko to AfxNova (new)
Solution C) adapt AfxNova to a Tiko v020++  !!edit!see also https://www.planetsquires.com/protect/forum/index.php?msg=36973 :)  :)  :)
- All is fine now -- compiled with Tiko 0.20  + AfxNova-fixed_PaulSquires_#36973_261204
Successful Compile (Errors 0 Warnings 0)
Primary Source: T:\projects\novdddt\docr_afxnova_ddtanim.bas  // Target Compilation: T:\projects\novdddt\docr_afxnova_ddtanim.exe (191 KB, 195584 bytes) // Compile Time: 0.1 seconds (2026-12-04 18:46:17)
"P:\dev\tiko-lang\tiko.exe" build T:\projects\novdddt\docr_afxnova_ddtanim.bas --message-format json -target windows-x86_64 --options "-g -exx"
Solution D) use AfxNova only with old tiko editor 1.32
Solution E) use AFxNova only up to Tkedit v016

Or is there another possibility ?

b.r. Hajubu


And yet the Earth rotates.  -- COGNITO, ergo sum. -- I doubt, ergo sum --  Happy Coding to all pof you.



-

The follow-up errors are conditioned on the changes of Jose Roca
 since Paul has hadded the AfxNova to its bundle. (012,013014,015),016,(017,018?)
 (019,020 w.o. )

# Differences

a) tiko_0106-windows-x86_64-e7f07a36 (incl.bundled AfxNova)
b) Tiko-020(w.o. AfNova) plus extra added AfxNova-main_7dd854c_261030

bi-files : AfxExt DWSTRING
inc-files: AfxComplex  AfxMath AfxStr AfxTime
          CComplex CListbox
          DWSTRING DWSTRProcs
          MHSFlexGrid
Therefore we can assume that the follow-up Errors
are based on this changes or not yet adapted at Tiko v020

Solution A) use only the "old" AfxNova ( asof Tiko v016 )
Solution B) adapt Tiko to AfxNova (new)
Solution C) adapt AfxNova to a Tiko v020++
Solution D) use AfxNova only with old tiko editor 1.32
Solution E) use AFxNova only up to Tkedit v016

Or is there another possibility ?

b.r. Hajubu


Log-output ---------------------------------------------------------------------------
Failed Compile (Errors 29 Warnings 0)

Primary Source: T:\projects\novdddt\docr_afxnova_ddtanim.bas
Compile Time: 0.9 seconds (2026-12-04 10:53:32)

"P:\dev\tiko-lang\tiko.exe" clean docr_afxnova_ddtanim --manifest T:\projects\novdddt
"P:\dev\tiko-lang\tiko.exe" build docr_afxnova_ddtanim --manifest T:\projects\novdddt
    --profile none --message-format json -target windows-x86_64 --options "-g -exx"
    --diagnostics-file C:\Users\%USERNAME%\AppData\Roaming\tkEdit\build.diagnostics
---------------------------------------------------------------------------------------
P:\dev\tiko-lang\inc\AfxNova/DWSTRProcs.inc(975,48): error TKO1303: interpolated string: a hole needs an expression
 975 |    Dim PunctSymbols AS DWSTRING = $" .,!?:;()[]{}\""-'?"  ' // List of punctuation symbols
    |                                                ^~
P:\dev\tiko-lang\inc\AfxNova/DWSTRProcs.inc(299,41): error TKO0400: expected an expression
 299 |    pRegExp.Pattern = $"([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
    | 
    ^ 
... and in a more readable format here -  till stop of compiling
:  ERROR TK06000: AfxExt.bi  --> 'function' is already declared in this scope  --> more ref_to_xyz

::: 'function' is already declared in this scope  <- -> AfxExt.bi in line ...and for winuser.bi -->

::: and also found more  with refd. of  AfxExt.bi ->  winuser.bi : note: declared here

::::--> (winuser.bi(####,9) note: declared here -->
....
... ended with ....
 LIB "user32.dll" ALIAS "LogicalToPhysicalPointForPerMonitorDPI" (BYVAL hwnd AS HWND, BYVAL lpPoint AS LPPOINT) AS WINBOOL
tiko-lang: error TKO0990: too many errors; stopping