GUI library for Windows \ Linux (window9)

Headers, Bindings, Libraries for use with FreeBASIC, Please include example of use to help ensure they are tested and usable.
Post Reply
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FBGUI library for windows 2

Post by MrSwiss »

Just a word of caution: it is 32-bit only!

For 32 & 64 bit's compatibility, better use: CWindow Release Candidate 31 (also called: WinFBX)
by José "Josep", Roca -- also a part of: WinFBE (FB-IDE), by Paul Squires
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: FBGUI library for windows 2

Post by D.J.Peters »

@chris319 For 32-bit Apps it's pretty stable I know the source code I added the OpenGL widget in the past.

If you need 64-bit or cross platform apps like 32/64-bit Windows \ Linux or 32-bit ARM FLTK-c are my first choice.

Joshy
enform
Posts: 185
Joined: Apr 24, 2011 12:57
Location: France

Re: FBGUI library for windows 2

Post by enform »

What is needed for the conversion of window9 to 64 bits ?
fbc 64bits , changing integer by long ? what else ? coffee ?
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: FBGUI library for windows 2

Post by chris319 »

MrSwiss wrote:Just a word of caution: it is 32-bit only!

For 32 & 64 bit's compatibility, better use: CWindow Release Candidate 31 (also called: WinFBX)
by José "Josep", Roca -- also a part of: WinFBE (FB-IDE), by Paul Squires
32-bit what?

I'm running 64-bit Windows 10. Will it work? Or do you mean 32-bit FreeBASIC?
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FBGUI library for windows 2

Post by MrSwiss »

chris319 wrote:32-bit what? <-- the library code
FreeBASIC Compiler 32-bit. (64-bit run's only on 64-bit OS, anyway)
chris319 wrote:Will it work? Or do you mean 32-bit FreeBASIC? <-- Yes, correct.
32-bit run's on both 32/64-bit OS, likewise (on 64-bit, in a 32-bit Emulator, WoW = Windows)

The code is not written, to be compatible, with 64-bit Compiler, because: for the longer
time, of FBC's existence, it was 32-bit only. Actually, all versions below version: 1.00.0 ...
The 64-bit versions, prior to 1.05.0, can be considered, buggy.
Reason: 1.04.0 introduced new data type: Boolean, which caused some new bug's.
That doesn't mean, 1.05.0 is bug-free, but stable ...
Last edited by MrSwiss on Oct 04, 2017 22:18, edited 1 time in total.
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: FBGUI library for windows 2

Post by chris319 »

OK, thank you. I will make sure I have 32-bit FreeBASIC installed.
MrSwiss
Posts: 3910
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: FBGUI library for windows 2

Post by MrSwiss »

chris319 wrote:OK, thank you. I will make sure I have 32-bit FreeBASIC installed.
Good idea but, since you are on a 64-bit OS: I'd also install the 64-bit version ...
(just make sure, to use different directories/folders, e.g. FBC32/FBC64 or similar)

Libraries: I'd only use newer Lib's, that are compatible with both versions ...
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: FBGUI library for windows 2

Post by chris319 »

OK.

I am trying to read the pixel values inside a movie player. I have been unable to do this successfully with PureBasic. We'll see how it goes with FB.
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: FBGUI library for windows 2

Post by chris319 »

D:\Programs\FreeBASIC\bin\win32\ld.exe: cannot find -lwindow9
Now what?
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

Re: FBGUI library for windows 2

Post by D.J.Peters »

it's all include in LIBFB.zip
download: LIBFB.zip

In the case your russian are not perfect here are the Window9 help in english ;-)
download: helpWindow9en.zip


move\copy the 3 *.a files to the FreeBASIC\lib\win32
move\copy the 3 *.bi files to the FreeBASIC\inc

thats all

Joshy
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: FBGUI library for windows 2

Post by chris319 »

To compile, copy these three files to the folder FreeBASIC\inc

zlib.bi
Window9.bi
Linked_Lists.bi

Copy these three files to the folder FreeBASIC\lib\win32

libwindow9.a
libLinked_Lists.a
libz.a
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: FBGUI library for windows 2

Post by chris319 »

I got it to compile without error, thank you.

The function LoadMovie() does not open a movie file with a literal string, viz.:

Code: Select all

mov8=loadmovie(GadgetID(4),"mymovie.mp4",0,0,WindowWidth(hwnd)-30,WindowHeight(hwnd)-110)
The volume function does not work:

Code: Select all

MovieAudioSetVolume (mov8, -1000)
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for windows 2

Post by VANYA »

chris319 wrote:I got it to compile without error, thank you.

The function LoadMovie() does not open a movie file with a literal string, viz.:

Code: Select all

mov8=loadmovie(GadgetID(4),"mymovie.mp4",0,0,WindowWidth(hwnd)-30,WindowHeight(hwnd)-110)
The volume function does not work:

Code: Select all

MovieAudioSetVolume (mov8, -1000)
Only now I checked on the systems:

windows 7 32 bit
windows 10 64 bit (32-bit compilier)

Everything works fine. The volume is also adjustable. You are doing something wrong. Perhaps you incorrectly specified the path to the file. With loudness, there can be problems only if you have incorrect codecs. Try it on another file.
chris319
Posts: 119
Joined: Jun 10, 2005 18:23

Re: FBGUI library for windows 2

Post by chris319 »

Perhaps you incorrectly specified the path to the file.
If that were the problem the movie would not load and play, which it does. I can control the volume on the same file on the same machine using the PureBasic player so I doubt the problem is with my machine or the codecs or the file.
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for windows 2

Post by VANYA »

Please, participants of the forum, who has the library installed: please check the participant's approval chris319.

chris319! I ask to lay out in the archive [not working code + movie] , without violating the licenses movie.
Post Reply