FBGUI library for Windows 2

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Coolman
Posts: 233
Joined: Nov 05, 2010 15:09

Re: FBGUI library for Windows 2

Postby Coolman » May 04, 2021 13:20

@SARG

i never used FB debugger because freebasic is only used for small command line projects. this could change with an efficient gui (fltk would be ideal because this library allows static compilation without any dependency. this is important under linux). i looked at your post. impressive work. it seems to be the ideal tool to debug an important program under freebasic...
VANYA
Posts: 1507
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Postby VANYA » Jun 06, 2021 13:43

Library Update:

Linux:

Fix / change:
Clearstring (now the passed string does not change internally)
Getlinetexteditor (return value no longer contains hyphenation characters)
Messbox (flag parameter can now be MB_YESNOCANCEL)
Openwindow (style can contain WS_HSCROLL, WS_VSCROLL)
Updateinfoxserver (parameter was not used, it was always 10000; now the parameter is used)
Setgadgetcolor (using GTK3 on newer distributions the color did not change in some gadgets)
Openglgadget (removed dependency in the form of glarea library, now supported with GTK3)
Load_image (optimization)
Catch_image (optimization)
Resize_image (freeing resources)
Create_image (optimization)
Imagestartdraw (optimization)
Windowstartdraw (optimization)
Pixdraw (range checks added)
Imagedraw (optimization)
Getpix (range checks added)
Fillrectdraw (freeing up resources)
Textdraw (now full unicode support, previously used a stripped-down version for drawing text)
Piedraw (fixed drawing with frame)
minor fix for working with events
the disable_webgadget macro will now allow excluding the Webgadget code when compiling the library (if this gadget is not required for some reason)
Panelgadget (added Eventgadget event when switching tabs)
renamed (ReplaceTextItemListView, ReplaceTextColumnListView, RenameItemTreeView) to (Settextitemlistview, Settextcolumnlistview, Settextitemtreeview)
includeBinary - changed code for 64-bit

Add:
Getfirstvisiblelineeditor
Lineindexeditor
Linelengtheditor
Rotateandscaleimage
Setselecttreeviewitem
Getchilditemtreeview
Getparentitemtreeview
Collapsetreeviewitem
Expandtreeviewitemall
Collapsetreeviewitemall
Expandtreeviewitem
Getnextitemtreeview
Getprevitemtreeview
Getfirstitemtreeview
Deletetreeviewitemall
Creategpbitmapfromhbitmap
Copy_imagea
Catch_imagea
Grab_imagea
Image_heighta
Image_widtha
Resize_imagea
Create_imagea
Save_imagea
Rotateandscaleimagea
Load_imagea
Free_imagea
Arcdrawa
Bezierdrawa
Boxdrawa
Circledrawa
Createbrusha
Createfontdrawa
Fillrectdrawa
Freebrusha
Freefontdrawa
Getpixa
Imagedrawa
Imagestartdrawa
Linedrawa
Modedrawa
Piedrawa
Polygondrawa
Rounddrawa
Setpixa
Stopdrawa
Textdrawa
Windowstartdrawa
Createhbitmapfromgpbitmap
Full support for USTRING (dynamic unicode string)

Windows:

Fix / change:
Clearstring (now the passed string does not change internally)
Readonlyeditor (now does not return a value)
Createhbitmapfromgpbitmap (color bug fixed)
Panelgadgetsetcursel (tab switching fixed)
Addtreeviewitem (changed the internal algorithm for working with images)
Replaceimageitemtreeview (minor minor fix)
Replaceimagelistview (minor minor fix)
Getcountitemtreeview (minor fix for working with Explorerlistgadget)
Deletelistviewcolumn (freeing image resources)
Deleteitemlistview (changed the internal algorithm for working with images)
Addlistviewitem (changed the internal algorithm for working with images)
Deletelistviewitemsall (changed the internal algorithm for working with images)
Deletetreeviewitem (internal algorithm for working with images has been changed)
Hidegadget (Spingadget bug fix)
Gadgetwidth (fix for Spingadget)
Gadgetheight (Spingadget bug fix)
Resizegadget (fix for Spingadget)
Deletetreeviewitemall (internal algorithm for working with images has been changed)
minor fix for working with events
Close_window (freeing resources for shortcut)
Inputbox (support for switching focus for interface elements, added the ability to set a parent for this dialog)
renamed (ReplaceTextItemListView, ReplaceTextColumnListView, RenameItemTreeView, FreeGpBitmap) to (Settextitemlistview, Settextcolumnlistview, Settextitemtreeview, Free_imagea)
includeBinary - changed code for 64-bit

Add:
Setselecttreeviewitem
Getparentitemtreeview
Getchilditemtreeview
Expandtreeviewitem
Expandtreeviewitemall
Getnextitemtreeview
Getprevitemtreeview
Getfirstitemtreeview
Collapsetreeviewitem
Collapsetreeviewitemall
Deletetreeviewitemall
Support for switching focus for gadgets using Tab, SHIFT + Tab, CTRL + Tab keys
RNBW
Posts: 206
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Postby RNBW » Jun 06, 2021 18:55

VANYA

Thank you for the update.

I am having a problem. No matter what code I write using Window 9 with the recent update to FreeBASIC (1.08.0 with gcc 9.3) I get the following error message:

"C:\FreeBASIC-1.08.0-winlibs-gcc-9.3.0\bin\ld.exe: cannot find -lz"

I don't understand the error message so I don't know how to proceed.

I suspect it is to do with gcc 9.3 because I have just tried the code using your February 2021 update and I get the same message. Using Freebasic 1.07.3 and your Window9 Februaru 2021 update the code runs fine.

Ray
D.J.Peters
Posts: 8297
Joined: May 28, 2005 3:28
Contact:

Re: FBGUI library for Windows 2

Postby D.J.Peters » Jun 06, 2021 20:42

@RNBW you need the file "libz.a" 32 and or 64-bit version !

Joshy
RNBW
Posts: 206
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Postby RNBW » Jun 06, 2021 22:28

D.J.Peters wrote:@RNBW you need the file "libz.a" 32 and or 64-bit version !

Joshy

Joshy
Thanks that seems to have solved the problem. The file "libz.a" wasn't included in the June 2021 Window9 library that I downloaded from SourceForge. However, I did find it in the version in the January and May 2021 versions. I don't know if they are the same but are both 129Kb.

Ray
VANYA
Posts: 1507
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Postby VANYA » Jun 07, 2021 3:41

C:\FreeBASIC-1.08.0-winlibs-gcc-9.3.0\bin\ld.exe: cannot find -lz


The old release has zlib libraries for win32 and win64. Imortis also offered links to libraries in this post.

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 4 guests