Main Menu

Recent posts

#11
PlanetSquires Software / Re: Tiko Editor v1.3. Release
Last post by roger@languageONE.com.au - November 05, 2025, 03:34:19 PM
Yeah I had tried WINE - gee more than a decade ago - and it really wouldn't run anything, but I gave it another shot a few months ago and it seems to be far more capable.
Never heard of winboat, I'll take a look at it.
Anywho,good luck with tiko, I'll check back every so often and look for any newer versions.

Cheers
Roger
#12
José Roca Software / CGpImageAttributes.inc line 20...
Last post by hajubu - November 05, 2025, 01:57:05 PM
Hi - seems that "any PTR has" to follow the the changes to "GpColorMap PTR"  CDgiPlus.inc
  in  DECLARE FUNCTION of  SetRemapTable / SetBrushRemapTable (line 247 / 248)

Therefore this should help
line 202

PRIVATE FUNCTION CGpImageAttributes.SetRemapTable (BYVAL mapSize AS UINT, BYVAL map AS /' ANY PTR '/ GpColorMap PTR, BYVAL nType AS ColorAdjustType = ColorAdjustTypeDefault) AS GpStatus

and 211

PRIVATE FUNCTION CGpImageAttributes.SetBrushRemapTable (BYVAL mapSize AS UINT, BYVAL map AS /' ANY PTR '/ GpColorMap PTR) AS GpStatus

b.r.
#13
PlanetSquires Software / Re: Tiko Editor v1.3. Release
Last post by Paul Squires - November 05, 2025, 11:07:33 AM
Ah, yes, Wine would be a problem. I haven't had much success running it under Wine. I tried WinBoat (under Fedora) on another Win32 application but it didn't run. I think though that once WinBoat matures it may be a better option than Wine.
#14
PlanetSquires Software / Re: Tiko Editor v1.3. Release
Last post by roger@languageONE.com.au - November 05, 2025, 01:39:27 AM
Thx Paul,

I wouldn't worry too much about it.
I am running under WINE so a few funny things may go on. Mostly though it seems to run ok.
I'll boot into Windows later and give it a shot

Cheers
Roger

EDIT:- Just did a quick check and I can confirm that Yes, it is WINE that is the problem. Both things I mentioned are fine on a bare metal Windows 11.
Also in relation to my original post:-

CompilerSwitches=@options ----> this is a line from settings.ini. I would hazard a guess that this is where things are getting mixed up with a users own Options file.
#15
PlanetSquires Software / Re: Tiko Editor v1.3. Release
Last post by Paul Squires - November 04, 2025, 11:48:46 PM
Interesting that I don't have either of those two problems that you mentioned. Compiler results and/or Compiler Log file text always displays with a white on dark gray color. The Ctrl+F Find always places the text cursor and sets focus to the Find textbox. I'm not sure what the problem could be but if others also experience this same problem then maybe it is something that I am missing.

For the color issue, make sure that you've installed tiko correctly so that it can load the dark theme file. It expects it to be in the settings\themes subfolder. I assume that you have not modified that default_dark.theme file.

The debugger is a work in progress. Currently you can compile your source code and step through it but that's about it. I haven't been spending a lot of time on that code yet because I have been doing other things but I think given time it will progress along quite nicely.
#16
PlanetSquires Software / Re: Tiko Editor v1.3. Release
Last post by roger@languageONE.com.au - November 04, 2025, 10:12:53 PM
It seems that tiko is assuming an options file in the source directory. I renamed mine from voptions to options and it worked fine. Simple fix if you know it I guess.

Also..

I read you were working on a adding a debugger and would look forward to that. I like that tiko is fairly simple and would probably keep it that way. I prefer running batch files for all my compiling etc so it's nice to be able to hook into that easily.

Just a couple of things I've noticed initially..

1) In darkmode the compiler messages text is still black and pretty hard to read
2) Ctrl-F (Search) pops up the window but doesn't give it focus. I think Ctrl-F for searching is so ingrained now that (certainly I) don't look up. I just Ctrl-F and key the search string in.

Anyway, keep up the good work
Cheers
Roger
#17
PlanetSquires Software / Re: Tiko Editor v1.3. Release
Last post by Paul Squires - November 04, 2025, 05:22:35 PM
Quote from: roger@languageONE.com.au on November 04, 2025, 04:56:24 PMHi Paul,
I came across Tiko Editor and liked it.
I am however having a problem passing an options file (@voptions) to the compiler.

I have tried a number of ways but "-s console -gen gas64 @voptions" in the build configuration seemed to be the most logical. It errors out with:-

Failed Compile (Errors 2  Warnings 0  [2025-11-05  07:24:22])

Command Line:
D:\tiko-main\Toolchains\FreeBASIC-1.10.1-winlibs-gcc-9.3.0\fbc64.exe -m "C:\users\roger\_dev1\source\languageONE\@editorTOO\test.bas" -v -s console -gen gas64 @voptions @options  -x "C:\users\roger\_dev1\source\languageONE\@editorTOO\test.exe"
error 26: File access error, options

