List of FreeBASIC GUI libraries/frameworks

For other topics related to the FreeBASIC project or its community.
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

List of FreeBASIC GUI libraries/frameworks

Postby systemctl » May 02, 2020 8:14

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

Postby systemctl » May 02, 2020 8:21

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

Postby systemctl » May 02, 2020 18:10

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.
systemctl
Posts: 182
Joined: Mar 27, 2020 5:15

Re: List of FreeBASIC GUI libraries/frameworks

Postby systemctl » May 03, 2020 7:31

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: 216
Joined: Oct 11, 2005 10:46

Re: List of FreeBASIC GUI libraries/frameworks

Postby oyster » Jun 03, 2020 7:21

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: 3004
Joined: Jun 16, 2005 9:45
Location: Eindhoven, NL
Contact:

Re: List of FreeBASIC GUI libraries/frameworks

Postby marcov » Jun 03, 2020 7:57

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

Postby mdchipman » Jun 11, 2020 23:45

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: 1357
Joined: Jul 24, 2005 1:13
Location: Hervey Bay
Contact:

Re: List of FreeBASIC GUI libraries/frameworks

Postby Dinosaur » Jun 11, 2020 23:51

Hi All

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

http://cgui.sourceforge.net/

Regards

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 10 guests