Search found 991 matches

by Roland Chastain
Mar 28, 2024 11:17
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo animated spiral
Replies: 8
Views: 339

Re: Cairo animated spiral

I am now enjoying the animated spiral. The interesting point in this example (if I may say) is that it uses an image for drawing, instead of drawing directly on the screen (as do almost all examples that you can find in the forum). I posted it here a version using sGUI2, where the animation can be ...
by Roland Chastain
Mar 25, 2024 21:43
Forum: Windows
Topic: Cairo under Windows
Replies: 4
Views: 184

Re: Cairo under Windows

Hello!

I left Windows several years ago, and I no longer feel interest for it, but I still have on my HD some examples that I have made in Pascal. I put them on my website, in case you would like to take a look: freepascal-cairo-win32-examples.zip

Regards.

Roland
by Roland Chastain
Mar 22, 2024 10:21
Forum: General
Topic: screenres with a vertical scroll bar
Replies: 16
Views: 729

Re: screenres with a vertical scroll bar

jaskin wrote: Mar 15, 2024 20:04 Is it possible to have a vertical scroll bar when using screenres to create a window?
You might take a look to the sGUI library, which has a scrollbar, and is multiplatform.
by Roland Chastain
Mar 20, 2024 10:32
Forum: Sources, Examples, Tips and Tricks
Topic: Cairo animated spiral
Replies: 8
Views: 339

Cairo animated spiral

Hello everybody! Here is a little thing I have made. It's an animated spiral using Cairo (idea taken here ). Warning: Don't keep your eyes fixed on the animation, otherwise you will feel dizzy. :) #include once "cairo/cairo.bi" const WINDOW_W = 480 const WINDOW_H = 480 screenres WINDOW_W, ...
by Roland Chastain
Jan 13, 2024 9:19
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 446
Views: 96191

Re: Eschecs FreeBASIC (UCI chess GUI)

Hello everybody!

I applied the modifications suggested by neil here (thanks to him), and uploaded the project to a git repository:

https://codeberg.org/rchastain/eschecs-freebasic

Compilation successfully tested with fbc 1.10.1 under Linux.
by Roland Chastain
Jun 25, 2023 15:29
Forum: Libraries & Headers
Topic: FLTK headers for FreeBasic OOP (no C wrapper)
Replies: 232
Views: 26206

Re: FLTK headers for FreeBasic OOP (no C wrapper)

angros47 wrote: Jun 21, 2023 23:52 I hope developers and users could take over, in future, but I will try to provide support, if I can.
Could you share also your examples somewhere?
by Roland Chastain
Jun 05, 2023 5:29
Forum: Libraries & Headers
Topic: FLTK headers for FreeBasic OOP (no C wrapper)
Replies: 232
Views: 26206

Re: FLTK headers for FreeBasic OOP (no C wrapper)

Hello!

Tested the latest version of the library on Linux, with FBC 1.10 and the examples provided in this discussion. All compile and work fine.
by Roland Chastain
Feb 17, 2023 13:27
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4873

Re: FreeBASIC bindings for Rust regex

A last one (still capture, but using iterator). ' capture2.bas #include "rure.bi" #inclib "rure" dim subject(2) as zstring ptr = { _ @"2012-03-14", _ @"0000-00-00", _ @"0000-00-0A" _ } dim as rure ptr re = rure_compile_must("-(\d{2})") dim ...
by Roland Chastain
Feb 17, 2023 10:47
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4873

Re: FreeBASIC bindings for Rust regex

Three examples. ' match.bas #include "rure.bi" #inclib "rure" dim subject(2) as zstring ptr = { _ @"2012-03-14", _ @"0000-00-00", _ @"0000-00-0A" _ } dim as rure ptr re = rure_compile_must("^\d{4}-\d{2}-\d{2}$") ' rure_compile_must aborts t...
by Roland Chastain
Feb 17, 2023 1:11
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4873

Re: FreeBASIC bindings for Rust regex

For the fun, an all-in-one bash script which downloads and builds the library, builds the C example, downloads the FB header, creates and builds the FB example. To be pasted and run in an empty directory. # rure-start.sh # Usage: # chmod +x rure-start.sh # sh rure-start.sh echo Download Rust regex l...
by Roland Chastain
Feb 17, 2023 0:30
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4873

Re: FreeBASIC bindings for Rust regex

Thank you for the confirmation.
by Roland Chastain
Feb 16, 2023 13:27
Forum: Libraries & Headers
Topic: FreeBASIC bindings for Rust regex
Replies: 11
Views: 4873

Re: FreeBASIC bindings for Rust regex

Here is a first working example. It seems that I wasn't using the right method to build the library. ' test1.bas (Rust regex library usage example) ' 1. How to get librure.a ' ----------------------- /' git clone https://github.com/rust-lang/regex cd regex/regex-capi cargo build --release cd ../.. c...
by Roland Chastain
Feb 08, 2023 17:47
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 175
Views: 54064

Re: IUP_FB_EDITOR (simple development environment)

Another thing. This afternoon I played with the Windows version. I wonder if the relative path for the compiler is really supported: I didn't manage to make it work. Maybe I made a mistake in the path. But I have not seen any error message. If it was my program, I would add a log file, so one could ...
by Roland Chastain
Feb 08, 2023 17:30
Forum: Linux
Topic: error loading shared libraries: libtinfo.so.5: cannot open shared object file
Replies: 8
Views: 5307

Re: error loading shared libraries: libtinfo.so.5: cannot open shared object file

Same issue here on Mageia. I searched which version of libtinfo was installed: [roland@localhost source]$ locate libtinfo /usr/lib64/libtinfo.so /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.6.2 And I tried this wild solution, which works: [roland@localhost source]$ sudo cp /usr/lib64/libtinfo.so....
by Roland Chastain
Feb 08, 2023 17:22
Forum: Projects
Topic: IUP_FB_EDITOR (simple development environment)
Replies: 175
Views: 54064

Re: IUP_FB_EDITOR (simple development environment)

Hello VANYA!

Thanks for the update.

I don't know why, I had to put

Code: Select all

#define __USE_GTK3__
directly in iup.bi, like this:

Code: Select all

#inclib "iup"
#define __USE_GTK3__
#ifdef __fb_win32__
Otherwise I couldn't compile the program.