Main Menu

Recent posts

#1
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by Paul Squires - December 03, 2026, 10:00:32 PM
@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.

#2
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by docroger - December 03, 2026, 05:15:47 PM
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...
#3
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by Paul Squires - December 03, 2026, 11:03:33 AM
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.

#4
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by Paul Squires - December 03, 2026, 11:00:21 AM
@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.
#5
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by Paul Squires - December 03, 2026, 10:56:13 AM
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.

#6
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by Johan Klassen - December 03, 2026, 08:58:06 AM
I forgot about the CTRL+SHIFT+M shortcut, it's possible that you pressed that shortcut by accident and turned the Menu bar off
#7
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by rnbw - 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.
#8
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by Johan Klassen - December 03, 2026, 06:49:15 AM
press Control comma then select Appearance and tick Menu bar
#9
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by rnbw - December 03, 2026, 06:43:44 AM
I have been using V0.2.0 and now I have lost the Menu Bar.  How can I retrieve it.
#10
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by docroger - December 03, 2026, 05:29:00 AM
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