Search found 27 matches

by Nudgy
Fri Jan 09, 2026 11:31 am
Forum: Tricks 'n' Tips
Topic: updated: Simple and useful form layout designer for DBase / SQLite and others
Replies: 12
Views: 609

Re: Simple and useful form designer

I have the full version :D

But I use Linux. Maybe GetAsyncKeyState_() refers to Win API?
by Nudgy
Fri Jan 09, 2026 9:29 am
Forum: Tricks 'n' Tips
Topic: updated: Simple and useful form layout designer for DBase / SQLite and others
Replies: 12
Views: 609

Re: Simple and useful form designer

Thanks for sharing. This is a nice example.

Only one minor issue I noticed: The following function does not work and I cannot find it in the documentation: GetAsyncKeyState_

If the conditional is commented out, the application compiles.
by Nudgy
Thu Jan 08, 2026 5:18 pm
Forum: Linux
Topic: Tips and best practices for compiling for multiple/lower Linux versions?
Replies: 6
Views: 358

Re: Tips and best practices for compiling for multiple/lower Linux versions?

Voilà!

PureBasic AppTainer Helper (PAT) v1.0.0 (Beta) - compile for multiple Linux distros in seconds

https://i.postimg.cc/FKVtKxDg/PATv100-screenshot.png

What is PureBasic AppTainer Helper (PAT)?

I've uploaded the .def files including a helper script called "PAT" to allow compiling ...
by Nudgy
Thu Jan 08, 2026 11:30 am
Forum: Linux
Topic: Tips and best practices for compiling for multiple/lower Linux versions?
Replies: 6
Views: 358

Re: Tips and best practices for compiling for multiple/lower Linux versions?

Sure, on a very high level, the process is:

1. Download and install AppTainer from the AppTainer site (I couldn't find it in apt)
2. Create a ".def" file for each Linux distro to compile for. This is the tricky part, since the .def file is a script that defines all the packages that need to be ...
by Nudgy
Wed Jan 07, 2026 10:31 pm
Forum: Linux
Topic: Tips and best practices for compiling for multiple/lower Linux versions?
Replies: 6
Views: 358

Re: Tips and best practices for compiling for multiple/lower Linux versions?

After a lot of experimentation, it seems that AppTainer indeed is very efficient way to compile on Linux without using VMs. I have tested some simple compiled apps in a couple of VMs of older distros, and they work as intended, both GUI, console and C backend executables.

I can now compile my PB ...
by Nudgy
Tue Jan 06, 2026 9:22 pm
Forum: Linux
Topic: Tips and best practices for compiling for multiple/lower Linux versions?
Replies: 6
Views: 358

Re: Tips and best practices for compiling for multiple/lower Linux versions?


As an alternative to VMs you could try keeping a number of relevant Linux versions, with appropriate PureBasic installs, on bootable USB memory sticks with save persistence.

Thanks. I might try that out.

Meanwhile, I think I managed to get AppTainer working - kind of. I installed PB 6.04 and ...
by Nudgy
Mon Jan 05, 2026 5:46 pm
Forum: Linux
Topic: Tips and best practices for compiling for multiple/lower Linux versions?
Replies: 6
Views: 358

Tips and best practices for compiling for multiple/lower Linux versions?

I understand that the "best practice" for ensuring broad compatibility on Linux machines is to compile on the lowest Linux distro that still allows your application to compile and run. But what do you recommend in terms of...

- Method : Virtual machines, Docker, Apptainer, maybe something else ...
by Nudgy
Mon Jan 05, 2026 10:32 am
Forum: Coding Questions
Topic: How to enable console app to run in its own window via double-click?
Replies: 4
Views: 274

Re: How to enable console app to run in its own window via double-click?

Thanks, your last hint seems to work!

See the adjusted code below. It's tested only on my Linux PC, but with the compiler directive, it hopefully also works on Windows. In short, my app now launches the terminal, which in turn relaunches the app inside itself. The behaviour is the same in the ...
by Nudgy
Sun Jan 04, 2026 8:01 pm
Forum: Coding Questions
Topic: How to enable console app to run in its own window via double-click?
Replies: 4
Views: 274

Re: How to enable console app to run in its own window via double-click?

Thanks for the suggestion. The logger confirms that the executable is launching, but I am not able to try the Windows code snippet.

I can still only run my console app via the terminal, and not by double-clicking it. I wonder if there is some Linux limitation here.

Here's one short console ...
by Nudgy
Sun Jan 04, 2026 4:23 pm
Forum: Coding Questions
Topic: How to enable console app to run in its own window via double-click?
Replies: 4
Views: 274

How to enable console app to run in its own window via double-click?

I've created a small console program and it runs just fine, if I compile it and run it from CLI/terminal.

However, nothing happens if try to double-click it to launch it. Does anyone know why the console program won't launch in its own window?

I don't think it is quitting silently, because the ...
by Nudgy
Sat Dec 27, 2025 1:05 pm
Forum: The PureBasic Form Designer
Topic: Using .CHM help format with Linux version of form designer?
Replies: 2
Views: 420

Re: Using .CHM help format with Linux version of form designer?

Thanks! I used the solution that you provided here: https://www.purebasic.fr/english/viewtopic.php?t=83435

In case anyone else finds this, what I did to implement this was:

1. Put the bash (.sh) script in a folder next to the PB CHM help file that I got from the Windows PB Installer
2. Change the ...
by Nudgy
Mon Dec 22, 2025 8:58 pm
Forum: The PureBasic Form Designer
Topic: Using .CHM help format with Linux version of form designer?
Replies: 2
Views: 420

Using .CHM help format with Linux version of form designer?

Hi,

I was wondering if anyone has a clever trick that allows using the .chm version of the help file instead of the standard Linux help file from the form designer?

I find the CHM help format slightly more convenient to work with, even if I have to extract it from a Windows install first to ...
by Nudgy
Thu Dec 04, 2025 4:27 pm
Forum: The PureBasic Form Designer
Topic: Disabling "Generate event procedure" deletes event procedure in already existing form with event procedures?
Replies: 4
Views: 530

Re: Disabling "Generate event procedure" deletes event procedure in already existing form with event procedures?

I agree. It seems somewhat buggy, or at least it's not optimal UX design, if the setting risks breaking auto-generated form event procedures.

It would seem more logical to me, if that setting in Preferences only decides whether the default state in the form designer would be enabled event ...
by Nudgy
Thu Dec 04, 2025 12:11 am
Forum: The PureBasic Form Designer
Topic: Disabling "Generate event procedure" deletes event procedure in already existing form with event procedures?
Replies: 4
Views: 530

Re: Disabling "Generate event procedure" deletes event procedure in already existing form with event procedures?

Thanks for your answer.

After some more testing, I think this maybe works alright. If I understand the "Generate event procedures" setting in Preferences (not the similarly named setting in the form designer) it actually works as follows:

1. If enabled in Preferences -> An event procedure will be ...
by Nudgy
Wed Dec 03, 2025 10:33 pm
Forum: The PureBasic Form Designer
Topic: Disabling "Generate event procedure" deletes event procedure in already existing form with event procedures?
Replies: 4
Views: 530

Disabling "Generate event procedure" deletes event procedure in already existing form with event procedures?

Hi,

I was wondering if the following is the intended behaviour of the PureBasic form designer?:

If I disable "Generate event procedure" in File -> Preferences -> Form, this seems to also delete the an existing event procedure in the form that is currently being edited, even though this form ...