FB_GUI V1.20.5 (New Release Dec 19, 2019)
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
There is a minor issue with the text box with V-scroll. If you hold down a key (or have a string without spaces) and exceed the textbox width, the text will start displaying outside the text box.
Also, the fonts in some of the compiled examples are looking for a different path. That's not a big problem. But you might want to clear that up so that your demos work when extracted from the demo zip file.
Also, the fonts in some of the compiled examples are looking for a different path. That's not a big problem. But you might want to clear that up so that your demos work when extracted from the demo zip file.
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
@phishguy,
Thanks for taking the time to test the demos.
With regard to the text overrun with the vertical scroll bar... you explored a scenario I had not considered. Namely, a long string of characters with no spaces. Obviously the routine checks for space chr to perform a line break. Not sure I'll get around to fixing this one... because with "real" input (i.e. sensible text) it's unlikely to come across a word some long that the text will over-run.
The latest version for the Demos should look in : (a) the current directory, then (b) C:\Program Files\FreeBASIC\inc\xfont\ for the xFont files. It has been laborious to debug... because I need to load the programs on a machine w/o any of my "stuff" loaded. There has been some shifting of versions, but hopefully now all on the website should work well.
Anyway, cheers and thanks for the feedback.
Thanks for taking the time to test the demos.
With regard to the text overrun with the vertical scroll bar... you explored a scenario I had not considered. Namely, a long string of characters with no spaces. Obviously the routine checks for space chr to perform a line break. Not sure I'll get around to fixing this one... because with "real" input (i.e. sensible text) it's unlikely to come across a word some long that the text will over-run.
The latest version for the Demos should look in : (a) the current directory, then (b) C:\Program Files\FreeBASIC\inc\xfont\ for the xFont files. It has been laborious to debug... because I need to load the programs on a machine w/o any of my "stuff" loaded. There has been some shifting of versions, but hopefully now all on the website should work well.
Anyway, cheers and thanks for the feedback.
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
With regard to the text overrun with the vertical scroll bar... you explored a scenario I had not considered. Namely, a long string of characters with no spaces. Obviously the routine checks for space chr to perform a line break. Not sure I'll get around to fixing this one... because with "real" input (i.e. sensible text) it's unlikely to come across a word some long that the text will over-run.
However unlikely it may be, a typical end user will invariably type something unexpected (end users aren't always sensible). So, it is best to try to take into account any possible user input.
@Doggie,
You need to download the xfont.bi file. Here is the link:
http://xaviorsoft.freebasic.net/fbproduct/
You need to download the xfont.bi file. Here is the link:
http://xaviorsoft.freebasic.net/fbproduct/
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
@ Doggie and others.
The problem is now fixed. The issue was a redundancy in defining the boolean constants TRUE/FALSE by both xfont.bi and windows.bi (actually windef.bi within windows.bi). xfont.bi does not perform error-checking to determine if these constants have previously been defined. Therefore if windows.bi precedes xfont.bi in the code, then the compiler error is generated. I don't have access to modify xfont.bi so FB_GUI.BI has been modified to call xfont.bi before windows.bi. The latest version of the FB_GUI package is 1.20.1 and is available at this link:
http://sites.google.com/site/freebasicgui/Home
BasicScience
The problem is now fixed. The issue was a redundancy in defining the boolean constants TRUE/FALSE by both xfont.bi and windows.bi (actually windef.bi within windows.bi). xfont.bi does not perform error-checking to determine if these constants have previously been defined. Therefore if windows.bi precedes xfont.bi in the code, then the compiler error is generated. I don't have access to modify xfont.bi so FB_GUI.BI has been modified to call xfont.bi before windows.bi. The latest version of the FB_GUI package is 1.20.1 and is available at this link:
http://sites.google.com/site/freebasicgui/Home
BasicScience
I am stuck here:
Compiler output:
C:\FreeBasic\inc\FB_GUI\FB_GUI_LIB.Bas(4367) warning 35(0): No newline at end of file
C:\FreeBasic\bin\win32\ld.exe: cannot find -lxfont
I have Xfont in my \inc folder (that took me a while to sort out) but now I would appreciate a hint on what to do about this -lxfont thing please. I'm trying to quickrun (F5) the Slider.bas example
I can run the slider.exe provided in the examples without problem.
Thanks in advance
Compiler output:
C:\FreeBasic\inc\FB_GUI\FB_GUI_LIB.Bas(4367) warning 35(0): No newline at end of file
C:\FreeBasic\bin\win32\ld.exe: cannot find -lxfont
I have Xfont in my \inc folder (that took me a while to sort out) but now I would appreciate a hint on what to do about this -lxfont thing please. I'm trying to quickrun (F5) the Slider.bas example
I can run the slider.exe provided in the examples without problem.
Thanks in advance
-
- Posts: 489
- Joined: Apr 18, 2008 4:09
- Location: Los Angeles, CA
- Contact:
Xfont uses a compiled library. The linker cannot find the library on your machine. You must have libxfont.a in your \lib\win32 folder.
Also, you can change the location of the font files (*.xf generated by xfconv.exe) by resetting the shared string variable for the font path. See
Font_Path = "C:\program files\freebasic\inc\xfont\" in the FB_GUI.BI file.
Also, you can change the location of the font files (*.xf generated by xfconv.exe) by resetting the shared string variable for the font path. See
Font_Path = "C:\program files\freebasic\inc\xfont\" in the FB_GUI.BI file.