FBGUI library for Windows 2

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
VANYA
Posts: 1311
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: 173
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: 173
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: 1311
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: 183
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: 1311
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: 183
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!

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 1 guest