FBGUI library for Windows 2

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
VANYA
Posts: 1324
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Postby VANYA » Apr 27, 2019 17:00

Hi enform!
It looks like the system does not have time to redraw the window after filling in the ListBox. Give her a little time :)

You can try for example:

Code: Select all

#Include Once "window9.bi"

Function OpenWindow_0() As HWND
   Var hwnd_0 = OpenWindow("Win0",10,10,500,300)
 
   ListBoxGadget(1,10,10,100,200)
   SendMessage(GadgetID(1),LB_SETHORIZONTALEXTENT,200,0)
   
   For r As Long = 0 To 400
      AddListBoxItem(1,Str(r) +"  AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")   
   Next
   
   For i As Long = 0 To 30
      WindowEvent
   Next

   Var hbitmap = CreateCopyImageRect(hwnd_0,GadgetX(1),GadgetY(1),_
                  GadgetWidth(1),GadgetHeight(1))
   ImageGadget(2,120,10,GadgetWidth(1),GadgetHeight(1),hbitmap)
 
   Return hwnd_0
End Function
 
 OpenWindow_0()
 
 Do: Loop until WaitEvent = EventClose
enform
Posts: 175
Joined: Apr 24, 2011 12:57
Location: France

Re: FBGUI library for Windows 2

Postby enform » Apr 27, 2019 21:21

The good answer , sir .
Greetings
enform
Posts: 175
Joined: Apr 24, 2011 12:57
Location: France

Re: FBGUI library for Windows 2

Postby enform » Jun 08, 2019 9:48

Hi Vanya !
I see you have replaced Functions by Subs in the case of AddListBoxItem and SetItemLstBoxText , but AddListBoxItem returned
the item number in the default mode AddListBoxItem(1,"String") and SetItemLstBoxText returned Zero in case of error ,
I think . A bit annoying in some cases .
Have you changed many Functions in the last version ?
Greetings
VANYA
Posts: 1324
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Postby VANYA » Jun 08, 2019 15:00

Hi enform!

I see you have replaced Functions by Subs in the case of AddListBoxItem and SetItemLstBoxText , but AddListBoxItem returned
the item number in the default mode AddListBoxItem(1,"String") and SetItemLstBoxText returned Zero in case of error ,
I think . A bit annoying in some cases .


I don’t like to lose compatibility with the previous library versions, but for a single interface under Windows and Linux I had to make such a decision. I'm sorry it disappointed you.

Have you changed many Functions in the last version ?


Many.
I myself did not count and did not keep a report. You can make the comparison yourself if you want (by comparing the old and the new version window9.bi)
RNBW
Posts: 192
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Postby RNBW » Jun 13, 2019 10:43

RNBW wrote:
VANYA wrote:
RNBW wrote:I've started an English translation using HelpNDoc and Google & Bing translators. It will take a while. I learnt quite a bit when I did it last time.


I hope, you downloaded the right help file (relevant only sf.net). Good luck!

I downloaded the help_rus.zip file from Sourceforge.


Hi Vanya

I just thought I'd give an update on the translation of your helpfile from Russian to English that I started in April.

I've not got as far as I'd hoped because of holidays, gardening and a bad shoulder that has prevented me sitting at my computer for too long. I'm not translating in strict order of the topics. I'm translating the topics first that are of most interest to me. To date I have translated the following:

Contents
Information about the developers
2D_Draw
2D_DrawA
3D(OpenGL)
Event
Dialog
Gadget

Still a long way to go, but it is getting there. The recent wet weather in the UK has stopped me doing outside jobs and allowed me to sit down with my computer.

At the moment I have both English and Russian versions in the help file. Would you prefer that I left it like that or keep them separate. It's easy either way. All I need do is delete the Russian version to make it all English.
VANYA
Posts: 1324
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Postby VANYA » Jun 14, 2019 4:26

RNBW wrote:At the moment I have both English and Russian versions in the help file. Would you prefer that I left it like that or keep them separate. It's easy either way. All I need do is delete the Russian version to make it all English.


Hi RNBW!

In my opinion, it is better separately.
RNBW
Posts: 192
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Postby RNBW » Jun 14, 2019 8:16

VANYA wrote:
RNBW wrote:At the moment I have both English and Russian versions in the help file. Would you prefer that I left it like that or keep them separate. It's easy either way. All I need do is delete the Russian version to make it all English.


Hi RNBW!

In my opinion, it is better separately.


Will do!
RNBW
Posts: 192
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Postby RNBW » Aug 14, 2019 17:27

I am providing a link to the conversion of Vanya's chm help file to English as far as I have got https://www.dropbox.com/s/3427b8i3i7toi1d/window9conveng.chm?dl=0. The file should be downloaded from the link. To open right click the downloaded file and in Properties tick the Unblock box to see the text.

