Search found 473 matches

by jdebord
Aug 31, 2019 8:35
Forum: Windows
Topic: DEF FN Not Working?
Replies: 2
Views: 349

Re: DEF FN Not Working?

You can use a macro instead :

Code: Select all

#define fna(x) (4 * (x))


but don't forget the parentheses :)
by jdebord
Aug 12, 2019 7:18
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46110

Re: FLTK-C-1.3.3 for FreeBASIC

An example using graphic functions (Draw...) and the "extended" window widget: #include "fltk-main.bi" function draw_text cdecl (self as any ptr) as long DrawSetColor FL_WHITE DrawRectFill 0, 0, 300, 300 DrawSetColor FL_BLUE DrawRectFill 10, 10, 130, 80 DrawRectFill 10, 110, 130,...
by jdebord
Aug 11, 2019 7:25
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46110

Re: FLTK-C-1.3.3 for FreeBASIC

Nice example, but I would rather set ICONSIZE at a value > 32 otherwise the picture extends outside of the button.
by jdebord
Jul 26, 2019 8:02
Forum: General
Topic: Simple Barchart with Dislin error
Replies: 5
Views: 1067

Re: Simple Barchart with Dislin error

Are you sure to have downloaded the Linux distribution ? You should have dislin(...).so and dislin_d(...).so (dislin_d is for double precision)

The .dll files are for Windows.

The Linux distributions are here:

https://www.mps.mpg.de/dislin/linux
by jdebord
Jul 25, 2019 8:39
Forum: Beginners
Topic: Difference between fltk and fltk-c?
Replies: 3
Views: 861

Re: Difference between fltk and fltk-c?

Aren't they both in C++ ?
by jdebord
Jul 19, 2019 7:01
Forum: Projects
Topic: DOD.bas Dungeon of Doom
Replies: 3
Views: 1133

Re: DOD.bas Dungeon of Doom

You may wish to check Richard Clark's website :

http://users.freebasic-portal.de/rdc/index.html

He has an excellent tutorial "Let's build a roguelike" and several FreeBASIC programs.
by jdebord
Jul 17, 2019 9:06
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46110

Re: FLTK-C-1.3.3 for FreeBASIC

Glad to see that it works :)

And yes, TRUE and FALSE are already defined in the most recent FB versions.
by jdebord
Jul 17, 2019 6:56
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46110

Re: FLTK-C-1.3.3 for FreeBASIC

I have already mentioned my calculator program:

viewtopic.php?f=14&t=21548&p=208187#p208187

I have other programs written with FLTK but they are all french versions so I have to modifiy them.

And BTW, yes I use global variables :)
by jdebord
Apr 01, 2019 7:01
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46110

Re: FLTK C for FreeBASIC Jan 09, 2017

You may try Fl_Redraw (Redraws all widgets) or Fl_WidgetRedraw(mnb) (Redraws a specific widget)
by jdebord
Jan 08, 2019 8:45
Forum: Tips and Tricks
Topic: Mirror an Image or the Screen horizontal or vertical only with GET and PUT.
Replies: 7
Views: 641

Re: Mirror an Image or the Screen horizontal or vertical only with GET and PUT.

Thank you very much ! This is an excellent complement to your FBImage and Multiput libraries.
by jdebord
Oct 08, 2018 7:33
Forum: Hardware Interfaces / Communication
Topic: Raspberry Pi and FreeBASIC
Replies: 18
Views: 4875

Re: Raspberry Pi and FreeBASIC

Isn't FB already available in Raspbian ?
by jdebord
May 12, 2018 9:08
Forum: Libraries
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 353
Views: 46110

Re: FLTK C for FreeBASIC Jan 09, 2017

Two questions about the Fl_Canvas widget: 1) The label does not appear: #include once "fltk-c.bi" var win = Fl_Double_WindowNew(500,500) var can = Fl_CanvasNew(50, 50, 400, 400, "Canvas") Fl_WindowShow win Fl_Run 2) What is the meaning of the parameters srcX and srcY in the callb...
by jdebord
Feb 26, 2018 7:46
Forum: Community Discussion
Topic: [offtopic]The "new" C64 mini
Replies: 3
Views: 645

Re: [offtopic]The "new" C64 mini

There seems to be an attempt to revive the ZX spectrum with a Raspberry Pi :

https://www.electronicsweekly.com/news/ ... o-2017-04/
by jdebord
Jan 06, 2018 8:08
Forum: Linux
Topic: What do you think about FB as a bash scripting alternative?
Replies: 7
Views: 942

Re: What do you think about FB as a bash scripting alternative?

The latest version (0.9.27) of TCC is here :

viewtopic.php?f=14&t=24699

You can generate TCC scripts from FreeBASIC :

viewtopic.php?f=14&t=24699
by jdebord
Jan 04, 2018 8:01
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 20143

Re: TinyDialog a simple Windows and Linux user interface.

JohnK wrote:Btw, if you didn't read the gui thread, don't bother. I still think FLTK and this lib are the best choice for FB.


I agree with this. I will stick to FLTK, no matter which library is added to FB.

Go to advanced search