Main Menu

Recent posts

#81
Tiko Programming Language / Re: Tiko - new F1 Help Center ...
Last post by hajubu - July 30, 2026, 02:30:00 AM
hi Paul,
Thanks, Great work !

I already used my local 'Helpcenter' copy (created 260727).
-- note:  also updated pscontrols_colorpicker.html (to 260729) easily.

Just moved it into the settings .

b.r. (Hajubu( - Hans



P.S: zipping app 27MB // using 7z with high compressing --A app. 4MB
 includes all index.html, app.css, app.js and complete with (AfxNova,Freebasic,Pscontrols and Winapi).htmls



#82
Tiko Programming Language / Tiko - new F1 Help Center func...
Last post by Paul Squires - July 29, 2026, 05:19:32 PM
The entire Help Center docs are now part of the local Tiko install. Yeah, it makes for a large download (96mb) but unless you are on dial up then it's just a one time inconvenience. Actually, I think that I will offer the Help Center as a separate download as a zip compressed file. That cuts the download size to just under 40mb and it also makes it an optional choice for the user.

Pressing F1 on any keyword in the editor now gives you the Help Center help rather than the older FreeBasic chm. It also gives you F1 help to AfxNova and WinAPI.

This uses José's WebView2 control.

I think it's pretty cool.
#83
Tiko Programming Language / Re: PsControls Updates
Last post by Paul Squires - July 29, 2026, 11:05:22 AM
New control: PsColorPicker

A modal owner-drawn colour picker popup for FreeBASIC / Win32
#84
Tiko Programming Language / Re: Some Personal Notes on Cod...
Last post by Paul Squires - July 29, 2026, 08:50:02 AM
Thanks - I have save this information into a notes file for myself. My plan is to expand on this idea a bit to allow a user to format a single line on ENTER, but also be able to "prettify" an entire file, or all files in a project. Of course this would all be driven by a user selected opt in setting. I would also like a popup dialog where settings for the pretty rules could be modified based on user's preference.
#85
Tiko Programming Language / Re: Tiko - new Localization fu...
Last post by Paul Squires - July 29, 2026, 08:47:03 AM
Quote from: fbfans on July 29, 2026, 06:14:23 AMIn the General Options, could we have the ability for users to set the default encoding for newly created files?
This has now been implemented. This is a useful new feature.

QuoteIn the Compiler Results window, could you add a right-click copy feature that allows selecting a single line or all content?
This has now also been implemented. I remember a couple of users suggesting something similar to this feature over the past couple of years so it is nice to finally have it.

QuoteFor the localization/language selector, I'd suggest displaying the language names directly in their native form — for example, "简体中文" instead of "Chinese (Simplified)", and "English" instead of "English (US)". This would make it more intuitive.
Sorry, can't do this one. The language name is taken directly from that language's disk filename and then ran through a simple function (see below) to make it look pretty. I did not want to get into the complexity of having to store the language name inside of the actual disk file.

' ========================================================================================
' "chinese_simplified.lang" -> "Chinese Simplified". Display only -- gLocalLangFiles() carries
' the filename, and every file operation goes through that.
' ========================================================================================
private function frmOptionsLocal_PrettyName( byval wszFilename as DWSTRING ) as DWSTRING
    dim as DWSTRING wszName = AfxStrPathName( "NAME", wszFilename )
    dim as DWSTRING wszOut = ""
    dim as boolean bStart = true

    for i as long = 1 to len(wszName)
        dim as DWSTRING wszCh = mid(**wszName, i, 1)
        if wszCh = "_" then
            wszOut += " "
            bStart = true
        else
            wszOut += iif( bStart, ucase(wszCh), lcase(wszCh) )
            bStart = false
        end if
    next

    return wszOut
end function
#86
Tiko Programming Language / Some Personal Notes on Code Fo...
Last post by fbfans - July 29, 2026, 06:36:48 AM
Based on the assumption that user input is fully correct (i.e., no redundant spaces need to be handled), the formatting rules are as follows (based on QuickBASIC formatting conventions):
I. Cases Requiring Spaces
1. Spaces on Both Sides
Comparison operators: >=, <=, <>
Assignment compound operators: +=, -=, *=, /=, \=, ^=, &=, =>
Extended forms: +=>, -=>, *=>, /=>, \=>, ^=>, &=>
General operators: +, -, *, /, \, ^, &
Equals sign: = (assignment/comparison)
2. Keywords
If parsing is performed:
Function calls with return values should NOT have a space before (
Statement keywords SHOULD have a space before (
Examples:
if( → if (
line(0,0) → line (0, 0)
sin (x) → sin(x)
3. Punctuation: ,, :, ;
No space before, space after.
Examples:
a,b → a, b
a:b → a: b
a;b → a; b
4. Parentheses/Brackets/Braces
No spaces inside:
( ), [ ], { }
Examples:
func( a ) → func(a)
{ 1,2,3 } → {1, 2, 3}
II. Cases Requiring NO Spaces (Special Attention)
1. Unary Operators
Unary minus - should have NO space after it.
Example: -5 remains -5, not - 5
2. Base Prefix &
&H, &O, &B should have NO spaces after them, and letters should be uppercase.
Examples:
& HFF → &HFF
& O17 → &O17
3. Pointer Operator ->
No spaces before, after, or between - and >.
Example: a - > b → a->b
4. Compound Operators
No spaces inside compound operators, especially ternary forms:
+=, -=, *=, /=, \=, ^=, &=, =>
+=>, -=>, *=>, /=>, \=>, ^=>, &=>
Example: a=>b is correct; a= >b is incorrect.
III. Additional Guidelines
Fallback: If correct formatting cannot be guaranteed, keep the original as-is. Incorrectly added spaces may cause compilation failures.
Preserve original indentation:
Line-leading indentation
Continuation line indentation
Inline comment indentation
Maintain individual coding styles; only add spaces around operators and symbols where necessary.
Escape sequences: For "", !, and similar escape/control characters, extra spaces may sometimes need handling.
Legacy string functions (not required in FreeBASIC but syntactically valid):
chr$, str$, instr$
These should NOT become chr $(32) or similar.
Pointer dereference *:
Complex due to 2-level, 3-level, and multi-level pointer dereferencing.
Current handling is simplified based on the above rules.
If Tiko can perform parsing to distinguish pointer variables, determination becomes easier—based on the number of ptr levels.
Example: dim as byte ptr ptr ptr ptr ptr p — there are 5 * before p for dereferencing. (This is just a personal suggestion.)

The above formatting rules are compiled based on my personal understanding. I am still a beginner, so please bear with me if there are any inaccuracies. Your feedback and corrections are greatly appreciated!
#87
Tiko Programming Language / Re: Tiko - new Localization fu...
Last post by fbfans - July 29, 2026, 06:14:23 AM
Hi Paul,

I've noticed your frequent major moves recently — it feels like the big version update is getting closer and closer. Great work, and thank you for your hard work.

I also have a few small feature requests that I hope could be considered for the new release:

In the General Options, could we have the ability for users to set the default encoding for newly created files?
In the Compiler Results window, could you add a right-click copy feature that allows selecting a single line or all content? I'm not very skilled at debugging, and sometimes I need to copy error messages to search for solutions online. Currently, I have to switch to the compiler log file to do that, which is a bit inconvenient.
For the localization/language selector, I'd suggest displaying the language names directly in their native form — for example, "简体中文" instead of "Chinese (Simplified)", and "English" instead of "English (US)". This would make it more intuitive.

Thanks a lot for your time!
#88
José Roca Software / Re: AfxStrParseCountAny bug
Last post by José Roca - July 28, 2026, 08:42:22 PM
You're right. I have modified it.

#89
Tiko Programming Language / Tiko - new Project Options fun...
Last post by Paul Squires - July 28, 2026, 07:11:08 PM
New Project Options dialog.

This is the last of the old school, non-themed, dialogs from the current Tiko Editor release.

#90
José Roca Software / AfxStrParseCountAny bug
Last post by Paul Squires - July 28, 2026, 05:46:33 PM
Hi José,

Looks like AfxStrParseCountAny() has a little bug in it.

' ========================================================================================
' * Return the count of delimited fields from a string expression.
' If wszMainStr is empty (a null string) or contains no delimiter character(s), the string
' is considered to contain exactly one sub-field. In this case, AfxStrParseCountAny returns the value 1.
' Delimiter contains a set of characters (one or more), any of which may act as a delimiter character.
' Delimiters are case-sensitive.
' Example: DIM nCount AS LONG = AfxStrParseCountAny("1;2,3", ",;")
' ========================================================================================
PRIVATE FUNCTION AfxStrParseCountAny (BYREF wszMainStr AS CONST WSTRING, BYREF wszDelimiter AS CONST WSTRING = ",") AS LONG
   DIM nCount AS LONG = 1
   DIM nPos AS LONG = 1
   DO
      nPos = INSTR(nPos, wszMainStr, ANY wszDelimiter)
      IF nPos = 0 THEN EXIT DO
      nCount += 1
      nPos += LEN(wszDelimiter)   '<---- THIS IS THE PROBLEM
      ' nPos += 1   '<---- THIS IS THE FIX
   LOOP
   RETURN nCount
END FUNCTION
' ========================================================================================