It seems like you automatically insert an options file into the command line. How does that mechanism work ?

Hoping you'll able to point me in the right direction ?

Cheers
Roger

Hi Roger,

Interesting. I've never used this option for an external command line options file.

I did notice in your post that the "Command Line:" includes 2 different options files? One called @voptions and a second called @options, whereas just prior to that you stated that you modified the Build Configuration to be "-s console -gen gas64 @voptions" (notice, without that second @options).

If that is not the problem, then I wonder if the issue that the @voptions file can not be found. I wonder if you can either try using a full path name to the file, or try placing that file in different places until the compiler finds it. Try the folder where your source is located, and maybe even the folder where your FBC compile exe is located? Not sure what the answer is... yet.  :-)

#18
PlanetSquires Software / Re: Tiko Editor v1.3. Release
Last post by roger@languageONE.com.au - November 04, 2025, 04:56:24 PM
Hi Paul,
I came across Tiko Editor and liked it.
I am however having a problem passing an options file (@voptions) to the compiler.

I have tried a number of ways but "-s console -gen gas64 @voptions" in the build configuration seemed to be the most logical. It errors out with:-

Failed Compile (Errors 2  Warnings 0  [2025-11-05  07:24:22])

Command Line:
D:\tiko-main\Toolchains\FreeBASIC-1.10.1-winlibs-gcc-9.3.0\fbc64.exe -m "C:\users\roger\_dev1\source\languageONE\@editorTOO\test.bas" -v -s console -gen gas64 @voptions @options  -x "C:\users\roger\_dev1\source\languageONE\@editorTOO\test.exe"
error 26: File access error, options

It seems like you automatically insert an options file into the command line. How does that mechanism work ?

Hoping you'll able to point me in the right direction ?

Cheers
Roger
#19
General Board / Re: Afx Strings. Afx, Afx2, Af...
Last post by HIGH-Zen - November 03, 2025, 07:59:19 AM
I've been exploring José Roca's AfxNova framework and I have to say - I'm genuinely impressed! The Unicode support via DWSTRING is seamless, and the integration with VBScript-style regular expressions opens up powerful text processing capabilities.
#define UNICODE
#INCLUDE ONCE "AfxNova/DWString.inc"
USING AfxNova

Dim sText As DWSTRING

' Assign a Unicode string with Latvian accents
sText = "Sveiki! Šī ir FreeBasic demonstrācija ar diakritiskajām zīmēm: āčķīēūļņ."

' Convert to uppercase
Print "Uppercase:"
Print Ucase(sText)

' Replace a word
print DWStrReplace(sText, "demonstrācija", "piemērs")

' Use VBScript RegExp (example from CRegExp.inc)
DIM pRegExp AS CRegExp
pRegExp.Pattern = "(\w+)@(\w+)\.(\w+)+"
DIM dwsText AS DWSTRING = "Please send mail to dragon@xyzzy.com. Thanks!"

pRegExp.IgnoreCase = TRUE
IF pRegExp.Execute(dwsText) = FALSE THEN
   PRINT "No match found"
ELSE
   ' // Get the number of submatches
   DIM nCount AS LONG = pRegExp.SubMatchesCount(0)
   PRINT "Submatches: ", nCount
   FOR i AS LONG = 0 TO nCount - 1
      PRINT pRegExp.SubMatchValue(0, i)
   NEXT
END IF

' Show string length and character access
Print "Lenght of string: "; Len(sText)
Print "9. character: "; MID(sText, 9, 1)
Sleep
Output:
QuoteUppercase:
SVEIKI! ŠĪ IR FREEBASIC DEMONSTRĀCIJA AR DIAKRITISKAJĀM ZĪMĒM: ĀČĶĪĒŪĻŅ.
Sveiki! Šī ir FreeBasic piemērs ar diakritiskajām zīmēm: āčķīēūļņ.
Submatches:    3
dragon
xyzzy
com
Lenght of string: 72
9. character: Š
Big thanks to José for building such a robust and well-documented toolset!
#20
General Board / Re: Afx Strings. Afx, Afx2, Af...
Last post by HIGH-Zen - November 03, 2025, 02:23:29 AM
I'll take a closer look and start using DWString.

With the Latvian Apostrophe keyboard layout, I can freely type Latvian characters in Geany on Windows. Similarly, for Russian input, the Russian Mnemonic layout works well. I save source files using UTF-8 with BOM, and no hexadecimal code points are needed.

I've also tested the Latvian Apostrophe layout in Geany on GNU/Linux, and it works without any issues there too.

As for the Ctrl+Shift+U method (followed by holding Ctrl and Shift while typing the hex code), that approach is specific to GNU/Linux environments and doesn't apply to Windows.  :)