Search found 88 matches

by Axeman
Thu Oct 16, 2025 1:28 am
Forum: Bugs - Windows
Topic: CalendarGadget - 'Today' text at bottom of gadget has inconsistent mouseover coloring
Replies: 0
Views: 340

CalendarGadget - 'Today' text at bottom of gadget has inconsistent mouseover coloring

When I mouseover the 'Today' text at the bottom of a CalendarGadget, the text is only partially changed to the light-blue mouseover color. This coloring issue seems to be pixel-based, rather than character-based, as with the test code below the zero character is two-thirds blue text with the ...
by Axeman
Fri Sep 26, 2025 12:53 am
Forum: The PureBasic Editor
Topic: The Find/Replace window should stay open after doing a search
Replies: 4
Views: 979

Re: The Find/Replace window should stay open after doing a search

Having that 'Persist' checkbox in the window itself (as you suggested) is probably the best option, as long as the setting is saved so it's not necessary to do it every time.
by Axeman
Thu Sep 25, 2025 4:06 am
Forum: The PureBasic Editor
Topic: The Find/Replace window should stay open after doing a search
Replies: 4
Views: 979

The Find/Replace window should stay open after doing a search

Currently the Find/Replace window in the editor closes after a search, which is annoying. It should stay open so that multiple searches can be done, if desired. There also needs to be a toolbar icon button for it, so that it can be easily accessed.
by Axeman
Mon Sep 22, 2025 3:28 am
Forum: Tricks 'n' Tips
Topic: Passing a string to a procedure by reference
Replies: 0
Views: 1043

Passing a string to a procedure by reference



; This procedure receives a string passed by reference and outputs its value via the 'Debug' command.
; Note that the string is stored in the 's' field of the default 'STRING' structure.
Procedure Test1( *str_pointer.STRING )
Debug *str_pointer\s
EndProcedure


; This procedure receives a string ...
by Axeman
Fri Sep 19, 2025 1:03 pm
Forum: Tricks 'n' Tips
Topic: Get the balance of a Solana crypto wallet
Replies: 2
Views: 652

Get the balance of a Solana crypto wallet

The functions 'GetSolanaWalletBalanceAsLamports( wallet_address.s )' and 'GetSolanaWalletBalanceAsSolana( wallet_address.s )' will return the balance of a specified Solana crypto wallet.

I'm writing a Solana trading bot and needed this fuctionality, so I thought I'd share the code for anyone who ...
by Axeman
Fri Sep 19, 2025 3:04 am
Forum: Tricks 'n' Tips
Topic: Get current UNIX UTC time (Windows)
Replies: 8
Views: 975

Re: Get current UNIX UTC time (Windows)

The software works fine. It's a jigsaw puzzle program that generates puzzle pieces dynamically when the user selects which puzzle image they want to use. In slightly newer versions of Purebasic than the one I am using, the outline path drawn around the edge of the puzzle piece is offset from where ...
by Axeman
Thu Sep 11, 2025 2:01 pm
Forum: Tricks 'n' Tips
Topic: Get current UNIX UTC time (Windows)
Replies: 8
Views: 975

Re: Get current UNIX UTC time (Windows)

I'm currently using PureBasic 5.73 LTS (Windows - x86), as newer versions of Purebasic are a disaster with some of the software I've developed. I haven't had the opportunity to test out any new functions, such as DateUTC().
by Axeman
Thu Sep 11, 2025 3:13 am
Forum: Tricks 'n' Tips
Topic: Get current UNIX UTC time (Windows)
Replies: 8
Views: 975

Get current UNIX UTC time (Windows)

Here is a function to get the current UNIX UTC time in seconds as a quad integer value. This should be year 2038 safe.

Procedure.q GetUnixTime()
; Get the number of seconds since January 1, 1970 12:00am UTC as a 64 bit quad integer.
; Use https://www.unixtimestamp.com/ to test.
; REFERENCE: https ...
by Axeman
Wed Mar 26, 2025 10:22 am
Forum: Tricks 'n' Tips
Topic: OpenB3D 3D DLL framework include file for PureBasic
Replies: 25
Views: 16543

Re: OpenB3D 3D DLL framework include file for PureBasic

Here's a HTML documentation file I created for OpenB3D: http://freehandyscripts.com/stuff/OpenB3DHelp.html

You should be able to download the file by right-clicking on it and using the 'Save As', 'Save linked content', etc. option. Or open the HTML source code and save that to a HTML file.
by Axeman
Mon Jun 10, 2024 3:39 am
Forum: The PureBasic Editor
Topic: SUGGESTION: Add 'Do not save' context menu option for <new> tabs.
Replies: 0
Views: 2117

SUGGESTION: Add 'Do not save' context menu option for <new> tabs.

I often use <new> tabs in the editor for temporary testing code, and I tend to keep these open in case I want to redo or utilize the test code. The problem with this is that every time I do a 'Save all' I get pestered to save the temporary tab.

What I would like is if there was a 'Do not save ...
by Axeman
Thu Apr 20, 2023 12:39 am
Forum: The PureBasic Editor
Topic: Suggestion: Add a link to the 'Examples' folder as a 'Help' menu item.
Replies: 1
Views: 1340

Suggestion: Add a link to the 'Examples' folder as a 'Help' menu item.

This discussion ~

https://www.purebasic.fr/english/viewtopic.php?p=599510#p599510

~ had me checking for a reliable dedicated link to the 'Examples' folder in the editor and help files. I couldn't find one, which is sub-optimal as browsing those examples provides many good opportunities for ...
by Axeman
Fri Jul 15, 2022 1:24 pm
Forum: Tricks 'n' Tips
Topic: OpenB3D 3D DLL framework include file for PureBasic
Replies: 25
Views: 16543

Re: OpenB3D 3D DLL framework include file for PureBasic

The screen resolution shouldn't be an issue, as you are using windowed mode which doesn't have the limitations that fullscreen has.

Try putting some numbered 'Debug' statements in there to see if you can identify the line that is causing the crash.
by Axeman
Thu Jun 09, 2022 1:04 am
Forum: Tricks 'n' Tips
Topic: OpenB3D 3D DLL framework include file for PureBasic
Replies: 25
Views: 16543

Re: OpenB3D 3D DLL framework include file for PureBasic

OpenB3D is based on Blitz3D and uses most of the same commands. You can find Blitz3D along with usage docs and examples at the links below.

https://kippykip.com/b3ddocs/commands/index.htm | https://blitzresearch.itch.io/blitz3d | https://nitrologic.itch.io/blitz3d
by Axeman
Fri Apr 29, 2022 6:43 am
Forum: Tricks 'n' Tips
Topic: Function to create a grayscale version of an image
Replies: 6
Views: 1445

Re: Function to create a grayscale version of an image

Thanks for the replies. I've updated the original post with your suggestions.
by Axeman
Thu Apr 28, 2022 9:45 am
Forum: Tricks 'n' Tips
Topic: Function to create a grayscale version of an image
Replies: 6
Views: 1445

Function to create a grayscale version of an image

[Edited to fix issues discussed below.]

This function will create a grayscale version of the specified input image and output it via the output image. See the comments in the function for more information.

; Converts the pixels in 'input_image' to grayscale and stores them in 'output_image'. The ...