From clhamilto at gmail.com Sat May 1 00:04:40 2021 From: clhamilto at gmail.com (Curtis Hamilton) Date: Fri, 30 Apr 2021 18:04:40 -0400 Subject: [Gambas-user] Building on FreeBSD (Powerpc64) Message-ID: Benoit, It's been a while. I just built the new 16.0 release and came across a couple of issues. 1) The build errors when compiling "gbx_c_file.c" due to the missing include "". BSD variants do not have this header. However the definitions needed are found in "". 2) On FreeBSD, and most other BSD variants, the icons are stored under "/usr/local/.." Other than that things look good. The attached file contains the patches I developed to overcome the issues noted above. Thanks for all your good work. -Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-gambas3_freebsd Type: application/octet-stream Size: 2225 bytes Desc: not available URL: From g4mba5 at gmail.com Sat May 1 00:33:23 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 1 May 2021 00:33:23 +0200 Subject: [Gambas-user] Building on FreeBSD (Powerpc64) In-Reply-To: References: Message-ID: Le 01/05/2021 ? 00:04, Curtis Hamilton a ?crit?: > Benoit, > > It's been a while. > > I just built the new 16.0 release and came across a couple of issues. > > 1) The build errors when compiling "gbx_c_file.c" due to the missing > include "".? BSD variants do not have this header. > However the definitions needed are found in "". > > 2) On FreeBSD, and most other BSD variants, the icons are stored under > "/usr/local/.." > > Other than that things look good.? The attached file contains the > patches I developed to overcome the issues noted above. > > Thanks for all your good work. > > -Cheers > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi, Thanks for the patch - the version is 3.16.0, not 16.0. Your patch of 'gb.form' was incorrect, you didn't understand what the AddPath() method does, so I fixed that in commit https://gitlab.com/gambas/gambas/-/commit/ae3ff60eef799cb58b82215c9d5c2914d24a4dbd. Tell me if you have problems with it. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Sat May 1 01:16:21 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 1 May 2021 08:46:21 +0930 Subject: [Gambas-user] General event handler Message-ID: <761ea4c7-64ac-f33c-0483-bb2ad276eba1@gmail.com> In PL1 there is a condition called "Any$" that makes it possible to write a generalised event handler "On_Any$" that is executed for any other condition that does not have a specific handler. Thus if there is a divide by zero occurrence and there is no "On_DivZero$" handler then On_Any$ is executed. Do we have a way to do the same in Gambas? Like in the startup class have a method, say "Application_Any$", that could trap any event raised by any object. bruce From g4mba5 at gmail.com Sat May 1 01:18:49 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 1 May 2021 01:18:49 +0200 Subject: [Gambas-user] General event handler In-Reply-To: <761ea4c7-64ac-f33c-0483-bb2ad276eba1@gmail.com> References: <761ea4c7-64ac-f33c-0483-bb2ad276eba1@gmail.com> Message-ID: Le 01/05/2021 ? 01:16, Bruce a ?crit?: > In PL1 there is a condition called "Any$" that makes it possible to > write a generalised event handler "On_Any$" that is executed for any > other condition that does not have a specific handler. Thus if there is > a divide by zero occurrence and there is no "On_DivZero$" handler then > On_Any$ is executed. > > Do we have a way to do the same in Gambas? Like in the startup class > have a method, say "Application_Any$", that could trap any event raised > by any object. > > bruce > No. What for? -- Beno?t Minisini From adamnt42 at gmail.com Sat May 1 01:36:31 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 1 May 2021 09:06:31 +0930 Subject: [Gambas-user] General event handler In-Reply-To: References: <761ea4c7-64ac-f33c-0483-bb2ad276eba1@gmail.com> Message-ID: <76ce417e-1306-19e3-fa14-3a493e572d4c@gmail.com> On 1/5/21 8:48 am, Beno?t Minisini wrote: > Le 01/05/2021 ? 01:16, Bruce a ?crit?: >> In PL1 there is a condition called "Any$" that makes it possible to >> write a generalised event handler "On_Any$" that is executed for any >> other condition that does not have a specific handler. Thus if there >> is a divide by zero occurrence and there is no "On_DivZero$" handler >> then On_Any$ is executed. >> >> Do we have a way to do the same in Gambas? Like in the startup class >> have a method, say "Application_Any$", that could trap any event >> raised by any object. >> >> bruce >> > > No. What for? > At the moment, just for development/debugging purposes. But I can envisage using it where some class "X" raises an event that is not handled by the class that instantiates an X object. Currently I have a situation where some events are firing in an unexpected order from a set of objects. If I step through the code in the IDE they fire in the expected order (of course) but when I run the project sometimes they appear to be out of order. If I could just detect the firing order or the handler order I might be able to understand. bruce From mbelmonte at belmotek.net Sat May 1 02:03:20 2021 From: mbelmonte at belmotek.net (Martin) Date: Sat, 1 May 2021 02:03:20 +0200 Subject: [Gambas-user] Software Farm Fails? Message-ID: Hi, A few minutes ago I tried to upload a project to the farm but something went wrong. I use 3.15.2 version. Regards. Mart?n. -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-01_01-51-19.png Type: image/png Size: 17591 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-01_01-55-35.png Type: image/png Size: 10407 bytes Desc: not available URL: From g4mba5 at gmail.com Sat May 1 02:22:10 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 1 May 2021 02:22:10 +0200 Subject: [Gambas-user] Software Farm Fails? In-Reply-To: References: Message-ID: <5fbd2e9a-553c-974e-eb97-57c65fef51c7@gmail.com> Le 01/05/2021 ? 02:03, Martin a ?crit?: > Hi, > > A few minutes ago I tried to upload a project to the farm but something > went wrong. > > I use 3.15.2 version. > > Regards. > Mart?n. > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Is it better now? -- Beno?t Minisini From mckaygerhard at gmail.com Sat May 1 02:58:01 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 30 Apr 2021 20:58:01 -0400 Subject: [Gambas-user] Gambas wiki translate. In-Reply-To: References: Message-ID: El vie, 30 de abr. de 2021 a la(s) 03:34, Bruce Steers (bsteers4 at gmail.com) escribi?: > On Fri, 30 Apr 2021 at 03:42, PICCORO McKAY Lenz > wrote: > >> El jue, 29 de abr. de 2021 a la(s) 16:23, Bruce Steers ( >> bsteers4 at gmail.com) escribi?: >> >>> On Thu, 29 Apr 2021, 14:01 Gianluigi, wrote: >>> >>>> my brain is aging faster than I hoped and therefore I believe my >>>> contribution to translations has now come to an end. >>>> >>> >>> I'm sure many future Spanish gambas users will be glad for all you have >>> done >>> >> errr he work in italian gambas pages only.. check history.. >> > > Wow PICORRO you are so observant and excellent and clever , I wish I was > as ? > it is precisely because I read Gianluigi's work for real, not just give my opinion without reading it from him, I feel horrified that he was able to use the ODBC work I did ... and yet he found it difficult because of the markdown syntax of gambas > excellent as you and had as many friends :) > is easy.. just use facebook as stupid giuy and any meme will come.. make a stupid opinion and you will be full of invitations and responses > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Sat May 1 07:57:13 2021 From: isafiur at gmail.com (Safiur Rahman) Date: Sat, 1 May 2021 11:42:13 +0545 Subject: [Gambas-user] Rule to set form Height In-Reply-To: References: Message-ID: Hi Bruce Both of your method don't work. Still resize process continues for infinite times. This behavior is only with qt4/qt5. This problem is not with gtk3. Please check it using project I have attached. On 4/30/21, Safiur Rahman wrote: > Hi > > In a module (Module1): > > Private $DeskHeight As Integer = 1150 ''1200 ''1386 ''1100 > > Public Sub SetFromSize(frm As Form) > > Print CStr(Now()) & " : " & $DeskHeight > frm.Height = $DeskHeight > frm.Width = Screen.AvailableWidth > frm.Left = 0 > frm.Top = 0 > > End > > In a form: > > Public Sub Form_Resize() > > Module1.SetFromSize(Me) > > End > > If form Height =1150 or 1200 then the procedure runs several times > If form Height = 1100 or 1386 then the process runs one or two times. > > Is there any rule to set form height? I am using QT5. > > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman -------------- next part -------------- A non-text attachment was scrubbed... Name: wrkspace.zip Type: application/zip Size: 14831 bytes Desc: not available URL: From bsteers4 at gmail.com Sat May 1 10:46:58 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 1 May 2021 09:46:58 +0100 Subject: [Gambas-user] Gambas wiki translate. In-Reply-To: References: Message-ID: On Sat, 1 May 2021 at 01:59, PICCORO McKAY Lenz wrote: > El vie, 30 de abr. de 2021 a la(s) 03:34, Bruce Steers (bsteers4 at gmail.com) > escribi?: > >> On Fri, 30 Apr 2021 at 03:42, PICCORO McKAY Lenz >> wrote: >> >>> El jue, 29 de abr. de 2021 a la(s) 16:23, Bruce Steers ( >>> bsteers4 at gmail.com) escribi?: >>> >>>> On Thu, 29 Apr 2021, 14:01 Gianluigi, wrote: >>>> >>>>> my brain is aging faster than I hoped and therefore I believe my >>>>> contribution to translations has now come to an end. >>>>> >>>> >>>> I'm sure many future Spanish gambas users will be glad for all you have >>>> done >>>> >>> errr he work in italian gambas pages only.. check history.. >>> >> >> Wow PICORRO you are so observant and excellent and clever , I wish I was >> as ? >> > > it is precisely because I read Gianluigi's work for real, not just give my > opinion without reading it from him, I feel horrified that he was able to > use the ODBC work I did ... and yet he found it difficult because of the > markdown syntax of gambas > I've never used odbc , i have no need to , i just saw his comment about translating Spanish. I thanked him for his work on the Gambas system and didn't just further slag gambas off because it does not work like I want it to.. ;) (this is because I am a nice person) excellent as you and had as many friends :) >> > > is easy.. just use facebook as stupid giuy and any meme will come.. make a > stupid opinion and you will be full of invitations and responses > Yep clearly :) much like being a new guy and acting like you know it all :) or being rude to people who are not being rude but trying to help also works well. :^) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dosida at gmail.com Sat May 1 11:03:33 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Sat, 1 May 2021 03:03:33 -0600 Subject: [Gambas-user] Rule to set form Height In-Reply-To: References: Message-ID: Is this trying to accomplish a resizing effect or just resize the form according to what the screen resolution of each machine is? I don't exactly understand what the code does. Can you please put some comments on so we can figure out what you're trying to do? Thanks On Fri, Apr 30, 2021 at 11:58 PM Safiur Rahman wrote: > Hi Bruce > > Both of your method don't work. Still resize process continues for > infinite times. > This behavior is only with qt4/qt5. This problem is not with gtk3. > Please check it using project I have attached. > > > On 4/30/21, Safiur Rahman wrote: > > Hi > > > > In a module (Module1): > > > > Private $DeskHeight As Integer = 1150 ''1200 ''1386 ''1100 > > > > Public Sub SetFromSize(frm As Form) > > > > Print CStr(Now()) & " : " & $DeskHeight > > frm.Height = $DeskHeight > > frm.Width = Screen.AvailableWidth > > frm.Left = 0 > > frm.Top = 0 > > > > End > > > > In a form: > > > > Public Sub Form_Resize() > > > > Module1.SetFromSize(Me) > > > > End > > > > If form Height =1150 or 1200 then the procedure runs several times > > If form Height = 1100 or 1386 then the process runs one or two times. > > > > Is there any rule to set form height? I am using QT5. > > > > > > -- > > Regards > > Safiur Rahman > > > > > -- > Regards > Safiur Rahman > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 1 14:25:06 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 1 May 2021 14:25:06 +0200 Subject: [Gambas-user] Rule to set form Height In-Reply-To: References: Message-ID: <6103e4a7-f501-5fe3-ab5d-8996c2407114@gmail.com> Le 01/05/2021 ? 07:57, Safiur Rahman a ?crit?: > Hi Bruce > > Both of your method don't work. Still resize process continues for > infinite times. > This behavior is only with qt4/qt5. This problem is not with gtk3. > Please check it using project I have attached. > > > On 4/30/21, Safiur Rahman wrote: >> Hi >> >> In a module (Module1): >> >> Private $DeskHeight As Integer = 1150 ''1200 ''1386 ''1100 >> >> Public Sub SetFromSize(frm As Form) >> >> Print CStr(Now()) & " : " & $DeskHeight >> frm.Height = $DeskHeight >> frm.Width = Screen.AvailableWidth >> frm.Left = 0 >> frm.Top = 0 >> >> End >> >> In a form: >> >> Public Sub Form_Resize() >> >> Module1.SetFromSize(Me) >> >> End >> >> If form Height =1150 or 1200 then the procedure runs several times >> If form Height = 1100 or 1386 then the process runs one or two times. >> >> Is there any rule to set form height? I am using QT5. >> >> >> -- >> Regards >> Safiur Rahman >> > The window manager is the one who decides which size your window will have. So if that size differs from the one you request, and if your request is done inside the Resize event, you may have an infinite emission of Resize event coming from the window manager, depending on how external (coming from the window manager) and internal (eventually coming from your own size requests) resize events cross. Usually, if you are modifying properties inside the handler of the event raised when these properties are modified, you are wrong! In Qt component, I tried to not emitting internal resize events (assuming that they will lead sooner or later to external resize events). Then you won't have the recursion anymore, but your size requests are not necessarily taking into account by the window manager. So you are still wrong. Regards, -- Beno?t Minisini From clhamilto at gmail.com Sat May 1 14:45:56 2021 From: clhamilto at gmail.com (Curtis Hamilton) Date: Sat, 1 May 2021 08:45:56 -0400 Subject: [Gambas-user] Building on FreeBSD (Powerpc64) Message-ID: Le 01/05/2021 ? 00:04, Curtis Hamilton a ?crit : >* Benoit, *> >* It's been a while. *> >* I just built the new 16.0 release and came across a couple of issues. *> >* 1) The build errors when compiling "gbx_c_file.c" due to the missing *>* include "". BSD variants do not have this header. *>* However the definitions needed are found in "". *> >* 2) On FreeBSD, and most other BSD variants, the icons are stored under *>* "/usr/local/.." *> >* Other than that things look good. The attached file contains the *>* patches I developed to overcome the issues noted above. *> >* Thanks for all your good work. *> >* -Cheers *> > >* ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- *> > >Hi, > >Thanks for the patch - the version is 3.16.0, not 16.0. > >Your patch of 'gb.form' was incorrect, you didn't understand what the >AddPath() method does, so I fixed that in commit >https://gitlab.com/gambas/gambas/-/commit/ae3ff60eef799cb58b82215c9d5c2914d24a4dbd. > >Tell me if you have problems with it. > >Regards, > -- >Beno?t Minisini Yes, the version is 3.16.0, was just lazy in my typing. You updates to the patches look good. -regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat May 1 21:17:31 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 1 May 2021 15:17:31 -0400 Subject: [Gambas-user] Gambas wiki translate. In-Reply-To: References: Message-ID: El s?b, 1 de may. de 2021 a la(s) 04:48, Bruce Steers (bsteers4 at gmail.com) escribi?: > it is precisely because I read Gianluigi's work for real, not just give my >> opinion without reading it from him, I feel horrified that he was able to >> use the ODBC work I did ... and yet he found it difficult because of the >> markdown syntax of gambas >> > > I've never used odbc , i have no need to , i just saw his comment about > so wrong , we know that ODBC i evil standar from mocosoft.. but unfortunatelly or fortunately, without it we cannot migrate systems and convert them to free software. ODBC is more important than others adapters or the now famous but once school DBMS mysql, cos without them we cannot interact with real life bussines software, those that dive us the food and permit us to stay here.. yes.. that devil named ambition and money. unfortunatelly.. we are here trying to make better the things in eternal fight -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun May 2 03:10:40 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 2 May 2021 02:10:40 +0100 Subject: [Gambas-user] Gambas wiki translate. In-Reply-To: References: Message-ID: On Sat, 1 May 2021 at 20:18, PICCORO McKAY Lenz wrote: > El s?b, 1 de may. de 2021 a la(s) 04:48, Bruce Steers (bsteers4 at gmail.com) > escribi?: > >> it is precisely because I read Gianluigi's work for real, not just give >>> my opinion without reading it from him, I feel horrified that he was able >>> to use the ODBC work I did ... and yet he found it difficult because of the >>> markdown syntax of gambas >>> >> >> I've never used odbc , i have no need to , i just saw his comment about >> > so wrong , > I beg you're pardon?! from my point of view, someone who does not use odbc, nothing is wrong. > we know that ODBC i evil standar from mocosoft.. but unfortunatelly or > fortunately, without it we cannot migrate systems and convert them to free > software. > > ODBC is more important than others adapters or the now famous but once > school DBMS mysql, cos without them we cannot interact with real life > bussines software, those that dive us the food and permit us to stay here.. > yes.. that devil named ambition and money. unfortunatelly.. we are here > trying to make better the things in eternal fight > er okay then.... So you needed odbc to be better for you so you and others can make money from it? Lets hope it does, that would sure make all the work you put into it worth while :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Sun May 2 06:54:21 2021 From: isafiur at gmail.com (Safiur Rahman) Date: Sun, 2 May 2021 10:39:21 +0545 Subject: [Gambas-user] cannot load component 'gb.qt5' - WSL Ubuntu 20.04 Message-ID: Hi 1) When I installed a QT5 gambas app in Windows 10 WSL (version 1) running on Ubuntu 20.04 with xubuntu-core I got the error: "Cannot load component 'gb.qt5': libQt5Core.so.5: cannot open shared object file: No such file or directory" I fixed the issue by executing following: $ sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 2) Then there was OpenGL issue which I fixed by adding a line export LIBGL_ALWAYS_INDIRECT=1 to file /etc/bash.bashrc 3) Now after running $ export DISPLAY=:0 I can execute my application. The free forms (eg. frm.Show or frm.SHowModal) work fine but the forms embedded in WorkSpace are not usable. You cannot write anything to forms embedded in WorkSpace. Is there any way to solve the issue with forms embedded in workspaces? -- Regards Safiur Rahman From adamnt42 at gmail.com Sun May 2 10:29:26 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 2 May 2021 17:59:26 +0930 Subject: [Gambas-user] cannot load component 'gb.qt5' - WSL Ubuntu 20.04 In-Reply-To: References: Message-ID: On 2/5/21 2:24 pm, Safiur Rahman wrote: > Hi > > 1) When I installed a QT5 gambas app in Windows 10 WSL (version 1) > running on Ubuntu 20.04 with xubuntu-core I got the error: > > "Cannot load component 'gb.qt5': libQt5Core.so.5: cannot open shared > object file: No such file or directory" > > I fixed the issue by executing following: > $ sudo strip --remove-section=.note.ABI-tag > /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > > 2) Then there was OpenGL issue which I fixed by adding a line > export LIBGL_ALWAYS_INDIRECT=1 > to file /etc/bash.bashrc > > 3) Now after running > $ export DISPLAY=:0 > I can execute my application. The free forms (eg. frm.Show or > frm.SHowModal) work fine but the forms embedded in WorkSpace are not > usable. You cannot write anything to forms embedded in WorkSpace. > > Is there any way to solve the issue with forms embedded in workspaces? > Firstly Rahman I must congratulate you on creating something that I can only describe as the "Ultimate Fish Milkshake" of an operating environment! But have to ask the obvious question - WHY? Getting to your question at 3) though, that env command looks suspiciously like an Xorg tpe of syntax. Now I would presume that would have little effect in an environment that works the other way up i.e. the operating system is part of the graphics server, So are you sure that this is what enabled the (ahem) "app" to run? (N.B. "app" is a term for a bunch of **** that runs in google-land i.e. Android. They are nothing at all technically like the things we have here which are called "executables" or more correctly "executable archives".) From my quick and horrified reading of some of the WSL version 1 advertising, oh alright "documentation", I really couldn't expect a linux based executable, other than a CLI only executable to actually work at all, let alone to get it as far as you have. Maybe WSL 2 may help. But that is only a guess as I was horrified enough reading the version 1 ... "stuff that comes out of the south end of a northbound male bovine" (hope that translates OK for you). Absolute best wishes bruce From mckaygerhard at gmail.com Sun May 2 21:01:42 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 2 May 2021 15:01:42 -0400 Subject: [Gambas-user] Gambas wiki translate. In-Reply-To: References: Message-ID: El s?b, 1 de may. de 2021 a la(s) 21:11, Bruce Steers (bsteers4 at gmail.com) escribi?: > er okay then.... > So you needed odbc to be better for you so you and others can make money > in the worse scenary you depends on the rest of the world, and odbc offers a standar way to access ALL DBMS including those free software.. so in a emergency .. in a quick response.. "talk the same language" is clear better than spend time learning .. is like translations. we all use english in the mail list.. so for any including you.. odbc is like english.. can be avoid (of course there's some native speakers.. but you will get the point) > from it? > Lets hope it does, that would sure make all the work you put into it worth > while :) > > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dosida at gmail.com Mon May 3 00:11:33 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Sun, 2 May 2021 16:11:33 -0600 Subject: [Gambas-user] Gambas wiki translate. In-Reply-To: References: Message-ID: You should clarify that it's not all DBMS but all Relational DBMS. ODBC does not have a standard way of accessing (at least in my knowledge) MongoDB, CouchDB and Redis Databases. If I'm wrong please correct me. On Sun, May 2, 2021 at 1:02 PM PICCORO McKAY Lenz wrote: > El s?b, 1 de may. de 2021 a la(s) 21:11, Bruce Steers (bsteers4 at gmail.com) > escribi?: > >> er okay then.... >> So you needed odbc to be better for you so you and others can make money >> > > in the worse scenary you depends on the rest of the world, and odbc offers > a standar way to access ALL DBMS including those free software.. so in a > emergency .. in a quick response.. "talk the same language" is clear better > than spend time learning .. > > is like translations. we all use english in the mail list.. so for any > including you.. odbc is like english.. can be avoid (of course there's some > native speakers.. but you will get the point) > > >> from it? >> Lets hope it does, that would sure make all the work you put into it >> worth while :) >> >> BruceS >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 3 04:33:13 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 2 May 2021 22:33:13 -0400 Subject: [Gambas-user] Gambas wiki translate. In-Reply-To: References: Message-ID: El dom, 2 de may. de 2021 a la(s) 18:12, Dimitris Anogiatis ( dosida at gmail.com) escribi?: > You should clarify that it's not all DBMS but all Relational DBMS. ODBC > does not have a standard way of accessing (at least in my knowledge) > MongoDB, CouchDB and Redis Databases. If I'm wrong please correct me. > yes! Good point! only DBMS! but still very important! > > On Sun, May 2, 2021 at 1:02 PM PICCORO McKAY Lenz > wrote: > >> El s?b, 1 de may. de 2021 a la(s) 21:11, Bruce Steers (bsteers4 at gmail.com) >> escribi?: >> >>> er okay then.... >>> So you needed odbc to be better for you so you and others can make money >>> >> >> in the worse scenary you depends on the rest of the world, and odbc >> offers a standar way to access ALL DBMS including those free software.. so >> in a emergency .. in a quick response.. "talk the same language" is clear >> better than spend time learning .. >> >> is like translations. we all use english in the mail list.. so for any >> including you.. odbc is like english.. can be avoid (of course there's some >> native speakers.. but you will get the point) >> >> >>> from it? >>> Lets hope it does, that would sure make all the work you put into it >>> worth while :) >>> >>> BruceS >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Mon May 3 09:28:48 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 3 May 2021 09:28:48 +0200 Subject: [Gambas-user] cannot load component 'gb.qt5' - WSL Ubuntu 20.04 In-Reply-To: References: Message-ID: Am 02.05.21 um 06:54 schrieb Safiur Rahman: > Hi > > 1) When I installed a QT5 gambas app in Windows 10 WSL (version 1) > running on Ubuntu 20.04 with xubuntu-core I got the error: > > "Cannot load component 'gb.qt5': libQt5Core.so.5: cannot open shared > object file: No such file or directory" Doesn't that mean that qt5 wasn't installed at all? Logical, the basic WSL version only has commandline support. > Is there any way to solve the issue with forms embedded in workspaces? > You will need another program that translates any graphical output to the Windows screen. When I tried it, there were two of them playing a major role, and I installed one of them (I will look it up if you wish). So you will have to start the X Screen program first, and then the graphical software from the WSL. After installing from within the commandline environment some of the Linux software I needed, amongst others Gambas, I could successfully start Gambas and Gambas applications. The only glitch was that this WSL doesn't support a file system on a shared Samba drive, that was the main show stopper for me. Regards Rolf From mbelmonte at belmotek.net Mon May 3 10:16:48 2021 From: mbelmonte at belmotek.net (Martin) Date: Mon, 3 May 2021 10:16:48 +0200 Subject: [Gambas-user] Eval() square root Message-ID: <8aa2d338-a6db-c176-c9ec-b1c2162f8fc8@belmotek.net> Hi, I am trying to make a calculator [1] that performs all the common operations. I'm using the Eval () function but I can't find documentation on the syntax that I should follow. Could someone tell me where to find information? Any example of square root? The Gambas3 example Evaluator [1] does not give information about all the syntax that Eval accepts only addition, multiplication and two trigonometric operations, that's all. Thanks. [1] https://gitlab.com/belmotek/kalkulilo [2] gambas/app/examples/Misc/Evaluator Mart?n. From mbelmonte at belmotek.net Mon May 3 10:34:27 2021 From: mbelmonte at belmotek.net (Martin) Date: Mon, 3 May 2021 10:34:27 +0200 Subject: [Gambas-user] Eval() square root In-Reply-To: <8aa2d338-a6db-c176-c9ec-b1c2162f8fc8@belmotek.net> References: <8aa2d338-a6db-c176-c9ec-b1c2162f8fc8@belmotek.net> Message-ID: <19258bbd-6acc-5c9b-30aa-8ae226906ba7@belmotek.net> I answer to myself :-) ok, square root is: Sqr(x) General formula is: x^1/y right? Mart?n. El 3/5/21 a las 10:16, Martin escribi?: > Hi, > > I am trying to make a calculator [1] that performs all the common > operations. I'm using the Eval () function but I can't find > documentation on the syntax that I should follow. > Could someone tell me where to find information? > Any example of square root? > The Gambas3 example Evaluator [1] does not give information about all > the syntax that Eval accepts only addition, multiplication and two > trigonometric operations, that's all. > Thanks. > > [1] https://gitlab.com/belmotek/kalkulilo > > [2] gambas/app/examples/Misc/Evaluator > > Mart?n. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Mon May 3 10:43:17 2021 From: tobs at taboege.de (Tobias Boege) Date: Mon, 3 May 2021 10:43:17 +0200 Subject: [Gambas-user] Eval() square root In-Reply-To: <8aa2d338-a6db-c176-c9ec-b1c2162f8fc8@belmotek.net> References: <8aa2d338-a6db-c176-c9ec-b1c2162f8fc8@belmotek.net> Message-ID: <20210503084317.GT3027224@highrise.localdomain> On Mon, 03 May 2021, Martin wrote: > Hi, > > I am trying to make a calculator [1] that performs all the common > operations. I'm using the Eval () function but I can't find documentation on > the syntax that I should follow. > Could someone tell me where to find information? > Any example of square root? > The Gambas3 example Evaluator [1] does not give information about all the > syntax that Eval accepts only addition, multiplication and two trigonometric > operations, that's all. > Thanks. > Eval() evaluates one line of *Gambas* code. That is the syntax. All the functions supported by Eval() are listed here: http://gambaswiki.org/wiki/lang :-) Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From the_watchmann at yahoo.com Mon May 3 12:10:59 2021 From: the_watchmann at yahoo.com (David Silverwood) Date: Mon, 3 May 2021 10:10:59 +0000 (UTC) Subject: [Gambas-user] Gambas PPA In-Reply-To: References: Message-ID: <967427231.1800175.1620036659990@mail.yahoo.com> I did an upgrade this morning and my gambas broke... 11:57:48 watchman at watchman-HP-EliteBook-8570p ~ ? sudo apt upgrade Reading package lists... Done Building dependency tree ??????? Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies. gambas3 : Depends: gambas3-dev-tools (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but it is no t installed ??????????Depends: gambas3-ide (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu 3.1 is installed ??????????Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ub untu3.1 is installed ??????????Depends: gambas3-scripter (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but it is not installed gambas3-dev : Depends: gambas3-dev-tools but it is not installed gambas3-gb-args : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-chart : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3 .14.3-2ubuntu3.1 is installed gambas3-gb-db : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14 .3-2ubuntu3.1 is installed gambas3-gb-db-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-dbus : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-desktop : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-eval-highlight : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04 .1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-form-dialog : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-editor : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-mdi : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-print : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-stock : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-terminal : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04. 1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-logging : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-map : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.1 4.3-2ubuntu3.1 is installed gambas3-gb-markdown : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-media-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-memcached : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) b ut 3.14.3-2ubuntu3.1 is installed gambas3-gb-mysql : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3 .14.3-2ubuntu3.1 is installed gambas3-gb-net-pop3 : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-net-smtp : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-report : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-report2 : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-scanner : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-settings : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-term : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-term-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) b ut 3.14.3-2ubuntu3.1 is installed gambas3-gb-util : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-util-web : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-web : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.1 4.3-2ubuntu3.1 is installed gambas3-gb-web-feed : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-web-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-web-gui : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-xml : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.1 4.3-2ubuntu3.1 is installed gambas3-gb-xml-rpc : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 11:57:57 watchman at watchman-HP-EliteBook-8570p? I proceeded to uninstall it and now gambas will not install at all. Am I missing something here. Previously I could just install gambas3 and everything else comes with it. Now it just says 'broken dependencies no matter what I click on in Synaptic Package Man. Regards David On Friday, April 23, 2021, 02:39:06 PM GMT+2, Beno?t Minisini wrote: Hi, The stable and daily PPA are now in a clean state with all packages available. I added a 'gambas3-gui' virtual package as a dependency for all packages that need a GUI. This virtual package depends on one of the GUI toolit component (Qt4, Qt5, GTK+2 or GTK+3). Both X11 & Wayland support packages are always installed with the component they support. For example, if you install 'gambas3-gb-desktop', you will get 'gambas3-gb-desktop-x11', even if you are using Wayland. Now, the next job is renaming 'gambas3-devel' as 'gambas3-devel-tools', to prevent problems with RPMs-based distributions. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon May 3 12:16:39 2021 From: adamnt42 at gmail.com (Bruce) Date: Mon, 3 May 2021 19:46:39 +0930 Subject: [Gambas-user] Eval() square root In-Reply-To: <19258bbd-6acc-5c9b-30aa-8ae226906ba7@belmotek.net> References: <8aa2d338-a6db-c176-c9ec-b1c2162f8fc8@belmotek.net> <19258bbd-6acc-5c9b-30aa-8ae226906ba7@belmotek.net> Message-ID: On 3/5/21 6:04 pm, Martin wrote: > I answer to myself :-) > > ok, square root is: > > Sqr(x) > > General formula is: x^1/y right? > > Mart?n. > > El 3/5/21 a las 10:16, Martin escribi?: >> Hi, >> >> I am trying to make a calculator [1] that performs all the common >> operations. I'm using the Eval () function but I can't find >> documentation on the syntax that I should follow. >> Could someone tell me where to find information? >> Any example of square root? >> The Gambas3 example Evaluator [1] does not give information about all >> the syntax that Eval accepts only addition, multiplication and two >> trigonometric operations, that's all. >> Thanks. >> >> [1] https://gitlab.com/belmotek/kalkulilo >> >> [2] gambas/app/examples/Misc/Evaluator >> >> Mart?n. >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > x^(1/y) ??? (just guessing) even that is suseptible to float matters. bruce From the_watchmann at yahoo.com Mon May 3 12:20:06 2021 From: the_watchmann at yahoo.com (David Silverwood) Date: Mon, 3 May 2021 10:20:06 +0000 (UTC) Subject: [Gambas-user] Gambas PPA In-Reply-To: <967427231.1800175.1620036659990@mail.yahoo.com> References: <967427231.1800175.1620036659990@mail.yahoo.com> Message-ID: <1930743338.1797839.1620037206071@mail.yahoo.com> I got it back. Whew. Complete uninstall... install the runtime... and only then after a couple of '--fix-broken installs' did I manage to get gambas reinstalled.?Apologies for the 'panic' mail RegardsDavid On Monday, May 3, 2021, 12:11:00 PM GMT+2, David Silverwood wrote: I did an upgrade this morning and my gambas broke... 11:57:48 watchman at watchman-HP-EliteBook-8570p ~ ? sudo apt upgrade Reading package lists... Done Building dependency tree ??????? Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies. gambas3 : Depends: gambas3-dev-tools (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but it is no t installed ??????????Depends: gambas3-ide (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu 3.1 is installed ??????????Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ub untu3.1 is installed ??????????Depends: gambas3-scripter (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but it is not installed gambas3-dev : Depends: gambas3-dev-tools but it is not installed gambas3-gb-args : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-chart : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3 .14.3-2ubuntu3.1 is installed gambas3-gb-db : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14 .3-2ubuntu3.1 is installed gambas3-gb-db-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-dbus : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-desktop : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-eval-highlight : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04 .1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-form-dialog : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-editor : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-mdi : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-print : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-stock : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-form-terminal : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04. 1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-logging : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-map : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.1 4.3-2ubuntu3.1 is installed gambas3-gb-markdown : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-media-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-memcached : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) b ut 3.14.3-2ubuntu3.1 is installed gambas3-gb-mysql : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3 .14.3-2ubuntu3.1 is installed gambas3-gb-net-pop3 : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-net-smtp : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-report : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-report2 : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-scanner : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-settings : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-term : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-term-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) b ut 3.14.3-2ubuntu3.1 is installed gambas3-gb-util : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3. 14.3-2ubuntu3.1 is installed gambas3-gb-util-web : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-web : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.1 4.3-2ubuntu3.1 is installed gambas3-gb-web-feed : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-web-form : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) bu t 3.14.3-2ubuntu3.1 is installed gambas3-gb-web-gui : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed gambas3-gb-xml : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.1 4.3-2ubuntu3.1 is installed gambas3-gb-xml-rpc : Depends: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build13~ubuntu20.04.1) but 3.14.3-2ubuntu3.1 is installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 11:57:57 watchman at watchman-HP-EliteBook-8570p? I proceeded to uninstall it and now gambas will not install at all. Am I missing something here. Previously I could just install gambas3 and everything else comes with it. Now it just says 'broken dependencies no matter what I click on in Synaptic Package Man. Regards David On Friday, April 23, 2021, 02:39:06 PM GMT+2, Beno?t Minisini wrote: Hi, The stable and daily PPA are now in a clean state with all packages available. I added a 'gambas3-gui' virtual package as a dependency for all packages that need a GUI. This virtual package depends on one of the GUI toolit component (Qt4, Qt5, GTK+2 or GTK+3). Both X11 & Wayland support packages are always installed with the component they support. For example, if you install 'gambas3-gb-desktop', you will get 'gambas3-gb-desktop-x11', even if you are using Wayland. Now, the next job is renaming 'gambas3-devel' as 'gambas3-devel-tools', to prevent problems with RPMs-based distributions. Regards, -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon May 3 13:17:16 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 3 May 2021 13:17:16 +0200 Subject: [Gambas-user] Gambas PPA In-Reply-To: <1930743338.1797839.1620037206071@mail.yahoo.com> References: <967427231.1800175.1620036659990@mail.yahoo.com> <1930743338.1797839.1620037206071@mail.yahoo.com> Message-ID: <15f399e9-4fb2-0cf3-0086-d460679d7326@gmail.com> Le 03/05/2021 ? 12:20, David Silverwood via User a ?crit?: > I got it back. Whew. Complete uninstall... install the runtime... and > only then after a couple of '--fix-broken installs' did I manage to get > gambas reinstalled. > Apologies for the 'panic' mail > > Regards > David > To package Gambas correctly, a good dozen of attempts were needed, and so some upgrades of the 3.16.0 packages often fail. Normally, if you uninstall everything and reinstall, it works! Sorry for the panic! -- Beno?t Minisini From mbelmonte at belmotek.net Tue May 4 00:43:33 2021 From: mbelmonte at belmotek.net (Martin) Date: Tue, 4 May 2021 00:43:33 +0200 Subject: [Gambas-user] A curious thing happens with translations. Message-ID: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> A curious thing happens with translations. My system is in es_ES but the program to translate is in US English. Well, when I open the translation dialog the first thing that appears is the source language by default and the target language to translate is es_ES, well, I make the translation to Spanish and then I add French from France and I translate it too, but in the directory appear es_ES.po and fr.po. Why it is not fr_FR.po? or if not why it is not es.po? Is it because my system is es_ES? Does someone who has fr_FR system if he translates from English something similar happens to him? I think it is either all languages with localization or without localization. I prefer that by default the IDE generates files without localization because in the case of Spanish there are many variants. Then if you want to create a specific localization you can do it manually. What do you think? Regards Mart?n -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-04_00-25-10.png Type: image/png Size: 26699 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-04_00-25-46.png Type: image/png Size: 36640 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-04_00-26-10.png Type: image/png Size: 27182 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-04_00-26-46.png Type: image/png Size: 19292 bytes Desc: not available URL: From mckaygerhard at gmail.com Tue May 4 02:44:45 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 3 May 2021 20:44:45 -0400 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> Message-ID: El lun, 3 de may. de 2021 a la(s) 18:43, Martin (mbelmonte at belmotek.net) escribi?: > Why it is not fr_FR.po? or if not why it is not es.po? > interesting case .. but well.. > Is it because my system is es_ES? Does someone who has fr_FR system if > .... > Then if you want to create a specific localization you can do it manually. > What do you think? > well for any es_XX.UTF-8 or es_XX the same es_ES is taken for man pages in spanish.. so i guess there's some mechanism for > > Regards > > Mart?n > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue May 4 02:51:08 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 3 May 2021 20:51:08 -0400 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> Message-ID: I took the environment and changed the desktop from "en_US" to "es_US" and thye system changed to spanish. but localization still is english.. later search for "es_US" and there's no such directory for the entire LXDE desktop, but found the "es" and "es_ES" , so due the "es_ES" is not the same i guess that my new locale is using the "es" one.. so maybe is the same in the french case? but not for es_ES ? i guess for gambas es_ES must be changed to "es" or? El lun, 3 de may. de 2021 a la(s) 20:44, PICCORO McKAY Lenz ( mckaygerhard at gmail.com) escribi?: > El lun, 3 de may. de 2021 a la(s) 18:43, Martin (mbelmonte at belmotek.net) > escribi?: > >> Why it is not fr_FR.po? or if not why it is not es.po? >> > interesting case .. but well.. > > >> Is it because my system is es_ES? Does someone who has fr_FR system if >> > .... > >> Then if you want to create a specific localization you can do it manually. >> What do you think? >> > well for any es_XX.UTF-8 or es_XX the same es_ES is taken for man pages in > spanish.. so i guess there's some mechanism for > > > >> >> Regards >> >> Mart?n >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue May 4 02:57:13 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 3 May 2021 20:57:13 -0400 Subject: [Gambas-user] Gambas PPA In-Reply-To: <15f399e9-4fb2-0cf3-0086-d460679d7326@gmail.com> References: <967427231.1800175.1620036659990@mail.yahoo.com> <1930743338.1797839.1620037206071@mail.yahoo.com> <15f399e9-4fb2-0cf3-0086-d460679d7326@gmail.com> Message-ID: El lun, 3 de may. de 2021 a la(s) 07:18, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Le 03/05/2021 ? 12:20, David Silverwood via User a ?crit : > > I got it back. Whew. Complete uninstall... install the runtime... and > > only then after a couple of '--fix-broken installs' did I manage to get > > gambas reinstalled. > ... > so some upgrades of the 3.16.0 packages often fail. > so if where used in production i got some worries.. puff i am still working in packaging but my fear now is that you follows then when I finish.. > > Normally, if you uninstall everything and reinstall, it works! > > Sorry for the panic! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 4 08:29:00 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 4 May 2021 08:29:00 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> Message-ID: Le 04/05/2021 ? 00:43, Martin a ?crit?: > A curious thing happens with translations. > My system is in es_ES but the program to translate is in US English. > Well, when I open the translation dialog the first thing that appears is > the source language by default and the target language to translate is > es_ES, well, I make the translation to Spanish and then I add French > from France and I translate it too, but in the directory appear es_ES.po > and fr.po. > Why it is not fr_FR.po? or if not why it is not es.po? > Is it because my system is es_ES? Does someone who has fr_FR system if > he translates from English something similar happens to him? > I think it is either all languages with localization or without > localization. > I prefer that by default the IDE generates files without localization > because in the case of Spanish there are many variants. > Then if you want to create a specific localization you can do it manually. > What do you think? > > Regards > > Mart?n > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You must define the default language of your project in the project property dialog to "Spanish (common)". By default, this default language is computed from your current localization. The Gambas IDE has an internal list of supported languages. Not all localization are supported. So, for example, you have "es" for common Spanish, and "es_ES" for Spanish from Spain. So the default language is "es_ES" (Spanish from Spain) on your computer, not the common spain you want. But "fr" is for French from France (it is assumed to be the "common" french), and there is no "fr_FR". So in French, the default language is directly "fr". Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Tue May 4 16:58:22 2021 From: mbelmonte at belmotek.net (Martin) Date: Tue, 4 May 2021 16:58:22 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> Message-ID: Hello, first of all, I tell you that I am very happy with Gambas3 IDE. I give my opinion as a developer and user, I try to be constructive and it is not my intention to criticize, I just try that some small details change to make the user experience better. I am replying in bold so you don't confuse the paragraphs. ---------- /You must define the default language of your project in the project property dialog to "Spanish (common)"./ *Why? the system is es_ES but the project is english EEUU* /By default, this default language is computed from your current localization./ *Why? it is arbitrary, I think* /The Gambas IDE has an internal list of supported languages. Not all localization are supported./ *ok, I know that, but it is not the matter of this email.* /So, for example, you have "es" for common Spanish, and "es_ES" for Spanish from Spain. So the default language is "es_ES" (Spanish from Spain) on your computer, not the common spain you want./ *In this case i mus change the whole system language for porgram some Gambas3 project that have english as primary language. That is not fun neither practical.** **Usually i program in two scenarios, Spanish and English. So linking the gambas project to the system language does not seem to me an optimal way to do it since the same developer can participate in projects of different base languages.* /But "fr" is for French from France (it is assumed to be the "common" french), and there is no "fr_FR".? So in French, the default language is directly "fr"./ *Sory but that is not correct, French for France is fr_FR not just fr, it is for french neutral, same way that "es" that is the spanish neutral.** **Sample:** * *French (Belgium)??? fr_BE** **French (Canada)??? fr_CA** **French (France)??? fr_FR** **French (Luxembourg)??? fr_LU** **French (Switzerland)??? fr_CH** **French??? fr* *Same for English, Spanish, etc.* *At the average level of Gambas3 programs, in practice, have not sense translate many Spanish versions, like I assume some developer that programs in english as base not translate to fr_FR, fr_CA, fr_BE his programs right?** **Again, I think the default version of any language must be the neutral version. Same you do in french that is not utilize fr_FR but yes fr** **Please if is possible, change the behavior for Spanish like in French* Regards, Mart?n. El 4/5/21 a las 8:29, Beno?t Minisini escribi?: > Le 04/05/2021 ? 00:43, Martin a ?crit?: >> A curious thing happens with translations. >> My system is in es_ES but the program to translate is in US English. >> Well, when I open the translation dialog the first thing that appears >> is the source language by default and the target language to >> translate is es_ES, well, I make the translation to Spanish and then >> I add French from France and I translate it too, but in the directory >> appear es_ES.po and fr.po. >> Why it is not fr_FR.po? or if not why it is not es.po? >> Is it because my system is es_ES? Does someone who has fr_FR system >> if he translates from English something similar happens to him? >> I think it is either all languages with localization or without >> localization. >> I prefer that by default the IDE generates files without localization >> because in the case of Spanish there are many variants. >> Then if you want to create a specific localization you can do it >> manually. >> What do you think? >> >> Regards >> >> Mart?n >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > You must define the default language of your project in the project > property dialog to "Spanish (common)". > > By default, this default language is computed from your current > localization. > > The Gambas IDE has an internal list of supported languages. Not all > localization are supported. > > So, for example, you have "es" for common Spanish, and "es_ES" for > Spanish from Spain. So the default language is "es_ES" (Spanish from > Spain) on your computer, not the common spain you want. > > But "fr" is for French from France (it is assumed to be the "common" > french), and there is no "fr_FR".? So in French, the default language > is directly "fr". > > Regards, > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 4 17:10:40 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 4 May 2021 17:10:40 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> Message-ID: <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> Le 04/05/2021 ? 16:58, Martin a ?crit?: > Hello, first of all, I tell you that I am very happy with Gambas3 IDE. I > give my opinion as a developer and user, I try to be constructive and it > is not my intention to criticize, I just try that some small details > change to make the user experience better. I am replying in bold so you > don't confuse the paragraphs. > ---------- > You don't get the point, but it's my fault, I was not clear in my answer. I'm not talking about how languages codes (fr_FR) are interpreted by the system, but by the Gambas interpreter. So you have "es_ES" and "es", but you have "fr" and not "fr_FR" in Gambas. There is the "es_ES" / "es" distinction because some spanish user told me that the distinction must be made. When the interpreter search for a translation, it tries the one specified by the system localization ("xx_YY"), and if it does not exist, it tries the more general "xx" one. This is why there is no "fr_FR" one in Gambas, because it would be the same as "fr". The language you define in the project property dialog is the language you use to write your untranslated strings. It's by default the current language, but, of course, if you write your strings in English, you must put "English" there. You said: "I prefer that by default the IDE generates files without localization because in the case of Spanish there are many variants. Then if you want to create a specific localization you can do it manually." It's already the case. You can choose any of the Spanish variants (if one is missing, I will add it). -- Beno?t Minisini From mbelmonte at belmotek.net Tue May 4 18:57:03 2021 From: mbelmonte at belmotek.net (Martin) Date: Tue, 4 May 2021 18:57:03 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> Message-ID: <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> /I'm not talking about how languages codes (fr_FR) are interpreted by the system, but by the Gambas interpreter./ > Ok, I understand you point now. /So you have "es_ES" and "es", but you have "fr" and not "fr_FR" in Gambas.// //There is the "es_ES" / "es" distinction because some spanish user told me that the distinction must be made./ > Ok, now is very clear. I will discus it in spanish forum. /When the interpreter search for a translation, it tries the one specified by the system localization ("xx_YY"), and if it does not exist, it tries the more general "xx" one.// /> Ok, I agree with this logic in general but in the particular case of the spanish language, it would only be necessary "es_XX.po" in the case of a very specific program in which, for example, legal terms or something like that are used. then for 95% of the programs it is enough with "es.po". /This is why there is no "fr_FR" one in Gambas, because it would be the same as "fr".// //The language you define in the project property dialog is the language you use to write your untranslated strings. It's by default the current language, but, of course, if you write your strings in English, you must put "English" there.// /> I'm agree /You said: "I prefer that by default the IDE generates files without localization because in the case of Spanish there are many variants.// //Then if you want to create a specific localization you can do it manually."// / > Yes, but, obligatorily, the interpreter creates a translation es_ES.po or the specific version of Spanish it finds in the localisation of the system, for example, es_PE.po, es_AR.po etc. This, in practice, would mean that there would be many repeated translations. Then knowing that there are 500 million native Spanish speakers in the world, the default translation should be common Spanish and not a variant of Spanish specific to a region or country. This is a statistical issue. So to conclude. As you explained before that someone from Spain requested that by default it should be the particular option (local) rather than the general one (common), I would like to leave the reflection in the air anyway. As global Spanish is much more standard than French for example, don't you think that the logical default translation option should be common Spanish? I'm not talking about removing the localised Spanish translation options, but rather that these should be the options to be added manually. 1st? > Spanish(Common) 2nd > Spanish(Localized) Regards. Mart?n. El 4/5/21 a las 17:10, Beno?t Minisini escribi?: > Le 04/05/2021 ? 16:58, Martin a ?crit?: >> Hello, first of all, I tell you that I am very happy with Gambas3 >> IDE. I give my opinion as a developer and user, I try to be >> constructive and it is not my intention to criticize, I just try that >> some small details change to make the user experience better. I am >> replying in bold so you don't confuse the paragraphs. >> ---------- > > You don't get the point, but it's my fault, I was not clear in my answer. > > I'm not talking about how languages codes (fr_FR) are interpreted by > the system, but by the Gambas interpreter. > > So you have "es_ES" and "es", but you have "fr" and not "fr_FR" in > Gambas. > > There is the "es_ES" / "es" distinction because some spanish user told > me that the distinction must be made. > > When the interpreter search for a translation, it tries the one > specified by the system localization ("xx_YY"), and if it does not > exist, it tries the more general "xx" one. > > This is why there is no "fr_FR" one in Gambas, because it would be the > same as "fr". > > The language you define in the project property dialog is the language > you use to write your untranslated strings. It's by default the > current language, but, of course, if you write your strings in > English, you must put "English" there. > > You said: "I prefer that by default the IDE generates files without > localization because in the case of Spanish there are many variants. > Then if you want to create a specific localization you can do it > manually." > > It's already the case. You can choose any of the Spanish variants (if > one is missing, I will add it). > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 4 19:17:08 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 4 May 2021 19:17:08 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> Message-ID: <3007809b-13ac-c883-69bc-b8a4c21b91b3@gmail.com> Le 04/05/2021 ? 18:57, Martin a ?crit?: > > > Yes, but, obligatorily, the interpreter creates a translation > es_ES.po or the specific version of Spanish it finds in the localisation > of the system, for example, es_PE.po, es_AR.po etc. Actually not really. When you open the translation dialog, it chooses a translation to begin with, but you don't have to use it. You can add the "common Spanish" translation, and if you don't touch the default one chosen by the translation dialog, it will be automatically removed (all void translations are automatically removed). So you should end with exactly the translations you want. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Tue May 4 19:59:43 2021 From: mbelmonte at belmotek.net (Martin) Date: Tue, 4 May 2021 19:59:43 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <3007809b-13ac-c883-69bc-b8a4c21b91b3@gmail.com> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> <3007809b-13ac-c883-69bc-b8a4c21b91b3@gmail.com> Message-ID: Correct, it is as you say. However, what do you think about setting Common Spanish as the default? Regards. Mart?n. El 4/5/21 a las 19:17, Beno?t Minisini escribi?: > Actually not really. > > When you open the translation dialog, it chooses a translation to > begin with, but you don't have to use it. > > You can add the "common Spanish" translation, and if you don't touch > the default one chosen by the translation dialog, it will be > automatically removed (all void translations are automatically removed). > > So you should end with exactly the translations you want. From mckaygerhard at gmail.com Wed May 5 03:56:56 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 4 May 2021 21:56:56 -0400 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> Message-ID: El mar, 4 de may. de 2021 a la(s) 11:11, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > There is the "es_ES" / "es" distinction because some spanish user told > me that the distinction must be made. > AHH now i understand.. puff those that talks with a potato ! that's is nonsense.. all spanish users must use the common "es" and take in consideration the neutral one.. i must praised the work of mexicans and argentina translators cos they dont put any "idiom" in they work.. like spain ones > > When the interpreter search for a translation, it tries the one > specified by the system localization ("xx_YY"), and if it does not > exist, it tries the more general "xx" one. > > This is why there is no "fr_FR" one in Gambas, because it would be the > same as "fr". > > The language you define in the project property dialog is the language > you use to write your untranslated strings. It's by default the current > language, but, of course, if you write your strings in English, you must > put "English" there. > > You said: "I prefer that by default the IDE generates files without > localization because in the case of Spanish there are many variants. > Then if you want to create a specific localization you can do it manually." > > It's already the case. You can choose any of the Spanish variants (if > one is missing, I will add it). > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Wed May 5 10:20:06 2021 From: the_watchmann at yahoo.com (David Silverwood) Date: Wed, 5 May 2021 08:20:06 +0000 (UTC) Subject: [Gambas-user] Error 9 when i push red button "Stop" in IDE In-Reply-To: References: <5bee8984-dfa1-f006-060e-af40a5f05612@gmail.com> Message-ID: <1777527147.357109.1620202806616@mail.yahoo.com> I have the same problem. Interesting to note, If I remove the red color from the button, it works. If I try and make that same button red again, the IDE crashes... On Friday, April 30, 2021, 05:47:05 PM GMT+2, Gianluigi wrote: Il giorno ven 30 apr 2021 alle ore 16:22 Beno?t Minisini ha scritto: Le 30/04/2021 ? 15:59, vuott--- via User a ?crit?: > Hello, > if in the IDE I click on the red button "Stop" (...to stop the execution > of a project), Gambas crashes ! > I obtain a system error 9 and a message-window that you can see in > attached file. > > regards I'm currently working on that... -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Error also here: gian at gian:~$ gambas3 TerminalView._Suspend.1505: #42: System error #9: Descrittore di file errato TerminalView._Suspend.1505 TerminalView.Reset.245 FOutput.OnProjectDebugState.191 Design.SetState.111 Design.AfterStop.506 Design.Stop.563 FMain.Action_Activate.1472 ^Action.Raise.211 Errore di segmentazione RegardsGianluigi ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed May 5 10:52:18 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 5 May 2021 10:52:18 +0200 Subject: [Gambas-user] Idea for 3.17 Message-ID: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> Hi, what if we could work on namespaces? We already talked about it: https://lists.gambas-basic.org/pipermail/user/2018-November/065829.html Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From antonio.j.teixeira at gmail.com Wed May 5 11:19:27 2021 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Wed, 5 May 2021 10:19:27 +0100 Subject: [Gambas-user] UDP Broadcast Message-ID: Hi, Thank you very much all for your answers. Now I got all to work fine. Atentamente / Regards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 5 13:24:46 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 5 May 2021 13:24:46 +0200 Subject: [Gambas-user] Error 9 when i push red button "Stop" in IDE In-Reply-To: <1777527147.357109.1620202806616@mail.yahoo.com> References: <5bee8984-dfa1-f006-060e-af40a5f05612@gmail.com> <1777527147.357109.1620202806616@mail.yahoo.com> Message-ID: Il giorno mer 5 mag 2021 alle ore 10:21 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > I have the same problem. Interesting to note, If I remove the red color > from the button, it works. If I try and make that same button red again, > the IDE crashes... > > On Friday, April 30, 2021, 05:47:05 PM GMT+2, Gianluigi < > bagonergi at gmail.com> wrote: > ... > I just updated to version 3.16.90 bbee396 (master) and it works fine Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed May 5 17:00:40 2021 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 5 May 2021 08:00:40 -0700 (PDT) Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> Message-ID: <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> Reading this: https://lists.gambas-basic.org/pipermail/user/2018-November/065829.html It looks like what your trying to achieve is the possibility of having the same class definition or perhaps module(as they are kind of like a static class too) exportable from a component or library and being differentiated at compile/Run time by a namespace name. There are other uses I guess as in dynamic name spaces created inside a class or module(like c++). But I am not sure you are talking about that type of name space. What I think you are talking about is if componentX exports circle and componentY exports circle there is no conflict in the symbol table or ability to reference both. So why not simply and have a project parameter that specifies a separate namespace using the name of the project as the name space name. All references inside this container of course defaults to this name space. This would be most prevalent for components and libraries. Maybe a check box under the 'Project is translatable' checkbox, saying 'Project uses separate namespace' when creating the project. Does it require a separate symbol table at compile/link time or just that everything inside this project becomes qualified with the project name... lol 'myproject.myclass' actually in the symbol table for this project. It simplifies the integration of non qualified symbols. In this way all references to anything in the project be in the form componentName.class, or componentname.module.mysub(). In fact the project name become the namespace name. Maybe add a new 'with component1,component2 ... end with' to simplify search hierarchy for name resolution in app code. Removing the need in this section of code to keep adding the namespace. Sort of like the java packages/c++ scope. So in the project options page there would be a new checkbox to force a separate namespace for this component, library. Or just in general the application. I guess really the container itself becomes a class of classes. Things like export etc really don't need to be changed the language structure does not change much. I guess a class load would be like Myclass = class.load("componentX.TheClass") AS right now it looks like the first in is the one that is used. If component1 exports circle and component2 exports circle. And the current project has a circle class. Which ever class is loaded first is the one used throughout.. the application. On Second thought..... A More Integrated way: I guess the classes collection would have to be extended with the component name as part of the class name to uniquely identify the name of each loaded class as well. The Class class already contains the component it belongs to. Allow the component/library name once loaded to be used to qualify the class load references and in the default case work as it does today. Requires no changes to anything except how the compiler or runtime ?sees the class/component name combination. ? Having something like ?component:classname as an extension to qualify the class to load we would not need anything new at all for name spaces except that syntax change and extending the way the compiler/runtime sees the name of classes to be loaded. This extension allows the loading of specific versions of the class. The container becoming the namespace. And always present. ** By container I mean project that being component , library, app I guess the classes collection would have to be extended with the component name as part of the class name to uniquely identify the name of each loaded class as well. The Class class already contains the component it belongs to. code sort of looks like ?dim a as new MyComponent:TheClass ?internally using same context Anyway my two cents. Name spaces in the context of the project in simplifying class naming is a great idea. Probably lots of holes and a little naive, The second suggestion being my favorite. "Failure is the key to success; ?each mistake teaches us something" ?.. Morihei Ueshiba Brian G ----- On May 5, 2021, at 1:52 AM, Christof Thalhofer chrisml at deganius.de wrote: > Hi, > > what if we could work on namespaces? We already talked about it: > > https://lists.gambas-basic.org/pipermail/user/2018-November/065829.html > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From adamnt42 at gmail.com Wed May 5 18:19:25 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 6 May 2021 01:49:25 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> Brian G and Christof Thalhofer wrote about namspacing: (Not quoted to get to the point) I would like to see it happen for conflict resolution at object instantiation only. Circle is possibly a poor example. Consider other classes where the name has different meanings in different contexts, say "Customer" or "Product". Namespacing to me means that I can employ two (or more) libraries (or components) in a project at the same time and no ambiguity or conflict arises, viz Dim RetailCust As New RetailLib:Customer Dim TradeCust as New TradeLib:Customer All the remainder of the code should only need to refer to the object name. In fact, once the object is instantiated it should be immutable! IOW changing the RetailCust object by re-instantiating it as a TradeLib:Customer needs to be prohibited in order to protect the code. As for java style naming, YUCK! Just my 20c worth bruce From chrisml at deganius.de Wed May 5 20:15:20 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 5 May 2021 20:15:20 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> Message-ID: <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> Am 05.05.21 um 18:19 schrieb Bruce: > As for java style naming, YUCK! Namespaces are there to make my work available to other programmers as libraries without breaking their software. If I publish my work in the Gambas Software Farm people can only copy and paste it for their usage. This is poor man's software sharing. But if we introduce namespaces we have to do it in a way that we won't destroy software on updates and which does not make the system vulnerable because of using the wrong names: Let's assume I write a class called 'Mail' and publish it so that others can use it in their software. Let's also assume it becomes famous and a lot of people use 'Mail'. When I published it under the namespace 'Cocacola:Mail' then 'The Coca-Cola Company' can later forbid the usage. So I will better publish it under the name 'deganius.de' which is mine. What if I change 'Deganius.de:Mail' in an incompatible way and publish the changes? Will that break other software when the changes are accidentally introduced by an update? Some years ago I talked with an expert about namespaces in computer languages and how to design it. He gave me these advices: ----------------------------------------------------------- You have to set it up so that you can always find out what was included and for what reasons. Basics: 1. Align namespaces with domain names. Nowadays this is the easiest way to avoid name conflicts in the first place. Alternatively, you can build your own registry, but that is legally mined terrain because of trademark law and sovereign fixed names (what should the registry do if someone wants to have the namespace "UTF-8"?). 2. Possibility to declare module dependencies. There one can orient oneself at the Dependencies of existing systems, e.g. the package administrations of the Linux Distros (yum, pkg, dpkg etc.) and Maven. 3. Defaultpolicy: Once a module is published, it may never be changed again. No bug fixes either - the old version is still needed for any future bug diagnostics. If a new version needs to go out, the publisher makes a new version number that becomes part of the module name. Since the namespace is something global, there is a lot more to it than just a bit of syntax. ----------------------------------------------------------- Personally I'm fine with Gambas as it is. But I have a few libraries that might make the life of a database programmer a little easier that I'd like to share. Doing this in a reliable way is currently impossible with Gambas. That's why I find namespaces necessary. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Wed May 5 20:20:53 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 6 May 2021 03:50:53 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> Message-ID: <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> On 6/5/21 3:45 am, Christof Thalhofer wrote: > Am 05.05.21 um 18:19 schrieb Bruce: > >> As for java style naming, YUCK! > > Namespaces are there to make my work available to other programmers as > libraries without breaking their software. If I publish my work in the > Gambas Software Farm people can only copy and paste it for their usage. > This is poor man's software sharing. > > But if we introduce namespaces we have to do it in a way that we won't > destroy software on updates and which does not make the system > vulnerable because of using the wrong names: > > Let's assume I write a class called 'Mail' and publish it so that others > can use it in their software. Let's also assume it becomes famous and a > lot of people use 'Mail'. > > When I published it under the namespace 'Cocacola:Mail' then 'The > Coca-Cola Company' can later forbid the usage. So I will better publish > it under the name 'deganius.de' which is mine. > > What if I change 'Deganius.de:Mail' in an incompatible way and publish > the changes? Will that break other software when the changes are > accidentally introduced by an update? > > Some years ago I talked with an expert about namespaces in computer > languages and how to design it. He gave me these advices: > > ----------------------------------------------------------- > > You have to set it up so that you can always find out what was included > and for what reasons. > > Basics: > > 1. Align namespaces with domain names. Nowadays this is the easiest way > to avoid name conflicts in the first place. Alternatively, you can build > your own registry, but that is legally mined terrain because of > trademark law and sovereign fixed names (what should the registry do if > someone wants to have the namespace "UTF-8"?). > > 2. Possibility to declare module dependencies. There one can orient > oneself at the Dependencies of existing systems, e.g. the package > administrations of the Linux Distros (yum, pkg, dpkg etc.) and Maven. > > 3. Defaultpolicy: Once a module is published, it may never be changed > again. No bug fixes either - the old version is still needed for any > future bug diagnostics. If a new version needs to go out, the publisher > makes a new version number that becomes part of the module name. > > Since the namespace is something global, there is a lot more to it than > just a bit of syntax. > > ----------------------------------------------------------- > > Personally I'm fine with Gambas as it is. But I have a few libraries > that might make the life of a database programmer a little easier that > I'd like to share. Doing this in a reliable way is currently impossible > with Gambas. That's why I find namespaces necessary. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Doesn't the vendor prefixing for libraries already provide that? bruce From chrisml at deganius.de Wed May 5 20:53:02 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 5 May 2021 20:53:02 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> Message-ID: <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> Am 05.05.21 um 20:20 schrieb Bruce: > Doesn't the vendor prefixing for libraries already provide that? Yes, parts of. These are Gambas libs we use here, they reside in the "Gambas vendords namespace" 'deganius': > christof at tof-x230 /usr/lib/gambas3/biz1 ? ls /usr/lib/gambas3/deganius > deg-betrieb:1.1.gambas > deglib-basic:1.6.gambas > deglib-gb:1.6.gambas > deg-models-degdaten:1.0.gambas > deg-report:1.0.gambas > deg-statistik:1.0.gambas > deg-tabpanel:1.0.gambas > deg-telefon:1.1.gambas Dependencies seem to be managed well, also versions! But I cannot use '.' in a vendor name, so domain names are not allowed. Worse: Any class 'Mail' in one of these libs would enhance/overwrite any other class 'Mail' loaded before. This is not what we need. Namespaces should introduce that 'deganius.de:Mail' can be used together and independently of 'example.com:Mail'. As 'deganius.de' and 'example.com' are different namespaces the class 'Mail' in the second would not overwrite/enhance 'Mail' in the first. You could use in your software: 'deganius.de:Mail.Send(Address as string, Subject as String, Text as String)' and: 'example.com:Mail.Send(Subject as String, Text as String, Address as string, PathToAttachment as String)' Note the different signatures of the methods. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Thu May 6 02:13:30 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 6 May 2021 09:43:30 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> Message-ID: Inline ... On 6/5/21 4:23 am, Christof Thalhofer wrote: > Am 05.05.21 um 20:20 schrieb Bruce: > >> Doesn't the vendor prefixing for libraries already provide that? > > Yes, parts of. These are Gambas libs we use here, they reside in the > "Gambas vendords namespace" 'deganius': > >> christof at tof-x230 /usr/lib/gambas3/biz1 ? ls /usr/lib/gambas3/deganius >> deg-betrieb:1.1.gambas >> deglib-basic:1.6.gambas >> deglib-gb:1.6.gambas >> deg-models-degdaten:1.0.gambas >> deg-report:1.0.gambas >> deg-statistik:1.0.gambas >> deg-tabpanel:1.0.gambas >> deg-telefon:1.1.gambas > > Dependencies seem to be managed well, also versions! > > But I cannot use '.' in a vendor name, so domain names are not allowed. Ah yes, but not everyone has a domain name registered. In fact the farm neatly gets around that by allowing anyone (registered) to publish gambas software. I am not aware of any name collisions in the farm? (Nor do I know what would happen if I tried to publish a "gb.deg.form" ) Another issue is where, locally I have different libraries - with similar names containing classes with colliding names. Why? Because here we have multiple software "products" to support (and multiple versions of one product for racehorse trainers - the consortium version, a tai;ored version for one particular trainer and a "free" version with restricted functionality and "nags". Each version uses different libraries with many similarly named classes). These are all adequately handled by the vendor prefixing. > > Worse: Any class 'Mail' in one of these libs would enhance/overwrite any > other class 'Mail' loaded before. This is not what we need. That is exactly what I am talking about - the ability to load multiple libraries and not have the name collision problem. > > Namespaces should introduce that 'deganius.de:Mail' can be used together > and independently of 'example.com:Mail'. > > As 'deganius.de' and 'example.com' are different namespaces the class > 'Mail' in the second would not overwrite/enhance 'Mail' in the first. > > You could use in your software: > > 'deganius.de:Mail.Send(Address as string, Subject as String, Text as > String)' > > and: > > 'example.com:Mail.Send(Subject as String, Text as String, Address as > string, PathToAttachment as String)' > > Note the different signatures of the methods. > > Alles Gute > > Christof Thalhofer > > Yes that is one of the complexities. The more I think about this the harder I believe it would be. Namespace specificqtion would have to be done for any class reference. That would include all declarations and all static references. So * object instantiation (local variables) * parameter declarations (methods using a colliding object) * function results * global variables * property declarations * static method calls * others? These would all add complexity (and thus fragility) to the symbol table lookup in at least the intepreter, the compiler and the IDE. Another matter, as you say, is that existing code must not be disturbed. But I dont see how that could be achieved as that code would not specify the namespace in all the above cases. So how could the gambas system know how to resolve non-namespaced references? I I am currently using the "deganius.de:Mail" library and then add the "example.com:Mail" library to the project how could the gambas system know which library all the existing references refer to? No wonder Benoit keeps putting this in the "too hard" basket! :-) regards bruce From chrisml at deganius.de Thu May 6 08:38:35 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 6 May 2021 08:38:35 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> Message-ID: Am 06.05.21 um 02:13 schrieb Bruce: > Inline ... Yupp, better! >> Yes, parts of. These are Gambas libs we use here, they reside in the >> "Gambas vendords namespace" 'deganius': >> >>> christof at tof-x230 /usr/lib/gambas3/biz1 ? ls /usr/lib/gambas3/deganius >>> deg-betrieb:1.1.gambas >>> deglib-basic:1.6.gambas >>> deglib-gb:1.6.gambas >>> deg-models-degdaten:1.0.gambas >>> deg-report:1.0.gambas >>> deg-statistik:1.0.gambas >>> deg-tabpanel:1.0.gambas >>> deg-telefon:1.1.gambas >> >> Dependencies seem to be managed well, also versions! >> >> But I cannot use '.' in a vendor name, so domain names are not allowed. > > Ah yes, but not everyone has a domain name registered. In fact the farm > neatly gets around that by allowing anyone (registered) to publish > gambas software. I am not aware of any name collisions in the farm? I don't talk about a bunch oft software which is placed in something like a filesystem but has nothing to do with each other except the fact that it is on the same disk. I talk about shared libraries which come from different vendors but can be used by the programmer inside the same program. I think, if you are a professional programmer, wrote a library and want to share it with the public, registering a domain does not cost very much. So we could have the registration thing done. There is an existent organization which does that for us. Instead, we would have to raise that kind of organization by ourselves. > (Nor do I know what would happen if I tried to publish a "gb.deg.form" ) This is also something I'm not talking about. 'gb.deg.form' is a component for Gambas which I had to name this way because instead I would not have been able to integrate it into the Gambas IDE. That's a different thing, as it is no library. > Another issue is where, locally I have different libraries - with > similar names containing classes with colliding names. Why? Because here > we have multiple software "products" to support (and multiple versions > of one product for racehorse trainers - the consortium version, a > tai;ored version for one particular trainer and a "free" version with > restricted functionality and "nags". Each version uses different > libraries with many similarly named classes). These are all adequately > handled by the vendor prefixing. If you look at the domain system you could easily handle this by subdomains: consortium.brucessoftware.com tailored.brucessoftware.com free.brucessoftware.com ... In namespaces we needed something like aliases for that. 'Alias tailored.brucessoftware.com as Brucelib' Then you could switch between libraries easily by changing that alias and refer to 'Brucelib' inside your program. And then your whole program would use 'tailored.brucessoftware.com' and the other one 'free.brucessoftware.com'. That can be changed via one line of code. On the other hand you should also be able to define that every lib that you use uses the Namespace "Global". It even should be default. Then the symbols in it reside in the same namespace as every other Gambas symbol. Then everything would be the same and you would not have to change your program(s) at all. >> Worse: Any class 'Mail' in one of these libs would enhance/overwrite any >> other class 'Mail' loaded before. This is not what we need. > > That is exactly what I am talking about - the ability to load multiple > libraries and not have the name collision problem. I do not understand how you can load multiple libraries with the current Gambas "and not have the name collision problem" ? Assume two libraries: 'bruce.gambas' and 'christof.gambas' Both contain the class 'Mail' with the method 'Send' in it but with different signatures of the methods. What happens if you load them? You get an error that one method of them is "incorrectly overwritten" by the other. If we had namespaces and both would use different ones we can load them both. > The more I think about this the harder I believe it would be. Namespace > specificqtion would have to be done for any class reference. That would > include all declarations and all static references. So > * object instantiation (local variables) > * parameter declarations (methods using a colliding object) > * function results > * global variables > * property declarations > * static method calls > * others? Sure. Everything public. > These would all add complexity (and thus fragility) to the symbol table > lookup in at least the intepreter, the compiler and the IDE. Nope. Other languages handle the same problem well. Namespaces are not rocket science. https://realpython.com/python-namespaces-scope/ https://perlmaven.com/namespaces-and-packages https://www.php.net/manual/en/language.namespaces.php > Another matter, as you say, is that existing code must not be disturbed. > But I dont see how that could be achieved as that code would not specify > the namespace in all the above cases. So how could the gambas system > know how to resolve non-namespaced references? I I am currently using > the "deganius.de:Mail" library and then add the "example.com:Mail" > library to the project how could the gambas system know which library > all the existing references refer to? As long as there is no namespace definition before the symbol name everything is as before. Think as there is a global namespace in which everything happens ? currently. This one should not be disturbed. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Thu May 6 09:27:00 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 6 May 2021 16:57:00 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> Message-ID: <88133fd2-7d6b-fefc-bf4b-d48c518b379c@gmail.com> On 6/5/21 4:08 pm, Christof Thalhofer wrote: > As long as there is no namespace definition before the symbol name > everything is as before. > > Think as there is a global namespace in which everything happens ? > currently. This one should not be disturbed. This is the problem! The Gambas system does not understand the concept "before". For example and why I have an interest in this thread, some time ago I wanted to create a library that contained a "Color" class. This proved to be impossible as the gb.gui component already has a static "Color" class. I specifically wanted a non-static class. Notwithstanding that, every reference to "Color" before adding my now hypothetical library refers to the gb.gui Color class. After I add my library what do the un-namespaced references refer to? The compiler DOES NOT KNOW that I have added a new library! It has no understanding of what the project was like "before"! regards bruce From chrisml at deganius.de Thu May 6 10:34:01 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 6 May 2021 10:34:01 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <88133fd2-7d6b-fefc-bf4b-d48c518b379c@gmail.com> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <88133fd2-7d6b-fefc-bf4b-d48c518b379c@gmail.com> Message-ID: <7b869844-3bc0-96c6-a858-f1ffdf8ea147@deganius.de> Am 06.05.21 um 09:27 schrieb Bruce: > On 6/5/21 4:08 pm, Christof Thalhofer wrote: >> As long as there is no namespace definition before the symbol name >> everything is as before. >> >> Think as there is a global namespace in which everything happens ? >> currently. This one should not be disturbed. > > This is the problem! The Gambas system does not understand the concept > "before". For example and why I have an interest in this thread, some > time ago I wanted to create a library that contained a "Color" class. > This proved to be impossible as the gb.gui component already has a > static "Color" class. I specifically wanted a non-static class. > Notwithstanding that, every reference to "Color" before adding my now > hypothetical library refers to the gb.gui Color class. After I add my > library what do the un-namespaced references refer to? The compiler DOES > NOT KNOW that I have added a new library! It has no understanding of > what the project was like "before"! I am not sure if I understand exactly, what you mean. And I also think that I may not always express myself correctly due to the language barrier. Gambas currently has in fact one single namespace. This one where all the symbols reside. Therefor if you load a library which has the class 'Color' in it, it will overwrite the already existing class 'Color'.* We can call this now already existing namespace "Global". And this is the point where the concept of namespaces addresses your problem (and a lot of others). If we could have additional namespaces then you could define that symbols in your library reside in a namespace that you created and they will never collide with other symbols in other namespaces even when they have the same name. Then you can create your own 'Color' class in the namespace 'Brucesoftware.com'. And I can load a library you have written into my program and refer to this class by the name 'Brucesoftware.com:Color'. 'Dim MyColor as new Brucesoftware.com:Color' If the Gambas interpreter would be able to distinguish between the different namespaces and we get used to write libraries with own namespaces we can easily exchange code and I can use code you wrote and you can use code I wrote, even if we use the same names for our symbols. Ok? I have written an ORM and I'd like to give it to the public later. I called it 'DegOrm' and since then I pray every night before going to bed that noone in the Gambas universe ever comes to the idea to call another Class also 'DegOrm' ? maybe in a component. Because if that happens and I would need that component in my software I had do rename every occurrence of 'DegOrm' in my software to make it work again. That the Gambas interpreter currently has no understanding of namespaces hinders us all to exchange our code. Alles Gute Christof Thalhofer *The interpreter does not allow you to overwrite the symbols with different signatures. -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From mbelmonte at belmotek.net Thu May 6 14:30:53 2021 From: mbelmonte at belmotek.net (Martin) Date: Thu, 6 May 2021 14:30:53 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> <3007809b-13ac-c883-69bc-b8a4c21b91b3@gmail.com> Message-ID: <743e3e47-1015-a8d0-f610-0df3aad9db18@belmotek.net> I think this topic is important and it would be interesting that somewhere be possible configure, when you open the translation form, the default language to be set as the neutral language, in this case common Spanish. Then, when creating a new project it always defaults to US English, I think it should be common English since something similar to Spanish happens to the English language, a language that is spoken in many countries and each one has its variants. I am trying to make a program in gambas3 that translates all the programs in the directory that is passed as parameter but I find things that in my opinion could be standardized. I mean standardize in the sense that you can take advantage of the knowledge generated in the translations of other programs in an intelligent way. translate-shell blocks translations after 20 or 30 translation attempts (I don't know exactly the number) so in practice it doesn't serve as a translation method for the whole program. But... What happens if we manage to reduce the list to translate? that's where the knowledge of other programs that we have in our home comes in. many phrases that are already translated in other programs could alleviate the translation list and thus make the access to translate-shell not to be blocked. For all this to be possible, I think, the first option has to be the common language for the case of languages like English or Spanish "xx.po". Regards. Mart?n. El 4/5/21 a las 19:59, Martin escribi?: > Correct, it is as you say. > However, what do you think about setting Common Spanish as the default? > > Regards. > > Mart?n. > > El 4/5/21 a las 19:17, Beno?t Minisini escribi?: >> Actually not really. >> >> When you open the translation dialog, it chooses a translation to >> begin with, but you don't have to use it. >> >> You can add the "common Spanish" translation, and if you don't touch >> the default one chosen by the translation dialog, it will be >> automatically removed (all void translations are automatically removed). >> >> So you should end with exactly the translations you want. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Thu May 6 16:16:54 2021 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 6 May 2021 07:16:54 -0700 (PDT) Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <7b869844-3bc0-96c6-a858-f1ffdf8ea147@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <88133fd2-7d6b-fefc-bf4b-d48c518b379c@gmail.com> <7b869844-3bc0-96c6-a858-f1ffdf8ea147@deganius.de> Message-ID: <141794754.2778.1620310614250.JavaMail.zimbra@westwoodsvcs.com> Good morning, Ok I have done some testing with gambas regarding class and exports. I am Probably Just stating the obvious but..... If you include a number of components/libraries thru component.load() that contain the class AnyClass and your program also has a class AnyClass. Each loaded component with the AnyClass Overloads AnyClass only until the application first references the class, in fact gambas does not load a class until it is first referenced at runtime. So I can component.load() compa , compb, compc all containing AnyClass. The last component loaded will be the one referenced for the class load at runtime. But if I reference the class in my application AnyClass first before loading other components containing AnyClass the APP version of AnyClass that will be used. Any subsequent component.load() containing an exported class AnyClass will be cause that component's version of AnyClass to be ignored at runtime. It looks like putting components into Project's component list causes the runtime to put entries for the exported classes into the classes collection at startup time. So component's version will always overload our application version of the class. This sounds like a good way to handle such things. Ok, Most people already know this, Just stating the obvious. ********************************************************************* In the discussions so far it looks to focus on naming textual syntax not the actual implementations, you can call your components anything you like but it looks to come down to the fact that we need a container for the classes we want to export that allows us at runtime/compile time to uniquely identify the class to load/reference(popup help). It would seem we already have that container in the form of the component/lib/app. As a start to support name spaces what needs to be done is allow the Classes collection to contain class names that include the component name for lookup at runtime maybe a contraction of 'component:class' as the index, i.e. allow more than one definition of same class, but uniquely identify it. A class already knows what component/lib/app to load from. The old behavior would be possible thru the order of loading, the last def in is the first default out. Can we look at what would be usable and practical within the existing gambas framework, that will get us down the road we are after. The fancy stuff could build upon this. In the code the standard of component:class.item for static items, or component:class for class references and no : in name refers to the last loaded or defined version of a class. so.... if we have a class in our app we know is over ridden appname:myclass works to force our version to be instantiated... as the app is just another container that gets loaded first.. It would seem that this level of complexity as a first pass might be doable... with minimal changes to the underlying runtime environment and compiler Well a thought. Perhaps needing far more work to do. ********************************************************************* "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On May 6, 2021, at 1:34 AM, Christof Thalhofer chrisml at deganius.de wrote: > Am 06.05.21 um 09:27 schrieb Bruce: > >> On 6/5/21 4:08 pm, Christof Thalhofer wrote: >>> As long as there is no namespace definition before the symbol name >>> everything is as before. >>> >>> Think as there is a global namespace in which everything happens ? >>> currently. This one should not be disturbed. >> >> This is the problem! The Gambas system does not understand the concept >> "before". For example and why I have an interest in this thread, some >> time ago I wanted to create a library that contained a "Color" class. >> This proved to be impossible as the gb.gui component already has a >> static "Color" class. I specifically wanted a non-static class. >> Notwithstanding that, every reference to "Color" before adding my now >> hypothetical library refers to the gb.gui Color class. After I add my >> library what do the un-namespaced references refer to? The compiler DOES >> NOT KNOW that I have added a new library! It has no understanding of >> what the project was like "before"! > > I am not sure if I understand exactly, what you mean. And I also think > that I may not always express myself correctly due to the language barrier. > > Gambas currently has in fact one single namespace. This one where all > the symbols reside. Therefor if you load a library which has the class > 'Color' in it, it will overwrite the already existing class 'Color'.* > > We can call this now already existing namespace "Global". > > And this is the point where the concept of namespaces addresses your > problem (and a lot of others). If we could have additional namespaces > then you could define that symbols in your library reside in a namespace > that you created and they will never collide with other symbols in other > namespaces even when they have the same name. > > Then you can create your own 'Color' class in the namespace > 'Brucesoftware.com'. > > And I can load a library you have written into my program and refer to > this class by the name 'Brucesoftware.com:Color'. > > 'Dim MyColor as new Brucesoftware.com:Color' > > If the Gambas interpreter would be able to distinguish between the > different namespaces and we get used to write libraries with own > namespaces we can easily exchange code and I can use code you wrote and > you can use code I wrote, even if we use the same names for our symbols. > > Ok? > > I have written an ORM and I'd like to give it to the public later. I > called it 'DegOrm' and since then I pray every night before going to bed > that noone in the Gambas universe ever comes to the idea to call another > Class also 'DegOrm' ? maybe in a component. Because if that happens and > I would need that component in my software I had do rename every > occurrence of 'DegOrm' in my software to make it work again. > > That the Gambas interpreter currently has no understanding of namespaces > hinders us all to exchange our code. > > Alles Gute > > Christof Thalhofer > > *The interpreter does not allow you to overwrite the symbols with > different signatures. > > -- > Dies ist keine Signatur > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From mckaygerhard at gmail.com Fri May 7 02:36:45 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 6 May 2021 20:36:45 -0400 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <743e3e47-1015-a8d0-f610-0df3aad9db18@belmotek.net> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> <3007809b-13ac-c883-69bc-b8a4c21b91b3@gmail.com> <743e3e47-1015-a8d0-f610-0df3aad9db18@belmotek.net> Message-ID: El jue, 6 de may. de 2021 a la(s) 08:31, Martin (mbelmonte at belmotek.net) escribi?: > I think this topic is important and it would be interesting that > somewhere be possible configure, when you open the translation form, the > default language to be set as the neutral language, in this case common > Spanish. > well i must reconiced that: common lang must be english BUT: > Then, when creating a new project it always defaults to US English, I > think it should be common English since something similar to Spanish > happens to the English language, a language that is spoken in many > countries and each one has its variants. > but i liked that in gambas my projects are in xxxx lang and those f*ck*ng "americans" (what .. the wouth or cental american are not?) must translated from my xxx lang XD XD XD ? > I am trying to make a program in gambas3 that translates all the > programs in the directory that is passed as parameter but I find things > that in my opinion could be standardized. > I mean standardize in the sense that you can take advantage of the > knowledge generated in the translations of other programs in an > intelligent way. > translate-shell blocks translations after 20 or 30 translation attempts > (I don't know exactly the number) so in practice it doesn't serve as a > translation method for the whole program. > But... What happens if we manage to reduce the list to translate? that's > where the knowledge of other programs that we have in our home comes in. > many phrases that are already translated in other programs could > alleviate the translation list and thus make the access to > translate-shell not to be blocked. > For all this to be possible, I think, the first option has to be the > common language for the case of languages like English or Spanish "xx.po". > > Regards. > > Mart?n. > > > El 4/5/21 a las 19:59, Martin escribi?: > > Correct, it is as you say. > > However, what do you think about setting Common Spanish as the default? > > > > Regards. > > > > Mart?n. > > > > El 4/5/21 a las 19:17, Beno?t Minisini escribi?: > >> Actually not really. > >> > >> When you open the translation dialog, it chooses a translation to > >> begin with, but you don't have to use it. > >> > >> You can add the "common Spanish" translation, and if you don't touch > >> the default one chosen by the translation dialog, it will be > >> automatically removed (all void translations are automatically removed). > >> > >> So you should end with exactly the translations you want. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Fri May 7 13:58:12 2021 From: claude.dessere at orange.fr (CD) Date: Fri, 07 May 2021 13:58:12 +0200 Subject: [Gambas-user] Problem with the "Project / Translate" form Message-ID: Hello, in an application for which I create language files, I notice that if the name of the languages chosen(in the left column) is alphabetically greater than "Default", I have the language in "Default" which is displayed (the one defined in "Project / Properties / Options / Default language ", in this case English (United Kingdom)). On the other hand if I made translations in one of the languages whose names precede "Default" (for example Allemand, Bulgarian, Danish, ...) when I redisplay after closing the Translation form, the first language displayed instead of Allemand is the default language. The form does display the Bulgarian and Danish translations, but the Default language is blank! Is this behavior normal, did I misunderstand the use of the form? Cordially -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri May 7 20:08:35 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 7 May 2021 20:08:35 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <141794754.2778.1620310614250.JavaMail.zimbra@westwoodsvcs.com> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <88133fd2-7d6b-fefc-bf4b-d48c518b379c@gmail.com> <7b869844-3bc0-96c6-a858-f1ffdf8ea147@deganius.de> <141794754.2778.1620310614250.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <38759713-82ba-c3e5-3799-ef625ce53431@deganius.de> Am 06.05.21 um 16:16 schrieb Brian G: > Can we look at what would be usable and practical within the existing > gambas framework, that will get us down the road we are after. The > fancy stuff could build upon this. > > In the code the standard of component:class.item for static items, or > component:class for class references and no : in name refers to the > last loaded or defined version of a class. No ':' is the 'Default' namespace where every symbol in all Gambas programs is in until now. > so.... if we have a class in our app we know is over ridden > appname:myclass works to force our version to be instantiated... as > the app is just another container that gets loaded first.. I don't understand this. > It would seem that this level of complexity as a first pass might be > doable... with minimal changes to the underlying runtime environment > and compiler Again, please read this: https://lists.gambas-basic.org/pipermail/user/2018-November/065829.html Beno?t talks about a new command 'Export NameSpace' which "will not export a class to the default global symbol table, but to a specific global symbol table identified by 'NameSpace'". Here the underlying environment of Gambas needs just minimal changes. I would prefer if every 'Export' in a library uses the same namespace. But my point is: 1) How can we ensure that no one takes my namespace by accident? (We need a registry) 2) How can we ensure that the interpreter does not run another version of the code by accident after an update of the library? (We need versioning and dependency management) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From tobs at taboege.de Fri May 7 23:38:02 2021 From: tobs at taboege.de (Tobias Boege) Date: Fri, 7 May 2021 23:38:02 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> Message-ID: <20210507213802.GM1390308@T580.localdomain> On Thu, 06 May 2021, Bruce wrote: > > Yes, parts of. These are Gambas libs we use here, they reside in the > > "Gambas vendords namespace" 'deganius': > > > > > christof at tof-x230 /usr/lib/gambas3/biz1 ? ls /usr/lib/gambas3/deganius > > > deg-betrieb:1.1.gambas > > > deglib-basic:1.6.gambas > > > deglib-gb:1.6.gambas > > > deg-models-degdaten:1.0.gambas > > > deg-report:1.0.gambas > > > deg-statistik:1.0.gambas > > > deg-tabpanel:1.0.gambas > > > deg-telefon:1.1.gambas > > > > Dependencies seem to be managed well, also versions! > > > > But I cannot use '.' in a vendor name, so domain names are not allowed. > > Ah yes, but not everyone has a domain name registered. In fact the farm > neatly gets around that by allowing anyone (registered) to publish gambas > software. I am not aware of any name collisions in the farm? > I never thought about this before when Christof brought it up, but now re-using the internet domain name registrars for Gambas namespaces seems to have some undesirable consequences, next to the problems it solves (I do acknowledge that and think it's a clever idea to re-use *something* that already exists and works reasonably well in practice): - Using the (future) namespace feature of the Gambas language really should not require a domain, which is also a *continuous* monetary drain on the developer (yes, possibly a small one). - I suppose Christof doesn't intend for the *language* feature, which consists of adding more symbol tables and amending the symbol resolution process, and should not care about any meaning attached to the namespace string, to be blocked by the *ecosystem* library publishing registry, which exists for social reasons of trust and conflict prevention. But anyway, I want to go on record here saying that I want to be able to write libraries with *any* namespace, share them with others via email and use them without the need to register and keep a domain. If the (future) library installer cannot deal with local .tar.gz archives in a "trust-me" offline fashion and has to make and verify(?) a DNS query before it permits the installation or usage of a library written by myself, then namespaces will fail. If anything, I can promise you that my personal version of Gambas would always have this kind of arbitrary restriction patched out. - Theoretically, gambas-basic.org could be used to give the "starving hacker" class of Gambas users a namespace for their work, but I do think even that may be too much hassle for those who just want to write some orderly namespaced code for themselves or their company's toolbox. I certainly know that I wouldn't use anything which requires more than writing "Export MyNamespace" in a class file to make the *interpreter* happy. If(!) this kind of centralization is even deemed a good idea (who here remembers gambasdoc.org?). - Domain squatting and hijacking are well-recognized nuisances of the internet domain registration system. Suppose I publish my library under boege.com but then let that domain expire. Someone else registers it and pushes malicious updates to my libraries. The squatter offers me the domain for 1,000,000,000,000,000?. Do we have an overlay registry of our own to correct issues like this or would we tell everyone to only use libraries from boege.com of version <= 1.16 because unfortunately we lost the rights to that namespace to a malicious actor? (Note that, even if I were to have better standing, I would _not_ go to court for the privilege of updating my Gambas libraries.) And I wonder what would effectively prevent me from publishing a library using the deganius.de namespace in case domain-based namespaces are used. What I said under point 1 above amounts to ?I _want_ to be able to write and use classes under deganius.de and share them with people "unofficially"?. So my question is basically: what is the "official" way then that verifies domain ownership and enforces the trust and collision prevention advantages of internet domains? Best, Tobias PS: I have *not* re-read the thread from November 2018 that has been linked a couple of times in this thread. If my question is answered there, I would ask you to redirect me there. And I apologize already for the strawmen I built above out of misunderstanding where and how domain-based namespaces should be implemented. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From brian at westwoodsvcs.com Fri May 7 23:51:05 2021 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 7 May 2021 14:51:05 -0700 (PDT) Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <20210507213802.GM1390308@T580.localdomain> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> Message-ID: <1860190450.3592.1620424265746.JavaMail.zimbra@westwoodsvcs.com> I Agree!! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On May 7, 2021, at 2:38 PM, Tobias Boege tobs at taboege.de wrote: > On Thu, 06 May 2021, Bruce wrote: >> > Yes, parts of. These are Gambas libs we use here, they reside in the >> > "Gambas vendords namespace" 'deganius': >> > >> > > christof at tof-x230 /usr/lib/gambas3/biz1 ? ls /usr/lib/gambas3/deganius >> > > deg-betrieb:1.1.gambas >> > > deglib-basic:1.6.gambas >> > > deglib-gb:1.6.gambas >> > > deg-models-degdaten:1.0.gambas >> > > deg-report:1.0.gambas >> > > deg-statistik:1.0.gambas >> > > deg-tabpanel:1.0.gambas >> > > deg-telefon:1.1.gambas >> > >> > Dependencies seem to be managed well, also versions! >> > >> > But I cannot use '.' in a vendor name, so domain names are not allowed. >> >> Ah yes, but not everyone has a domain name registered. In fact the farm >> neatly gets around that by allowing anyone (registered) to publish gambas >> software. I am not aware of any name collisions in the farm? >> > > I never thought about this before when Christof brought it up, but now > re-using the internet domain name registrars for Gambas namespaces seems > to have some undesirable consequences, next to the problems it solves > (I do acknowledge that and think it's a clever idea to re-use *something* > that already exists and works reasonably well in practice): > > - Using the (future) namespace feature of the Gambas language really > should not require a domain, which is also a *continuous* monetary > drain on the developer (yes, possibly a small one). > > - I suppose Christof doesn't intend for the *language* feature, > which consists of adding more symbol tables and amending the > symbol resolution process, and should not care about any meaning > attached to the namespace string, to be blocked by the *ecosystem* > library publishing registry, which exists for social reasons of > trust and conflict prevention. But anyway, I want to go on record > here saying that I want to be able to write libraries with *any* > namespace, share them with others via email and use them without > the need to register and keep a domain. If the (future) library > installer cannot deal with local .tar.gz archives in a "trust-me" > offline fashion and has to make and verify(?) a DNS query before > it permits the installation or usage of a library written by myself, > then namespaces will fail. If anything, I can promise you that > my personal version of Gambas would always have this kind of > arbitrary restriction patched out. > > - Theoretically, gambas-basic.org could be used to give the > "starving hacker" class of Gambas users a namespace for > their work, but I do think even that may be too much hassle > for those who just want to write some orderly namespaced > code for themselves or their company's toolbox. I certainly > know that I wouldn't use anything which requires more than > writing "Export MyNamespace" in a class file to make the > *interpreter* happy. If(!) this kind of centralization is > even deemed a good idea (who here remembers gambasdoc.org?). > > - Domain squatting and hijacking are well-recognized nuisances of the > internet domain registration system. Suppose I publish my library > under boege.com but then let that domain expire. Someone else > registers it and pushes malicious updates to my libraries. > The squatter offers me the domain for 1,000,000,000,000,000?. > Do we have an overlay registry of our own to correct issues like > this or would we tell everyone to only use libraries from boege.com > of version <= 1.16 because unfortunately we lost the rights to that > namespace to a malicious actor? (Note that, even if I were to have > better standing, I would _not_ go to court for the privilege of > updating my Gambas libraries.) > > And I wonder what would effectively prevent me from publishing a library > using the deganius.de namespace in case domain-based namespaces are used. > What I said under point 1 above amounts to ?I _want_ to be able to write > and use classes under deganius.de and share them with people "unofficially"?. > So my question is basically: what is the "official" way then that verifies > domain ownership and enforces the trust and collision prevention advantages > of internet domains? > > Best, > Tobias > > PS: I have *not* re-read the thread from November 2018 that has been linked > a couple of times in this thread. If my question is answered there, I would > ask you to redirect me there. > > And I apologize already for the strawmen I built above out of misunderstanding > where and how domain-based namespaces should be implemented. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From chrisml at deganius.de Sat May 8 00:37:20 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 8 May 2021 00:37:20 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <20210507213802.GM1390308@T580.localdomain> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> Message-ID: <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> Hi Tobi, Am 07.05.21 um 23:38 schrieb Tobias Boege: > And I wonder what would effectively prevent me from publishing a library > using the deganius.de namespace in case domain-based namespaces are used. > What I said under point 1 above amounts to ?I _want_ to be able to write > and use classes under deganius.de and share them with people "unofficially"?. > So my question is basically: what is the "official" way then that verifies > domain ownership and enforces the trust and collision prevention advantages > of internet domains? You're right in the sense that publishing a package should not have to mean registering a domain. However, my wish that domains can be used as a possibility was based on what happens with Java: https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html The Java folks recommend that companies name their packages according to their domain names, just the other way round: 'com.example.mypackage' They recommend, not determine! It's a convention, you can name your package there 'boege.tobias.mail' without problems. And with your name, I'm pretty sure there won't be any conflicts. Bill Smith has certainly bigger chances that another programmer anywhere in the world calls his package 'billmail' and so it can come to name conflicts, which we want to avoid with namespaces in the future. So: Using a domain should be a convention ? for professionals. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From hasanmerkit at outlook.com Sat May 8 00:43:46 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Fri, 7 May 2021 22:43:46 +0000 Subject: [Gambas-user] (no subject) Message-ID: Please update Turkish language. May be you want see this: https://pasteboard.co/K0QU0WH.png Src/gambas3/Translation/FTranslate.class line 432 If Key.Code = Key.Return Or Key.Code = Key.Enter Then If GoNextCheckBox.Value = True Then Stop Event With cvwTranslate .MoveTo(.Key) .MoveBelow() If .Available Then .Item.Selected = True .Item.EnsureVisible() Endif End With Endif Else If Key.Alt Then -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tr.po Type: application/octet-stream Size: 181247 bytes Desc: tr.po URL: From claude.dessere at orange.fr Sat May 8 07:25:04 2021 From: claude.dessere at orange.fr (CD) Date: Sat, 08 May 2021 07:25:04 +0200 Subject: [Gambas-user] Problem with the "Project / Translate" Message-ID: Hello, in an application for which I create language files, I notice that if the name of the languages chosen(in the left column) is alphabetically greater than "Default", I have the language in "Default" which is displayed (the one defined in "Project / Properties / Options / Default language ", in this case English (United Kingdom)). On the other hand if I made translations in one of the languages whose names precede "Default" (for example Allemand, Bulgarian, Danish, ...) when I redisplay after closing the Translation form, the first language displayed instead of Allemand is the default language. The form does display the Bulgarian and Danish translations, but the Default language is blank! Is this behavior normal, did I misunderstand the use of the form? Cordially sorry, i forgot the system info [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.4.0-72-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=147967 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1450,unix/:/tmp/.ICE- unix/1450 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1537 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat May 8 10:42:55 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 8 May 2021 10:42:55 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> Message-ID: <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Am 08.05.21 um 00:37 I wrote: > The Java folks recommend that companies name their packages according to > their domain names, just the other way round: > > 'com.example.mypackage' And they use the package names for importing classes: http://www.btechsmartclass.com/java/java-importing-packages.html 'Import com.example.mypackage.*' or 'Import com.example.mypackage.JustOneClass' So ... if we take Java as an example, we would have to allow dots in the names. Both for the names of libraries, as well as for namespaces. That's what I would ask for. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Sat May 8 14:14:51 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 8 May 2021 21:44:51 +0930 Subject: [Gambas-user] gambas | Update Turkish Translation. (8d05d066) In-Reply-To: References: Message-ID: <5bd5e560-ee20-9f28-bd8c-e96ea32878ff@gmail.com> On 8/5/21 9:21 pm, Hasan Merkit (@hasanmerkit) wrote: > > > > Hasan Merkit commented: > > > Thanks for update :) I will continue to help for the Turkish language. > > So are you sure to continue to using mailing list? I think it's old and difficult system. > It may be "old" but it is simple and has worked for the last ten years plus and continues. Youth will have its' day, but not yet. best regards bruce From adamnt42 at gmail.com Sat May 8 14:47:46 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 8 May 2021 22:17:46 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: On 8/5/21 6:12 pm, Christof Thalhofer wrote: > Am 08.05.21 um 00:37 I wrote: > >> The Java folks recommend that companies name their packages according to >> their domain names, just the other way round: >> >> 'com.example.mypackage' > > And they use the package names for importing classes: > > http://www.btechsmartclass.com/java/java-importing-packages.html > > 'Import com.example.mypackage.*' > > or > > 'Import com.example.mypackage.JustOneClass' > > So ... if we take Java as an example, we would have to allow dots in the > names. Both for the names of libraries, as well as for namespaces. > > That's what I would ask for. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Christof, That is confusing. Package naming and internal syntax are two entirely different things. Even so, java package naming i a PITA and furthermore so is the syntax. Well, OK maybe package naming is not THAT confusing just painful. Using domain name backwards is a wonderful idea, jicht wah? And that is why I said that the syntax inside java is just a very good reason to not adopt it. But we are still discussing what namespacing syntactically means within Gambas I hope. @Brian: It is NOT simple. It is easy to say "Oh, just add a namespace in front of 9notice that I eschewed the word "before") some declaration. I have already posted the number of places that this would be required. And I'll add another to that list ... Inherits Namespacing while retaining so called "backward compatibility" just cannont work! The crux being (yet again) the compiler has absolutely no idea of what the project configuration was BEFORE (in terms of 5 minutes ago), so any ideas that existing code could be differentiated between "what is" and "what was" are impossible. BTW: I see some come conflict in what you (Brian) said about testing component loading and wht I understand. My reading of the whole mess is: - The pseudo-component "gb" is the first to be loaded as it is part of the runtime. - The current project is the LAST to be loaded,as per the Object Model" help. Otherwise the current architecture could npt work. - In between those two component loading is more or less indetermenent, as it depends??? on component Requires and Needs. I think, sort of. - Explicit loading would occur after the project load, but how and when is magic understood only by magicians such as BM and FB. Finally, here's a joke... Project uses component "FredA" New component is introduced "Fredb" Both contain a class called "NoMailn The programmer adds the "Fredb" component and her project now crashes due to name collisions. She removes the "FredA" component, the projec now crashes due to signature errors. Her co-programmer re-adds "FredA" Back to namespace collissions, gbc3 now says "FIIK" what was before? Punchline: It's a bit like the AeroTrain. Guys, I hope this all translates. @Christof. Well, you did want discussion! :-) regards bruce From hasanmerkit at outlook.com Sat May 8 14:55:28 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Sat, 8 May 2021 12:55:28 +0000 Subject: [Gambas-user] GTK3 update bugs? Message-ID: With the updates coming this month, most of my Gambas programs are broken. Problems: 1. Opacity feature does not work longer. 2. Form not starts center. 3. GTK3 theme started to invert all images. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat May 8 15:02:43 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 8 May 2021 22:32:43 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: <85eddab2-d652-4f98-e689-55926d71fed7@gmail.com> And one more thing we have not discussed yet... the psychological impacts and effects... The two things we have not discussed yet are the psy... OH OK ITS BEEN DONE BEFORE. When I am coding I am thinking about the object or class I most recently was cognizing. The added cost of namespacing a symbol/token/whatever is a disruption to my coding flow. ymmv But dont get me wrong, Namespacing, somehow. would improve ("further", "be of benefit") to Gambas. regards bruce From adamnt42 at gmail.com Sat May 8 15:08:29 2021 From: adamnt42 at gmail.com (Bruce) Date: Sat, 8 May 2021 22:38:29 +0930 Subject: [Gambas-user] GUI menus amd how to handle them Message-ID: In particular, how do I get ahold of the QT4/5 textbox popup menu "Undo"? I know that the the GTK ones are different but screw them for a row of tin soldiers! (Hah, translate that Google!) tia bruce From chrisml at deganius.de Sat May 8 16:07:50 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 8 May 2021 16:07:50 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: Am 08.05.21 um 14:47 schrieb Bruce: > Christof, > That is confusing. No problem :-) Just make a better suggestion how to avoid that two (professional) programmers on opposite sides of the world, who know nothing about each other, use the same name for their packages. Or ? if they do ? how we can deal with it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat May 8 16:08:28 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 8 May 2021 16:08:28 +0200 Subject: [Gambas-user] GTK3 update bugs? In-Reply-To: References: Message-ID: <13db5c0a-2647-d80b-8430-be37f31380b6@gmail.com> Le 08/05/2021 ? 14:55, Hasan Merkit a ?crit?: > With the updates coming this month, most of my Gambas programs are broken. > > Problems: > > 1. Opacity feature does not work longer. Please provide a project that shows the bug. > 2. Form not starts center. It depends on the window manager (KDE / Mutter...), and on the window system (X11 / Wayland) and on which toolkit you use (Qt / GTK+). Please provide your system information. > 3. GTK3 theme started to invert all images. > Please provide a project that reproduces what you are talking about (which it not clear). Moreover, now the IDE uses GTK+ by default on non-KDE desktop. You have now a menu entry associated with the IDE icon (if your desktop supports that of course) that allows to run the IDE with GTK+3, Qt4 or Qt5. So, if your bug is related to the IDE, try to start it with Qt5 to see if you still have the bug. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat May 8 16:24:14 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 8 May 2021 16:24:14 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> Message-ID: Le 05/05/2021 ? 10:52, Christof Thalhofer a ?crit?: > Hi, > > what if we could work on namespaces? We already talked about it: > > https://lists.gambas-basic.org/pipermail/user/2018-November/065829.html > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi everyone, I read all the mails, but at the moment I didn't have the time to really think about it. I have nothing more to say that what was in the November 2018 mail, except: 1) I don't want to use Java-like namespaces, nor a central namespace directory. I don't care if namespaces could collide, because when writing free software, there is no reason that namespaces conflict more than shared libraries names. When someone writes a new shared library for Linux/Unix, it chooses a name that nobody has chosen before. It's common sense, and it's enough for me to do the same thing with Gambas. People will have to collaborate intelligently. 2) Nobody should write components outside of the Gambas source tree. It is not intended to work, even if it does. People must write libraries. And you choose the order in which you load libraries in your project. So the problem in conflicting names is the same as when you use shared libraries. A way to export a class, not in the global table but in a library's table, and a way to use a class explicitly from a library's table, should be enough to deal with name conflicts. A library that export a class in the global table wants to extend the Gambas language (in some way). Otherwise a library should export the class in its local table. But then you can't use it directly, you must specify the library name somewhere (the namespace, i.e. which table you must search). But as I said, I don't think about that enough. Regards, -- Beno?t Minisini From chrisml at deganius.de Sat May 8 16:31:03 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 8 May 2021 16:31:03 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> Message-ID: <64579b0a-65f9-a6b7-a601-d76c58fc56db@deganius.de> Am 08.05.21 um 16:24 schrieb Beno?t Minisini: > But as I said, I don't think about that enough. Can you imagine if we could introduce that in 3.17? Otherwise, we don't need to think about it any further (at the moment). Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Sat May 8 17:10:16 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 8 May 2021 11:10:16 -0400 Subject: [Gambas-user] GUI menus amd how to handle them In-Reply-To: References: Message-ID: <2b06bca8-fbe5-67d1-2234-3eeff30ae5d6@gmail.com> On 5/8/21 9:08 AM, Bruce wrote: > In?particular,?how?do?I?get?ahold?of?the?QT4/5?textbox?popup?menu?"Undo"? Create your own context-sensitive menu with your corresponding custom "Undo" handler? Or, (I have not tested it) would that cause a collision? -- Lee From g4mba5 at gmail.com Sat May 8 17:32:59 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 8 May 2021 17:32:59 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <64579b0a-65f9-a6b7-a601-d76c58fc56db@deganius.de> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <64579b0a-65f9-a6b7-a601-d76c58fc56db@deganius.de> Message-ID: <2d9cd4e0-2d2b-ca77-7f1b-57041d130b21@gmail.com> Le 08/05/2021 ? 16:31, Christof Thalhofer a ?crit?: > Am 08.05.21 um 16:24 schrieb Beno?t Minisini: > >> But as I said, I don't think about that enough. > > Can you imagine if we could introduce that in 3.17? Otherwise, we don't > need to think about it any further (at the moment). > > Alles Gute > > Christof Thalhofer > Maybe, I don't know yet. I'm still thinking about 3.16.1 version. :-) -- Beno?t Minisini From brian at westwoodsvcs.com Sat May 8 18:35:22 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 8 May 2021 09:35:22 -0700 (PDT) Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> Message-ID: <1416324144.4240.1620491722799.JavaMail.zimbra@westwoodsvcs.com> Yes, this sounds most correct so far Benoit! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On May 8, 2021, at 7:24 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 05/05/2021 ? 10:52, Christof Thalhofer a ?crit?: >> Hi, >> >> what if we could work on namespaces? We already talked about it: >> >> https://lists.gambas-basic.org/pipermail/user/2018-November/065829.html >> >> Alles Gute >> >> Christof Thalhofer >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > Hi everyone, > > I read all the mails, but at the moment I didn't have the time to really > think about it. > > I have nothing more to say that what was in the November 2018 mail, except: > > 1) I don't want to use Java-like namespaces, nor a central namespace > directory. > > I don't care if namespaces could collide, because when writing free > software, there is no reason that namespaces conflict more than shared > libraries names. > > When someone writes a new shared library for Linux/Unix, it chooses a > name that nobody has chosen before. It's common sense, and it's enough > for me to do the same thing with Gambas. People will have to collaborate > intelligently. > > 2) Nobody should write components outside of the Gambas source tree. It > is not intended to work, even if it does. > > People must write libraries. And you choose the order in which you load > libraries in your project. So the problem in conflicting names is the > same as when you use shared libraries. > > A way to export a class, not in the global table but in a library's > table, and a way to use a class explicitly from a library's table, > should be enough to deal with name conflicts. > > A library that export a class in the global table wants to extend the > Gambas language (in some way). > > Otherwise a library should export the class in its local table. But then > you can't use it directly, you must specify the library name somewhere > (the namespace, i.e. which table you must search). > > But as I said, I don't think about that enough. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Sat May 8 19:26:14 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 8 May 2021 10:26:14 -0700 (PDT) Subject: [Gambas-user] Gambas Architecture image missing from wiki Message-ID: <347926608.4289.1620494774136.JavaMail.zimbra@westwoodsvcs.com> Where can I find the Gambas Architecture diagram? Seems to be missing from the wiki. Anybody Know? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat May 8 19:45:09 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 8 May 2021 19:45:09 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: Am 08.05.21 um 14:47 schrieb Bruce: > @Brian: It is NOT simple. It is easy to say "Oh, just add a namespace in > front of 9notice that I eschewed the word "before") some declaration. I > have already posted the number of places that this would be required. > And I'll add another to that list ... Inherits > > Namespacing while retaining so called "backward compatibility" just > cannont work! The crux being (yet again) the compiler has absolutely no > idea of what the project configuration was BEFORE (in terms of 5 minutes > ago), so any ideas that existing code could be differentiated between > "what is" and "what was" are impossible. I still don't understand what you mean with BEFORE. But let's look how namespaces could be handled in code: Maybe we can do sth like: 'Use ... As ...'.* (Or we have another way to import a library into a project together with an alias, maybe in the Project Dialog which stores that in the '.project' file). Imagine a library called 'de.deganius.db'. It containes one class: 'Orm'. You want to use it inside your project. As it happens, your project also contains a class 'Orm'. Let us look at a piece of (imaginated) code: -------------------------------------------------------- Public Sub Main() Use de.deganius.db As Degdb Dim DegOrm as New Dgdb.Orm Dim MyOrm as New Orm DegOrm.DoSomething(DegOrm.ConstantA) MyOrm.DoSomethingOther() End -------------------------------------------------------- What would be confusing with that? Why wouldn't it be backwards compatible? If you remove the lines which have to do with namespaces everything is just as before (aka runs in current Gambas). Alles Gute Christof Thalhofer * Like in PHP -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Sat May 8 22:40:01 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 9 May 2021 06:10:01 +0930 Subject: [Gambas-user] GUI menus amd how to handle them In-Reply-To: <2b06bca8-fbe5-67d1-2234-3eeff30ae5d6@gmail.com> References: <2b06bca8-fbe5-67d1-2234-3eeff30ae5d6@gmail.com> Message-ID: On 9/5/21 12:40 am, T Lee Davidson wrote: > On 5/8/21 9:08 AM, Bruce wrote: >> In?particular,?how?do?I?get?ahold?of?the?QT4/5?textbox?popup?menu?"Undo"? > > Create your own context-sensitive menu with your corresponding custom > "Undo" handler? Or, (I have not tested it) would that cause a collision? > > Damn. That was what I was afraid of. That's a lot of effort to duplicate something that already works. cheers bruce From bagonergi at gmail.com Sat May 8 22:42:38 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 8 May 2021 22:42:38 +0200 Subject: [Gambas-user] Gambas Architecture image missing from wiki In-Reply-To: <347926608.4289.1620494774136.JavaMail.zimbra@westwoodsvcs.com> References: <347926608.4289.1620494774136.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Il giorno sab 8 mag 2021 alle ore 19:37 Brian G ha scritto: > Where can I find the Gambas Architecture diagram? > Seems to be missing from the wiki. > > Anybody Know? > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > You mean this ? https://gambas-buch.de/dwen/doku.php?id=k5:start Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat May 8 23:11:18 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 9 May 2021 06:41:18 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: <55a34849-a5c5-3e16-7afc-6fa00031e332@gmail.com> Inline On 9/5/21 3:15 am, Christof Thalhofer wrote: > Am 08.05.21 um 14:47 schrieb Bruce: > >> @Brian: It is NOT simple. It is easy to say "Oh, just add a namespace in >> front of 9notice that I eschewed the word "before") some declaration. I >> have already posted the number of places that this would be required. >> And I'll add another to that list ... Inherits >> >> Namespacing while retaining so called "backward compatibility" just >> cannont work! The crux being (yet again) the compiler has absolutely no >> idea of what the project configuration was BEFORE (in terms of 5 minutes >> ago), so any ideas that existing code could be differentiated between >> "what is" and "what was" are impossible. > > I still don't understand what you mean with BEFORE. Sorry the uppercase was a typo. I am trying to not use that word as it has at least 3 different meanings in English. > > But let's look how namespaces could be handled in code: > > Maybe we can do sth like: > > 'Use ... As ...'.* > > (Or we have another way to import a library into a project together with > an alias, maybe in the Project Dialog which stores that in the > '.project' file). > > Imagine a library called 'de.deganius.db'. It containes one class: 'Orm'. > > You want to use it inside your project. As it happens, your project also > contains a class 'Orm'. > > Let us look at a piece of (imaginated) code: > > -------------------------------------------------------- > Public Sub Main() > > Use de.deganius.db As Degdb > > Dim DegOrm as New Dgdb.Orm > Dim MyOrm as New Orm > > DegOrm.DoSomething(DegOrm.ConstantA) > MyOrm.DoSomethingOther() > > End > -------------------------------------------------------- > > What would be confusing with that? Why wouldn't it be backwards > compatible? If you remove the lines which have to do with namespaces > everything is just as before (aka runs in current Gambas). > > Alles Gute > > Christof Thalhofer > > * Like in PHP > ]---- > Yes, for source code you would be writing just now, it would work. But imagine 230 projects, libraries and components written over the last 10 years all of which uae my (un-prefixed) Orm class and use gb.db as well. Imagine then that Benoit changes gb.db in Gambas 3.16+ and creates a Orm class therein. As I see it all my source code and p-code would then be broken or at least have a high probability of being broken. regards bruce From brian at westwoodsvcs.com Sat May 8 23:49:58 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 8 May 2021 14:49:58 -0700 (PDT) Subject: [Gambas-user] Gambas Architecture image missing from wiki In-Reply-To: References: <347926608.4289.1620494774136.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <736919950.4392.1620510598040.JavaMail.zimbra@westwoodsvcs.com> I guess I do, I can't tell if it was the same as it is no longer there in the wiki... LOL But that helps.. Thanks "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On May 8, 2021, at 1:42 PM, Gianluigi wrote: > Il giorno sab 8 mag 2021 alle ore 19:37 Brian G < [ > mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > ha scritto: >> Where can I find the Gambas Architecture diagram? >> Seems to be missing from the wiki. >> Anybody Know? >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G > You mean this ? > [ https://gambas-buch.de/dwen/doku.php?id=k5:start | > https://gambas-buch.de/dwen/doku.php?id=k5:start ] > Regards > Gianluigi > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun May 9 00:13:32 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 9 May 2021 00:13:32 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: <55a34849-a5c5-3e16-7afc-6fa00031e332@gmail.com> References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> <55a34849-a5c5-3e16-7afc-6fa00031e332@gmail.com> Message-ID: <9a346761-e047-e674-cd50-1e632a46bb8c@deganius.de> Am 08.05.21 um 23:11 schrieb Bruce: > Yes, for source code you would be writing just now, it would work. > But imagine 230 projects, libraries and components written over the last > 10 years all of which uae my (un-prefixed) Orm class and use gb.db as > well. Imagine then that Benoit changes gb.db in Gambas 3.16+ and creates > a Orm class therein. As I see it all my source code and p-code would > then be broken or at least have a high probability of being broken. If you have a class called 'Orm', yes in this case your code will break. Because Beno?t always writes in the 'Default' namespace, as you do also, as everyone does until now. If he creates an 'Orm' class, and you had a class called 'Orm', your code will break. This is the current situation. This is the reason, why I called my Orm class 'DegOrm' and I prefix all my classnames with 'Deg' as a very primitive namespace replacement. I hope nobody gets the idea to call a class 'DegCrypt', 'DegString', 'DegTableview' ... If you continue to use the namespace 'Default' (which must be the default also in future, if not defined otherwise by the author of a program) nothing changes for your code. You won't be sure that your code would not been broken by future Gambas that introduces a class with the same name as yours ? so nothing changes for you. In PHP there is the 'namespace' Keyword with which the author explicitly defines the namespace of a class, look at this example: https://github.com/slimphp/Slim/blob/4.x/Slim/App.php If we can adopt this idea in Gambas then we can put classes into different namespaces. If no namespace is defined for a class, the class will be in 'Default' as before. If we introduce namespaces you would have the possibility to let your own code use it's own namespace. Then no change in the 'Default' namespace could break your code any more. So the introduction of namespaces won't break your old code. Never! But it gives you the opportunity to put your code in your own namespace and so make it more stable in future. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Sun May 9 04:17:30 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 9 May 2021 11:47:30 +0930 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: On 9/5/21 3:15 am, Christof Thalhofer wrote SNIP) > Let us look at a piece of (imaginated) code: > > -------------------------------------------------------- > Public Sub Main() > > Use de.deganius.db As Degdb > > Dim DegOrm as New Dgdb.Orm > Dim MyOrm as New Orm > > DegOrm.DoSomething(DegOrm.ConstantA) > MyOrm.DoSomethingOther() > > End > -------------------------------------------------------- > > What would be confusing with that? Why wouldn't it be backwards > compatible? If you remove the lines which have to do with namespaces > everything is just as before (aka runs in current Gambas). > It's not "confusing" but as I said originally it's not that simple. All your example addresses is the case of a local variable. Consider all the declarations in the Gambas language where the specific Orm would need to be stated ... ' Gambas class file Inherits Orm Event Whatever(AnOrm as Orm) Class Orm Public/Private MyOrm as Orm Public/Private LotsOfOrms as Orm[] Property ThisOrm as Orm Sub DoSomething(OrmThingy as Orm) Function WhichOrm() as Orm others? where is the namespace specifier, how ever it is going to be implemented... colon delimiters, bang delimiters, whatever. Or we could end up with a different syntax in each case? ' Gambas class file Inherits Orm From . Event Whatever(AnOrm as [Orm in ] ) Class Orm Public/Private MyOrm as Orm Using etc. (Note: This is all a discussion point, not an argument for or against namespacing.) b From dosida at gmail.com Sun May 9 08:55:52 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Sun, 9 May 2021 00:55:52 -0600 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: I might be a bit late to the conversation but I gotta a few questions. What kind of problem are we trying to solve by introducing namespaces? Are namespaces the only tool we can use to solve said problem? And it also begs the question. What kind of issues are we introducing by introducing namespaces into Gambas? Do we need to have some sort of a converter from the non-namespaced version to a namespaced version of our code (and vice versa) so that some sort of compatibility is preserved between Gambas versions? On Sat, May 8, 2021 at 8:18 PM Bruce wrote: > On 9/5/21 3:15 am, Christof Thalhofer wrote > SNIP) > > > Let us look at a piece of (imaginated) code: > > > > -------------------------------------------------------- > > Public Sub Main() > > > > Use de.deganius.db As Degdb > > > > Dim DegOrm as New Dgdb.Orm > > Dim MyOrm as New Orm > > > > DegOrm.DoSomething(DegOrm.ConstantA) > > MyOrm.DoSomethingOther() > > > > End > > -------------------------------------------------------- > > > > What would be confusing with that? Why wouldn't it be backwards > > compatible? If you remove the lines which have to do with namespaces > > everything is just as before (aka runs in current Gambas). > > > > It's not "confusing" but as I said originally it's not that simple. All > your example addresses is the case of a local variable. Consider all > the declarations in the Gambas language where the specific Orm would > need to be stated ... > > ' Gambas class file > Inherits Orm > Event Whatever(AnOrm as Orm) > Class Orm > Public/Private MyOrm as Orm > Public/Private LotsOfOrms as Orm[] > Property ThisOrm as Orm > Sub DoSomething(OrmThingy as Orm) > Function WhichOrm() as Orm > others? > > where is the namespace specifier, how ever it is going to be > implemented... colon delimiters, bang delimiters, whatever. > > Or we could end up with a different syntax in each case? > > > ' Gambas class file > Inherits Orm From . > Event Whatever(AnOrm as [Orm in ] ) > Class Orm > Public/Private MyOrm as Orm Using > etc. > > (Note: This is all a discussion point, not an argument for or against > namespacing.) > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun May 9 12:34:06 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 9 May 2021 12:34:06 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: <6d704e76-1c1b-b371-e2e3-97ae6bedc48a@deganius.de> Am 09.05.21 um 04:17 schrieb Bruce: > It's not "confusing" but as I said originally it's not that simple. All > your example addresses is the case of a local variable. Consider all > the declarations in the Gambas language where the specific Orm would > need to be stated ... > > ' Gambas class file > Inherits Orm > Event Whatever(AnOrm as Orm) > Class Orm > Public/Private MyOrm as Orm > Public/Private LotsOfOrms as Orm[] > Property ThisOrm as Orm > Sub DoSomething(OrmThingy as Orm) > Function WhichOrm() as Orm > others? Yes for eyery symbol which is owned by a class in a different namespace. Only classes (Class, Module, Form, Testmodule ) can be in namespaces. But if your class is in the same namespace as 'Orm' we could do things like that: ------------------------------------------------------------ ' Gambas class file Namespace Brucesoftware.Db ' ":" followed by the name of a symbol means ' the current namespace. Inherits :Orm Event Whatever(AnOrm as :Orm) Public MyOrm as :Orm Private LotsOfOrms as :Orm[] Property ThisOrm as :Orm Sub DoSomething(OrmThingy as :Orm) Function WhichOrm() as :Orm ------------------------------------------------------------ If your class is in another namespace as 'Orm' we could do things like that: ------------------------------------------------------------ ' Gambas class file ' we are in Brucesoftware Namespace Brucesoftware ' and need classes in another NS but don't always ' want to write it's lengthy name Use Brucesoftware.Db as Db Inherits Db:Orm Event Whatever(AnOrm as Db:Orm) Public MyOrm as Db:Orm ------------------------------------------------------------ This would lead to such code: ------------------------------------------------------------ ' Gambas class file Namespace Brucesoftware.Db Use Brucesoftware.Crypt as Crypt ' The class Orm is in the same namespace, so we do not ' need to write it explicitly as ":" refers ' to the current one Inherits :Orm ' "String" is not in this ns so we have to ' refer to the Default ns. But no namespace ' means the default one: Property Something as String Public Sub Main() Print Crypt:Hash.Random() End ------------------------------------------------------------ We have to look how other languages handle this. We have the advantage that there have been other people who have puzzled over this problem. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun May 9 13:00:25 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 9 May 2021 13:00:25 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: Am 09.05.21 um 08:55 schrieb Dimitris Anogiatis: > I might be a bit late to the conversation but I gotta a?few questions. > > What kind of problem are we trying to solve by introducing namespaces? That we cannot share code which contains classes with the same name. If I share a library with a class 'Mail' and you want to use it (because it solves a special problem you have) and at the same time your project also contains a class 'Mail' your code will break with high probability if you load my lib. > Are namespaces the only tool we can use to solve said problem? No. We can name our classes in an very individual way: Class DimitrisAnogiatisMail Class ChristofAtDeganiusMail (this is poor man's namespacing ? nobody does that ... wait ... except Microsoft in the Windows Registry, am I right?) Alternatively you can rename the classes in your project so that their names do not collide with names of classes of foreign libraries you load into your project. Alternatively you do without loading foreign libraries. This is what currently is done in the Gambas world. > And it also begs the question. What kind of issues are we introducing by > introducing namespaces into Gambas? None. Existing code will* behave as always. There will be* a few new commands and a new operator. > Do we need to have some sort of a converter from the non-namespaced > version to a namespaced version of our code (and vice versa) so that > some sort of compatibility is preserved between Gambas versions? No. Alles Gute Christof Thalhofer * When I write "will be" then that means only if Beno?t wants. -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sun May 9 20:01:45 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 9 May 2021 20:01:45 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <743e3e47-1015-a8d0-f610-0df3aad9db18@belmotek.net> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> <3007809b-13ac-c883-69bc-b8a4c21b91b3@gmail.com> <743e3e47-1015-a8d0-f610-0df3aad9db18@belmotek.net> Message-ID: <0b09a01f-35cc-609c-2b64-3a9b23b83a03@gmail.com> Le 06/05/2021 ? 14:30, Martin a ?crit?: > I think this topic is important and it would be interesting that > somewhere be possible configure, when you open the translation form, the > default language to be set as the neutral language, in this case common > Spanish. What's the problem with opening by default on the current language? If your current language is not common Spanish, and you want to translate to common Spanish, you just have to click on the "+" button and add that translation. It's really not a big deal. > Then, when creating a new project it always defaults to US English, I > think it should be common English since something similar to Spanish > happens to the English language, a language that is spoken in many > countries and each one has its variants. > I am trying to make a program in gambas3 that translates all the > programs in the directory that is passed as parameter but I find things > that in my opinion could be standardized. > I mean standardize in the sense that you can take advantage of the > knowledge generated in the translations of other programs in an > intelligent way. > translate-shell blocks translations after 20 or 30 translation attempts > (I don't know exactly the number) so in practice it doesn't serve as a > translation method for the whole program. > But... What happens if we manage to reduce the list to translate? that's > where the knowledge of other programs that we have in our home comes in. > many phrases that are already translated in other programs could > alleviate the translation list and thus make the access to > translate-shell not to be blocked. > For all this to be possible, I think, the first option has to be the > common language for the case of languages like English or Spanish "xx.po". > > Regards. > > Mart?n. You can import the translations from any translation file into the current translation from the "Import" tab. You can choose if you want to keep the current translations (i.e. if you want to fill the untranslated strings only). And you can import all the files recursively from the current selected folders. That way, you can create your own library of translations by collecting translation files. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Sun May 9 21:27:03 2021 From: mbelmonte at belmotek.net (Martin) Date: Sun, 9 May 2021 21:27:03 +0200 Subject: [Gambas-user] A curious thing happens with translations. In-Reply-To: <0b09a01f-35cc-609c-2b64-3a9b23b83a03@gmail.com> References: <1e875e61-d817-8ea6-efd5-8bfb04ad8938@belmotek.net> <1d90334d-212b-bfff-b98d-253f9457be45@gmail.com> <7c404335-67b4-7619-5aa2-ce1296c85bff@belmotek.net> <3007809b-13ac-c883-69bc-b8a4c21b91b3@gmail.com> <743e3e47-1015-a8d0-f610-0df3aad9db18@belmotek.net> <0b09a01f-35cc-609c-2b64-3a9b23b83a03@gmail.com> Message-ID: ok, but were is stored the information collected? Supose this scenario : App_1 : 10 of 25 sentences translated fromn EN to ES, FR, IT App_2 : 150 of 200 sentences translated fromn EN to ES, FR, IT App_3 : 4 of 100 sentences translated fromn EN to ES, FR, IT If we are working in App_3 there we import translations from App_1 & App_2 to App_3 but each sentence imported must be in the App_3/.lang/.pot if not the sentence is not stored in the App_3 translations therefore the library wil not include all the translations made in the "others" apps. That is my point. Actually the interpreter is focused on translate only the current app you are right, is possible import the previous translations but only from one other app, not many of them. I'm working right now in a little app to do translations in the way i say. Is planed share it in a few days, by the farm (if it possible) or by gitlab. Tanks to take time to answer. Mart?n. El 9/5/21 a las 20:01, Beno?t Minisini escribi?: > That way, you can create your own library of translations by > collecting translation files. From dosida at gmail.com Sun May 9 22:50:46 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Sun, 9 May 2021 14:50:46 -0600 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: So if I understand the concept of namespaces, we're talking about merging code from 2 or more classes inheriting and overriding methods and properties of those classes. How would the inheritance mechanism work? For example let's say we have the mail class and we import my class and yours like this (again if I understand it correctly... if not please correct me): import christof:Mail import dimitris:Mail does the compiler just take the second one and use it to inherit and override code from the class above it in the order they were imported? or do we have the following scheme: import christof:Mail import dimitris:Mail (inherits | overrides | inheritsAndOverrides) christof:Mail On Sun, May 9, 2021 at 5:01 AM Christof Thalhofer wrote: > Am 09.05.21 um 08:55 schrieb Dimitris Anogiatis: > > > I might be a bit late to the conversation but I gotta a few questions. > > > > What kind of problem are we trying to solve by introducing namespaces? > > That we cannot share code which contains classes with the same name. If > I share a library with a class 'Mail' and you want to use it (because it > solves a special problem you have) and at the same time your project > also contains a class 'Mail' your code will break with high probability > if you load my lib. > > > Are namespaces the only tool we can use to solve said problem? > > No. We can name our classes in an very individual way: > > Class DimitrisAnogiatisMail > Class ChristofAtDeganiusMail > > (this is poor man's namespacing ? nobody does that ... wait ... except > Microsoft in the Windows Registry, am I right?) > > Alternatively you can rename the classes in your project so that their > names do not collide with names of classes of foreign libraries you load > into your project. > > Alternatively you do without loading foreign libraries. This is what > currently is done in the Gambas world. > > > And it also begs the question. What kind of issues are we introducing by > > introducing namespaces into Gambas? > > None. Existing code will* behave as always. There will be* a few new > commands and a new operator. > > > Do we need to have some sort of a converter from the non-namespaced > > version to a namespaced version of our code (and vice versa) so that > > some sort of compatibility is preserved between Gambas versions? > > No. > > Alles Gute > > Christof Thalhofer > > * When I write "will be" then that means only if Beno?t wants. > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Sun May 9 23:25:32 2021 From: gambas at cd-bahia.com (Dag JNJ) Date: Sun, 9 May 2021 23:25:32 +0200 Subject: [Gambas-user] Scrollbars Message-ID: Hi, I have a problem since the latest update I did yesterday: I don't have ANY scrollbars any more, in none of the objects. I noticed first in Gridiew, then I tested with ScrollView. I use Mate 20.4.1 with Gambas 3.16.0 Can anyone help me out? Thanks in advance, Dag From chrisml at deganius.de Mon May 10 00:05:40 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 10 May 2021 00:05:40 +0200 Subject: [Gambas-user] Idea for 3.17 In-Reply-To: References: <3e9dca3e-16af-1f44-2bd0-b064dc62d27f@deganius.de> <1101024020.2241.1620226840043.JavaMail.zimbra@westwoodsvcs.com> <717c0722-aa4f-1d10-675f-9c7bf6f95966@gmail.com> <340cf55a-2c0f-dd88-6ba3-8de560e35577@deganius.de> <58464a2d-261a-8e4d-9d82-3391dbfe3e5c@gmail.com> <0d9fdb68-33fa-839c-4ae9-56fd9da6af50@deganius.de> <20210507213802.GM1390308@T580.localdomain> <1da0e24b-2e57-6277-34f3-c40c464be69a@deganius.de> <81c1d430-b535-8e40-10a7-3d69773b9163@deganius.de> Message-ID: <4e7ed1d3-bb98-4efa-b816-4d5f9f55e875@deganius.de> Am 09.05.21 um 22:50 schrieb Dimitris Anogiatis: > So if I understand the concept of namespaces, we're talking about > merging code from 2 or more classes inheriting and overriding methods > and properties of those classes. No, no, no. This happens only *without namespaces*. What you describe is the standard behaviour of Gambas: The first class 'Mail' is loaded. The second class 'Mail' which is loaded afterwards overwrites/inherits the first one. Sometimes this is a very nice feature. But it is deadly if you want to use a library with code which was written by someone else which you can download from Gitlab and integrate in your program. Because if you load such a library classes with the same names ('Mail' in the library and 'Mail in your program') will inherit/overwrite each other and this will crash your program with high probability! This happens with the current Gambas we all work with. > How would the inheritance mechanism work? For example let's say we have > the mail class and we import my class and yours like this (again if I > understand it correctly... if not please correct me): > > import christof:Mail > import dimitris:Mail You can use them independently of each other. There is *no inheritance*. It is the great advantage of namespaces, again: *No inheritance* (To be precise: No automatic inheritance.) If it helps you then you can see it as if you would call the classes: 'ChristofMail' 'DimitrisMail' Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From t.lee.davidson at gmail.com Mon May 10 04:24:26 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 9 May 2021 22:24:26 -0400 Subject: [Gambas-user] Scrollbars In-Reply-To: References: Message-ID: On 5/9/21 5:25 PM, Dag JNJ wrote: > Hi, > > I have a problem since the latest update I did yesterday: I don't have ANY scrollbars any more, in none of the objects. I > noticed first in Gridiew, then I tested with ScrollView. > > I use Mate 20.4.1 with Gambas 3.16.0 > > Can anyone help me out? > > Thanks in advance, > > Dag I just tried with a GridView. I get both vertical and horizontal scrollbars with Qt5. -- Lee [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.3.18-lp152.72-default Architecture=x86_64 Distribution=openSUSE Leap 15.2 Desktop=KDE5 Font=Noto Sans,10 Scale=7 Theme=breeze Language=en_US.UTF-8 Memory=16000M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.6.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.32 GDK3=/usr/lib64/libgdk-3.so.0.2404.16 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1602.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2404.16 OpenGL=/usr/lib64/libGL.so.1.7.0 Poppler=/usr/lib64/libpoppler.so.89.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.12.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 From g4mba5 at gmail.com Mon May 10 09:18:33 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 10 May 2021 09:18:33 +0200 Subject: [Gambas-user] Scrollbars In-Reply-To: References: Message-ID: <8d4ed662-31bb-446d-dda4-cf18c24589ee@gmail.com> Le 09/05/2021 ? 23:25, Dag JNJ a ?crit?: > Hi, > > I have a problem since the latest update I did yesterday: I don't have > ANY scrollbars any more, in none of the objects. I noticed first in > Gridiew, then I tested with ScrollView. > > I use Mate 20.4.1 with Gambas 3.16.0 > > Can anyone help me out? > > Thanks in advance, > > Dag > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > . As usual : post a project that reproduces the bug and your system information copied from the IDE corresponding menu. Regards, -- Beno?t Minisini From gambas at cd-bahia.com Mon May 10 11:34:13 2021 From: gambas at cd-bahia.com (Dag JNJ) Date: Mon, 10 May 2021 11:34:13 +0200 Subject: [Gambas-user] Scrollbars In-Reply-To: <8d4ed662-31bb-446d-dda4-cf18c24589ee@gmail.com> References: <8d4ed662-31bb-446d-dda4-cf18c24589ee@gmail.com> Message-ID: <2a7ca648-fc4d-88cb-9fd4-b7b617cde4a0@cd-bahia.com> Am 10.05.21 um 09:18 schrieb Beno?t Minisini: > Le 09/05/2021 ? 23:25, Dag JNJ a ?crit?: >> Hi, >> >> I have a problem since the latest update I did yesterday: I don't >> have ANY scrollbars any more, in none of the objects. I noticed first >> in Gridiew, then I tested with ScrollView. >> >> I use Mate 20.4.1 with Gambas 3.16.0 >> >> Can anyone help me out? >> >> Thanks in advance, >> >> Dag >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> . > > As usual : post a project that reproduces the bug and your system > information copied from the IDE corresponding menu. > > Regards, > ? Hi here a test project and sysinfo Dag -------------- next part -------------- A non-text attachment was scrubbed... Name: scb.tar.gz Type: application/gzip Size: 12392 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sysinfo.tar.gz Type: application/gzip Size: 1332 bytes Desc: not available URL: From hasanmerkit at outlook.com Mon May 10 13:24:23 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Mon, 10 May 2021 11:24:23 +0000 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters Message-ID: How i can make a textbox only accept alphabetic characters? In VB.Net, i do this: Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) _Handles txtName.KeyPress If Not (Asc(e.KeyChar) = 8) Then Dim allowedChars As String = "abcdefghijklmnopqrstuvwxyz0123456789" If Not allowedChars.Contains(e.KeyChar.ToString.ToLower) Then e.KeyChar = ChrW(0) e.Handled = True End If End If End Su -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon May 10 13:34:24 2021 From: adamnt42 at gmail.com (Bruce) Date: Mon, 10 May 2021 21:04:24 +0930 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: Message-ID: <2524e319-b142-7693-d0f1-db9c15327c20@gmail.com> On 10/5/21 8:54 pm, Hasan Merkit wrote: > How i can make a textbox only accept alphabetic characters? > > > In VB.Net, i do this: > > > Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) _Handles txtName.KeyPress > > If Not (Asc(e.KeyChar) = 8) Then > > Dim allowedChars As String = "abcdefghijklmnopqrstuvwxyz0123456789" > > If Not allowedChars.Contains(e.KeyChar.ToString.ToLower) Then > > e.KeyChar = ChrW(0) > > e.Handled = True > > End If > > End If > > > > End Su > Well that may work in VB.net but not here. Why would you think it would. Gambas has an excellent help system, but as I have sais many times before, you must read every word, every word and the every word. Try reading the help for the TextBox control, in particular the events. Sheesh! How many times do I have to reply to this same question. Gambas is NOT Visual Basic Gambas is not python nor is it cobol, pascal, smalltalk or a small planet near Beetlegeuse. You probably want TextBox.Change. From tobs at taboege.de Mon May 10 13:39:11 2021 From: tobs at taboege.de (Tobias Boege) Date: Mon, 10 May 2021 13:39:11 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: <2524e319-b142-7693-d0f1-db9c15327c20@gmail.com> References: <2524e319-b142-7693-d0f1-db9c15327c20@gmail.com> Message-ID: <20210510113911.GF1603@highrise.localdomain> On Mon, 10 May 2021, Bruce wrote: > On 10/5/21 8:54 pm, Hasan Merkit wrote: > > How i can make a textbox only accept alphabetic characters? > > > > > > In VB.Net, i do this: > > > > > > Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) _Handles txtName.KeyPress > > > > If Not (Asc(e.KeyChar) = 8) Then > > > > Dim allowedChars As String = "abcdefghijklmnopqrstuvwxyz0123456789" > > > > If Not allowedChars.Contains(e.KeyChar.ToString.ToLower) Then > > > > e.KeyChar = ChrW(0) > > > > e.Handled = True > > > > End If > > > > End If > > > > > > > > End Su > > > > Well that may work in VB.net but not here. Why would you think it would. > Gambas has an excellent help system, but as I have sais many times before, > you must read every word, every word and the every word. Try reading the > help for the TextBox control, in particular the events. > > Sheesh! How many times do I have to reply to this same question. > > You probably want TextBox.Change. > More specifically, Hasan, you want to apply the "read every word" advice to the help page for the TextBox KeyPress event: http://gambaswiki.org/wiki/comp/gb.qt4/control/.keypress Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at gmail.com Mon May 10 13:47:58 2021 From: adamnt42 at gmail.com (Bruce) Date: Mon, 10 May 2021 21:17:58 +0930 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: Message-ID: Sorry Hasan but its about the 100th time I have answered questions like that. It makes as much sense as me asking: In Haskell I do this - Code blah blah End How do I do this in APL? See what I mean? We, on this mailing list, generally don't know nor care how to write Visual Basic code. From hans at gambas-buch.de Mon May 10 13:54:39 2021 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 10 May 2021 13:54:39 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From hasanmerkit at outlook.com Mon May 10 14:06:39 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Mon, 10 May 2021 12:06:39 +0000 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters Message-ID: Re:Re: Bruce I know the Gambas language is not the same as VB.Net. I just searched for a long time and couldn't. When I couldn't do it, I wanted to get help from here and show an example. I'm sorry if I pissed you off about this. -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasanmerkit at outlook.com Mon May 10 14:20:54 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Mon, 10 May 2021 12:20:54 +0000 Subject: [Gambas-user] Recond question for TextBox only accepts alphabetic and numbers Message-ID: This code is working fine: Public Sub CheckInput(sAllowed As String) Select Case Key.Code Case Key.Left, Key.Right, Key.BackSpace, Key.Delete, Key.End, Key.Home, Key.Enter, Key.Return, Key.ControlKey Return Default If Key.Text And If InStr(sAllowed, Key.Text) Then Return Endif End Select Stop Event End But CTRL + A no longer working for selecting all texts. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Mon May 10 16:40:06 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 10 May 2021 16:40:06 +0200 Subject: [Gambas-user] Update on Kubuntu 20 LTS Message-ID: My Gambas is from the /team repo. On Saturday, I had it make an update (mainly for Firefox, LibreOffice etc.) on my laptop. There is a Kubuntu 20 LTS system on this machine. Updates came, and Gambas updated. There are some Gambas apps on this laptop, and they wouldn't start anymore. Gambas IDE started, but when I tried to start one of the apps, Gambas crashed with some stack overflow message. So I tried apt-get update again, and now I saw that quite a number of Gambas packages had not been installed. Trying apt-get update gambas3* installed them all, and now it seems Gambas is running again. I recompiled one of the apps and started it, everything running fine. However, the Gambas icon (the shrimp) has become a giant :) Regards Rolf From admin at allunix.ru Mon May 10 17:04:52 2021 From: admin at allunix.ru (Admin) Date: Mon, 10 May 2021 22:04:52 +0700 Subject: [Gambas-user] strange Message behavior Message-ID: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> So, I have some multiline text string and I want to Message() it. All I get is just five lines of text and no more. I can Print it and see all the text. I can even just do this: Message ("1\n2\n3\n4\n5\n6\n7") And all I will get in a message box is 1 2 3 4 5 I guess this has something to do with the framework (QT or GTK? I am kinda confused, since only module used in the project is gb.gui, and not .gtk or .gtk3 or .qt4 or .qt5, but I am positive I started a GTK2 project) But I googled the hell out of it and could not find any similar problem. Any ideas on how one can bypass this five-lines-only barrier in Message? I tried Message.Info and Message.Warning, no difference, just a different icon in top left of the message. Dmitry. From g4mba5 at gmail.com Mon May 10 17:41:04 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 10 May 2021 17:41:04 +0200 Subject: [Gambas-user] strange Message behavior In-Reply-To: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> Message-ID: <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> Le 10/05/2021 ? 17:04, Admin a ?crit?: > So, I have some multiline text string and I want to Message() it. > All I get is just five lines of text and no more. I can Print it and see > all the text. > I can even just do this: > Message ("1\n2\n3\n4\n5\n6\n7") > And all I will get in a message box is > > 1 > 2 > 3 > 4 > 5 > > I guess this has something to do with the framework (QT or GTK? I am > kinda confused, since only module used in the project is gb.gui, and not > .gtk or .gtk3 or .qt4 or .qt5, but I am positive I started a GTK2 project) > But I googled the hell out of it and could not find any similar problem. > Any ideas on how one can bypass this five-lines-only barrier in Message? > I tried Message.Info and Message.Warning, no difference, just a > different icon in top left of the message. > > Dmitry. > Please post a project that reproduces the bug. Thanks. -- Beno?t Minisini From gambas at cd-bahia.com Mon May 10 20:00:07 2021 From: gambas at cd-bahia.com (Dag JNJ) Date: Mon, 10 May 2021 20:00:07 +0200 Subject: [Gambas-user] Scrollbars In-Reply-To: References: Message-ID: <564935a5-5db8-ed49-b8cf-7c2a58798dc6@cd-bahia.com> Am 10.05.21 um 04:24 schrieb T Lee Davidson: > On 5/9/21 5:25 PM, Dag JNJ wrote: >> Hi, >> >> I have a problem since the latest update I did yesterday: I don't >> have ANY scrollbars any more, in none of the objects. I noticed first >> in Gridiew, then I tested with ScrollView. >> >> I use Mate 20.4.1 with Gambas 3.16.0 >> >> Can anyone help me out? >> >> Thanks in advance, >> >> Dag > > I just tried with a GridView. I get both vertical and horizontal > scrollbars with Qt5. > > Yes indeed, tried and worked. Thank you From dosida at gmail.com Mon May 10 23:24:27 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Mon, 10 May 2021 15:24:27 -0600 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: Message-ID: Hello Hasan, The Gambas documentation wiki (http://gambaswiki.org/wiki) should be the first stop for anything that has to do with keyboard events or any other aspect of the language. All the developers and maintainers are doing a good job at keeping it as up to date as possible. I think Bruce's reaction to your request would have been different had you posted your gambas attempt for filtering out certain keys than if you showed the vb.net code you did. Finding the converse code from any language to Gambas is most of the times (if not al the times) a very time consuming task. So from now on, attempt to solve your problem on Gambas first and then post your questions here so the guys can guide you to the appropriate solution for your needs. Hope this helps. On Mon, May 10, 2021 at 6:07 AM Hasan Merkit wrote: > Re:Re: Bruce > > > > I know the Gambas language is not the same as VB.Net. I just searched for > a long time and couldn't. > > > > When I couldn't do it, I wanted to get help from here and show an example. > > > > I'm sorry if I pissed you off about this. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Tue May 11 04:22:12 2021 From: admin at allunix.ru (Admin) Date: Tue, 11 May 2021 09:22:12 +0700 Subject: [Gambas-user] strange Message behavior In-Reply-To: <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> Message-ID: <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> 10.05.2021 22:41, Beno?t Minisini ?????: > Le 10/05/2021 ? 17:04, Admin a ?crit?: >> So, I have some multiline text string and I want to Message() it. >> All I get is just five lines of text and no more. I can Print it and >> see all the text. >> I can even just do this: >> Message ("1\n2\n3\n4\n5\n6\n7") >> And all I will get in a message box is >> >> 1 >> 2 >> 3 >> 4 >> 5 >> >> I guess this has something to do with the framework (QT or GTK? I am >> kinda confused, since only module used in the project is gb.gui, and >> not .gtk or .gtk3 or .qt4 or .qt5, but I am positive I started a GTK2 >> project) >> But I googled the hell out of it and could not find any similar >> problem. Any ideas on how one can bypass this five-lines-only barrier >> in Message? >> I tried Message.Info and Message.Warning, no difference, just a >> different icon in top left of the message. >> >> Dmitry. >> > > Please post a project that reproduces the bug. > > Thanks. > Thank you for the reply, Benoit! I don't think it's about the project. The project runs fine on a different machine. Let me explain it visually: https://youtu.be/YEJJQnJaYLA Dmitry. From jussi.lahtinen at gmail.com Tue May 11 04:37:02 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 11 May 2021 05:37:02 +0300 Subject: [Gambas-user] strange Message behavior In-Reply-To: <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> Message-ID: > > I don't think it's about the project. The project runs fine on a > different machine. > > Let me explain it visually: https://youtu.be/YEJJQnJaYLA > > gb.gui choses automatically the framework according to the used Desktop. So, this bug is in gb.gtk2 and perhaps in some others? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Tue May 11 15:48:46 2021 From: kicking177 at gmail.com (KKing) Date: Tue, 11 May 2021 14:48:46 +0100 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters Message-ID: <18da7738-21a1-e489-a401-774bef187ccf@gmail.com> << We, on this mailing list, generally don't know nor care how to write Visual Basic code. >> I wonder if that is true. I personally don't see a problem with asking how to do something and then give an example in another well known language, you hopefully can find some friendly people who are happy to try and help. From g4mba5 at gmail.com Tue May 11 16:06:30 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 May 2021 16:06:30 +0200 Subject: [Gambas-user] Scrollbars In-Reply-To: <2a7ca648-fc4d-88cb-9fd4-b7b617cde4a0@cd-bahia.com> References: <8d4ed662-31bb-446d-dda4-cf18c24589ee@gmail.com> <2a7ca648-fc4d-88cb-9fd4-b7b617cde4a0@cd-bahia.com> Message-ID: <9678d6cb-2c0f-2079-b9d5-375f3839a7bd@gmail.com> Le 10/05/2021 ? 11:34, Dag JNJ a ?crit?: > > Am 10.05.21 um 09:18 schrieb Beno?t Minisini: >> Le 09/05/2021 ? 23:25, Dag JNJ a ?crit?: >>> Hi, >>> >>> I have a problem since the latest update I did yesterday: I don't >>> have ANY scrollbars any more, in none of the objects. I noticed first >>> in Gridiew, then I tested with ScrollView. >>> >>> I use Mate 20.4.1 with Gambas 3.16.0 >>> >>> Can anyone help me out? >>> >>> Thanks in advance, >>> >>> Dag >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> . >> >> As usual : post a project that reproduces the bug and your system >> information copied from the IDE corresponding menu. >> >> Regards, >> ? Hi here a test project and sysinfo > Dag > > Thanks. No problem here, so I think it's a problem with the mate widget theme again. Can you try to choose a non-mate widget theme to confirm? -- Beno?t Minisini From g4mba5 at gmail.com Tue May 11 20:34:13 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 May 2021 20:34:13 +0200 Subject: [Gambas-user] strange Message behavior In-Reply-To: References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> Message-ID: <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> Le 11/05/2021 ? 04:37, Jussi Lahtinen a ?crit?: > I don't think it's about the project. The project runs fine on a > different machine. > > Let me explain it visually: https://youtu.be/YEJJQnJaYLA > > > > gb.gui choses automatically the framework according to the used Desktop. > So, this bug is in gb.gtk2 and perhaps in some others? > > Jussi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > OK, it seems that Pango >= 1.20 has a non backward-compatible change that breaks multi-line text drawing. More news about that soon... -- Beno?t Minisini From g4mba5 at gmail.com Tue May 11 20:36:05 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 May 2021 20:36:05 +0200 Subject: [Gambas-user] strange Message behavior In-Reply-To: <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> Message-ID: <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> Le 11/05/2021 ? 20:34, Beno?t Minisini a ?crit?: > Le 11/05/2021 ? 04:37, Jussi Lahtinen a ?crit?: >> ??? I don't think it's about the project. The project runs fine on a >> ??? different machine. >> >> ??? Let me explain it visually: https://youtu.be/YEJJQnJaYLA >> ??? >> >> >> gb.gui choses automatically the framework according to the used Desktop. >> So, this bug is in gb.gtk2 and perhaps in some others? >> >> Jussi >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > OK, it seems that Pango >= 1.20 has a non backward-compatible change > that breaks multi-line text drawing. > > More news about that soon... > It's not just GTK+ developers that like to break all programs using their libraries when releasing a new minor version. -- Beno?t Minisini From g4mba5 at gmail.com Tue May 11 21:03:24 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 May 2021 21:03:24 +0200 Subject: [Gambas-user] strange Message behavior In-Reply-To: <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> Message-ID: <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> Le 11/05/2021 ? 20:36, Beno?t Minisini a ?crit?: >> >> OK, it seems that Pango >= 1.20 has a non backward-compatible change >> that breaks multi-line text drawing. >> >> More news about that soon... >> > > It's not just GTK+ developers that like to break all programs > using their libraries when releasing a new minor version. > This was not a backward-incompatible change, I was wrong. This was a backward-incompatible bug fix apparently. There was a bug in Pango that was ignore the first line of text is some cases, and I added a UTF-8 invisible character at the start of the Pango string to workaround the bug. It worked before, but now it makes Pango randomly ignore some lines when displaying text. The problem is guessing which version of Pango needs the workaround, and which one must not use it! Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue May 11 21:34:21 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 May 2021 21:34:21 +0200 Subject: [Gambas-user] strange Message behavior In-Reply-To: <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> Message-ID: <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> Le 11/05/2021 ? 21:03, Beno?t Minisini a ?crit?: > Le 11/05/2021 ? 20:36, Beno?t Minisini a ?crit?: >>> >>> OK, it seems that Pango >= 1.20 has a non backward-compatible change >>> that breaks multi-line text drawing. >>> >>> More news about that soon... >>> >> >> It's not just GTK+ developers that like to break all programs >> using their libraries when releasing a new minor version. >> > > This was not a backward-incompatible change, I was wrong. > > This was a backward-incompatible bug fix apparently. > > There was a bug in Pango that was ignore the first line of text is some > cases, and I added a UTF-8 invisible character at the start of the Pango > string to workaround the bug. > > It worked before, but now it makes Pango randomly ignore some lines when > displaying text. > > The problem is guessing which version of Pango needs the workaround, and > which one must not use it! > > Regards, > OK, the bug should be fixed now in master. -- Beno?t Minisini From g4mba5 at gmail.com Tue May 11 23:30:35 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 11 May 2021 23:30:35 +0200 Subject: [Gambas-user] Proposal for namespace support Message-ID: <619386eb-d950-9ae0-dde8-94575a45c7b1@gmail.com> Hi, Here is the result of my thoughts about namespace support. I tried to find the simpler and less disturbing solution for the interpreter code. 1) A new syntax for exporting classes. ' Class MyClass Export As NameSpace:PublicName will export the class MyClass in the global table as "NameSpace:PublicName" The MyClass name is still available inside the code of the current project. Note that the old 'Export' keyword alone would be an equivalent of 'Export As MyClass' 2) A new syntax for class names. Dim A As NameSpace:PublicName will automatically get the class named 'NameSpace:PublicName class' in the global table by the export made in 1) Do you think that it fulfills the needs detailed in the previous thread about namespaces? -- Beno?t Minisini From clhamilto at gmail.com Tue May 11 23:31:23 2021 From: clhamilto at gmail.com (Curtis Hamilton) Date: Tue, 11 May 2021 17:31:23 -0400 Subject: [Gambas-user] Color rendering issue Message-ID: The color rendering seems to be off. Background colors are not being rendered correctly. See the attached screenshot. I'm on FreeBSD/Powerpc64, could this be an endian issue? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot at 2021-05-11 13-20-06.png Type: image/png Size: 98904 bytes Desc: not available URL: From chrisml at deganius.de Wed May 12 01:06:18 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 12 May 2021 01:06:18 +0200 Subject: [Gambas-user] Proposal for namespace support In-Reply-To: <619386eb-d950-9ae0-dde8-94575a45c7b1@gmail.com> References: <619386eb-d950-9ae0-dde8-94575a45c7b1@gmail.com> Message-ID: <01daed80-3281-51a2-d0db-d538cdc6ebd8@deganius.de> Hi Beno?t, Am 11.05.21 um 23:30 schrieb Beno?t Minisini: > Here is the result of my thoughts about namespace support. Thank you! > I tried to find the simpler and less disturbing solution for the > interpreter code. > > 1) A new syntax for exporting classes. > > ' Class MyClass > Export As NameSpace:PublicName > > will export the class MyClass in the global table as "NameSpace:PublicName" Looks good for me if we see the CamelCase in the IDE. Here I think of things like ComCompanyDb:Orm ComCompanyCrypt:Hash > The MyClass name is still available inside the code of the current project. Is the class also available inside the project under its Namespace entry? This would make it easier to test it with gb.test. > Note that the old 'Export' keyword alone would be an equivalent of > 'Export As MyClass' If we could do as a shortcut: ' Class MyClass Export As NameSpace: and this were extended to 'NameSpace:MyClass', that would be fine. Here I think about typos where one would name the class file 'MyClass', then writes 'Export As NameSpace:MzCass'. Another Point: Can we make an entry in the '.project' file 'namespace=MyNameSpace' and if it is filled every class in the project is automatically exported with 'MyNameSpace'? Except classes that the author explicitly exported with another namespace. This would also prevent us from typos. Is that complicated? > 2) A new syntax for class names. > > Dim A As NameSpace:PublicName > > will automatically get the class named 'NameSpace:PublicName class' in > the global table by the export made in 1) With static classes this happens analogously? So that we can write: 'NameSpace:MyModule.MyMethod()' If this becomes too long, other languages provide aliases. For example PHP: https://www.php.net/manual/en/language.namespaces.importing.php has the syntax 'use MyReallyVeryLongNamespace as MyLong;' > Do you think that it fulfills the needs detailed in the previous thread > about namespaces? I have to think about it for a while, but right now I think yes and also that it is very elegant (especially to use the global symbol table for that). :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed May 12 02:14:30 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 12 May 2021 02:14:30 +0200 Subject: [Gambas-user] Proposal for namespace support In-Reply-To: <01daed80-3281-51a2-d0db-d538cdc6ebd8@deganius.de> References: <619386eb-d950-9ae0-dde8-94575a45c7b1@gmail.com> <01daed80-3281-51a2-d0db-d538cdc6ebd8@deganius.de> Message-ID: <5d825e4b-0ece-d902-3e97-aee1d5608b0c@gmail.com> Le 12/05/2021 ? 01:06, Christof Thalhofer a ?crit?: > Hi Beno?t, > > Am 11.05.21 um 23:30 schrieb Beno?t Minisini: > >> Here is the result of my thoughts about namespace support. > > Thank you! > >> I tried to find the simpler and less disturbing solution for the >> interpreter code. >> >> 1) A new syntax for exporting classes. >> >> ' Class MyClass >> Export As NameSpace:PublicName >> >> will export the class MyClass in the global table as "NameSpace:PublicName" > > Looks good for me if we see the CamelCase in the IDE. Here I think of > things like > > ComCompanyDb:Orm > ComCompanyCrypt:Hash > >> The MyClass name is still available inside the code of the current project. > > Is the class also available inside the project under its Namespace > entry? This would make it easier to test it with gb.test. Only if it is exported. Exporting makes the string "NameSpace:ClassName" points at the class MyClass inside the global symbol table. > >> Note that the old 'Export' keyword alone would be an equivalent of >> 'Export As MyClass' > > If we could do as a shortcut: > > ' Class MyClass > Export As NameSpace: > > and this were extended to 'NameSpace:MyClass', that would be fine. Here > I think about typos where one would name the class file 'MyClass', then > writes 'Export As NameSpace:MzCass'. I don't really like the syntax, but I get the point. > > Another Point: Can we make an entry in the '.project' file > 'namespace=MyNameSpace' and if it is filled every class in the project > is automatically exported with 'MyNameSpace'? Except classes that the > author explicitly exported with another namespace. > > This would also prevent us from typos. Is that complicated? > Not a good idea to export all classes of a project. But we can imagine that 'Export' alone will export to the default namespace of the project, and that the "default default" namespace is the global symbol table. >> 2) A new syntax for class names. >> >> Dim A As NameSpace:PublicName >> >> will automatically get the class named 'NameSpace:PublicName class' in >> the global table by the export made in 1) > > With static classes this happens analogously? So that we can write: > > 'NameSpace:MyModule.MyMethod()' I didn't think about class names used for calling static methods. Yes, logically we should be able to do that. It's just problematic for the compiler parser... must think about that. > > If this becomes too long, other languages provide aliases. For example PHP: > > https://www.php.net/manual/en/language.namespaces.importing.php > > has the syntax > > 'use MyReallyVeryLongNamespace as MyLong;' This is a common feature I don't really want. Because then you can mismatch the reader of the code, which cannot be sure which namespace we refer at first sight. Regards, -- Beno?t Minisini From chrisml at deganius.de Wed May 12 10:31:19 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 12 May 2021 10:31:19 +0200 Subject: [Gambas-user] Proposal for namespace support In-Reply-To: <5d825e4b-0ece-d902-3e97-aee1d5608b0c@gmail.com> References: <619386eb-d950-9ae0-dde8-94575a45c7b1@gmail.com> <01daed80-3281-51a2-d0db-d538cdc6ebd8@deganius.de> <5d825e4b-0ece-d902-3e97-aee1d5608b0c@gmail.com> Message-ID: Am 12.05.21 um 02:14 schrieb Beno?t Minisini: >> If we could do as a shortcut: >> >> ' Class MyClass >> Export As NameSpace: >> >> and this were extended to 'NameSpace:MyClass', that would be fine. Here >> I think about typos where one would name the class file 'MyClass', then >> writes 'Export As NameSpace:MzCass'. > > I don't really like the syntax, but I get the point. Ack. As an alternative we could do 'Export To NameSpace' and 'Export To Namespace:MyAlternativeClassName' But think about it ... do we really have the need to rename the class when we export it with a Namespace? I would deny this and I would also think that could lead to confusion in the same way as aliases on import/usage. So why not reduce the possibilities to this: 'Export' = exporting the class to the default namespace of the project, or ? if that is not set ? the 'default default' namespace Null. And: 'Export To NameSpace' = exporting the class to 'NameSpace'. > Not a good idea to export all classes of a project. Sorry, my fault. I thought of automatically export all *exported classes* with NameSpace if 'namespace=NameSpace' is set in the '.project' file but didn't write it. > But we can imagine that 'Export' alone will export to the default > namespace of the project, and that the "default default" namespace is > the global symbol table. Yes, that was what I meant. >> With static classes this happens analogously? So that we can write: >> >> 'NameSpace:MyModule.MyMethod()' > > I didn't think about class names used for calling static methods. > > Yes, logically we should be able to do that. It's just problematic for > the compiler parser... must think about that. Hmm. I thought of modules also being classes as you often use the term as a synonym. I have no idea of the internals and therefor I am not able to imagine why it is complicated. >> 'use MyReallyVeryLongNamespace as MyLong;' > > This is a common feature I don't really want. Because then you can > mismatch the reader of the code, which cannot be sure which namespace we > refer at first sight. Ok, I agree, this is something I also find confusing with PHP. So let's forget that idea. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Wed May 12 11:02:17 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 12 May 2021 11:02:17 +0200 Subject: [Gambas-user] GTK warnings Message-ID: Benoit, I don't know if it can be useful, but when I launch Gambas with GTK+ 3 libraries, the terminal gives me 3 equal warnings (last master on ubuntu): webkit_settings_get_enable_plugins is deprecated and always returns FALSE. Plugins are no longer supported. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Wed May 12 13:41:42 2021 From: claude.dessere at orange.fr (CD) Date: Wed, 12 May 2021 13:41:42 +0200 Subject: [Gambas-user] Problem with the "Project / Translate" form (with screenshots) Message-ID: Hello, in an application for which I create language files, I notice that if the name of the languages chosen(in the left column) is alphabetically greater than "Default", I have the language in "Default" which is displayed (the one defined in "Project / Properties / Options / Default language ", in this case English (United Kingdom)). On the other hand if I made translations in one of the languages whose names precede "Default" (for example Allemand, Bulgarian, Danish, ...) when I redisplay after closing the Translation form, the first language displayed instead of Allemand is the default language. The form does display the Bulgarian and Danish translations, but the Default language is blank! Is this behavior normal, did I misunderstand the use of the form? This picture before the "Allemand" translation : This picture after the "Allemand" translation : If i put the "de.mo" and "de.po" files of the .lang folder in another folder everything is back to normal. if I paste the 2 files again in the .lang folder, the left column is blank again. Regards [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.4.0-72-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=147967 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1450,unix/:/tmp/.ICE- unix/1450 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1537 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-12 13-25-24.png Type: image/png Size: 55337 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-12 13-22-28.png Type: image/png Size: 64555 bytes Desc: not available URL: From hasanmerkit at outlook.com Wed May 12 13:57:02 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Wed, 12 May 2021 11:57:02 +0000 Subject: [Gambas-user] Calling Function for Array List Forms Message-ID: I want to changing a Form variable to Form Array (Form[]) Private FormForThemeTimer As Form[] Public Sub Do(FormName As Form) If Not FormName = Null Then FormForThemeTimer.Add(FormName) Endif If Theme_DarkMode Then Forms_PaintDark(FormForThemeTimer) Else Forms_PaintDefault(FormForThemeTimer) End If End I want my app do this for example: FormForThemeTimer = [form1,form2,form3] If Theme_DarkMode Then Forms_PaintDark(form1) Forms_PaintDark(form2) Forms_PaintDark(form3) Else Forms_PaintDefault(form1) Forms_PaintDefault(form2) Forms_PaintDefault(form3) End If How? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 12 14:05:50 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 12 May 2021 14:05:50 +0200 Subject: [Gambas-user] Problem with the "Project / Translate" form (with screenshots) In-Reply-To: References: Message-ID: <8234e152-862e-4dc6-6c43-cffd66a7d6bc@gmail.com> Le 12/05/2021 ? 13:41, CD a ?crit?: > Hello, > > in an application for which I create language files, > I notice that if the name of the languages chosen(in the left column) is > alphabetically greater than "Default", > ?I have the language in "Default" which is displayed (the one defined > in "Project / Properties / Options / Default language ", > in this case English (United Kingdom)). > On the other hand if I made translations in one of the languages whose > names precede "Default" > (for example Allemand, Bulgarian, Danish, ...)when I redisplay after > closing the Translation form, > the first language displayed instead of Allemand is the default language. > The form does display the Bulgarian and Danish translations, but the > Default language is blank! > Is this behavior normal, did I misunderstand the use of the form? > > > This picture before the "Allemand" translation : > > > > This picture after the "Allemand" translation : > > > > If i put the "de.mo" and "de.po" files of the .lang folder in another > folder everything is back to normal. > if I paste the 2 files again in the .lang folder, the left column is > blank again. > > Regards > Can you send me your project? -- Beno?t Minisini From g4mba5 at gmail.com Wed May 12 14:23:58 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 12 May 2021 14:23:58 +0200 Subject: [Gambas-user] GTK warnings In-Reply-To: References: Message-ID: <446f815e-3ce2-7490-b379-e3ac04052938@gmail.com> Le 12/05/2021 ? 11:02, Gianluigi a ?crit?: > Benoit, > I don't know if it can be useful, but when I launch Gambas with GTK+ 3 > libraries, the terminal gives me 3 equal warnings (last master on ubuntu): > ?webkit_settings_get_enable_plugins is deprecated and always returns > FALSE. Plugins are no longer supported. > > ?Regards > ?Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It should be fixed by commit https://gitlab.com/gambas/gambas/-/commit/61ff5b90910ee4bbe64e1c7ddb81e0d7d7f0c637. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed May 12 14:28:09 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 12 May 2021 14:28:09 +0200 Subject: [Gambas-user] Color rendering issue In-Reply-To: References: Message-ID: <4c37ef96-bf45-6594-3769-78d540374e83@gmail.com> Le 11/05/2021 ? 23:31, Curtis Hamilton a ?crit?: > The color rendering seems to be off.? Background colors are not being > rendered correctly.? See the attached screenshot. > > I'm on FreeBSD/Powerpc64, could this be an endian issue? > I would say yes. Please post your system information. And try to run the IDE with QT5 instead of GTK+3, or the contrary, to check if that changes something. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed May 12 14:30:21 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 12 May 2021 14:30:21 +0200 Subject: [Gambas-user] Color rendering issue In-Reply-To: <4c37ef96-bf45-6594-3769-78d540374e83@gmail.com> References: <4c37ef96-bf45-6594-3769-78d540374e83@gmail.com> Message-ID: <865b3885-5e18-4a5c-d1b4-4d650a4fc2a9@gmail.com> Le 12/05/2021 ? 14:28, Beno?t Minisini a ?crit?: > Le 11/05/2021 ? 23:31, Curtis Hamilton a ?crit?: >> The color rendering seems to be off.? Background colors are not being >> rendered correctly.? See the attached screenshot. >> >> I'm on FreeBSD/Powerpc64, could this be an endian issue? >> > > I would say yes. > > Please post your system information. > > And try to run the IDE with QT5 instead of GTK+3, or the contrary, to > check if that changes something. > > Regards, > I'm not sure while looking at the screenshot: there is no background color set on the 'FMain.Form' tab toolbar normally, so it may not come from Gambas... -- Beno?t Minisini From bagonergi at gmail.com Wed May 12 14:46:22 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 12 May 2021 14:46:22 +0200 Subject: [Gambas-user] GTK warnings In-Reply-To: <446f815e-3ce2-7490-b379-e3ac04052938@gmail.com> References: <446f815e-3ce2-7490-b379-e3ac04052938@gmail.com> Message-ID: Il giorno mer 12 mag 2021 alle ore 14:25 Beno?t Minisini ha scritto: > Le 12/05/2021 ? 11:02, Gianluigi a ?crit : > > Benoit, > > I don't know if it can be useful, but when I launch Gambas with GTK+ 3 > > libraries, the terminal gives me 3 equal warnings (last master on > ubuntu): > > webkit_settings_get_enable_plugins is deprecated and always returns > > FALSE. Plugins are no longer supported. > > > > Regards > > Gianluigi > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > It should be fixed by commit > > https://gitlab.com/gambas/gambas/-/commit/61ff5b90910ee4bbe64e1c7ddb81e0d7d7f0c637 > . > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi Benoit, no warning from the terminal Thanks so much Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 12 16:10:12 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 12 May 2021 16:10:12 +0200 Subject: [Gambas-user] Calling Function for Array List Forms In-Reply-To: References: Message-ID: Il giorno mer 12 mag 2021 alle ore 13:58 Hasan Merkit < hasanmerkit at outlook.com> ha scritto: > ... > > I want my app do this for example: > > FormForThemeTimer = [form1,form2,form3] > > If Theme_DarkMode Then > > Forms_PaintDark(form1) > > Forms_PaintDark(form2) > > Forms_PaintDark(form3) > > Else > > Forms_PaintDefault(form1) > > Forms_PaintDefault(form2) > > Forms_PaintDefault(form3) > > End If > > > > How? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > There is a source of inspiration which is the Gambas IDE, written in Gambas by Benoit Minisini himself. If I were interested in creating themes for my application, I would first go and see how Benoit did it Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Wed May 12 17:15:09 2021 From: claude.dessere at orange.fr (CD) Date: Wed, 12 May 2021 17:15:09 +0200 Subject: [Gambas-user] Problem with the "Project / Translate" form and project TestTranslate Message-ID: <8b5a623a79534104ef08c267fe0fbf806a71d83a.camel@orange.fr> here is the project TestTranslate. for the problem raised in recent days. more 3 other problem 1) the menu Copier/Cha?nes non traduites... Copier/Cha?nes traduites... Copier/Toutes les cha?nes... not working or in an erratic way 2) the menu Exporter/Cha?nes non traduites... Exporter/Cha?nes traduites... Exporter/Toutes les cha?nes... suggest as file name : TestTranslate-fr-0.0.1.po.po with the double extension .po.po 3)when the default language is displayed, and we change line in the grid, the first textbox keeps the text of the previous line you have to click in the textbox to refresh Cordially [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.4.0-73-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=23774 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1476,unix/:/tmp/.ICE- unix/1476 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1536 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestTranslate-0.0.1.tar.gz Type: application/x-compressed-tar Size: 13036 bytes Desc: not available URL: From hasanmerkit at outlook.com Wed May 12 18:12:32 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Wed, 12 May 2021 16:12:32 +0000 Subject: [Gambas-user] Calling Function for Array List Forms Message-ID: I do not understand what you mean. I just ask how i can call >> A Function << for all array items. If i do this: Dim ExampleArray As Form[] = [?form1?, ?form2?, ?form3?] I want works this: AnFunction(form1) AnFunction(form2) AnFunction(form3) This not works: AnFunction(ExampleArray[]) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed May 12 19:25:47 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 12 May 2021 20:25:47 +0300 Subject: [Gambas-user] Calling Function for Array List Forms In-Reply-To: References: Message-ID: > I do not understand what you mean. > > I just ask how i can call >> A Function << for all array items. > > > > If i do this: > > Dim ExampleArray As Form[] = [?form1?, ?form2?, ?form3?] > > > > I want works this: > > AnFunction(form1) > > AnFunction(form2) > > AnFunction(form3) > > > > This not works: > > AnFunction(ExampleArray[]) > If your function iterates the array then: AnFunction(ExampleArray) If not then you need to iterate them for every call: For ii = 0 To ExampleArray.Max AnFunction(ExampleArray[ii]) Next Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed May 12 20:12:09 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 12 May 2021 19:12:09 +0100 Subject: [Gambas-user] Calling Function for Array List Forms In-Reply-To: References: Message-ID: On Wed, 12 May 2021 at 17:13, Hasan Merkit wrote: > > > I do not understand what you mean. > > I just ask how i can call >> A Function << for all array items. > > > > If i do this: > > Dim ExampleArray As Form[] = [?form1?, ?form2?, ?form3?] > That is an array of strings not forms. Try this... Dim ExampleArray As Form[] = [Form1, Form2, Form3] > > I want works this: > > AnFunction(form1) > > AnFunction(form2) > > AnFunction(form3) > That way does not pass an array just a single form each time so.... Public Sub AnFunction(fForm as Form) > > > This not works: > > AnFunction(ExampleArray[]) > If array of forms ExampleArray is built like above then try this... AnFunction(ExampleArray) Public Sub AnFunction(fFormArray as Form[]) For Each fForm As Form In fFormArray DoFunctionOn(fForm) Next End BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed May 12 21:12:47 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 12 May 2021 20:12:47 +0100 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: Message-ID: On Mon, 10 May 2021 at 13:07, Hasan Merkit wrote: > Re:Re: Bruce > > > > I know the Gambas language is not the same as VB.Net. I just searched for > a long time and couldn't. > > > > When I couldn't do it, I wanted to get help from here and show an example. > > > > I'm sorry if I pissed you off about this. > Might I suggest you also join some forums Hasan? Check this page out... http://gambaswiki.org/wiki/doc/forum There are a few forums there of a few languages. I personally (this is just me it is not a rule) Tend to ask only more advanced questions here. Most people here have been here some time and you will get a little "RTFM!!" from some ;) (if you do not know RTFM means "read the f**ing manual!" and has been around since the AOL help team coined it) (That other Bruce has moaned at me too ;) , he means well and does have a good point to be fair) I think it is a shame these mailing lists merged, aparently there used to be more than one but now this is the only one. This gives us a mix of advanced gambas programmers including Benoit himself and some beginners looking for basic advice. But questions because you have not read the docs very well will have the seasoned users here moan because they have answered the same question many times. you may find the forums easier to search for info. I know the mailing list search can be a bit of a needle in a haystack. Just a thought. BruceS (a different one , still a bit of an old git though ;) ) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed May 12 21:30:15 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 12 May 2021 20:30:15 +0100 Subject: [Gambas-user] Calling Function for Array List Forms In-Reply-To: References: Message-ID: On Wed, 12 May 2021 at 12:58, Hasan Merkit wrote: > I want to changing a Form variable to Form Array (Form[]) > > > > > > > > > > Private FormForThemeTimer As Form[] > > Public Sub Do(FormName As Form) > > > > If Not FormName = Null Then > > FormForThemeTimer.Add(FormName) > > Endif > > > > If Theme_DarkMode Then > > Forms_PaintDark(FormForThemeTimer) > > Else > > Forms_PaintDefault(FormForThemeTimer) > > End If > > > > End > > > > > > > > I want my app do this for example: > > FormForThemeTimer = [form1,form2,form3] > > If Theme_DarkMode Then > > Forms_PaintDark(form1) > > Forms_PaintDark(form2) > > Forms_PaintDark(form3) > > Else > > Forms_PaintDefault(form1) > > Forms_PaintDefault(form2) > > Forms_PaintDefault(form3) > > End If > > > > How? > if FormForThemeTimer is a Form[] Array of [Form1, Form2, Form3] Then this... If Theme_DarkMode Then Forms_PaintDark(FormForThemeTimer) Else Forms_PaintDefault(FormForThemeTimer) Public Sub PaintDark(FormArray As Form[]) For Each hForm As Form In FormArray DoSomethingTo(hForm) Next End hope that helps. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 12 23:38:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 12 May 2021 23:38:31 +0200 Subject: [Gambas-user] Problem with the "Project / Translate" form and project TestTranslate In-Reply-To: <8b5a623a79534104ef08c267fe0fbf806a71d83a.camel@orange.fr> References: <8b5a623a79534104ef08c267fe0fbf806a71d83a.camel@orange.fr> Message-ID: <18362f87-3596-b289-e6d8-fd094588ae9b@gmail.com> Le 12/05/2021 ? 17:15, CD a ?crit?: > ?here is the project TestTranslate. > for the problem raised in recent days. > > more 3 other problem > > 1) the menu > Copier/Cha?nes non traduites... > Copier/Cha?nes traduites... > Copier/Toutes les cha?nes... > not working or in an erratic way > > > 2) the menu > Exporter/Cha?nes non traduites... > Exporter/Cha?nes traduites... > Exporter/Toutes les cha?nes... > suggest as file name : TestTranslate-fr-0.0.1.po.po > with the double extension .po.po > > 3)when the default language is displayed, > and we change line in the grid, > the first textbox keeps the text of the previous line > you have to click in the textbox to refresh > > Cordially > Is it better now with the latest development version commits? Note that I couldn't reproduce (3), as I didn't understand what you wrote. -- Beno?t Minisini From bsteers4 at gmail.com Thu May 13 02:18:01 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 13 May 2021 01:18:01 +0100 Subject: [Gambas-user] Calling Function for Array List Forms In-Reply-To: References: Message-ID: > > > if FormForThemeTimer is a Form[] Array of [Form1, Form2, Form3] > Then this... > > If Theme_DarkMode Then Forms_PaintDark(FormForThemeTimer) Else > Forms_PaintDefault(FormForThemeTimer) > > Public Sub PaintDark(FormArray As Form[]) > For Each hForm As Form In FormArray > DoSomethingTo(hForm) > Next > End > > hope that helps. > Oops , sorry of course that should be.. *Public Sub Forms_PaintDark(FormArray As Form[])* -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Thu May 13 06:57:58 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 13 May 2021 06:57:58 +0200 Subject: [Gambas-user] Composant introuvable gb.desktop.x11 Message-ID: Hello, I display the Project Properties window, Component tab: I'm looking for the gb.desktop.x11 component: I validate, this message is displayed: I validate the message, the message and the window closes. I re-display the Project Properties window, Component tab: le composant gb.desktop.x11 est coch?, lorsque je valide, m?me message : I display the Synaptic Package Manager and I look for the Gambas3 components and in particular I find gambas3-gb-desktop-x11: Is this normal? What should I do to use gb.desktop.x11? Cordially [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.4.0-73-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=43083 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1476,unix/:/tmp/.ICE- unix/1476 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1536 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-13 06-14-57.png Type: image/png Size: 134200 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-13 06-11-09.png Type: image/png Size: 13218 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-13 06-10-24.png Type: image/png Size: 131513 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-13 06-09-59.png Type: image/png Size: 127131 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-13 06-09-42.png Type: image/png Size: 135175 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-13 06-09-23.png Type: image/png Size: 129106 bytes Desc: not available URL: From g4mba5 at gmail.com Thu May 13 08:40:47 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 May 2021 08:40:47 +0200 Subject: [Gambas-user] Composant introuvable gb.desktop.x11 In-Reply-To: References: Message-ID: Le 13/05/2021 ? 06:57, CD a ?crit?: > Hello,I display the Project Properties window, Component tab: > > > > I'm looking for the gb.desktop.x11 component: > > > > I validate, this message is displayed: > > > > I validate the message, the message and the window closes. > > I re-display the Project Properties window, Component tab: > > > > > le composant gb.desktop.x11 est coch?, lorsque je valide, m?me message : > > > > > I display the Synaptic Package Manager and I look for the Gambas3 > components and in particular I find gambas3-gb-desktop-x11: > > > > Is this normal? > What should I do to use gb.desktop.x11? > > Cordially > What is the full name of the gb.desktop.x11 package on synaptic? -- Beno?t Minisini From kicking177 at gmail.com Thu May 13 09:11:33 2021 From: kicking177 at gmail.com (KKing) Date: Thu, 13 May 2021 08:11:33 +0100 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters Message-ID: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> > I personally (this is just me it is not a rule) Tend to ask only more > advanced questions here. Then it shouldn't be ??? user at lists.gambas-basic.org it should be AdvancedUsersOnlyWithLittlePatienceForAnythingNotOfInterestToOneSelf at lists.gambas-basic.org :-) From chrisml at deganius.de Thu May 13 10:45:53 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 13 May 2021 10:45:53 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: Am 13.05.21 um 09:11 schrieb KKing: >> I personally (this is just me it is not a rule) Tend to ask only more >> advanced questions here. > Then it shouldn't be > ??? user at lists.gambas-basic.org > it should be > AdvancedUsersOnlyWithLittlePatienceForAnythingNotOfInterestToOneSelf at lists.gambas-basic.org > > :-) Yepp. :-) There is also the option to ignore and let others answer. In germany there is a saying: "There are no stupid questions". Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From claude.dessere at orange.fr Thu May 13 10:49:13 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 13 May 2021 10:49:13 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 Message-ID: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> Hello, too many worries with gambas3. having read the last post concerning the update of gambas 3.16, I opt for the solution of uninstalling gambas 3 but it does not work: cd at ClevoCD:~$ sudo apt remove gambas3 Lecture des listes de paquets... Fait Construction de l'arbre des d?pendances Lecture des informations d'?tat... Fait Vous pouvez lancer ? apt --fix-broken install ? pour corriger ces probl?mes. Les paquets suivants contiennent des d?pendances non satisfaites : gambas3-dev : D?pend: gambas3-dev-tools mais ne sera pas install? gambas3-gb-args : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-chart : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-db : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-db-form : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-dbus : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-desktop : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-eval-highlight : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-form : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-form-dialog : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-form-editor : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-form-mdi : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-form-print : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-form-stock : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-form-terminal : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-logging : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-map : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-markdown : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-media-form : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-memcached : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-mysql : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-net-pop3 : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-net-smtp : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-report : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-report2 : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-scanner : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-settings : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-term : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-term-form : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-util : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-util-web : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-web : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-web-feed : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-web-form : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-web-gui : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-xml : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? gambas3-gb-xml-rpc : D?pend: gambas3-runtime (>= 3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) mais 3.14.3-2ubuntu3.1 devra ?tre install? E: D?pendances non satisfaites. Essayez ? apt --fix-broken install ? sans paquet (ou indiquez une solution). cd at ClevoCD:~$ sudo apt --fix-broken install Lecture des listes de paquets... Fait Construction de l'arbre des d?pendances Lecture des informations d'?tat... Fait Correction des d?pendances... Fait Les paquets suivants ont ?t? install?s automatiquement et ne sont plus n?cessaires : gambas3-dev gambas3-examples Veuillez utiliser ? sudo apt autoremove ? pour les supprimer. Les paquets suppl?mentaires suivants seront install?s : gambas3-dev-tools gambas3-ide gambas3-runtime gambas3-scripter Les paquets suivants seront ENLEV?S : gambas3-gb-jit gambas3-script Les NOUVEAUX paquets suivants seront install?s : gambas3-dev-tools gambas3-scripter Les paquets suivants seront mis ? jour : gambas3-ide gambas3-runtime 2 mis ? jour, 2 nouvellement install?s, 2 ? enlever et 0 non mis ? jour. 47 partiellement install?s ou enlev?s. Il est n?cessaire de prendre 0 o/2?966 ko dans les archives. Apr?s cette op?ration, 564 ko d'espace disque seront lib?r?s. Souhaitez-vous continuer ? [O/n] O (Lecture de la base de donn?es... 330029 fichiers et r?pertoires d?j? install?s.) Pr?paration du d?paquetage de .../gambas3- ide_3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1_all.deb ... D?paquetage de gambas3-ide (3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1) sur (3.14.3- 2ubuntu3.1) ... dpkg: erreur de traitement de l'archive /var/cache/apt/archives/gambas3- ide_3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1_all.deb (--unpack) : tentative de remplacement de ? /usr/share/gambas3/template/console/.directory ?, qui appartient aussi au paquet gambas3-runtime 3.14.3-2ubuntu3.1 dpkg-deb: erreur: coller subprocess was killed by signal (Relais bris? (pipe)) Des erreurs ont ?t? rencontr?es pendant l'ex?cution : /var/cache/apt/archives/gambas3- ide_3.16.0+git2021041914202.4564c5fa6+build14~ubuntu20.04.1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) cd at ClevoCD:~$ what to do ? regards From bagonergi at gmail.com Thu May 13 11:51:55 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 13 May 2021 11:51:55 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: Il giorno gio 13 mag 2021 alle ore 10:46 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 13.05.21 um 09:11 schrieb KKing: > > >> I personally (this is just me it is not a rule) Tend to ask only more > >> advanced questions here. > > Then it shouldn't be > > user at lists.gambas-basic.org > > it should be > > > AdvancedUsersOnlyWithLittlePatienceForAnythingNotOfInterestToOneSelf at lists.gambas-basic.org > > > > :-) > > Yepp. :-) > > There is also the option to ignore and let others answer. In germany > there is a saying: "There are no stupid questions". > > Alles Gute > > Christof Thalhofer > > Yes to all ?? double LOL Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 13 11:56:48 2021 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 13 May 2021 11:56:48 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: Il giorno gio 13 mag 2021 alle ore 11:51 Gianluigi ha scritto: > > > Il giorno gio 13 mag 2021 alle ore 10:46 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 13.05.21 um 09:11 schrieb KKing: >> >> >> I personally (this is just me it is not a rule) Tend to ask only more >> >> advanced questions here. >> > Then it shouldn't be >> > user at lists.gambas-basic.org >> > it should be >> > >> AdvancedUsersOnlyWithLittlePatienceForAnythingNotOfInterestToOneSelf at lists.gambas-basic.org >> > >> > :-) >> >> Yepp. :-) >> >> There is also the option to ignore and let others answer. In germany >> there is a saying: "There are no stupid questions". >> >> Alles Gute >> >> Christof Thalhofer >> >> > Yes to all ?? > > double LOL > I forgot There are stupid answers instead ... I have to improve in this area :-) > Regards > Gianluigi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Thu May 13 12:49:18 2021 From: admin at allunix.ru (Admin) Date: Thu, 13 May 2021 17:49:18 +0700 Subject: [Gambas-user] strange Message behavior In-Reply-To: <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> Message-ID: <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> 12.05.2021 2:34, Beno?t Minisini ?????: > Le 11/05/2021 ? 21:03, Beno?t Minisini a ?crit?: >> Le 11/05/2021 ? 20:36, Beno?t Minisini a ?crit?: >>>> >>>> OK, it seems that Pango >= 1.20 has a non backward-compatible >>>> change that breaks multi-line text drawing. >>>> >>>> More news about that soon... >>>> >>> >>> It's not just GTK+ developers that like to break all programs >>> using their libraries when releasing a new minor version. >>> >> >> This was not a backward-incompatible change, I was wrong. >> >> This was a backward-incompatible bug fix apparently. >> >> There was a bug in Pango that was ignore the first line of text is >> some cases, and I added a UTF-8 invisible character at the start of >> the Pango string to workaround the bug. >> >> It worked before, but now it makes Pango randomly ignore some lines >> when displaying text. >> >> The problem is guessing which version of Pango needs the workaround, >> and which one must not use it! >> >> Regards, >> > > OK, the bug should be fixed now in master. > Huge thank you, Benoit! I can't test the bugfix, because master version does not compile on FreeBSD (just like almost any version except for 3.14.2), but I can now sleep well, because you told me what the problem was. I'll easily workaround this bug by using a Form instead of Message(). All in all, Gambas changed my life. Dmitry. P.S. if you're interested, it does not compile due to: --------- Installing 'gb.form' component... Compiling 'gb.form.dialog' component... gbc3: error: Component not found: gb.gsl *** Error code 1 ----------- yet it was ./configured with --disable-gsl. But since it's not an officially supported platform, oh well. From tercoide at hotmail.com Thu May 13 13:51:27 2021 From: tercoide at hotmail.com (martin p cristia) Date: Thu, 13 May 2021 08:51:27 -0300 Subject: [Gambas-user] Why are Gambas crying In-Reply-To: References: Message-ID: Why? Did somebody passed away??? -- Saludos Ing. Martin P Cristia From sharon at 455.co.il Thu May 13 13:44:22 2021 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 13 May 2021 14:44:22 +0300 Subject: [Gambas-user] GAMBAS shed tears Message-ID: <20210513114143.M43333@455.co.il> Hello I turned on the gambas on my Fedora Suddenly I hear a sad tune And the gambas logo is shedding tears What it means From ub2 at gmx.ch Thu May 13 14:14:04 2021 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Thu, 13 May 2021 14:14:04 +0200 Subject: [Gambas-user] Why are Gambas crying, Easter Egg In-Reply-To: References: Message-ID: <42d1088c-449e-0e59-c88d-a1a56adc5fb9@gmx.ch> @Martin & Sharon: Nothing to worry about, details see here: https://lists.gambas-basic.org/pipermail/user/2020-August/069869.html Workarond if your IDE crashes: Take a day off, ... or change system time temporally. ub2 Am 13.05.21 um 13:51 schrieb martin p cristia: > Why? > > Did somebody passed away??? > -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 495 bytes Desc: OpenPGP digital signature URL: From tobs at taboege.de Thu May 13 14:16:34 2021 From: tobs at taboege.de (Tobias Boege) Date: Thu, 13 May 2021 14:16:34 +0200 Subject: [Gambas-user] GAMBAS shed tears In-Reply-To: <20210513114143.M43333@455.co.il> References: <20210513114143.M43333@455.co.il> Message-ID: <20210513121634.GI1603@highrise.localdomain> On Thu, 13 May 2021, Mayost Sharon wrote: > Hello > I turned on the gambas on my Fedora > Suddenly I hear a sad tune > And the gambas logo is shedding tears > > What it means > ... and ... On Thu, 13 May 2021, martin p cristia wrote: > Why? > > Did somebody passed away??? > It's an easter egg. Today is a national holiday in France (and in Germany, too, at least). Best, Tobias From karl.reinl at fen-net.de Thu May 13 14:04:41 2021 From: karl.reinl at fen-net.de (Karl Reinl) Date: Thu, 13 May 2021 14:04:41 +0200 Subject: [Gambas-user] Why are Gambas crying In-Reply-To: References: Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Am Donnerstag, den 13.05.2021, 08:51 -0300 schrieb martin p cristia: > Why? > > Did somebody passed away??? > Ascension Day Christi Himmelfahrt Ascension Ascensi?n Ascensione aone off well known gambas Easter Eggs - -- Amicalement Charlie -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEjowiKCHQ+TXcV68jJzngniJtB0MFAmCdFdoACgkQJzngniJt B0MsVwwAoKDnc07gEE5ZFr2S5N997xNO+A+Kh4ysff1aR3QyG3RwiR0fkgDuttDz MaBGuEhmdQx9qlHwUsPsd2+WWsK9ZGmyKVtiY7vOocyKHXOg2Vj5bI6GoDr0Q6wx IdCn/J35QGbGUH70bgOcHQZigTdfrya2i0a0+2qdb9DrKbgMrTxQjKykNrp2+9bX AJVUD1J3v1LoJvDzUMra/D+DQQ1yt6I++KtVmHBLhrptSSNID3SOYMTd0Am37sXW xf5eFQRmDTtoK/VLOikqgh/qAsTX6lQh5t+sfu1yx+bXp5Uocampk/VfcbbSdUt+ UpS6K8uU/zUaVrAAK8HZ3REyTgNivcQHQPYlVINBx5pNq/Q4iyusVW8ifHtNcYSU 1gfMyeVhVWbBxczy7QNS8kfdklhmdpCkCttgo5bzkHhsjkPs6RWaQQ6fOAidY+Ye tUgFnT70psOxKhs5F7y6esm89xIGb8rKetHkOI6slxuw6wQB/e3ncv3LM8oLILM+ gimimyE3 =enB/ -----END PGP SIGNATURE----- From bsteers4 at gmail.com Thu May 13 14:52:36 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 13 May 2021 13:52:36 +0100 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: On Thu, 13 May 2021 at 10:53, Gianluigi wrote: > > > Il giorno gio 13 mag 2021 alle ore 10:46 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 13.05.21 um 09:11 schrieb KKing: >> >> >> I personally (this is just me it is not a rule) Tend to ask only more >> >> advanced questions here. >> > Then it shouldn't be >> > user at lists.gambas-basic.org >> > it should be >> > >> AdvancedUsersOnlyWithLittlePatienceForAnythingNotOfInterestToOneSelf at lists.gambas-basic.org >> > >> > > Haha :) :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Thu May 13 14:56:31 2021 From: dovey.john at gmail.com (John Dovey) Date: Thu, 13 May 2021 07:56:31 -0500 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: There is an option within the list management software (Mailman) to add ?Topic areas? which people can choose from. Maybe they need to create an ?advanced? topic, and those who only want to see advanced topic questions can subscribe to it On Thu, May 13, 2021 at 7:53 AM Bruce Steers wrote: > > > On Thu, 13 May 2021 at 10:53, Gianluigi wrote: > >> >> >> Il giorno gio 13 mag 2021 alle ore 10:46 Christof Thalhofer < >> chrisml at deganius.de> ha scritto: >> >>> Am 13.05.21 um 09:11 schrieb KKing: >>> >>> >> I personally (this is just me it is not a rule) Tend to ask only more >>> >> advanced questions here. >>> > Then it shouldn't be >>> > user at lists.gambas-basic.org >>> > it should be >>> > >>> AdvancedUsersOnlyWithLittlePatienceForAnythingNotOfInterestToOneSelf at lists.gambas-basic.org >>> > >>> >> >> > Haha :) :) > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Thu May 13 15:04:34 2021 From: tercoide at hotmail.com (martin p cristia) Date: Thu, 13 May 2021 10:04:34 -0300 Subject: [Gambas-user] Crying In-Reply-To: References: Message-ID: Nice, I love them. El 5/13/21 a las 9:53 AM, user-request at lists.gambas-basic.org escribi?: > It's an easter egg. Today is a national holiday in France > (and in Germany, too, at least). -- Saludos Ing. Martin P Cristia From adamnt42 at gmail.com Thu May 13 16:26:46 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 13 May 2021 23:56:46 +0930 Subject: [Gambas-user] How to determine the order of magnitude of a Long variable Message-ID: <783c1ef8-cc12-3178-094b-dde82f66b2c8@gmail.com> I need to determine how many blocks (sectors, writeable chunks, whatever) are available on a USB "drive" (stick, sdd, whatever). I can get a reasonably accurate value Shell'ing the lsblk command. However the value could be anywhere between 0 and the total number of usable blocks on the device (i.e. the "formatted size"). In order to determine whether the data I am about to write to the device will fit I need to know the order of magnitude of these free blocks - kB, mB, gB, TB, etc etc. This is because the utilities that do the writing wont give the size of the data in formats other than the so-called "human-readable format" e.g 3.25G or 4GB or any number of other variants, which may by the way be based on 1024 or 1000 byte scales. (Grrr!) In that first case, that 3.25G could be any number of bytes between (3.0 gigabytes)+1 and (3.5 gigabytes)-1 but that might not fit onto the drive if it tries to write into the "last block on the device". My goal, in case you are wondering, is to keep the maximum number of daily backups as possible on the drive and the Gambas project will be run by a cron job (so there is np user interaction). To be safe I thought I'd take the biggest "about to write" size i.e the smalllest scale (I think) convert that to a "Required Blocks" value and compare it to the actual AvailableBlocks. This does not work for various mathematical reasons. So I need to do it the other way around i.e. is the number of AvailableBlocks absolutely larger than the needed blocks. I have searched the internet for something like this with poor results. So in desparation... does anyone have any idea how to get a reliable comparison? tia bruce From bsteers4 at gmail.com Thu May 13 16:31:15 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 13 May 2021 15:31:15 +0100 Subject: [Gambas-user] Why are Gambas crying In-Reply-To: References: Message-ID: On Thu, 13 May 2021 at 12:52, martin p cristia wrote: > Why? > > Did somebody passed away??? > > Jesus , but he got better :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasanmerkit at outlook.com Thu May 13 16:35:09 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Thu, 13 May 2021 14:35:09 +0000 Subject: [Gambas-user] Why are Gambas crying Message-ID: Yeah, Gambas3-IDE started crying. But, why? https://www.youtube.com/watch?v=dmJi5ZnVe_4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Thu May 13 17:06:51 2021 From: tobs at taboege.de (Tobias Boege) Date: Thu, 13 May 2021 17:06:51 +0200 Subject: [Gambas-user] How to determine the order of magnitude of a Long variable In-Reply-To: <783c1ef8-cc12-3178-094b-dde82f66b2c8@gmail.com> References: <783c1ef8-cc12-3178-094b-dde82f66b2c8@gmail.com> Message-ID: <20210513150651.GL1603@highrise.localdomain> On Thu, 13 May 2021, Bruce wrote: > I need to determine how many blocks (sectors, writeable chunks, whatever) > are available on a USB "drive" (stick, sdd, whatever). > > I can get a reasonably accurate value Shell'ing the lsblk command. However > the value could be anywhere between 0 and the total number of usable blocks > on the device (i.e. the "formatted size"). > > In order to determine whether the data I am about to write to the device > will fit I need to know the order of magnitude of these free blocks - kB, > mB, gB, TB, etc etc. > > This is because the utilities that do the writing wont give the size of the > data in formats other than the so-called "human-readable format" e.g 3.25G > or 4GB or any number of other variants, which may by the way be based on > 1024 or 1000 byte scales. (Grrr!) > > In that first case, that 3.25G could be any number of bytes between (3.0 > gigabytes)+1 and (3.5 gigabytes)-1 but that might not fit onto the drive if > it tries to write into the "last block on the device". > > My goal, in case you are wondering, is to keep the maximum number of daily > backups as possible on the drive and the Gambas project will be run by a > cron job (so there is np user interaction). > > To be safe I thought I'd take the biggest "about to write" size i.e the > smalllest scale (I think) convert that to a "Required Blocks" value and > compare it to the actual AvailableBlocks. This does not work for various > mathematical reasons. So I need to do it the other way around i.e. is the > number of AvailableBlocks absolutely larger than the needed blocks. > > I have searched the internet for something like this with poor results. So > in desparation... does anyone have any idea how to get a reliable > comparison? > I would first like to ask back if you can use `df` instead of the tools you mentioned. Depending on how your backups work, you have to mount the drive (or you don't) before starting the backup. If the filesystem is always mounted on /mnt/backup, you can use $ LC_ALL=C df --output=avail /mnt/backup Avail 1234567890 This number is in bytes and the path to the mountpoint for your drive will be available to your script anyway. Also, `man lsblk` tells me that the tool understands a --bytes switch to print bytes instead of the human-readable string with unclear units which you have trouble with. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at gmail.com Thu May 13 17:31:35 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 14 May 2021 01:01:35 +0930 Subject: [Gambas-user] How to determine the order of magnitude of a Long variable In-Reply-To: <20210513150651.GL1603@highrise.localdomain> References: <783c1ef8-cc12-3178-094b-dde82f66b2c8@gmail.com> <20210513150651.GL1603@highrise.localdomain> Message-ID: On 14/5/21 12:36 am, Tobias Boege wrote: > On Thu, 13 May 2021, Bruce wrote: >> I need to determine how many blocks (sectors, writeable chunks, whatever) >> are available on a USB "drive" (stick, sdd, whatever). >> >> I can get a reasonably accurate value Shell'ing the lsblk command. However >> the value could be anywhere between 0 and the total number of usable blocks >> on the device (i.e. the "formatted size"). >> >> In order to determine whether the data I am about to write to the device >> will fit I need to know the order of magnitude of these free blocks - kB, >> mB, gB, TB, etc etc. >> >> This is because the utilities that do the writing wont give the size of the >> data in formats other than the so-called "human-readable format" e.g 3.25G >> or 4GB or any number of other variants, which may by the way be based on >> 1024 or 1000 byte scales. (Grrr!) >> >> In that first case, that 3.25G could be any number of bytes between (3.0 >> gigabytes)+1 and (3.5 gigabytes)-1 but that might not fit onto the drive if >> it tries to write into the "last block on the device". >> >> My goal, in case you are wondering, is to keep the maximum number of daily >> backups as possible on the drive and the Gambas project will be run by a >> cron job (so there is np user interaction). >> >> To be safe I thought I'd take the biggest "about to write" size i.e the >> smalllest scale (I think) convert that to a "Required Blocks" value and >> compare it to the actual AvailableBlocks. This does not work for various >> mathematical reasons. So I need to do it the other way around i.e. is the >> number of AvailableBlocks absolutely larger than the needed blocks. >> >> I have searched the internet for something like this with poor results. So >> in desparation... does anyone have any idea how to get a reliable >> comparison? >> > > I would first like to ask back if you can use `df` instead of the tools > you mentioned. Depending on how your backups work, you have to mount the > drive (or you don't) before starting the backup. If the filesystem is > always mounted on /mnt/backup, you can use > > $ LC_ALL=C df --output=avail /mnt/backup > Avail > 1234567890 > > This number is in bytes and the path to the mountpoint for your drive > will be available to your script anyway. > > Also, `man lsblk` tells me that the tool understands a --bytes switch > to print bytes instead of the human-readable string with unclear units > which you have trouble with. > > Best, > Tobias > Hiya Tobi, The reason for using "lsblk" is that I can get the number of free blocks. AFAIK df only gives the free "size" which is slightly different to blocks. I need to work in blocks (I think) is because the whole nightly backup "series" creates a 6 databases and a bunch of other data (text files and images). I am trying to maximise the number of "cycles" on the backup disk, where a "cycle" is one of the daily "series". At the moment I am just guessing that I need about 15% free space on the backup drive before attempting the backup. But this is terribly inaccurate resulting on odd occasions of the backup series failing due to lack of space or the deletion of more than the required number of older cycles. Neither of which is optimal. I know I'm being finicky, but after 3 HDD failures I am trying to keep as much backup material as possible. (The backup USB drive is a 100GB Kingston) regards bruce From claude.dessere at orange.fr Thu May 13 17:48:48 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 13 May 2021 17:48:48 +0200 Subject: [Gambas-user] Composant introuvable gb.desktop.x11 In-Reply-To: References: Message-ID: <04827c6649aee473ee38f880dab034a3da8602d6.camel@orange.fr> Le jeudi 13 mai 2021 ? 08:40 +0200, Beno?t Minisini a ?crit : > Le 13/05/2021 ? 06:57, CD a ?crit : > > Hello,I display the Project Properties window, Component tab: > > > > > > I'm looking for the gb.desktop.x11 component: > > > > > > I validate, this message is displayed: > > > > > > I validate the message, the message and the window closes. > > I re-display the Project Properties window, Component tab: > > > > > > > > le composant gb.desktop.x11 est coch?, lorsque je valide, m?me message : > > > > > > > > I display the Synaptic Package Manager and I look for the Gambas3 components > > and in particular I find gambas3-gb-desktop-x11: > > > > > > Is this normal?What should I do to use gb.desktop.x11? > > Cordially > > What is the full name of the gb.desktop.x11 package on synaptic? after having reinstalled gambas3.16.90 the problem persists Component not found: gb.desktop.x11 regards fullname of gambas3-gb-desktop-x11 in synaptic : [System] Gambas=3.16.90 OperatingSystem=Linux Kernel=5.4.0-73-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=93229 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1476,unix/:/tmp/.ICE- unix/1476 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1536 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-13 17-45-22.png Type: image/png Size: 18234 bytes Desc: not available URL: From g4mba5 at gmail.com Thu May 13 18:53:40 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 May 2021 18:53:40 +0200 Subject: [Gambas-user] strange Message behavior In-Reply-To: <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> Message-ID: <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> Le 13/05/2021 ? 12:49, Admin a ?crit?: > > P.S. if you're interested, it does not compile due to: > --------- > > Installing 'gb.form' component... > Compiling 'gb.form.dialog' component... > gbc3: error: Component not found: gb.gsl > *** Error code 1 > ----------- > > yet it was ./configured with --disable-gsl. > > But since it's not an officially supported platform, oh well. > 'gb.form.dialog' project does not depend at all on 'gb.gsl'. "someone" has checked the component by mistake! -- Beno?t Minisini From jose.rodriguez at cenpalab.cu Thu May 13 18:54:57 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Thu, 13 May 2021 16:54:57 +0000 Subject: [Gambas-user] GAMBAS shed tears In-Reply-To: <20210513114143.M43333@455.co.il> References: <20210513114143.M43333@455.co.il> Message-ID: <3fc7db3badd42b02d7d35c060a7f9435@cenpalab.cu> May 13, 2021 7:54 AM, "Mayost Sharon" wrote: > Hello > I turned on the gambas on my Fedora > Suddenly I hear a sad tune > And the gambas logo is shedding tears > > What it means > Heh, had to go see it after I read this, that was cool...! Regards, Joe1962 From g4mba5 at gmail.com Thu May 13 19:35:59 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 May 2021 19:35:59 +0200 Subject: [Gambas-user] Why are Gambas crying In-Reply-To: References: Message-ID: Le 13/05/2021 ? 16:35, Hasan Merkit a ?crit?: > Yeah, Gambas3-IDE started crying. But, why? > > https://www.youtube.com/watch?v=dmJi5ZnVe_4 > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > There is a tradition in computer programming of making "easter eggs", i.e. hidden useless functions. But for catholics (and orthodox christians), easter is one of the two most important holy days (in two words). So I decided to add an easter egg on easter. Seems logical. It allowed me to test some features. (And it reminds me the things that are more important than Gambas). Then I added other easter eggs on other important holy days. It allowed me to test other features: sound with GStreamer, transparent drawing, animations... Of course, if you are not a catholic, you can be surprised by that! (if you are an orthodox, it will be the right holy days but on the wrong dates). Why it starts crying today? It is actually both crying and smiling, because the day of the Ascension was both a sad and a glorious day. And now that the IDE can run with Qt or GTK+, don't forget to tell if you have any crash with the music or the animations. Especially the sound, because with Gambas you can run GStreamer with anything (Qt, GTK+, SDL...), and it may not work well in some cases. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 13 20:02:05 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 May 2021 20:02:05 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> Message-ID: Le 13/05/2021 ? 10:49, CD a ?crit?: > Hello, too many worries with gambas3. > having read the last post concerning the update of gambas 3.16, > I opt for the solution of uninstalling gambas 3 but it does not work: > > cd at ClevoCD:~$ sudo apt remove gambas3 This does not remove all "gambas3", but only the "gambas3" package, which is just a meta-package depending (normally) on all other gambas3 packages. Can you do that? 1) Go to synaptic, check ALL installed gambas3 packages for removing, and remove them. 2) Then install Gambas 3.16.0 from the Gambas stable PPA by installing the "gambas3" package (which should install everything). Do not use the daily PPA, because I'd like first to fix the stable PPA and then forward the fix to the daily PPA. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Thu May 13 21:45:11 2021 From: mbelmonte at belmotek.net (Martin) Date: Thu, 13 May 2021 21:45:11 +0200 Subject: [Gambas-user] JSON Encode + Formatter Message-ID: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> Hi. As you know JSON.Encode() or JSON.ToString() methods encode the JSONcollection to storage it in a simple text file, but for humans read o search some text there is noy easy, so is planed add some formatter to the existing methods? Some one have made some code in gambas to do that? Tanks. Mart?n. From nisse at ngn.nu Thu May 13 22:18:50 2021 From: nisse at ngn.nu (Nisse Nordlundh) Date: Thu, 13 May 2021 22:18:50 +0200 Subject: [Gambas-user] Copy and Paste from the 'outside' in to gambas3 editor Message-ID: <046ba2ef-39bc-fe78-00c9-f14e478c5774@ngn.nu> Hello, (sorry if this is a common topic) I probably did away with myself ... but... I have Ubuntu 20.04.2 LTS and: GAMBAS3 3.16.0 In big, no problem with that. It works and I can program. But - then I discovered one thing. When I see that I can reuse larger codings and only replace characters or strings, I usually copy the current section. Paste it in e.g. gedit (or pluma). and run search & replace there. When it is ready, I select and copy and paste it in the place I want it in gambas3 editor. Now it turned out that then the gambas hung up - cross stop. After a little research, I found out that if I write, in gedit ??????. Selects & copies it and then pastes it into gambas3 editor and the result is: ?????? If I press [Ctrl] + [Shift] + [V], a window will appear with different pasting options. If I choose here: 'Simple text' and any of the 5 choices I get: ?????? If I instead, select: 'Unknown format / application / x-gtk-text-buffer-rich-text' And select: 'Paste normally': The following will be pasted: GTKTEXTBUFFERCONTENTS-0001 ? ? ?????? OK I then get '??????' but why the rest? And if I choose another option, all (unknown) characters (except 0-1 and a-z, A-Z) will be replaced with their respective 'entities'; for example < with: & " With: " ' With: ' Copy & paste '??????' within gambas3 editor - no problem. But 'from the outside'? Is there an explanation? Have tried to investigate how it works with the so-called charset in gambas3 and in Ubuntu 20.04.2 Can't find anything strange in Ubuntu 20.04.2 How does it work in gambas3 (3.16.0)? Regards Nils-G Nordlundh / from Sweden From jussi.lahtinen at gmail.com Thu May 13 22:39:48 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 13 May 2021 23:39:48 +0300 Subject: [Gambas-user] Copy and Paste from the 'outside' in to gambas3 editor In-Reply-To: <046ba2ef-39bc-fe78-00c9-f14e478c5774@ngn.nu> References: <046ba2ef-39bc-fe78-00c9-f14e478c5774@ngn.nu> Message-ID: Weird, I cannot reproduce that in Linux Mint, but I don't have gedit. I tested it by copying from firefox and xed, no problems. Open the menu item "?" --> System Information, and copy&paste it here. Jussi On Thu, May 13, 2021 at 11:29 PM Nisse Nordlundh wrote: > Hello, > > (sorry if this is a common topic) > > I probably did away with myself ... > > but... > > I have Ubuntu 20.04.2 LTS > and: GAMBAS3 3.16.0 > > In big, no problem with that. It works and I can program. > > But - then I discovered one thing. > > When I see that I can reuse larger codings and only replace characters > or strings, I usually copy the current section. > Paste it in e.g. gedit (or pluma). > and run search & replace there. > When it is ready, I select and copy and paste it in the place I want it > in gambas3 editor. > > Now it turned out that then the gambas hung up - cross stop. > > After a little research, I found out that if I write, in gedit ??????. > Selects & copies it and then pastes it into gambas3 editor and the > result is: > ?????? > > If I press [Ctrl] + [Shift] + [V], a window will appear with > different pasting options. If I choose here: 'Simple text' and > any of the 5 choices I get: ?????? > > If I instead, select: 'Unknown format / application / > x-gtk-text-buffer-rich-text' > And select: 'Paste normally': The following will be pasted: > GTKTEXTBUFFERCONTENTS-0001 > > > ?????? > > > OK I then get '??????' but why the rest? > > And if I choose another option, all (unknown) characters (except 0-1 and > a-z, A-Z) will be replaced with their respective 'entities'; > for example > < with: & > " With: " > ' With: ' > > Copy & paste '??????' within gambas3 editor - no problem. > But 'from the outside'? > > Is there an explanation? > > Have tried to investigate how it works with the so-called charset in > gambas3 and in Ubuntu 20.04.2 > Can't find anything strange in Ubuntu 20.04.2 > How does it work in gambas3 (3.16.0)? > > Regards > > Nils-G Nordlundh / from Sweden > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 13 23:16:31 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 May 2021 23:16:31 +0200 Subject: [Gambas-user] Copy and Paste from the 'outside' in to gambas3 editor In-Reply-To: References: <046ba2ef-39bc-fe78-00c9-f14e478c5774@ngn.nu> Message-ID: Le 13/05/2021 ? 22:39, Jussi Lahtinen a ?crit?: > Weird, I cannot reproduce that in Linux Mint, but I don't have gedit. I > tested it by copying from firefox and xed, no problems. > Open the menu item "?" --> System Information, and copy&paste it here. > > Jussi > I confirm the bug if you use the GTK+ IDE. Funny that with QT the IDE can understand something pasted from 'gedit', but not with GTK+. -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu May 13 23:25:38 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 14 May 2021 00:25:38 +0300 Subject: [Gambas-user] Copy and Paste from the 'outside' in to gambas3 editor In-Reply-To: References: <046ba2ef-39bc-fe78-00c9-f14e478c5774@ngn.nu> Message-ID: > > I confirm the bug if you use the GTK+ IDE. Funny that with QT the IDE > can understand something pasted from 'gedit', but not with GTK+. > For some reason I did suspect gtk... Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 14 01:21:17 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 14 May 2021 01:21:17 +0200 Subject: [Gambas-user] Copy and Paste from the 'outside' in to gambas3 editor In-Reply-To: References: <046ba2ef-39bc-fe78-00c9-f14e478c5774@ngn.nu> Message-ID: Le 13/05/2021 ? 23:25, Jussi Lahtinen a ?crit?: > I confirm the bug if you use the GTK+ IDE. Funny that with QT the IDE > can understand something pasted from 'gedit', but not with GTK+. > > > For some reason I did suspect gtk... > > Jussi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It should be fixed in master now. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Fri May 14 02:00:42 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 14 May 2021 02:00:42 +0200 Subject: [Gambas-user] Software Farm Fails? In-Reply-To: <5fbd2e9a-553c-974e-eb97-57c65fef51c7@gmail.com> References: <5fbd2e9a-553c-974e-eb97-57c65fef51c7@gmail.com> Message-ID: <2249713a-585e-2e97-270e-d2991c91b432@belmotek.net> Ok, I found the problem. I use a .svg file as app logo that not like to gambas.farm. Regards. Mart?n. El 1/5/21 a las 2:22, Beno?t Minisini escribi?: > Is it better now? From t.lee.davidson at gmail.com Fri May 14 04:38:23 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 13 May 2021 22:38:23 -0400 Subject: [Gambas-user] JSON Encode + Formatter In-Reply-To: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> References: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> Message-ID: <98dbdf65-c5a9-4c8e-c5de-dbb5c54887f7@gmail.com> On 5/13/21 3:45 PM, Martin wrote: > Hi. > > As you know JSON.Encode() or JSON.ToString() methods encode the JSONcollection to storage it in a simple text file, but for > humans read o search some text there is noy easy, so is planed add some formatter to the existing methods? > > Some one have made some code in gambas to do that? > > Tanks. > > Mart?n. I don't know if a 'prettify' method is planned for the JSON utility, but for the time being you could shell out to the `jq` or `jshon` command-line tools. -- Lee From claude.dessere at orange.fr Fri May 14 06:51:54 2021 From: claude.dessere at orange.fr (CD) Date: Fri, 14 May 2021 06:51:54 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> Message-ID: <76d5ca8dba0f62c8b2699b64996c040c563ca00d.camel@orange.fr> Le jeudi 13 mai 2021 ? 20:02 +0200, Beno?t Minisini a ?crit : > Le 13/05/2021 ? 10:49, CD a ?crit : ##CITATION_START##> > Hello, too many worries with gambas3. > > having read the last post concerning the update of gambas 3.16, > > I opt for the solution of uninstalling gambas 3 but it does not work: > > > > cd at ClevoCD:~$ sudo apt remove gambas3 ##CITATION_END##> > This does not remove all "gambas3", but only the "gambas3" package, > which is just a meta-package depending (normally) on all other gambas3 > packages. > > Can you do that? > > 1) Go to synaptic, check ALL installed gambas3 packages for removing, > and remove them. > > 2) Then install Gambas 3.16.0 from the Gambas stable PPA by installing > the "gambas3" package (which should install everything). > > Do not use the daily PPA, because I'd like first to fix the stable PPA > and then forward the fix to the daily PPA. > > Regards, Ok it's done. the problem persists. Composant introuvable gb.desktop.x11 Component not found gb.desktop.x11 Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-14 06-50-35.png Type: image/png Size: 21438 bytes Desc: not available URL: From chrisml at deganius.de Fri May 14 08:12:15 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 14 May 2021 08:12:15 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: Am 13.05.21 um 14:56 schrieb John Dovey: > There is an option within the list management software (Mailman) to add > ?Topic areas? which people can choose?from. Maybe they need to create an > ?advanced? topic, and those who only want to see advanced topic > questions can subscribe to it Thank you for this idea which was new to me. https://www.gnu.org/software/mailman/mailman-member/node29.html I guess we won't stay with mailman forever (AFAIK this is a mailman-only feature) and we should also consider: Do we really need this? Knowing me, i would probably always forget to set the topic "advanced" and besides, "advanced" is a fuzzy distinction. For me, "advanced" is always everything i don't know yet, and as soon as i know it, it's "banal". ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Fri May 14 08:17:39 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 14 May 2021 15:47:39 +0930 Subject: [Gambas-user] [Beginner] Re: How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: Ignore this - just trying it out. From admin at allunix.ru Fri May 14 08:20:48 2021 From: admin at allunix.ru (Admin) Date: Fri, 14 May 2021 13:20:48 +0700 Subject: [Gambas-user] strange Message behavior In-Reply-To: <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> Message-ID: <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> 13.05.2021 23:53, Beno?t Minisini ?????: > Le 13/05/2021 ? 12:49, Admin a ?crit?: >> >> P.S. if you're interested, it does not compile due to: >> --------- >> >> Installing 'gb.form' component... >> Compiling 'gb.form.dialog' component... >> gbc3: error: Component not found: gb.gsl >> *** Error code 1 >> ----------- >> >> yet it was ./configured with --disable-gsl. >> >> But since it's not an officially supported platform, oh well. >> > > 'gb.form.dialog' project does not depend at all on 'gb.gsl'. "someone" > has checked the component by mistake! > ))) Nice! This problem is solved. Here is another one: ------------------- OK Installing gbs3... Installing IDE application icon... Installing IDE application menu... rmdir: illegal option -- - usage: rmdir [-pv] directory ... *** Error code 1 Stop. make[3]: stopped in /root/gambas/app *** Error code 1 ------------------- But of course removing rmdirs from /app/Makefile fixes it. Dmitry. From chrisml at deganius.de Fri May 14 08:25:21 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 14 May 2021 08:25:21 +0200 Subject: [Gambas-user] [Beginner] Re: How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: <002a8f04-21e6-a58e-6527-c338c0bdc9ae@deganius.de> Am 14.05.21 um 08:17 schrieb Bruce: > Ignore this - just trying it out. How can we tell a beginner to use the topic 'beginner' before he posts? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From claude.dessere at orange.fr Fri May 14 08:30:12 2021 From: claude.dessere at orange.fr (CD) Date: Fri, 14 May 2021 08:30:12 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> Message-ID: <1a391d5290576e486490616d263744024eed15ba.camel@orange.fr> Le jeudi 13 mai 2021 ? 20:02 +0200, Beno?t Minisini a ?crit : > Le 13/05/2021 ? 10:49, CD a ?crit : > > Hello, too many worries with gambas3. > > having read the last post concerning the update of gambas 3.16, > > I opt for the solution of uninstalling gambas 3 but it does not work: > > > > cd at ClevoCD:~$ sudo apt remove gambas3 > > This does not remove all "gambas3", but only the "gambas3" package, > which is just a meta-package depending (normally) on all other gambas3 > packages. > > Can you do that? > > 1) Go to synaptic, check ALL installed gambas3 packages for removing, > and remove them. > > 2) Then install Gambas 3.16.0 from the Gambas stable PPA by installing > the "gambas3" package (which should install everything). > > Do not use the daily PPA, because I'd like first to fix the stable PPA > and then forward the fix to the daily PPA. > > Regards, Ok it's done. the problem persists. Composant introuvable gb.desktop.x11 Component not found gb.desktop.x11 Regards [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.4.0-73-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=131636 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1476,unix/:/tmp/.ICE- unix/1476 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1536 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Capture du 2021-05-14 06-50-35.png Type: image/png Size: 21438 bytes Desc: not available URL: From adamnt42 at gmail.com Fri May 14 08:34:47 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 14 May 2021 16:04:47 +0930 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> Message-ID: <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> On 14/5/21 3:42 pm, Christof Thalhofer wrote: > I guess we won't stay with mailman forever (AFAIK this is a mailman-only > feature) We mightn't have chocolate forever either but that doesn't mean we can't eat it now. :-) and we should also consider: Do we really need this? I suppose some people may find it useful. Knowing > me, i would probably always forget to set the topic "advanced" and > besides, "advanced" is a fuzzy distinction. For me, "advanced" is always > everything i don't know yet, and as soon as i know it, it's "banal". I tend to agree. But the problems I have are generally in the less used features of Gambas - tag [Obscure] or something I have forgotten - tag [Old Age]. I'd bet your [banal] folder is rather large :-) b From adamnt42 at gmail.com Fri May 14 09:10:34 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 14 May 2021 16:40:34 +0930 Subject: [Gambas-user] [Advanced][obscure][hopefully banal][probably stupid] Offline help on a local server Message-ID: I have been trying to find a way to have the Gambas offline help to reside in a shared folder on our little network so that everyone here can use it and not have to do there own downloads to ~/.local/share/gambas3/wiki The target directory (on the local server) is /srv/gbshare/wiki I have managed (somehow! DIIK how) to download it into that directory. BUT the IDE does not seem to cope with me setting a symbolic link in ~/.local/share/gambas3 to that directory. It crashes if I try to turn on offline help in the Gambas preferences dialog. Anyone got any clues (before I start taking a sledgehammer to our local version of the IDE) tia bruce From lordheavym at gmail.com Fri May 14 09:12:15 2021 From: lordheavym at gmail.com (Laurent Carlier) Date: Fri, 14 May 2021 09:12:15 +0200 Subject: [Gambas-user] JSON Encode + Formatter In-Reply-To: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> References: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> Message-ID: <2825382.tPfFUmX1C2@lordh-pc> Le jeudi 13 mai 2021, 21:45:11 CEST Martin a ?crit : > Hi. > > As you know JSON.Encode() or JSON.ToString() methods encode the > JSONcollection to storage it in a simple text file, but for humans read > o search some text there is noy easy, so is planed add some formatter to > the existing methods? > > Some one have made some code in gambas to do that? > > Tanks. > > Mart?n. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- https://gitlab.com/lordheavy/alpha/-/blob/master/.src/ConfigManager.class#L100 ++ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From adamnt42 at gmail.com Fri May 14 09:13:43 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 14 May 2021 16:43:43 +0930 Subject: [Gambas-user] [Advanced][obscure][hopefully banal][probably stupid] Offline help on a local server In-Reply-To: References: Message-ID: On 14/5/21 4:40 pm, Bruce wrote: > I have been trying to find a way to have the Gambas offline help to > reside in a shared folder on our little network so that everyone here > can use it and not have to do there own downloads to > ~/.local/share/gambas3/wiki > > The target directory (on the local server) is /srv/gbshare/wiki > > I have managed (somehow! DIIK how) to download it into that directory. > > BUT the IDE does not seem to cope with me setting a symbolic link in > ~/.local/share/gambas3 to that directory. It crashes if I try to turn on > offline help in the Gambas preferences dialog. > > Anyone got any clues (before I start taking a sledgehammer to our local > version of the IDE) > > tia > bruce ps All I get is a seg fault gambas3 Segmentation fault and that's all. b From chrisml at deganius.de Fri May 14 09:48:57 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 14 May 2021 09:48:57 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> Message-ID: Am 14.05.21 um 08:34 schrieb Bruce: > We mightn't have chocolate forever either but that doesn't mean we > can't eat it now. :-) :-) This is the help of Mailman: > topics_enabled (topics): Should the topic filter be enabled or > disabled? > > The topic filter categorizes each incoming email message according to > regular expression filters you specify below. If the message's > Subject: or Keywords: header contains a match against a topic filter, > the message is logically placed into a topic bucket. Each user can > then choose to only receive messages from the mailing list for a > particular topic bucket (or buckets). Any message not categorized in > a topic bucket registered with the user is not delivered to the > list. > > Note that this feature only works with regular delivery, not digest > delivery. > > The body of the message can also be optionally scanned for Subject: > and Keywords: headers, as specified by the topics_bodylines_limit > configuration variable. As I understand this, if set true, everyone has to give it's mail a topic to be sure that it will be read by the people which have chosen the same one. So if we introduce "Advanced" as topic and you have chosen that, my mail will only reach you if it contains "Advanced" as keyword. Do i understand that right? Then I am against that. Another thing is if we say that "[beginner]" can be set in a subject, so that you can filter it out by yourself to ignore it if you'd like to. We could write it into the Netiquette. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Fri May 14 10:09:47 2021 From: adamnt42 at gmail.com (Bruce) Date: Fri, 14 May 2021 17:39:47 +0930 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> Message-ID: <5df9a285-1195-3760-d6fe-7751c42ce936@gmail.com> On 14/5/21 5:18 pm, Christof Thalhofer wrote: > Am 14.05.21 um 08:34 schrieb Bruce: > >> We mightn't have chocolate forever either but that doesn't mean we >> can't eat it now. :-) > > :-) > > This is the help of Mailman: > >> topics_enabled (topics): Should the topic filter be enabled or >> disabled? >> >> The topic filter categorizes each incoming email message according to >> regular expression filters you specify below. If the message's >> Subject: or Keywords: header contains a match against a topic filter, >> the message is logically placed into a topic bucket. Each user can >> then choose to only receive messages from the mailing list for a >> particular topic bucket (or buckets). Any message not categorized in >> a topic bucket registered with the user is not delivered to the >> list. >> >> Note that this feature only works with regular delivery, not digest >> delivery. >> >> The body of the message can also be optionally scanned for Subject: >> and Keywords: headers, as specified by the topics_bodylines_limit >> configuration variable. > > As I understand this, if set true, everyone has to give it's mail a > topic to be sure that it will be read by the people which have chosen > the same one. So if we introduce "Advanced" as topic and you have chosen > that, my mail will only reach you if it contains "Advanced" as keyword. > > Do i understand that right? Then I am against that. > > Another thing is if we say that "[beginner]" can be set in a subject, so > that you can filter it out by yourself to ignore it if you'd like to. We > could write it into the Netiquette. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > That is a very good point! That help is quite unclear even to a native English speaker. I did set it on our local mailman but it appears that everyone else here at Paddys-Hillhas taken Friday off! Of course I get the reflection(?) of my own post but did the others get it? I can't tell. I will continue to test locally and let you know, but I think this might be a non-starter. cheers b From chrisml at deganius.de Fri May 14 10:54:18 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 14 May 2021 10:54:18 +0200 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: <5df9a285-1195-3760-d6fe-7751c42ce936@gmail.com> References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> <5df9a285-1195-3760-d6fe-7751c42ce936@gmail.com> Message-ID: <91ef5d59-206e-1174-c411-140cb183cce4@deganius.de> Am 14.05.21 um 10:09 schrieb Bruce: > I will continue to test locally and let you know, but I think this might > be a non-starter. Btw we should rewrite Mailman 2 in Gambas* because Mailman 2 relies on Python < 3 and Mailman 3 is a pity (much too overengineered). We could do a favour to a lot of mailinglists and also to Gambas because a lot of people around the world would install it on their servers then (when Python 2.7 comes to the end). Alles Gute Christof Thalhofer * If we have enough time and energy. -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Fri May 14 10:55:29 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 14 May 2021 09:55:29 +0100 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> Message-ID: On Fri, 14 May 2021 at 07:35, Bruce wrote: > On 14/5/21 3:42 pm, Christof Thalhofer wrote: > > I guess we won't stay with mailman forever (AFAIK this is a mailman-only > > feature) > > We mightn't have chocolate forever either but that doesn't mean we can't > eat it now. :-) > > and we should also consider: Do we really need this? > > I suppose some people may find it useful. I think a beginners list "no such thing as a silly question" is the answer. Topic setting will be to complicated or unknown for some Or and advanced list for people who don't want to answer/see newb questions Or just don't give a crap Bruce. My whole "only ask advanced questions here" ethos has developed from you having a go at me for not searching the list archives. This thread has swung this way because you had a go at the poster of this mail. Perhaps an introduction message could help. Or a bit of info on the emailing list sign up page to warn people that this is not just a beginners list but also has advanced users and is the list for gambas development itself. That "silly" questions because you have not read the docs very well or searched through mail archives may return an annoyed answer for those who have answered the same question too many times. To be clear, I do not care. I just joined this thread to help get a resolve here. I personally do not mind helping the newbs. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri May 14 11:01:46 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 14 May 2021 10:01:46 +0100 Subject: [Gambas-user] strange Message behavior In-Reply-To: <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> Message-ID: On Fri, 14 May 2021 at 07:21, Admin wrote: > 13.05.2021 23:53, Beno?t Minisini ?????: > > Le 13/05/2021 ? 12:49, Admin a ?crit : > >> > >> P.S. if you're interested, it does not compile due to: > >> --------- > >> > >> Installing 'gb.form' component... > >> Compiling 'gb.form.dialog' component... > >> gbc3: error: Component not found: gb.gsl > >> *** Error code 1 > >> ----------- > >> > >> yet it was ./configured with --disable-gsl. > >> > >> But since it's not an officially supported platform, oh well. > >> > > > > 'gb.form.dialog' project does not depend at all on 'gb.gsl'. "someone" > > has checked the component by mistake! > > > ))) Nice! This problem is solved. Here is another one: > > ------------------- > > OK > Installing gbs3... > Installing IDE application icon... > Installing IDE application menu... > rmdir: illegal option -- - > usage: rmdir [-pv] directory ... > *** Error code 1 > > Stop. > make[3]: stopped in /root/gambas/app > *** Error code 1 > > ------------------- > > > But of course removing rmdirs from /app/Makefile fixes it. > it's the --ignore-fail-on-non-empty arg with rmdir BSD rmdir does not support it. Do you know of a way to get the same effect as *rmdir --ignore-fail-on-non-empty *with BSD Dimitry? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 14 13:56:17 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 14 May 2021 13:56:17 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: <76d5ca8dba0f62c8b2699b64996c040c563ca00d.camel@orange.fr> References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> <76d5ca8dba0f62c8b2699b64996c040c563ca00d.camel@orange.fr> Message-ID: <40696e0b-ba5c-f215-fe8a-bb88699a8c40@gmail.com> Le 14/05/2021 ? 06:51, CD a ?crit?: >> Can you do that? >> >> 1) Go to synaptic, check ALL installed gambas3 packages for removing, >> and remove them. >> >> 2) Then install Gambas 3.16.0 from the Gambas stable PPA by installing >> the "gambas3" package (which should install everything). >> >> Do not use the daily PPA, because I'd like first to fix the stable PPA >> and then forward the fix to the daily PPA. >> >> Regards, > > > Ok it's done.the problem persists. > > Composant introuvable gb.desktop.x11 Component not found gb.desktop.x11 > What does "ls -la /usr/lib/gambas3/gb.desktop.*" return on your system? -- Beno?t Minisini From dovey.john at gmail.com Fri May 14 15:24:20 2021 From: dovey.john at gmail.com (John Dovey) Date: Fri, 14 May 2021 08:24:20 -0500 Subject: [Gambas-user] How to make Textbox only accept alphabetic and numbers characters In-Reply-To: References: <1d75ad92-85c9-50ff-e21b-c74aa0622b3f@gmail.com> <9863cc3b-62a1-2a0a-c4d4-c06ae6bfe52a@gmail.com> Message-ID: Actually, I was surprised by the content of this list when I joined. My expectation was that because it was called ?user? it would be restricted to more beginner type stuff. I honestly expected to discover that there was a ?-dev? list for developers of Gambas itself and/or components etc which would take a lot of the *much* more advanced stuff off this list. I?d subscribe to both of course, but would lurk pretty hard on the dev list. It?s a little intimidating for most people to ask a question like ?How to I get a bee form to open when I click on a link? in the same forum where people are talking about way more advanced stuff. I see it as a natural progression. Noobs become experts after tome (those who stick with it anyway) and being able to ask noob type questions is an important part of that process. The documentation is really really difficult sometimes to get your head around, where little code snippets with an explanation make things a lot easier. Where I first encountered this was the gb.settings. Having the little piece of example code that showed saving and loading window position made it crystal clear to me. At first I couldn?t figure it out. My mistake was trying to find the ?group? key and the sample code showed me it?s included when you call the class. Having that sort of thing answered on a ?user? list makes sense. Anyway, be that as it may, I?m only too grateful to have discovered Gambas and all the various resources which are available JD On Fri, May 14, 2021 at 3:56 AM Bruce Steers wrote: > > > On Fri, 14 May 2021 at 07:35, Bruce wrote: > >> On 14/5/21 3:42 pm, Christof Thalhofer wrote: >> > I guess we won't stay with mailman forever (AFAIK this is a mailman-only >> > feature) >> >> We mightn't have chocolate forever either but that doesn't mean we can't >> eat it now. :-) >> >> and we should also consider: Do we really need this? >> >> I suppose some people may find it useful. > > I think a beginners list "no such thing as a silly question" is the answer. > Topic setting will be to complicated or unknown for some > Or and advanced list for people who don't want to answer/see newb questions > > Or just don't give a crap Bruce. > My whole "only ask advanced questions here" ethos has developed from you > having a go at me for not searching the list archives. > This thread has swung this way because you had a go at the poster of this > mail. > > Perhaps an introduction message could help. Or a bit of info on the > emailing list sign up page to warn people that this is not just a beginners > list but also has advanced users and is the list for gambas development > itself. > That "silly" questions because you have not read the docs very well or > searched through mail archives may return an annoyed answer for those who > have answered the same question too many times. > > To be clear, I do not care. I just joined this thread to help get a > resolve here. I personally do not mind helping the newbs. > > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Fri May 14 15:36:56 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 14 May 2021 15:36:56 +0200 Subject: [Gambas-user] JSON Encode + Formatter In-Reply-To: <98dbdf65-c5a9-4c8e-c5de-dbb5c54887f7@gmail.com> References: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> <98dbdf65-c5a9-4c8e-c5de-dbb5c54887f7@gmail.com> Message-ID: <6710f06a-96dc-346b-703d-75b696f651bb@belmotek.net> ok, tanks. I will check it. Mart?n El 14/5/21 a las 4:38, T Lee Davidson escribi?: > I don't know if a 'prettify' method is planned for the JSON utility, > but for the time being you could shell out to the `jq` or `jshon` > command-line tools. From mbelmonte at belmotek.net Fri May 14 15:41:29 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 14 May 2021 15:41:29 +0200 Subject: [Gambas-user] JSON Encode + Formatter In-Reply-To: <2825382.tPfFUmX1C2@lordh-pc> References: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> <2825382.tPfFUmX1C2@lordh-pc> Message-ID: <817fdc27-16d4-a34f-affc-a9c1d9bd95d3@belmotek.net> I use to JSON files for config is fun :-). There is also a colleague from the Spanish forum who uses a class to manage the configuration of his program. Obviously using json is the optimal option to manage configurations and more.Thank you very much for sharing your code. Mart?n. El 14/5/21 a las 9:12, Laurent Carlier escribi?: > Le jeudi 13 mai 2021, 21:45:11 CEST Martin a ?crit : >> Hi. >> >> As you know JSON.Encode() or JSON.ToString() methods encode the >> JSONcollection to storage it in a simple text file, but for humans read >> o search some text there is noy easy, so is planed add some formatter to >> the existing methods? >> >> Some one have made some code in gambas to do that? >> >> Tanks. >> >> Mart?n. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > https://gitlab.com/lordheavy/alpha/-/blob/master/.src/ConfigManager.class#L100 > > ++ > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at gmail.com Fri May 14 16:04:21 2021 From: lordheavym at gmail.com (Laurent Carlier) Date: Fri, 14 May 2021 16:04:21 +0200 Subject: [Gambas-user] JSON Encode + Formatter In-Reply-To: <817fdc27-16d4-a34f-affc-a9c1d9bd95d3@belmotek.net> References: <1d4bc181-3ecf-9ee9-4e7b-04c096c26950@belmotek.net> <2825382.tPfFUmX1C2@lordh-pc> <817fdc27-16d4-a34f-affc-a9c1d9bd95d3@belmotek.net> Message-ID: <2632746.nv9YzbcfNT@lordh-pc> Le vendredi 14 mai 2021, 15:41:29 CEST Martin a ?crit : > I use to JSON files for config is fun :-). There is also a colleague > from the Spanish forum who uses a class to manage the configuration of > his program. Obviously using json is the optimal option to manage > configurations and more.Thank you very much for sharing your code. > > Mart?n. You're welcome ! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From mbelmonte at belmotek.net Fri May 14 16:07:13 2021 From: mbelmonte at belmotek.net (Martin) Date: Fri, 14 May 2021 16:07:13 +0200 Subject: [Gambas-user] New Version of Tradukisto Message-ID: After rewriting my beloved translation program called *Tradukisto* from scratch, I share it here in case someone finds it useful.It is used to translate the programs made with Gambas IDE into several languages at once, taking advantage of the translations that we already have in our program directory.The more translations and of higher quality they have in their directory, the probability of finding the phrases for a new Gambas program will increase.The program is on the farm, but I also upload it here. It is better to have the translate-shell tool installed but it is not a mandatory condition since the good thing about this program is that it takes advantage of the pre-existing translations on the disk reusing it. Please see the attachments especially the screenshoot2.png and README.md Source code in Gambas Farm: Tradukisto 0.2.5 Mart?n. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshoot1.png Type: image/png Size: 92397 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshoot2.png Type: image/png Size: 70231 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: README.md Type: text/markdown Size: 1391 bytes Desc: not available URL: From dovey.john at gmail.com Fri May 14 16:45:34 2021 From: dovey.john at gmail.com (John Dovey) Date: Fri, 14 May 2021 09:45:34 -0500 Subject: [Gambas-user] Curses Message-ID: HI, I was very happy to see the curses component in Gambas. I was a little disappointed to see though how little of the nCurses has been implemented. Are there any plans to expand this? All the best John -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Fri May 14 16:48:52 2021 From: dovey.john at gmail.com (John Dovey) Date: Fri, 14 May 2021 09:48:52 -0500 Subject: [Gambas-user] FidoNet Message-ID: I'm curious whether there would be any interest in creating a FidoNet echo for Gambas? I guess the best would be to gate between this list and Fido, but even without that it might be a good place for discussions. If anyone is interested, I'm running a BBS at elgato.synchronetbbs.org. You can visit it on the web at http://elgato.synchronetbbs.org:2000 or telnet to it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Fri May 14 17:05:48 2021 From: tobs at taboege.de (Tobias Boege) Date: Fri, 14 May 2021 17:05:48 +0200 Subject: [Gambas-user] Curses In-Reply-To: References: Message-ID: <20210514150548.GU1390308@T580.localdomain> On Fri, 14 May 2021, John Dovey wrote: > HI, > I was very happy to see the curses component in Gambas. > I was a little disappointed to see though how little of the nCurses has > been implemented. Are there any plans to expand this? > Not from my part (I'm the original author). Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From admin at allunix.ru Fri May 14 17:10:35 2021 From: admin at allunix.ru (Admin) Date: Fri, 14 May 2021 22:10:35 +0700 Subject: [Gambas-user] strange Message behavior In-Reply-To: References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> Message-ID: 14.05.2021 16:01, Bruce Steers ?????: > > > On Fri, 14 May 2021 at 07:21, Admin > wrote: > > 13.05.2021 23:53, Beno?t Minisini ?????: > > Le 13/05/2021 ? 12:49, Admin a ?crit?: > >> > >> P.S. if you're interested, it does not compile due to: > >> --------- > >> > >> Installing 'gb.form' component... > >> Compiling 'gb.form.dialog' component... > >> gbc3: error: Component not found: gb.gsl > >> *** Error code 1 > >> ----------- > >> > >> yet it was ./configured with --disable-gsl. > >> > >> But since it's not an officially supported platform, oh well. > >> > > > > 'gb.form.dialog' project does not depend at all on 'gb.gsl'. > "someone" > > has checked the component by mistake! > > > ))) Nice! This problem is solved. Here is another one: > > ------------------- > > OK > Installing gbs3... > Installing IDE application icon... > Installing IDE application menu... > rmdir: illegal option -- - > usage: rmdir [-pv] directory ... > *** Error code 1 > > Stop. > make[3]: stopped in /root/gambas/app > *** Error code 1 > > ------------------- > > > But of course removing rmdirs from /app/Makefile fixes it. > > > it's the --ignore-fail-on-non-empty arg with rmdir? BSD rmdir does not > support it. > > Do you know of a way to get the same effect as *rmdir > --ignore-fail-on-non-empty *with BSD Dimitry? > > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Well, FreeBSD's rmdir specifically presents itself as a tool to remove empty directories. In case we need to remove a non-empty directory, we use rm -rf. I don't really understand what Linux' rmdir does in this case and what for. Like, we supply it a list of dirs and it removes only those that are empty, not breaking if one is? Dmitry. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Fri May 14 17:23:43 2021 From: dovey.john at gmail.com (John Dovey) Date: Fri, 14 May 2021 10:23:43 -0500 Subject: [Gambas-user] NodeGUI Message-ID: Here is one of my first Gambas projects. I know I'm probably not doing things very efficiently, so be kind.. :-) Just in case anyone is interested in seeing it and contributing to it.. :-) https://github.com/JohnDovey/NodeGUI.git -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Fri May 14 17:23:56 2021 From: claude.dessere at orange.fr (CD) Date: Fri, 14 May 2021 17:23:56 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: <40696e0b-ba5c-f215-fe8a-bb88699a8c40@gmail.com> References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> <76d5ca8dba0f62c8b2699b64996c040c563ca00d.camel@orange.fr> <40696e0b-ba5c-f215-fe8a-bb88699a8c40@gmail.com> Message-ID: <0c47ff43cd38b147e936537aea24d416d24df221.camel@orange.fr> Le vendredi 14 mai 2021 ? 13:56 +0200, Beno?t Minisini a ?crit : > Le 14/05/2021 ? 06:51, CD a ?crit : ##CITATION_START####CITATION_START##> > > Can you do that? > > > > > > 1) Go to synaptic, check ALL installed gambas3 packages for removing, > > > and remove them. > > > > > > 2) Then install Gambas 3.16.0 from the Gambas stable PPA by installing > > > the "gambas3" package (which should install everything). > > > > > > Do not use the daily PPA, because I'd like first to fix the stable PPA > > > and then forward the fix to the daily PPA. > > > > > > Regards, ##CITATION_END##> > > > > > Ok it's done.the problem persists. > > > > Composant introuvable gb.desktop.x11 Component not found gb.desktop.x11 > > ##CITATION_END##> > What does "ls -la /usr/lib/gambas3/gb.desktop.*" return on your system? cd at ClevoCD:~$ ls -la /usr/lib/gambas3/gb.desktop.* -rw-r--r-- 1 root root 79 mai 3 22:45 /usr/lib/gambas3/gb.desktop.component -rwxr-xr-x 1 root root 331466 mai 3 22:45 /usr/lib/gambas3/gb.desktop.gambas -rw-r--r-- 1 root root 62 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.component -rwxr-xr-x 1 root root 21540 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.gambas lrwxrwxrwx 1 root root 23 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.so -> gb.desktop.x11.so.0.0.0 lrwxrwxrwx 1 root root 23 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.so.0 -> gb.desktop.x11.so.0.0.0 -rw-r--r-- 1 root root 79312 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.so.0.0.0 cd at ClevoCD:~$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Fri May 14 17:25:10 2021 From: dovey.john at gmail.com (John Dovey) Date: Fri, 14 May 2021 10:25:10 -0500 Subject: [Gambas-user] Curses In-Reply-To: <20210514150548.GU1390308@T580.localdomain> References: <20210514150548.GU1390308@T580.localdomain> Message-ID: Damn. That's disappointing. I was hoping for at least something like this: https://github.com/migueldeicaza/gui.cs On Fri, 14 May 2021 at 10:06, Tobias Boege wrote: > On Fri, 14 May 2021, John Dovey wrote: > > HI, > > I was very happy to see the curses component in Gambas. > > I was a little disappointed to see though how little of the nCurses has > > been implemented. Are there any plans to expand this? > > > > Not from my part (I'm the original author). > > Best, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johna at starflightinc.com Fri May 14 17:59:19 2021 From: johna at starflightinc.com (John Anderson) Date: Fri, 14 May 2021 08:59:19 -0700 Subject: [Gambas-user] FidoNet In-Reply-To: References: Message-ID: <0adec853-6a67-b6f7-2694-9735e98e6b6f@starflightinc.com> An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 14 18:45:30 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 14 May 2021 18:45:30 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: <0c47ff43cd38b147e936537aea24d416d24df221.camel@orange.fr> References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> <76d5ca8dba0f62c8b2699b64996c040c563ca00d.camel@orange.fr> <40696e0b-ba5c-f215-fe8a-bb88699a8c40@gmail.com> <0c47ff43cd38b147e936537aea24d416d24df221.camel@orange.fr> Message-ID: Le 14/05/2021 ? 17:23, CD a ?crit?: > Le vendredi 14 mai 2021 ? 13:56 +0200, Beno?t Minisini a ?crit?: >> Le 14/05/2021 ? 06:51, CD a ?crit?: >>>> Can you do that? >>>> >>>> 1) Go to synaptic, check ALL installed gambas3 packages for removing, >>>> and remove them. >>>> >>>> 2) Then install Gambas 3.16.0 from the Gambas stable PPA by installing >>>> the "gambas3" package (which should install everything). >>>> >>>> Do not use the daily PPA, because I'd like first to fix the stable PPA >>>> and then forward the fix to the daily PPA. >>>> >>>> Regards, >>> >>> >>> Ok it's done.the problem persists. >>> >>> Composant introuvable gb.desktop.x11 Component not found gb.desktop.x11 >>> >> >> What does "ls -la /usr/lib/gambas3/gb.desktop.*" return on your system? > > > > cd at ClevoCD :~$ ls -la /usr/lib/gambas3/gb.desktop.* > > -rw-r--r-- 1 root root 79 mai 3 22:45 /usr/lib/gambas3/gb.desktop.component > > -rwxr-xr-x 1 root root 331466 mai 3 22:45 /usr/lib/gambas3/gb.desktop.gambas > > -rw-r--r-- 1 root root 62 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.component > > -rwxr-xr-x 1 root root 21540 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.gambas > > lrwxrwxrwx 1 root root 23 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.so -> gb.desktop.x11.so.0.0.0 > > lrwxrwxrwx 1 root root 23 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.so.0 -> gb.desktop.x11.so.0.0.0 > > -rw-r--r-- 1 root root 79312 mai 3 22:45 /usr/lib/gambas3/gb.desktop.x11.so.0.0.0 > > cd at ClevoCD :~$ > > OK, I found the problem. The stable PPA is being rebuild, and the daily PPA will be rebuild automatically tomorrow. Regards, -- Beno?t Minisini From Karl.Reinl at Fen-Net.de Fri May 14 20:08:11 2021 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Fri, 14 May 2021 20:08:11 +0200 Subject: [Gambas-user] NodeGUI In-Reply-To: References: Message-ID: <08b3bd49c11c2628ec5b3f506be484518426e606.camel@Fen-Net.de> Am Freitag, den 14.05.2021, 10:23 -0500 schrieb John Dovey: > Here is one of my first Gambas projects. I know I'm probably not > doing things very efficiently, so be kind.. :-) > Just in case anyone is interested in seeing it and > contributing to it.. :-) > https://github.com/JohnDovey/NodeGUI.git > > Salut John, Elt[y] = Replace$(Elt[y], "'", "''") ' Replace single quote with '' (two single) SPECIALLY for D'Bridge or have a look at Connection.Subst (gb.db) -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 691 bytes Desc: This is a digitally signed message part URL: From Karl.Reinl at Fen-Net.de Fri May 14 20:13:32 2021 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Fri, 14 May 2021 20:13:32 +0200 Subject: [Gambas-user] NodeGUI In-Reply-To: References: Message-ID: <2821a3895c8f78c6f7ef94494648fd5508637638.camel@Fen-Net.de> Am Freitag, den 14.05.2021, 10:23 -0500 schrieb John Dovey: > Here is one of my first Gambas projects. I know I'm probably not > doing things very efficiently, so be kind.. :-) > Just in case anyone is interested in seeing it and > contributing to it.. :-) > https://github.com/JohnDovey/NodeGUI.git > Salut John, Elt[y] = Replace$(Elt[y], "'", "''") ' Replace single quote with 2Single quotes for D'Bridge !!!!! :-) or have a look at Connection.Subst (gb.db) ExamplesPRINT DB.Subst("WHERE Name = &1 AND Date = &2", "Benoit", Now) WHERE Name = 'Benoit' AND Date = '2006-02-15 11:51:33.043' -- Amicalement Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 14 22:31:14 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 14 May 2021 22:31:14 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> <76d5ca8dba0f62c8b2699b64996c040c563ca00d.camel@orange.fr> <40696e0b-ba5c-f215-fe8a-bb88699a8c40@gmail.com> <0c47ff43cd38b147e936537aea24d416d24df221.camel@orange.fr> Message-ID: Le 14/05/2021 ? 18:45, Beno?t Minisini a ?crit?: > > OK, I found the problem. The stable PPA is being rebuild, and the daily > PPA will be rebuild automatically tomorrow. > > Regards, > Stable PPA has been regenerated. Tell me if updating now works. -- Beno?t Minisini From bsteers4 at gmail.com Sat May 15 00:19:18 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 14 May 2021 23:19:18 +0100 Subject: [Gambas-user] strange Message behavior In-Reply-To: References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> Message-ID: On Fri, 14 May 2021 at 16:11, Admin wrote: > 14.05.2021 16:01, Bruce Steers ?????: > > > > On Fri, 14 May 2021 at 07:21, Admin wrote: > >> 13.05.2021 23:53, Beno?t Minisini ?????: >> > Le 13/05/2021 ? 12:49, Admin a ?crit : >> >> >> >> P.S. if you're interested, it does not compile due to: >> >> --------- >> >> >> >> Installing 'gb.form' component... >> >> Compiling 'gb.form.dialog' component... >> >> gbc3: error: Component not found: gb.gsl >> >> *** Error code 1 >> >> ----------- >> >> >> >> yet it was ./configured with --disable-gsl. >> >> >> >> But since it's not an officially supported platform, oh well. >> >> >> > >> > 'gb.form.dialog' project does not depend at all on 'gb.gsl'. "someone" >> > has checked the component by mistake! >> > >> ))) Nice! This problem is solved. Here is another one: >> >> ------------------- >> >> OK >> Installing gbs3... >> Installing IDE application icon... >> Installing IDE application menu... >> rmdir: illegal option -- - >> usage: rmdir [-pv] directory ... >> *** Error code 1 >> >> Stop. >> make[3]: stopped in /root/gambas/app >> *** Error code 1 >> >> ------------------- >> >> >> But of course removing rmdirs from /app/Makefile fixes it. >> > > it's the --ignore-fail-on-non-empty arg with rmdir BSD rmdir does not > support it. > > Do you know of a way to get the same effect as *rmdir > --ignore-fail-on-non-empty *with BSD Dimitry? > > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Well, FreeBSD's rmdir specifically presents itself as a tool to remove > empty directories. In case we need to remove a non-empty directory, we use > rm -rf. > > I don't really understand what Linux' rmdir does in this case and what > for. Like, we supply it a list of dirs and it removes only those that are > empty, not breaking if one is? > > Dmitry. > Can you work with that Benoit? Sounds like BSD rmdir will work without the arg so if the makefile can detect it's installing to BSD it could omit it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Sat May 15 10:03:17 2021 From: claude.dessere at orange.fr (CD) Date: Sat, 15 May 2021 10:03:17 +0200 Subject: [Gambas-user] uninstall gambas to reinstall gambas 3.16 In-Reply-To: References: <94b8d61da5698105c4cb7b46385ad2c7709b89d9.camel@orange.fr> <76d5ca8dba0f62c8b2699b64996c040c563ca00d.camel@orange.fr> <40696e0b-ba5c-f215-fe8a-bb88699a8c40@gmail.com> <0c47ff43cd38b147e936537aea24d416d24df221.camel@orange.fr> Message-ID: <387c79b39231e09f38fa655f8b3a8c9cb09b2352.camel@orange.fr> Le vendredi 14 mai 2021 ? 22:31 +0200, Beno?t Minisini a ?crit : > Le 14/05/2021 ? 18:45, Beno?t Minisini a ?crit : > > OK, I found the problem. The stable PPA is being rebuild, and the daily PPA > > will be rebuild automatically tomorrow. > > Regards, > > Stable PPA has been regenerated. Tell me if updating now works. OKthe problem is solved.It's work fine thank you so much Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Sat May 15 13:43:17 2021 From: dovey.john at gmail.com (John Dovey) Date: Sat, 15 May 2021 06:43:17 -0500 Subject: [Gambas-user] NodeGUI In-Reply-To: <08b3bd49c11c2628ec5b3f506be484518426e606.camel@Fen-Net.de> References: <08b3bd49c11c2628ec5b3f506be484518426e606.camel@Fen-Net.de> Message-ID: On Fri, May 14, 2021 at 1:09 PM Charlie Reinl < > Salut John, > > Elt[y] = Replace$(Elt[y], "'", "''") ' Replace single quote with '' (two single) SPECIALLY for D'Bridge > > > Hi Charlie, Thank you for this, firstly for taking the time to look at the code and secondly for making the suggestion. I had actually done that, quoting out the single quote, then later figured it caused more problems than it solved. I decided replacing it with a substitution character made more sense. I?ve had this problem with SQLite before with other projects, especially with trying to store html in a data table, where even ?url encode?, htmlentities or htmlencode don?t cover all the use cases. Just as the nodelist is already using spaces replaced with underscores, I figured translating single quotes with a tilde symbol worked well. or have a look at Connection.Subst (gb.db) > > Thanks for this too. Good to know. All the best John -- > > Amicalement Charlie > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Sat May 15 13:45:29 2021 From: mbelmonte at belmotek.net (Martin) Date: Sat, 15 May 2021 13:45:29 +0200 Subject: [Gambas-user] Packagin app in Manjaro Message-ID: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> Hi, - a) I made an app in gambas IDE 3.16( I install it from the sources) as 3.15 minimal version. - b) Same but as 3.16 minimal version. - I package the app - Here is the trouble. As dependencies my app require some components (see attacments) ?What I'm doing wrong? ?How is the correct mode to made pakages for Arch or Manjaro? Other topic: Then, in the packaging form there are a button called "Cancelar", cancel in Spanish. but it really no cancel anyting the button close the window, then it could be called "Cerrar" , close in Spanish. is not really important but is not correct Spanish. I think the button must change the text to "Cerrar" (Close) when the pakages was done, what cancel the button ? Regards. Martin. -------------- next part -------------- A non-text attachment was scrubbed... Name: package-window.png Type: image/png Size: 13711 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3-15-dep.png Type: image/png Size: 56558 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3-16-dep.png Type: image/png Size: 46120 bytes Desc: not available URL: From dovey.john at gmail.com Sat May 15 15:55:35 2021 From: dovey.john at gmail.com (John Dovey) Date: Sat, 15 May 2021 08:55:35 -0500 Subject: [Gambas-user] X11 Display Message-ID: Probably a *noob* question, but when I start gambas3 from the command line on Ubuntu 20.04 WSL2, I get the following: $ gambas3 QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-boondock' libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast Any idea what this means? Is there something I need to configure or install? Thanks John -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Sat May 15 21:23:20 2021 From: mbelmonte at belmotek.net (Martin) Date: Sat, 15 May 2021 21:23:20 +0200 Subject: [Gambas-user] Pictures in dark themes are altered Message-ID: Hi, The images are altered when it is a dark theme. for example the icon logos are altered. This can be useful in case of monochrome images but in case of color images they look terrible. Is there any way to configure this behavior? Regards. Mart?n. From isafiur at gmail.com Sat May 15 21:44:29 2021 From: isafiur at gmail.com (Safiur Rahman) Date: Sun, 16 May 2021 01:29:29 +0545 Subject: [Gambas-user] Gambas in web assembly Message-ID: Hi Any plan to run gambas in the browser with web assembly? -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasanmerkit at outlook.com Sun May 16 01:27:59 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Sat, 15 May 2021 23:27:59 +0000 Subject: [Gambas-user] Shell Wait without Freeze Program Message-ID: How i can make waiting Shell without freezes program? When i use this: Shell ?bash /etc/teteosnet/temp/piluxupdate_beta1.sh? Wait Application executing this SH file, it?s fine but while executing, after few seconds OS warn user ?My Gambas3 App not responsing. [Wait] [Force Quit]? Just i want make my program wait to end of script, but not freeze. Example: Private Executing As Boolean = False Public Sub Form_Open() Executing = True Shell ?meow.sh? Wait Executing = False End Public Sub Form_Close() Stop Event If Executing Then Message(?Please wait?) Else Me.Close Endif End -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun May 16 01:52:25 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 15 May 2021 19:52:25 -0400 Subject: [Gambas-user] Shell Wait without Freeze Program In-Reply-To: References: Message-ID: <8a50ba54-61b8-e459-af7c-59d965540523@gmail.com> On 5/15/21 7:27 PM, Hasan Merkit wrote: > How i can make waiting Shell without freezes program? > > When i use this: > > Shell ?bash /etc/teteosnet/temp/piluxupdate_beta1.sh? Wait > > Application executing this SH file, it?s fine but while executing, after few seconds OS warn user ?My Gambas3 App not > responsing. [Wait] [Force Quit]? > > Just i want make my program wait to end of script, but not freeze. By using the command, ?bash /etc/teteosnet/temp/piluxupdate_beta1.sh?, you are invoking another shell. Is that necessary for the script? If your default shell is bash, then it is likely not necessary. What closes the sub-shell? You may need to do something like, ?bash '/etc/teteosnet/temp/piluxupdate_beta1.sh; exit'?. -- Lee From dosida at gmail.com Sun May 16 05:21:57 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Sat, 15 May 2021 21:21:57 -0600 Subject: [Gambas-user] Pictures in dark themes are altered In-Reply-To: References: Message-ID: Can you show us a couple of screenshots of the graphics rendered in a light and a dark theme? And if it would be possible also add the rest of the debug information just so that we know a bit more about your system? Regards, Dimitrios On Sat, May 15, 2021 at 1:23 PM Martin wrote: > Hi, > The images are altered when it is a dark theme. for example the icon > logos are altered. > This can be useful in case of monochrome images but in case of color > images they look terrible. > Is there any way to configure this behavior? > > Regards. > > Mart?n. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun May 16 08:42:28 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 16 May 2021 16:12:28 +0930 Subject: [Gambas-user] X11 Display In-Reply-To: References: Message-ID: On 15/5/21 11:25 pm, John Dovey wrote: > Probably a *noob* question, but when I start gambas3 from the command line > on Ubuntu 20.04 WSL2, I get the following: > > $ gambas3 > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to > '/tmp/runtime-boondock' > libGL error: No matching fbConfigs or visuals found > libGL error: failed to load driver: swrast > > Any idea what this means? Is there something I need to configure or install? > > Thanks > John > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You have two warnings there. The first one, "QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to'/tmp/runtime-boondock' is a standard QT warning about your environment. To check it further run (in a console) env | grep XDG You should get something like [bb at bluecow2 ~]$ env | grep XDG XDG_CONFIG_DIRS=/etc/xdg/mate:/etc/xdg/discovery:/etc/xdg XDG_DATA_HOME=/home/bb/.local/share XDG_CONFIG_HOME=/home/bb/.config XDG_CURRENT_DESKTOP=MATE XDG_CACHE_HOME=/home/bb/.cache XDG_SESSION_COOKIE=bluecow2.phnet-1620968993.207240-1735796825 XDG_RUNTIME_DIR=/var/run/user/500 XDG_DATA_DIRS=/usr/local/share:/usr/share:/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/share/gdm/:/home/bb/.local/share/flatpak/exports/share:: If you dont have XDG_RUNTIME_DIR set then there is something "amiss" in your login settings and we'll have to more digging. The second one, libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast is a bit harder to dig into. It has something to do with your system, either the X configuration, the actual library itself, your hardware or your hardware setup. Rather than guess here I'll just say that it probably won't affect your Gambas usage UNLESS you do some 3D stuff. Loose translations are: fbConfigs : There is no framebuffer configuration for something visuals : other things that libGL tries to find if not using a framebuffer video driver (GPU) swrast : some sort of raster based video library or kernel module or who knows. Neither of these warnings "should" affect yuor Gambas usage - hopefully. But I will add this final observation. If I use the Gambas Shell command to go from one program to another I frequently get the XDG_RUNTIME_DIR warning. Why, I have no idea! Does it affect anything, not thatI can see. From tobs at taboege.de Sun May 16 10:25:44 2021 From: tobs at taboege.de (Tobias Boege) Date: Sun, 16 May 2021 10:25:44 +0200 Subject: [Gambas-user] Shell Wait without Freeze Program In-Reply-To: References: Message-ID: <20210516082544.GP1603@highrise.localdomain> On Sat, 15 May 2021, Hasan Merkit wrote: > How i can make waiting Shell without freezes program? > > When i use this: > Shell ?bash /etc/teteosnet/temp/piluxupdate_beta1.sh? Wait > > Application executing this SH file, it?s fine but while executing, after few seconds OS warn user ?My Gambas3 App not responsing. [Wait] [Force Quit]? > > Just i want make my program wait to end of script, but not freeze. > Gambas is single-threaded and uses an event loop to handle the multiple sources of events in your program. When you use "Shell ... Wait", you tell Gambas to suspend the event loop and just wait for the command to finish. During this time, no mouse or keyboard events are processed and your desktop judges that the program is not responding. The thought here is that you apparently don't want other code in your program to run while your script is not finished and therefore the event loop, the main source of code being run asynchronously, must be disabled -- and you're asking for that to be done with "Wait". If you want to process keyboard and mouse events while the script process runs in the background, you want the event loop to be active. This means NOT using the "Wait" option. It also means that all sorts of event-driven code in your project can potentially be invoked while your script runs. You should be aware that these are the only two possibilities: either block all events and appear frozen (in this case, your script runs safely to completion before Gambas carries on) or continue to process events (concurrently with the running of the script) and take the necessary precautions in your code to handle the concurrency. > Example: > > Private Executing As Boolean = False > Public Sub Form_Open() > Executing = True > Shell ?meow.sh? Wait > Executing = False > End > > Public Sub Form_Close() > Stop Event > If Executing Then > Message(?Please wait?) > Else > Me.Close > Endif > End With the explanation above, you can now understand that the Executing variable in this example is useless. There is no part of your Gambas code which will ever see Executing as True. The Form_Close event cannot be triggered during "Shell ... Wait". Finally, here is a version which does not freeze, by not using "Wait", and therefore every Gambas event might also happen while the meow.sh script is running: Private $hMeow As Process Public Sub Form_Open() $hMeow = Shell "meow.sh" ' better: Exec ["meow.sh"] End Public Sub Form_Close() If $hMeow And $hMeow.State = Process.Running Then Stop Event Message("Please wait") Endif End If you need to react to meow.sh finishing or crashing or sending data, use the events of the Process class [1]. Here is a slightly longer example which uses Application.Busy to indicate that meow.sh is running and your program is busy waiting for it. The example also echos meow's standard output to the console: Private $hMeow As Process Public Sub Form_Open() $hMeow = Exec ["meow.sh"] As "Meow" Inc Application.Busy End Public Sub Meow_Kill() Dec Application.Busy End Public Sub Meow_Read() Print "meow.sh says:";; Last.ReadLine() End Public Sub Form_Close() If $hMeow And $hMeow.State = Process.Running Then Stop Event Message("Please wait") Endif End Please experiment with this and do ask back if it doesn't work. I wrote it off the top of my head without testing. It may be that the Form_Close logic is redundant as long as Application.Busy is positive. Best, Tobias [1] http://gambaswiki.org/wiki/comp/gb/process -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bsteers4 at gmail.com Sun May 16 10:39:54 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 16 May 2021 09:39:54 +0100 Subject: [Gambas-user] Shell Wait without Freeze Program In-Reply-To: References: Message-ID: You should not use bash for the command But if you must then try.. Shell ?bash /etc/teteosnet/temp/piluxupdate_beta1.sh; exit? Wait But better to use.. System.Shell = System.Find("bash") Shell ?/etc/teteosnet/temp/piluxupdate_beta1.sh? Wait On Sun, 16 May 2021 at 00:29, Hasan Merkit wrote: > How i can make waiting Shell without freezes program? > > > > When i use this: > > Shell ?bash /etc/teteosnet/temp/piluxupdate_beta1.sh? Wait > > > > Application executing this SH file, it?s fine but while executing, after > few seconds OS warn user ?My Gambas3 App not responsing. [Wait] [Force > Quit]? > > > > Just i want make my program wait to end of script, but not freeze. > > > > > > > > > > Example: > > > > Private Executing As Boolean = False > > Public Sub Form_Open() > > Executing = True > > Shell ?meow.sh? Wait > > Executing = False > > End > > > > Public Sub Form_Close() > > Stop Event > > If Executing Then > > Message(?Please wait?) > > Else > > Me.Close > > Endif > > End > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasanmerkit at outlook.com Sun May 16 12:37:34 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Sun, 16 May 2021 10:37:34 +0000 Subject: [Gambas-user] Shell Wait without Freeze Program Message-ID: I just want exectue a .SH file and get detected when this process is finished. When ?Application not responsing?? dialog appears user can terminate my progress. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun May 16 13:25:31 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 16 May 2021 12:25:31 +0100 Subject: [Gambas-user] Shell Wait without Freeze Program In-Reply-To: References: Message-ID: Then do not use bash. Did you understand what many people explained? Try this.. Open a terminal and type 'yourcommand.sh'. Then type 'exit' You will find the terminal closes. Now open a terminal and type 'bash yourcommand.sh' That starts another shell in the already open shell. Then type exit and you will find the terminal dies not close. It exits the second bash process and you will have to type exit again to close the terminal. Stop using bash to run the script and just use ./ Or put '; exit' after command. That will exit the second bash shell after command runs. Do you understand? The process you start with your command is a bash shell (not just the script) and 'exit' must be used to terminate it. It has been well explained. If you still do not understand then read the previous answers again. BruceS. On Sun, 16 May 2021, 11:38 Hasan Merkit, wrote: > I just want exectue a .SH file and get detected when this process is > finished. > > When ?Application not responsing?? dialog appears user can terminate my > progress. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Sun May 16 21:00:27 2021 From: gambas at cd-bahia.com (Dag JNJ) Date: Sun, 16 May 2021 21:00:27 +0200 Subject: [Gambas-user] Scrollbars In-Reply-To: <9678d6cb-2c0f-2079-b9d5-375f3839a7bd@gmail.com> References: <8d4ed662-31bb-446d-dda4-cf18c24589ee@gmail.com> <2a7ca648-fc4d-88cb-9fd4-b7b617cde4a0@cd-bahia.com> <9678d6cb-2c0f-2079-b9d5-375f3839a7bd@gmail.com> Message-ID: Am 11.05.21 um 16:06 schrieb Beno?t Minisini: > Le 10/05/2021 ? 11:34, Dag JNJ a ?crit?: >> >> Am 10.05.21 um 09:18 schrieb Beno?t Minisini: >>> Le 09/05/2021 ? 23:25, Dag JNJ a ?crit?: >>>> Hi, >>>> >>>> I have a problem since the latest update I did yesterday: I don't >>>> have ANY scrollbars any more, in none of the objects. I noticed >>>> first in Gridiew, then I tested with ScrollView. >>>> >>>> I use Mate 20.4.1 with Gambas 3.16.0 >>>> >>>> Can anyone help me out? >>>> >>>> Thanks in advance, >>>> >>>> Dag >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> . >>> >>> As usual : post a project that reproduces the bug and your system >>> information copied from the IDE corresponding menu. >>> >>> Regards, >>> ? Hi here a test project and sysinfo >> Dag >> >> > > Thanks. No problem here, so I think it's a problem with the mate > widget theme again. Can you try to choose a non-mate widget theme to > confirm? Hi, yes it was the Widget Ambient-MATE. Standard, so I ever thought of that. Scroolbars are back with TraditionalClk, Thank you Regards, Dag From clhamilto at gmail.com Sun May 16 21:15:10 2021 From: clhamilto at gmail.com (Curtis Hamilton) Date: Sun, 16 May 2021 15:15:10 -0400 Subject: [Gambas-user] Color rendering issue Message-ID: Le 12/05/2021 ? 14:28, Beno?t Minisini a ?crit?: > Le 11/05/2021 ? 23:31, Curtis Hamilton a ?crit?: >> The color rendering seems to be off.? Background colors are not being >> rendered correctly.? See the attached screenshot. >> >> I'm on FreeBSD/Powerpc64, could this be an endian issue? >> > > > I would say yes. > > Please post your system information. > > And try to run the IDE with QT5 instead of GTK+3, or the contrary, to > check if that changes something. > > Regards, > >I'm not sure while looking at the screenshot: there is no background >color set on the 'FMain.Form' tab toolbar normally, so it may not come >from Gambas... > >-- >Beno?t Minisini Running the IDE with QT5 and GTK+3, I get the same results. So I?m thinking this is a big endian issue. I re-installed version 3.15.2 and everything works in regards to the color issues. For now I?m going to stick with version 3.15.2. Any recommendations? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Sun May 16 21:17:57 2021 From: mbelmonte at belmotek.net (Martin) Date: Sun, 16 May 2021 21:17:57 +0200 Subject: [Gambas-user] Pictures in dark themes are altered In-Reply-To: References: Message-ID: <986beaed-90e3-c1d7-1850-581f91263895@belmotek.net> Yes, of course, see the attachments in this email please, for system info see below. [System] Gambas=3.15.2 OperatingSystem=Linux Kernel=5.10.34-1-MANJARO Architecture=x86_64 Distribution=Manjaro Linux Desktop=XFCE Theme=qt5ctproxy Language=es_ES.utf8 Memory=7865M [Libraries] Cairo=libcairo.so.2.11704.0 Curl=libcurl.so.4.7.0 DBus=libdbus-1.so.3.19.13 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2404.25 GStreamer=libgstreamer-1.0.so.0.1804.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2404.25 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.109.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.15.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=xfce DISPLAY=:0.0 EDITOR=/usr/bin/nano GB_GUI=gb.qt5 GDMSESSION=xfce GDM_LANG=es_ES.utf8 GTK2_RC_FILES=/.gtkrc-2.0 GTK3_MODULES=xapp-gtk3-module:xapp-gtk3-module GTK_MODULES=canberra-gtk-module:canberra-gtk-module HG=/usr/bin/hg HOME= LANG=es_ES.utf8 LC_ADDRESS=es_ES.UTF-8 LC_ALL=es_ES.utf8 LC_IDENTIFICATION=es_ES.UTF-8 LC_MEASUREMENT=es_ES.UTF-8 LC_MONETARY=es_ES.UTF-8 LC_NAME=es_ES.UTF-8 LC_NUMERIC=es_ES.UTF-8 LC_PAPER=es_ES.UTF-8 LC_TELEPHONE=es_ES.UTF-8 LC_TIME=es_ES.UTF-8 LOGNAME= MAIL=/var/spool/mail/ MOTD_SHOWN=pam MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins PANEL_GDK_CORE_DEVICE_EVENTS=0 PATH=/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/local/go/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin PWD= QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1234,unix/:/tmp/.ICE-unix/1234 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1286 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXER2Av4/agent.1285 TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=xfce XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 Regards Martin El 16/5/21 a las 5:21, Dimitris Anogiatis escribi?: > Can you show us a couple of screenshots of the graphics rendered in a > light and a dark theme? -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-16_21-08-39.png Type: image/png Size: 27817 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla_2021-05-16_21-10-31.png Type: image/png Size: 27852 bytes Desc: not available URL: From g4mba5 at gmail.com Sun May 16 21:21:32 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 16 May 2021 21:21:32 +0200 Subject: [Gambas-user] [Advanced][obscure][hopefully banal][probably stupid] Offline help on a local server In-Reply-To: References: Message-ID: <9d6aa92b-457b-44b1-3ad8-86b168d18d6f@gmail.com> Le 14/05/2021 ? 09:13, Bruce a ?crit?: > On 14/5/21 4:40 pm, Bruce wrote: >> I have been trying to find a way to have the Gambas offline help to >> reside in a shared folder on our little network so that everyone here >> can use it and not have to do there own downloads to >> ~/.local/share/gambas3/wiki >> >> The target directory (on the local server) is /srv/gbshare/wiki >> >> I have managed (somehow! DIIK how) to download it into that directory. >> >> BUT the IDE does not seem to cope with me setting a symbolic link in >> ~/.local/share/gambas3 to that directory. It crashes if I try to turn >> on offline help in the Gambas preferences dialog. >> >> Anyone got any clues (before I start taking a sledgehammer to our >> local version of the IDE) >> >> tia >> bruce > > ps All I get is a seg fault > > gambas3 > Segmentation fault > > and that's all. > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I replaced the "~/.local/share/gambas3/wiki" directory by a symbolic link, and everything seems to work as expected. Please give more details, and a stack backtrace of the crash if possible, as explained on the "Reporting a problem" page on the wiki. -- Beno?t Minisini From g4mba5 at gmail.com Sun May 16 21:24:24 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 16 May 2021 21:24:24 +0200 Subject: [Gambas-user] Pictures in dark themes are altered In-Reply-To: References: Message-ID: Le 15/05/2021 ? 21:23, Martin a ?crit?: > Hi, > The images are altered when it is a dark theme. for example the icon > logos are altered. > This can be useful in case of monochrome images but in case of color > images they look terrible. > Is there any way to configure this behavior? > > Regards. > > Mart?n. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- No, but: Picture[] adapts its result to dark themes. Picture.Load() does not adapt its result to dark themes. PictureBox now does not adapt its picture to dark themes, but was in the previous version. So you may have to save old forms again to force PictureBox not to adapt its picture. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sun May 16 22:52:54 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 16 May 2021 21:52:54 +0100 Subject: [Gambas-user] Pictures in dark themes are altered In-Reply-To: <986beaed-90e3-c1d7-1850-581f91263895@belmotek.net> References: <986beaed-90e3-c1d7-1850-581f91263895@belmotek.net> Message-ID: Looks like that is a transparency issue. The white inside the globe is the same as the outside transparency and not rendered as white (it's transparent) so it will show what the background colour is. Fixes would be... edit image and make the outside transparency colour a different colour. put image in something with a white background use a non-transparent image. But do you see the problem? it is a poor quality image for using any other background colour than white. a good quality image would use a unique colour for the outside transparency to anything used inside then all that is inside would be visible.. I can see the coulours on both images are correct in every other colour except the transparency colour (as it's not a colour it is transparent) Hope that makes sense BruceS On Sun, 16 May 2021 at 20:18, Martin wrote: > Yes, of course, see the attachments in this email please, for system > info see below. > > [System] > Gambas=3.15.2 > OperatingSystem=Linux > Kernel=5.10.34-1-MANJARO > Architecture=x86_64 > Distribution=Manjaro Linux > Desktop=XFCE > Theme=qt5ctproxy > Language=es_ES.utf8 > Memory=7865M > > [Libraries] > Cairo=libcairo.so.2.11704.0 > Curl=libcurl.so.4.7.0 > DBus=libdbus-1.so.3.19.13 > GDK2=libgdk-x11-2.0.so.0.2400.33 > GDK3=libgdk-3.so.0.2404.25 > GStreamer=libgstreamer-1.0.so.0.1804.0 > GTK+2=libgtk-x11-2.0.so.0.2400.33 > GTK+3=libgtk-3.so.0.2404.25 > OpenGL=libGL.so.1.7.0 > Poppler=libpoppler.so.109.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.15.2 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=xfce > DISPLAY=:0.0 > EDITOR=/usr/bin/nano > GB_GUI=gb.qt5 > GDMSESSION=xfce > GDM_LANG=es_ES.utf8 > GTK2_RC_FILES=/.gtkrc-2.0 > GTK3_MODULES=xapp-gtk3-module:xapp-gtk3-module > GTK_MODULES=canberra-gtk-module:canberra-gtk-module > HG=/usr/bin/hg > HOME= > LANG=es_ES.utf8 > LC_ADDRESS=es_ES.UTF-8 > LC_ALL=es_ES.utf8 > LC_IDENTIFICATION=es_ES.UTF-8 > LC_MEASUREMENT=es_ES.UTF-8 > LC_MONETARY=es_ES.UTF-8 > LC_NAME=es_ES.UTF-8 > LC_NUMERIC=es_ES.UTF-8 > LC_PAPER=es_ES.UTF-8 > LC_TELEPHONE=es_ES.UTF-8 > LC_TIME=es_ES.UTF-8 > LOGNAME= > MAIL=/var/spool/mail/ > MOTD_SHOWN=pam > MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins > PANEL_GDK_CORE_DEVICE_EVENTS=0 > > PATH=/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/local/go/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin > PWD= > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_LOGGING_RULES=*.debug=false > QT_QPA_PLATFORMTHEME=qt5ct > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1234,unix/:/tmp/.ICE-unix/1234 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1286 > SSH_AUTH_SOCK=/tmp/ssh-XXXXXXER2Av4/agent.1285 > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg > XDG_CURRENT_DESKTOP=XFCE > > XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_MENU_PREFIX=xfce- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_CLASS=user > XDG_SESSION_DESKTOP=xfce > XDG_SESSION_ID=2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > Regards > > Martin > > El 16/5/21 a las 5:21, Dimitris Anogiatis escribi?: > > Can you show us a couple of screenshots of the graphics rendered in a > > light and a dark theme? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun May 16 23:19:02 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 16 May 2021 22:19:02 +0100 Subject: [Gambas-user] Shell Wait without Freeze Program In-Reply-To: References: Message-ID: On Sun, 16 May 2021 at 00:29, Hasan Merkit wrote: > How i can make waiting Shell without freezes program? > > > > When i use this: > > Shell ?bash /etc/teteosnet/temp/piluxupdate_beta1.sh? Wait > > > > Application executing this SH file, it?s fine but while executing, after > few seconds OS warn user ?My Gambas3 App not responsing. [Wait] [Force > Quit]? > > > > Just i want make my program wait to end of script, but not freeze. > > > > > > Example: > > > > Private Executing As Boolean = False > > Public Sub Form_Open() > > Executing = True > > Shell ?meow.sh? Wait > > Executing = False > > End > > > > Public Sub Form_Close() > > Stop Event > > If Executing Then > > Message(?Please wait?) > > Else > > Me.Close > > Endif > > End > AAh sorry now i see. you do not want to wait for execution to stop you want program to continue but not quit if process is running. This makes no sense.. * Executing = True* * Shell ?meow.sh? Wait* * Executing = False* because the Shell command freezes program if you use Wait and if you do not use wait then Executing will be false. Maybe this is the sort of thing you want to do? ..... ''''''''''''''''''''''''''' Private myProc As Process > Public Sub Form_Open() myProc = Shell ?meow.sh? End Public Sub Form_Close() If myProc.State = Process.Running Then Message(?Please wait?) Stop Event Return Endif If myProc then myProc.Kill End -------------- next part -------------- An HTML attachment was scrubbed... URL: From dosida at gmail.com Mon May 17 01:15:01 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Sun, 16 May 2021 17:15:01 -0600 Subject: [Gambas-user] Pictures in dark themes are altered In-Reply-To: References: <986beaed-90e3-c1d7-1850-581f91263895@belmotek.net> Message-ID: With whatever little knowledge I have of how graphics work... it looks like the picture box on the dark theme has its colors inverted almost. I haven't used the picturebox for image manipulation but if there is a way can you try inverting the image in your Gambas program when using the dark theme and see if that works out for you? Regards, Dimitrios On Sun, May 16, 2021 at 2:54 PM Bruce Steers wrote: > Looks like that is a transparency issue. > The white inside the globe is the same as the outside transparency and not > rendered as white (it's transparent) so it will show what the background > colour is. > > Fixes would be... > edit image and make the outside transparency colour a different colour. > put image in something with a white background > use a non-transparent image. > > But do you see the problem? > it is a poor quality image for using any other background colour than > white. a good quality image would use a unique colour for the outside > transparency to anything used inside then all that is inside would be > visible.. > I can see the coulours on both images are correct in every other colour > except the transparency colour (as it's not a colour it is transparent) > > Hope that makes sense > BruceS > > > On Sun, 16 May 2021 at 20:18, Martin wrote: > >> Yes, of course, see the attachments in this email please, for system >> info see below. >> >> [System] >> Gambas=3.15.2 >> OperatingSystem=Linux >> Kernel=5.10.34-1-MANJARO >> Architecture=x86_64 >> Distribution=Manjaro Linux >> Desktop=XFCE >> Theme=qt5ctproxy >> Language=es_ES.utf8 >> Memory=7865M >> >> [Libraries] >> Cairo=libcairo.so.2.11704.0 >> Curl=libcurl.so.4.7.0 >> DBus=libdbus-1.so.3.19.13 >> GDK2=libgdk-x11-2.0.so.0.2400.33 >> GDK3=libgdk-3.so.0.2404.25 >> GStreamer=libgstreamer-1.0.so.0.1804.0 >> GTK+2=libgtk-x11-2.0.so.0.2400.33 >> GTK+3=libgtk-3.so.0.2404.25 >> OpenGL=libGL.so.1.7.0 >> Poppler=libpoppler.so.109.0.0 >> QT4=libQtCore.so.4.8.7 >> QT5=libQt5Core.so.5.15.2 >> SDL=libSDL-1.2.so.0.11.4 >> SQLite=libsqlite3.so.0.8.6 >> >> [Environment] >> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> DESKTOP_SESSION=xfce >> DISPLAY=:0.0 >> EDITOR=/usr/bin/nano >> GB_GUI=gb.qt5 >> GDMSESSION=xfce >> GDM_LANG=es_ES.utf8 >> GTK2_RC_FILES=/.gtkrc-2.0 >> GTK3_MODULES=xapp-gtk3-module:xapp-gtk3-module >> GTK_MODULES=canberra-gtk-module:canberra-gtk-module >> HG=/usr/bin/hg >> HOME= >> LANG=es_ES.utf8 >> LC_ADDRESS=es_ES.UTF-8 >> LC_ALL=es_ES.utf8 >> LC_IDENTIFICATION=es_ES.UTF-8 >> LC_MEASUREMENT=es_ES.UTF-8 >> LC_MONETARY=es_ES.UTF-8 >> LC_NAME=es_ES.UTF-8 >> LC_NUMERIC=es_ES.UTF-8 >> LC_PAPER=es_ES.UTF-8 >> LC_TELEPHONE=es_ES.UTF-8 >> LC_TIME=es_ES.UTF-8 >> LOGNAME= >> MAIL=/var/spool/mail/ >> MOTD_SHOWN=pam >> MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins >> PANEL_GDK_CORE_DEVICE_EVENTS=0 >> >> PATH=/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/local/go/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin >> PWD= >> QT_AUTO_SCREEN_SCALE_FACTOR=0 >> QT_LOGGING_RULES=*.debug=false >> QT_QPA_PLATFORMTHEME=qt5ct >> >> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1234,unix/:/tmp/.ICE-unix/1234 >> SHELL=/bin/bash >> SHLVL=0 >> SSH_AGENT_PID=1286 >> SSH_AUTH_SOCK=/tmp/ssh-XXXXXXER2Av4/agent.1285 >> TZ=:/etc/localtime >> USER= >> XAUTHORITY=/.Xauthority >> XDG_CONFIG_DIRS=/etc/xdg >> XDG_CURRENT_DESKTOP=XFCE >> >> XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share >> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >> XDG_MENU_PREFIX=xfce- >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >> XDG_SESSION_CLASS=user >> XDG_SESSION_DESKTOP=xfce >> XDG_SESSION_ID=2 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> >> Regards >> >> Martin >> >> El 16/5/21 a las 5:21, Dimitris Anogiatis escribi?: >> > Can you show us a couple of screenshots of the graphics rendered in a >> > light and a dark theme? >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon May 17 01:15:58 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 17 May 2021 00:15:58 +0100 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> Message-ID: On Sat, 15 May 2021 at 12:46, Martin wrote: > Hi, > > - a) I made an app in gambas IDE 3.16( I install it from the sources) as > 3.15 minimal version. > > - b) Same but as 3.16 minimal version. > > - I package the app > > - Here is the trouble. As dependencies my app require some components > (see attacments) > > ?What I'm doing wrong? > Benoit, is version.m4 correct? PCODE looks wrong m4_define([GB_PCODE_VERSION], [0x03150000]) could that cause this problem? > > ?How is the correct mode to made pakages for Arch or Manjaro? > > Other topic: > > Then, in the packaging form there are a button called "Cancelar", cancel > in Spanish. but it really no cancel anyting the button close the window, > then it could be called "Cerrar" , close in Spanish. is not really > important but is not correct Spanish. I think the button must change the > text to "Cerrar" (Close) when the pakages was done, what cancel the button > ? > well now you're just being pedantic ;) lol fair point though i guess :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Mon May 17 04:05:34 2021 From: dovey.john at gmail.com (John Dovey) Date: Sun, 16 May 2021 21:05:34 -0500 Subject: [Gambas-user] X11 Display In-Reply-To: References: Message-ID: Thank you. That helps. On Sun, May 16, 2021 at 1:43 AM Bruce wrote: > On 15/5/21 11:25 pm, John Dovey wrote: > > Probably a *noob* question, but when I start gambas3 from the command > line > > on Ubuntu 20.04 WSL2, I get the following: > > > > $ gambas3 > > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to > > '/tmp/runtime-boondock' > > libGL error: No matching fbConfigs or visuals found > > libGL error: failed to load driver: swrast > > > > Any idea what this means? Is there something I need to configure or > install? > > > > Thanks > > John > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > You have two warnings there. The first one, > "QStandardPaths: XDG_RUNTIME_DIR not set, defaulting > to'/tmp/runtime-boondock' > is a standard QT warning about your environment. To check it further run > (in a console) env | grep XDG > > You should get something like > [bb at bluecow2 ~]$ env | grep XDG > XDG_CONFIG_DIRS=/etc/xdg/mate:/etc/xdg/discovery:/etc/xdg > XDG_DATA_HOME=/home/bb/.local/share > XDG_CONFIG_HOME=/home/bb/.config > XDG_CURRENT_DESKTOP=MATE > XDG_CACHE_HOME=/home/bb/.cache > XDG_SESSION_COOKIE=bluecow2.phnet-1620968993.207240-1735796825 > XDG_RUNTIME_DIR=/var/run/user/500 > > XDG_DATA_DIRS=/usr/local/share:/usr/share:/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/share/gdm/:/home/bb/.local/share/flatpak/exports/share:: > > > If you dont have XDG_RUNTIME_DIR set then there is something "amiss" in > your login settings and we'll have to more digging. > > The second one, > libGL error: No matching fbConfigs or visuals found > libGL error: failed to load driver: swrast > is a bit harder to dig into. It has something to do with your system, > either the X configuration, the actual library itself, your hardware or > your hardware setup. Rather than guess here I'll just say that it > probably won't affect your Gambas usage UNLESS you do some 3D stuff. > Loose translations are: > fbConfigs : There is no framebuffer configuration for something > visuals : other things that libGL tries to find if not using a > framebuffer video driver (GPU) > swrast : some sort of raster based video library or kernel module or who > knows. > > Neither of these warnings "should" affect yuor Gambas usage - hopefully. > But I will add this final observation. If I use the Gambas Shell command > to go from one program to another I frequently get the XDG_RUNTIME_DIR > warning. Why, I have no idea! Does it affect anything, not thatI can see. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Mon May 17 09:15:27 2021 From: mbelmonte at belmotek.net (Martin) Date: Mon, 17 May 2021 09:15:27 +0200 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> Message-ID: <6ddaabf8-4a7c-1f68-98dd-d79a809826f7@belmotek.net> I'm sorry if it sounds like that, it's not my intention at all. I'm just trying to warn about something that, in my opinion, should be written differently. But, I reiterate, it is something that is not important, only aesthetic, not functional and it is just my opinion :-). Mart?n. El 17/5/21 a las 1:15, Bruce Steers escribi?: > well now you're just being pedantic From bsteers4 at gmail.com Mon May 17 09:45:02 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 17 May 2021 08:45:02 +0100 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: <6ddaabf8-4a7c-1f68-98dd-d79a809826f7@belmotek.net> References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> <6ddaabf8-4a7c-1f68-98dd-d79a809826f7@belmotek.net> Message-ID: On Mon, 17 May 2021 at 08:15, Martin wrote: > I'm sorry if it sounds like that, it's not my intention at all. > I'm just trying to warn about something that, in my opinion, should be > written differently. > But, I reiterate, it is something that is not important, only aesthetic, > not functional and it is just my opinion :-). > > Yawn. I was trying to be funny. Sorry you do not see that. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Mon May 17 11:11:05 2021 From: mbelmonte at belmotek.net (Martin) Date: Mon, 17 May 2021 11:11:05 +0200 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> <6ddaabf8-4a7c-1f68-98dd-d79a809826f7@belmotek.net> Message-ID: <28aac84b-cb7c-8386-586b-c3127d355f70@belmotek.net> Okay, no problem, I know you're a nice guy. But I prefer to clarify any ambiguous situation because there are a lot of nice people here who, like you, help others, in this case me, and I don't want them to think something wrong about my intentions by commenting on ideas or mistakes. But I like jokes very much, I will be more attentive to your English humour :-). Martin. El 17/5/21 a las 9:45, Bruce Steers escribi?: > Yawn. > I was trying to be funny. > Sorry you do not see that. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon May 17 12:21:31 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 17 May 2021 11:21:31 +0100 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: <28aac84b-cb7c-8386-586b-c3127d355f70@belmotek.net> References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> <6ddaabf8-4a7c-1f68-98dd-d79a809826f7@belmotek.net> <28aac84b-cb7c-8386-586b-c3127d355f70@belmotek.net> Message-ID: On Mon, 17 May 2021 at 10:11, Martin wrote: > Okay, no problem, I know you're a nice guy. But I prefer to clarify any > ambiguous situation because there are a lot of nice people here who, like > you, help others, in this case me, and I don't want them to think something > wrong about my intentions by commenting on ideas or mistakes. > But I like jokes very much, I will be more attentive to your English > humour :-). > Hehe, yes do not take me too seriously :) Does 'lol' exist in your country? here it means 'laugh out loud' (denotes trying (at least) to be funny) And watch out for the wink ? ;) You did not include the lol or wink in your quoted reply so it lost all it's humour and looked more serious than i intended. but did better suit your response that way i guess. I also said it was a fair point , something you also did not include in your quoted reply. ? i'm what's referred to as "old and cynical" which means my humour is mostly sarcasm these days ;) God still loves me though so I'm happy ;) we often giggle together about my quips and slips ;) Be well BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon May 17 13:02:19 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 17 May 2021 13:02:19 +0200 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> Message-ID: <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> Le 15/05/2021 ? 13:45, Martin a ?crit?: > Hi, > > - a) I made an app in gambas IDE 3.16( I install it from the sources) as > 3.15 minimal version. > > - b) Same but as 3.16 minimal version. > > - I package the app > > - Here is the trouble. As dependencies my app require some components > (see attacments) > > ?What I'm doing wrong? Nothing. Arch, as other distributions, is supposed to package gambas the way described in the wiki ("how to package gambas" page), i.e. make one package for each component (roughly), and the IDE packager relies on that package structure. > > ?How is the correct mode to made pakages for Arch or Manjaro? > > Other topic: > > Then, in the packaging form there are a button called "Cancelar", cancel > in Spanish. but it really no cancel anyting the button close the window, > then it could be called "Cerrar" , close in Spanish. is not really > important but is not correct Spanish. I think the button must change the > text to "Cerrar" (Close) when the pakages was done, what cancel the > button ? It cancels the package creation. "Cancel" is the default cancel button of the Wizard control. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Mon May 17 13:23:23 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 17 May 2021 13:23:23 +0200 Subject: [Gambas-user] strange Message behavior In-Reply-To: References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> Message-ID: <51bbd925-0311-08a4-2ce0-13d122e812e9@gmail.com> Le 14/05/2021 ? 11:01, Bruce Steers a ?crit?: > > > On Fri, 14 May 2021 at 07:21, Admin > wrote: > > 13.05.2021 23:53, Beno?t Minisini ?????: > > Le 13/05/2021 ? 12:49, Admin a ?crit?: > >> > >> P.S. if you're interested, it does not compile due to: > >> --------- > >> > >> Installing 'gb.form' component... > >> Compiling 'gb.form.dialog' component... > >> gbc3: error: Component not found: gb.gsl > >> *** Error code 1 > >> ----------- > >> > >> yet it was ./configured with --disable-gsl. > >> > >> But since it's not an officially supported platform, oh well. > >> > > > > 'gb.form.dialog' project does not depend at all on 'gb.gsl'. > "someone" > > has checked the component by mistake! > > > ))) Nice! This problem is solved. Here is another one: > > ------------------- > > OK > Installing gbs3... > Installing IDE application icon... > Installing IDE application menu... > rmdir: illegal option -- - > usage: rmdir [-pv] directory ... > *** Error code 1 > > Stop. > make[3]: stopped in /root/gambas/app > *** Error code 1 > > ------------------- > > > But of course removing rmdirs from /app/Makefile fixes it. > > > it's the? --ignore-fail-on-non-empty arg with rmdir? BSD rmdir does not > support it. > > Do you know of a way to get the same effect as *rmdir > --ignore-fail-on-non-empty *with BSD Dimitry? > ** > > BruceS > I removed the use of '--ignore-fail-on-non-empty' flag in master, I do differently now. Regards, -- Beno?t Minisini From mbelmonte at belmotek.net Mon May 17 14:47:40 2021 From: mbelmonte at belmotek.net (Martin) Date: Mon, 17 May 2021 14:47:40 +0200 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> Message-ID: <4fb4c79f-edb1-e380-7e5e-d4c687b65b52@belmotek.net> Hello, Sorry, I did not express correctly one thing, the gambas 3.16 that I have installed on the system (Manjaro) does not come from the Manjaro packages nor Arch (latest version is 3.15-2.9), comes from the sources of gambas, so in principle what you say would have no effect in the case of 3.16 of the sources right? if it would in the case of 3.15 that if it comes from the Manjaro package. I made again a package, in the system where are a 3.16 version installed from sources, then in installing process (in the same system) of the app appear this massage: no se pudieron satisfacer las dependencias: (dependencies could not be satisfied) - imposible satisfacer dependencia 'gambas3-gb-image>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-form>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-db>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-desktop>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-util>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-settings>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-logging>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-util-web>=3.16' requerida por tradukisto - imposible satisfacer dependencia 'gambas3-gb-xml>=3.16' requerida por tradukisto If I made a software using ide v3.16 from sources and even selecting 3.16 as minimal version for the packace is not possible distribute the softare.? How to distribute safely software made using gambas 3.16 installed form sources? Regards. Martin. El 17/5/21 a las 13:02, Beno?t Minisini escribi?: > Arch, as other distributions, is supposed to package gambas the way > described in the wiki -------------- next part -------------- A non-text attachment was scrubbed... Name: install-from-package.png Type: image/png Size: 45621 bytes Desc: not available URL: From adamnt42 at gmail.com Mon May 17 18:11:21 2021 From: adamnt42 at gmail.com (Bruce) Date: Tue, 18 May 2021 01:41:21 +0930 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> Message-ID: On 17/5/21 8:32 pm, Beno?t Minisini wrote: > Le 15/05/2021 ? 13:45, Martin a ?crit?: >> Hi, >> (snip) >> Other topic: >> >> Then, in the packaging form there are a button called "Cancelar", >> cancel in Spanish. but it really no cancel anyting the button close >> the window, then it could be called "Cerrar" , close in Spanish. is >> not really important but is not correct Spanish. I think the button >> must change the text to "Cerrar" (Close) when the pakages was done, >> what cancel the button ? > > It cancels the package creation. "Cancel" is the default cancel button > of the Wizard control. > > Regards, > [Opinion] To be very pedantic, this is not quite correct (and Martin's "it really no cancel anyting the button close the window," is closer to the truth. The buttons on the bdottom right of the wizard at every step show the "Cancel" button. The buttons "Previous", "Next" and "Cancel" instruct the flow of the wizard through its steps. At each step when "Next" is selected, certain things in the .project configuration file may be changed. Clicking "Cancel at any step exits the wizard without doing anything else. All changes up to that step are still persisted. So at the last step we have a new button at the bottom right "Create Packages" whcih replaces "Next as, obviously, there us no next step. If this is clicked, obviously, the packages are created, but the wizard stays at that step. For the sake of clarity let me call the "Create Packages" button a "psuedo-Next" step that displays the last step again. So, in effect, if the user has already clicked "Create Packages" then the "Cancel" button does not "calcel the package creation" it just exits the wizard at that point. Everything done up to that point remains. I recall many years ago feeling the same "confusion" as Martin is suggesting. Something like "Exit Wizard" would be IMO "better". But are the captions on the wizard navigation buttons settable? I don't know and haven't tried. regards bruce BTW the fact that the project's packaing configuration is saved at each step, although "not intuitively obvious to the casual observer" is a "good" thing! From dovey.john at gmail.com Mon May 17 20:47:51 2021 From: dovey.john at gmail.com (John Dovey) Date: Mon, 17 May 2021 13:47:51 -0500 Subject: [Gambas-user] Using gb.Cairo Message-ID: Hi, I am quite keen to use the Cairo component. I am having no luck though even starting. The docs tell me that "Before starting drawing anything, you must call the Begin method by passing it the Image where you want to draw." I figured the simplest way to do this would be to create a Picturebox on a form, and pass that to Cairo.Begin. That didn't work. A hint on how to do this would help tremendously. In fact, if someone could convert this into the Gambas equivalent, it would give a great start to what I want to do initially: -- Code -- static void do_drawing(cairo_t *cr, GtkWidget *widget) { cairo_pattern_t *pat; cairo_set_source_rgb(cr, 0.2, 0.2, 0.2); cairo_paint(cr); gint h = 90; cairo_select_font_face(cr, "Serif", CAIRO_FONT_SLANT_ITALIC, CAIRO_FONT_WEIGHT_BOLD); cairo_set_font_size(cr, h); pat = cairo_pattern_create_linear(0, 15, 0, h*0.8); cairo_pattern_set_extend(pat, CAIRO_EXTEND_REPEAT); cairo_pattern_add_color_stop_rgb(pat, 0.0, 1, 0.6, 0); cairo_pattern_add_color_stop_rgb(pat, 0.5, 1, 0.3, 0); cairo_move_to(cr, 15, 80); cairo_text_path(cr, "ZetCode"); cairo_set_source(cr, pat); cairo_fill(cr); } -- End Code -- It comes from https://zetcode.com/gfx/cairo/cairotext/ Thanks in advance, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Mon May 17 20:59:05 2021 From: mbelmonte at belmotek.net (Martin) Date: Mon, 17 May 2021 20:59:05 +0200 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> Message-ID: <2813079b-99f9-03df-81c7-41972395e3c2@belmotek.net> Hi, Bruce you explain it very clear. Martin. El 17/5/21 a las 18:11, Bruce escribi?: > On 17/5/21 8:32 pm, Beno?t Minisini wrote: >> Le 15/05/2021 ? 13:45, Martin a ?crit?: >>> Hi, >>> > (snip) > >>> Other topic: >>> >>> Then, in the packaging form there are a button called "Cancelar", >>> cancel in Spanish. but it really no cancel anyting the button close >>> the window, then it could be called "Cerrar" , close in Spanish. is >>> not really important but is not correct Spanish. I think the button >>> must change the text to "Cerrar" (Close) when the pakages was done, >>> what cancel the button ? >> >> It cancels the package creation. "Cancel" is the default cancel >> button of the Wizard control. >> >> Regards, >> > > [Opinion] > To be very pedantic, this is not quite correct (and Martin's "it > really no cancel anyting the button close the window," is closer to > the truth. > > The buttons on the bdottom right of the wizard at every step show the > "Cancel" button. The buttons "Previous", "Next" and "Cancel" instruct > the flow of the wizard through its steps. At each step when "Next" is > selected, certain things in the .project configuration file may be > changed. Clicking "Cancel at any step exits the wizard without doing > anything else. All changes up to that step are still persisted. > > So at the last step we have a new button at the bottom right "Create > Packages" whcih replaces "Next as, obviously, there us no next step. > If this is clicked, obviously, the packages are created, but the > wizard stays at that step. For the sake of clarity let me call the > "Create Packages" button a "psuedo-Next" step that displays the last > step again. > > So, in effect, if the user has already clicked "Create Packages" then > the "Cancel" button does not "calcel the package creation" it just > exits the wizard at that point. Everything done up to that point remains. > > > I recall many years ago feeling the same "confusion" as Martin is > suggesting. Something like "Exit Wizard" would be IMO "better". > > But are the captions on the wizard navigation buttons settable? I > don't know and haven't tried. > > regards > bruce > > BTW the fact that the project's packaing configuration is saved at > each step, although "not intuitively obvious to the casual observer" > is a "good" thing! > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From dovey.john at gmail.com Mon May 17 21:19:25 2021 From: dovey.john at gmail.com (John Dovey) Date: Mon, 17 May 2021 14:19:25 -0500 Subject: [Gambas-user] Network Programming Message-ID: Does anyone know what happened to this page? http://gambaswiki.org/wiki/tutorial/chat It seems to be exactly what I needed as a sample for something else I want to do. Thanks John -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Mon May 17 21:33:35 2021 From: tobs at taboege.de (Tobias Boege) Date: Mon, 17 May 2021 21:33:35 +0200 Subject: [Gambas-user] Using gb.Cairo In-Reply-To: References: Message-ID: <20210517193335.GC1850696@highrise.localdomain> On Mon, 17 May 2021, John Dovey wrote: > Hi, > I am quite keen to use the Cairo component. I am having no luck though even > starting. > The docs tell me that > "Before starting drawing anything, you must call the Begin > method by passing it > the Image where you > want to draw." > > I figured the simplest way to do this would be to create a Picturebox on a > form, and pass that to Cairo.Begin. That didn't work. > A hint on how to do this would help tremendously. > A PictureBox is a control which displays a Picture. You cannot draw on a PictureBox directly. You have to draw with Cairo on a Picture object and then display the result in a PictureBox (actually, you draw on an Image object, which is slightly different from a Picture). Alternatively, you can draw on a DrawingArea, but not with the Cairo component, only with the (GUI toolkit-specific) Paint class whose interface is very similar to Cairo... If that was too confusing, don't worry. I have also attached a project which implements most(!) of your C code in Gambas. I think once you have figured out how to start drawing, the translation is straightforward. The only thing I could not copy is the cairo_pattern_set_extend() setting, so the result looks different (the gradient is not repeating). There is only one mention of this function in the gb.cairo source code and that is limited to Cairo.ImagePattern(). Apparently you cannot apply an Extend to a LinearGradient currently. This is probably an oversight and you should file a feature request at http://gambaswiki.org/bugtracker Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: cairo-0.0.1.tar.gz Type: application/gzip Size: 11844 bytes Desc: not available URL: From dovey.john at gmail.com Mon May 17 21:35:58 2021 From: dovey.john at gmail.com (John Dovey) Date: Mon, 17 May 2021 14:35:58 -0500 Subject: [Gambas-user] Using gb.Cairo In-Reply-To: <20210517193335.GC1850696@highrise.localdomain> References: <20210517193335.GC1850696@highrise.localdomain> Message-ID: Thank you Tobias. You went above and beyond on this one! All the best John On Mon, 17 May 2021 at 14:34, Tobias Boege wrote: > On Mon, 17 May 2021, John Dovey wrote: > > Hi, > > I am quite keen to use the Cairo component. I am having no luck though > even > > starting. > > The docs tell me that > > "Before starting drawing anything, you must call the Begin > > method by > passing it > > the Image where > you > > want to draw." > > > > I figured the simplest way to do this would be to create a Picturebox on > a > > form, and pass that to Cairo.Begin. That didn't work. > > A hint on how to do this would help tremendously. > > > > A PictureBox is a control which displays a Picture. You cannot draw on > a PictureBox directly. You have to draw with Cairo on a Picture object > and then display the result in a PictureBox (actually, you draw on an > Image object, which is slightly different from a Picture). Alternatively, > you can draw on a DrawingArea, but not with the Cairo component, only > with the (GUI toolkit-specific) Paint class whose interface is very > similar to Cairo... > > If that was too confusing, don't worry. I have also attached a project > which implements most(!) of your C code in Gambas. I think once you have > figured out how to start drawing, the translation is straightforward. > > The only thing I could not copy is the cairo_pattern_set_extend() > setting, so the result looks different (the gradient is not repeating). > There is only one mention of this function in the gb.cairo source code > and that is limited to Cairo.ImagePattern(). Apparently you cannot > apply an Extend to a LinearGradient currently. > > This is probably an oversight and you should file a feature request > at http://gambaswiki.org/bugtracker > > Best, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Mon May 17 22:25:02 2021 From: dovey.john at gmail.com (John Dovey) Date: Mon, 17 May 2021 15:25:02 -0500 Subject: [Gambas-user] Using gb.Cairo In-Reply-To: <20210517193335.GC1850696@highrise.localdomain> References: <20210517193335.GC1850696@highrise.localdomain> Message-ID: I applied another one, slightly different from the first I asked. I figured others might like to see: Dim hImg As New Image(PictureBox1.W, PictureBox1.H) Dim h As Integer = 60 Cairo.Begin(hImg) Cairo.Source = Cairo.SolidPattern(224, 224, 224, 0) ' Background. Pattern is RGB Cairo.Paint() Cairo.Font.Name = "Serif" Cairo.Font.Slant = Cairo.FontSlantItalic Cairo.Font.Weight = Cairo.FontWeightBold Cairo.Font.Size = h Cairo.Source = Cairo.SolidPattern(0, 0, 0) Cairo.MoveTo(40, 60) Cairo.Text("El Gato de Fuego") Cairo.Fill Cairo.Source = Cairo.SolidPattern(0.5, 0.5, 0.2) Cairo.MoveTo(43, 63) Cairo.Text("El Gato de Fuego") Cairo.Fill() Cairo.End() PictureBox1.Picture = hImg.Picture -- End Code -- I'm not too sure about the "floating point" parameters. I can't quite figure that out. How do I translate for example RGB 102,102,0 (Green) (RGB Color Tables ) to the required floating point? I got the green I wanted from just trial and error. On Mon, 17 May 2021 at 14:34, Tobias Boege wrote: > On Mon, 17 May 2021, John Dovey wrote: > > Hi, > > I am quite keen to use the Cairo component. I am having no luck though > even > > starting. > > The docs tell me that > > "Before starting drawing anything, you must call the Begin > > method by > passing it > > the Image where > you > > want to draw." > > > > I figured the simplest way to do this would be to create a Picturebox on > a > > form, and pass that to Cairo.Begin. That didn't work. > > A hint on how to do this would help tremendously. > > > > A PictureBox is a control which displays a Picture. You cannot draw on > a PictureBox directly. You have to draw with Cairo on a Picture object > and then display the result in a PictureBox (actually, you draw on an > Image object, which is slightly different from a Picture). Alternatively, > you can draw on a DrawingArea, but not with the Cairo component, only > with the (GUI toolkit-specific) Paint class whose interface is very > similar to Cairo... > > If that was too confusing, don't worry. I have also attached a project > which implements most(!) of your C code in Gambas. I think once you have > figured out how to start drawing, the translation is straightforward. > > The only thing I could not copy is the cairo_pattern_set_extend() > setting, so the result looks different (the gradient is not repeating). > There is only one mention of this function in the gb.cairo source code > and that is limited to Cairo.ImagePattern(). Apparently you cannot > apply an Extend to a LinearGradient currently. > > This is probably an oversight and you should file a feature request > at http://gambaswiki.org/bugtracker > > Best, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Mon May 17 23:21:03 2021 From: tobs at taboege.de (Tobias Boege) Date: Mon, 17 May 2021 23:21:03 +0200 Subject: [Gambas-user] Using gb.Cairo In-Reply-To: References: <20210517193335.GC1850696@highrise.localdomain> Message-ID: <20210517212103.GD1850696@highrise.localdomain> On Mon, 17 May 2021, John Dovey wrote: > I applied another one, slightly different from the first I asked. I figured > others might like to see: > > Dim hImg As New Image(PictureBox1.W, PictureBox1.H) > Dim h As Integer = 60 > > Cairo.Begin(hImg) > Cairo.Source = Cairo.SolidPattern(224, 224, 224, 0) ' Background. Pattern > is RGB > Cairo.Paint() > > Cairo.Font.Name = "Serif" > Cairo.Font.Slant = Cairo.FontSlantItalic > Cairo.Font.Weight = Cairo.FontWeightBold > Cairo.Font.Size = h > > Cairo.Source = Cairo.SolidPattern(0, 0, 0) > Cairo.MoveTo(40, 60) > Cairo.Text("El Gato de Fuego") > Cairo.Fill > > Cairo.Source = Cairo.SolidPattern(0.5, 0.5, 0.2) > Cairo.MoveTo(43, 63) > Cairo.Text("El Gato de Fuego") > Cairo.Fill() > > Cairo.End() > PictureBox1.Picture = hImg.Picture > > -- End Code -- > > I'm not too sure about the "floating point" parameters. I can't quite > figure that out. How do I translate for example RGB 102,102,0 (Green) (RGB > Color Tables ) to > the required floating point? I got the green I wanted from just trial and > error. See http://gambaswiki.org/wiki/comp/gb.cairo/cairo/solidpattern: The color components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped. RGB color component c between 0 and 255 maps to float f via f = c / 255 c = f * 255 Thus (102, 102, 0) in 256-based RGB notation is (102/255, 102/255, 0/255) or just (0.4, 0.4, 0.0) in float notation. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From dovey.john at gmail.com Mon May 17 23:44:27 2021 From: dovey.john at gmail.com (John Dovey) Date: Mon, 17 May 2021 16:44:27 -0500 Subject: [Gambas-user] Using gb.Cairo In-Reply-To: <20210517212103.GD1850696@highrise.localdomain> References: <20210517193335.GC1850696@highrise.localdomain> <20210517212103.GD1850696@highrise.localdomain> Message-ID: Perfect, thank you On Mon, May 17, 2021 at 4:22 PM Tobias Boege wrote: > On Mon, 17 May 2021, John Dovey wrote: > > I applied another one, slightly different from the first I asked. I > figured > > others might like to see: > > > > Dim hImg As New Image(PictureBox1.W, PictureBox1.H) > > Dim h As Integer = 60 > > > > Cairo.Begin(hImg) > > Cairo.Source = Cairo.SolidPattern(224, 224, 224, 0) ' Background. > Pattern > > is RGB > > Cairo.Paint() > > > > Cairo.Font.Name = "Serif" > > Cairo.Font.Slant = Cairo.FontSlantItalic > > Cairo.Font.Weight = Cairo.FontWeightBold > > Cairo.Font.Size = h > > > > Cairo.Source = Cairo.SolidPattern(0, 0, 0) > > Cairo.MoveTo(40, 60) > > Cairo.Text("El Gato de Fuego") > > Cairo.Fill > > > > Cairo.Source = Cairo.SolidPattern(0.5, 0.5, 0.2) > > Cairo.MoveTo(43, 63) > > Cairo.Text("El Gato de Fuego") > > Cairo.Fill() > > > > Cairo.End() > > PictureBox1.Picture = hImg.Picture > > > > -- End Code -- > > > > I'm not too sure about the "floating point" parameters. I can't quite > > figure that out. How do I translate for example RGB 102,102,0 (Green) > (RGB > > Color Tables ) to > > the required floating point? I got the green I wanted from just trial and > > error. > > See http://gambaswiki.org/wiki/comp/gb.cairo/cairo/solidpattern: > > The color components are floating point numbers in the range 0 to 1. > If the values passed in are outside that range, they will be clamped. > > RGB color component c between 0 and 255 maps to float f via > > f = c / 255 > c = f * 255 > > Thus (102, 102, 0) in 256-based RGB notation is (102/255, 102/255, 0/255) > or just (0.4, 0.4, 0.0) in float notation. > > Best, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue May 18 00:48:28 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 17 May 2021 18:48:28 -0400 Subject: [Gambas-user] Network Programming In-Reply-To: References: Message-ID: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> On 5/17/21 3:19 PM, John Dovey wrote: > Does anyone know what happened to this page? > http://gambaswiki.org/wiki/tutorial/chat > > It seems to be exactly?what I needed as a sample for something else I want to do. > Thanks > John I never even knew that page was there, lol. Anyway, there is example code at http://gambaswiki.org/wiki/doc/network#t13 that could likely be used as a basis for your needs. I took that code and reworked it a bit to make a simple chat server. I have not tested it so it may have (read, probably has) bugs. ' Gambas class file PUBLIC Clients AS Object[] PUBLIC Srv AS ServerSocket PUBLIC SUB FMain_Open() Clients = NEW Object[] Srv = NEW ServerSocket AS "Srv" Srv.Port=3450 Srv.Type = Net.Internet Srv.Listen() END PUBLIC SUB Srv_Connection(Host AS String) PRINT "Accepting connection from --> " & Host Clients.Add(Srv.Accept()) END PUBLIC SUB Socket_Read() DIM sCad AS String READ #LAST, sCad, Lof(LAST) FOR EACH oSocket as Socket in Clients IF oSocket.RemoteHost = LAST.RemoteHost THEN ' Don't echo to sender Continue END IF WRITE #oSocket, sCad, Len(sCad) NEXT END PUBLIC SUB Socket_Closed() PRINT "Connection closed" Clients.Remove(Clients.Find(LAST)) END -- Lee From g4mba5 at gmail.com Tue May 18 02:29:55 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 18 May 2021 02:29:55 +0200 Subject: [Gambas-user] Initial support of class namespaces in master Message-ID: Hi, As the subject tells you, I have pushed the initial support of class namespaces in the master. This is done through a new syntax of the EXPORT keyword: EXPORT AS : And allowing to have a colon inside a class name. This syntax exports a class by using ":" as its public name, instead of the name of the class in the project. Outside of the project, you will have to use "NameSpace:Name" to use the class. Inside the project, you should be able to use "NameSpace:Name" or the internal name of the class indifferently. Note that now a class can now be exported with a different name. Namespaces do not really exist inside the interpreter or the compiler. It's just the part of the class name before the colon. In the future, I will add the ability to choose a default namespace in the project properties, so that the "EXPORT" keyword alone directly exports the class to that namespace. Or a syntax EXPORT TO NameSpace as syntactic sugar for EXPORT AS NameSpace:, where is the name of the class in the project. Tell me what you think, and more important if you find problems with that new feature. Regards, -- Beno?t Minisini From dovey.john at gmail.com Tue May 18 04:03:14 2021 From: dovey.john at gmail.com (John Dovey) Date: Mon, 17 May 2021 21:03:14 -0500 Subject: [Gambas-user] Using gb.Cairo In-Reply-To: <20210517212103.GD1850696@highrise.localdomain> References: <20210517193335.GC1850696@highrise.localdomain> <20210517212103.GD1850696@highrise.localdomain> Message-ID: I have a further question: I have this code: -- Begin Code -- Dim hImg As New Image(frmMain.W, frmMain.H) Dim h As Integer = 60 Cairo.Begin(hImg) Cairo.Source = Cairo.SolidPattern(224, 224, 224, 0) ' Background. Pattern is RGB Cairo.Paint() Cairo.Font.Name = "Serif" Cairo.Font.Slant = Cairo.FontSlantItalic Cairo.Font.Weight = Cairo.FontWeightBold Cairo.Font.Size = h Cairo.Source = Cairo.SolidPattern(0, 0, 0) Cairo.MoveTo(40, 60) Cairo.Text("El Gato de Fuego") Cairo.Fill Cairo.Source = Cairo.SolidPattern(0.5, 0.5, 0.2) Cairo.MoveTo(43, 63) Cairo.Text("El Gato de Fuego") Cairo.Fill() 'Cairo.End() 'frmMain.Picture = hImg.Picture 'Cairo.Begin(hImg) h = 20 ' Font Size Cairo.Font.Name = "Serif" Cairo.Font.Slant = Cairo.FontSlantItalic Cairo.Font.Weight = Cairo.FontWeightBold Cairo.Font.Size = h Cairo.Source = Cairo.SolidPattern(224, 224, 224, 0) Cairo.Source = Cairo.SolidPattern(0, 0, 0) Cairo.MoveTo(40, 90) Cairo.DrawText("New Generation FTN Network") Cairo.Rectangle(30, 100, 700, 300) Cairo.Fill Cairo.Source = Cairo.SolidPattern(0.4, 0, 0) Cairo.Rectangle(25, 95, 695, 295) Cairo.Fill Cairo.End frmMain.Picture = hImg.Picture --- End Code -- As you can see, I'm writing directly to the form (frmMain.Picture). It's working very well. What I find odd though (and I'm sure it's because I don't truly understand what I'm doing) is that when I run the program the form displays perfectly, just the way I expect it to. When I enlarge the form by dragging on any of the borders, it seems the picture has been "tiled". I don't see a tiled property for the form picture, so I'm assuming I'm making the mistake in the Cairo code? [image: Screenshot 2021-05-17 205613.png] On Mon, 17 May 2021 at 16:22, Tobias Boege wrote: > On Mon, 17 May 2021, John Dovey wrote: > > I applied another one, slightly different from the first I asked. I > figured > > others might like to see: > > > > Dim hImg As New Image(PictureBox1.W, PictureBox1.H) > > Dim h As Integer = 60 > > > > Cairo.Begin(hImg) > > Cairo.Source = Cairo.SolidPattern(224, 224, 224, 0) ' Background. > Pattern > > is RGB > > Cairo.Paint() > > > > Cairo.Font.Name = "Serif" > > Cairo.Font.Slant = Cairo.FontSlantItalic > > Cairo.Font.Weight = Cairo.FontWeightBold > > Cairo.Font.Size = h > > > > Cairo.Source = Cairo.SolidPattern(0, 0, 0) > > Cairo.MoveTo(40, 60) > > Cairo.Text("El Gato de Fuego") > > Cairo.Fill > > > > Cairo.Source = Cairo.SolidPattern(0.5, 0.5, 0.2) > > Cairo.MoveTo(43, 63) > > Cairo.Text("El Gato de Fuego") > > Cairo.Fill() > > > > Cairo.End() > > PictureBox1.Picture = hImg.Picture > > > > -- End Code -- > > > > I'm not too sure about the "floating point" parameters. I can't quite > > figure that out. How do I translate for example RGB 102,102,0 (Green) > (RGB > > Color Tables ) to > > the required floating point? I got the green I wanted from just trial and > > error. > > See http://gambaswiki.org/wiki/comp/gb.cairo/cairo/solidpattern: > > The color components are floating point numbers in the range 0 to 1. > If the values passed in are outside that range, they will be clamped. > > RGB color component c between 0 and 255 maps to float f via > > f = c / 255 > c = f * 255 > > Thus (102, 102, 0) in 256-based RGB notation is (102/255, 102/255, 0/255) > or just (0.4, 0.4, 0.0) in float notation. > > Best, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 2021-05-17 205613.png Type: image/png Size: 42938 bytes Desc: not available URL: From dovey.john at gmail.com Tue May 18 06:45:36 2021 From: dovey.john at gmail.com (John Dovey) Date: Mon, 17 May 2021 23:45:36 -0500 Subject: [Gambas-user] How To Message-ID: I'm not sure if it's appropriate, but the help I got from the list today inspired me to write something to contribute to the Gambas Wiki. I wrote it as a HowTo at http://gambaswiki.org/edit/howto/drawithcairo I have a few questions 1. Is it Ok? Should it have a different structure or more info etc? 2. Is it appropriate as a "How To" or should it rather have been a "Tutorial"? 3. Is this sort of thing helpful? I know I would have found it very helpful, and wouldn't have had to ask the *noob* questions on the list. I figure if it's helpful I don't mind contributing more as I go along. All the best John -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Tue May 18 08:51:29 2021 From: mbelmonte at belmotek.net (Martin) Date: Tue, 18 May 2021 08:51:29 +0200 Subject: [Gambas-user] How To In-Reply-To: References: Message-ID: Hi John, I am glad you do how to, I think it is a very practical format to learn how something works. Thank you very much. Martin. El 18/5/21 a las 6:45, John Dovey escribi?: > I'm not sure if it's appropriate, but the help I got from the list > today inspired me to write something to contribute to the Gambas Wiki. > I wrote it as a HowTo at http://gambaswiki.org/edit/howto/drawithcairo > > > I have a few questions > 1. Is it Ok? Should it have a different structure or more info etc? > 2. Is it appropriate as a "How To" or should it rather have been a > "Tutorial"? > 3. Is this sort of thing helpful? I know I would have found it very > helpful, and wouldn't have had to ask the *noob* questions on the > list. I figure if it's helpful I don't mind contributing more as I go > along. > > All the best > John > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Tue May 18 09:01:08 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 18 May 2021 02:01:08 -0500 Subject: [Gambas-user] How To In-Reply-To: References: Message-ID: It?s a pleasure. I figure that if I take my experiences learning to do things and share them with others in this form. It can only be for the benefit of all. There are a few other things I could do like this already. Maybe recreate the ?Chat server? page that was shared with the list today. Also a practical how to on simple stuff like creating multiple copies of forms, seeing as they are classes like everything else and another complete example of reading a .csv file. I?ve also gone through the pain of creating a bare bones console app with the curses library, so that could also make another one. The more I look at it, there are a LOT of things that can be done with Cairo, so maybe a more advanced example of things like drawing shapes to show the difference between fill and stroke, scaling drawings to match the size of the screen, drawing complex shapes, things like polyhedron and spirals etc. Also, I?ve been playing with animating she shapes. That?s a bit of a mind bender. I?ve also not found practical examples of writing the picture out to SVG, or PNG files. Once I get around to it, a framework for creating PDF files could also be useful. What?s really great is it?s a wiki so everyone can contribute, edit and update as they see mistakes or think of better examples etc All the best John On Tue, May 18, 2021 at 1:51 AM Martin wrote: > Hi John, > > I am glad you do how to, I think it is a very practical format to learn > how something works. > Thank you very much. > > Martin. > El 18/5/21 a las 6:45, John Dovey escribi?: > > I'm not sure if it's appropriate, but the help I got from the list today > inspired me to write something to contribute to the Gambas Wiki. I wrote it > as a HowTo at http://gambaswiki.org/edit/howto/drawithcairo > > I have a few questions > 1. Is it Ok? Should it have a different structure or more info etc? > 2. Is it appropriate as a "How To" or should it rather have been a > "Tutorial"? > 3. Is this sort of thing helpful? I know I would have found it very > helpful, and wouldn't have had to ask the *noob* questions on the list. I > figure if it's helpful I don't mind contributing more as I go along. > > All the best > John > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Tue May 18 09:03:25 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 18 May 2021 02:03:25 -0500 Subject: [Gambas-user] Network Programming In-Reply-To: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: This is fantastic. If you don?t mind, I?ll take this and work on it a bit more and maybe write up that chat server how to. All the best John On Mon, May 17, 2021 at 5:49 PM T Lee Davidson wrote: > On 5/17/21 3:19 PM, John Dovey wrote: > > Does anyone know what happened to this page? > > http://gambaswiki.org/wiki/tutorial/chat < > http://gambaswiki.org/wiki/tutorial/chat> > > > > It seems to be exactly what I needed as a sample for something else I > want to do. > > Thanks > > John > > I never even knew that page was there, lol. Anyway, there is example code > at http://gambaswiki.org/wiki/doc/network#t13 that > could likely be used as a basis for your needs. I took that code and > reworked it a bit to make a simple chat server. I have not > tested it so it may have (read, probably has) bugs. > > ' Gambas class file > PUBLIC Clients AS Object[] > PUBLIC Srv AS ServerSocket > > PUBLIC SUB FMain_Open() > > Clients = NEW Object[] > Srv = NEW ServerSocket AS "Srv" > Srv.Port=3450 > Srv.Type = Net.Internet > Srv.Listen() > > END > > PUBLIC SUB Srv_Connection(Host AS String) > > PRINT "Accepting connection from --> " & Host > Clients.Add(Srv.Accept()) > > END > > PUBLIC SUB Socket_Read() > > DIM sCad AS String > READ #LAST, sCad, Lof(LAST) > FOR EACH oSocket as Socket in Clients > IF oSocket.RemoteHost = LAST.RemoteHost THEN ' Don't echo to sender > Continue > END IF > WRITE #oSocket, sCad, Len(sCad) > NEXT > > END > > PUBLIC SUB Socket_Closed() > > PRINT "Connection closed" > Clients.Remove(Clients.Find(LAST)) > > END > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Tue May 18 09:10:09 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 18 May 2021 02:10:09 -0500 Subject: [Gambas-user] Network Programming In-Reply-To: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: While I?m on this, I have some questions. I created this as a separate class in my project and instantiated the class from my main form. When I close my main form, the program doesn?t. What do I need to do to kill the class? Also, I?m bother by the use of ?LAST?. My concept is that I was wanting to have the server accept connections as they arrive, and then manage the full session with the client, but the LAST is confusing me. Do I need to track the socket object as a list of ?connections?? JD On Mon, May 17, 2021 at 5:49 PM T Lee Davidson wrote: > On 5/17/21 3:19 PM, John Dovey wrote: > > Does anyone know what happened to this page? > > http://gambaswiki.org/wiki/tutorial/chat < > http://gambaswiki.org/wiki/tutorial/chat> > > > > It seems to be exactly what I needed as a sample for something else I > want to do. > > Thanks > > John > > I never even knew that page was there, lol. Anyway, there is example code > at http://gambaswiki.org/wiki/doc/network#t13 that > could likely be used as a basis for your needs. I took that code and > reworked it a bit to make a simple chat server. I have not > tested it so it may have (read, probably has) bugs. > > ' Gambas class file > PUBLIC Clients AS Object[] > PUBLIC Srv AS ServerSocket > > PUBLIC SUB FMain_Open() > > Clients = NEW Object[] > Srv = NEW ServerSocket AS "Srv" > Srv.Port=3450 > Srv.Type = Net.Internet > Srv.Listen() > > END > > PUBLIC SUB Srv_Connection(Host AS String) > > PRINT "Accepting connection from --> " & Host > Clients.Add(Srv.Accept()) > > END > > PUBLIC SUB Socket_Read() > > DIM sCad AS String > READ #LAST, sCad, Lof(LAST) > FOR EACH oSocket as Socket in Clients > IF oSocket.RemoteHost = LAST.RemoteHost THEN ' Don't echo to sender > Continue > END IF > WRITE #oSocket, sCad, Len(sCad) > NEXT > > END > > PUBLIC SUB Socket_Closed() > > PRINT "Connection closed" > Clients.Remove(Clients.Find(LAST)) > > END > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue May 18 09:17:13 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 May 2021 08:17:13 +0100 Subject: [Gambas-user] strange Message behavior In-Reply-To: <51bbd925-0311-08a4-2ce0-13d122e812e9@gmail.com> References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> <51bbd925-0311-08a4-2ce0-13d122e812e9@gmail.com> Message-ID: On Mon, 17 May 2021 at 12:24, Beno?t Minisini wrote: > Le 14/05/2021 ? 11:01, Bruce Steers a ?crit : > > > > But of course removing rmdirs from /app/Makefile fixes it. > > > > > > it's the --ignore-fail-on-non-empty arg with rmdir BSD rmdir does not > > support it. > > > > Do you know of a way to get the same effect as *rmdir > > --ignore-fail-on-non-empty *with BSD Dimitry? > > ** > > > > BruceS > > > > I removed the use of '--ignore-fail-on-non-empty' flag in master, I do > differently now. > > Regards, > > -- > Beno?t Minisini > awesome :) good stuff Ben that should fix BSD :) I think it still exists in app/Makefile.am and main/Makefile.am BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Tue May 18 09:18:14 2021 From: mbelmonte at belmotek.net (Martin) Date: Tue, 18 May 2021 09:18:14 +0200 Subject: [Gambas-user] Pictures in dark themes are altered In-Reply-To: <67b17ee0-b9cb-8b4d-d5d2-a8d77dc353ee@belmotek.net> References: <67b17ee0-b9cb-8b4d-d5d2-a8d77dc353ee@belmotek.net> Message-ID: Well, i made the experiments using 2 (3.16 3.15 ) x 2 (dark light) x all logo*.* image files attached in this email. All the cases for dark mode change internal colors to, not only the corners colors, from black to white. Even I use a .jpg file without alfa color, but same results. The project Tradukisto is avalaible in gitlab and the farm Finally i made a completely new project in Gambas 3.16, but same results see attachments new-project-3-16-xfce-ligth.png and new-project-3-16-xfce-dark.png. The yellow icon (the new) looks well changing characters from black to white. So, If not possible change the behavior we must to change the icons using others that works over this environment, right? Martin. -------------- next part -------------- A non-text attachment was scrubbed... Name: logo4.png Type: image/png Size: 65325 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: new-project-3-16-xfce-dark.png Type: image/png Size: 32961 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: new-project-3-16-xfce-ligth.png Type: image/png Size: 32792 bytes Desc: not available URL: From hasanmerkit at outlook.com Tue May 18 13:55:29 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Tue, 18 May 2021 11:55:29 +0000 Subject: [Gambas-user] Turkish language translation update Message-ID: Please check here and add to next update: https://gitlab.com/hasanmerkit/gambas/-/merge_requests/1/diffs?commit_id=746c3c831244814a9eac69be75b56151787634c4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue May 18 14:29:25 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 18 May 2021 08:29:25 -0400 Subject: [Gambas-user] Packagin app in Manjaro In-Reply-To: <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> References: <44cc6a8d-cf0d-131a-43f1-67d62fcacf46@belmotek.net> <10f06545-d49c-2af3-75f5-c92901bdb7d9@gmail.com> Message-ID: El lun, 17 de may. de 2021 a la(s) 07:03, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Le 15/05/2021 ? 13:45, Martin a ?crit : > > - Here is the trouble. As dependencies my app require some components > > (see attacments) > > > > ?What I'm doing wrong? > > Nothing. Arch, as other distributions, is supposed to package gambas the > way described in the wiki ("how to package gambas" page), i.e. make one > package for each component (roughly), and the IDE packager relies on > that package structure. > the package structure still has problems cos still do not take in considerations the migrations, that's why m4 version of gambas still point to 3.15, for sure there some older files not de-installed yet > > > > > ?How is the correct mode to made pakages for Arch or Manjaro? > > > > Other topic: > > > > Then, in the packaging form there are a button called "Cancelar", cancel > > in Spanish. but it really no cancel anyting the button close the window, > > then it could be called "Cerrar" , close in Spanish. is not really > > important but is not correct Spanish. I think the button must change the > > text to "Cerrar" (Close) when the pakages was done, what cancel the > > button ? > > It cancels the package creation. "Cancel" is the default cancel button > of the Wizard control. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue May 18 16:11:10 2021 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 18 May 2021 07:11:10 -0700 (PDT) Subject: [Gambas-user] Code optimization Fun Message-ID: <737377423.6413.1621347070626.JavaMail.zimbra@westwoodsvcs.com> Hi , I am trying to figure out the best way to optimize the N queens problem in gambas. Have tried many different ways and settled on the method included in the attached program. The program Splits the problem into multiple tasks and then waits for all the tasks to complete. The program then collects the count from each task and presents the total number of good solutions to the problem. It seems impossible to get more than 18x18 queens solutions in a reasonable time. It would seem that there has never been more than 27x27 queens solution ever calculated. Can anyone see a better way to write the code reducing the time per starting position....... This is just for fun and entertainment... and learning how to write efficient code in gambas.... "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nQueens-0.0.1.tar.gz.gmail.txt URL: From t.lee.davidson at gmail.com Tue May 18 16:23:22 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 18 May 2021 10:23:22 -0400 Subject: [Gambas-user] Network Programming In-Reply-To: References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: Inline. On 5/18/21 3:10 AM, John Dovey wrote: > I created this as a separate class in my project and instantiated the class from my main form. When I close my main form, the > program doesn?t. What do I need to do to kill the class? Gambas does not automatically close open sockets when a program terminates. You will have to explicitly call ServerSocket.Close(). Perhaps in a subroutine in the class like: Public Sub CloseServer() If Srv Then ' Make sure object exists (or perhaps: If Not IsNull(Srv) Then) Srv.Close() End If End > > Also, I?m bother by the use of ?LAST?. My concept is that I was wanting to have the server accept connections as they arrive, > and then manage the full session with the client, but the LAST is confusing me. Do I need to track the socket object as a list > of ?connections?? The socket objects representing connections to unique clients are contained in an array of objects (ie. the Clients object array). When a connection request is received, a unique socket is created with ServerSocket.Accept() and is added to the Clients array (list?) with Clients.Add(); one socket per unique client. All the sockets created are attached to the "Socket" event observer. [http://gambaswiki.org/wiki/comp/gb.net/serversocket/accept] When a message is received from a client, the Socket_Read() event handler is triggered. Now, since we don't know exactly which client sent the message, we can use the Last keyword which represents whichever server socket received the current message from its connected client. And since Last, in this case, is a handle on a socket, all the properties and methods of Socket are available to us (ie. Last.RemoteHost). I'm not sure exactly what you mean by, "manage the full session with the client." Isn't the function of a chat server to basically forward a message sent by one client to all the other clients? What management of individual clients would be necessary? > > On Mon, May 17, 2021 at 5:49 PM T Lee Davidson > wrote: > > On 5/17/21 3:19 PM, John Dovey wrote: > > Does anyone know what happened to this page? > > http://gambaswiki.org/wiki/tutorial/chat > > > > > > It seems to be exactly?what I needed as a sample for something else I want to do. > > Thanks > > John > > I never even knew that page was there, lol. Anyway, there is example code at http://gambaswiki.org/wiki/doc/network#t13 > that > could likely be used as a basis for your needs. I took that code and reworked it a bit to make a simple chat server. I have not > tested it so it may have (read, probably has) bugs. > > ' Gambas class file > PUBLIC Clients AS Object[] > PUBLIC Srv AS ServerSocket > > PUBLIC SUB FMain_Open() > > ? ?Clients = NEW Object[] > ? ?Srv = NEW ServerSocket AS "Srv" > ? ?Srv.Port=3450 > ? ?Srv.Type = Net.Internet > ? ?Srv.Listen() > > END > > PUBLIC SUB Srv_Connection(Host AS String) > > ? ?PRINT "Accepting connection from --> " & Host > ? ?Clients.Add(Srv.Accept()) > > END > > PUBLIC SUB Socket_Read() > > ? ?DIM sCad AS String > ? ?READ #LAST, sCad, Lof(LAST) > ? ?FOR EACH oSocket as Socket in Clients > ? ? ?IF oSocket.RemoteHost = LAST.RemoteHost THEN ' Don't echo to sender > ? ? ? ?Continue > ? ? ?END IF > ? ? ?WRITE #oSocket, sCad, Len(sCad) > ? ?NEXT > > END > > PUBLIC SUB Socket_Closed() > > ? ?PRINT "Connection closed" > ? ?Clients.Remove(Clients.Find(LAST)) > > END > > > -- > Lee > -- Lee From hasanmerkit at outlook.com Tue May 18 16:25:30 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Tue, 18 May 2021 14:25:30 +0000 Subject: [Gambas-user] Shell Wait without Freeze Program Message-ID: Very thanks Bruce Steers, I used your recommended codes: 'myProc = Shell "bash -c /home/hasanmerkit/.teteosnet/temp/piluxupdate_up_" & InstallingUpdateID & ".sh" myProc = Shell "gedit" StateCheck: If myProc.State = Process.Running Then Print "running" Sleep 1 Goto StateCheck Else Print "ending" Endif But i terminated ?gedit?, and continue returning Process.Running = True. Print myProc.Running : printing 1 Print myProc.State : printing 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Tue May 18 16:43:38 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 18 May 2021 09:43:38 -0500 Subject: [Gambas-user] Network Programming In-Reply-To: References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: On Tue, 18 May 2021 at 09:25, T Lee Davidson wrote: > Inline. > > On 5/18/21 3:10 AM, John Dovey wrote: > > I created this as a separate class in my project and instantiated the > class from my main form. When I close my main form, the > > program doesn?t. What do I need to do to kill the class? > > Gambas does not automatically close open sockets when a program > terminates. You will have to explicitly call > ServerSocket.Close(). Perhaps in a subroutine in the class like: > > Public Sub CloseServer() > If Srv Then ' Make sure object exists (or perhaps: If Not IsNull(Srv) > Then) > Srv.Close() > End If > End > > Perfect. I changed my Form_Close() to include the lines If Server Then ' From: Static Server As ClsServer Server.Srv.Close() End If That works perfectly. > > > Also, I?m bother by the use of ?LAST?. My concept is that I was wanting > to have the server accept connections as they arrive, > > and then manage the full session with the client, but the LAST is > confusing me. Do I need to track the socket object as a list > > of ?connections?? > > The socket objects representing connections to unique clients are > contained in an array of objects (ie. the Clients object > array). When a connection request is received, a unique socket is created > with ServerSocket.Accept() and is added to the Clients > array (list?) with Clients.Add(); one socket per unique client. All the > sockets created are attached to the "Socket" event > observer. [http://gambaswiki.org/wiki/comp/gb.net/serversocket/accept] > > When a message is received from a client, the Socket_Read() event handler > is triggered. Now, since we don't know exactly which > client sent the message, we can use the Last keyword which represents > whichever server socket received the current message from > its connected client. And since Last, in this case, is a handle on a > socket, all the properties and methods of Socket are > available to us (ie. Last.RemoteHost). > > Thank you for the explanation. I'm going to have to step through my program in debug mode until I understand exactly what is happening and what information is stored where, because that's still not entirely clear to me. > I'm not sure exactly what you mean by, "manage the full session with the > client." Isn't the function of a chat server to > basically forward a message sent by one client to all the other clients? > What management of individual clients would be necessary? > > I'm not quite sure what would be "necessary". That's what I'm trying to figure out. One aspect of where I'm heading is to have the server accept a remote connection, then spawn off a brand new form which will echo locally what is happening on the remote. The idea I have here, and I'm really stumbling in the dark, is I'd like to have a client-server setup where I can generate cairo commands on the server and send them to the remote client where they would be rendered. I want to also render them locally so that I can send (on the client's request) an SVG/PNG/PDF version of what's been rendered. I did something similar many years ago using Winsock connections, but there I had to maintain my own in-memory table of connections etc. To start with, I'd like to be able to just Telnet to the port I'm listening on, receive a text menu, and then send a menu choice and have the server respond depending on that choice. I'll figure it out eventually. Thanks again for all your help. John -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Tue May 18 16:49:31 2021 From: admin at allunix.ru (Admin) Date: Tue, 18 May 2021 21:49:31 +0700 Subject: [Gambas-user] strange Message behavior In-Reply-To: References: <445c3c8e-92c1-7f4e-9ecb-ebdeb45d1a99@allunix.ru> <9079e049-6cd1-e625-bdf3-e16909c3f25b@gmail.com> <59408d95-c119-6ebe-8f66-b6cf84d1be9c@allunix.ru> <379b10fc-9f52-7f8c-c855-df627cfcd7a4@gmail.com> <08999f40-be29-5ada-2ce8-0cc6bc42295c@gmail.com> <2fc8aa8d-7337-cdda-0539-96c62a73db85@gmail.com> <053e0d3b-0139-b5e5-d0a5-8ae37d6bcb30@gmail.com> <1efcb7d3-e005-831c-5672-ce47e2d88093@allunix.ru> <1a8d2054-a352-88ae-5079-8317c2596a78@gmail.com> <6fa19c8e-522b-d1e0-94a8-36edbd418196@allunix.ru> <51bbd925-0311-08a4-2ce0-13d122e812e9@gmail.com> Message-ID: <6bb3a483-a533-7264-132b-de2f72c36d20@allunix.ru> 18.05.2021 14:17, Bruce Steers ?????: > > > On Mon, 17 May 2021 at 12:24, Beno?t Minisini > wrote: > > Le 14/05/2021 ? 11:01, Bruce Steers a ?crit?: > > > >? ? ?But of course removing rmdirs from /app/Makefile fixes it. > > > > > > it's the? --ignore-fail-on-non-empty arg with rmdir BSD rmdir > does not > > support it. > > > > Do you know of a way to get the same effect as *rmdir > > --ignore-fail-on-non-empty *with BSD Dimitry? > > ** > > > > BruceS > > > > I removed the use of '--ignore-fail-on-non-empty' flag in master, > I do > differently now. > > Regards, > > -- > Beno?t Minisini > > > awesome :) good stuff Ben that should fix BSD? :) > > I think it still exists in app/Makefile.am and main/Makefile.am > BruceS It does. But other that, it's perfect. Here's how I build it under freshly installed base-only FreeBSD 13: pkg install mc mysql57-client gtk2 qt5 gcc pkgconf autoconf automake git libtool librsvg2 gmime30 git clone --depth=1 https://gitlab.com/gambas/gambas.git cd gambas/ ./reconf-all ./configure -C --disable-postgresql --disable-sqlite2 --disable-sqlite3 --disable-sdl --disable-sdlsound --disable-sdl2 --disable-v4l --disable-crypt --disable-qt4 --disable-gtk3 --disable-opengl --disable-keyring --disable-pdf --disable-poppler --disable-cairo --disable-gsl --disable-openal make make install and make install will fail only because of rmdir, remove it, and it's perfect. Oh, the projects I create for my servers. Changed my life, but I already said that. Dmitry. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue May 18 16:59:18 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 18 May 2021 10:59:18 -0400 Subject: [Gambas-user] Network Programming In-Reply-To: References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: El mar, 18 de may. de 2021 a la(s) 10:44, John Dovey (dovey.john at gmail.com) escribi?: > On Tue, 18 May 2021 at 09:25, T Lee Davidson > wrote: > >> The socket objects representing connections to unique clients are >> contained in an array of objects (ie. the Clients object >> array). When a connection request is received, a unique socket is created >> with ServerSocket.Accept() and is added to the Clients >> array (list?) with Clients.Add(); one socket per unique client. All the >> sockets created are attached to the "Socket" event >> observer. [http://gambaswiki.org/wiki/comp/gb.net/serversocket/accept] >> >> When a message is received from a client, the Socket_Read() event handler >> is triggered. Now, since we don't know exactly which >> client sent the message, we can use the Last keyword which represents >> whichever server socket received the current message from >> its connected client. And since Last, in this case, is a handle on a >> socket, all the properties and methods of Socket are >> available to us (ie. Last.RemoteHost). >> >> Thank you for the explanation. I'm going to have to step through my > program in debug mode until I understand exactly what is happening and what > information is stored where, because that's still not entirely clear to me. > is pretty difficult to understand but it seems managing client sockets is a bit more elaborated, so we must iterate in all our connected clients using LAST until we have all the required information right? > >> I'm not sure exactly what you mean by, "manage the full session with the >> client." Isn't the function of a chat server to >> basically forward a message sent by one client to all the other clients? >> What management of individual clients would be necessary? >> >> > I'm not quite sure what would be "necessary". That's what I'm trying to > figure out. One aspect of where I'm heading is to have the server accept a > remote connection, then spawn off a brand new form which will echo locally > what is happening on the remote. The idea I have here, and I'm really > stumbling in the dark, is I'd like to have a client-server setup where I > can generate cairo commands on the server and send them to the remote > client where they would be rendered. I want to also render them locally so > that I can send (on the client's request) an SVG/PNG/PDF version of what's > been rendered. I did something similar many years ago using Winsock > connections, but there I had to maintain my own in-memory table of > connections etc. > > To start with, I'd like to be able to just Telnet to the port I'm > listening on, receive a text menu, and then send a menu choice and have the > server respond depending on that choice. I'll figure it out eventually. > > Thanks again for all your help. > John > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Tue May 18 18:57:27 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 18 May 2021 11:57:27 -0500 Subject: [Gambas-user] Missing components Message-ID: Hi, I'm trying to open some sample projects from the Gambas Book site ( https://gambas-buch.de/lib/exe/fetch.php?media=24:24.1:24.1.2.2:tcp.server.client.chat.tar.gz), and it seems I am missing a component [image: image.png] [image: Screenshot 2021-05-18 115551.png] gambas3: warning: cannot find /usr/share/gambas3/info/gb.qt4.info gbx3: warning: circular references detected: gbx3: 1 CComponent -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 10361 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 2021-05-18 115551.png Type: image/png Size: 13024 bytes Desc: not available URL: From bsteers4 at gmail.com Tue May 18 19:24:08 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 May 2021 18:24:08 +0100 Subject: [Gambas-user] Missing components In-Reply-To: References: Message-ID: You can manually edit the .project file and change gb.qt4 to gb.gui.qt or gb.qt5 It is because your system does not use qt4 but the application uses gb.qt4 explicitly. BruceS On Tue, 18 May 2021 at 17:58, John Dovey wrote: > Hi, > I'm trying to open some sample projects from the Gambas Book site ( > https://gambas-buch.de/lib/exe/fetch.php?media=24:24.1:24.1.2.2:tcp.server.client.chat.tar.gz), > and it seems I am missing a component > > [image: image.png] > > [image: Screenshot 2021-05-18 115551.png] > gambas3: warning: cannot find /usr/share/gambas3/info/gb.qt4.info > gbx3: warning: circular references detected: > gbx3: 1 CComponent > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 10361 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 2021-05-18 115551.png Type: image/png Size: 13024 bytes Desc: not available URL: From dovey.john at gmail.com Tue May 18 20:10:50 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 18 May 2021 13:10:50 -0500 Subject: [Gambas-user] Missing components In-Reply-To: References: Message-ID: Perfect. That worked. Thank you. On Tue, 18 May 2021 at 12:25, Bruce Steers wrote: > You can manually edit the .project file and change gb.qt4 to gb.gui.qt or > gb.qt5 > > It is because your system does not use qt4 but the application uses gb.qt4 > explicitly. > > BruceS > > On Tue, 18 May 2021 at 17:58, John Dovey wrote: > >> Hi, >> I'm trying to open some sample projects from the Gambas Book site ( >> https://gambas-buch.de/lib/exe/fetch.php?media=24:24.1:24.1.2.2:tcp.server.client.chat.tar.gz), >> and it seems I am missing a component >> >> [image: image.png] >> >> [image: Screenshot 2021-05-18 115551.png] >> gambas3: warning: cannot find /usr/share/gambas3/info/gb.qt4.info >> gbx3: warning: circular references detected: >> gbx3: 1 CComponent >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 10361 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 2021-05-18 115551.png Type: image/png Size: 13024 bytes Desc: not available URL: From bsteers4 at gmail.com Tue May 18 20:26:15 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 May 2021 19:26:15 +0100 Subject: [Gambas-user] Missing components In-Reply-To: References: Message-ID: On Tue, 18 May 2021 at 19:12, John Dovey wrote: > Perfect. That worked. Thank you. > > On Tue, 18 May 2021 at 12:25, Bruce Steers wrote: > >> You can manually edit the .project file and change gb.qt4 to gb.gui.qt or >> gb.qt5 >> >> It is because your system does not use qt4 but the application uses >> gb.qt4 explicitly. >> >> BruceS >> >> You're welcome , i just realised i didn't even see the .ext part on that screenshot and thought it just said gb.qt4. glad you figured it all out :) BruceS > On Tue, 18 May 2021 at 17:58, John Dovey wrote: >> >>> Hi, >>> I'm trying to open some sample projects from the Gambas Book site ( >>> https://gambas-buch.de/lib/exe/fetch.php?media=24:24.1:24.1.2.2:tcp.server.client.chat.tar.gz), >>> and it seems I am missing a component >>> >>> [image: image.png] >>> >>> [image: Screenshot 2021-05-18 115551.png] >>> gambas3: warning: cannot find /usr/share/gambas3/info/gb.qt4.info >>> gbx3: warning: circular references detected: >>> gbx3: 1 CComponent >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 10361 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 2021-05-18 115551.png Type: image/png Size: 13024 bytes Desc: not available URL: From bsteers4 at gmail.com Tue May 18 20:36:10 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 May 2021 19:36:10 +0100 Subject: [Gambas-user] Shell Wait without Freeze Program In-Reply-To: References: Message-ID: On Tue, 18 May 2021 at 15:26, Hasan Merkit wrote: > Very thanks Bruce Steers, > > > > I used your recommended codes: > > > > 'myProc = Shell "bash -c > /home/hasanmerkit/.teteosnet/temp/piluxupdate_up_" & InstallingUpdateID & > ".sh" > > myProc = Shell "gedit" > > > > StateCheck: > > If myProc.State = Process.Running Then > > Print "running" > > Sleep 1 > > Goto StateCheck > > Else > > Print "ending" > > Endif > > > > But i terminated ?gedit?, and continue returning Process.Running = True. > > Print myProc.Running : printing 1 > > Print myProc.State : printing 1 > > > That is odd. I found the same running pluma it was not expected but i never use the *Sleep* command. If you use *Wait 1* Not Sleep 1 It works BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue May 18 20:48:18 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 May 2021 19:48:18 +0100 Subject: [Gambas-user] Shell Wait without Freeze Program In-Reply-To: References: Message-ID: PS. Remember to call the following command to kill the process handler either after use or in the Form_Close() event. *If myProc Then myProc.Kill* or or program may not exit cleanly. BruceS On Tue, 18 May 2021 at 19:36, Bruce Steers wrote: > > > On Tue, 18 May 2021 at 15:26, Hasan Merkit > wrote: > >> Very thanks Bruce Steers, >> >> >> >> I used your recommended codes: >> >> >> >> 'myProc = Shell "bash -c >> /home/hasanmerkit/.teteosnet/temp/piluxupdate_up_" & InstallingUpdateID & >> ".sh" >> >> myProc = Shell "gedit" >> >> >> >> StateCheck: >> >> If myProc.State = Process.Running Then >> >> Print "running" >> >> Sleep 1 >> >> Goto StateCheck >> >> Else >> >> Print "ending" >> >> Endif >> >> >> >> But i terminated ?gedit?, and continue returning Process.Running = True. >> >> Print myProc.Running : printing 1 >> >> Print myProc.State : printing 1 >> >> >> > > That is odd. > I found the same running pluma > > it was not expected but i never use the *Sleep* command. > > If you use > > *Wait 1* > > Not > > Sleep 1 > > > It works > > BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue May 18 23:24:02 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 18 May 2021 17:24:02 -0400 Subject: [Gambas-user] Network Programming In-Reply-To: References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: On 5/18/21 10:59 AM, PICCORO McKAY Lenz wrote: > is pretty difficult to understand but it seems managing client sockets is a bit more elaborated, so we must iterate in all our > connected clients using LAST until we have all the required information right? > No, LAST is a handle on the socket that triggered the latest Socket_Read() event. There's no need to iterate through the connected sockets to see which one received the current message from its client. -- Lee From t.lee.davidson at gmail.com Tue May 18 23:39:54 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 18 May 2021 17:39:54 -0400 Subject: [Gambas-user] Network Programming In-Reply-To: References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: On 5/18/21 10:43 AM, John Dovey wrote: > Perfect. I changed my Form_Close() to include the lines > If Server Then ' From:? Static Server As ClsServer > ? ? Server.Srv.Close() > ? End If > That works perfectly. Just FYI, doing it that way breaks the principle of encapsulation. Suppose you change the variable name of the SocketServer in your Server class and forget to change it in your main Form. You then just created a bug for yourself. Perhaps consider creating a Close subroutine in your Server class the executes Srv.Close(). Then, you have only one file in which the variable name needs to be kept consistent. The call to Close in your main form would then be, simply, "Server.Close()". > I'm not quite sure what would be "necessary". That's what I'm trying to figure out.? One aspect of where I'm heading is to have > the server accept a remote connection, then spawn off a brand new form which will echo locally what is happening on the remote. > The idea I have here, and I'm really stumbling in the dark, is I'd like to have a client-server setup where I can generate cairo > commands on the server and send them to the remote client where they would be rendered. I want to also render them locally so > that I can send (on the client's request) an SVG/PNG/PDF version of what's been rendered. I did something similar many years ago > using Winsock connections, but there I had to maintain my own in-memory table of connections etc. You may wish to take a look at the ServerSocket example in the Gambas Farm. It uses the Socket's Tag property to keep track of data unique to each client and respond accordingly. Forms also have a Tag property. You might be able to use either Socket.Tag or Form.Tag to associate a socket with a form. -- Lee From dovey.john at gmail.com Tue May 18 23:42:37 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 18 May 2021 16:42:37 -0500 Subject: [Gambas-user] Network Programming In-Reply-To: References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: On Tue, May 18, 2021 at 4:41 PM T Lee Davidson wrote: > . > > Just FYI, doing it that way breaks the principle of encapsulation. Suppose > you change the variable name of the SocketServer in > your Server class and forget to change it in your main Form. You then just > created a bug for yourself. > > Perhaps consider creating a Close subroutine in your Server class the > executes Srv.Close(). Then, you have only one file in > which the variable name needs to be kept consistent. The call to Close in > your main form would then be, simply, "Server.Close()". > Good idea > > > > I'm not quite sure what would be "necessary". That's what I'm trying to > figure out. One aspect of where I'm heading is to have > > the server accept a remote connection, then spawn off a brand new form > which will echo locally what is happening on the remote. > > The idea I have here, and I'm really stumbling in the dark, is I'd like > to have a client-server setup where I can generate cairo > > commands on the server and send them to the remote client where they > would be rendered. I want to also render them locally so > > that I can send (on the client's request) an SVG/PNG/PDF version of > what's been rendered. I did something similar many years ago > > using Winsock connections, but there I had to maintain my own in-memory > table of connections etc. > > You may wish to take a look at the ServerSocket example in the Gambas > Farm. It uses the Socket's Tag property to keep track of > data unique to each client and respond accordingly. Forms also have a Tag > property. You might be able to use either Socket.Tag > or Form.Tag to associate a socket with a form. > Another good idea. I?ll look for it. Thanks again John > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.roper at iinet.net.au Wed May 19 05:12:02 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Wed, 19 May 2021 13:12:02 +1000 Subject: [Gambas-user] TextEditor - Mode - Custom In-Reply-To: References: <2d59d2b0-7bed-3c77-c2cb-c3efe197fc58@gmail.com> Message-ID: With the text editor you can select the highlight mode for C+,Gambas,Html & more.... There is a 'custom' mode, but I can't find a way to set the keywords that I want to highlight. The TextEditor.keywords[] string array is read only. Is there a way to do this ? Cheers, Ian. From ian.roper at iinet.net.au Wed May 19 05:40:34 2021 From: ian.roper at iinet.net.au (Ian Roper) Date: Wed, 19 May 2021 13:40:34 +1000 Subject: [Gambas-user] WebView - Findtext Message-ID: <6065a11d-f1b9-a5a8-069a-dbb49ffea173@iinet.net.au> The qt webview component has a Findtext method. MyWebView.Findtext("text",Backward,CaseSensitive,Wrap) The first issue I am trying to resolve, is that the search function does not have a 'whole word' parameter. ie: if you search for '*can*' it will highlight 'va*can*t'. The second issue is that there is no way I can find to return the search 'start position' to the top of the page. If you are searching for a list of words in order. Apple,Banana,Pineapple. and the text is: Apple Pineapple Pineapple Banana Apple. After the first search item is complete (Apple) then a search for the other items in the list returns zero found. The search pointer is set to the final 'apple' in the list and no other search items from the list are found. Is there a way to start a search at the beginning of the document ? Note# MyWebView.Refresh does not do this.- Tested. Note# Setting the 'wrap' parameter in the findtext method to 'True', puts the search into an endless loop. Any ideas ? Cheers, Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasanmerkit at outlook.com Wed May 19 12:42:12 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Wed, 19 May 2021 10:42:12 +0000 Subject: [Gambas-user] Shell Wait without Freeze Program Message-ID: Very very thank you Bruce Steers :) Your recommends solved my problem <3 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 19 13:15:59 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 19 May 2021 13:15:59 +0200 Subject: [Gambas-user] WebView - Findtext In-Reply-To: <6065a11d-f1b9-a5a8-069a-dbb49ffea173@iinet.net.au> References: <6065a11d-f1b9-a5a8-069a-dbb49ffea173@iinet.net.au> Message-ID: Il giorno mer 19 mag 2021 alle ore 05:41 Ian Roper ha scritto: > The qt webview component has a Findtext method. > > MyWebView.Findtext("text",Backward,CaseSensitive,Wrap) > > The first issue I am trying to resolve, is that the search function does > not have a 'whole word' parameter. > > ie: if you search for '*can*' it will highlight 'va*can*t'. > > The second issue is that there is no way I can find to return the search > 'start position' to the top of the page. > > If you are searching for a list of words in order. Apple,Banana,Pineapple. > > and the text is: > > Apple > > Pineapple > > Pineapple > > Banana > > Apple. > > After the first search item is complete (Apple) then a search for the > other items in the list returns zero found. > The search pointer is set to the final 'apple' in the list and no other > search items from the list are found. > > Is there a way to start a search at the beginning of the document ? > > Note# MyWebView.Refresh does not do this.- Tested. > > Note# Setting the 'wrap' parameter in the findtext method to 'True', puts > the search into an endless loop. > > Any ideas ? > > Cheers, > > Ian > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi, the WebView component is complex on the Farm there is something, looking for webbrowser... Try this code: --------------------------------- Public Sub ButtonBox1_Click() If WebView1.FindText(ButtonBox1.Text,,, False) Then If Message.Question("xxx?", "Yes", "No") = 1 Then WebView1.FindText(ButtonBox1.Text,,, True) Else ButtonBox1.Clear WebView1.FindText(ButtonBox1.Text,,, True) Endif Else WebView1.SetFocus() Endif End Public Sub Form_Open() WebView1.HTML = "Banana
Apple
Pineapple
Pineapple
Banana" ButtonBox1.Text = "apple" End ------------------------------------ Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 19 13:34:21 2021 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 19 May 2021 13:34:21 +0200 Subject: [Gambas-user] WebView - Findtext In-Reply-To: References: <6065a11d-f1b9-a5a8-069a-dbb49ffea173@iinet.net.au> Message-ID: So it is better written. I forgot to mention that then after NO, you can try to enter 'banana' Public Sub ButtonBox1_Click() If WebView1.FindText(ButtonBox1.Text,,, False) Then If Message.Question("xxx?", "Yes", "No") = 2 Then ButtonBox1.Clear Endif WebView1.FindText(ButtonBox1.Text,,, True) Else WebView1.SetFocus() Endif End Public Sub Form_Open() WebView1.HTML = "Banana
Apple
Pineapple
Pineapple
Banana" ButtonBox1.Text = "apple" End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From hasanmerkit at outlook.com Wed May 19 15:56:06 2021 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Wed, 19 May 2021 13:56:06 +0000 Subject: [Gambas-user] Turkish language update: tr.po Message-ID: Can see changes here: https://gitlab.com/gambas/gambas/-/merge_requests/229/diffs?commit_id=746c3c831244814a9eac69be75b56151787634c4 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tr.po Type: application/octet-stream Size: 185366 bytes Desc: tr.po URL: From g4mba5 at gmail.com Wed May 19 16:30:12 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 19 May 2021 16:30:12 +0200 Subject: [Gambas-user] Turkish language update: tr.po In-Reply-To: References: Message-ID: <7f42a7e5-9a58-50c7-7aea-cfa66e6dac4f@gmail.com> Le 19/05/2021 ? 15:56, Hasan Merkit a ?crit?: > Can see changes here: > https://gitlab.com/gambas/gambas/-/merge_requests/229/diffs?commit_id=746c3c831244814a9eac69be75b56151787634c4 > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You have to write your commit messages the way it is explained in the 'README.commit' file. -- Beno?t Minisini -------------- next part -------------- STANDARD FORMAT FOR COMMIT MESSAGES ----------------------------------- This message is for all developers that will commit something into the git repository. I want to have a standard way to write commit messages, so that ChangeLog can be almost automatically generated. The format is the following: - One line that will be a summary of the changes displayed next to the commit in GitLab. - A ChangeLog slot, between '[' & ']' Slots are the name of the component, in uppercase if possible, or some other slots like [INTERPRETER], [COMPILER]... - A ChangeLog modification: a '*', a space, the word 'BUG','NEW' or 'OPT', a colon, a space, and the text. 'BUG' is for a fix, 'NEW' for a new feature, and 'OPT' for an optimization. If a changelog modification is more than one line, you must use a two space indent. - Other ChangeLog modifications for the same slot. - Other slots. - Void lines are ignored. - All other lines won't go into the changelog. For example: --8<----------- I did this thing, and this will be the summary displayed in GitLab. [GB.QT5] * BUG: I fixed this bug. * NEW: I made this very long modification.... ? and it takes more than one line to write it. This won't go into the changelog too. [GB.SDL2] * BUG: What an awful bug! [GB.GTK3] * NEW: I finally finished the component :-) --8<----------- You should really try hard to follow this scheme, otherwise generating the release notes becomes truly a pain for me. Be nice! -- Beno?t. From g4mba5 at gmail.com Wed May 19 16:32:27 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 19 May 2021 16:32:27 +0200 Subject: [Gambas-user] Turkish language update: tr.po In-Reply-To: <7f42a7e5-9a58-50c7-7aea-cfa66e6dac4f@gmail.com> References: <7f42a7e5-9a58-50c7-7aea-cfa66e6dac4f@gmail.com> Message-ID: Le 19/05/2021 ? 16:30, Beno?t Minisini a ?crit?: > Le 19/05/2021 ? 15:56, Hasan Merkit a ?crit?: >> Can see changes here: >> https://gitlab.com/gambas/gambas/-/merge_requests/229/diffs?commit_id=746c3c831244814a9eac69be75b56151787634c4 >> >> >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > You have to write your commit messages the way it is explained in the > 'README.commit' file. > In your specific case, the result is something like that: --8<------------------------------------- Update Turkisk translation. [DEVELOPMENT ENVIRONMENT] * NEW: Update Turkisk translation. --8<------------------------------------- -- Beno?t Minisini From mckaygerhard at gmail.com Wed May 19 18:07:26 2021 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 19 May 2021 12:07:26 -0400 Subject: [Gambas-user] X11 Display In-Reply-To: References: Message-ID: software rasterizer is a module in X org service, to made all opengl by software event by hardware, in my computers the powered NVIDIA GPU card was pretty fantasting made all by this module (eventu usage of the stupid nv one). but now that was removed (fu*cking removed) and now any linux that dont have opengl canot start any aplication.. by example if you dont have a SUPPORTED intel, amd (ati) or nvidia (puach) GPU with right supported Xorg module, you dont be able to run almost any applications, Matrox and SGI are powered GPU's that cannot be able to run some applications due that stupid behaviour inclusivelly if the first error XDG_RUNTIME_DIR that is not so importat is resolved you cannot runs almost any application. is a sh*t problem of QT today and mostly any kind of linux developing unfortunatelly all developers today are windoser like and opengl is forced ! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El s?b, 15 de may. de 2021 a la(s) 09:56, John Dovey (dovey.john at gmail.com) escribi?: > Probably a *noob* question, but when I start gambas3 from the command line > on Ubuntu 20.04 WSL2, I get the following: > > $ gambas3 > QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to > '/tmp/runtime-boondock' > libGL error: No matching fbConfigs or visuals found > libGL error: failed to load driver: swrast > > Any idea what this means? Is there something I need to configure or > install? > > Thanks > John > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed May 19 18:12:30 2021 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 19 May 2021 09:12:30 -0700 (PDT) Subject: [Gambas-user] Initial support of class namespaces in master In-Reply-To: References: Message-ID: <437578717.6797.1621440750958.JavaMail.zimbra@westwoodsvcs.com> Ok improper but If I put Export as MyNames and forget the :classname there is no error but the class can not be found at runtime inside the module or out. Should there be a compile error? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On May 17, 2021, at 5:29 PM, Beno?t Minisini g4mba5 at gmail.com wrote: > Hi, > > As the subject tells you, I have pushed the initial support of class > namespaces in the master. > > This is done through a new syntax of the EXPORT keyword: > > EXPORT AS : > > And allowing to have a colon inside a class name. > > This syntax exports a class by using ":" as its public > name, instead of the name of the class in the project. > > Outside of the project, you will have to use "NameSpace:Name" to use the > class. > > Inside the project, you should be able to use "NameSpace:Name" or the > internal name of the class indifferently. > > Note that now a class can now be exported with a different name. > > Namespaces do not really exist inside the interpreter or the compiler. > It's just the part of the class name before the colon. > > In the future, I will add the ability to choose a default namespace in > the project properties, so that the "EXPORT" keyword alone directly > exports the class to that namespace. > > Or a syntax EXPORT TO NameSpace as syntactic sugar for EXPORT AS > NameSpace:, where is the name of > the class in the project. > > Tell me what you think, and more important if you find problems with > that new feature. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From dovey.john at gmail.com Wed May 19 23:42:05 2021 From: dovey.john at gmail.com (John Dovey) Date: Wed, 19 May 2021 16:42:05 -0500 Subject: [Gambas-user] X11 Display In-Reply-To: References: Message-ID: Well, I don?t know about all of that. I?m running Ubuntu on WSL (Windows) and run a free server on windows and everything seems to run just fine. I get the odd hiccup every now and then but just close the window and reopen it and it?s working again. JD On Wed, May 19, 2021 at 12:02 PM PICCORO McKAY Lenz wrote: > software rasterizer is a module in X org service, to made all opengl by > software event by hardware, in my computers the powered NVIDIA GPU card was > pretty fantasting made all by this module (eventu usage of the stupid nv > one). > > but now that was removed (fu*cking removed) and now any linux that dont > have opengl canot start any aplication.. by example if you dont have a > SUPPORTED intel, amd (ati) or nvidia (puach) GPU with right supported Xorg > module, you dont be able to run almost any applications, Matrox and SGI are > powered GPU's that cannot be able to run some applications due that stupid > behaviour > > inclusivelly if the first error XDG_RUNTIME_DIR that is not so importat is > resolved you cannot runs almost any application. is a sh*t problem of QT > today and mostly any kind of linux developing > > unfortunatelly all developers today are windoser like and opengl is forced > ! > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > El s?b, 15 de may. de 2021 a la(s) 09:56, John Dovey (dovey.john at gmail.com) > escribi?: > >> Probably a *noob* question, but when I start gambas3 from the command >> line on Ubuntu 20.04 WSL2, I get the following: >> >> $ gambas3 >> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to >> '/tmp/runtime-boondock' >> libGL error: No matching fbConfigs or visuals found >> libGL error: failed to load driver: swrast >> >> Any idea what this means? Is there something I need to configure or >> install? >> >> Thanks >> John >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu May 20 09:54:11 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 20 May 2021 09:54:11 +0200 Subject: [Gambas-user] Dialog.Save asks in English Message-ID: For a long time, I had Dialog.Save included in one of my programs, but never had an existing file overwritten. However, when I programmed it, I took care of this case. Yesterday much to my surprise I saw that this dialog already covers the case of an existing file, asking whether the file should be overwritten. But it asks in English, and I do not see a chance to change the language or simply switch this behaviour off (as I have a request programmed anyway). So now it is that you are asked twice, first by the dialog (in English) and then by my program (in German). Any idea how to localize or get rid of it? Regards Rolf From bsteers4 at gmail.com Thu May 20 12:11:30 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 20 May 2021 11:11:30 +0100 Subject: [Gambas-user] Autocomplete would be good if it could list all _ methods Message-ID: It would be handy for learning if when writing functions like Public Sub _new() Public Sub _init() etc. if Autocomplete could list all functions starting with _ when _ is the first char used it would be really useful to see all the available special methods. Just thought i'd suggest that :) Wishing well BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Thu May 20 12:16:17 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 20 May 2021 12:16:17 +0200 Subject: [Gambas-user] Debug window Message-ID: Hello, my debug window does display the information I send to it, but all the bar buttons are grayed out and disabled, and in the status bar the textbox in front of the question mark is inactive too. Is this normal? I looked for options in the menus, I found nothing? Cordially [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.4.0-73-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=217548 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1476,unix/:/tmp/.ICE- unix/1476 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1536 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Thu May 20 12:19:30 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 20 May 2021 12:19:30 +0200 Subject: [Gambas-user] gb.ncurses component would be unusable? Message-ID: Hello, when, in Project/Properties/Component, I check gb.ncurses, and I launch the execution (in the IDE in design mode) of the program, I have a message (a balloon that points to native code): "'Screen.Height' is incorrectly overridden in class 'Screen'" the program goes into pauses. If I continue the execution by pressing Play again, message (info): "The program returned the value: 1" Click on OK, the program stops. Is the NCurses component unusable? Regards [System]Gambas=3.16OperatingSystem=LinuxKernel=5.4.0-73- genericArchitecture=x86_64Distribution=Ubuntu 20.04.2 LTSDesktop=MATEFont=Ubuntu,11Scale=8Theme=traditionalgreenLanguage=fr_FR.UTF- 8Memory=7838M [Libraries]Cairo=libcairo.so.2.11600.0Curl=libcurl.so.4.6.0DBus=libdbus- 1.so.3.19.11GDK2=libgdk-x11-2.0.so.0.2400.32GDK3=libgdk- 3.so.0.2404.16GStreamer=libgstreamer-1.0.so.0.1602.0GTK+2=libgtk-x11- 2.0.so.0.2400.32GTK+3=libgtk- 3.so.0.2404.16OpenGL=libGL.so.1.7.0Poppler=libpoppler.so.73.0.0Poppler=libpopple r.so.97.0.0QT5=libQt5Core.so.5.12.8SDL=libSDL- 1.2.so.0.11.4SQLite=libsqlite3.so.0.8.6 [Environment]COMPIZ_CONFIG_PROFILE=mateDBUS_SESSION_BUS_ADDRESS=unix:path=/run/u ser/1000/busDEFAULTS_PATH=/usr/share/gconf/mate.default.pathDESKTOP_SESSION=mate DISPLAY=:0GB_GUI=gb.gtk3GDMSESSION=mateGDM_LANG=fr_FRGIO_LAUNCHED_DESKTOP_FILE=< home>/Bureau/gambas3.desktopGIO_LAUNCHED_DESKTOP_FILE_PID=219998GPG_AGENT_INFO=/ run/user/1000/gnupg/S.gpg-agent:0:1GTK_MODULES=appmenu-gtk-module:gail:atk- bridge:canberra-gtk- moduleGTK_OVERLAY_SCROLLING=0HOME=INSIDE_CAJA_PYTHON=LANG=fr_FR.UTF- 8LANGUAGE=fr_FR.UTF-8LC_ADDRESS=fr_FR.UTF-8LC_ALL=fr_FR.UTF- 8LC_IDENTIFICATION=fr_FR.UTF-8LC_MEASUREMENT=fr_FR.UTF-8LC_MONETARY=fr_FR.UTF- 8LC_NAME=fr_FR.UTF-8LC_NUMERIC=fr_FR.UTF-8LC_PAPER=fr_FR.UTF- 8LC_TELEPHONE=fr_FR.UTF-8LC_TIME=fr_FR.UTF- 8LOGNAME=MANDATORY_PATH=/usr/share/gconf/mate.mandatory.pathMATE_DESKTOP_S ESSION_ID=this-is- deprecatedPAPERSIZE=a4PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sb in:/bin:/usr/games:/usr/local/games:/snap/binPWD=QT_ACCESSIBILITY=1QT_AUTO _SCREEN_SCALE_FACTOR=0QT_LOGGING_RULES=*.debug=falseQT_QPA_PLATFORMTHEME=gtk2QT_ SCALE_FACTOR=1SESSION_MANAGER=local/:@/tmp/.ICE- unix/1476,unix/:/tmp/.ICE- unix/1476SHELL=/bin/bashSHLVL=0SSH_AGENT_PID=1536SSH_AUTH_SOCK=/run/user/1000/ke yring/sshTZ=:/etc/localtimeUBUNTU_MENUPROXY=1USER=XAUTHORITY=/.Xauth orityXDG_CONFIG_DIRS=/etc/xdg/xdg- mate:/etc/xdgXDG_CURRENT_DESKTOP=MATEXDG_DATA_DIRS=/usr/share/mate:/usr/local/sh are:/usr/share:/var/lib/snapd/desktopXDG_GREETER_DATA_DIR=/var/lib/lightdm- data/XDG_RUNTIME_DIR=/run/user/1000XDG_SEAT=seat0XDG_SEAT_PATH=/org/freede sktop/DisplayManager/Seat0XDG_SESSION_CLASS=userXDG_SESSION_DESKTOP=mateXDG_SESS ION_ID=c2XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0XDG_SESSION_TY PE=x11XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Thu May 20 12:23:57 2021 From: gambas at cd-bahia.com (Dag JNJ) Date: Thu, 20 May 2021 12:23:57 +0200 Subject: [Gambas-user] Seek in IDE Message-ID: <09b95e34-4890-49bd-b65b-82d1636c0d55@cd-bahia.com> Hi, I want to point at a? little issue in the IDE, when seek with Ctrl+F, and the item is not found, the popup-window loses focus. When I then type anew for another item, the typing happens in the source window. one has to press Ctrl+F again. Not a big deal, a little inconvenient only. I had to repair some code before I got aware. Regards, Dag From rwe-sse at osnanet.de Thu May 20 12:33:03 2021 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 20 May 2021 12:33:03 +0200 Subject: [Gambas-user] Autocomplete would be good if it could list all _ methods In-Reply-To: References: Message-ID: <8367b4d3-2b73-bb1d-630c-d689f09cae17@osnanet.de> Am 20.05.21 um 12:11 schrieb Bruce Steers: > > It would be handy for learning if when writing functions like > > Public Sub _new() > Public Sub _init() > etc. > > if Autocomplete could list all functions starting with _? when _ is the > first char used it would be really useful to see all the available > special methods. > > Just thought i'd suggest that :) > Wishing well > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Oh yes, Bruce. The events aren't in the help with F2. For instance, you have Table_DblClick() you point to DblClick and press F2 - nothing happens. This has been missing forever. However, typing Public Sub Table_ opens the autocomplete list of events for Table. Regards Rolf From bsteers4 at gmail.com Thu May 20 12:55:29 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 20 May 2021 11:55:29 +0100 Subject: [Gambas-user] Autocomplete would be good if it could list all _ methods In-Reply-To: <8367b4d3-2b73-bb1d-630c-d689f09cae17@osnanet.de> References: <8367b4d3-2b73-bb1d-630c-d689f09cae17@osnanet.de> Message-ID: On Thu, 20 May 2021 at 11:34, Rolf-Werner Eilert wrote: > Am 20.05.21 um 12:11 schrieb Bruce Steers: > > > > It would be handy for learning if when writing functions like > > > > Public Sub _new() > > Public Sub _init() > > etc. > > > > if Autocomplete could list all functions starting with _ when _ is the > > first char used it would be really useful to see all the available > > special methods. > > > > Just thought i'd suggest that :) > > Wishing well > > BruceS > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Oh yes, Bruce. The events aren't in the help with F2. For instance, you > have Table_DblClick() you point to DblClick and press F2 - nothing happens. > The events i mean are in http://gambaswiki.org/wiki/cat/special but it does not say if all the listed methods are in all classes plus i'd assume some classes may have other special methods not listed there? Would be handy if autocomplete (that kicks in after 3 characters) detected a single _ char > This has been missing forever. > > However, typing Public Sub Table_ opens the autocomplete list of events > for Table. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu May 20 12:56:59 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 20 May 2021 11:56:59 +0100 Subject: [Gambas-user] gb.ncurses component would be unusable? In-Reply-To: References: Message-ID: I have made this same mistake. ncurses is CLI only and cannot be used with any sort of GUI application. On Thu, 20 May 2021 at 11:21, CD wrote: > Hello, > > when, in Project/Properties/Component, > > I check gb.ncurses, and I launch the execution (in the IDE in design mode) of the program, > > I have a message (a balloon that points to native code): > > "'Screen.Height' is incorrectly overridden in class 'Screen'" > > the program goes into pauses. > > If I continue the execution by pressing Play again, message (info): > > "The program returned the value: 1" > > Click on OK, the program stops. > > > Is the NCurses component unusable? > > > Regards > > > > [System] > > Gambas=3.16 > > OperatingSystem=Linux > > Kernel=5.4.0-73-generic > > Architecture=x86_64 > > Distribution=Ubuntu 20.04.2 LTS > > Desktop=MATE > > Font=Ubuntu,11 > > Scale=8 > > Theme=traditionalgreen > > Language=fr_FR.UTF-8 > > Memory=7838M > > > [Libraries] > > Cairo=libcairo.so.2.11600.0 > > Curl=libcurl.so.4.6.0 > > DBus=libdbus-1.so.3.19.11 > > GDK2=libgdk-x11-2.0.so.0.2400.32 > > GDK3=libgdk-3.so.0.2404.16 > > GStreamer=libgstreamer-1.0.so.0.1602.0 > > GTK+2=libgtk-x11-2.0.so.0.2400.32 > > GTK+3=libgtk-3.so.0.2404.16 > > OpenGL=libGL.so.1.7.0 > > Poppler=libpoppler.so.73.0.0 > > Poppler=libpoppler.so.97.0.0 > > QT5=libQt5Core.so.5.12.8 > > SDL=libSDL-1.2.so.0.11.4 > > SQLite=libsqlite3.so.0.8.6 > > > [Environment] > > COMPIZ_CONFIG_PROFILE=mate > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > DEFAULTS_PATH=/usr/share/gconf/mate.default.path > > DESKTOP_SESSION=mate > > DISPLAY=:0 > > GB_GUI=gb.gtk3 > > GDMSESSION=mate > > GDM_LANG=fr_FR > > GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop > > GIO_LAUNCHED_DESKTOP_FILE_PID=219998 > > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > > GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module > > GTK_OVERLAY_SCROLLING=0 > > HOME= > > INSIDE_CAJA_PYTHON= > > LANG=fr_FR.UTF-8 > > LANGUAGE=fr_FR.UTF-8 > > LC_ADDRESS=fr_FR.UTF-8 > > LC_ALL=fr_FR.UTF-8 > > LC_IDENTIFICATION=fr_FR.UTF-8 > > LC_MEASUREMENT=fr_FR.UTF-8 > > LC_MONETARY=fr_FR.UTF-8 > > LC_NAME=fr_FR.UTF-8 > > LC_NUMERIC=fr_FR.UTF-8 > > LC_PAPER=fr_FR.UTF-8 > > LC_TELEPHONE=fr_FR.UTF-8 > > LC_TIME=fr_FR.UTF-8 > > LOGNAME= > > MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path > > MATE_DESKTOP_SESSION_ID=this-is-deprecated > > PAPERSIZE=a4 > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us > > r/local/games:/snap/bin > > PWD= > > QT_ACCESSIBILITY=1 > > QT_AUTO_SCREEN_SCALE_FACTOR=0 > > QT_LOGGING_RULES=*.debug=false > > QT_QPA_PLATFORMTHEME=gtk2 > > QT_SCALE_FACTOR=1 > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1476,unix/:/tmp/.ICE- > > unix/1476 > > SHELL=/bin/bash > > SHLVL=0 > > SSH_AGENT_PID=1536 > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > TZ=:/etc/localtime > > UBUNTU_MENUPROXY=1 > > USER= > > XAUTHORITY=/.Xauthority > > XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg > > XDG_CURRENT_DESKTOP=MATE > > XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > > XDG_RUNTIME_DIR=/run/user/1000 > > XDG_SEAT=seat0 > > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > > XDG_SESSION_CLASS=user > > XDG_SESSION_DESKTOP=mate > > XDG_SESSION_ID=c2 > > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > > XDG_SESSION_TYPE=x11 > > XDG_VTNR=7 > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tobs at taboege.de Thu May 20 13:28:20 2021 From: tobs at taboege.de (Tobias Boege) Date: Thu, 20 May 2021 13:28:20 +0200 Subject: [Gambas-user] gb.ncurses component would be unusable? In-Reply-To: References: Message-ID: <20210520112820.GI2520705@T580.localdomain> On Thu, 20 May 2021, Bruce Steers wrote: > On Thu, 20 May 2021 at 11:21, CD wrote: > > > Hello, > > > > when, in Project/Properties/Component, > > I check gb.ncurses, and I launch the execution (in the IDE in design mode) of the program, > > I have a message (a balloon that points to native code): > > "'Screen.Height' is incorrectly overridden in class 'Screen'" > > the program goes into pauses. > > If I continue the execution by pressing Play again, message (info): > > "The program returned the value: 1" > > Click on OK, the program stops. > > > > Is the NCurses component unusable? > > > I have made this same mistake. > > ncurses is CLI only and cannot be used with any sort of GUI application. > To expand on this: the error you see comes from the fact that you apparently have one of the GUI components (gb.gtk*, gb.qt*, gb.gui.*) loaded, which provides a class named Screen representing on your computer screen. gb.ncurses also exports a class named Screen to represent the terminal of the ncurses application. These two classes of the same name have incompatible interfaces. This happened by bad luck. gb.ncurses is not unusable, but it is not usable together with a GUI component. You either pick GUI or TUI. The proposed work on namespaces would fix this incompatibility in the future. It is not that the two kinds of UI are inherently or by design incompatible, but by accident of a class name collision. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Thu May 20 15:01:32 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 20 May 2021 15:01:32 +0200 Subject: [Gambas-user] Seek in IDE In-Reply-To: <09b95e34-4890-49bd-b65b-82d1636c0d55@cd-bahia.com> References: <09b95e34-4890-49bd-b65b-82d1636c0d55@cd-bahia.com> Message-ID: Le 20/05/2021 ? 12:23, Dag JNJ a ?crit?: > Hi, > > I want to point at a? little issue in the IDE, when seek with Ctrl+F, > and the item is not found, the popup-window loses focus. When I then > type anew for another item, the typing happens in the source window. one > has to press Ctrl+F again. Not a big deal, a little inconvenient only. I > had to repair some code before I got aware. > > Regards, > > Dag > I fixed that in master by replacing the popup by a message label in the search dialog. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu May 20 15:07:51 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 20 May 2021 15:07:51 +0200 Subject: [Gambas-user] gb.ncurses component would be unusable? In-Reply-To: <20210520112820.GI2520705@T580.localdomain> References: <20210520112820.GI2520705@T580.localdomain> Message-ID: <4fecd5ff-2be6-0b01-8666-6be09a7244fb@gmail.com> Le 20/05/2021 ? 13:28, Tobias Boege a ?crit?: > On Thu, 20 May 2021, Bruce Steers wrote: >> On Thu, 20 May 2021 at 11:21, CD wrote: >> >>> Hello, >>> >>> when, in Project/Properties/Component, >>> I check gb.ncurses, and I launch the execution (in the IDE in design mode) of the program, >>> I have a message (a balloon that points to native code): >>> "'Screen.Height' is incorrectly overridden in class 'Screen'" >>> the program goes into pauses. >>> If I continue the execution by pressing Play again, message (info): >>> "The program returned the value: 1" >>> Click on OK, the program stops. >>> >>> Is the NCurses component unusable? >>> >> I have made this same mistake. >> >> ncurses is CLI only and cannot be used with any sort of GUI application. >> > > To expand on this: the error you see comes from the fact that you apparently > have one of the GUI components (gb.gtk*, gb.qt*, gb.gui.*) loaded, which > provides a class named Screen representing on your computer screen. > > gb.ncurses also exports a class named Screen to represent the terminal of > the ncurses application. > > These two classes of the same name have incompatible interfaces. This happened > by bad luck. gb.ncurses is not unusable, but it is not usable together with a > GUI component. You either pick GUI or TUI. > > The proposed work on namespaces would fix this incompatibility in the future. > It is not that the two kinds of UI are inherently or by design incompatible, > but by accident of a class name collision. > > Best, > Tobias > The symbol clash is logical, as effectively you can't have two GUI components, even if one only uses the terminal. So I'm not sure in that case you should use a different name of the class. On the contrary, I think all components should use the same class names if they are roughly doing the same thing in a mutually exclusive way. -- Beno?t Minisini From g4mba5 at gmail.com Thu May 20 15:10:14 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 20 May 2021 15:10:14 +0200 Subject: [Gambas-user] Dialog.Save asks in English In-Reply-To: References: Message-ID: <50ba4153-e539-399d-c011-641852a5085b@gmail.com> Le 20/05/2021 ? 09:54, Rolf-Werner Eilert a ?crit?: > For a long time, I had Dialog.Save included in one of my programs, but > never had an existing file overwritten. However, when I programmed it, I > took care of this case. Yesterday much to my surprise I saw that this > dialog already covers the case of an existing file, asking whether the > file should be overwritten. > > But it asks in English, and I do not see a chance to change the language > or simply switch this behaviour off (as I have a request programmed > anyway). > > So now it is that you are asked twice, first by the dialog (in English) > and then by my program (in German). > > Any idea how to localize or get rid of it? > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- If you are using native toolkit dialogs, they may or may not be translated, depending on which GUI toolkit you use, and what is installed on your system. Otherwise, you can check the 'gb.form.dialog' component, and these dialogs will be replaced by Gambas dialogs that are translated. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Thu May 20 15:15:49 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 20 May 2021 22:45:49 +0930 Subject: [Gambas-user] Autocomplete would be good if it could list all _ methods In-Reply-To: References: <8367b4d3-2b73-bb1d-630c-d689f09cae17@osnanet.de> Message-ID: <207ce9b8-4ef6-0e40-dc33-962c7d9fb16e@gmail.com> On 20/5/21 8:25 pm, Bruce Steers wrote: > On Thu, 20 May 2021 at 11:34, Rolf-Werner Eilert wrote: > >> Am 20.05.21 um 12:11 schrieb Bruce Steers: >>> >>> It would be handy for learning if when writing functions like >>> >>> Public Sub _new() >>> Public Sub _init() >>> etc. >>> >>> if Autocomplete could list all functions starting with _ when _ is the >>> first char used it would be really useful to see all the available >>> special methods. >>> >>> Just thought i'd suggest that :) >>> Wishing well >>> BruceS >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> Oh yes, Bruce. The events aren't in the help with F2. For instance, you >> have Table_DblClick() you point to DblClick and press F2 - nothing happens. >> > > The events i mean are in http://gambaswiki.org/wiki/cat/special > but it does not say if all the listed methods are in all classes plus i'd > assume some classes may have other special methods not listed there? > Would be handy if autocomplete (that kicks in after 3 characters) detected > a single _ char > > > >> This has been missing forever. >> >> However, typing Public Sub Table_ opens the autocomplete list of events >> for Table. >> >> Regards >> Rolf >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > And +++ for items with a "moniker" e.g Dim $observer as Observer $observer = new Observer(Me) as "SELF" ... Public Sub SELF_??????????? b From gambas at cd-bahia.com Thu May 20 15:56:32 2021 From: gambas at cd-bahia.com (Dag JNJ) Date: Thu, 20 May 2021 15:56:32 +0200 Subject: [Gambas-user] Seek in IDE In-Reply-To: References: <09b95e34-4890-49bd-b65b-82d1636c0d55@cd-bahia.com> Message-ID: Am 20.05.21 um 15:01 schrieb Beno?t Minisini: > Le 20/05/2021 ? 12:23, Dag JNJ a ?crit?: >> Hi, >> >> I want to point at a? little issue in the IDE, when seek with Ctrl+F, >> and the item is not found, the popup-window loses focus. When I then >> type anew for another item, the typing happens in the source window. >> one has to press Ctrl+F again. Not a big deal, a little inconvenient >> only. I had to repair some code before I got aware. >> >> Regards, >> >> Dag >> > > I fixed that in master by replacing the popup by a message label in > the search dialog. > > Regards, > I am aware of that, still I prefer a Ctrl+F function like in every other text based program I know. And I have to grab to the mouse to reach the text-label (unless there is an other shortcut for that). Regards From t.lee.davidson at gmail.com Thu May 20 20:27:50 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 20 May 2021 14:27:50 -0400 Subject: [Gambas-user] Debug window In-Reply-To: References: Message-ID: On 5/20/21 6:16 AM, CD wrote: > Hello, > > my debug window does display the information I send to it, > > but all the bar buttons are?grayed out and disabled, > > and in the status bar the textbox in front > > of the question mark is inactive too. > > > Is this normal? > > I looked for options in the menus, I found nothing? It doesn't sound normal. There are two toolbars in the debug window: at the top has clipboard action icons and at the bottom are Console, Breakpoints, etc. Both of them are active on my system. The textbox *to the right* of the question mark is disabled while the project is being executed. -- Lee [System] Gambas=3.16 OperatingSystem=Linux Kernel=5.3.18-lp152.75-default Architecture=x86_64 Distribution=openSUSE Leap 15.2 Desktop=KDE5 Font=Noto Sans,10 Scale=7 Theme=breeze Language=en_US.UTF-8 Memory=16000M From claude.dessere at orange.fr Fri May 21 13:26:35 2021 From: claude.dessere at orange.fr (CD) Date: Fri, 21 May 2021 13:26:35 +0200 Subject: [Gambas-user] User Digest, Vol 44, Issue 80 In-Reply-To: References: Message-ID: <48f5bc07e8003e02708fe8a1b396143807809e19.camel@orange.fr> thank you for your answers, it's clearer. >I fixed that in master by replacing the popup by a message label in the >search dialog. >Regards, >-- >Beno?t Minisini As when checking in Project/Property/Component gb.gui and gb.qt5, this results in a message: "These Components are incompatible with each other gb.gui, gb.qt5." I suppose! Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Fri May 21 13:39:07 2021 From: claude.dessere at orange.fr (CD) Date: Fri, 21 May 2021 13:39:07 +0200 Subject: [Gambas-user] Debug window In-Reply-To: References: Message-ID: Le vendredi 21 mai 2021 ? 12:12 +0200, user-request at lists.gambas-basic.org a ?crit : > Send User mailing list submissions to user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..."Today's Topics: > 1. Re: Autocomplete would be good if it could list all _ > methods (Bruce) 2. Re: Seek in IDE (Dag JNJ) 3. Re: Debug window (T > Lee Davidson)----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- >It doesn't sound normal. > >There are two toolbars in the debug window: at the top has clipboard action icons and at the bottom are Console, >Breakpoints, >etc. Both of them are active on my system. The textbox *to the right* of the question mark is disabled while the >project is >being executed. I'm talking about the console, do we agree? in design mode as in runtime mode, nothing works, neither the buttons of the status bar, nor the textbox to the right of the question mark. So ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri May 21 19:40:17 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 21 May 2021 20:40:17 +0300 Subject: [Gambas-user] User Digest, Vol 44, Issue 80 In-Reply-To: <48f5bc07e8003e02708fe8a1b396143807809e19.camel@orange.fr> References: <48f5bc07e8003e02708fe8a1b396143807809e19.camel@orange.fr> Message-ID: > > As when checking in Project/Property/Component gb.gui and gb.qt5, > this results in a message: "These Components are incompatible with each > other gb.gui, gb.qt5." > gb.gui selects the gui component automatically, thus it is incompatible with gb.qt5. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 22 00:11:57 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 00:11:57 +0200 Subject: [Gambas-user] Initial support of class namespaces in master In-Reply-To: <437578717.6797.1621440750958.JavaMail.zimbra@westwoodsvcs.com> References: <437578717.6797.1621440750958.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 19/05/2021 ? 18:12, Brian G a ?crit?: > Ok improper but > > If I put > > Export as MyNames > > and forget the :classname > > there is no error but the class can not be found at runtime inside the module or out. > > Should there be a compile error? > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > Namespace support should be usable now, with the last commits. -- Beno?t Minisini From johna at starflightinc.com Sat May 22 05:31:02 2021 From: johna at starflightinc.com (John Anderson) Date: Fri, 21 May 2021 20:31:02 -0700 Subject: [Gambas-user] Help on Help? IDE operation experience Message-ID: An HTML attachment was scrubbed... URL: From johna at starflightinc.com Sat May 22 05:52:36 2021 From: johna at starflightinc.com (John Anderson) Date: Fri, 21 May 2021 20:52:36 -0700 Subject: [Gambas-user] IDE Operatiuon questn - suggestions part 2 Message-ID: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat May 22 12:25:46 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 22 May 2021 11:25:46 +0100 Subject: [Gambas-user] no error if 'make install' errors Message-ID: Is it possible to make 'make install' error out if something fails? My gambas upgrade utility will detect errors when ./reconf-all , ./configure and make run as they return an error code. but when running 'make install' if a component (even the gambas IDE) fails to compile/install it just carries on just reporting the error but not stopping. I put a note in the installer to suggest people read the output text to see for errors but would like the program to handle it really. is there something like a --strict arg or any other way to make it error on error? Thanks for any help. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat May 22 13:09:19 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 22 May 2021 12:09:19 +0100 Subject: [Gambas-user] makefile failing Message-ID: Benoit I'm getting an error when app/makefile.am tries the new rmdir method. Installing IDE application menu... make[2]: *** [Makefile:782: install-exec-local] Error 1 make[2]: Leaving directory '/media/bonus/SSDiskspace/git/gambas-b/app' I've found using rm -rd works okay. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat May 22 15:23:27 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 22 May 2021 15:23:27 +0200 Subject: [Gambas-user] makefile failing In-Reply-To: References: Message-ID: Il giorno sab 22 mag 2021 alle ore 13:10 Bruce Steers ha scritto: > Benoit > I'm getting an error when app/makefile.am tries the new rmdir method. > > Installing IDE application menu... > make[2]: *** [Makefile:782: install-exec-local] Error 1 > make[2]: Leaving directory '/media/bonus/SSDiskspace/git/gambas-b/app' > > > I've found using rm -rd works okay. > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I state that Gambas3 has installed itself correctly, but also me get these error warnings from the terminal at the end of the compilation: Installing the development environment... Compiling gambas3... OK Installing gambas3... Compiling gbs3... OK Installing gbs3... Installing IDE application icon... Installing IDE application menu... make[3]: *** [Makefile:782: install-exec-local] Error 1 make[3]: Leaving directory '/home/gian/gambasdevel/app' make[2]: *** [Makefile:662: install-am] Error 2 make[2]: Leaving directory '/home/gian/gambasdevel/app' make[1]: *** [Makefile:358: install-recursive] Error 1 make[1]: Leaving directory '/home/gian/gambasdevel/app' make: *** [Makefile:441: install-recursive] Error 1 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 22 15:27:16 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 15:27:16 +0200 Subject: [Gambas-user] makefile failing In-Reply-To: References: Message-ID: <21541055-0d61-764f-0b96-45627cb8847f@gmail.com> Le 22/05/2021 ? 13:09, Bruce Steers a ?crit?: > Benoit > I'm getting an error when app/makefile.am tries the > new rmdir method. > > Installing IDE application menu... > make[2]: *** [Makefile:782: install-exec-local] Error 1 > make[2]: Leaving directory '/media/bonus/SSDiskspace/git/gambas-b/app' > > > I've found using rm -rd works okay. > BruceS > I have no error at all on my system. Are you sure 'rm -rd' does the job? I want to remove a directory *only if* is is empty. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat May 22 15:35:08 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 15:35:08 +0200 Subject: [Gambas-user] makefile failing In-Reply-To: <21541055-0d61-764f-0b96-45627cb8847f@gmail.com> References: <21541055-0d61-764f-0b96-45627cb8847f@gmail.com> Message-ID: <51bbef2e-381e-8f5a-4c8b-3bc86d7d8b1c@gmail.com> Le 22/05/2021 ? 15:27, Beno?t Minisini a ?crit?: > Le 22/05/2021 ? 13:09, Bruce Steers a ?crit?: >> Benoit >> I'm getting an error when app/makefile.am tries >> the new rmdir method. >> >> Installing IDE application menu... >> make[2]: *** [Makefile:782: install-exec-local] Error 1 >> make[2]: Leaving directory '/media/bonus/SSDiskspace/git/gambas-b/app' >> >> >> I've found using rm -rd works okay. >> BruceS >> > > I have no error at all on my system. > > Are you sure 'rm -rd' does the job? I want to remove a directory *only > if* is is empty. > > Regards, > Yes, don't use 'rm -rd', you are going to destroy your system. -- Beno?t Minisini From g4mba5 at gmail.com Sat May 22 15:35:22 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 15:35:22 +0200 Subject: [Gambas-user] makefile failing In-Reply-To: References: Message-ID: <829ec87f-1592-d2d3-bd09-c377a20b580c@gmail.com> Le 22/05/2021 ? 15:23, Gianluigi a ?crit?: > > > Il giorno sab 22 mag 2021 alle ore 13:10 Bruce Steers > > ha scritto: > > Benoit > I'm getting an error when app/makefile.am tries > the new rmdir method. > > Installing IDE application menu... > make[2]: *** [Makefile:782: install-exec-local] Error 1 > make[2]: Leaving directory '/media/bonus/SSDiskspace/git/gambas-b/app' > > > I've found using rm -rd works okay. > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > I state that Gambas3 has installed itself correctly, but also me get > these error warnings from the terminal at the end of the compilation: > > Installing the development environment... > Compiling gambas3... > OK > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > Installing IDE application icon... > Installing IDE application menu... > make[3]: *** [Makefile:782: install-exec-local] Error 1 > make[3]: Leaving directory '/home/gian/gambasdevel/app' > make[2]: *** [Makefile:662: install-am] Error 2 > make[2]: Leaving directory '/home/gian/gambasdevel/app' > make[1]: *** [Makefile:358: install-recursive] Error 1 > make[1]: Leaving directory '/home/gian/gambasdevel/app' > make: *** [Makefile:441: install-recursive] Error 1 > > Regards > Gianluigi > OK, I confirm now. -- Beno?t Minisini From g4mba5 at gmail.com Sat May 22 16:08:33 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 16:08:33 +0200 Subject: [Gambas-user] makefile failing In-Reply-To: <829ec87f-1592-d2d3-bd09-c377a20b580c@gmail.com> References: <829ec87f-1592-d2d3-bd09-c377a20b580c@gmail.com> Message-ID: Le 22/05/2021 ? 15:35, Beno?t Minisini a ?crit?: >> I state that Gambas3 has installed itself correctly, but also me get >> these error warnings from the terminal at the end of the compilation: >> >> Installing the development environment... >> Compiling gambas3... >> OK >> Installing gambas3... >> Compiling gbs3... >> OK >> Installing gbs3... >> Installing IDE application icon... >> Installing IDE application menu... >> make[3]: *** [Makefile:782: install-exec-local] Error 1 >> make[3]: Leaving directory '/home/gian/gambasdevel/app' >> make[2]: *** [Makefile:662: install-am] Error 2 >> make[2]: Leaving directory '/home/gian/gambasdevel/app' >> make[1]: *** [Makefile:358: install-recursive] Error 1 >> make[1]: Leaving directory '/home/gian/gambasdevel/app' >> make: *** [Makefile:441: install-recursive] Error 1 >> >> Regards >> Gianluigi >> > > OK, I confirm now. > > It should be fixed now with commit https://gitlab.com/gambas/gambas/-/commit/af0509e372e602972bccbf4a22059b9a6440d281. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat May 22 16:17:26 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 16:17:26 +0200 Subject: [Gambas-user] Help on Help? IDE operation experience In-Reply-To: References: Message-ID: <77b5e119-8bce-4d6d-dfcb-846d52f31f7e@gmail.com> Le 22/05/2021 ? 05:31, John Anderson a ?crit?: > Maybe a somewhat noob experience here and maybe I missed something - > but maybe these could be future upgrades to think about - On Master > Gambas 3.16.90 and stable 3.16.0 running on Linux Mint 20.1 here is what > I'm running into.? Please steer me the right direction if I've missed > something obvious: > > 1)? I know if I'm typing a keyword in the IDE, say I'm typing "Struct" I > do get a small popup help box as an aid.? Nice!.? BUT If I go to help > browser, is there a way to 'search for' a keyword? No, but if you login to the Gambas wiki, there is a search box. > I'm not seeing how > that's done.? In VB6 IDE you could highlight a keyword, hit F1 and wind > up on that topic in help. That was a good feature.? Is there a way to > actually -search- help in this system? You can hit F2 directly on a keyword, without selecting it, to get the same result. > > For instance I was looking in the keyword list for CDouble or CDbl, and > it took a while to realize it is CFloat in Gambas...for some reason.? A > way to search for the word "double" might have helped there. > > 2) On the help browser there is a button > "https:\\gambas.sourceforge.net".? Is that URL changeable? No. > Why not > "gambaswiki" or "GambasOne" forum for instance, or even search mailing > list function?? - there is Gambas information scattered in a lot of > places. It's just a random button. The help webview is a embedded webkit browser, but you should better use a true browser if you want to search for Gambas help. > It would be cool if there was a consolidation of Gambas > information in one place. The wiki is the place for that. There is a page that should references all such places ("Mailing-list & forums"). But for sure it could have a better presentation. > > 3) I notice once I click that URL button in the help browser, the help > browser gets stuck on that page for that IDE session...apparently.? I > can't go back to regular help keyword list.? At least that's what's > happening here.? Probably operator error? You have to click on the "home" button to go back to the wiki home page. > > 4) I have "Firefox" checked as the defualt browser, but I guess the Help > button always uses the help browser?? I'm guessing so. Yes, it's a WebView control. > > 5)? Is there any more help documentation on "Get Started with Web Part > 2"? That topic just sort of trails off to nothing.? I'd help write that > once I knew what it was supposed to say . I didn't write the first page, so I don't know why there is no second page. What do you want to know that it not in that first page? -- Beno?t Minisini From g4mba5 at gmail.com Sat May 22 16:24:25 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 16:24:25 +0200 Subject: [Gambas-user] IDE Operatiuon questn - suggestions part 2 In-Reply-To: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> References: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> Message-ID: Le 22/05/2021 ? 05:52, John Anderson a ?crit?: > On Gambas IDE itself: > > A)? One thing I noticed as a newer user that's used to VB6 / Qt IDE > world:? On the properties browser on right hand window:? Those Gambas > properties aren't actually changed until you hit return or tab away on > that property, or use the spin up/down for that property.? For instance > if I have an object selected on a form, and I go to properties and > change some property X...I see the property is displaying the new value, > and in my mind that property has a new value.? Then I hit RUN:? That > property reverts to old value.? You have to change the property value > THEN hit Return, or tab to another property or use that focused > property's spin up/down button BEFORE attempting to compile or run the > program. You have to be a bit careful there to change properties then > test in the correct order, otherwise you'll swear you changed a property > but really the change was discarded.? It would be neat if the new > property value could be applied as the cursor leaves the property pane, > or before any Save / Compile / Make is executed. It's just a bug. But apparently it does not bother a lot of people... I will fix it. > > B)? On VB6 and other IDE's, when you're in the code editor there is a > way to go to "Last Position" which we use a lot.? In other words you can > alt-click on the code editor, hit "Last Position" and your cursor moves > to whatever previous line you were editing (and previous file tab as > appropriate). Usually you can back up at least 10 code positions or so > before it wraps back to where you started. ? Is there a way to do that > in Gambas? The F2 key on a symbol sends you to the definition of the symbol. The SHIFT-F2 key sends you back to the previous position. You have the two back and forward buttons on the top-right of the IDE too. Beware, they are still sometimes buggy. > > C) On VB6, you can have the code editor display just ONE single > procedure at a time, and that makes it easier to scroll around a very > long procedure.? I'm poking around in the code preferences section, and > I can see how to add procedure folding & separators, but I was hoping to > see a way to display just one procedure at a time in the IDE. > Declaration section is treated as one procedure. ? You can still jump > around to various procedures and events with the procedure list selector > as you have now.? Is there a way to do that in Gambas IDE? No. > > I'm asking because we're looking at re-writing a large-ish VB6 project > (80k active code lines), and contained therein we've got some single > procedures many hundred code lines long, not counting comments.? I'm > evaluating Gambas to see if it's up to the task. I don't see how displaying only the procedure can help with the fact that it is too big. > > D) I really dream about Gambas being able to Pause on Error, change a > line of code if possible (or temporarily ignore a line of code to escape > a fatal error), then have it continue.? That was a big plus in VB6 even > though it could lead to problems if you weren't careful.?? The problem > with a machine-control software development test that just stops in the > middle of a run - maybe you run into a "Array Index Out of Bounds" > problem - the machine will just e-stop where it's at and you have to > re-initialize the whole system before you can test the new code change. > That can take a while on a complex peice of equipment, maybe 15 or 30 > minutes or more.? We try to design everything to minimize that problem, > but being able to work around a fatal error to at least get to a section > of code that can shut everything down "gracefully" is a real > time-saver.? Yeah I know...Try...Catch... That works great when it's > there, but sometimes the best laid plans.... That feature needs too much development time and complexity for the benefit it brings. Regards, -- Beno?t Minisini From bagonergi at gmail.com Sat May 22 17:50:43 2021 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 22 May 2021 17:50:43 +0200 Subject: [Gambas-user] makefile failing In-Reply-To: References: <829ec87f-1592-d2d3-bd09-c377a20b580c@gmail.com> Message-ID: Il giorno sab 22 mag 2021 alle ore 16:09 Beno?t Minisini ha scritto: > Le 22/05/2021 ? 15:35, Beno?t Minisini a ?crit : > >> I state that Gambas3 has installed itself correctly, but also me get > >> these error warnings from the terminal at the end of the compilation: > >> > >> Installing the development environment... > >> Compiling gambas3... > >> OK > >> Installing gambas3... > >> Compiling gbs3... > >> OK > >> Installing gbs3... > >> Installing IDE application icon... > >> Installing IDE application menu... > >> make[3]: *** [Makefile:782: install-exec-local] Error 1 > >> make[3]: Leaving directory '/home/gian/gambasdevel/app' > >> make[2]: *** [Makefile:662: install-am] Error 2 > >> make[2]: Leaving directory '/home/gian/gambasdevel/app' > >> make[1]: *** [Makefile:358: install-recursive] Error 1 > >> make[1]: Leaving directory '/home/gian/gambasdevel/app' > >> make: *** [Makefile:441: install-recursive] Error 1 > >> > >> Regards > >> Gianluigi > >> > > > > OK, I confirm now. > > > > > > It should be fixed now with commit > > https://gitlab.com/gambas/gambas/-/commit/af0509e372e602972bccbf4a22059b9a6440d281 > . > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It is resolved, Thank you very much Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 22 19:30:40 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 19:30:40 +0200 Subject: [Gambas-user] IDE Operatiuon questn - suggestions part 2 In-Reply-To: References: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> Message-ID: <3d8b4576-65dd-3ca8-4e98-95b340b394c1@gmail.com> Le 22/05/2021 ? 16:24, Beno?t Minisini a ?crit?: > Le 22/05/2021 ? 05:52, John Anderson a ?crit?: >> On Gambas IDE itself: >> >> A)? One thing I noticed as a newer user that's used to VB6 / Qt IDE >> world:? On the properties browser on right hand window:? Those Gambas >> properties aren't actually changed until you hit return or tab away on >> that property, or use the spin up/down for that property.? For >> instance if I have an object selected on a form, and I go to >> properties and change some property X...I see the property is >> displaying the new value, and in my mind that property has a new >> value.? Then I hit RUN:? That property reverts to old value.? You have >> to change the property value THEN hit Return, or tab to another >> property or use that focused property's spin up/down button BEFORE >> attempting to compile or run the program. You have to be a bit careful >> there to change properties then test in the correct order, otherwise >> you'll swear you changed a property but really the change was >> discarded.? It would be neat if the new property value could be >> applied as the cursor leaves the property pane, or before any Save / >> Compile / Make is executed. > > It's just a bug. But apparently it does not bother a lot of people... I > will fix it. > It should be fixed in commit https://gitlab.com/gambas/gambas/-/commit/74acc3d14ebbf479e2fd6bef309e1ed35b6709f6. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sat May 22 20:11:02 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 22 May 2021 19:11:02 +0100 Subject: [Gambas-user] makefile failing In-Reply-To: <51bbef2e-381e-8f5a-4c8b-3bc86d7d8b1c@gmail.com> References: <21541055-0d61-764f-0b96-45627cb8847f@gmail.com> <51bbef2e-381e-8f5a-4c8b-3bc86d7d8b1c@gmail.com> Message-ID: On Sat, 22 May 2021 at 14:36, Beno?t Minisini wrote: > Le 22/05/2021 ? 15:27, Beno?t Minisini a ?crit : > > Le 22/05/2021 ? 13:09, Bruce Steers a ?crit : > >> Benoit > >> I'm getting an error when app/makefile.am tries > >> the new rmdir method. > >> > >> Installing IDE application menu... > >> make[2]: *** [Makefile:782: install-exec-local] Error 1 > >> make[2]: Leaving directory '/media/bonus/SSDiskspace/git/gambas-b/app' > >> > >> > >> I've found using rm -rd works okay. > >> BruceS > >> > > > > I have no error at all on my system. > > > > Are you sure 'rm -rd' does the job? I want to remove a directory *only > > if* is is empty. > > > > Regards, > > > > Yes, don't use 'rm -rd', you are going to destroy your system. > oops, Cheers Ben Thanks for the fix :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From johna at starflightinc.com Sat May 22 20:26:49 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 22 May 2021 11:26:49 -0700 Subject: [Gambas-user] Help on Help? IDE operation experience In-Reply-To: <77b5e119-8bce-4d6d-dfcb-846d52f31f7e@gmail.com> References: <77b5e119-8bce-4d6d-dfcb-846d52f31f7e@gmail.com> Message-ID: On 5/22/2021 7:17 AM, Beno?t Minisini wrote: > Le 22/05/2021 ? 05:31, John Anderson a ?crit?: >> Maybe a somewhat noob experience here and maybe I missed something -? >> but maybe these could be future upgrades to think about - On Master >> Gambas 3.16.90 and stable 3.16.0 running on Linux Mint 20.1 here is >> what I'm running into.? Please steer me the right direction if I've >> missed something obvious: >> >> 1)? I know if I'm typing a keyword in the IDE, say I'm typing >> "Struct" I do get a small popup help box as an aid.? Nice!.? BUT If I >> go to help browser, is there a way to 'search for' a keyword? > > No, but if you login to the Gambas wiki, there is a search box. > I understand, but the dev machines are in a secure facility air-gapped from the 'Net.? So no "logging in" to anything from any machine with source code on it. ? All help docs has to be searched at a local level only, that's why I was looking for a help doc search function that worked on the offline docs. Thanks, -John From johna at starflightinc.com Sat May 22 20:08:41 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 22 May 2021 11:08:41 -0700 Subject: [Gambas-user] IDE Operatiuon questn - suggestions part 2 In-Reply-To: References: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> Message-ID: On 5/22/2021 7:24 AM, Beno?t Minisini wrote: > Le 22/05/2021 ? 05:52, John Anderson a ?crit?: >> On Gambas IDE itself: >> >> A)? One thing I noticed as a newer user that's used to VB6 / Qt IDE >> world:? On the properties browser on right hand window: Those Gambas >> properties aren't actually changed until you hit return or tab away >> on that property, or use the spin up/down for that property.? For >> instance if I have an object selected on a form, and I go to >> properties and change some property X...I see the property is >> displaying the new value, and in my mind that property has a new >> value.? Then I hit RUN:? That property reverts to old value.? You >> have to change the property value THEN hit Return, or tab to another >> property or use that focused property's spin up/down button BEFORE >> attempting to compile or run the program. You have to be a bit >> careful there to change properties then test in the correct order, >> otherwise you'll swear you changed a property but really the change >> was discarded.? It would be neat if the new property value could be >> applied as the cursor leaves the property pane, or before any Save / >> Compile / Make is executed. > > It's just a bug. But apparently it does not bother a lot of people... > I will fix it. > >> >> B)? On VB6 and other IDE's, when you're in the code editor there is a >> way to go to "Last Position" which we use a lot.? In other words you >> can alt-click on the code editor, hit "Last Position" and your cursor >> moves to whatever previous line you were editing (and previous file >> tab as appropriate). Usually you can back up at least 10 code >> positions or so before it wraps back to where you started. ? Is there >> a way to do that in Gambas? > > The F2 key on a symbol sends you to the definition of the symbol. > > The SHIFT-F2 key sends you back to the previous position. > > You have the two back and forward buttons on the top-right of the IDE > too. Beware, they are still sometimes buggy. > >> >> C) On VB6, you can have the code editor display just ONE single >> procedure at a time, and that makes it easier to scroll around a very >> long procedure.? I'm poking around in the code preferences section, >> and I can see how to add procedure folding & separators, but I was >> hoping to see a way to display just one procedure at a time in the >> IDE.? Declaration section is treated as one procedure. ? You can >> still jump around to various procedures and events with the procedure >> list selector as you have now.? Is there a way to do that in Gambas IDE? > > No. > >> >> I'm asking because we're looking at re-writing a large-ish VB6 >> project (80k active code lines), and contained therein we've got some >> single procedures many hundred code lines long, not counting >> comments.? I'm evaluating Gambas to see if it's up to the task. > > I don't see how displaying only the procedure can help with the fact > that it is too big. > >> >> D) I really dream about Gambas being able to Pause on Error, change a >> line of code if possible (or temporarily ignore a line of code to >> escape a fatal error), then have it continue.? That was a big plus in >> VB6 even though it could lead to problems if you weren't careful.?? >> The problem with a machine-control software development test that >> just stops in the middle of a run - maybe you run into a "Array Index >> Out of Bounds" problem - the machine will just e-stop where it's at >> and you have to re-initialize the whole system before you can test >> the new code change.? That can take a while on a complex peice of >> equipment, maybe 15 or 30 minutes or more.? We try to design >> everything to minimize that problem, but being able to work around a >> fatal error to at least get to a section of code that can shut >> everything down "gracefully" is a real time-saver.? Yeah I >> know...Try...Catch... That works great when it's there, but sometimes >> the best laid plans.... > > That feature needs too much development time and complexity for the > benefit it brings. > > Regards, > Thanks Beno?t!? Indeed Shift F2 and the forward / back buttons are a bit "buggy". On long procedures if you want to scroll up and down - the scroller control will move thru a lot of code in a hurry, and you wind up going past the top or bottom of the function you're working on. Using the arrow keys is too slow to scroll across vast regions up and down, and the side scroller is harder to use on really long files.? Think big. I could put each function in separate module files I guess but in our case we'd wind up with 600+ module files for one of our state machine sequencers.? It's much easier just to be looking at one procedure at a time in the code editor window. "That feature needs too much development time and complexity for the benefit it brings. " I agree,and Welcome to my reality.?? The benefits of "pause, edit and continue" are -enormous- if you can somehow get past a single fatal error, and limp home to a graceful exit routine.? I'll try not to need that too much with Gambas - I know that would be complex. Thanks again for your efforts! -John From johna at starflightinc.com Sat May 22 20:16:45 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 22 May 2021 11:16:45 -0700 Subject: [Gambas-user] IDE Operatiuon questn - suggestions part 2 In-Reply-To: <3d8b4576-65dd-3ca8-4e98-95b340b394c1@gmail.com> References: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> <3d8b4576-65dd-3ca8-4e98-95b340b394c1@gmail.com> Message-ID: <1924d597-76ee-b247-d9a3-a006e8ebe0f1@starflightinc.com> On 5/22/2021 10:30 AM, Beno?t Minisini wrote: > Le 22/05/2021 ? 16:24, Beno?t Minisini a ?crit?: >> Le 22/05/2021 ? 05:52, John Anderson a ?crit?: >>> On Gambas IDE itself: >>> >>> A)? One thing I noticed as a newer user that's used to VB6 / Qt IDE >>> world:? On the properties browser on right hand window:? Those >>> Gambas properties aren't actually changed until you hit return or >>> tab away on that property, or use the spin up/down for that >>> property.? For instance if I have an object selected on a form, and >>> I go to properties and change some property X...I see the property >>> is displaying the new value, and in my mind that property has a new >>> value.? Then I hit RUN:? That property reverts to old value.? You >>> have to change the property value THEN hit Return, or tab to another >>> property or use that focused property's spin up/down button BEFORE >>> attempting to compile or run the program. You have to be a bit >>> careful there to change properties then test in the correct order, >>> otherwise you'll swear you changed a property but really the change >>> was discarded.? It would be neat if the new property value could be >>> applied as the cursor leaves the property pane, or before any Save / >>> Compile / Make is executed. >> >> It's just a bug. But apparently it does not bother a lot of people... >> I will fix it. >> > > It should be fixed in commit > https://gitlab.com/gambas/gambas/-/commit/74acc3d14ebbf479e2fd6bef309e1ed35b6709f6. > > Regards, > Thank You!? That will help.? I'll look for that change on my next update. -John From johna at starflightinc.com Sat May 22 21:10:18 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 22 May 2021 12:10:18 -0700 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint Message-ID: An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 22 21:30:33 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 21:30:33 +0200 Subject: [Gambas-user] Help on Help? IDE operation experience In-Reply-To: References: <77b5e119-8bce-4d6d-dfcb-846d52f31f7e@gmail.com> Message-ID: <086dc1c6-d36a-546a-6205-2e3565ff4b3b@gmail.com> Le 22/05/2021 ? 20:26, John Anderson a ?crit?: > > > On 5/22/2021 7:17 AM, Beno?t Minisini wrote: >> Le 22/05/2021 ? 05:31, John Anderson a ?crit?: >>> Maybe a somewhat noob experience here and maybe I missed something - >>> but maybe these could be future upgrades to think about - On Master >>> Gambas 3.16.90 and stable 3.16.0 running on Linux Mint 20.1 here is >>> what I'm running into.? Please steer me the right direction if I've >>> missed something obvious: >>> >>> 1)? I know if I'm typing a keyword in the IDE, say I'm typing >>> "Struct" I do get a small popup help box as an aid.? Nice!.? BUT If I >>> go to help browser, is there a way to 'search for' a keyword? >> >> No, but if you login to the Gambas wiki, there is a search box. >> > I understand, but the dev machines are in a secure facility air-gapped > from the 'Net.? So no "logging in" to anything from any machine with > source code on it. ? All help docs has to be searched at a local level > only, that's why I was looking for a help doc search function that > worked on the offline docs. > > Thanks, > > -John > It should not be difficult to implement a local search with 'grep', as the documentation files are written in Gambas markdown. -- Beno?t Minisini From g4mba5 at gmail.com Sat May 22 21:36:25 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 21:36:25 +0200 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: <0ef88ab5-6ada-e470-9012-bee20c328f28@gmail.com> Le 22/05/2021 ? 21:10, John Anderson a ?crit?: > Forgive me if this already exists in Gambas, but On Gambas3.16, while > debugging is there a way to: > > Setup a Breakpoint to halt execution when changes? > > I know we can setup a Watch Expression to see what a variable / object > value is while paused at a breakpoint,? but is there a way to setup a > "Data Breakpoint" that can halt when an expression changes value. > > For instance in Gambas IDE: Setup a watch on public variable Xval , and > then tell the system we want to halt whenever Xval changes. > > I can't seem to find this in the docs if it exists. > > -John > This is not possible. It could be implemented, but then it will require to evaluate each time a line of code is executed, so it would slow down the program a lot. I will think about that, I'm just afraid that it would be slow, and that evaluating an expression may have side-effect - for example if you call a program function in your , or a native routine like Temp$()... -- Beno?t Minisini From g4mba5 at gmail.com Sat May 22 21:37:52 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 22 May 2021 21:37:52 +0200 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: <0ef88ab5-6ada-e470-9012-bee20c328f28@gmail.com> References: <0ef88ab5-6ada-e470-9012-bee20c328f28@gmail.com> Message-ID: <8c6eb0ad-6f8e-3b7b-003e-2e192a32d7e8@gmail.com> > Le 22/05/2021 ? 21:10, John Anderson a ?crit?: >> >> For instance in Gambas IDE: Setup a watch on public variable Xval , >> and then tell the system we want to halt whenever Xval changes. Watching a public variable would easier, as the memory address of static values and object contents never change during the program execution. -- Beno?t Minisini From bsteers4 at gmail.com Sat May 22 22:01:46 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 22 May 2021 21:01:46 +0100 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: You have the "Stop" command that will halt the debugger. http://gambaswiki.org/wiki/lang/stop So if you can monitor the expression yourself you could issue a Stop command if it changes. Not sure if that helps. BruceS On Sat, 22 May 2021 at 20:11, John Anderson wrote: > Forgive me if this already exists in Gambas, but On Gambas3.16, while > debugging is there a way to: > > Setup a Breakpoint to halt execution when changes? > > I know we can setup a Watch Expression to see what a variable / object > value is while paused at a breakpoint, but is there a way to setup a "Data > Breakpoint" that can halt when an expression changes value. > > For instance in Gambas IDE: Setup a watch on public variable Xval , and > then tell the system we want to halt whenever Xval changes. > > I can't seem to find this in the docs if it exists. > > -John > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat May 22 22:04:37 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 22 May 2021 21:04:37 +0100 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: On Sat, 22 May 2021 at 21:01, Bruce Steers wrote: > You have the "Stop" command that will halt the debugger. > http://gambaswiki.org/wiki/lang/stop > > So if you can monitor the expression yourself you could issue a Stop > command if it changes. > Not sure if that helps. > BruceS > Sorry i mean , halt the program and activate the debugger. It works just like a breakpoint but you can nest it in an If condition. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat May 22 22:08:51 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 22 May 2021 21:08:51 +0100 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: On Sat, 22 May 2021 at 21:04, Bruce Steers wrote: > > > On Sat, 22 May 2021 at 21:01, Bruce Steers wrote: > >> You have the "Stop" command that will halt the debugger. >> http://gambaswiki.org/wiki/lang/stop >> >> So if you can monitor the expression yourself you could issue a Stop >> command if it changes. >> Not sure if that helps. >> BruceS >> > > Sorry i mean , halt the program and activate the debugger. > It works just like a breakpoint but you can nest it in an If condition. > BruceS > Aah sorry i just read Benoits reply to this and realise i am way off the mark here and should just get back in my box. ;) lol BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun May 23 00:01:55 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 23 May 2021 00:01:55 +0200 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: <445a0556-d451-fdfd-f0a8-ec9d3a83ca7b@deganius.de> Am 22.05.21 um 21:10 schrieb John Anderson: > Forgive me if this already exists in Gambas, but On Gambas3.16, while > debugging is there a way to: > > Setup a Breakpoint to halt execution when changes? I always use 'Stop' for that: > If iFirst <> iSecond Then Stop In my work i need this quite rarely, so i doubt it has to be a new debugging feature. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun May 23 00:18:49 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 23 May 2021 00:18:49 +0200 Subject: [Gambas-user] IDE Operatiuon questn - suggestions part 2 In-Reply-To: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> References: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> Message-ID: <9b876d15-10f0-35fe-3fe2-afa7c5653ac3@deganius.de> Am 22.05.21 um 05:52 schrieb John Anderson: > I'm asking because we're looking at re-writing a large-ish VB6 project > (80k active code lines), and contained therein we've got some single > procedures many hundred code lines long, not counting comments. Uargh. In cases like this bookmarks (Ctrl-B) are very handy to jump around in the code. > evaluating Gambas to see if it's up to the task. Yes! If you are ok with the fact that you have to run it under Linux in future, Gambas is great! I have ported a large VBA project to Gambas that was about the same size. I could reuse a lot of code in Gambas. Naturally i had to go through every module and hit F5 thousands of times, but the fact alone that you can copy/paste the VB(A) code to Gambas, run it with F5 and Gambas tells you what to change is worth its weight in gold. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From johna at starflightinc.com Sun May 23 05:12:45 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 22 May 2021 20:12:45 -0700 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: <8c6eb0ad-6f8e-3b7b-003e-2e192a32d7e8@gmail.com> References: <0ef88ab5-6ada-e470-9012-bee20c328f28@gmail.com> <8c6eb0ad-6f8e-3b7b-003e-2e192a32d7e8@gmail.com> Message-ID: <8aa1cd8b-b316-15be-24c8-9e2982da41fb@starflightinc.com> EXACTLY.? Simple watching of a memory address is all I need - and break execution when the value it points to changes.? In all the times I've needed it I need something simple like break when a Boolean changes state, or when a public integer changes value.? Or maybe when a simple condition test is met.? It doesn't get more complicated than sometimes the "expression" we want to monitor is simple like "Break when (Xval < 0)" or "Break when (XVal > 10)" .? It's not something you need every day, but on a large project it can be a lifesaver at troubleshooting time.? I think a couple times I had to monitor two values and break when either one changed or met a simple condition test. In all cases where I've needed it it was to monitor a public variable, and break either when it changed...or say when the value went under or over range for instance.? It doesn't have to slow the system down much. I've been using this feature for decades on VS, Qt etc, and where a Data Breakkpoint helps a lot in a large project is: Where you need to monitor a public variable - typically just a Boolen or integer.? It is used in about 180 places throughout code, and the problem you're looking for is when it changes value in an unexpected way.? When did the value change and in what section of code, and what set of events lead to that condition.? There are many places where the change could have occurred depending on what's going on with the physical equipment we're running in the real world. OR When you're debugging an issue where the public variable changes because it was sent by reference to a code class that you didn't write, and the variable gets referenced by another name inside that class. OR when you have to call a C libray with the public variable sent as reference, and the C library unexpectedly changes the value.? At least we'd know the monitored value was changed when the C-function call returns. And so on.? There are lots of places a feature like this comes in handy. It would be very helpful if some sort of Data Breakpoint feature like this could be added to the Gambas debugger at some point.? You don't want it evaluating complex expressions - for sure that would be a slow down. -John ? We use a Data Breakpoint often in large code On 5/22/2021 12:37 PM, Beno?t Minisini wrote: >> Le 22/05/2021 ? 21:10, John Anderson a ?crit?: >>> >>> For instance in Gambas IDE: Setup a watch on public variable Xval , >>> and then tell the system we want to halt whenever Xval changes. > > Watching a public variable would easier, as the memory address of > static values and object contents never change during the program > execution. > From kicking177 at gmail.com Sun May 23 09:28:44 2021 From: kicking177 at gmail.com (KKing) Date: Sun, 23 May 2021 08:28:44 +0100 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint Message-ID: Hi John, I feel some of your pain, having been through some of that with a few migrations of VB6 and even older DOS based Basic dialects to Gambas. We would like to do more but it is very time consuming to migrate especially on the larger codebase programs, and hence have a lot of VB6 programs still running under wine. I particularly miss the ability to set a breakpoint in the "on error" section(s) and then being able to drag the active line to a "resume" statement having altered some offending variables on the fly to carry on debugging in very large projects where to start over is such a pain when a lot of inputs are required just to get back to the same point. Some habits die hard! We loaded notepad++ via wine and use it alongside the Gambas IDE where the being able to fold code helped a lot and some of the search and replace functionality proved more efficient for us. Also within Gambas Ctrl+H helped to a degree, and multiple large monitors. Good Luck K. From adamnt42 at gmail.com Sun May 23 12:03:14 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 23 May 2021 19:33:14 +0930 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: On 23/5/21 4:58 pm, KKing wrote: > Hi John, > I feel some of your pain, having been through some of that with a few > migrations of VB6 and even older DOS based Basic dialects to Gambas. > We would like to do more but it is very time consuming to migrate > especially on the larger codebase programs, and hence have a lot of VB6 > programs still running under wine. > I particularly miss the ability to set a breakpoint in the "on error" > section(s) and then being able to drag the active line to a "resume" > statement having altered some offending variables on the fly to carry on > debugging in very large projects where to start over is such a pain when > a lot of inputs are required just to get back to the same point. > Some habits die hard! > We loaded notepad++ via wine and use it alongside the Gambas IDE where > the being able to fold code helped a lot and some of the search and > replace functionality proved more efficient for us. > Also within Gambas Ctrl+H helped to a degree, and multiple large monitors. > Good Luck > K. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Just as a possible workarouns "clue" for that big method problem, I tried thos. It's a bit hacky but nevertheless. 1. In the class editor, with any line in the required method, collapse the entire class (Ctl+Alt+Return). This should collapse or "fold" the entire class. If that works press [home]]Shist+Down][Ctl+C] 2. In the "Data" ""directory"" create a new file called "temp.class" 3. Open that file and paste via (Ctl+V) Theoretically, (and AFAICS it works) you now hane a file with that methods code that has syntax highlighting and later you can select all of it and paste it back into the original class code. Obvious;y you must be aware that you are NOT editting the actual class source code at this point but at least yo do (should) have syntax highlighting and (should) have code complation. Finally copy the altered code back to the actual class. ( I dare not try this in my experiments yet as I am trying it on a 12,000 line stable project.) But the trick seems to be collapsing the code in the class editor. hth bruce From johna at starflightinc.com Sun May 23 19:22:14 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 23 May 2021 10:22:14 -0700 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: <05d76747-c36f-c3be-8780-6d90f41eb00b@starflightinc.com> On 5/23/2021 12:28 AM, KKing wrote: > We would like to do more but it is very time consuming to migrate > especially on the larger codebase programs Oh - Yes! In my world of semiconductor process equipment systems there is a ton of GUI stuff still running on VB6 / VS6.? It works very well and our uptime is measured in years running 24/7/365 across hundreds of installed machines.? The code snobs like to pooh-pooh VB6 "because true OOP is better"...and yet VB6 is OOP in a very friendly way.? Classes concepts, "New As" etc are all there. And a great IDE.? We used VB6 with C/C++ libraries to help speed up the complex stuff and machine vision.? With .Net came a lot of problems, and it wasn't compatible with VB6, and slow (Try moving back and forth from "managed" structs to unmanaged C-compatible structs fast)? so it was largely ignored for what we needed.?? These days the push in a lot of wafer fabs industry is to move away from Win10 / WinIoT, and more towards Linux controller systems, especially in secure air-gapped facilities.? No outside 'Net connection allowed, no cloud storage...Sorry, Microsoft, AWS.? Qt's IDE is very good for desktop GUI design and has great documentation, but is trying to move away from open source these days. Xamarin/Mono is a little rough for what we need.? GTK is ... That's why Gambas looks attractive to test especially for a Qt5 based desktop style GUI.? We have to have a seamless direct operation? C/C++ libraries, and it looks like Gambas can handle that too. Right now I've got VS6 / VB6 IDE running on a Win7 VM window for function by function inspection, and I've brought a lot of modules over to Gambas side where the files have every line Remark'd to start life in a Gambas source file, and then I can roughly go thru line by line inside GamIDE to build something Gambas friendly.? The logic path is already well tested on our equipment so we are trying to keep overall functionality and logical function exactly the same as we have it in VB6. ? We were already using Classes /? Publics anyway so a lot of it a simple conversion in Gambas.? Some sections of ON ERROR will get re-written of course. Gambas is a little easier than a straight out conversion to Qt for a GUI, but we've tried it a few different ways. Gambas has most of what we need, but a few tweaks on the debugger would really help - especially some sort of rudimentary "Data Breakpoint" feature.? Not need often, but when you need it it -really- helps.? A lot. Thanks -John PS - Sorry about previous post not following the "Shove New Message Response UNDER" rule on this list.? I live in a world were all email correspondence with hundreds of colleges follows PUSH NEW MESSAGE ON STACK message rule (most recent always on top).? I got a a off-list reminder from Bruce (writing me an email with his new content response on top) that he was extremely annoyed that I forgot to add my new content -under- previous list message...so to anyone else...Apologies.? I'll try harder next time. From t.lee.davidson at gmail.com Sun May 23 23:58:45 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 23 May 2021 17:58:45 -0400 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: <05d76747-c36f-c3be-8780-6d90f41eb00b@starflightinc.com> References: <05d76747-c36f-c3be-8780-6d90f41eb00b@starflightinc.com> Message-ID: On 5/23/21 1:22 PM, John Anderson wrote: > PS - Sorry about previous post not following the "Shove New Message Response UNDER" rule on this list.? I live in a world were > all email correspondence with hundreds of colleges follows PUSH NEW MESSAGE ON STACK message rule (most recent always on top). It's not really a rule; just a preference (for reasons outlined at http://www.idallen.com/topposting.html) that not everyone follows. No worries. We're glad to have you on-list. > I got a a off-list reminder from Bruce (writing me an email with his new content response on top) that he > was extremely annoyed that I forgot to add my new content -under- previous list message...so to anyone > else...Apologies.??I'll?try?harder?next?time. So, Bruce top-posted a message to you telling you that you should bottom-post... Sorry, Bruce, but that's kind of funny. -- Lee From g4mba5 at gmail.com Mon May 24 15:41:58 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 24 May 2021 15:41:58 +0200 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: Message-ID: <959c18d0-7be4-b624-9b34-0a4acb83c5bc@gmail.com> Le 22/05/2021 ? 21:10, John Anderson a ?crit?: > Forgive me if this already exists in Gambas, but On Gambas3.16, while > debugging is there a way to: > > Setup a Breakpoint to halt execution when changes? > > I know we can setup a Watch Expression to see what a variable / object > value is while paused at a breakpoint,? but is there a way to setup a > "Data Breakpoint" that can halt when an expression changes value. > > For instance in Gambas IDE: Setup a watch on public variable Xval , and > then tell the system we want to halt whenever Xval changes. > > I can't seem to find this in the docs if it exists. > > -John > Hi, Stopping the debugger when an expression changes has been implemented in the last commit. It's not so slow as soon as your expression does not reference a local symbol (i.e. a local or a class variable), because searching the value of a local symbol is not optimized in the debugger (it has to compare the symbol name with all possible symbol registered in the debugging information, there is no symbol table for that). Regards, -- Beno?t Minisini From johna at starflightinc.com Mon May 24 17:28:39 2021 From: johna at starflightinc.com (John Anderson) Date: Mon, 24 May 2021 08:28:39 -0700 Subject: [Gambas-user] IDE Operatiuon questn - suggestions part 2 In-Reply-To: <3d8b4576-65dd-3ca8-4e98-95b340b394c1@gmail.com> References: <2b9c6677-bb61-1e43-cf9a-735ac1a612bb@starflightinc.com> <3d8b4576-65dd-3ca8-4e98-95b340b394c1@gmail.com> Message-ID: On 5/22/2021 10:30 AM, Beno?t Minisini wrote: > Le 22/05/2021 ? 16:24, Beno?t Minisini a ?crit?: >> Le 22/05/2021 ? 05:52, John Anderson a ?crit?: >>> On Gambas IDE itself: >>> >>> A)? One thing I noticed as a newer user that's used to VB6 / Qt IDE >>> world:? On the properties browser on right hand window:? Those >>> Gambas properties aren't actually changed until you hit return or >>> tab away on that property, or use the spin up/down for that >>> property.? For instance if I have an object selected on a form, and >>> I go to properties and change some property X...I see the property >>> is displaying the new value, and in my mind that property has a new >>> value.? Then I hit RUN:? That property reverts to old value.? You >>> have to change the property value THEN hit Return, or tab to another >>> property or use that focused property's spin up/down button BEFORE >>> attempting to compile or run the program. You have to be a bit >>> careful there to change properties then test in the correct order, >>> otherwise you'll swear you changed a property but really the change >>> was discarded.? It would be neat if the new property value could be >>> applied as the cursor leaves the property pane, or before any Save / >>> Compile / Make is executed. >> >> It's just a bug. But apparently it does not bother a lot of people... >> I will fix it. >> > > It should be fixed in commit > https://gitlab.com/gambas/gambas/-/commit/74acc3d14ebbf479e2fd6bef309e1ed35b6709f6. > > Regards, > Thanks Beno?t, changing properties working better now! -John From johna at starflightinc.com Mon May 24 17:25:15 2021 From: johna at starflightinc.com (John Anderson) Date: Mon, 24 May 2021 08:25:15 -0700 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: References: <05d76747-c36f-c3be-8780-6d90f41eb00b@starflightinc.com> Message-ID: <11b75980-8f3f-3d06-6637-fac413d37ee8@starflightinc.com> An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon May 24 18:08:51 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 24 May 2021 18:08:51 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.16.1 Message-ID: <0ac87b5e-e040-d419-9f6b-b8e2eb191b18@gmail.com> Hi, I have just tagged the 3.16.1 version on GitLab. Please feel free to test it and report any problem with compilation and installation of the source file: https://gitlab.com/gambas/gambas/-/archive/3.16.1/gambas-3.16.1.tar.bz2 PPA stable packages will be made soon. -- Beno?t Minisini From clhamilto at gmail.com Mon May 24 18:50:37 2021 From: clhamilto at gmail.com (Curtis Hamilton) Date: Mon, 24 May 2021 12:50:37 -0400 Subject: [Gambas-user] Color rendering issue In-Reply-To: References: Message-ID: On Sun, May 16, 2021 at 3:15 PM Curtis Hamilton wrote: > Le 12/05/2021 ? 14:28, Beno?t Minisini a ?crit?: > > Le 11/05/2021 ? 23:31, Curtis Hamilton a ?crit?: > >> The color rendering seems to be off.? Background colors are not being > >> rendered correctly.? See the attached screenshot. > >> > >> I'm on FreeBSD/Powerpc64, could this be an endian issue? > >> > > > > > I would say yes. > > > > Please post your system information. > > > > And try to run the IDE with QT5 instead of GTK+3, or the contrary, to > > check if that changes something. > > > > Regards, > > > > >I'm not sure while looking at the screenshot: there is no background > >color set on the 'FMain.Form' tab toolbar normally, so it may not come > >from Gambas... > > > >-- > >Beno?t Minisini > > Running the IDE with QT5 and GTK+3, I get the same results. So I?m > thinking this is a big endian issue. I re-installed version 3.15.2 and > everything works in regards to the color issues. For now I?m going to > stick with version 3.15.2. > > Any recommendations? > > Regards, > Just wanted to provide a follow up with regards to the color rendering issue. It is indeed a big endian issue, as I now have GB 3.16.0 running under FBSD 13.0 PowerPC64LE. -regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon May 24 19:59:25 2021 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 24 May 2021 13:59:25 -0400 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: <11b75980-8f3f-3d06-6637-fac413d37ee8@starflightinc.com> References: <05d76747-c36f-c3be-8780-6d90f41eb00b@starflightinc.com> <11b75980-8f3f-3d06-6637-fac413d37ee8@starflightinc.com> Message-ID: <7e74f83e-3474-24e9-fe5b-e486851e5330@gmail.com> On 5/24/21 11:25 AM, John Anderson wrote: > I guess this all begs the question:? Why a mail list and forum at the same time?? Would it not be easier if all discussion took > place on the forum, and then this sort of thing isn't an issue?? Topics stay sorted out, easier to search etc.? I tried the > forum early on, but it didn't seem like it was as active as the mail list. There is no 'official' forum for Gambas. The mail list is the official discussion 'forum'. Any forums (are you referring to GambasOne?) are operated by third-parties. -- Lee From bsteers4 at gmail.com Mon May 24 20:35:07 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 24 May 2021 19:35:07 +0100 Subject: [Gambas-user] libmpv Message-ID: Has anyone done anything with libmpv? I'm looking at making an mpv media player component as it seems to support more formats than MediaView/GStreamer I've figured out how to run mpv via shell and embed it into a panel but it lacks control. I wondered if anyone has any libmpv code they've worked on i could browse? Or would they know if an embedded mpv can be further controlled via shell commands? Thanks in advance BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Mon May 24 20:46:08 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Mon, 24 May 2021 18:46:08 +0000 Subject: [Gambas-user] libmpv In-Reply-To: References: Message-ID: <3836ed2927886a76b95a569e7cd3e97a@cenpalab.cu> May 24, 2021 2:35 PM, "Bruce Steers" wrote: > Has anyone done anything with libmpv? > No. > snip > > Or would they know if an embedded mpv can be further controlled via shell commands? > There's supposed to be minimal GUI controls: https://mpv.io/manual/stable/#on-screen-controller "The On Screen Controller (short: OSC) is a minimal GUI integrated with mpv to offer basic mouse-controllability. It is intended to make interaction easier for new users and to enable precise and direct seeking. The OSC is enabled by default if mpv was compiled with Lua support. It can be disabled entirely using the --osc=no option." Regards, Joe1962 From jose.rodriguez at cenpalab.cu Mon May 24 20:50:59 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Mon, 24 May 2021 18:50:59 +0000 Subject: [Gambas-user] libmpv In-Reply-To: References: Message-ID: May 24, 2021 2:35 PM, "Bruce Steers" wrote: > Has anyone done anything with libmpv? > > I'm looking at making an mpv media player component as it seems to support more formats than > MediaView/GStreamer > > I've figured out how to run mpv via shell and embed it into a panel but it lacks control. > I wondered if anyone has any libmpv code they've worked on i could browse? > > Or would they know if an embedded mpv can be further controlled via shell commands? Also, there's this: https://github.com/mpv-player/mpv/blob/master/DOCS/man/ipc.rst "mpv can be controlled by external programs using the JSON-based IPC protocol. It can be enabled by specifying the path to a unix socket or a named pipe using the option --input-ipc-server. Clients can connect to this socket and send commands to the player or receive events from it." Regards, Joe1962 From bsteers4 at gmail.com Mon May 24 22:44:40 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 24 May 2021 21:44:40 +0100 Subject: [Gambas-user] libmpv In-Reply-To: References: Message-ID: On Mon, 24 May 2021, 20:01 , wrote: > May 24, 2021 2:35 PM, "Bruce Steers" wrote: > > > Has anyone done anything with libmpv? > > > > I'm looking at making an mpv media player component as it seems to > support more formats than > > MediaView/GStreamer > > > > I've figured out how to run mpv via shell and embed it into a panel but > it lacks control. > > I wondered if anyone has any libmpv code they've worked on i could > browse? > > > > Or would they know if an embedded mpv can be further controlled via > shell commands? > > > Also, there's this: > https://github.com/mpv-player/mpv/blob/master/DOCS/man/ipc.rst > > "mpv can be controlled by external programs using the JSON-based IPC > protocol. It can be enabled by specifying the path to a unix socket or a > named pipe using the option --input-ipc-server. Clients can connect to this > socket and send commands to the player or receive events from it." > > Regards, > > Joe1962 > Cheers Joe. Re. Your other reply.. yeah I knew all that. ? I missed this bit about socket control though. Could be a winner. Something to try at least Thank you ? BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Tue May 25 07:40:31 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 25 May 2021 00:40:31 -0500 Subject: [Gambas-user] ICMP Message-ID: This is probably a long shot, but has anyone done anything to create an icmp network check of remote hosts and can share some code? I have seen https://sologambas.blogspot.com/2012/08/haciendo-ping-en-gambas.html ( http://gambaswiki.org/wiki/app/ping) and it's fantastic as a start, but it's simply a shell to ping which is Really not what I wanted. I was hoping for something native to Gambas using the gb.net component or something... Here's hoping John -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue May 25 11:02:50 2021 From: adamnt42 at gmail.com (Bruce) Date: Tue, 25 May 2021 18:32:50 +0930 Subject: [Gambas-user] ICMP In-Reply-To: References: Message-ID: <12b2161e-f170-2e6a-4a89-60b15e044eb5@gmail.com> On 25/5/21 3:10 pm, John Dovey wrote: > This is probably a long shot, but has anyone done anything to create an > icmp network check of remote hosts and can share some code? > > I have seen > https://sologambas.blogspot.com/2012/08/haciendo-ping-en-gambas.html ( > http://gambaswiki.org/wiki/app/ping) and it's fantastic as a start, but > it's simply a shell to ping which is Really not what I wanted. I was > hoping for something native to Gambas using the gb.net component or > something... > > Here's hoping > John > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > John, Bad news I'm afraid. To address your 3 (and I must say well formed) questions... 1) "has anyone done anything to create anicmp network check of remote hosts"? Yes, several shiploads of attempts. b) "can share some code"? Unfortunately (for you but not for me) no. I sold the company and therefore the intellectual property. c) "hoping for something native to Gambas..." AFAIK No. To be serious, if I recall correctly, we had to use the Gambas "externals" features and (highly IIRC) the nmap api. But what is your intent? Are you trying to determine connectivity, connectivity features (naughty :-) ), connectivity "status" or something else? From johna at starflightinc.com Tue May 25 17:23:59 2021 From: johna at starflightinc.com (John Anderson) Date: Tue, 25 May 2021 08:23:59 -0700 Subject: [Gambas-user] Gambas3 Debugger: Data Breakpoint In-Reply-To: <959c18d0-7be4-b624-9b34-0a4acb83c5bc@gmail.com> References: <959c18d0-7be4-b624-9b34-0a4acb83c5bc@gmail.com> Message-ID: On 5/24/2021 6:41 AM, Beno?t Minisini wrote: > Le 22/05/2021 ? 21:10, John Anderson a ?crit?: >> Forgive me if this already exists in Gambas, but On Gambas3.16, while >> debugging is there a way to: >> >> Setup a Breakpoint to halt execution when changes? >> >> I know we can setup a Watch Expression to see what a variable / >> object value is while paused at a breakpoint,? but is there a way to >> setup a "Data Breakpoint" that can halt when an expression changes >> value. >> >> For instance in Gambas IDE: Setup a watch on public variable Xval , >> and then tell the system we want to halt whenever Xval changes. >> >> I can't seem to find this in the docs if it exists. >> >> -John >> > > Hi, > > Stopping the debugger when an expression changes has been implemented > in the last commit. > > It's not so slow as soon as your expression does not reference a local > symbol (i.e. a local or a class variable), because searching the value > of a local symbol is not optimized in the debugger (it has to compare > the symbol name with all possible symbol registered in the debugging > information, there is no symbol table for that). > > Regards, > Thanks Beno?t - This is a big step forward for being able to debug problems on a large codebase!!? No matter how hard we try to anticipate what could possibly go wrong in the field, reality always finds a way... From dovey.john at gmail.com Tue May 25 19:10:46 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 25 May 2021 12:10:46 -0500 Subject: [Gambas-user] ICMP In-Reply-To: <12b2161e-f170-2e6a-4a89-60b15e044eb5@gmail.com> References: <12b2161e-f170-2e6a-4a89-60b15e044eb5@gmail.com> Message-ID: Hi Bruce. We have a highly distributed network of volunteers within FidoNet who advertise their nodes in a nodelist that?s updated weekly. Included for most of those hosts is their host address and a number of flags which indicate which services they offer. These include Telnet, SSH, rlogin, smtp, BinkP/D, Finger, NNTP etc. What i would like to do is iterate through the list checking reachability (ping is ok for that) but also the availability of the advertised services. Simply ?are you responding on that port, and if so what is the response?. I hat I?m considering doing is just using a scripted telnet session (doable within Gambas I think) and capturing the output, then reading that to see what the status is. I was looking at the raw icmp thinking it would give a good initial ?here I am? type status. I?ve since found echoping, snorkeling etc so I might just go with one of those which also offer RRDP reporting and graphing, which was always a nice to have. One of the issues is that there are many on the network who are not advertising the services they actually offer, so having them auto tested and discovered would be a bonus. I?m not interested in the Internet traffic per se between the nodes, but what is interesting is how much mail they share between each other. That I?ll determine, along with the links between systems, by examining actual messages. One of the features of the messages we exchange is that each contains ?kludge lines? which record the path the message has take as well as a ?seen-by? line. I?ll be looking at building a links database from that. If you?re interested in the network topology, here?s a pretty map: http://2613.ru/fidograph/ You might want to limit by zone http://2613.ru/fidograph/?z=2 etc (zones are 1-4) JD On Tue, May 25, 2021 at 4:03 AM Bruce wrote: > On 25/5/21 3:10 pm, John Dovey wrote: > > This is probably a long shot, but has anyone done anything to create an > > icmp network check of remote hosts and can share some code? > > > > I have seen > > https://sologambas.blogspot.com/2012/08/haciendo-ping-en-gambas.html ( > > http://gambaswiki.org/wiki/app/ping) and it's fantastic as a start, but > > it's simply a shell to ping which is Really not what I wanted. I was > > hoping for something native to Gambas using the gb.net component or > > something... > > > > Here's hoping > > John > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > John, > > Bad news I'm afraid. To address your 3 (and I must say well formed) > questions... > > 1) "has anyone done anything to create anicmp network check of remote > hosts"? Yes, several shiploads of attempts. > b) "can share some code"? Unfortunately (for you but not for me) no. I > sold the company and therefore the intellectual property. > c) "hoping for something native to Gambas..." AFAIK No. > > To be serious, if I recall correctly, we had to use the Gambas > "externals" features and (highly IIRC) the nmap api. > > But what is your intent? Are you trying to determine connectivity, > connectivity features (naughty :-) ), connectivity "status" or something > else? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -- Sent from Gmail Mobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Tue May 25 20:05:44 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Tue, 25 May 2021 18:05:44 +0000 Subject: [Gambas-user] ICMP In-Reply-To: References: <12b2161e-f170-2e6a-4a89-60b15e044eb5@gmail.com> Message-ID: May 25, 2021 1:10 PM, "John Dovey" wrote: > What i would like to do is iterate through the list checking reachability (ping is ok for that) but > also the availability of the advertised services. Simply ?are you responding on that port, and if > so what is the response?. I hat I?m considering doing is just using a scripted telnet session > (doable within Gambas I think) and capturing the output, then reading that to see what the status > is. > Checking availability of a TCP port service should be easily doable with TCP sockets, but you might have to actually send something after connection if you want to check the response (though some services, as you can check with telnet, will reply with just enough). Ping should also be doable, but you'd need to look up the ICMP echo protocol RFCs, or related documentation (there is some example code around, mainly in C, which might also help). For example: https://www.geeksforgeeks.org/ping-in-c/ Regards, Joe1962 From claus.dietrich at freenet.de Tue May 25 20:57:19 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Tue, 25 May 2021 20:57:19 +0200 Subject: [Gambas-user] Garbled Title-Tag in the Mediaplayer Class Message-ID: <1257807f-de2f-e687-af43-96d001129744@freenet.de> Hi I wrote an Internet-Radio app using the Mediaplayer class. I used the Tag-event to catch the media-Tags. This works fine for German or English IP-Radio-Stations, but with Asian or Greek radio stations I get garbled "title"-tags while the bitrates remain readable. Is there a special text encoding for title-tags or does the tag not support UTF8? In case of a missing UTF8-support - can this be added and should I launch a feature request in the bugtracker? Best regards Claus From dovey.john at gmail.com Tue May 25 21:01:58 2021 From: dovey.john at gmail.com (John Dovey) Date: Tue, 25 May 2021 14:01:58 -0500 Subject: [Gambas-user] ICMP In-Reply-To: References: <12b2161e-f170-2e6a-4a89-60b15e044eb5@gmail.com> Message-ID: Thanks. That's pretty cool code. I think I'm probably going to go with the managed terminal emulator. Capture the output and work from there. JD On Tue, 25 May 2021 at 13:08, wrote: > May 25, 2021 1:10 PM, "John Dovey" wrote: > > > What i would like to do is iterate through the list checking > reachability (ping is ok for that) but > > also the availability of the advertised services. Simply ?are you > responding on that port, and if > > so what is the response?. I hat I?m considering doing is just using a > scripted telnet session > > (doable within Gambas I think) and capturing the output, then reading > that to see what the status > > is. > > > > > Checking availability of a TCP port service should be easily doable with > TCP sockets, but you might have to actually send something after connection > if you want to check the response (though some services, as you can check > with telnet, will reply with just enough). Ping should also be doable, but > you'd need to look up the ICMP echo protocol RFCs, or related documentation > (there is some example code around, mainly in C, which might also help). > > For example: > https://www.geeksforgeeks.org/ping-in-c/ > > Regards, > > Joe1962 > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dosida at gmail.com Tue May 25 23:54:28 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Tue, 25 May 2021 15:54:28 -0600 Subject: [Gambas-user] Garbled Title-Tag in the Mediaplayer Class In-Reply-To: <1257807f-de2f-e687-af43-96d001129744@freenet.de> References: <1257807f-de2f-e687-af43-96d001129744@freenet.de> Message-ID: Try starting your gambas program from a terminal like this: LANG=el_GR.UTF-8 ./mygambasprogram.gambas Where mygambasprogram.gambas is the filename of your GAMBAS program's executable. See if that fixes the Greek character issues. If it does, then it's an issue with the locales not with Mediaplayer On Tue, May 25, 2021 at 12:58 PM Claus Dietrich wrote: > Hi > > I wrote an Internet-Radio app using the Mediaplayer class. I used the > Tag-event to catch the media-Tags. This works fine for German or English > IP-Radio-Stations, but with Asian or Greek radio stations I get garbled > "title"-tags while the bitrates remain readable. Is there a special text > encoding for title-tags or does the tag not support UTF8? In case of a > missing UTF8-support - can this be added and should I launch a feature > request in the bugtracker? > > Best regards > > Claus > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed May 26 01:07:16 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 26 May 2021 00:07:16 +0100 Subject: [Gambas-user] Libmpv interest? Message-ID: Hey Ben would there be interest in adding (I could give it a go) an MpvView to gb.form.media ? I've only just got into it but it looks like very minimal code could open the libmpv command / option / properties up to the programmer and enable a whole lot of functionality via a very small and basic class file that by default could have the same functions/properties of MediaView but then a whole lot more. The reason behind me using mpv in the first place and not MediaView is mpv plays more video formats for me than gstreamer , yes probably my config but still there are many other benefits of mpv. If only gtk3 would behave itself. Thanks for any consideration. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 26 01:11:19 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 26 May 2021 01:11:19 +0200 Subject: [Gambas-user] Libmpv interest? In-Reply-To: References: Message-ID: Le 26/05/2021 ? 01:07, Bruce Steers a ?crit?: > Hey Ben would there be interest in adding (I could give it a go) an > MpvView to gb.form.media ? > > I've only just got into it but it looks like very minimal code? could > open the libmpv command / option / properties up to the programmer and > enable a whole lot of functionality via a very small and basic class > file that by default could have the same functions/properties of > MediaView but then a whole lot more. > > The reason behind me using mpv in the first place and not MediaView is > mpv plays more video formats for me than gstreamer , yes probably my > config but still there are many other benefits of mpv. > > If only gtk3 would behave itself. > > Thanks for any consideration. > > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You have to create a component in C/C++ on its own, because you are depending on a specific shared binary library. -- Beno?t Minisini From bsteers4 at gmail.com Wed May 26 02:22:56 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 26 May 2021 01:22:56 +0100 Subject: [Gambas-user] Libmpv interest? In-Reply-To: References: Message-ID: On Wed, 26 May 2021 at 00:12, Beno?t Minisini wrote: > Le 26/05/2021 ? 01:07, Bruce Steers a ?crit : > > Hey Ben would there be interest in adding (I could give it a go) an > > MpvView to gb.form.media ? > > > > I've only just got into it but it looks like very minimal code could > > open the libmpv command / option / properties up to the programmer and > > enable a whole lot of functionality via a very small and basic class > > file that by default could have the same functions/properties of > > MediaView but then a whole lot more. > > > > The reason behind me using mpv in the first place and not MediaView is > > mpv plays more video formats for me than gstreamer , yes probably my > > config but still there are many other benefits of mpv. > > > > If only gtk3 would behave itself. > > > > Thanks for any consideration. > > > > BruceS > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > You have to create a component in C/C++ on its own, because you are > depending on a specific shared binary library. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Dang , that's well beyond my ability. For someone like you who knows what they are doing with gambas C components i should imagine it would be very simple as there's not really much to do with the API, just a few functions then let the programmer do the rest, it's a completely foreign language to me though. Maybe for now i'll just refine my gambas usercontrol and pop it on the farm. Cheers anyway :) Wishing well BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 26 03:19:51 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 26 May 2021 03:19:51 +0200 Subject: [Gambas-user] Libmpv interest? In-Reply-To: References: Message-ID: Le 26/05/2021 ? 02:22, Bruce Steers a ?crit?: > > > On Wed, 26 May 2021 at 00:12, Beno?t Minisini > wrote: > > Le 26/05/2021 ? 01:07, Bruce Steers a ?crit?: > > Hey Ben would there be interest in adding (I could give it a go) an > > MpvView to gb.form.media ? > > > > I've only just got into it but it looks like very minimal code > could > > open the libmpv command / option / properties up to the > programmer and > > enable a whole lot of functionality via a very small and basic class > > file that by default could have the same functions/properties of > > MediaView but then a whole lot more. > > > > The reason behind me using mpv in the first place and not > MediaView is > > mpv plays more video formats for me than gstreamer , yes probably my > > config but still there are many other benefits of mpv. > > > > If only gtk3 would behave itself. > > > > Thanks for any consideration. > > > > BruceS > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > > You have to create a component in C/C++ on its own, because you are > depending on a specific shared binary library. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > Dang , that's well beyond my ability. > For someone like you who knows what they are doing with gambas C > components i should imagine it would be very simple as there's not > really much to do with the API, just a few functions then let the > programmer do the rest, it's a completely foreign language to me though. > > Maybe for now i'll just refine my gambas usercontrol and pop it on the farm. > Cheers anyway :) > Wishing well > BruceS > You cannot put a library name like "libmpv" directly in a EXTERN definition and expect it to work on all system (for example, I have to write "libmpv:1"). You have to write a normal component in C/C++, because you have to detect which library is installed on the system, you have to use the C/C++ header files (so that the compiler can call the library functions correctly), and later that component must have its own binary package with its own dependency on "libmpv". Maybe if the Gambas interpreter had a way to detect shared libraries at runtime, telling which version it detects, you could write a program that adapt to it, and then writing an error message like "you must install libmpv" if you do not detect it. But at the moment, no way. Sorry for that! -- Beno?t Minisini From johna at starflightinc.com Wed May 26 04:58:00 2021 From: johna at starflightinc.com (John Anderson) Date: Tue, 25 May 2021 19:58:00 -0700 Subject: [Gambas-user] Gambas3 IDE crashes itself out of existence Message-ID: <0c415c86-ba71-963c-019d-b9bfa2b30281@starflightinc.com> An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Wed May 26 08:18:13 2021 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Wed, 26 May 2021 08:18:13 +0200 Subject: [Gambas-user] Garbled Title-Tag in the Mediaplayer Class Message-ID: <4eedff1d-dbf8-88b2-df5e-76257ac4354f@freenet.de> Confirmed! It has nothing to do with UTF-8-support of the mediaplayer class. By whatsoever reason and after a reboot, the title-tags of all stations including Greek were OK. Rgds, Claus From dosida at gmail.com Wed May 26 09:02:47 2021 From: dosida at gmail.com (Dimitris Anogiatis) Date: Wed, 26 May 2021 01:02:47 -0600 Subject: [Gambas-user] Gambas3 IDE crashes itself out of existence In-Reply-To: <0c415c86-ba71-963c-019d-b9bfa2b30281@starflightinc.com> References: <0c415c86-ba71-963c-019d-b9bfa2b30281@starflightinc.com> Message-ID: Hey John... can you open a terminal, go to the folder that you got the TestProject.gambas and type: file TestProject.gambas It should give you something like this: TestProject.gambas: a /usr/bin/env gbr3 script executable (binary data) If it gives you a different result, there might be something wrong with the MIME types. On Tue, May 25, 2021 at 9:21 PM John Anderson wrote: > This is a "just a bug" - on Gambas 3.16.90 May 25, 2021 build on Linux > Mint 20.1 Not a huge deal but it should probably be fixed at some point. > I couldn't get on the bug tracker tonight so here it is: > > 1. Open up Gambas IDE, just sitting at initial home welcome page. > > 2. Go to Open a File, and pick any binary file out of a project > folder...for instance "TestProject.gambas". Or any binary file. > > 3. A malformed modal warning dialog box displaying a file name path and > cut-off text announcing "Can not open binary file" I guess. I can't see > all the displayed text. > > 4. Click OK. > > 5. Entire Gambas IDE disappears itself, with some system memory lost > forever. Oops. > > 6. Restart Gambas IDE, and the Home Welcome page is showing (not very > helpfully) the binary file that it can't possibly open on the recent files > list. Just begging me to try it again. Yep, it does the same thing all > over again. > > Again, not a big problem but maybe it could get looked at on an upcoming > revision. I don't think Gambas3 IDE intends to quit like that for no > reason - I think what was meant to happen is when you click OK on the > warning dialog it should go back to Welcome Home screen, and the binary > file it can't open shouldn't be on the recent files list. At least that's > how I think is what is supposed to happen. > > -John > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed May 26 10:28:47 2021 From: adamnt42 at gmail.com (Bruce) Date: Wed, 26 May 2021 17:58:47 +0930 Subject: [Gambas-user] Gambas3 IDE crashes itself out of existence In-Reply-To: <0c415c86-ba71-963c-019d-b9bfa2b30281@starflightinc.com> References: <0c415c86-ba71-963c-019d-b9bfa2b30281@starflightinc.com> Message-ID: On 26/5/21 12:28 pm, John Anderson wrote: > This is a "just a bug" - on Gambas 3.16.90 May 25, 2021 build on Linux Mint > 20.1 Not a huge deal but it should probably be fixed at some point. I couldn't > get on the bug tracker tonight so here it is: > > 1. Open up Gambas IDE, just sitting at initial home welcome page. > > 2. Go to Open a File, and pick any binary file out of a project folder...for > instance "TestProject.gambas". Or any binary file. > > 3. A malformed modal warning dialog box displaying a file name path and cut-off > text announcing "Can not open binary file" I guess. I can't see all the > displayed text. > > 4. Click OK. > > 5. Entire Gambas IDE disappears itself, with some system memory lost forever. > Oops. > > 6. Restart Gambas IDE, and the Home Welcome page is showing (not very > helpfully) the binary file that it can't possibly open on the recent files > list. Just begging me to try it again. Yep, it does the same thing all over again. > > Again, not a big problem but maybe it could get looked at on an upcoming > revision. I don't think Gambas3 IDE intends to quit like that for no reason - I > think what was meant to happen is when you click OK on the warning dialog it > should go back to Welcome Home screen, and the binary file it can't open > shouldn't be on the recent files list. At least that's how I think is what is > supposed to happen. > > -John > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Yep, I reckon the third time you try to open it, after you have been told "not tp play with matches" twice, it should do the old 30,000 volts through the keyboard/mouse trick. ;-) From bsteers4 at gmail.com Wed May 26 11:07:18 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 26 May 2021 10:07:18 +0100 Subject: [Gambas-user] Gambas3 IDE crashes itself out of existence In-Reply-To: References: <0c415c86-ba71-963c-019d-b9bfa2b30281@starflightinc.com> Message-ID: On Wed, 26 May 2021 at 09:29, Bruce wrote: > On 26/5/21 12:28 pm, John Anderson wrote: > > This is a "just a bug" - on Gambas 3.16.90 May 25, 2021 build on Linux > Mint > > 20.1 Not a huge deal but it should probably be fixed at some point. I > couldn't > > get on the bug tracker tonight so here it is: > > > > 1. Open up Gambas IDE, just sitting at initial home welcome page. > > > > 2. Go to Open a File, and pick any binary file out of a project > folder...for > > instance "TestProject.gambas". Or any binary file. > > > > 3. A malformed modal warning dialog box displaying a file name path and > cut-off > > text announcing "Can not open binary file" I guess. I can't see all the > > displayed text. > I think this is an issue Ben. It's possible to overload a message box with text and get something unreadable or buttons offscreen (what to press?). Maybe some handling with Message.class to scroll the text? > > 4. Click OK. > > > > 5. Entire Gambas IDE disappears itself, with some system memory lost > forever. > > Oops. > Did you not get an error message and a choice to ignore or close? > 6. Restart Gambas IDE, and the Home Welcome page is showing (not very > > helpfully) the binary file that it can't possibly open on the recent > files > > list. Just begging me to try it again. Yep, it does the same thing all > over again. > Er. when you load gambas3 it starts at the welcome screen. did you want it to know you wanted to open a particular project this time? Imagine if it wanted to auto-load that file you should never have opened in the first place? ;) there's ancient expressions for this type of thing i know there is... Things like ,, "if we do not learn from our mistakes we are doomed to repeat them." Things like... Patient: doctor it hurts when i do "that".. Doctor: so don't do "that" then. ;) > > Again, not a big problem but maybe it could get looked at on an upcoming > > revision. I don't think Gambas3 IDE intends to quit like that for no > reason - I > > think what was meant to happen is when you click OK on the warning > dialog it > > should go back to Welcome Home screen, and the binary file it can't open > > shouldn't be on the recent files list. At least that's how I think is > what is > > supposed to happen. The other day i was writing a control and i used Pubic Const _Similar As String = "MovieBox, MediaView" But because i had not loaded gb.form.media the MediaView was not found. Right clicking the control caused an error crash. But where lieth the problem? I decided it was with me. I do not expect Benoit to create handling for all my own stupid errors, I mean , i can be really stupid if i want ;) Things like this John you should add to the bugtracker. (that's where i plan to add the above glitch i found) Then when Benoit has time he works through the little kinks from there. errors reported here can get lost in the cosmos. > -John > > Yep, I reckon the third time you try to open it, after you have been > told "not tp play with matches" twice, it should do the old 30,000 volts > through the keyboard/mouse trick. > > ;-) > Haha They say programming can be 10% program and 90% fool proofing (sorry, i mean error handling) ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed May 26 13:37:57 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 26 May 2021 12:37:57 +0100 Subject: [Gambas-user] Libmpv interest? In-Reply-To: References: Message-ID: On Wed, 26 May 2021, 02:20 Beno?t Minisini, wrote: > Le 26/05/2021 ? 02:22, Bruce Steers a ?crit : > > > > > > On Wed, 26 May 2021 at 00:12, Beno?t Minisini > > wrote: > > > > Le 26/05/2021 ? 01:07, Bruce Steers a ?crit : > > > Hey Ben would there be interest in adding (I could give it a go) > an > > > MpvView to gb.form.media ? > > > > > > I've only just got into it but it looks like very minimal code > > could > > > open the libmpv command / option / properties up to the > > programmer and > > > enable a whole lot of functionality via a very small and basic > class > > > file that by default could have the same functions/properties of > > > MediaView but then a whole lot more. > > > > > > The reason behind me using mpv in the first place and not > > MediaView is > > > mpv plays more video formats for me than gstreamer , yes probably > my > > > config but still there are many other benefits of mpv. > > > > > > If only gtk3 would behave itself. > > > > > > Thanks for any consideration. > > > > > > BruceS > > > > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > ]---- > > > > > > > You have to create a component in C/C++ on its own, because you are > > depending on a specific shared binary library. > > > > -- > > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > ]---- > > > > > > Dang , that's well beyond my ability. > > For someone like you who knows what they are doing with gambas C > > components i should imagine it would be very simple as there's not > > really much to do with the API, just a few functions then let the > > programmer do the rest, it's a completely foreign language to me though. > > > > Maybe for now i'll just refine my gambas usercontrol and pop it on the > farm. > > Cheers anyway :) > > Wishing well > > BruceS > > > > You cannot put a library name like "libmpv" directly in a EXTERN > definition and expect it to work on all system (for example, I have to > write "libmpv:1"). > > You have to write a normal component in C/C++, because you have to > detect which library is installed on the system, you have to use the > C/C++ header files (so that the compiler can call the library functions > correctly), and later that component must have its own binary package > with its own dependency on "libmpv". > > Maybe if the Gambas interpreter had a way to detect shared libraries at > runtime, telling which version it detects, you could write a program > that adapt to it, and then writing an error message like "you must > install libmpv" if you do not detect it. But at the moment, no way. > > Sorry for that! > Doh! Why oh why can it not just be easy? ? Hehe , only kidding. Thanks for the explanation. To be honest it does sound like over complicated with versions being a load fail issue. Could not a flag be supplied to extern load any (the available) version and hope the programmer has catered for backward/forward compatibility? And yes I had intended to put something in to check libmpv exists (or make it a dependency) Does anyone who knows how to make c/c++ components fancy knocking up a libmpv component? Theres only a few commands need exposing, control is all done via command/option/property calls and can be left to the programmer. C is just way beyond me. Thank you BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Wed May 26 17:19:45 2021 From: claude.dessere at orange.fr (CD) Date: Wed, 26 May 2021 17:19:45 +0200 Subject: [Gambas-user] Debug window In-Reply-To: References: Message-ID: Le vendredi 21 mai 2021 ? 13:39 +0200, CD a ?crit : > Le vendredi 21 mai 2021 ? 12:12 +0200, user-request at lists.gambas-basic.org a > ?crit : > > Send User mailing list submissions to user at lists.gambas-basic.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://lists.gambas-basic.org/listinfo/user > > or, via email, send a message with subject or body 'help' to > > user-request at lists.gambas-basic.org > > > > You can reach the person managing the list at > > user-owner at lists.gambas-basic.org > > > > When replying, please edit your Subject line so it is more specificthan "Re: > > Contents of User digest..."Today's Topics: > > 1. Re: Autocomplete would be good if it could list all _ > > methods (Bruce) 2. Re: Seek in IDE (Dag JNJ) 3. Re: Debug window (T > > Lee Davidson)----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- Hello, my debug window does display the information I send to it, but all the bar buttons are grayed out and disabled,and in the status bar the textbox in frontof the question mark is inactive too. Is this normal? I looked for options in the menus, I found nothing? Cordially > >It doesn't sound normal. > > > >There are two toolbars in the debug window: at the top has clipboard action > icons and at the bottom are Console, >Breakpoints, > >etc. Both of them are active on my system. The textbox *to the right* of the > question mark is disabled while the >project is > >being executed. > > I'm talking about the console, do we agree? in design mode as in runtime mode, > nothing works, neither the buttons of the status bar, nor the textbox to the > right of the question mark.So ? > Regards It's OK, I just installed 3.16.1 and have a fully functional console. Thank you for your help and advices! -------------- next part -------------- An HTML attachment was scrubbed... URL: From johna at starflightinc.com Wed May 26 17:46:56 2021 From: johna at starflightinc.com (John Anderson) Date: Wed, 26 May 2021 08:46:56 -0700 Subject: [Gambas-user] Gambas3 IDE crashes itself out of existence In-Reply-To: References: <0c415c86-ba71-963c-019d-b9bfa2b30281@starflightinc.com> Message-ID: <52ddb27f-8452-51b5-f855-49833a235e27@starflightinc.com> On 5/26/2021 12:02 AM, Dimitris Anogiatis wrote: > Hey John... can you open a terminal, go to the folder that you got the > TestProject.gambas and type: > > file TestProject.gambas > > It should give you something like this: > > TestProject.gambas: a /usr/bin/env gbr3 script executable (binary data) > > If it gives you a different result, there might be something wrong > with the MIME types. > > Yes, that is exactly what I get. It isn't a MIME type problem. The issue isn't that I'm concerned that Gambas can't open a "binary file"...I don't expect it to of course.? But if a user goes to Open a File and (accidentally?) selects a binary file (it's not like you can always tell only by filename in Linux) the IDE should produce a read-able message, it shouldn't crash itself and it shouldn't be putting a file that can't be opened on the Recent Files list.? The "problem file" was never "opened", so it should not be in "recent file" list anyway. ? That's not in the user's sphere of responsibility. Better yet:? maybe Binary files and other types that can't be opened are not shown on that file browser window.?? Filter out everything except text? / sources files if that's what "Open a File" can handle.? Maybe in the future on if I hit "Open a File" and I select a PNG file, Gambas takes me to GIMP or whatever default image editor is installed.? That would be cool.? But for now not crashing the IDE is probably main fix. Again:? I know it's not a HUGE issue, but one that wants to be looked at to help keep the IDE stable even if the user selects a wrong file type by accident in a file browser.? If it happens on Home Welcome page there are maybe other places it can happen inside the IDE.? It would be a drag if you went to add a file to a project, accidentally selected a binary file and crashed the IDE with unsaved data.? I haven't tried that extensively. Screenshot attached of what I see for modal error dialog.? Once I hit OK, IDE is gone.? - But next time I open IDE that file is on Recent File List. -John -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas3_Open_Binary_File_Open_Dialog.png Type: image/png Size: 10506 bytes Desc: not available URL: From dovey.john at gmail.com Wed May 26 20:42:33 2021 From: dovey.john at gmail.com (John Dovey) Date: Wed, 26 May 2021 13:42:33 -0500 Subject: [Gambas-user] Tab Stop Order Message-ID: It took me way longer than it should have to figure out how to change the Tab Stop order. Once I figured it out, it was simple and intuitive. To help others, I created http://gambaswiki.org/edit/howto/changetaborder I haven't placed any screen captures there (as much as I wanted to) as I don't know how to upload images to the wiki. Comments, Questions, Suggestions? -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed May 26 21:41:58 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 27 May 2021 05:11:58 +0930 Subject: [Gambas-user] Tab Stop Order In-Reply-To: References: Message-ID: <7642e0ba-006d-30d5-e350-5a4ad2ffeeec@gmail.com> On 27/5/21 4:12 am, John Dovey wrote: > It took me way longer than it should have to figure out how to change the > Tab Stop order. Once I figured it out, it was simple and intuitive. To help > others, I created http://gambaswiki.org/edit/howto/changetaborder > I haven't placed any screen captures there (as much as I wanted to) as I > don't know how to upload images to the wiki. > > Comments, Questions, Suggestions? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi John, I made two little changes to your page. One to avoid (TM) issues and the other to clarify the last paragraph. I haven't time just now but there is also drag/drop, cut/paste (gets around container boundaries) regards From dovey.john at gmail.com Thu May 27 01:17:44 2021 From: dovey.john at gmail.com (John Dovey) Date: Wed, 26 May 2021 18:17:44 -0500 Subject: [Gambas-user] Tab Stop Order In-Reply-To: <7642e0ba-006d-30d5-e350-5a4ad2ffeeec@gmail.com> References: <7642e0ba-006d-30d5-e350-5a4ad2ffeeec@gmail.com> Message-ID: Fantastic. Thanks. On Wed, 26 May 2021 at 14:43, Bruce wrote: > On 27/5/21 4:12 am, John Dovey wrote: > > It took me way longer than it should have to figure out how to change the > > Tab Stop order. Once I figured it out, it was simple and intuitive. To > help > > others, I created http://gambaswiki.org/edit/howto/changetaborder > > I haven't placed any screen captures there (as much as I wanted to) as I > > don't know how to upload images to the wiki. > > > > Comments, Questions, Suggestions? > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Hi John, > > I made two little changes to your page. One to avoid (TM) issues and the > other to clarify the last paragraph. > > I haven't time just now but there is also drag/drop, cut/paste (gets > around container boundaries) > > regards > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 27 01:36:22 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 May 2021 01:36:22 +0200 Subject: [Gambas-user] Pre-release of Gambas 3.16.1 In-Reply-To: <0ac87b5e-e040-d419-9f6b-b8e2eb191b18@gmail.com> References: <0ac87b5e-e040-d419-9f6b-b8e2eb191b18@gmail.com> Message-ID: <2a7b1e10-48fb-9db9-4265-81020e522de2@gmail.com> Le 24/05/2021 ? 18:08, Beno?t Minisini a ?crit?: > Hi, > > I have just tagged the 3.16.1 version on GitLab. > > Please feel free to test it and report any problem with compilation and > installation of the source file: > > https://gitlab.com/gambas/gambas/-/archive/3.16.1/gambas-3.16.1.tar.bz2 > > PPA stable packages will be made soon. > Ubuntu packages of Gambas 3.16.1 are available on the stable PPA. Please report any problem when you update. Regards, -- Beno?t Minisini From dovey.john at gmail.com Thu May 27 04:58:21 2021 From: dovey.john at gmail.com (John Dovey) Date: Wed, 26 May 2021 21:58:21 -0500 Subject: [Gambas-user] Broken install Message-ID: Ok. I've broken my install and I don't know how to reinstall. Here is the apt -fix output: -- Start -- sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: gambas3-examples libgmime-3.0-0 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: gambas3-dev-tools gambas3-ide gambas3-runtime gambas3-scripter The following packages will be REMOVED: gambas3-gb-jit gambas3-script The following NEW packages will be installed: gambas3-dev-tools gambas3-scripter The following packages will be upgraded: gambas3-ide gambas3-runtime 2 upgraded, 2 newly installed, 2 to remove and 0 not upgraded. 95 not fully installed or removed. Need to get 0 B/2975 kB of archives. After this operation, 529 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 97851 files and directories currently installed.) Preparing to unpack .../gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb ... Unpacking gambas3-ide (3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1) over (3.14.3-2ubuntu3.1) ... dpkg: error processing archive /var/cache/apt/archives/gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb (--unpack): trying to overwrite '/usr/share/gambas3/template/console/.directory', which is also in package gambas3-runtime 3.14.3-2ubuntu3.1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) boondock at DoveyLapTopII:/usr/bin$ -- End -- How can I remove everything and reinstall ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Thu May 27 08:39:16 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 27 May 2021 08:39:16 +0200 Subject: [Gambas-user] Val() Message-ID: Hello, why Val("&FFFF") = -1 and why Val("&FFFFFFFF") = -1 is it normal? attached a TestVal project Regards [System] Gambas=3.16.1 OperatingSystem=Linux Kernel=5.4.0-73-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=199892 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1501,unix/:/tmp/.ICE- unix/1501 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1561 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestVal-0.0.1.tar.gz Type: application/x-compressed-tar Size: 12227 bytes Desc: not available URL: From bsteers4 at gmail.com Thu May 27 08:55:12 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 27 May 2021 07:55:12 +0100 Subject: [Gambas-user] Val() In-Reply-To: References: Message-ID: On Thu, 27 May 2021 at 07:40, CD wrote: > Hello, > > why Val("&FFFF") = -1 > and > why Val("&FFFFFFFF") = -1 > > is it normal? > > I is when you do it wrong you must put & at begining and end... Try this... Val("&FFFF&) Val("&FFFFFFFF&") > attached a TestVal project > Regards > > > [System] > Gambas=3.16.1 > OperatingSystem=Linux > Kernel=5.4.0-73-generic > Architecture=x86_64 > Distribution=Ubuntu 20.04.2 LTS > Desktop=MATE > Font=Ubuntu,11 > Scale=8 > Theme=traditionalgreen > Language=fr_FR.UTF-8 > Memory=7838M > > [Libraries] > Cairo=libcairo.so.2.11600.0 > Curl=libcurl.so.4.6.0 > DBus=libdbus-1.so.3.19.11 > GDK2=libgdk-x11-2.0.so.0.2400.32 > GDK3=libgdk-3.so.0.2404.16 > GStreamer=libgstreamer-1.0.so.0.1602.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2404.16 > OpenGL=libGL.so.1.7.0 > Poppler=libpoppler.so.73.0.0 > Poppler=libpoppler.so.97.0.0 > QT5=libQt5Core.so.5.12.8 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > COMPIZ_CONFIG_PROFILE=mate > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/mate.default.path > DESKTOP_SESSION=mate > DISPLAY=:0 > GB_GUI=gb.gtk3 > GDMSESSION=mate > GDM_LANG=fr_FR > GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=199892 > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module > GTK_OVERLAY_SCROLLING=0 > HOME= > INSIDE_CAJA_PYTHON= > LANG=fr_FR.UTF-8 > LANGUAGE=fr_FR.UTF-8 > LC_ADDRESS=fr_FR.UTF-8 > LC_ALL=fr_FR.UTF-8 > LC_IDENTIFICATION=fr_FR.UTF-8 > LC_MEASUREMENT=fr_FR.UTF-8 > LC_MONETARY=fr_FR.UTF-8 > LC_NAME=fr_FR.UTF-8 > LC_NUMERIC=fr_FR.UTF-8 > LC_PAPER=fr_FR.UTF-8 > LC_TELEPHONE=fr_FR.UTF-8 > LC_TIME=fr_FR.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path > MATE_DESKTOP_SESSION_ID=this-is-deprecated > PAPERSIZE=a4 > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > PWD= > QT_ACCESSIBILITY=1 > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_LOGGING_RULES=*.debug=false > QT_QPA_PLATFORMTHEME=gtk2 > QT_SCALE_FACTOR=1 > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1501,unix/:/tmp/.ICE-unix/1501 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1561 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > UBUNTU_MENUPROXY=1 > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg > XDG_CURRENT_DESKTOP=MATE > > XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_CLASS=user > XDG_SESSION_DESKTOP=mate > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu May 27 08:56:39 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 27 May 2021 07:56:39 +0100 Subject: [Gambas-user] Val() In-Reply-To: References: Message-ID: On Thu, 27 May 2021 at 07:55, Bruce Steers wrote: > > > On Thu, 27 May 2021 at 07:40, CD wrote: > >> Hello, >> >> why Val("&FFFF") = -1 >> and >> why Val("&FFFFFFFF") = -1 >> >> is it normal? >> >> > I is when you do it wrong > you must put & at begining and end... > > Try this... > Val("&FFFF&) > > oops no quote.. Val("&FFFF&") BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu May 27 09:12:20 2021 From: adamnt42 at gmail.com (Bruce) Date: Thu, 27 May 2021 16:42:20 +0930 Subject: [Gambas-user] Val() In-Reply-To: References: Message-ID: <38a7db4d-d3e7-e900-7bd4-5614131b930b@gmail.com> On 27/5/21 4:26 pm, Bruce Steers wrote: > On Thu, 27 May 2021 at 07:55, Bruce Steers wrote: > >> >> >> On Thu, 27 May 2021 at 07:40, CD wrote: >> >>> Hello, >>> >>> why Val("&FFFF") = -1 >>> and >>> why Val("&FFFFFFFF") = -1 >>> >>> is it normal? >>> >>> >> I is when you do it wrong or perhaps, maybe, could it possibly be just because one is a short and one is a long. So their both -1 ;-) >> you must put & at begining and end... >> >> Try this... >> Val("&FFFF&) >> >> oops no quote.. > Val("&FFFF&") > > BruceS > > From dickson.tim at googlemail.com Thu May 27 12:29:38 2021 From: dickson.tim at googlemail.com (Tim Dickson) Date: Thu, 27 May 2021 11:29:38 +0100 Subject: [Gambas-user] Val() In-Reply-To: <38a7db4d-d3e7-e900-7bd4-5614131b930b@gmail.com> References: <38a7db4d-d3e7-e900-7bd4-5614131b930b@gmail.com> Message-ID: <3f9e337f-b39d-a6ae-0460-2c0000bf0966@googlemail.com> good old two's compliment. Unless the int is unsigned, you don't normally have negative hex, so it probably expects it to be a signed short int/int On 27/05/2021 08:12, Bruce wrote: > On 27/5/21 4:26 pm, Bruce Steers wrote: >> On Thu, 27 May 2021 at 07:55, Bruce Steers wrote: >> >>> >>> >>> On Thu, 27 May 2021 at 07:40, CD wrote: >>> >>>> Hello, >>>> >>>> why Val("&FFFF") = -1 >>>> and >>>> why Val("&FFFFFFFF") = -1 >>>> >>>> is it normal? >>>> >>>> >>> I is when you do it wrong > > > or perhaps, maybe, could it possibly be just because one is a short > and one is a long.? So their both -1 > ?;-) > > >>> you must put & at begining and end... >>> >>> Try this... >>> Val("&FFFF&) >>> >>> oops? no quote.. >> Val("&FFFF&") >> >> BruceS >> >> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- This email has been checked for viruses by AVG. https://www.avg.com From claude.dessere at orange.fr Thu May 27 13:45:13 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 27 May 2021 13:45:13 +0200 Subject: [Gambas-user] User Digest, Vol 44, Issue 98 In-Reply-To: References: Message-ID: Le jeudi 27 mai 2021 ? 12:12 +0200, user-request at lists.gambas-basic.org a ?crit : > Send User mailing list submissions to user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..."Today's Topics: > 1. Re: Val() (Bruce Steers) 2. Re: Val() (Bruce Steers) 3. Re: Val() > (Bruce)----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]--- > - >> you must put & at begining and end... >> >> Try this... >> Val("&FFFF&) >> >> oops no quote.. > Val("&FFFF&") > > BruceS Thank you for your answer it's ok I found another solution too: Val ("& 0FFFF") it also works ... Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From johna at starflightinc.com Thu May 27 15:31:59 2021 From: johna at starflightinc.com (John Anderson) Date: Thu, 27 May 2021 06:31:59 -0700 Subject: [Gambas-user] Val() In-Reply-To: References: Message-ID: On 5/26/2021 11:39 PM, CD wrote: > Hello, > > why Val("&FFFF") = -1 > and > why Val("&FFFFFFFF") = -1 > > is it normal? > > attached a TestVal project > Regards > > > Yes, that is correct: Val() returns a numeric value evaluated to shortest integer type.? You have specified Short (2 bytes) in first case, and a Long (4 bytes) in the second case.? In both cases the highest order bit of the variable is 1, hence both cases evaluate to a value -1. You can also do Val("&0000FFFF")? = 65535 ' The string dictates a Long Or Val("&0FFFF")? = 65535? ' This string is considered a long also Or Val("&HFFFF")? = -1? ' This string as a more formal designation for Hex (Like VB) Or Val("&x1111111111111111")? = -1 ? ' Binary string tells Gambas this is a 2-Byte Short (similar to VB behaviour) Or Val("&x11111111")? = 255 ? ' Binary string tells Gambas this is a Byte (Like VB) - unsigned value - I haven't tested this extensively, could also be considering this as Short The documentation here is incorrect I think - it has left out the part about "Short" (and maybe Byte) types being returned if possible - I think that's where the confusion started: https://gambaswiki.org/wiki/lang/val -John From johna at starflightinc.com Thu May 27 15:58:43 2021 From: johna at starflightinc.com (John Anderson) Date: Thu, 27 May 2021 06:58:43 -0700 Subject: [Gambas-user] Val() In-Reply-To: References: Message-ID: <5969ba96-64fb-fd38-135b-754142741d57@starflightinc.com> An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 27 17:30:13 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 May 2021 17:30:13 +0200 Subject: [Gambas-user] Broken install In-Reply-To: References: Message-ID: Le 27/05/2021 ? 04:58, John Dovey a ?crit?: > Ok. I've broken my install and I don't know how to reinstall. > > Here is the apt -fix output: > > -- Start -- > sudo apt --fix-broken install > Reading package lists... Done > Building dependency tree > Reading state information... Done > Correcting dependencies... Done > The following packages were automatically installed and are no longer > required: > ? gambas3-examples libgmime-3.0-0 > Use 'sudo apt autoremove' to remove them. > The following additional packages will be installed: > ? gambas3-dev-tools gambas3-ide gambas3-runtime gambas3-scripter > The following packages will be REMOVED: > ? gambas3-gb-jit gambas3-script > The following NEW packages will be installed: > ? gambas3-dev-tools gambas3-scripter > The following packages will be upgraded: > ? gambas3-ide gambas3-runtime > 2 upgraded, 2 newly installed, 2 to remove and 0 not upgraded. > 95 not fully installed or removed. > Need to get 0 B/2975 kB of archives. > After this operation, 529 kB disk space will be freed. > Do you want to continue? [Y/n] > (Reading database ... 97851 files and directories currently installed.) > Preparing to unpack > .../gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb > ... > Unpacking gambas3-ide > (3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1) over > (3.14.3-2ubuntu3.1) ... > dpkg: error processing archive > /var/cache/apt/archives/gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb > (--unpack): > ?trying to overwrite '/usr/share/gambas3/template/console/.directory', > which is also in package gambas3-runtime 3.14.3-2ubuntu3.1 > dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) > Errors were encountered while processing: > ?/var/cache/apt/archives/gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb > E: Sub-process /usr/bin/dpkg returned an error code (1) > boondock at DoveyLapTopII:/usr/bin$ > -- End -- > > > How can I remove everything and reinstall ? > Remove all gambas packages (provided that you installed Gambas only by packages) $ sudo apt remove 'gambas*' And then installation should work. -- Beno?t Minisini From g4mba5 at gmail.com Thu May 27 17:41:08 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 May 2021 17:41:08 +0200 Subject: [Gambas-user] Val() In-Reply-To: <5969ba96-64fb-fd38-135b-754142741d57@starflightinc.com> References: <5969ba96-64fb-fd38-135b-754142741d57@starflightinc.com> Message-ID: <02336b9d-26a8-a01b-5bb9-92811251d416@gmail.com> Le 27/05/2021 ? 15:58, John Anderson a ?crit?: > On 5/26/2021 11:39 PM, CD wrote: >> Hello, >> >> why Val("&FFFF") = -1 >> and >> why Val("&FFFFFFFF") = -1 >> >> is it normal? >> >> attached a TestVal project >> Regards >> >> >> > > > > Yes, that is correct: Val() returns a numeric value evaluated as the > -shortest-? integer type.? You have specified Short (2 bytes) in first > case, and a Long Integer (4 bytes) in the second case.? In both cases > the highest order bit of the variable is 1, hence both cases evaluate to > a value -1. > > You can also do Val("&0000FFFF")? = 65535 ' The string dictates a Long > Integer > > Or Val("&0FFFF")? = 65535? ' This string is considered a Long Integer also > > Or Val("&HFFFF")? = -1? ' This string as a more formal designation for > Hex (Like VB) > > Or Val("&x1111111111111111")? = -1 ? ' Binary string tells Gambas this > is a 2-Byte Short (similar to VB behaviour) > > Or Val("&x11111111")? = 255 ? ' Binary string tells Gambas this is a > Byte (Like VB) - unsigned value - I haven't tested this extensively, > could also be considering this as Short > > The documentation here is incorrect I think - it has left out the part > about "Short" (and maybe Byte) type evaluations being returned if > possible - I think that's where the confusion started: > > https://gambaswiki.org/wiki/lang/val > > -John > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I don't see where the documentation of Val() is incorrect, it does not talk about the difference between "&HFFFF" and "&HFFFF&", which is a VB horror introduced in Gambas to help old VB users. The rule is the following: If the number starts with "&" or "&H" (hexdecimal), "&X" or "%" (binary), and if the number -does not- ends with "&" or "U", then there is an automatic sign extension. This automatic sign extension is done only if the number of digits equals a multiple of 16-bits integer (i.e. 4 or 8 digits in hexadecimal, 16 or 32 digits in binary). So be careful with that horror! -- Beno?t Minisini From claude.dessere at orange.fr Thu May 27 17:45:09 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 27 May 2021 17:45:09 +0200 Subject: [Gambas-user] Commentary for class symbols Message-ID: <8ea1699c0ffedaf0d0f1d2f965763866e1c26ee4.camel@orange.fr> Hi, after consulting http://gambaswiki.org/wiki/ and especially http://gambaswiki.org/wiki/dev/gambas I haven't figured out how to write comments for class symbols of the components developed in Gambas. Is it possible to write descriptions and explanations for Constants, Properties, Methods, Events and Variables? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 27 17:54:39 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 May 2021 17:54:39 +0200 Subject: [Gambas-user] Commentary for class symbols In-Reply-To: <8ea1699c0ffedaf0d0f1d2f965763866e1c26ee4.camel@orange.fr> References: <8ea1699c0ffedaf0d0f1d2f965763866e1c26ee4.camel@orange.fr> Message-ID: Le 27/05/2021 ? 17:45, CD a ?crit?: > Hi, > > after consultinghttp://gambaswiki.org/wiki/ > and especiallyhttp://gambaswiki.org/wiki/dev/gambas > I haven't figured out how to write comments for class symbols of the > components developed in Gambas. > Is it possible to write descriptions and explanations for Constants, > Properties, Methods, Events and Variables? > > Regards > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Did you look at the source code of components like 'gb.form.terminal' or 'gb.form.editor'? -- Beno?t Minisini From tobs at taboege.de Thu May 27 17:56:51 2021 From: tobs at taboege.de (Tobias Boege) Date: Thu, 27 May 2021 17:56:51 +0200 Subject: [Gambas-user] Commentary for class symbols In-Reply-To: <8ea1699c0ffedaf0d0f1d2f965763866e1c26ee4.camel@orange.fr> References: <8ea1699c0ffedaf0d0f1d2f965763866e1c26ee4.camel@orange.fr> Message-ID: <20210527155651.GV2520705@T580.localdomain> On Thu, 27 May 2021, CD wrote: > Hi, > > > after consulting > http://gambaswiki.org/wiki/ > and especially > http://gambaswiki.org/wiki/dev/gambas > I haven't figured out how to write comments for class symbols of the components > developed in Gambas. > > Is it possible to write descriptions and explanations for Constants, Properties, > Methods, Events and Variables? > Try this page: http://gambaswiki.org/wiki/doc/helpcomments Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From johna at starflightinc.com Thu May 27 18:53:54 2021 From: johna at starflightinc.com (John Anderson) Date: Thu, 27 May 2021 09:53:54 -0700 Subject: [Gambas-user] Val() In-Reply-To: <5969ba96-64fb-fd38-135b-754142741d57@starflightinc.com> References: <5969ba96-64fb-fd38-135b-754142741d57@starflightinc.com> Message-ID: <07d86cf2-4108-1b2a-fb06-218ed85d9fd7@starflightinc.com> An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Thu May 27 19:50:22 2021 From: claude.dessere at orange.fr (CD) Date: Thu, 27 May 2021 19:50:22 +0200 Subject: [Gambas-user] Commentary for class symbols In-Reply-To: References: Message-ID: Le jeudi 27 mai 2021 ? 18:54 +0200, user-request at lists.gambas-basic.org a ?crit : > Send User mailing list submissions to user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..."Today's Topics: > 1. Re: Val() (Beno?t Minisini) 2. Commentary for class symbols (CD) 3. > Re: Commentary for class symbols (Beno?t Minisini) 4. Re: Commentary for > class symbols (Tobias Boege) 5. Re: Val() (John Anderson)----[ Gambas > mailing-list is hosted by https://www.hostsharing.net ]---- >Did you look at the source code of components like 'gb.form.terminal' or >'gb.form.editor'? > >-- >Beno?t Minisini not yet, but it's a very good idea, thank you very much Regards >Try this page: http://gambaswiki.org/wiki/doc/helpcomments > >Best, >Tobias Exactly what I was looking for, I did not find thanks a lot Regards Claude Desser? -------------- next part -------------- An HTML attachment was scrubbed... URL: From johna at starflightinc.com Thu May 27 21:23:21 2021 From: johna at starflightinc.com (John Anderson) Date: Thu, 27 May 2021 12:23:21 -0700 Subject: [Gambas-user] Val() In-Reply-To: <02336b9d-26a8-a01b-5bb9-92811251d416@gmail.com> References: <5969ba96-64fb-fd38-135b-754142741d57@starflightinc.com> <02336b9d-26a8-a01b-5bb9-92811251d416@gmail.com> Message-ID: An HTML attachment was scrubbed... URL: From dovey.john at gmail.com Fri May 28 06:26:05 2021 From: dovey.john at gmail.com (John Dovey) Date: Thu, 27 May 2021 23:26:05 -0500 Subject: [Gambas-user] Broken install In-Reply-To: References: Message-ID: Thanks Benoit. I thought to do that but it didn't work. No problem, I just reinstalled the Linux instance and then the install worked perfectly. All the best John On Thu, 27 May 2021 at 10:31, Beno?t Minisini wrote: > Le 27/05/2021 ? 04:58, John Dovey a ?crit : > > Ok. I've broken my install and I don't know how to reinstall. > > > > Here is the apt -fix output: > > > > -- Start -- > > sudo apt --fix-broken install > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Correcting dependencies... Done > > The following packages were automatically installed and are no longer > > required: > > gambas3-examples libgmime-3.0-0 > > Use 'sudo apt autoremove' to remove them. > > The following additional packages will be installed: > > gambas3-dev-tools gambas3-ide gambas3-runtime gambas3-scripter > > The following packages will be REMOVED: > > gambas3-gb-jit gambas3-script > > The following NEW packages will be installed: > > gambas3-dev-tools gambas3-scripter > > The following packages will be upgraded: > > gambas3-ide gambas3-runtime > > 2 upgraded, 2 newly installed, 2 to remove and 0 not upgraded. > > 95 not fully installed or removed. > > Need to get 0 B/2975 kB of archives. > > After this operation, 529 kB disk space will be freed. > > Do you want to continue? [Y/n] > > (Reading database ... 97851 files and directories currently installed.) > > Preparing to unpack > > > .../gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb > > > ... > > Unpacking gambas3-ide > > (3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1) over > > (3.14.3-2ubuntu3.1) ... > > dpkg: error processing archive > > > /var/cache/apt/archives/gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb > > > (--unpack): > > trying to overwrite '/usr/share/gambas3/template/console/.directory', > > which is also in package gambas3-runtime 3.14.3-2ubuntu3.1 > > dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) > > Errors were encountered while processing: > > > /var/cache/apt/archives/gambas3-ide_3.16.1+git202105252135.1460d453e+build14~ubuntu20.04.1_all.deb > > E: Sub-process /usr/bin/dpkg returned an error code (1) > > boondock at DoveyLapTopII:/usr/bin$ > > -- End -- > > > > > > How can I remove everything and reinstall ? > > > > Remove all gambas packages (provided that you installed Gambas only by > packages) > > $ sudo apt remove 'gambas*' > > And then installation should work. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johna at starflightinc.com Fri May 28 23:30:03 2021 From: johna at starflightinc.com (John Anderson) Date: Fri, 28 May 2021 14:30:03 -0700 Subject: [Gambas-user] What's happening with True and False string conversions? Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- ' Gambas module file Public Sub Main() Print True 'Prints "True" string Print False 'Prints "False" string Print True & False 'Prints "T" and nothing Print CStr(True) 'Prints 'T' Print CStr(False) 'Prints nothing Print Len(CStr(False)) 'Length of false string conversion is 0 Print (1 = 1) 'Prints "True" - expression is true Print (1 = 0) 'Prints "False" - expression is false Print CStr((1 = 1)) 'Prints "T" - expression is true Print CStr((1 = 0)) 'Prints nothing - empty string - expression is false Print (1 = 1) & (1 = 1) 'Prints "TT" - both expressions are true Print CStr((1 = 1)) & CStr((1 = 0)) 'Prints "T" - one expression true, the other false End -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas3_TestBoolStr_Info.txt.tar.gz Type: application/gzip Size: 1392 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas_TestBoolStr.tar.gz Type: application/gzip Size: 12616 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Gambas3 Prints Boolean Expressions.png Type: image/png Size: 79877 bytes Desc: not available URL: From bsteers4 at gmail.com Fri May 28 23:41:41 2021 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 28 May 2021 22:41:41 +0100 Subject: [Gambas-user] What's happening with True and False string conversions? In-Reply-To: References: Message-ID: You must use Str(Value) to get a non string value converted to string. On Fri, 28 May 2021, 22:31 John Anderson, wrote: > Either I haven't had enough coffee today, or Gambas is doing something > weird, or ??. > > This is Gambas 3.16.90 May 27 2021 build - just updated from PPA this > morning. On Linux Cinnamon 20.1 > > There is something confusing going on here - I can print True or False > expressions directly from Print keyword, and I get "True" and "False" > output strings as expected. But if I try to print more than one Boolean > expression per Print line: when I expect a "True" I just get a "T". And > False starts becoming nothing - just empty string. CStr(expression) is > weird too. > > Screenshot, system info, simple demo code and project are attached. > > What the heck? Am I driving off into the weeds here? > > Thanks > > -John > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 29 00:34:20 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 May 2021 00:34:20 +0200 Subject: [Gambas-user] What's happening with True and False string conversions? In-Reply-To: References: Message-ID: Le 28/05/2021 ? 23:30, John Anderson a ?crit?: > Either I haven't had enough coffee today,? or Gambas is doing something > weird, or ??. > > This is Gambas 3.16.90 May 27 2021 build - just updated from PPA this > morning.? On Linux Cinnamon 20.1 > > There is something confusing going on here - I can print True or False > expressions directly from Print keyword, and I get "True" and "False" > output strings as expected.? But if I try to print more than one Boolean > expression per Print line: when I expect a "True" I just get a "T".? And > False starts becoming nothing - just empty string.? CStr(expression) is > weird too. > > Screenshot, system info, simple demo code and project are attached. > > What the heck?? Am I driving off into the weeds here? > > Thanks > > -John > You must be careful with the functions that use localization and those who do not. Str(), Val() and Print use localization. CStr() and automatic conversion do not. Regards, -- Beno?t Minisini From johna at starflightinc.com Sat May 29 04:36:43 2021 From: johna at starflightinc.com (John Anderson) Date: Fri, 28 May 2021 19:36:43 -0700 Subject: [Gambas-user] What's happening with True and False string conversions? In-Reply-To: References: Message-ID: An HTML attachment was scrubbed... URL: From tobs at taboege.de Sat May 29 09:07:49 2021 From: tobs at taboege.de (Tobias Boege) Date: Sat, 29 May 2021 09:07:49 +0200 Subject: [Gambas-user] What's happening with True and False string conversions? In-Reply-To: References: Message-ID: <20210529070749.GY2520705@T580.localdomain> On Fri, 28 May 2021, John Anderson wrote: > Screenshot, system info, simple demo code and project are attached. > > > > What the heck?? Am I driving off into the weeds here? > > > > Thanks > > > > -John > > > > You must be careful with the functions that use localization and those > who do not. > > Str(), Val() and Print use localization. > > CStr() and automatic conversion do not. > > ?Thanks Beno?t and BruceSteers!? > > I guess what is still a mystery is why does automatic conversion Print > (expression) work perfectly fine when it's the only conversion on the > line, but won't work if you've got more than one automatic conversion in > one print statement?? That's what had me really confused.? > Print takes an expression, not just a string. It then prints its Str() value. So `Print True` yields Str(True) which is "True". The reasoning is that when you Print to console, you usually want localized output[*]. When you `Print True & False`, then True and False are subject to auto- matic conversion under the & operator for strings. Automatic conversion uses the low-level CStr() routine. If you want to print multiple values to console using Print, you can either explicitly convert them to strings using your preferred method, or you can use the special ,; separators in Print statements: Print True; False ' "TrueFalse" Print True;; False ' "True False" Print True, False ' "True\tFalse" These operators insert nothing, a space or a tab between expressions and print each expression using Str(), as Print normally does. Think of ; as a Print-specific operator which does & but whose conversion is Str() instead of CStr(). Best, Tobias [*] The flip side of this is that you must be careful when your output is intended for machines. Printing a Float is subject to localization as well and the decimal separator depends on the locale under which your program runs. In this case you should explicitly `Print CStr(float)` to get the period as decimal separator, which seems to be the standard notation and is most likely to be understood by the receiving end. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From johna at starflightinc.com Sat May 29 17:53:38 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 29 May 2021 08:53:38 -0700 Subject: [Gambas-user] What's happening with True and False string conversions? In-Reply-To: <20210529070749.GY2520705@T580.localdomain> References: <20210529070749.GY2520705@T580.localdomain> Message-ID: <6b411115-5222-4ff1-6a6e-eb219f9e59af@starflightinc.com> On 5/29/2021 12:07 AM, Tobias Boege wrote: > On Fri, 28 May 2021, John Anderson wrote: >> Screenshot, system info, simple demo code and project are attached. >> > >> > What the heck?? Am I driving off into the weeds here? >> > >> > Thanks >> > >> > -John >> > >> >> You must be careful with the functions that use localization and those >> who do not. >> >> Str(), Val() and Print use localization. >> >> CStr() and automatic conversion do not. >> >> ?Thanks Beno?t and BruceSteers! >> >> I guess what is still a mystery is why does automatic conversion Print >> (expression) work perfectly fine when it's the only conversion on the >> line, but won't work if you've got more than one automatic conversion in >> one print statement?? That's what had me really confused. >> > Print takes an expression, not just a string. It then prints its Str() > value. So `Print True` yields Str(True) which is "True". The reasoning > is that when you Print to console, you usually want localized output[*]. > > When you `Print True & False`, then True and False are subject to auto- > matic conversion under the & operator for strings. Automatic conversion > uses the low-level CStr() routine. > > If you want to print multiple values to console using Print, you can > either explicitly convert them to strings using your preferred method, > or you can use the special ,; separators in Print statements: > > Print True; False ' "TrueFalse" > Print True;; False ' "True False" > Print True, False ' "True\tFalse" > > These operators insert nothing, a space or a tab between expressions > and print each expression using Str(), as Print normally does. > > Think of ; as a Print-specific operator which does & but whose conversion > is Str() instead of CStr(). > > Best, > Tobias > > [*] The flip side of this is that you must be careful when your output > is intended for machines. Printing a Float is subject to localization > as well and the decimal separator depends on the locale under which > your program runs. In this case you should explicitly `Print CStr(float)` > to get the period as decimal separator, which seems to be the standard > notation and is most likely to be understood by the receiving end Thanks Tobias! That is very good and clear documentation on the subject.? That could go into the Gambas language keyword ref for "Print" maybe. -John From adamnt42 at gmail.com Sat May 29 21:33:22 2021 From: adamnt42 at gmail.com (Bruce) Date: Sun, 30 May 2021 05:03:22 +0930 Subject: [Gambas-user] The Wiki - Some [OPINION] Message-ID: Over the last 3 months or so there has been a considerable number of posts that suggest something or other "ought to be in the help". While these suggestions have been reasonable, I have some strong options on what should go into the Wiki and more importantly where it should go. Wiki authors should (IMO) keep the following in mind: 1) The multiplicity of places where a page can appear --- a) in the help browser b) in the small code completion popup in the IDE code editor c) in the form designer Properties tab d) externally in a web browser 2) The structure of the wiki --- The Gambas wiki is one of the best structured, elegant and sensible online help sites anywhere! If you want a comparison with complexity, obscurity and mind-bending layout try reading some of the TrollTech documentation at https://doc.qt.io/ ... 3) The structure of pages for syntax, explanations, "how-to's" etc --- That list of page types is not unintentional. It follows the "intent" of the sections on the start page. I will now talk about some of my strongly held opinions regarding these. "syntax" pages -------------- This group includes the command syntax pages, the class overview pages, component overview pages and language concepts pages. In other words, the pages accessed through the Language Reference section of the start page. The most important matter here is their appearance in the code completion feature and in the IDE form designer. These pages should be SHORT, SUCCINCT and conform to the unwritten standard (which I shall now write). These pages SHOULD NOT include LONG WINDED EXPLANATIONS of "why" or "how" this syntax arose in Gambas. NOR SHOULD they include LONG WINDED EXAMPLES. In fact sample code in these pages should only be included when it can be IMMEDIATELY copied and pasted into the reader's code. They SHOULD (MUST) respect trademarks, copyrights, authorship's and things of that ilk and should only contain external links where the subject matter is perfectly and adequately explained on that external page. A perfect example is Tobi's page on the Trie class in the gb.data component where "You can learn about its semantics from Wikipedia." (link removed). Finally they SHOULD NEVER contain discussion about certain other programming languages! The reader is looking for information on Gambas programming, not programming in, say Fj?lnir (https://en.wikipedia.org/wiki/Fj%C3%B6lnir_(programming_language)) or something. There ARE places for these things, as discussed in the following. "explanations" -------------- These are the non-syntax pages in the Language Reference section. These pages, IMO, are the exclusive domain of Benoit and should be left to his authorship only. "how-to's" and other documents ------------------------------ Now here (section 2 of the start page) is the place for most if not all the guff that should be left out of section 1. The general rule is "go for your life! The more the better". A really good example is the "Network Programming" page by Daniel Campos and Beno?t. BUT some unwritten rules should be followed: * Include an INDEX at the top. See the wiki manual for how to do that. * DON'T waste space by repeating information that is adequately explained elsewhere. Reference it and include a link. * Observe the legal and professional courtesy rules mentioned above. * (I'm sorry to have to mention this one, but...) If you have a less than "almost perfect" ability to compose readable, correctly spelled and grammatically correct English then SEEK ASSISTANCE before posting the page. Probably the best approach is to draft the page in your native tongue and seek help in translating it on the mailing list. DO NOT rely on online translation services like Google(TM). The results are often total gibberish. English is a hard language and one where specific words have completely confusing meanings depending on context and grammar. For example the word "BEFORE" has at least three totally different and conflicting meanings. * Freely use but dont over-use the "special boxes". * (An odd one) Draft your pages or updates to pages in an external editor until the draft is pretty-well up to scratch! At least get all the content, spelling, grammar and structure sorted BEFORE (sic) submitting the page into the wiki. Pages in the other sections --------------------------- In general DO NOT play with these pages unless you are a RECOGNIZED EXPERT (in the Gambas world) on these subjects. Instead use the mailing list to raise any ambiguities, suspected defects, etc etc. Finally ======= RECOGNIZE that all the above is MY opinion and is NOT in any way an "Official" policy of Gambas or it's author(s). The opinions are based on well over 10 years of using Gambas. I think it was version 1.99? Over that time I have had to repeatedly refer to the wiki because I can't remember everything about the language ... ;-( and finally, finally -------------------- To novice readers of the wiki pages, especially the first section pages and the various popup helps. I just want to say (again) "Read EVERY word of the help page." Every single word. When I first started with Gambas I had to write that out and put it on the wall above my screen. Whenever I got stumped, leaned back and saw that sign it jolted me into re-reading the page to find the bit I had mis-understood. And beware, if you don't do that and ask on the mailing list when the answer is there in black and white you might incur the wrath of a certain old curmudgeon who will impolitely tell you to RTFM! There is a reason for that and it's not just intentional rudeness on my part. But that is a topic for another day. best regards bruce P.S. Feel free to discuss, disagree or otherwise comment on the above. I welcome it, but will defend it until the keys on my keyboard crumble to dust. From johna at starflightinc.com Sat May 29 21:25:27 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 29 May 2021 12:25:27 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? Message-ID: An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 29 22:09:13 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 May 2021 22:09:13 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: Message-ID: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> Le 29/05/2021 ? 21:25, John Anderson a ?crit?: > On converting larger codebase from VB6 to Gambas,? I wanted to double > check my method for converting "static" type variable module declares > into the Gambas way.? This might be obvious to everyone, but I just > wanted to be sure.? Or am I smoking the wrong stuff again? > [...] I didn't allow to declare static class variable inside functions, like you can do in C (and other languages). I think it's mainly for the same reason I prevented declaring local variables anywhere in the code. After some pressure from people I won't give the names, I accepted to allow local variable declaration anywhere. Now I regret. It makes the code so ugly for me! :-) So maybe I could allow declaring "static variables" (actually private global class variables) inside functions in the future. In the meantime, you have to use the wokraround you described. Something like that: Public Sub MyFunction() Private (or 'Static' or something else?) somevar As String = "first" ... End becomes: Static Private MyFunction_somevar As String = "first" Public Sub MyFunction() ... End One question remains: does the "static" 'somevar' be actually static or not? I.e. is there only one 'somevar' variable for all the process, or one 'somevar' variable for each object of the class. How to make the difference? > > 'Gambas module file > > 'Static-like vars declared here > Private myLVar As Long = 0 > Private myArray[20, 500] As Integer One remark about that last line: don't do that. Don't use the syntax myArray[20, 500], because it creates an embedded array which is a special beast that is mainly useful for interfacing with C code. Use a "normal" array instead (which is a standard Gambas object): Private myArray As New Integer[20, 500] Regards, -- Beno?t Minisini From chrisml at deganius.de Sun May 30 00:44:11 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 30 May 2021 00:44:11 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> Message-ID: <55ce793d-c5f2-b7eb-1041-e030562d68e7@deganius.de> Am 29.05.21 um 22:09 schrieb Beno?t Minisini: > I didn't allow to declare static class variable inside functions, like > you can do in C (and other languages). > > I think it's mainly for the same reason I prevented declaring local > variables anywhere in the code. > > After some pressure from people I won't give the names, I accepted to > allow local variable declaration anywhere. > > Now I regret. It makes the code so ugly for me! :-) Yes, you are/were right. https://lists.gambas-basic.org/pipermail/user/2018-December/066059.html Maybe we should do sth like "Option Explicit" in VB: "Option Structure" or "Option Articulate" Or sth better to fix this decision. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun May 30 00:50:33 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 30 May 2021 00:50:33 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> Message-ID: <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> Am 29.05.21 um 22:09 schrieb Beno?t Minisini: > So maybe I could allow declaring "static variables" (actually private > global class variables) inside functions in the future. That would make code even uglier. Is there any reason to do this that makes sense? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From johna at starflightinc.com Sun May 30 03:00:55 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 29 May 2021 18:00:55 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> Message-ID: <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> On 5/29/2021 1:09 PM, Beno?t Minisini wrote: > Le 29/05/2021 ? 21:25, John Anderson a ?crit?: >> On converting larger codebase from VB6 to Gambas,? I wanted to double >> check my method for converting "static" type variable module declares >> into the Gambas way. This might be obvious to everyone, but I just >> wanted to be sure.? Or am I smoking the wrong stuff again? >> [...] > > I didn't allow to declare static class variable inside functions, like > you can do in C (and other languages). > > I think it's mainly for the same reason I prevented declaring local > variables anywhere in the code. > > After some pressure from people I won't give the names, I accepted to > allow local variable declaration anywhere. > > Now I regret. It makes the code so ugly for me! :-) > > So maybe I could allow declaring "static variables" (actually private > global class variables) inside functions in the future. > > In the meantime, you have to use the wokraround you described. > Something like that: > > Public Sub MyFunction() > > ? Private (or 'Static' or something else?) somevar As String = "first" > > ? ... > > End > > becomes: > > Static Private MyFunction_somevar As String = "first" > > Public Sub MyFunction() > > ? ... > > End > > One question remains: does the "static" 'somevar' be actually static > or not? I.e. is there only one 'somevar' variable for all the process, > or one 'somevar' variable for each object of the class. How to make > the difference? > >> >> 'Gambas module file >> >> 'Static-like vars declared here >> Private myLVar As Long = 0 >> Private myArray[20, 500] As Integer > > One remark about that last line: don't do that. > > Don't use the syntax myArray[20, 500], because it creates an embedded > array which is a special beast that is mainly useful for interfacing > with C code. > > Use a "normal" array instead (which is a standard Gambas object): > > Private myArray As New Integer[20, 500] > > Regards, > Thanks Beno?t, Well here's the thing...We don't care much about Gambas-type objects on this project, because 95% of what we're doing IS working directly with C-Code. So if an object is not C-friendly, it has no use for us. ? We don't care what the source code looks like, as long as it works exactly the same way the VB6 code has been running since 1998 (i.e. millions of machine hours testing, running 24/7) - and what you've done with Gambas is a really good superVB, Beno?t !!? Love that J-I-T stuff for the elaborate code-math sections!!? That also works good on some XML configuration files we have to read in. Neat!? That is a HUGE upgrade for us right there. Right now, my Sorta-Kinda-Automated VB6 to Gambas Converted Build helper is being tested to work like this - Because I ain't manually converting 84,000 lines of code from VB6 to Gambas when -MOST EVERYTHING- can stay the same...Obviously ON ERROR sections will have to get tweaked, but doing the following can automate a lot of conversion from VB world and bridge to Gambas: This is? VERY rough FIRST DRAFT I'm testing on some smaller projects - having a way to declare a variable as type static would really help a lot for doing VB6 to Gambas conversion - but it is not entirely required.? Just more work if we don't have it: 1.? First we scan the entire VB6 project files and look for global vars and move those declares into Gambas module "Globals.mod". Yes we have a lot of them and No I won't get into a religious argument as to why they are there.? This is a GUI for a semiconductor fab machine on an assembly line, and you learn in a hurry why you sometimes need global vars when you have to work fast with C-code threads for coordinating machine motors controls, machine vision, and handling operator command inputs, configuration setups, spewing out performance reports and test data for the next machine on the assembly line.? "This is where theory ends and reality begins", as the sign on my lab says.? If you can keep the system design so all you do is pass a data struct memory pointer form one piece of code to the next, you're good.? And no weird ways of storing variables...Large Structs and arrays of Structs all have to pass back and forth to C without any extra conversion steps.? Passing single pointer should do it in most cases. 1A:? For every variable that was put into Globals.mod, we have go back through all source code and replace every instance of myglobalvar with Globals.myglobalvar.? As per Gambas instructions. IDEA>>> This would be cool:? Somewhere at top of Globals.mod, you have something like #Pragma SET_DEFAULT_MODULE TRUE? Or use whatever keyword or environment variable you like. This tells Gambas to search this "Default? Module" for any unknown objects it can't find a reference to in the rest of the project. Now I don't have to go thru code updating all the myglobalvar names to Globals.myglobalvar - If Gambas comes to a var object name it doesn't know, it will just go look in the Default ModuleName to check there.? In other words give the system a "path" to look for object declares. 2.? Now we go thru VB6 sources and change all "Double" type declares to "Float".? Really ??? Is there any way we can get Double type defined as the same as Float type? It looks like keyword is available according to docs, and that would make it easier for us VB / C guys to avoid mistakes.? But whatever. 3.? Now I have to go thru all the VB6 modules and pull out every Sub / Function of name myFuncName or mySubName.? Build a new Gambas.mod file of name myFuncName or mySubName, and paste existing VB6 code just for the that -one- procedure into the .mod file. NOTE:? Each new Gambas Mod file will have only one converted Sub/Function from VB6 code. 4.? In the new Mod file, look for any static vars, and place those at the top, outside of the procedure call, as Private Static.? Or just Private, not sure if you also need to use Static also in a module declaration section? 5.? In the new Mod file, change the Sub/Func/Procedure name to "F" for function, or "S" for Sub.? The module file name is already the original actual procedure name. 6.? Now loop thru original VB6 sources and look for any occurrence of "myFuncName" or" mySubName"...and change to "myFuncName.F" or "mySubName.S"? This was the easiest way I could think of for name the new module files in the most practical way. 7.? Go thru sources and update myArray(..) to myArray[..].? Any VB6 declare of myArray(0 to n) gets converted to a Gambas declare myArray[n+1].? Etc. And so on.? I'll have to figure out more as I go.? Perhaps Forms will have to be manually re-constructed to match as much as possible with the original VB6 form. This plan might turn out to be an absolute piece of shit when I get to the bigger project.? But it looks hopeful for at least the code sections.? Maybe not so much for forms. The concept is that current VB6 code logic works perfectly, and we want to preserve as much of that as possible without making huge changes - and as far as the machine operators are concerned they won't see much change from a Windows to Linux machine.? 99.9% of the time they are looking at the full screen GUI display anyway, and they really don't interact with the OS on a desktop or terminal level.? As long as they can run the machine, and maybe open up a Firefox web browser, use PDF viewer for help files, or get to LibreOffice for looking at report spreadsheets, that's all they need.? They don't even need to know there is no "C:" drive anymore. Thanks again! -John From johna at starflightinc.com Sun May 30 06:44:04 2021 From: johna at starflightinc.com (John Anderson) Date: Sat, 29 May 2021 21:44:04 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <652e2fee-9bcb-8914-83cd-46f80f078055@gmail.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> <652e2fee-9bcb-8914-83cd-46f80f078055@gmail.com> Message-ID: <19b78bb1-9115-c251-abbb-78be482c16d4@starflightinc.com> On 5/29/2021 8:32 PM, Bruce wrote: > On 30/5/21 10:30 am, John Anderson wrote: >> Well here's the thing...We don't care much about Gambas-type objects >> on this project, because 95% of what we're doing IS working directly >> with C-Code. So if an object is not C-friendly, it has no use for us. >> ? We don't care what the source code looks like, as long as it works >> exactly the same way the VB6 code has been running since 1998 (i.e. >> millions of machine hours testing, running 24/7) - and what you've >> done with Gambas is a really good superVB, Beno?t !!? Love that J-I-T >> stuff for the elaborate code-math sections!!? That also works good on >> some XML configuration files we have to read in. Neat! That is a HUGE >> upgrade for us right there. >> >> Right now, my Sorta-Kinda-Automated VB6 to Gambas Converted Build >> helper is being tested to work like this - Because I ain't manually >> converting 84,000 lines of code from VB6 to Gambas when -MOST >> EVERYTHING- can stay the same...Obviously ON ERROR sections will have >> to get tweaked, but doing the following can automate a lot of >> conversion from VB world and bridge to Gambas: > > Bye. > Plonk > Well, I don't even know what that means or why you sent that response off-list- did I cause you to hit yourself in frustration? Drop the bottle instead of the mic again??? I have to convert old code, and I have to work with what I got, and what I got is C-code that requires regular, standard Stucts to be passed around.? If I were starting a brand new project would it be different?? Perhaps, at least in some places, and I'm sure quicker Gambas objects could be used more.? Other places have to work the same. Gambas itself is terrific overall, I think!? I'm trying to figure out a bit more automated way to make the old stuff work the Gambas way, that's all. Sorry that I've upset you . -John From chrisml at deganius.de Sun May 30 10:27:01 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 30 May 2021 10:27:01 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <19b78bb1-9115-c251-abbb-78be482c16d4@starflightinc.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> <652e2fee-9bcb-8914-83cd-46f80f078055@gmail.com> <19b78bb1-9115-c251-abbb-78be482c16d4@starflightinc.com> Message-ID: <0b8a7db8-9351-51ee-14a1-2996943a3b6f@deganius.de> Hi John Am 30.05.21 um 06:44 schrieb John Anderson: > Well, I don't even know what that means or why you sent that response > off-list- I find everything you write very interesting, but if someone mails you private you should answer private. It is not proper to quote private mail in a public mailing list and thus make it public. And if you and Bruce have any problems, please work it out privately. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun May 30 12:56:47 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 30 May 2021 12:56:47 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> Message-ID: Am 30.05.21 um 03:00 schrieb John Anderson: > 1A:? For every variable that was put into Globals.mod, we have go back > through all source code and replace every instance of myglobalvar with > Globals.myglobalvar.? As per Gambas instructions. > > IDEA>>> This would be cool:? Somewhere at top of Globals.mod, you have > something like #Pragma SET_DEFAULT_MODULE TRUE? Or use whatever keyword > or environment variable you like. This tells Gambas to search this > "Default? Module" for any unknown objects it can't find a reference to > in the rest of the project. Now I don't have to go thru code updating > all the myglobalvar names to Globals.myglobalvar - If Gambas comes to a > var object name it doesn't know, it will just go look in the Default > ModuleName to check there.? In other words give the system a "path" to > look for object declares. Very, very ugly, I'm against that! What you encounter is that the old code of 1998 is a very slippery mess (as it was written back then) and as you have to refactor it for Gambas you now see all the places where it is a mess. If you want to tweak Gambas to be messy because your old code is an ugly piece of mess I'm strictly against that. > 2.? Now we go thru VB6 sources and change all "Double" type declares to > "Float".? Really ??? Is there any way we can get Double type defined as > the same as Float type? It looks like keyword is available according to > docs, and that would make it easier for us VB / C guys to avoid > mistakes.? But whatever. Refactor the code. You can search/replace throughout the whole project with one click. > 5.? In the new Mod file, change the Sub/Func/Procedure name to "F" for > function, or "S" for Sub.? The module file name is already the original > actual procedure name. Sub / Function is historic, but internally they act the same AFAIK. A Sub in Gambas also can return a value: Sub Sth as Boolean Return True End > 6.? Now loop thru original VB6 sources and look for any occurrence of > "myFuncName" or" mySubName"...and change to "myFuncName.F" or > "mySubName.S"? This was the easiest way I could think of for name the > new module files in the most practical way. Without giving it much thought, I don't think that's a good idea. > 7.? Go thru sources and update myArray(..) to myArray[..].? Any VB6 > declare of myArray(0 to n) gets converted to a Gambas declare > myArray[n+1].? Etc. > > And so on.? I'll have to figure out more as I go.? Perhaps Forms will > have to be manually re-constructed to match as much as possible with the > original VB6 form. Yes. > This plan might turn out to be an absolute piece of shit when I get to > the bigger project.? But it looks hopeful for at least the code > sections.? Maybe not so much for forms. > > The concept is that current VB6 code logic works perfectly, and we want > to preserve as much of that as possible without making huge changes - > and as far as the machine operators are concerned they won't see much > change from a Windows to Linux machine.? 99.9% of the time they are > looking at the full screen GUI display anyway, and they really don't > interact with the OS on a desktop or terminal level.? As long as they > can run the machine, and maybe open up a Firefox web browser, use PDF > viewer for help files, or get to LibreOffice for looking at report > spreadsheets, that's all they need.? They don't even need to know there > is no "C:" drive anymore. If you want to convert such an old VB project to Gambas I doubt very much that you can do it in an automatic way. Such old code was often written in a very bad way, so it is full of architectural errors. This is not "religious", but the bloody experience of many programmers, and it will prevent you from working well with the code in the future. This is called "technical debt". When refactoring, you come across these errors and instead of blindly accepting them, in my experience it is better to refactor the code right away and use modern concepts which are supported by Gambas. Otherwise, the technical debt has simply been transformed into a new language, but not eliminated. If you want to ensure that the code does the same as the old one you can at first write tests which test the behavior. After that and together with the usage of Git you can rewrite and refactor the code and eliminate the technical debt. And this in a very free and effective way, as Gambas allows the programmer to do. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sun May 30 15:37:39 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 30 May 2021 06:37:39 -0700 (PDT) Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> Message-ID: <403540446.11219.1622381859837.JavaMail.zimbra@westwoodsvcs.com> Regarding creating a separate .mod file for each function and the static variables. Regarding #pragma suggestion "Failure is the key to success; ?each mistake teaches us something" ?.. Morihei Ueshiba Brian G ----- On May 30, 2021, at 10:56 AM, Christof Thalhofer chrisml at deganius.de wrote: > Am 30.05.21 um 03:00 schrieb John Anderson: > >> 1A:? For every variable that was put into Globals.mod, we have go back >> through all source code and replace every instance of myglobalvar with >> Globals.myglobalvar.? As per Gambas instructions. >> >> IDEA>>> This would be cool:? Somewhere at top of Globals.mod, you have >> something like #Pragma SET_DEFAULT_MODULE TRUE? Or use whatever keyword >> or environment variable you like. This tells Gambas to search this >> "Default? Module" for any unknown objects it can't find a reference to >> in the rest of the project. Now I don't have to go thru code updating >> all the myglobalvar names to Globals.myglobalvar - If Gambas comes to a >> var object name it doesn't know, it will just go look in the Default >> ModuleName to check there.? In other words give the system a "path" to >> look for object declares. In Gambas it is possible to use a module and a 'With' Statement so moving all globals to a single file if you scan your original source using a gambas collection finding all the globals second pass replace the global symbols with .symbol Have you looked at the gambas eval.highlight component? eg. after moving BoardWidth to the globals.mod module as public BoardWidth as float = 0.0 every other module gets 'begin module with globals 'in all modules replace global symbols with ?. as the first character .boardwidth = 56.56 end with end module > > Very, very ugly, I'm against that! > > What you encounter is that the old code of 1998 is a very slippery mess > (as it was written back then) and as you have to refactor it for Gambas > you now see all the places where it is a mess. If you want to tweak > Gambas to be messy because your old code is an ugly piece of mess I'm > strictly against that. > >> 2.? Now we go thru VB6 sources and change all "Double" type declares to >> "Float".? Really ??? Is there any way we can get Double type defined as >> the same as Float type? It looks like keyword is available according to >> docs, and that would make it easier for us VB / C guys to avoid >> mistakes.? But whatever. > > Refactor the code. You can search/replace throughout the whole project > with one click. > >> 5.? In the new Mod file, change the Sub/Func/Procedure name to "F" for >> function, or "S" for Sub.? The module file name is already the original >> actual procedure name. > > Sub / Function is historic, but internally they act the same AFAIK. A > Sub in Gambas also can return a value: > > Sub Sth as Boolean > ? ?Return True > End > Given this example Function updateSales(ByVal thisSale As Decimal) As Decimal ?? ?Static totalSales As Decimal = 0 ?? ?totalSales += thisSale ?? ?Return totalSales End Function Being called as updateSales(777.77) If you create a new .mod file for each function/sub that contains static variables The mode file gets the name of the function/sub. Again in gambas sub/functions are just aliases of sub. eg updateSales.mod Then the code should end up looking like 'begin module private totalSales as float = 0 ? ? ? ? ? ?' from decimal public sub _call(ByVal thisSale As float) as float ' from decimal ?? ? totalSales += thisSale ?? ? Return totalSales end 'end module You will not have to change or update the names of your functions/subs anywhwere else in your code. Simply reconstruct it into a module. _call is a special name in gambas that is executed when a module is called by name. So now your code does not need to change as far as calling the function. it still is called as ??updateSales(777.77) I am not sure how many separate modules gambas can support. >> 6.? Now loop thru original VB6 sources and look for any occurrence of >> "myFuncName" or" mySubName"...and change to "myFuncName.F" or >> "mySubName.S"? This was the easiest way I could think of for name the >> new module files in the most practical way. > > Without giving it much thought, I don't think that's a good idea. > >> 7.? Go thru sources and update myArray(..) to myArray[..].? Any VB6 >> declare of myArray(0 to n) gets converted to a Gambas declare >> myArray[n+1].? Etc. >> >> And so on.? I'll have to figure out more as I go.? Perhaps Forms will >> have to be manually re-constructed to match as much as possible with the >> original VB6 form. > > Yes. > >> This plan might turn out to be an absolute piece of shit when I get to >> the bigger project.? But it looks hopeful for at least the code >> sections.? Maybe not so much for forms. >> >> The concept is that current VB6 code logic works perfectly, and we want >> to preserve as much of that as possible without making huge changes - >> and as far as the machine operators are concerned they won't see much >> change from a Windows to Linux machine.? 99.9% of the time they are >> looking at the full screen GUI display anyway, and they really don't >> interact with the OS on a desktop or terminal level.? As long as they >> can run the machine, and maybe open up a Firefox web browser, use PDF >> viewer for help files, or get to LibreOffice for looking at report >> spreadsheets, that's all they need.? They don't even need to know there >> is no "C:" drive anymore. > > If you want to convert such an old VB project to Gambas I doubt very > much that you can do it in an automatic way. Such old code was often > written in a very bad way, so it is full of architectural errors. > > This is not "religious", but the bloody experience of many programmers, > and it will prevent you from working well with the code in the future. > This is called "technical debt". > > When refactoring, you come across these errors and instead of blindly > accepting them, in my experience it is better to refactor the code right > away and use modern concepts which are supported by Gambas. Otherwise, > the technical debt has simply been transformed into a new language, but > not eliminated. > > If you want to ensure that the code does the same as the old one you can > at first write tests which test the behavior. After that and together > with the usage of Git you can rewrite and refactor the code and > eliminate the technical debt. And this in a very free and effective way, > as Gambas allows the programmer to do. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Sun May 30 16:24:31 2021 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 30 May 2021 07:24:31 -0700 (PDT) Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <403540446.11219.1622381859837.JavaMail.zimbra@westwoodsvcs.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> <403540446.11219.1622381859837.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <740983660.11233.1622384671784.JavaMail.zimbra@westwoodsvcs.com> In previous reply I forgot to remove the byval ref in the example > Regarding creating a separate .mod file for each function and the static > variables. > Regarding #pragma suggestion > > ----- On May 30, 2021, at 10:56 AM, Christof Thalhofer chrisml at deganius.de > wrote: > >> Am 30.05.21 um 03:00 schrieb John Anderson: >> >>> 1A:? For every variable that was put into Globals.mod, we have go back >>> through all source code and replace every instance of myglobalvar with >>> Globals.myglobalvar.? As per Gambas instructions. >>> >>> IDEA>>> This would be cool:? Somewhere at top of Globals.mod, you have >>> something like #Pragma SET_DEFAULT_MODULE TRUE? Or use whatever keyword >>> or environment variable you like. This tells Gambas to search this >>> "Default? Module" for any unknown objects it can't find a reference to >>> in the rest of the project. Now I don't have to go thru code updating >>> all the myglobalvar names to Globals.myglobalvar - If Gambas comes to a >>> var object name it doesn't know, it will just go look in the Default >>> ModuleName to check there.? In other words give the system a "path" to >>> look for object declares. > In Gambas it is possible to use a module and a 'With' Statement > > so moving all globals to a single file > if you scan your original source using a gambas collection finding all the > globals > second pass replace the global symbols with .symbol > > Have you looked at the gambas eval.highlight component? > > eg. > > after moving BoardWidth to the globals.mod module as > > public BoardWidth as float = 0.0 > > every other module gets > > 'begin module > with globals > > 'in all modules replace global symbols with ?. as the first character > > .boardwidth = 56.56 > > > end with > end module > >> >> Very, very ugly, I'm against that! >> >> What you encounter is that the old code of 1998 is a very slippery mess >> (as it was written back then) and as you have to refactor it for Gambas >> you now see all the places where it is a mess. If you want to tweak >> Gambas to be messy because your old code is an ugly piece of mess I'm >> strictly against that. >> >>> 2.? Now we go thru VB6 sources and change all "Double" type declares to >>> "Float".? Really ??? Is there any way we can get Double type defined as >>> the same as Float type? It looks like keyword is available according to >>> docs, and that would make it easier for us VB / C guys to avoid >>> mistakes.? But whatever. >> >> Refactor the code. You can search/replace throughout the whole project >> with one click. >> >>> 5.? In the new Mod file, change the Sub/Func/Procedure name to "F" for >>> function, or "S" for Sub.? The module file name is already the original >>> actual procedure name. >> >> Sub / Function is historic, but internally they act the same AFAIK. A >> Sub in Gambas also can return a value: >> >> Sub Sth as Boolean >> ? ?Return True >> End >> > Given this example Function updateSales(ByVal thisSale As Decimal) As Decimal ? ?Static totalSales As Decimal = 0 ? ?totalSales += thisSale ? ?Return totalSales End Function Being called as updateSales(777.77) If you create a new .mod file for each function/sub that contains static variables The mode file gets the name of the function/sub. Again in gambas sub/functions are just aliases of sub. eg updateSales.mod Then the code should end up looking like 'begin module private totalSales as float = 0 ? ? ? ? ? ?' from decimal public sub _call(thisSale As float) as float ' from decimal ?? ? totalSales += thisSale ?? ? Return totalSales end 'end module You will not have to change or update the names of your functions/subs anywhere else in your code. Simply reconstruct it into a module. _call is a special name in gambas that is executed when a module is called by name. So now your code does not need to change as far as calling the function. it still is called as ??updateSales(777.77) I am not sure how many separate modules gambas can support. > > > >>> 6.? Now loop thru original VB6 sources and look for any occurrence of >>> "myFuncName" or" mySubName"...and change to "myFuncName.F" or >>> "mySubName.S"? This was the easiest way I could think of for name the >>> new module files in the most practical way. >> >> Without giving it much thought, I don't think that's a good idea. >> >>> 7.? Go thru sources and update myArray(..) to myArray[..].? Any VB6 >>> declare of myArray(0 to n) gets converted to a Gambas declare >>> myArray[n+1].? Etc. >>> >>> And so on.? I'll have to figure out more as I go.? Perhaps Forms will >>> have to be manually re-constructed to match as much as possible with the >>> original VB6 form. >> >> Yes. >> >>> This plan might turn out to be an absolute piece of shit when I get to >>> the bigger project.? But it looks hopeful for at least the code >>> sections.? Maybe not so much for forms. >>> >>> The concept is that current VB6 code logic works perfectly, and we want >>> to preserve as much of that as possible without making huge changes - >>> and as far as the machine operators are concerned they won't see much >>> change from a Windows to Linux machine.? 99.9% of the time they are >>> looking at the full screen GUI display anyway, and they really don't >>> interact with the OS on a desktop or terminal level.? As long as they >>> can run the machine, and maybe open up a Firefox web browser, use PDF >>> viewer for help files, or get to LibreOffice for looking at report >>> spreadsheets, that's all they need.? They don't even need to know there >>> is no "C:" drive anymore. >> >> If you want to convert such an old VB project to Gambas I doubt very >> much that you can do it in an automatic way. Such old code was often >> written in a very bad way, so it is full of architectural errors. >> >> This is not "religious", but the bloody experience of many programmers, >> and it will prevent you from working well with the code in the future. >> This is called "technical debt". >> >> When refactoring, you come across these errors and instead of blindly >> accepting them, in my experience it is better to refactor the code right >> away and use modern concepts which are supported by Gambas. Otherwise, >> the technical debt has simply been transformed into a new language, but >> not eliminated. >> >> If you want to ensure that the code does the same as the old one you can >> at first write tests which test the behavior. After that and together >> with the usage of Git you can rewrite and refactor the code and >> eliminate the technical debt. And this in a very free and effective way, >> as Gambas allows the programmer to do. >> >> Alles Gute >> >> Christof Thalhofer >> >> -- >> Dies ist keine Signatur >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From johna at starflightinc.com Sun May 30 18:55:54 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 30 May 2021 09:55:54 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> Message-ID: On 5/29/2021 3:50 PM, Christof Thalhofer wrote: > Am 29.05.21 um 22:09 schrieb Beno?t Minisini: > >> So maybe I could allow declaring "static variables" (actually private >> global class variables) inside functions in the future. > That would make code even uglier. Is there any reason to do this that > makes sense? > > Alles Gute > > Christof Thalhofer > Thanks, I understand your concern...and it is not my intention that my needs require Gamabs to break anything it currently does well. Let me explain the situation more.? Warning - this is long, but only way I know of to explain.? If your time is short please just skip the rest. The following ONLY applies to VB conversion project. Well, in order to implement the equivalent of a "Static" var in a function, and since a lot of our functions use common names as "mystaticvar" in lots of functions: the only way I know of is to make a separate module for each function. So we go from a dozen or so module files on VB side to over a 1000 modules on Gambas side...just to deal with the fact Gambas doesn't support static var type define inside a function.? And we don't even know if Gambas scales that way. Static might not seem "pretty" to you, but you don't have to use it in your code if you don't want to.? For those of us working on an existing conversion project:? Having a way to use as much tested / working VBcode as possible would be a big plus.? Pretty?? Probably not by your standard.? But easily upgrading VB6 code to Gambas is really "pretty" to me, and a lot of VB programmers might agree. Time = Money. Gambas is SOOO close to working with VB code as-is too.?? Then I get into details and it's like I'm seeing a mirage on a desert of not-a-lot-of-solutions.? That doesn't mean Gambas isn't really great - it is!! No, you can't always blindly do global "find and replace" on modules that contain more than one function that have same static var names inside function.? You can wind up with functions sharing vars that are supposed to have scope of only one function at a time, and that would be disaster. Good point about "With Globals.mod".? That can work. Beniot keeps pointing out to not use Structs except for C calls, so that tells me there is something to really worry about there, and I need to do more testing.? Our structs can be a flat 1440 X 1280 32 bit image frame data along with several hundred INT32 and INT64, lots of 64 bit "Doubles" (VB / C term), fixed length strings, byte arrays etc.? And then those structs are contained arrays themselves.? So we might be passing around a memory pointer to many 10's or 100 MB of data at a time that has to work with Gambas? and C.? I know Gambas would rather have Structs be setup? in it's own class object format, but we need everything to be portable to C with a single pointer.? Maybe these big structs will slow down Gambas too much. The bottom line is on Tuesday morning I have to go into the boss and tell him Gambas looked really good initially...but it is just enough different that the time required? to convert working code is now going to take X amount of time longer because we need to redesign the module layout because Gambas doesn't have a way to declare a static var or array in a function.? Then he'll say "How does this make the final product any different?"...and I'll say "It doesn't"...and then he'll say "Screw that".... and so on.? OK. That's not anyone's fault, it is what it is.? Maybe we can't use Gambas after all...if we have to redesign from scratch it might as well go to Qt where we don't have to worry about structs being C compatible? - but Qt is going closed source these days.? Dang. There's goofy Xojo but...it has issues too. In the industrial world we like to get everything working and vetted one time - because on a semicon fab line it can cost millions of dollars testing time over several months before the machine is turned loose to run really expensive product.? One wafer of devices is worth upwards for USD$250k, and the machine must not break or stop for any reason while processing.? So we have to do a lot of in-house testing and do our best to break code ahead of time, and build in lots of safety checks.? Once the product is in the field we try not to ever change it - because changing a single line of code could trigger a customer on-site test cycle again and that costs lots of time & money.?? Think Big and Think Big Giverment DoD contractors, and think of all the rules that are in place if we have to do a software update. We don't even make an GUI installer package for customers - we send them a whole disk image ready to setup from thumb drive or just physical SSD.? On Windows that's done with WES7 (Like Win7 but licensed across a fleet of machines, and still current for a few more years to industrial users), and on Linux we just send a disk all ready to go.? In any case customer plugs in disk, it boots and system runs fine on any hardware we have in the field.?? No install dependencies to worry about because we've set everything up on the disk image, and that's how it'll be for a long time. After the system is running, we probably won't update anything for decades, nor would we want to.? These machines are not on the 'Net, and they have only two jobs to do:? Run, and Run Faster.? Forever. No matter how the source code looks. Assuming that big C-friendly Structs could be used in Gambas (If not we couldn't eevn use Gambas): What would be really cool is a gb.VBConversion component that could (and we'd happily pay for this on a commercial project if it saves testing time and errors): 1. Support "static" var.? Gamabas already let's you Dim a var inside a function, a Static seems reasonable.? You don't have to use it if you don't want to. 2.? Support "End Function, End Sub" etc without complaining. Gambas can also know that "Type" is a "Struct" and so on.? Those are minor little things I know.? Just saving some steps will not hurt anything. 3.? "Double" is 8 bytes in VB and C world, it would seem a small thing to have Gambas know that a "Double" is same as "gb.Float" type also.?? It's confusing reading Gambas code because in C world a "Float" is 4 bytes - which we never ever use anyway, and we never once used a VB Single. 4.? With this gb.VBConversion, arrays could be delimited with "()" instead of just "[]".? Why not make life easier for VB folks to get drawn into Gambas World. 5.? If possible, some way to define local or static arrays inside a function.? Again, mybe not pretty, but it's what I have to work with on a conversion - in many hundreds of functions. I know I know Gambas is not Basic, but it seems surely inspired by VB in a lot of ways.? Having a way to have it embrace legacy VB code a little easier (with minimal re-write time) would be REALLY cool, as long as it doesn't break any existing projects. If you were building a new project in Gambas, or working with an existing Gambas project:? not any of what I just wrote would be required. Over 'N Out -John From jose.rodriguez at cenpalab.cu Sun May 30 19:20:10 2021 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Sun, 30 May 2021 17:20:10 +0000 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> Message-ID: May 30, 2021 12:56 PM, "John Anderson" wrote: > On 5/29/2021 3:50 PM, Christof Thalhofer wrote: > > What would be really cool is a gb.VBConversion component that could (and > we'd happily pay for this on a commercial project if it saves testing > time and errors): > FWIW, I remember a VB compatibility component back in my Gambas 1.x days. I also went from VB6 to Gambas, having found VB.net to not be VB at all. I had been looking for a good BASIC dev system for Linux for quite a while back then and had tried a few not very convincing ones and some somewhat promising but dead ones. Regards, Joe1962 From johna at starflightinc.com Sun May 30 19:23:12 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 30 May 2021 10:23:12 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <0b8a7db8-9351-51ee-14a1-2996943a3b6f@deganius.de> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> <652e2fee-9bcb-8914-83cd-46f80f078055@gmail.com> <19b78bb1-9115-c251-abbb-78be482c16d4@starflightinc.com> <0b8a7db8-9351-51ee-14a1-2996943a3b6f@deganius.de> Message-ID: On 5/30/2021 1:27 AM, Christof Thalhofer wrote: > Hi John > > Am 30.05.21 um 06:44 schrieb John Anderson: > >> Well, I don't even know what that means or why you sent that response >> off-list- > I find everything you write very interesting, but if someone mails you > private you should answer private. It is not proper to quote private > mail in a public mailing list and thus make it public. > > And if you and Bruce have any problems, please work it out privately. > > Alles Gute > > Christof Thalhofer > Yep, that's how it works!! ... And by the same token, if anyone responds to my public list discussion, the response should only post to the public mailing list.? Otherwise the group misses out on all the fun! I think that's the spirit of the mailing list. Suggest Best way:? Never talk about politics, religion or personal relationships, and no religious wars over coding preferences.? Then we'll all be friends. -J From g4mba5 at gmail.com Sun May 30 20:08:28 2021 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 30 May 2021 20:08:28 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> Message-ID: Le 30/05/2021 ? 18:55, John Anderson a ?crit?: > > Thanks, I understand your concern...and it is not my intention that my > needs require Gamabs to break anything it currently does well. > > Let me explain the situation more.? Warning - this is long, but only way > I know of to explain.? If your time is short please just skip the rest. > The following ONLY applies to VB conversion project. > > Well, in order to implement the equivalent of a "Static" var in a > function, and since a lot of our functions use common names as > "mystaticvar" in lots of functions: the only way I know of is to make a > separate module for each function. > > So we go from a dozen or so module files on VB side to over a 1000 > modules on Gambas side...just to deal with the fact Gambas doesn't > support static var type define inside a function.? And we don't even > know if Gambas scales that way. It should work, but it's not a good idea per se. To implement static variable workaround, you don't have to add any module. You just have to declare these static variables on the top of the module. So if you have for example 20 functions with static variables in a module, you have to move 20 declaration on the top of the module, and prefix the name of the static variable with the name of its function to avoid name clash (which Gambas would do internally if he had to support function static variables). Do you know 'gb.eval' and Highlight.Analyze()? It takes a line of code, analyzes it, and return a list of token names and types. It allows you to make automatic code conversion easily and reliably. > [...] > > Beniot keeps pointing out to not use Structs except for C calls, so that > tells me there is something to really worry about there, and I need to > do more testing.? Our structs can be a flat 1440 X 1280 32 bit image > frame data along with several hundred INT32 and INT64, lots of 64 bit > "Doubles" (VB / C term), fixed length strings, byte arrays etc.? And > then those structs are contained arrays themselves.? So we might be > passing around a memory pointer to many 10's or 100 MB of data at a time > that has to work with Gambas? and C.? I know Gambas would rather have > Structs be setup? in it's own class object format, but we need > everything to be portable to C with a single pointer.? Maybe these big > structs will slow down Gambas too much. The difference between normal arrays and embedded arrays (which use the VB syntax), is explained here: http://gambaswiki.org/edit/lang/arraydecl They are not necessarily slower. They are just not Gambas objects, and are allocated inside the class or module they are declared in. Their size is consequently limited by the maximum size of a Gambas object or class. Which should be 4GB, so it should be enough. As soon as you know the difference, they is no problem in using them for porting a project. But it's better to use normal arrays for new code, and keep embedded arrays when dealing with external C code. > [...] > > Assuming that big C-friendly Structs could be used in Gambas (If not we > couldn't eevn use Gambas): > > What would be really cool is a gb.VBConversion component that could (and > we'd happily pay for this on a commercial project if it saves testing > time and errors): I have my company now (actually I -am- a company, I am "self employed"). What is your company, and what is its country? I can make invoices inside European Union I think (must check). Outside of, I don't know how it works: the doomed french taxation system that nobody can understand completely, you know... - if you agree that all the changes that will be part of Gambas are free software of course. Now I answer your point, but don't hesitate to write a more detailed requirement specifications so that I can give you a delay. > > 1. Support "static" var.? Gamabas already let's you Dim a var inside a > function, a Static seems reasonable.? You don't have to use it if you > don't want to. As I told in a previous mail, it's possible to implement, except that "static" becomes ambiguous inside a class method (you will say that you don't care, but I have to). > > 2.? Support "End Function, End Sub" etc without complaining. Does it complain? I thought you can use 'End Function' or 'End Sub' instead of 'End' indifferently. > Gambas can > also know that "Type" is a "Struct" and so on.? Those are minor little > things I know.? Just saving some steps will not hurt anything. If you understand how to use Highlight.Analyze(), it's rather simple to do all the substitutions. > > 3.? "Double" is 8 bytes in VB and C world, it would seem a small thing > to have Gambas know that a "Double" is same as "gb.Float" type also. > It's confusing reading Gambas code because in C world a "Float" is 4 > bytes - which we never ever use anyway, and we never once used a VB Single. Same remark. > > 4.? With this gb.VBConversion, arrays could be delimited with "()" > instead of just "[]".? Why not make life easier for VB folks to get > drawn into Gambas World. I'm afraid it's not possible. "()" is already an operator in Gambas, used for function calls. An automatic translator may do the substitution, but it's a complex task to make the difference between array access and function access. I don't even know how VB managed that, but I guess it's just one horror amongs many others. > > 5.? If possible, some way to define local or static arrays inside a > function.? Again, mybe not pretty, but it's what I have to work with on > a conversion - in many hundreds of functions. As soon as you don't use embedded arrays. They cannot be local. But they can be static (as static = module/class global). Regards, -- Beno?t Minisini From chrisml at deganius.de Sun May 30 20:43:00 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 30 May 2021 20:43:00 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> Message-ID: <2e08d9e3-44f8-e6dd-7055-542ccc674dd2@deganius.de> Am 30.05.21 um 18:55 schrieb John Anderson: > On 5/29/2021 3:50 PM, Christof Thalhofer wrote: >> Am 29.05.21 um 22:09 schrieb Beno?t Minisini: >> >>> So maybe I could allow declaring "static variables" (actually private >>> global class variables) inside functions in the future. >> That would make code even uglier. Is there any reason to do this that >> makes sense? >> >> Alles Gute >> >> Christof Thalhofer >> > > Thanks, I understand your concern...and it is not my intention that my > needs require Gamabs to break anything it currently does well. > > Let me explain the situation more.? Warning - this is long, but only way > I know of to explain.? If your time is short please just skip the rest. > The following ONLY applies to VB conversion project. > > Well, in order to implement the equivalent of a "Static" var in a > function, and since a lot of our functions use common names as > "mystaticvar" in lots of functions: the only way I know of is to make a > separate module for each function. Ok, now I think I understand. Maybe it was a misunderstanding by me, I thought you wanted to be able to define *Global* Static Variables inside functions (I mean global accessible). I think I did not read carefully enough. As I now understand you want to have variables that reside inside methods that keep their value from call to call. This undermines what I think is an important security aspect of Gambas, which is that methods in classes are stateless unless they use global variables of the class. Programmers who are not that experienced might be misled by the name "static". Readers of code could easily overread that a variable is not stateless any more. Gambas actually has a pretty clean design, I'm unsure if it will be compromised by this idea. I'm afraid it will be. There is an agreement that Gambas programmers use the prefix "$" for variable names to indicate a global variable of a class. Actually, if your idea were implemented, one would have to consider that static variables within methods get their own prefix to identify them and a common agreement to use that. I did not read your long mail to the end, maybe there will be more arguments from my side. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From jussi.lahtinen at gmail.com Sun May 30 21:39:47 2021 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 30 May 2021 22:39:47 +0300 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: Message-ID: I have been a bit too busy to follow this very long thread. So just a general note. I did convert a vb6 project with 50 000 lines of (ugly) code into Gambas (2), when I started. It wasn't as hard as I thought it would be. But your mileage may vary. Jussi On Sat, May 29, 2021 at 10:48 PM John Anderson wrote: > On converting larger codebase from VB6 to Gambas, I wanted to double > check my method for converting "static" type variable module declares into > the Gambas way. This might be obvious to everyone, but I just wanted to be > sure. Or am I smoking the wrong stuff again? > > This is for module-type functions where only a single instance of the code > function is used for the entire project. I'm not talking about static vars > used in multiple-instance classes. > > From VB world: I'm talking about a static variable/object used in a > sub/function that is only initialized when the function is first invoked, > and is stored on a static heap for the project run session. The value of > the variable persists every time the function is invoked every time after > first use. The static var shall exist until the program exits. It > absolutely can't be seen or used by anything outside of the function - ie. > the scope of static var is at the function level only. In other words - > it's just like a local variable that is initialized only once, and lives on > the static heap instead of the stack. > > In Gambas World: It looks like you can't declare a variable of type > static in module function, nor can you declare an array -inside- the module > function. OK, I'll work according to those rules. I know that variable > declares inside a Gambas module are inherently static in nature. If I'm > reading docs right. > > I THINK the approach is to convert old VB existing functions with statics > is to make a module file (of ModuleName.mod) for -each- function, and lay > out generally as > > 'Gambas module file > > 'Static-like vars declared here > Private myLVar As Long = 0 > Private myArray[20, 500] As Integer > '....etc. > > 'Function/ Sub below > > Public Function myFunc(Param1 As Integer, Param2 As Integer,...) As Boolean > > Dim x As Integer 'These are initialized at every function call > Dim somevar As Byte 'Etc. > > 'Actual code goes here.... > myArray[Param1, Param2] = 42 > > '... whatever > > Return True > End > -EOF- > > Now everywhere else in the project can use ModuleName.myFunc (Param1, > Param2...). > > Is that correct strategy or is there a better approach? Being static, > will "static var" be able to be used with upcoming "Data Breakpoint" debug > feature? > > I guess doing it this way gets my wish of seeing long Subs / Funcs > one-at-a-time in the IDE. I'll have over 1100 files in the source > directory though. Ughh. > > If this is correct way, I see a way to make the conversion process > sorta-kinda-automated with a VB6 to Gambas code converter tool - it won't > be perfect but at least the module files can be generated one for each > module function, and static vars placed in top module declaration section > of each file - outside the function. There rest of code will have to be > checked over and tweaked and tested. It's a start. Maybe. Maybe bad idea. > > -John > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johna at starflightinc.com Mon May 31 01:40:49 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 30 May 2021 16:40:49 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <2e08d9e3-44f8-e6dd-7055-542ccc674dd2@deganius.de> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> <2e08d9e3-44f8-e6dd-7055-542ccc674dd2@deganius.de> Message-ID: On 5/30/2021 11:43 AM, Christof Thalhofer wrote: > > Am 30.05.21 um 18:55 schrieb John Anderson: >> On 5/29/2021 3:50 PM, Christof Thalhofer wrote: >>> Am 29.05.21 um 22:09 schrieb Beno?t Minisini: >>> >>>> So maybe I could allow declaring "static variables" (actually private >>>> global class variables) inside functions in the future. >>> That would make code even uglier. Is there any reason to do this that >>> makes sense? >>> >>> Alles Gute >>> >>> Christof Thalhofer >>> >> Thanks, I understand your concern...and it is not my intention that my >> needs require Gamabs to break anything it currently does well. >> >> Let me explain the situation more.? Warning - this is long, but only way >> I know of to explain.? If your time is short please just skip the rest. >> The following ONLY applies to VB conversion project. >> >> Well, in order to implement the equivalent of a "Static" var in a >> function, and since a lot of our functions use common names as >> "mystaticvar" in lots of functions: the only way I know of is to make a >> separate module for each function. > Ok, now I think I understand. Maybe it was a misunderstanding by me, I > thought you wanted to be able to define *Global* Static Variables inside > functions (I mean global accessible). I think I did not read carefully > enough. > > As I now understand you want to have variables that reside inside > methods that keep their value from call to call. > > This undermines what I think is an important security aspect of Gambas, > which is that methods in classes are stateless unless they use global > variables of the class. Programmers who are not that experienced might > be misled by the name "static". Readers of code could easily overread > that a variable is not stateless any more. > > Gambas actually has a pretty clean design, I'm unsure if it will be > compromised by this idea. I'm afraid it will be. > > There is an agreement that Gambas programmers use the prefix "$" for > variable names to indicate a global variable of a class. Actually, if > your idea were implemented, one would have to consider that static > variables within methods get their own prefix to identify them and a > common agreement to use that. > > I did not read your long mail to the end, maybe there will be more > arguments from my side. > > Alles Gute > > Christof Thalhofer > I don't blame you for not reading the whole thing... Correct - We have to have a way so that each module function can have a "static" variable that has scope of just that one function only, and the value persists across each function call.? Exactly how static vars work. Just like a local, except initialized only at first function call, and they are stored in system static heap, not the stack. Yes, we could put a lot of functions (aka methods) into a module, but we'd have the problem of defining the "static" variables in the declarations section.? Which is OK, except the functions have a lot of same static names -? Now we have to come up with new names for the statics used in each function contained in the module, and we need to avoid that if at all possible. My solution is to put one function per module file, with its statics in declaration area. This might help to understand what we do now - and we really want to try to retain as much valuable source code as possible.? Tested and Known Working Logic path = Priceless. WARNING - THE FOLLOWING CODE SAMPLE MAY BURN if you're squeamish.? I don't need to be told how it coulda/shoulda been done differently. It's what I have to work with...some 84,000 lines.? And no, we aren't going to re-write everything if we can avoid it.? Currently everything runs perfectly. As a concept - This is what we have now in VB code - and we have many hundreds of these function sequences that operate as state machines, and can be called from other state machines above them. The main top level state machine timing loop is at level zero, and that's where E-Stop and safety checks are done, and that loop has control over all state machines operating below it.? When the operator hits "Start Some Function" button, we start working thru the state machine sequences according to a large config file system etc.?? The top level Main loop fires every few mSec. and the Main Loop can start falling into various state machine functions as required. This is a typical part of a system loop that is fired every few mSec by master control code timing loop.? Every state in the state machine must be non-blocking, and these are typically short function calls to C-code for motion control system, machine vision, etc. Public SeqFuncA (SeqLevel as Int, Some Parameters list) as Boolean ??? ??? Dim x as Integer? ' A regular local variable, and initialized at every call ??? ??? Static StaticLoopCount? as Long - A static that retains it's value at every function call ??? ??? Static myTimer as New clsOurTimer ? ' Our own Timer class object ??? ??? Static XYZPositionStart as new clsPoint 'Our own position storage class that holds position of machine motors at the start of this sequence ??? ??? Static mySeqArray(0 to 2000)? as Long ?? 'We use arrays for a lot of C code calls ??? ??? 'State machine start ??? ??? Select Case ucStateControl(SeqLevel).State ? ' This is our master User State Control that tells us what state were in for each sequence level, starts at zero every time a new SeqLevel is started Available Globally to all functions. Case 0 ??? ??? 'Do Something like initialize vars at first state ??? ??? myStaticLoopCount =0 ??? ??? GetMachineMotorPositions( ByRef XYZPositionStart) ' Store current positions of all motors ??? ??? ucStateControl(SeqLevel).NextState = 10? 'The next time we drop into this function we will be at State 10 Case 10 ??? ??? AirValve(1).SetOn ??? ??? 'AirValve #1 is turned on now ??? ??? myTimer.Set = 50??? ??? 'Wait 50 mSec at next case to allow air cylinder retract ??? ??? ucStateControl(SeqLevel).NextState = 20? 'The next time we drop into this function we will be at State 20 Case 20 ??? ??? if myTimer.isDone and LaserSafeFlag.isSafe then???? 'We don't advance to next state until timer don and lasersafe say it is OK to proceed. ??? ??? ??? ucStateControl(SeqLevel).NextState = 30 ??? ??? end if Case 30 ???? myStaticLoopCount =? myStaticLoopCount + 1? ' Keep track of how many times we've hit this state ???? '...More states Case490 ??? ucStateControl(SeqLevel).NextState = 500 Case 500 ??? if SomethingWasNotCorrectCondition ??? ??? MasterSeqErrorCode = AnErrorCode ??? ??? 'Global ??? ??? SeqFuncA=True? 'Signal to calling process we are completed, and error code will be thrown to show there was a problem ??? else ??? ??? ??? ucStateControl(SeqLevel).NextState = 510 ???? end if Case 510 ??? 'More states if no error Case 990 ????? if myStaticLoopCount > CurrentRecipe.TargetRepeatLoops.Value? then??? ??? 'Recipe class is available globally, and provides options to state machines ??? ?? ?? ? ucStateControl(SeqLevel).NextState = 1000?? ' Get ready to finish state machine at next state depending on myStaticVar ??? ? else ??? ???? ??? ucStateControl(SeqLevel).NextState = 30 ? ' Repeat steps until loops completed ??? end if Case 1000 ??? AirValve(1).SetOff ??? ??? 'AirValve #1 is turned off now ??? MoveMotorsXYZ(XYZPositionStart)? 'Start moving all motors back to start position. ??? ucStateControl(SeqLevel).NextState = 1100 Case 1100 ??? If isAllMotorsStoppedFlag then??? ??? ??? 'Global Safety Flag to make certain all motors are stopped moving before sequence is completed ??? ??? SeqFuncA=True? 'Signal to calling process we are completed, MasterSeqError flag will be False ??? end if End SeqFuncA Somewhere else in a sequence loop at a sequence level above this - we start the above sequence with Case XXX If SeqFuncA(SeqLev+1, SomeParametersList) ??? 'See if error occured ??? if MasterSeqErrorCode then ??? ??? 'Do something here if there was a problem with that sequence, MasterSeqErrorCode stays set ??? ??? SeqHigherLevelFunc = True??? ' Now this sequence will exit to next higher level sequence ??? end if ??? ucStateControl(SeqLevel).NextState = YYY ' Go to next state of this sequence end if So that's what I'm attempting to convert with Gambas.? And a "Static" var type inside a function / module method would help a lot. -John From johna at starflightinc.com Mon May 31 01:49:55 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 30 May 2021 16:49:55 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> Message-ID: - if you agree that all the changes that will be part of Gambas are free software of course. -Not a problem. > > Now I answer your point, but don't hesitate to write a more detailed > requirement specifications so that I can give you a delay. > >> >> 1. Support "static" var.? Gamabas already let's you Dim a var inside >> a function, a Static seems reasonable.? You don't have to use it if >> you don't want to. > > As I told in a previous mail, it's possible to implement, except that > "static" becomes ambiguous inside a class method (you will say that > you don't care, but I have to). > >> >> 2.? Support "End Function, End Sub" etc without complaining. > > Does it complain? I thought you can use 'End Function' or 'End Sub' > instead of 'End' indifferently. > >> Gambas can also know that "Type" is a "Struct" and so on.? Those are >> minor little things I know.? Just saving some steps will not hurt >> anything. > > If you understand how to use Highlight.Analyze(), it's rather simple > to do all the substitutions. > >> >> 3.? "Double" is 8 bytes in VB and C world, it would seem a small >> thing to have Gambas know that a "Double" is same as "gb.Float" type >> also. It's confusing reading Gambas code because in C world a "Float" >> is 4 bytes - which we never ever use anyway, and we never once used a >> VB Single. > > Same remark. > >> >> 4.? With this gb.VBConversion, arrays could be delimited with "()" >> instead of just "[]".? Why not make life easier for VB folks to get >> drawn into Gambas World. > > I'm afraid it's not possible. "()" is already an operator in Gambas, > used for function calls. > > An automatic translator may do the substitution, but it's a complex > task to make the difference between array access and function access. > I don't even know how VB managed that, but I guess it's just one > horror amongs many others. > >> >> 5.? If possible, some way to define local or static arrays inside a >> function.? Again, mybe not pretty, but it's what I have to work with >> on a conversion - in many hundreds of functions. > > As soon as you don't use embedded arrays. They cannot be local. But > they can be static (as static = module/class global). > > Regards, > Thanks very much!!? You and everyone else have given me more stuff to think on. Let me look at HIghlight.Analyze / gb.eval etc and play with that for a bit.? That would be cool if Gamabs could convert it's own source code.... I THINK the main stumbling block now would be a "Static" type in a function.? Having that I THINK having that feature would make the conversion process? much quicker and more error resistant, and it would save needing lots of module files. And I know know other Gambas users here probably won't need a Static in a function too much, and I'm more than willing to pay for my "sins" against pretty code. Let my try a few things first and I'll get back to you on private email Beno?t. -John From johna at starflightinc.com Mon May 31 05:13:02 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 30 May 2021 20:13:02 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: Message-ID: On 5/30/2021 12:39 PM, Jussi Lahtinen wrote: > I have been a bit too busy to follow this very long thread. So just a > general note. I did convert a vb6 project with 50 000 lines of (ugly) > code into Gambas (2), when I started. > It wasn't as hard as I thought it would be. But your mileage may vary. > > > Jussi > > That's really good to know Jussi!? I'll keep that in mind! -John From johna at starflightinc.com Mon May 31 05:49:41 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 30 May 2021 20:49:41 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> Message-ID: <554de55a-46cb-2ec1-0f53-f3aff05ed3f9@starflightinc.com> On 5/30/2021 10:20 AM, jose.rodriguez at cenpalab.cu wrote: > May 30, 2021 12:56 PM, "John Anderson" wrote: > >> On 5/29/2021 3:50 PM, Christof Thalhofer wrote: >> >> What would be really cool is a gb.VBConversion component that could (and >> we'd happily pay for this on a commercial project if it saves testing >> time and errors): >> > > FWIW, I remember a VB compatibility component back in my Gambas 1.x days. I also went from VB6 to Gambas, having found VB.net to not be VB at all. I had been looking for a good BASIC dev system for Linux for quite a while back then and had tried a few not very convincing ones and some somewhat promising but dead ones. > > Regards, > Joe1962 Thanks Joe...good to know I wasn't the only one to find out the same thing! -John From johna at starflightinc.com Mon May 31 05:56:37 2021 From: johna at starflightinc.com (John Anderson) Date: Sun, 30 May 2021 20:56:37 -0700 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: <403540446.11219.1622381859837.JavaMail.zimbra@westwoodsvcs.com> References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <2ca00acb-86d7-a701-38b5-0d966ee5e851@starflightinc.com> <403540446.11219.1622381859837.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <207be27f-05b4-b05c-bfa3-6c8096658385@starflightinc.com> On 5/30/2021 6:37 AM, Brian G wrote: > Given this example > > Function updateSales(ByVal thisSale As Decimal) As Decimal > ?? ?Static totalSales As Decimal = 0 > ?? ?totalSales += thisSale > ?? ?Return totalSales > End Function > > Being called as updateSales(777.77) > > If you create a new .mod file for each function/sub that contains static variables > The mode file gets the name of the function/sub. Again in gambas sub/functions are just aliases of sub. > eg > > updateSales.mod > > Then the code should end up looking like > > 'begin module > > private totalSales as float = 0 ? ? ? ? ? ?' from decimal > > public sub _call(ByVal thisSale As float) as float ' from decimal > ?? ? totalSales += thisSale > ?? ? Return totalSales > end > > 'end module > > You will not have to change or update the names of your functions/subs anywhwere else in your code. > Simply reconstruct it into a module. > > _call is a special name in gambas that is executed when a module is called by name. > > So now your code does not need to change as far as calling the function. > it still is called as > > ??updateSales(777.77) > > I am not sure how many separate modules gambas can support. Thanks Brian - That's good info about _call, etc. and that could come in handy other places as well.? I had seen that in docs but I didn't make the connection to my project until you showed it here. -John From claude.dessere at orange.fr Mon May 31 09:55:32 2021 From: claude.dessere at orange.fr (CD) Date: Mon, 31 May 2021 09:55:32 +0200 Subject: [Gambas-user] TestLocalTime Message-ID: <158026a9d223da50848a96f5c7b901e806725209.camel@orange.fr> Hello, I have an HTML page that displays the time using a script. The browser I use(Firefox) displays the local time (new Date () in JavaScript). Why does the WebView control not display local time but UTC? How to remedy this difference? Regards. Attachments : TestLocalTime-0.0.1.tar.gz [System] Gambas=3.16.1 OperatingSystem=Linux Kernel=5.4.0-73-generic Architecture=x86_64 Distribution=Ubuntu 20.04.2 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=traditionalgreen Language=fr_FR.UTF-8 Memory=7838M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=fr_FR GIO_LAUNCHED_DESKTOP_FILE=/Bureau/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=26522 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/us r/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1503,unix/:/tmp/.ICE- unix/1503 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1563 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestLocalTime-0.0.1.tar.gz Type: application/x-compressed-tar Size: 14156 bytes Desc: not available URL: From chrisml at deganius.de Mon May 31 15:12:40 2021 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 31 May 2021 15:12:40 +0200 Subject: [Gambas-user] Correct strategy for VB static var conversion to Gambas? In-Reply-To: References: <7de51a3c-3ff0-d4f9-1153-1277c6c9a201@gmail.com> <99d1c971-4651-ed0e-1521-7221b1d405d1@deganius.de> <2e08d9e3-44f8-e6dd-7055-542ccc674dd2@deganius.de> Message-ID: Hi John, Am 31.05.21 um 01:40 schrieb John Anderson: > As a concept - This is what we have now in VB code - and we have many > hundreds of these function sequences that operate as state machines, and > can be called from other state machines above them. Thank you for your explanations. I finally understood what it's all about. You know, we're just playing the good guy/bad guy game here to drive up the price. ;-) So I hope Beno?t gets the money he deserves when he makes Gambas suitable for state machines. You can still put something "for the beauty" on it. And then have fun with Gambas, it's such a great software to work with! Alles Gute Christof Thalhofer -- [x] nail here for new monitor