Search found 479 matches

by jdebord
Feb 10, 2017 8:38
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 380
Views: 70899

Re: FLTK C for FreeBASIC Jan 09, 2017

Yes it works. Thank you very much ! I had noticed this function Fl_GetFontNames but I could not find how it worked ...
by jdebord
Feb 09, 2017 10:10
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 380
Views: 70899

Re: FLTK C for FreeBASIC Jan 09, 2017

How can I change the font attributes in FLTK ? For instance, I can select a Windows font with Fl_SetFont : #include "fltk-c.bi" var Win = Fl_WindowNew(300,200) var Btn = Fl_ButtonNew(10,10,280,180,"Button") Fl_SetFont 100, "Garamond" Fl_WidgetSetLabelFont Btn, 100 Fl_Wi...
by jdebord
Jan 08, 2017 13:14
Forum: Windows
Topic: FreeBasic DLL with modules
Replies: 7
Views: 1301

Re: FreeBasic DLL with modules

Hello Klaus :) If you comment the two #include directives, the code of the two functions is not included in the DLL and of course the DLL does not contain any function. Is this what you mean, or am I missing something myself ? If you want to split your DLL into several modules, a possibility would b...
by jdebord
Nov 24, 2016 19:12
Forum: Libraries
Topic: FBImage static Win/Lin 32/64-bit
Replies: 58
Views: 11555

Re: Library FBImage for Windows/Linux 32/64-bit.

I think I have found the bug :) For compiling with GCC on the Raspberry Pi : in the file FBImage.c, you must add the line: #define STB_IMAGE_WRITE_IMPLEMENTATION before the line: #include "stb_image_write.h" (This is explained in the comments in stb_image_write.h) Then compile the library:...
by jdebord
Nov 24, 2016 16:22
Forum: Libraries
Topic: FBImage static Win/Lin 32/64-bit
Replies: 58
Views: 11555

Re: Library FBImage for Windows/Linux 32/64-bit.

I have compiled the library on the Raspberry Pi but when I try to compile a demo program I get an error:

Code: Select all

undefined reference to `stbi_write_png'

What did I miss ?
by jdebord
Nov 22, 2016 8:13
Forum: Libraries
Topic: FBImage static Win/Lin 32/64-bit
Replies: 58
Views: 11555

Re: Library FBImage for Windows/Linux 32/64-bit.

Is there a version of this library for the Raspberry Pi ? Do I need to recompile the source code ?

I use a Raspberry Pi 3 with FB from the debian package at freebasic-portal.de and FLTK from the arm library which is included in the FLTK package.
by jdebord
Sep 29, 2016 9:18
Forum: Libraries
Topic: FBImage static Win/Lin 32/64-bit
Replies: 58
Views: 11555

Re: Library FBImage for Windows/Linux 32/64-bit.

Under Ubuntu Linux 64bit it displayed a window with a solid blue circle on a red background and it saved a file that displayed a window with a solid blue circle on a black and white checkerboard background Are you referring to the example that I have posted before ? In this case, the checkerboard w...
by jdebord
Sep 27, 2016 7:31
Forum: Libraries
Topic: FBImage static Win/Lin 32/64-bit
Replies: 58
Views: 11555

Re: Library FBImage for Windows/Linux 32/64-bit.

Here is a little function to save the graphic screen (I hope it is correct...) #include once "FBImage.bi" function savescreen(filename as string) as boolean dim as integer w, h dim as boolean ok screeninfo w, h var img = imagecreate(w, h) get (0,0)-(w-1, h-1), img ok = SavePNGFile(img, fil...
by jdebord
Aug 11, 2016 6:57
Forum: Beginners
Topic: Screen Scrolling
Replies: 59
Views: 4618

Re: Screen Scrolling

@dodicat:
I have got your zip file ! Thanks :)
The demo runs very well.
by jdebord
Aug 10, 2016 7:55
Forum: Beginners
Topic: Screen Scrolling
Replies: 59
Views: 4618

Re: Screen Scrolling

@dodicat:
The link is blocked by my ISP. Is there another means to get these files?

@BasicCoder2:
I have checked your demo. Very interesting !
by jdebord
Aug 09, 2016 7:02
Forum: Beginners
Topic: Screen Scrolling
Replies: 59
Views: 4618

Re: Screen Scrolling

Hello dodicat,
Where did you find these include files: mysoft_collision.bi and 24bitcustomfont.bi ?
by jdebord
May 12, 2016 7:18
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 380
Views: 70899

Re: FLTK C for FreeBASIC.

You can create the import library with pexports and dlltool : pexports XXX.dll > XXX.def dlltool -D XXX.dll -d XXX.def -l libXXX.dll.a Of course, replace XXX with the name of the FLTK library which you are using. pexports.exe and dlltool.exe should be in your FreeBASIC bin\win... subdirectory In cas...
by jdebord
Mar 29, 2016 7:40
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 380
Views: 70899

Re: FLTK C for FreeBASIC.

Thank you for this update !

However, it seems that the import library libfltk...dll.a is missing in the Windows archive.
by jdebord
Nov 27, 2015 8:07
Forum: Tips and Tricks
Topic: Circle from 3 points.
Replies: 1
Views: 680

Re: Circle from 3 points.

Very useful routine. Thank you very much.
by jdebord
Oct 17, 2015 7:53
Forum: Community Discussion
Topic: A list of my FreeBASIC activities of the past 10 years.
Replies: 16
Views: 4448

Re: A list of my FreeBASIC activities of the past 10 years.

Very useful collection of links ! Thank you very much !

Go to advanced search