Main Menu

Recent posts

#91
José Roca Software / Re: Import Libraries (*.def an...
Last post by José Roca - November 14, 2025, 11:24:00 PM
The problem is gone. Import libraries aren't needed to work with Windows. You can just use EXTERN and LIB, e.g.

extern "Windows" LIB "gdiplus.dll"

DECLARE FUNCTION GdiplusStartup (BYVAL token AS ULONG_PTR PTR, BYVAL input AS CONST GdiplusStartupInput PTR, BYVAL output AS GdiplusStartupOutput PTR) AS GpStatus
DECLARE SUB GdiplusShutdown (BYVAL token AS ULONG_PTR)
DECLARE FUNCTION GdipCreateBitmapFromFile (BYVAL filename AS CONST WSTRING PTR, BYVAL bmp AS GpBitmap PTR PTR) AS GpStatus
...
...

end extern

Works both with 32 and 64 bit.

Why they still use .def files and import libraries (which are outdated) is a mystery to me?

#92
José Roca Software / Re: CGpPen Class - out of sync
Last post by José Roca - November 07, 2025, 01:25:18 PM
Yes. Yesterday I added

' =====================================================================================
' * Creates a Pen object that uses a specified color and width.
' =====================================================================================
PRIVATE CONSTRUCTOR CGpPen (BYVAL colour AS ARGB, BYVAL nWidth AS SINGLE = 1.0, BYVAL unit AS GpUnit = UnitWorld)
   m_Status = GdipCreatePen1(colour, nWidth, unit, @m_pPen)
END CONSTRUCTOR
' =====================================================================================

' =====================================================================================
' Creates a Pen object that uses the attributes of a brush and a real number to set the
' width of this Pen object.
' =====================================================================================
PRIVATE CONSTRUCTOR CGpPen (BYVAL pBrush AS CGpBrush PTR, BYVAL nWidth AS SINGLE = 1.0, BYVAL unit AS GpUnit = UnitWorld)
   m_Status = GdipCreatePen2(pBrush->m_pBrush, nWidth, unit, @m_pPen)
END CONSTRUCTOR
' =====================================================================================

The reason is that using UnitWorld, as the C++ classes do, the left and right edges of the rectangles appear wider that they should when using a DPI higger that 96. Works better if you use UnitPixel.

File reuploaded.

I have added many new examples.
#93
José Roca Software / CGpPen Class - out of sync
Last post by hajubu - November 07, 2025, 04:34:10 AM
Hi
---
It seems that CGpen.inc and CGpPen Class.md need update to reflect added third parameter Gpunit in CGdiPlus.inc
---
::AfxNova::CGpen.inc:: out of sync
->(35): PRIVATE CONSTRUCTOR CGpPen (BYVAL colour AS ARGB, BYVAL nWidth AS SINGLE = 1.0, /' / added / '/  BYVAL unit AS GpUnit = UnitWorld)
->(44): PRIVATE CONSTRUCTOR CGpPen (BYVAL pBrush AS CGpBrush PTR, BYVAL nWidth AS SINGLE = 1.0, /' / added / '/  BYVAL unit AS GpUnit = UnitWorld)
---
::Docs::(at least):: CGpPen Class.md  out of sync ::
->(63): CONSTRUCTOR CGpPen (BYVAL pBrush AS CGpBrush PTR, BYVAL nWidth AS SINGLE = 1.0, BYVAL unit AS GpUnit = UnitWorld)
->(64): CONSTRUCTOR CGpPen (BYVAL colour AS ARGB, BYVAL nWidth AS

should follow CGdiPlus.inc of 2025-11-06 - commit::4744520 and 37eb14a

b.r.
#94
José Roca Software / Re: CGpImageAttributes.inc lin...
Last post by José Roca - November 05, 2025, 05:15:15 PM
I'm putting much effort im that huge api because I intend to use it in conjuntion with my CPrint class for printing, instead of the old GDI.

If you notice flaws in the documentation, please report it. To document about 600 methods (the classes) or functions (the flat api), most of them with usage examples, requires a lot of copy and paste and there must have errors.
#95
José Roca Software / Re: CGpImageAttributes.inc lin...
Last post by José Roca - November 05, 2025, 05:06:21 PM
It is a leftover when I used the official FreeBasic headers, that are a truly mess. I'm going to remove these comments because no longer apply, since now I use my own headers. Thanks for reporting it.
#96
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
#97
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.
#98
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.
#99
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.
#100
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.