FB_GUI V1.20.5 (New Release Dec 19, 2019)

Headers, Bindings, Libraries for use with FreeBASIC, Please include example of use to help ensure they are tested and usable.
Post Reply
BasicScience
Posts: 489
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA
Contact:

Post by BasicScience »

BasicScience
Posts: 489
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA
Contact:

Post by BasicScience »

BasicScience
Posts: 489
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA
Contact:

Post by BasicScience »

HD_
Posts: 215
Joined: Jun 10, 2006 12:15
Contact:

Post by HD_ »

It's nice to see this project is still active, keep up the good work :)
BasicScience
Posts: 489
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA
Contact:

Post by BasicScience »

Thanks. It's not super creative... just "reverse engineering" to make the common GUI controls from VB6 available for FB, where the code can be more compact and easier to understand.
bethell
Posts: 44
Joined: Sep 26, 2009 22:02

Post by bethell »

Hi,
I'm new to FBGui.

When I try to run any of the compiled examples (dataentry.exe etc) I get a "freetype6.dll not found" error.

Do I need to download/install something before I run the examples ?

Thanks !!
aston
Posts: 16
Joined: Nov 29, 2009 20:32

Post by aston »

Is there a way that can be posibille run FB GUI without freetype.dll?
I think that makes no sense that GUI framework need only one type
of font for work is'nt?
I download FBGUI and i can't run examples becose app tell me that i dont have font called verasans.ttf where i can find this font?
Oh ok i find ,doenload vera.ttf and put this font in same folder where are
examples and also put in same folder freetype.dll but examples refuse to work? It seems that path not recognised?
'--------------------------------------------------------
Oh my i dont see this:
1. Required files.

FB_GUI_Lib.Bas must be in the FreeBasic \Inc\FB_GUI folder
FB_GUI.BI must be in the FreeBasic \Inc folder

VERA.TTF must be in the C:\Windows\Fonts folder

FreeType6.Dll must be in Windows\System32 folder
zlib.dll must be in Windows\System32 folder

'------------------------------------------------------------------------------
I think that this solution is not good.
So is there a way that example program automaticly find
startpath of required files, this will be then OK.?

I'm interested for FBGUI becose i think about posibility to add this GUI
as GUI framework for YaBasic ...

all best
Aurel
BasicScience
Posts: 489
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA
Contact:

Post by BasicScience »

@ Bethell

To run one of the exe examples (Windows only), you must have

VERA.TTF in the C:\Windows\Fonts folder
FreeType6.Dll in Windows\System32 folder
zlib.dll in Windows\System32 folder

These are required to support the custom font features from the freebasic extended library. The dlls and TTF files are available at the FB_GUI site.


@ Aston
The issues you mention all relate to the use of custom fonts. I lot of effort went in to adding this feature.. because you cannot assume the size of a character string on the screen. You will notice that many GUI packages in FB are restricted to only use the standard font (ie. default with draw_string).

I have not been completely satisfied with the FB_ext lib fonts.. you wil notice a few glitches in rendering the font glyphs (but I greatly appreciate the work of others). If I had to do it all over again, I would have used xFont. I am still considering a conversion to xFont, which is why I haven't cleaned up some of the inconveniences of installation.

thanks for your interest.
aston
Posts: 16
Joined: Nov 29, 2009 20:32

Post by aston »

Thanks to you but you dont undrstand me.
I say that this part is not good at all becose user must copy files inside
system32 folder?
this:
VERA.TTF in the C:\Windows\Fonts folder
FreeType6.Dll in Windows\System32 folder
zlib.dll in Windows\System32 folder

So i dont know but i think that FreeBasic have command such as
Setstartpath or getstartpath or something similiar and on this way
this files can be inside same folder where are examples.
do you get me now?
I hope that i dont whish to much!
And i hope that is posibile is'nt?
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Post by D.J.Peters »

hello aston
you are right all files can be in the same folder as your compiled exe
but you must add the folder to the systems search path.

DriveLetter:\MyFolder\MyApp.exe

set PATH=DriveLetter\MyFolder;%PATH%

But many other programs (all gtk apps etc.) need's zlib1.dll and freetype6.dll
so Drive:\Windows\System32\ are the primary choice.

i would put all my fonts to Drive:\Windows\Fonts

Joshy
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Post by aurelVZAB »

Joshy i understand you perfectly and of course i know that many other
programs use this files but ( big BUT) from my point of view is not very
good idea puting files inside windows system folder isn't.
I prefer always if is application portable like this one put all needed files in
one folder where exe is.
On this way you have untached windows system folder and i see that
many programmers do programs on that way becose is primary better
choice.
bethell
Posts: 44
Joined: Sep 26, 2009 22:02

Post by bethell »

Perhaps an alternative would be to have a 'setup' executable for FB_Gui which will create all the necessary environment variables, and put the required fonts/dlls etc in their proper places ... ?

Regards
agamemnus
Posts: 1842
Joined: Jun 02, 2005 4:48

Post by agamemnus »

Is there any opengl support planned? :|
BasicScience
Posts: 489
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA
Contact:

Post by BasicScience »

@ agamemnus,

At the moment, no opengl used or planned. Is there a particular feature you had in mind?

Sorry for the slow response. I was away for a few days.
BasicScience
Posts: 489
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA
Contact:

Post by BasicScience »

Many new changes. FB_GUI No longer requires DLLs be loaded for special font generation. GFX fonts from FB Extended Library have now all been replace with xFont.

FB_GUI_V1.20 is now available
http://sites.google.com/site/freebasicgui/Home
Post Reply