#include once "Afxnova/DDT.inc"
' USING DDT
USING AFXNOVA
' line 299
' pRegExp.Pattern = $"([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
pRegExp.Pattern = "([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
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.
Quote from: rnbw on December 03, 2026, 06:58:22 AMQuote from: Johan Klassen on December 03, 2026, 06:49:15 AMpress Control comma then select Appearance and tick Menu barThank 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.
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...You will need to slightly modify the dwstrprocs.inc file to remove the "$" prefix from this statement.
The code use DDT.inc
' line 299
' pRegExp.Pattern = $"([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
pRegExp.Pattern = "([\\.\^\$\*\+\?\{\}\[\]\(\)\|])"
Quote from: Johan Klassen on December 03, 2026, 06:49:15 AMpress Control comma then select Appearance and tick Menu barThank 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.
'#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