FB_GUI V1.20.4 (New Release Oct 29, 2011)

User projects written in or related to FreeBASIC.
BasicScience
Posts: 451
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA

Postby BasicScience » Aug 29, 2009 18:52

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

Postby BasicScience » Sep 13, 2009 20:39

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

Postby BasicScience » Jan 03, 2010 1:23

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

Postby HD_ » Jan 03, 2010 3:35

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

Postby BasicScience » Jan 03, 2010 6:39

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

Postby bethell » Jan 10, 2010 6:19

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

Postby aston » Jan 10, 2010 8:51

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: 451
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA

Postby BasicScience » Jan 10, 2010 14:34

@ 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

Postby aston » Jan 10, 2010 15:03

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: 7502
Joined: May 28, 2005 3:28

Postby D.J.Peters » Jan 10, 2010 16:33

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: 270
Joined: Jul 02, 2008 14:55
Location: Croatia
Contact:

Postby aurelVZAB » Jan 10, 2010 17:51

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

Postby bethell » Jan 11, 2010 5:18

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

Postby agamemnus » Feb 20, 2010 21:18

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

Postby BasicScience » Feb 24, 2010 4:20

@ 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: 451
Joined: Apr 18, 2008 4:09
Location: Los Angeles, CA

Postby BasicScience » Mar 28, 2010 20:28

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

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 5 guests