At the moment the file includes both the English (as far as it has reached) and the full Russian text. This is for my convenience. The final conversion will include the English version only.

The weather in the UK is atrocious today, so I've made a bit more progress.

To date I have converted Contents, Information about the developers, 2D_Draw, 2D_DrawA, 3D(OpenGl), Clipboard, Color, Cipher, Event, Dialog, File, FileSystem, Gadget.

I have used Bing Translate and Google Translate to convert and I'm using HelpNDoc to edit and compile the ranslated help file. If anyone finds any glaring errors, please let me know so I can edit.

The work I am doing is merely time consuming and I would have done it for myself. All credit must go to Vanya for the mammoth job he has done in producing the help file.
D.J.Peters
Posts: 7839
Joined: May 28, 2005 3:28

Re: FBGUI library for Windows 2

Postby D.J.Peters » Aug 14, 2019 22:10

Windows9 Linux resizeWindowSub "cdecl" are missing !

Joshy

Code: Select all

Declare sub resizeWindowSub (Gwindow as GtkWidget ptr, allocation as GdkRectangle ptr, user_data as gpointer)

Code: Select all

Declare sub resizeWindowSub cdecl (Gwindow as GtkWidget ptr, allocation as GdkRectangle ptr, user_data as gpointer)
VANYA
Posts: 1324
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Postby VANYA » Aug 16, 2019 4:39

I am providing a link to the conversion of Vanya's chm help file to English as far as I have got


Half the help is translated , great!

Windows9 Linux resizeWindowSub "cdecl" are missing !


Yes, it is a omission , thanks!
RNBW
Posts: 192
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Postby RNBW » Sep 21, 2019 17:34

====================================================
Edited 30 September 2019:

====================================================

RNBW wrote:I am providing a link to the conversion of Vanya's chm help file to English as far as I have got https://www.dropbox.com/s/u9z5ja0yv9q0tjm/window9conveng.chm?dl=0. The file should be downloaded from the link. To open right click the downloaded file and in Properties tick the Unblock box to see the text.

At the moment the file includes both the English (as far as it has reached) and the full Russian text. This is for my convenience. The final conversion will include the English version only.

To date I have converted all sections except for the following:
Printer
Process
SysTray
Toolbar
UTF_ASCII_ENCODING
Window

Shouldn't be long now before it is complete!

I have used Bing Translate and Google Translate to convert and I'm using HelpNDoc to edit and compile the ranslated help file. If anyone finds any glaring errors, please let me know so I can edit.

The work I am doing is merely time consuming and I would have done it for myself. All credit must go to Vanya for the mammoth job he has done in producing the help file.
Last edited by RNBW on Sep 30, 2019 19:05, edited 2 times in total.
VANYA
Posts: 1324
Joined: Oct 24, 2010 15:16
Location: Ярославль
Contact:

Re: FBGUI library for Windows 2

Postby VANYA » Sep 22, 2019 4:39

RNBW wrote:====================================================
Edited 21 September 2019: Added Font, Help and Image.
The link below has been updated to access the updated file.
====================================================


Cool!
RNBW
Posts: 192
Joined: Apr 11, 2015 11:06
Location: UK

Re: FBGUI library for Windows 2

Postby RNBW » Oct 08, 2019 19:49

Hi Vanya

I've completed the translation of the help file from Russian to English and it can be found at this link https://www.dropbox.com/s/yftyo1kqeubx0mp/Window9Converted.chm?dl=0.

It is a very large document and I have used Google Translate and Bing Microsoft Translator for the translation, so I apologise in advance if some translation seems a little strange. I am sure that some mistakes will have been made and would ask users if they do find something to please post the error and I'll be happy make appropriate corrections and recompile the help file.

Best regards

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

Re: FBGUI library for Windows 2

Postby D.J.Peters » Oct 08, 2019 20:38

@RNBW good job so far.
I know how many work it was.

Joshy
jj2007
Posts: 1260
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: FBGUI library for Windows 2

Postby jj2007 » Oct 08, 2019 21:49

RNBW wrote:I've completed the translation of the help file from Russian to English and it can be found at this link https://www.dropbox.com/s/yftyo1kqeubx0mp/Window9Converted.chm?dl=0.

It is a very large document and I have used Google Translate and Bing Microsoft Translator for the translation

Hi Ray,

I can see the listings on the left (Content, info about the developers, 2D_Draw etc) but no luck on the right side, it remains white. This is on Win7-64, and normally all my *.chm files look ok.

Btw have you checked DeepL?

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 1 guest