Search found 483 matches

by jdebord
Apr 24, 2017 6:56
Forum: Beginners
Topic: a message to all new users of FreeBasic
Replies: 8
Views: 1545

Re: a message to all new users of FreeBasic

Incorporating the FLTK distribution into the standard FB packages is a very good idea, but it may be difficult to synchronize the FLTK updates with the FB updates ?
by jdebord
Apr 19, 2017 7:19
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 89145

Re: FLTK C for FreeBASIC Jan 09, 2017

Yes it works. Thank you very much !

I had noticed this line but did not think it was responsible since the lower case letters were also allowed, as well as the digits.
by jdebord
Apr 18, 2017 7:05
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 89145

Re: FLTK C for FreeBASIC Jan 09, 2017

@jdebord post a really short example with the problem please. Than I will look what I can do for you. Joshy I use a slightly modified version of the demo program Spreadsheet.bas provided with FLTK. It is not really short :) #include once "fltk-main.bi" ' Demonstrate simple spreadsheet edi...
by jdebord
Apr 16, 2017 5:37
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 89145

Re: FLTK C for FreeBASIC Jan 09, 2017

With the Spreadsheet.bas example program provided with FLTK, it's possible to enter capital letters when editing the headers of the rows or columns. But this is not possible when editing a table cell, since pressing the SHIFT key closes the input box. How can we modify the program so that we can typ...
by jdebord
Feb 10, 2017 8:38
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 393
Views: 89145

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: 393
Views: 89145

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: 1390

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: 12791

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: 12791

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: 12791

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: 12791

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: 12791

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: 4993

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: 4993

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: 4993

Re: Screen Scrolling

Hello dodicat,
Where did you find these include files: mysoft_collision.bi and 24bitcustomfont.bi ?

Go to advanced search