List of FreeBASIC GUI libraries/frameworks

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

List of FreeBASIC GUI libraries/frameworks

Post by systemctl »

1. GTK+ (builtin)

2. IUP (builtin)

3. FB GUI

viewtopic.php?f=8&t=12592

4. FB GUI 2 (Window9)

viewtopic.php?f=14&t=17058

5. FLTK

viewtopic.php?f=14&t=24547

6. WinFBX

https://github.com/JoseRoca/WinFBX

7. MyFbFramework

https://github.com/XusinboyBekchanov/MyFbFramework

This is about the main players. People's own GUI libraries are too many that without the help of you I can't know about it. Please help me add the missing to pieces.
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: List of FreeBASIC GUI libraries/frameworks

Post by systemctl »

The builtin GTK+ headers are pretty old. Here is the latest headers by TJF:

viewtopic.php?f=14&t=26932
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: List of FreeBASIC GUI libraries/frameworks

Post by systemctl »

Xusinboy Bekchanov wrote:13. X11
viewtopic.php?t=1606

14. WinAPI
viewtopic.php?t=13451

15. WinFormsX
https://github.com/PaulSquires/WinFormsX

16. Simple WinAPI GUI library
viewtopic.php?t=24617
Oh, I really don't know about them.
Xusinboy Bekchanov
Posts: 789
Joined: Jul 26, 2018 18:28

Re: List of FreeBASIC GUI libraries/frameworks

Post by Xusinboy Bekchanov »

There is also:

17. Qt with FB

viewtopic.php?t=15187

18. XForms GUI Toolkit

viewtopic.php?t=22671

19. FreeBasic Windows GUI Toolkit

viewtopic.php?t=14224
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: List of FreeBASIC GUI libraries/frameworks

Post by systemctl »

Xusinboy Bekchanov wrote:There is also:

17. Qt with FB

viewtopic.php?t=15187
The most interesting is this. But unfortunately it's not developed anymore.
oyster
Posts: 274
Joined: Oct 11, 2005 10:46

Re: List of FreeBASIC GUI libraries/frameworks

Post by oyster »

I met https://github.com/ying32/govcl recently, which is not a FreeBASIC GUI library, but is a GUI library based on Lazarus LCL for Go language. GoVCL is said to be a cross-platform GUI solution since Lazarus LCL does so.

Then I downloaded the pre-built binary file, and have a glimpse. I think the "liblcl.dll", which is compressed by upx to ~1.5M, is filled with Cdecl functions, so I give it a try

Code: Select all

'~ Declare sub Application_Initialize Cdecl Lib "liblcl.dll"()

dim as any ptr DLL
dim Application_Initialize as sub cdecl()
dim Application_CreateForm as sub cdecl()
dim Application_Run as sub cdecl()

DLL = dylibload("liblcl.dll")
Application_Initialize = dylibsymbol( DLL, "Application_Initialize" )
Application_CreateForm = dylibsymbol( DLL, "Application_CreateForm")
Application_Run = dylibsymbol( DLL, "Application_Run")

Application_Initialize()
Application_CreateForm()
Application_Run()

however the generated EXE file crashed if I run it.

There seems to be no document especially in C style. So it is a pity.
marcov
Posts: 3462
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: List of FreeBASIC GUI libraries/frameworks

Post by marcov »

Freepascal (and Lazarus) uses register; calling convention by default, not cdecl, but the GO guys could have hacked their copy of course.
mdchipman
Posts: 9
Joined: Aug 26, 2006 2:48

Re: List of FreeBASIC GUI libraries/frameworks

Post by mdchipman »

oyster,

This works in C and Windows.

Code: Select all

#include <stdio.h>
#include <windows.h>

unsigned int __stdcall Application_Instance(void);
void __stdcall Application_Initialize(unsigned int);
unsigned int __stdcall Application_CreateForm(unsigned int, unsigned int);
void __stdcall Application_Run(unsigned int);

void __stdcall Form_SetCaption(unsigned int, char *);
void __stdcall Form_SetWidth(unsigned int, unsigned int);
void __stdcall Form_SetHeight(unsigned int, unsigned int);

int main(int argc, char *argv[])
{
    unsigned int app;
    unsigned int pf;

    app = Application_Instance();

    Application_Initialize(app);

    pf = Application_CreateForm(app, 1);

    Form_SetWidth(pf, 320);
    Form_SetHeight(pf, 200);

    Form_SetCaption(pf, "Lcl Form");

    Application_Run(app);

    return 0;
}
Dinosaur
Posts: 1481
Joined: Jul 24, 2005 1:13
Location: Hervey Bay (.au)

Re: List of FreeBASIC GUI libraries/frameworks

Post by Dinosaur »

Hi All

CGUI written in C but ported to FB for many years now.

http://cgui.sourceforge.net/

Regards
Post Reply