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
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Post by VANYA »

Hi all!

@RNBW
Thank you very much! I know that translation is very time-consuming operation, I'm glad you have the patience. Please make changes to english help file, to the page: "Information about the developers" . You must be referred there as a translator in the help file. I also forgot to Steini63 user mention in the help file. I remade changes in Russian help file. You can see the modified page in the Help file: https://sourceforge.net/projects/guiwin ... p/download

I'll wait for you and then refreshes the information on sf.net
Last edited by VANYA on Oct 09, 2019 18:05, edited 2 times in total.
enform
Posts: 185
Joined: Apr 24, 2011 12:57
Location: France

Re: FBGUI library for Windows 2

Post by enform »

Hi RNBW ,
you deserve great thanks ! And VANYA too ...
No problems to read the chm after the download , here .
RNBW
Posts: 267
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Post by RNBW »

VANYA wrote:Hi all!

@RNBW
Thank you very much! I know that translation is very time-consuming operation, I'm glad you have the patience. Please make changes to english help file, to the page: "Information about the developers" . You must be referred there as a translator in the help file. I also forgot to Steini63 user mention in the help file. I remade changes in Russian help file. You can see the modified page in the Help file: https://sourceforge.net/projects/guiwin ... p/download

I'll wait for you and then refreshes the information on sf.net
@VANYA
I've updated the help file as you requested and edited my post accordingly. I have also added 3 sections of code in the HelpFileCode>3D(openGL) folder which I had missed. I think you will probably find that you need to unblock the help file even though it is in a zipfile.

Thank you very much for a mention in the contributors list.
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Post by VANYA »

RNBW wrote:I've updated the help file as you requested and edited my post accordingly
Thank you!

-------------

I have updated the library. What was done:

1) Fixed a few bugs
2) Added English help file , courtesy of the translated user-RNBW.
3) Spent recompiling the library under the current version of the compiler (1.07.1)
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Post by VANYA »

Minor update:

The main fixes were for Linux version files. All these are basically point edits, except for the completely rewritten functions: WaitEvent and ClearString. Of course, it was necessary to rewrite the ClearString function in the Windows version, but I forgot. What will be where to start the next update ...
enform
Posts: 185
Joined: Apr 24, 2011 12:57
Location: France

Re: FBGUI library for Windows 2

Post by enform »

Hi all,

Windows sends several messages for a single click, it's annoying if the processing to do is important.
In the code below, I added a PeekMessage ... PM_REMOVE but that doesn't solve the problem.

You can see that the same message is sent 3 times, but it can be more.
Does anyone have the solution ? Thanks .

Code: Select all

# Include "window9.bi"

Var hwnd = OpenWindow ("", 10,10,300,100)
ComboBoxGadget (1,10,10,100,80)
AddComboBoxItem (1, "Privet0", -1)
AddComboBoxItem (1, "Privet1",-1)
AddComboBoxItem (1, "Privet2", -1)
TextGadget (2,150,10,100,20)

Var evnb = 0

Dim wMsg As MSG

Do
	var event = WaitEvent ()
	If event > 0 And event <> 512 And event <> 513  And event <> 514  Then 	
		? "event = " ,event
	EndIf	
	If event = EventClose Then Exit Do
	If event = EventGadget Then
		If EventNumber () = 1 Then
		evnb +=1
		? "click",,evnb
			SetGadgetText (2, GetComboBoxText (1, GetItemComboBox (1)))
		EndIf
	EndIf
	If event Then 
		While PeekMessage(@wMsg,hwnd, 0, 0, PM_REMOVE)
		? "PM_REMOVE",wMsg.message		
		Wend 
	EndIf 		
Loop
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Post by VANYA »

Hi enform!

Code: Select all

# Include "window9.bi"

Var hwnd = OpenWindow ("", 10,10,300,100)
ComboBoxGadget (1,10,10,100,80)
AddComboBoxItem (1, "Privet0", -1)
AddComboBoxItem (1, "Privet1",-1)
AddComboBoxItem (1, "Privet2", -1)
TextGadget (2,150,10,100,20)

Var evnb = GetItemComboBox (1)

Dim wMsg As MSG

Do
   
   var event = WaitEvent ()
  
   If event = EventClose Then Exit Do
   
   If event = EventGadget Then

      If EventNumber () = 1 Then
		
		var iItemm = GetItemComboBox (1)
		
		if iItemm <> evnb then
			
			evnb = iItemm
			
			SetGadgetText (2, GetComboBoxText (1, iItemm))

			? "Click" , iItemm

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

Re: FBGUI library for Windows 2

Post by enform »

Hi VANYA !

Yes I'm ok with your code , i already made the same thing in the past , but i expected a possibility with PM_REMOVE in order to
clean up a bit the messages queue .
it may be impossible to tame Windows.
Makoto WATANABE
Posts: 231
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: FBGUI library for Windows 2

Post by Makoto WATANABE »

Dear VANYA;

"libz.a" was included in the previous version of the Window9 library "LIBFB".
However, it is not included in the new package, so please include it.
If possible, I would appreciate including also "libzlib.a" in the Window9 package.
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Post by VANYA »

Makoto WATANABE wrote:Dear VANYA;

"libz.a" was included in the previous version of the Window9 library "LIBFB".
However, it is not included in the new package, so please include it.
If possible, I would appreciate including also "libzlib.a" in the Window9 package.
Hi Makoto WATANABE!
I put the libz.a files from the old archive into the window9.zip archive, but I did not check the performance. I almost do not use windows, only in very rare cases. If there are problems with these files, please write about it.
Makoto WATANABE
Posts: 231
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: FBGUI library for Windows 2

Post by Makoto WATANABE »

Dear VANYA;

Thanks for your quick action.
With the library included in the package, new users of Window9 can easily get started.
Imortis
Moderator
Posts: 1923
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: FBGUI library for Windows 2

Post by Imortis »

I took the time to search out the zlib binaries a while ago. Here is 32 and 64bit for windows:
zlib.zip
Makoto WATANABE
Posts: 231
Joined: Apr 10, 2010 11:41
Location: Japan
Contact:

Re: FBGUI library for Windows 2

Post by Makoto WATANABE »

Dear Imortis;

Thank you for telling me.
libz.a is required to use Window9.
SARG
Posts: 1755
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FBGUI library for Windows 2

Post by SARG »

Hi VANYA,

I'm thinking about porting fbdebugger on Linux so I'm looking at cross-platform GUI libraries. Some years I began to code using IUP but why not trying Windows9 :-) Do you continue to support it ?

However I just did a test with the demo of tree and ADDTREEVIEWITEM is not found in the .a file error when linking.

By the way addtreeviewitem is doubled in the list on the first page maybe another function is missing in that list.
VANYA
Posts: 1834
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Post by VANYA »

SARG wrote:Do you continue to support it ?
Hi SARG!

Yes, the library is supported, but at the moment it is compiled for compiler version 1.07.1. You can rebuild it for the new version that you have installed. Very often errors can occur if the version of the library and the compiler do not match.
SARG wrote:However I just did a test with the demo of tree and ADDTREEVIEWITEM is not found in the .a file error when linking.

By the way addtreeviewitem is doubled in the list on the first page maybe another function is missing in that list.
I do not understand. What operating system? Have you used the version of the library from this page? What example did you run?
Post Reply