Search found 1795 matches

by kenmo
Tue Dec 09, 2025 10:16 pm
Forum: Coding Questions
Topic: [SOLVED (my fault)] FindString
Replies: 4
Views: 203

Re: FindString

No bug. 3rd parameter is Start Position, not case flag.
by kenmo
Thu Dec 04, 2025 4:59 pm
Forum: Mac OSX
Topic: GetCurrentDirectory()
Replies: 22
Views: 11248

Re: GetCurrentDirectory()

Can anyone enlighten me as to what is going on?

Yes, it's a very annoying MacOS feature called "App Translocation" which runs your program from a randomized path, supposedly for security reasons although it's not difficult to get around it... Search "App Translocation" and you'll need some ...
by kenmo
Thu Dec 04, 2025 2:30 pm
Forum: Off Topic
Topic: A tool for transferring from RTF to PDF?
Replies: 5
Views: 317

Re: A tool for transferring from RTF to PDF?

Good luck! :) I used it within a PB program to convert Markdown to HTML. But even then I was calling the Pandoc executable. It would be more efficient to go a step further and load Pandoc library for direct function calls....... but I never went that far.

https://pandoc.org/
by kenmo
Thu Dec 04, 2025 1:41 pm
Forum: Off Topic
Topic: A tool for transferring from RTF to PDF?
Replies: 5
Views: 317

Re: A tool for transferring from RTF to PDF?

Pandoc can likely do what you need...
by kenmo
Sat Nov 29, 2025 2:07 am
Forum: Feature Requests and Wishlists
Topic: Windows real dark theme.
Replies: 6
Views: 633

Re: Windows real dark theme.

Thread about this from August. In short, MS has made it a nightmare to add dark mode to Win32 or "legacy" software, without rewriting them in newer frameworks. And even then, Windows 11 itself still doesn't fully implement dark mode everywhere :?
https://www.purebasic.fr/english/viewtopic.php?t ...
by kenmo
Tue Nov 25, 2025 3:19 pm
Forum: Feature Requests and Wishlists
Topic: Updated controller support
Replies: 12
Views: 858

Re: Updated controller support

Hi coco2, I agree the Joystick library could use a major update. It would be nice if all PB platforms used SDL and its gamepad mappings. If I knew how to make PureLibraries I would contribute!

We last discussed SDL2 in 2023 :) I thought I should mention that major SDL3 released this year and I've ...
by kenmo
Wed Nov 19, 2025 2:46 pm
Forum: Coding Questions
Topic: Forced Preferences utf8 BOM
Replies: 3
Views: 449

Re: Forced Preferences utf8 BOM

Not sure if this is a "bug" or a "feature request" but I agree, OpenPreferences should preserve whether there's a BOM, or else maybe allow the NoBOM flag like CreatePreferences().

In the meantime a procedure can be used to remove it. Read file to buffer, check for BOM + CRLF, if found write the ...
by kenmo
Wed Nov 19, 2025 2:39 pm
Forum: Coding Questions
Topic: Once again: Color Byte Order on different OS
Replies: 4
Views: 311

Re: Once again: Color Byte Order on different OS

Can't test right now, but I expect it to output "RGBA" on all systems... all this is really confirming is Little Endian vs Big Endian, and I believe Fred has confirmed all systems PB supports are Little Endian. (Meaning the lowest byte of col, red byte, is first in memory, *address + 0)

Where you ...
by kenmo
Fri Nov 14, 2025 8:47 pm
Forum: Coding Questions
Topic: MD5 for text [Resolved]
Replies: 32
Views: 2507

Re: MD5 for text [Resolved]

Hello, CRC (and MD5) are not "encryption", meaning they cannot be turned back into the original text. I hope you understand that! Look up the differences between checksum/hash/digest vs. encryption/decryption.
by kenmo
Fri Nov 14, 2025 5:33 pm
Forum: Coding Questions
Topic: VECTOR AND UNICODE FONT
Replies: 1
Views: 234

Re: VECTOR AND UNICODE FONT

Unfortunately the vector drawing library can only use fonts officially installed in your system. I don't know the technical reason, maybe someone else here does.

See the doc for VectorFont()
"Remarks: You cannot use a registered font with RegisterFontFile()."
https://www.purebasic.com/documentation ...
by kenmo
Thu Nov 13, 2025 4:21 am
Forum: Bugs - Linux
Topic: [Done] [Fixed in 6.30] CanvasGadget doesn't always get EventType_Resize
Replies: 5
Views: 893

Re: [Linux] [Fixed in 6.30] CanvasGadget doesn't always get EventType_Resize

I guess I have bad timing with bug reports.

Yes, this appears to be fixed between PB 6.21 and PB 6.30. (I just tested 6.30 Beta 4.) So never mind! Thanks team!
by kenmo
Wed Nov 12, 2025 4:32 am
Forum: Bugs - Linux
Topic: [Done] [Fixed in 6.30] CanvasGadget doesn't always get EventType_Resize
Replies: 5
Views: 893

Re: [Linux] CanvasGadget doesn't always get EventType_Resize

Thanks for testing. I will download the 6.30 Beta and try it there...
I added more OS info to my original post.
by kenmo
Tue Nov 11, 2025 5:51 am
Forum: Bugs - Linux
Topic: [Done] [Fixed in 6.30] CanvasGadget doesn't always get EventType_Resize
Replies: 5
Views: 893

[Done] [Fixed in 6.30] CanvasGadget doesn't always get EventType_Resize

PB 6.21 x64 on Linux with or without "Wayland Support" enabled
EDIT: ElementaryOS 7 (Ubuntu 22.04 based)
EDIT 2: Appears to be fixed in PB 6.30!

Here's an odd one... Try mouse-resizing the window, which has a callback, which resizes the CanvasGadget, which also has a callback.

If I resize the ...
by kenmo
Sun Nov 09, 2025 5:53 pm
Forum: Coding Questions
Topic: Hex Color values reverse the Red and Blue
Replies: 6
Views: 478

Re: Hex Color values reverse the Red and Blue

When formatting a color for a human to read (HTML, CSS, image editors, some config files) they're usually written in intuitive RRGGBB order, often prefixed with "#"

But in memory and in low level programming, they're usually BBGGRR prefixed with 0x (or "$" in PB syntax)

I assume PB made this ...
by kenmo
Tue Nov 04, 2025 2:40 pm
Forum: Off Topic
Topic: Recommend Linux Distribution?
Replies: 9
Views: 1223

Re: Recommend Linux Distribution?

Elementary OS is the first/only Linux I've ever stuck with... over a year now going strong!
https://elementary.io

Though I'm running it on a new-ish laptop, I can't vouch for it on older hardware.