From t.lee.davidson at gmail.com Fri Apr 1 00:30:47 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 31 Mar 2022 18:30:47 -0400 Subject: [Gambas-user] Program producing constant load In-Reply-To: References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> Message-ID: <1a181ccf-328e-b87a-56e5-c5e94cd0e678@gmail.com> On 3/31/22 06:56, Rolf-Werner Eilert wrote: > Here is a special version Kalender4-Test which uses a special directory for?its?calendar?data?and?should?run?on?other?systems?too. > > You need the archive and the kaltes.tar.gz of the special directory. Unpack or copy the latter to your $home as > $home/.kalendertest/... It contains only holiday data, everything else is left out, but it runs > this?way?and?maybe?shows?the?problem. > > Hope?this?helps! > > Regards > Rolf The problem is at lines 915, 997, and 1044, in the kalMonat 1-3 _Data event handlers: If Column = 0 Then .Rows[Row].Text = KW 'Kalenderwoche I am not certain (someone with greater knowledge of the event loop than me would need to confirm), but I suspect that setting the cell's text outside of the .Data property is causing the _Data event handler to be called recursively. Is it possible to set the row header text in the AnzeigeDatum subroutine? -- Lee From g4mba5 at gmail.com Fri Apr 1 00:52:42 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 1 Apr 2022 00:52:42 +0200 Subject: [Gambas-user] Program producing constant load In-Reply-To: <1a181ccf-328e-b87a-56e5-c5e94cd0e678@gmail.com> References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> <1a181ccf-328e-b87a-56e5-c5e94cd0e678@gmail.com> Message-ID: <3864167d-4eb4-ffdb-120e-d9d56a805ae7@gmail.com> Le 01/04/2022 ? 00:30, T Lee Davidson a ?crit?: > On 3/31/22 06:56, Rolf-Werner Eilert wrote: >> Here is a special version Kalender4-Test which uses a special >> directory for?its?calendar?data?and?should?run?on?other?systems?too. >> >> You need the archive and the kaltes.tar.gz of the special directory. >> Unpack or copy the latter to your $home as $home/.kalendertest/... It >> contains only holiday data, everything else is left out, but it runs >> this?way?and?maybe?shows?the?problem. >> >> Hope?this?helps! >> >> Regards >> Rolf > > The problem is at lines 915, 997, and 1044, in the kalMonat 1-3 _Data > event handlers: > If Column = 0 Then .Rows[Row].Text = KW?? 'Kalenderwoche > > I am not certain (someone with greater knowledge of the event loop than > me would need to confirm), but I suspect that setting the cell's text > outside of the .Data property is causing the _Data event handler to be > called recursively. > > Is it possible to set the row header text in the AnzeigeDatum subroutine? > Technically, not directly. The Data is used by the control to retrieve the contents of a specific cell. Consequently, you must not trigger a refresh of that same cell inside its Data event handler, directly or indirectly, otherwise you generate successive calls of Data and refreshes forever. Otherwise, setting the text of a row will trigger a refresh, which will call the Data event handler for the cells that must be redrawn. Regards, -- Beno?t Minisini From simonlebon54 at yahoo.com Fri Apr 1 01:18:21 2022 From: simonlebon54 at yahoo.com (Steve G) Date: Thu, 31 Mar 2022 15:18:21 -0800 Subject: [Gambas-user] Window placement In-Reply-To: References: Message-ID: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> Me.top=5 Me left=5 I've been racking my brain trying to figure out why the above code does not want to work. Yes it's been in here before. I have more information. It seems to only affect existing projects. Those that were made with version 3.15. When I open them up in the version 3.16 I have this problem. However if I create a brand new project in the version 3.16 and set all of the libraries and properties the same I do not have the same problem. Could this be something that only affects projects written in earlier versions? ?Sent from TypeApp ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Apr 1 01:18:21 2022 From: simonlebon54 at yahoo.com (Steve G) Date: Thu, 31 Mar 2022 15:18:21 -0800 Subject: [Gambas-user] Window placement In-Reply-To: References: Message-ID: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> Me.top=5 Me left=5 I've been racking my brain trying to figure out why the above code does not want to work. Yes it's been in here before. I have more information. It seems to only affect existing projects. Those that were made with version 3.15. When I open them up in the version 3.16 I have this problem. However if I create a brand new project in the version 3.16 and set all of the libraries and properties the same I do not have the same problem. Could this be something that only affects projects written in earlier versions? ?Sent from TypeApp ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Apr 1 01:21:01 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 1 Apr 2022 01:21:01 +0200 Subject: [Gambas-user] Window placement In-Reply-To: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> References: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> Message-ID: <4d07d335-5709-24b9-34ff-b7f81255ff32@gmail.com> Le 01/04/2022 ? 01:18, Steve G via User a ?crit?: > Me.top=5 > Me left=5 > > I've been racking my brain trying to figure out why the above code does > not want to work. Yes it's been in here before. I have more information. > It seems to only affect existing projects. Those that were made with > version 3.15. When I open them up in the version 3.16 I have this > problem. However if I create a brand new project in the version 3.16 and > set all of the libraries and properties the same I do not have the same > problem. Could this be something that only affects projects written in > earlier versions? > > Sent from TypeApp > I don't find a reason for that... Don't forget to communicate on the bugtracker issue so that nothing is lost! Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Apr 1 02:42:54 2022 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 1 Apr 2022 03:42:54 +0300 Subject: [Gambas-user] Window placement In-Reply-To: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> References: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> Message-ID: In what way it doesn't work? The window placement is wrong (and it is instead?) or it doesn't move at all? Jussi On Fri, Apr 1, 2022 at 2:19 AM Steve G via User wrote: > Me.top=5 > Me left=5 > > I've been racking my brain trying to figure out why the above code does > not want to work. Yes it's been in here before. I have more information. It > seems to only affect existing projects. Those that were made with version > 3.15. When I open them up in the version 3.16 I have this problem. However > if I create a brand new project in the version 3.16 and set all of the > libraries and properties the same I do not have the same problem. Could > this be something that only affects projects written in earlier versions? > > Sent from TypeApp > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at lixce.com Fri Apr 1 03:09:29 2022 From: james at lixce.com (James Jordan) Date: Thu, 31 Mar 2022 18:09:29 -0700 Subject: [Gambas-user] Window Placement Message-ID: <7dda7722-a4e6-4a12-a8e4-db971c580ba3@email.android.com> An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Sun Apr 3 06:08:17 2022 From: buster6seven at gmail.com (Shane) Date: Sun, 3 Apr 2022 14:08:17 +1000 Subject: [Gambas-user] desktop mouse Message-ID: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Hi Everyone I'm trying to move the mouse automaticallyon the desktop and click. I can use "Mouse.Move"? to move the mouse on the desktop but is there anyway to click? Cheers Shane From bsteers4 at gmail.com Sun Apr 3 13:30:07 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 3 Apr 2022 12:30:07 +0100 Subject: [Gambas-user] desktop mouse In-Reply-To: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: On Sun, 3 Apr 2022 at 05:09, Shane wrote: > Hi Everyone I'm trying to move the mouse automaticallyon the desktop and > click. I can use "Mouse.Move" to move the mouse on the desktop but is > there anyway to click? > > Cheers Shane > I don't think it's possible with gambas directly. it is possible if you load in xlib library I've never done it but here's a discussion i found on how to use xlib to do it , you'd just need to convert the code to gambas. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Apr 3 13:30:56 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 3 Apr 2022 12:30:56 +0100 Subject: [Gambas-user] desktop mouse In-Reply-To: References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: On Sun, 3 Apr 2022 at 12:30, Bruce Steers wrote: > > > On Sun, 3 Apr 2022 at 05:09, Shane wrote: > >> Hi Everyone I'm trying to move the mouse automaticallyon the desktop and >> click. I can use "Mouse.Move" to move the mouse on the desktop but is >> there anyway to click? >> >> Cheers Shane >> > > I don't think it's possible with gambas directly. > it is possible if you load in xlib library > I've never done it but here's a discussion i found on how to use xlib to > do it , you'd just need to convert the code to gambas. > oops forgot the link... https://www.linuxquestions.org/questions/programming-9/simulating-a-mouse-click-594576/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Apr 3 18:48:42 2022 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 3 Apr 2022 18:48:42 +0200 Subject: [Gambas-user] desktop mouse In-Reply-To: References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: In the post there is something interesting : http://www.semicomplete.com/projects/xdotool/ You can use this external tool to achieve your goal. Le dim. 3 avr. 2022 ? 13:32, Bruce Steers a ?crit : > > > > On Sun, 3 Apr 2022 at 12:30, Bruce Steers wrote: >> >> >> >> On Sun, 3 Apr 2022 at 05:09, Shane wrote: >>> >>> Hi Everyone I'm trying to move the mouse automaticallyon the desktop and >>> click. I can use "Mouse.Move" to move the mouse on the desktop but is >>> there anyway to click? >>> >>> Cheers Shane >> >> >> I don't think it's possible with gambas directly. >> it is possible if you load in xlib library >> I've never done it but here's a discussion i found on how to use xlib to do it , you'd just need to convert the code to gambas. > > > oops forgot the link... > https://www.linuxquestions.org/questions/programming-9/simulating-a-mouse-click-594576/ > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From brian at westwoodsvcs.com Sun Apr 3 22:09:04 2022 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 3 Apr 2022 13:09:04 -0700 (PDT) Subject: [Gambas-user] QT gui no longer working correctly! I think... Message-ID: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> Using mint 20.3 Creating forms from within my app dynamically. setting the env to gtk looks like this and works correctly: Setting the env to qt looks like this and does not respond to any mouse inputs. All text is shifted to the left off screen. Has anyone else seen this behavior. "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 -------------- A non-text attachment was scrubbed... Name: 11933142 Type: image/png Size: 4749 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 11992648.5 Type: image/png Size: 5294 bytes Desc: not available URL: From bsteers4 at gmail.com Mon Apr 4 11:55:41 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Apr 2022 10:55:41 +0100 Subject: [Gambas-user] Window placement In-Reply-To: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> References: <150db85b-2167-4497-982b-536f42d9d79f@yahoo.com> Message-ID: On Fri, 1 Apr 2022 at 00:19, Steve G via User wrote: > Me.top=5 > Me left=5 > > I've been racking my brain trying to figure out why the above code does > not want to work. Yes it's been in here before. I have more information. It > seems to only affect existing projects. Those that were made with version > 3.15. When I open them up in the version 3.16 I have this problem. However > if I create a brand new project in the version 3.16 and set all of the > libraries and properties the same I do not have the same problem. Could > this be something that only affects projects written in earlier versions? > Some files in the bytecode dir (the .gambas dir) may simply be not recompiled. I have had problems in the past using the same program across different gambas versions because of this, only modified source code would recompile their bytecode files but not all. There was 2 simple solutions... 1. load the project into the IDE and press the "Compile all" button to force a recompile of all files in the .gambas dir. 2. if step 1 fails then just manually delete the .gambas folder, load project in ide and hit make exe again to recompile. Maybe that will help? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Apr 4 12:18:50 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Apr 2022 11:18:50 +0100 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On Sun, 3 Apr 2022 at 21:26, Brian G wrote: > Using mint 20.3 > Creating forms from within my app dynamically. > setting the env to gtk looks like this and works correctly: > Setting the env to qt looks like this and does not respond to any mouse > inputs. All text is shifted to the left off screen. > > Has anyone else seen this behavior. > I can reproduce that behavior if i do the following... Manually make a form with size 400x100 and do not set .Arrangement Then manually add a button with same size 400x100 Like your picture shows on QT there is a gap but not in GTK But if i set Arrangement = Arrange.Fill (or any other arrange setting than None) then no problem BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 11933142 Type: image/png Size: 4749 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 11992648.5 Type: image/png Size: 5294 bytes Desc: not available URL: From bsteers4 at gmail.com Mon Apr 4 12:34:17 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 4 Apr 2022 11:34:17 +0100 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On Mon, 4 Apr 2022 at 11:18, Bruce Steers wrote: > > > On Sun, 3 Apr 2022 at 21:26, Brian G wrote: > >> Using mint 20.3 >> Creating forms from within my app dynamically. >> setting the env to gtk looks like this and works correctly: >> Setting the env to qt looks like this and does not respond to any mouse >> inputs. All text is shifted to the left off screen. >> >> Has anyone else seen this behavior. >> > > I can reproduce that behavior if i do the following... > Manually make a form with size 400x100 and do not set .Arrangement > Then manually add a button with same size 400x100 > Like your picture shows on QT there is a gap but not in GTK > > But if i set Arrangement = Arrange.Fill (or any other arrange setting than > None) then no problem > Maybe it's a scaling issue? It seems to work when i make the button and do not set .Width / Height but use the ResizeScaled method... myForm = New Form myForm.W = 400 myForm.H = 100 b = New Button(myForm) b.ResizeScaled(400, 100) Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 11933142 Type: image/png Size: 4749 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 11992648.5 Type: image/png Size: 5294 bytes Desc: not available URL: From brian at westwoodsvcs.com Mon Apr 4 16:03:34 2022 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Mon, 04 Apr 2022 17:03:34 +0300 Subject: [Gambas-user] =?utf-8?q?QT_gui_no_longer_working_correctly!_I_th?= =?utf-8?b?aW5rLi4u?= In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1649081014.461954922@f26.my.com> Thanks Bruce, ?? I will make that change and see what happens. -- Thanks Brian G Monday, 04 April 2022, 03:35AM -07:00 from Bruce Steers bsteers4 at gmail.com : > > >On Mon, 4 Apr 2022 at 11:18, Bruce Steers < bsteers4 at gmail.com> wrote: >> >> >>On Sun, 3 Apr 2022 at 21:26, Brian G < brian at westwoodsvcs.com> wrote: >>>Using mint 20.3 >>>Creating forms from within my app dynamically. >>>setting the env to gtk looks like this and works correctly: >>>Setting the env to qt looks like this and does not respond to any mouse inputs. All text is shifted to the left off screen. >>> >>>Has anyone else seen this behavior. >> >>I can reproduce that behavior if i do the following... >>Manually make a form with size 400x100 and do not set .Arrangement >>Then manually add a button with same size 400x100 >>Like your picture shows on QT there is a gap but not in GTK >> >>But if i set Arrangement = Arrange.Fill (or any other arrange setting than None) then no problem > >Maybe it's a scaling issue? > >It seems to work when i make the button and do not set .Width / Height but use the ResizeScaled method... > >myForm = New Form >myForm.W = 400 >myForm.H = 100 > >b = New Button(myForm) >b.ResizeScaled(400, 100) > >Respects >BruceS > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Apr 4 16:46:03 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 4 Apr 2022 10:46:03 -0400 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 4/4/22 06:18, Bruce Steers wrote: > > > On Sun, 3 Apr 2022 at 21:26, Brian G > wrote: > > Using mint 20.3 > Creating forms from within my app dynamically. > setting the env to gtk looks like this and works correctly: > Setting the env to qt looks like this and does not respond to any mouse inputs. All text is shifted to the left off screen. > > Has anyone else seen this behavior. > > > I can reproduce that behavior if i do the following... > Manually make a form with size 400x100 and do not set .Arrangement > Then manually add a button with same size 400x100 > Like your picture shows on QT there is a gap but not in GTK > > But if i set Arrangement = Arrange.Fill (or any other arrange setting than None) then no problem > > BruceS > I can confirm that this happens on Qt5 (on KDE Plasma desktop), but not on GTK3, with Arrangement.None. It is not only on manually created forms, though. It also occurs with a manually created button on FMain. Setting the button's X and Y properties to zero also alleviates the issue. -- Lee From simonlebon54 at yahoo.com Mon Apr 4 20:25:54 2022 From: simonlebon54 at yahoo.com (Steve G) Date: Mon, 04 Apr 2022 10:25:54 -0800 Subject: [Gambas-user] Re window placement In-Reply-To: References: Message-ID: <9c0c664f-565c-437d-b8c1-203182dc5cfd@yahoo.com> Message: 1 Date: Mon, 4 Apr 2022 10:55:41 +0100 From: Bruce Steers To: Gambas Mailing List Subject: Re: [Gambas-user] Window placement Message-ID: Content-Type: text/plain; charset="utf-8" On Fri, 1 Apr 2022 at 00:19, Steve G via User wrote: Me.top=5 Me left=5 I've been racking my brain trying to figure out why the above code does not want to work. Yes it's been in here before. I have more information. It seems to only affect existing projects. Those that were made with version 3.15. When I open them up in the version 3.16 I have this problem. However if I create a brand new project in the version 3.16 and set all of the libraries and properties the same I do not have the same problem. Could this be something that only affects projects written in earlier versions? Some files in the bytecode dir (the .gambas dir) may simply be not recompiled. I have had problems in the past using the same program across different gambas versions because of this, only modified source code would recompile their bytecode files but not all. There was 2 simple solutions... 1. load the project into the IDE and press the "Compile all" button to force a recompile of all files in the .gambas dir. 2. if step 1 fails then just manually delete the .gambas folder, load project in ide and hit make exe again to recompile. Maybe that will help? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: Thank you for the information. I tried both Solutions and no joy. I'm thinking I may just have to create a whole new project and do a lot of cut and paste unless somebody has a better idea. Actually please let's hope that there is another idea that works. That solution will take me a very long time and a lot of work ?Sent from TypeApp ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Apr 4 20:26:10 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Apr 2022 20:26:10 +0200 Subject: [Gambas-user] Release of Gambas 3.17.1 Message-ID: Hi, I have released Gambas 3.17.1 to fix some bugs of Gambas 3.17.0. You can download it at: https://gitlab.com/gambas/gambas/-/archive/3.17.1/gambas-3.17.1.tar.bz2 to check it before I update the Ubuntu PPA packages and make it official. The changelog is at: https://gambaswiki.org/wiki/doc/release/3.17.1. Report any problem as usual. Enjoy! -- Beno?t Minisini From olivier.cruilles at yahoo.fr Mon Apr 4 22:14:57 2022 From: olivier.cruilles at yahoo.fr (Linus) Date: Mon, 4 Apr 2022 16:14:57 -0400 Subject: [Gambas-user] Release of Gambas 3.17.1 In-Reply-To: References: Message-ID: <8F03E12A-A278-492C-A106-7FA54FE913AE@yahoo.fr> Hi Benoit, Great, thank you. It seems that the version in the title in the wiki still at 3.16.1 Olivier Cruilles > Le 4 avr. 2022 ? 14:26, Beno?t Minisini a ?crit : > > Hi, > > I have released Gambas 3.17.1 to fix some bugs of Gambas 3.17.0. > > You can download it at: > > https://gitlab.com/gambas/gambas/-/archive/3.17.1/gambas-3.17.1.tar.bz2 > > to check it before I update the Ubuntu PPA packages and make it official. > > The changelog is at: > > https://gambaswiki.org/wiki/doc/release/3.17.1. > > Report any problem as usual. > > Enjoy! > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Mon Apr 4 22:01:34 2022 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 4 Apr 2022 13:01:34 -0700 (PDT) Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: <1211625126.39991.1649092863513.JavaMail.zimbra@westwoodsvcs.com> References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1211625126.39991.1649092863513.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1735063997.40248.1649102494165.JavaMail.zimbra@westwoodsvcs.com> > > Ok, after testing. > > Bruces fixes, fix the display to be correct. > > But, none of the windows in my app receive any click/dblclick or key events, but > they do receive the resize, hide events, but not the close event. > > When I create a simple test app I can not get it to repeat the same behavior! > > It appear that in my app the QT wait in some cases does not see the internal > events and process them. > > This just started happening in the few days to a week or so, it is very > frustrating as my app is broken suddenly that has been working before. > > I will have to dig into the qt component to see what was changed I guess. > > I will report the bug as soon as I can nail down just what is failing. > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Apr 4, 2022, at 7:46 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > >> On 4/4/22 06:18, Bruce Steers wrote: >>> >>> >>> On Sun, 3 Apr 2022 at 21:26, Brian G >> > wrote: >>> >>> Using mint 20.3 >>> Creating forms from within my app dynamically. >>> setting the env to gtk looks like this and works correctly: >>> Setting the env to qt looks like this and does not respond to any mouse inputs. >>> All text is shifted to the left off screen. >>> >>> Has anyone else seen this behavior. >>> >>> >>> I can reproduce that behavior if i do the following... >>> Manually make a form with size 400x100 and do not set .Arrangement >>> Then manually add a button with same size 400x100 >>> Like your picture shows on QT there is a gap but not in GTK >>> >>> But if i set Arrangement = Arrange.Fill (or any other arrange setting than None) >>> then no problem >>> >>> BruceS >>> >> >> I can confirm that this happens on Qt5 (on KDE Plasma desktop), but not on GTK3, >> with Arrangement.None. It is not only on >> manually created forms, though. It also occurs with a manually created button on >> FMain. >> >> Setting the button's X and Y properties to zero also alleviates the issue. >> >> >> -- >> Lee >> Ok here is the outcome of the testing. gtk, processes io on each wait call. QT does not process io on each wait call unless one adds a wait time : wait 0.01 or : wait next. The wait documentation "now: seems to indicate wait does not process any IO(kb or mouse any more) For my realtime apps I can Not do this....... Up until this week or so, qt has also processed io ..... So most of my apps are real time, they do stuff and occasionally call wait to check for io. So all my apps seem to be f..ed for qt.... When did this happen and why it is crazy ? Is there some way in my code to check if io (mouse or keyboard) is waiting process??/? It is a little disturbing I think. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 4, 2022, at 10:21 AM, Brian G brian at westwoodsvcs.com wrote: > HI, > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Mon Apr 4 22:19:58 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Apr 2022 22:19:58 +0200 Subject: [Gambas-user] Release of Gambas 3.17.1 In-Reply-To: <8F03E12A-A278-492C-A106-7FA54FE913AE@yahoo.fr> References: <8F03E12A-A278-492C-A106-7FA54FE913AE@yahoo.fr> Message-ID: Le 04/04/2022 ? 22:14, Linus via User a ?crit?: > Hi Benoit, > > Great, thank you. > > It seems that the version in the title in the wiki still at 3.16.1 > > > Olivier Cruilles > Fixed! -- Beno?t Minisini From g4mba5 at gmail.com Mon Apr 4 22:23:14 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Apr 2022 22:23:14 +0200 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: <1735063997.40248.1649102494165.JavaMail.zimbra@westwoodsvcs.com> References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1211625126.39991.1649092863513.JavaMail.zimbra@westwoodsvcs.com> <1735063997.40248.1649102494165.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 04/04/2022 ? 22:01, Brian G a ?crit?: > > Ok here is the outcome of the testing. > > gtk, processes io on each wait call. > > QT does not process io on each wait call unless one adds a wait time : wait 0.01 or : wait next. > The wait documentation "now: seems to indicate wait does not process any IO(kb or mouse any more) > > For my realtime apps I can Not do this....... > > Up until this week or so, qt has also processed io ..... > > So most of my apps are real time, they do stuff and occasionally call wait to check for io. > > So all my apps seem to be f..ed for qt.... > > When did this happen and why it is crazy ? > > Is there some way in my code to check if io (mouse or keyboard) is waiting process??/? > > It is a little disturbing I think. > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G No idea what you are talking about... WAIT without argument calls the event loop, except that in that specific syntax GUI components must disable the process of -input- events. Otherwise you must WAIT NEXT Or WAIT with a specific timeout. If the GTK+ component does process input event using the WAIT syntax, it's a bug. -- Beno?t Minisini From brian at westwoodsvcs.com Mon Apr 4 19:21:03 2022 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 4 Apr 2022 10:21:03 -0700 (PDT) Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1211625126.39991.1649092863513.JavaMail.zimbra@westwoodsvcs.com> HI, Ok, after testing. Bruces fixes, fix the display to be correct. But, none of the windows in my app receive any click/dblclick or key events, but they do receive the resize, hide events, but not the close event. When I create a simple test app I can not get it to repeat the same behavior! It appear that in my app the QT wait in some cases does not see the internal events and process them. This just started happening in the few days to a week or so, it is very frustrating as my app is broken suddenly that has been working before. I will have to dig into the qt component to see what was changed I guess. I will report the bug as soon as I can nail down just what is failing. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 4, 2022, at 7:46 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 4/4/22 06:18, Bruce Steers wrote: >> >> >> On Sun, 3 Apr 2022 at 21:26, Brian G > > wrote: >> >> Using mint 20.3 >> Creating forms from within my app dynamically. >> setting the env to gtk looks like this and works correctly: >> Setting the env to qt looks like this and does not respond to any mouse inputs. >> All text is shifted to the left off screen. >> >> Has anyone else seen this behavior. >> >> >> I can reproduce that behavior if i do the following... >> Manually make a form with size 400x100 and do not set .Arrangement >> Then manually add a button with same size 400x100 >> Like your picture shows on QT there is a gap but not in GTK >> >> But if i set Arrangement = Arrange.Fill (or any other arrange setting than None) >> then no problem >> >> BruceS >> > > I can confirm that this happens on Qt5 (on KDE Plasma desktop), but not on GTK3, > with Arrangement.None. It is not only on > manually created forms, though. It also occurs with a manually created button on > FMain. > > Setting the button's X and Y properties to zero also alleviates the issue. > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Tue Apr 5 01:03:35 2022 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Tue, 05 Apr 2022 02:03:35 +0300 Subject: [Gambas-user] =?utf-8?q?QT_gui_no_longer_working_correctly!_I_th?= =?utf-8?b?aW5rLi4u?= In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1735063997.40248.1649102494165.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1649113415.217051430@f1.my.com> It work as expected last week, both gtk and qt. What changed -- Thanks Brian G Monday, 04 April 2022, 01:24PM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 04/04/2022 ? 22:01, Brian G a ?crit?: > > Ok here is the outcome of the testing. > > gtk, processes io on each wait call. > > QT does not process io on each wait call unless one adds a wait time : wait 0.01 or : wait next. > The wait documentation "now: seems to indicate wait does not process any IO(kb or mouse any more) > > For my realtime apps I can Not do this....... > > Up until this week or so, qt has also processed io ..... > > So most of my apps are real time, they do stuff and occasionally call wait to check for io. > > So all my apps seem to be f..ed for qt.... > > When did this happen and why it is crazy ? > > Is there some way in my code to check if io (mouse or keyboard) is waiting process??/? > > It is a little disturbing I think. > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > >No idea what you are talking about... > >WAIT without argument calls the event loop, except that in that specific >syntax GUI components must disable the process of -input- events. > >Otherwise you must WAIT NEXT Or WAIT with a specific timeout. > >If the GTK+ component does process input event using the WAIT syntax, >it's a bug. > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Apr 5 01:06:49 2022 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Tue, 05 Apr 2022 02:06:49 +0300 Subject: [Gambas-user] =?utf-8?q?QT_gui_no_longer_working_correctly!_I_th?= =?utf-8?b?aW5rLi4u?= In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1735063997.40248.1649102494165.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1649113609.138004797@f41.my.com> If there is no way to check for key or mouse io without a wait of some sort. Is there some way to do that Ben? -- Thanks Brian G Monday, 04 April 2022, 01:24PM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 04/04/2022 ? 22:01, Brian G a ?crit?: > > Ok here is the outcome of the testing. > > gtk, processes io on each wait call. > > QT does not process io on each wait call unless one adds a wait time : wait 0.01 or : wait next. > The wait documentation "now: seems to indicate wait does not process any IO(kb or mouse any more) > > For my realtime apps I can Not do this....... > > Up until this week or so, qt has also processed io ..... > > So most of my apps are real time, they do stuff and occasionally call wait to check for io. > > So all my apps seem to be f..ed for qt.... > > When did this happen and why it is crazy ? > > Is there some way in my code to check if io (mouse or keyboard) is waiting process??/? > > It is a little disturbing I think. > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > >No idea what you are talking about... > >WAIT without argument calls the event loop, except that in that specific >syntax GUI components must disable the process of -input- events. > >Otherwise you must WAIT NEXT Or WAIT with a specific timeout. > >If the GTK+ component does process input event using the WAIT syntax, >it's a bug. > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 5 01:19:43 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Apr 2022 01:19:43 +0200 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: <1649113415.217051430@f1.my.com> References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1735063997.40248.1649102494165.JavaMail.zimbra@westwoodsvcs.com> <1649113415.217051430@f1.my.com> Message-ID: Le 05/04/2022 ? 01:03, Brian G a ?crit?: > It work as expected last week, both gtk and qt. > What changed > > -- > Thanks > Brian G > Nothing changed in the GUI components last week and in anything related to the event loop. Check the git log. -- Beno?t Minisini From g4mba5 at gmail.com Tue Apr 5 01:21:29 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Apr 2022 01:21:29 +0200 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: <1649113609.138004797@f41.my.com> References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1735063997.40248.1649102494165.JavaMail.zimbra@westwoodsvcs.com> <1649113609.138004797@f41.my.com> Message-ID: Le 05/04/2022 ? 01:06, Brian G a ?crit?: > If there is no way to check for key or mouse io without a wait of some sort. > > Is there some way to do that Ben? > > -- > Thanks > Brian G > If you think you need something like that, I think you are doing something incorrectly. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Tue Apr 5 01:52:27 2022 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Tue, 05 Apr 2022 02:52:27 +0300 Subject: [Gambas-user] =?utf-8?q?QT_gui_no_longer_working_correctly!_I_th?= =?utf-8?b?aW5rLi4u?= In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1649113609.138004797@f41.my.com> Message-ID: <1649116347.809554032@f32.my.com> I have applications that execute continuously, and only check the io when not busy. Why did you change the interface. For wait. The application worked correctly last week, I have not changed it at all. And does not run this week in Qt. I urge you to please change it back to checking for io except. Please And I can assure you that there is a need for that as not every application is human interface driven. But does require input... -- Thanks Brian G Monday, 04 April 2022, 04:22PM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 05/04/2022 ? 01:06, Brian G a ?crit?: > If there is no way to check for key or mouse io without a wait of some sort. > > Is there some way to do that Ben? > > -- > Thanks > Brian G > > >If you think you need something like that, I think you are doing >something incorrectly. > >Regards, > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 5 02:01:52 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Apr 2022 02:01:52 +0200 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: <1649116347.809554032@f32.my.com> References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1649113609.138004797@f41.my.com> <1649116347.809554032@f32.my.com> Message-ID: Le 05/04/2022 ? 01:52, Brian G a ?crit?: > I have applications that execute continuously, and only check the io > when not busy. > > Why did you change the interface. For wait. The application worked > correctly last week, I have not changed it at all. And does not run this > week in Qt. > > I urge you to please change it back to checking for io except. Please > > And I can assure you that there is a need for that as not every > application is human interface driven. > > But does require input... > > -- > Thanks > Brian G > As I told you, nothing changed related to the management of the event loop, the interpreter, and the GUI event loop since the release of 3.17.0. So your problem must come from something else. -- Beno?t Minisini From brian at westwoodsvcs.com Tue Apr 5 11:04:08 2022 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Tue, 05 Apr 2022 12:04:08 +0300 Subject: [Gambas-user] =?utf-8?q?QT_gui_no_longer_working_correctly!_I_th?= =?utf-8?b?aW5rLi4u?= In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1649116347.809554032@f32.my.com> Message-ID: <1649149448.508648545@f38.my.com> No, the problem comes from that change. I tracked it down completely I believe. I guess I did not regression test since 3.17 was released, that is? my bad. I have created a test project that replicated the issue. That change pretty much renders gambas useless for anything other than direct gui usage there is no way to process io in computationally intensive applications that need to also monitor user io. But can not afford long delays in processing them. Such as wait 0.01 and absolutely can not do a wait next. I am frustrated by this change. Much of my work now fails. I guess I should have been paying more attention. Since this change has made it appear to be? impossible to programmatically manage io efficiently. Have you or can? provided another way to achieve this inside a gui application. io in this case means user input , keyboard and mouse. The apps currently do a 'wait' to allow the GUI to function every few milliseconds based on a timer. The user still sees a functional GUI. -- Thanks Brian G Monday, 04 April 2022, 05:02PM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 05/04/2022 ? 01:52, Brian G a ?crit?: > I have applications that execute continuously, and only check the io > when not busy. > > Why did you change the interface. For wait. The application worked > correctly last week, I have not changed it at all. And does not run this > week in Qt. > > I urge you to please change it back to checking for io except. Please > > And I can assure you that there is a need for that as not every > application is human interface driven. > > But does require input... > > -- > Thanks > Brian G > > >As I told you, nothing changed related to the management of the event >loop, the interpreter, and the GUI event loop since the release of 3.17.0. > >So your problem must come from something else. > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Apr 5 11:13:51 2022 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Tue, 05 Apr 2022 12:13:51 +0300 Subject: [Gambas-user] =?utf-8?q?QT_gui_no_longer_working_correctly!_I_th?= =?utf-8?b?aW5rLi4u?= In-Reply-To: References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1649116347.809554032@f32.my.com> Message-ID: <1649150031.914862229@f33.my.com> Sorry forgot to say, the timer is just a counter in the apps, when it reaches a certain value. The wait is triggered. This happens every few milliseconds. -- Thanks Brian G Monday, 04 April 2022, 05:02PM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 05/04/2022 ? 01:52, Brian G a ?crit?: > I have applications that execute continuously, and only check the io > when not busy. > > Why did you change the interface. For wait. The application worked > correctly last week, I have not changed it at all. And does not run this > week in Qt. > > I urge you to please change it back to checking for io except. Please > > And I can assure you that there is a need for that as not every > application is human interface driven. > > But does require input... > > -- > Thanks > Brian G > > >As I told you, nothing changed related to the management of the event >loop, the interpreter, and the GUI event loop since the release of 3.17.0. > >So your problem must come from something else. > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 5 11:23:27 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Apr 2022 11:23:27 +0200 Subject: [Gambas-user] QT gui no longer working correctly! I think... In-Reply-To: <1649149448.508648545@f38.my.com> References: <313714219.39729.1649016544776.JavaMail.zimbra@westwoodsvcs.com> <1649116347.809554032@f32.my.com> <1649149448.508648545@f38.my.com> Message-ID: <6430e2fb-0570-63a1-a028-7abc55acaaac@gmail.com> Le 05/04/2022 ? 11:04, Brian G a ?crit?: > No, the problem comes from that change. I tracked it down completely I > believe. I guess I did not regression test since 3.17 was released, that > is? my bad. > > I have created a test project that replicated the issue. > > That change pretty much renders gambas useless for anything other than > direct gui usage there is no way to process io in computationally > intensive applications that need to also monitor user io. But can not > afford long delays in processing them. Such as wait 0.01 and absolutely > can not do a wait next. > > I am frustrated by this change. Much of my work now fails. I guess I > should have been paying more attention. > > Since this change has made it appear to be? impossible to > programmatically manage io efficiently. Have you or can? provided > another way to achieve this inside a gui application. > > io in this case means user input , keyboard and mouse. > > The apps currently do a 'wait' to allow the GUI to function every few > milliseconds based on a timer. The user still sees a functional GUI. > > -- > Thanks > Brian G > So it's not a change from the last week (how could it be), but older than that. Can you create an issue on the bugtracker with the test project that replicates the issue? -- Beno?t Minisini From bagonergi at gmail.com Tue Apr 5 16:00:34 2022 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 Apr 2022 16:00:34 +0200 Subject: [Gambas-user] desktop mouse In-Reply-To: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: Il giorno dom 3 apr 2022 alle ore 06:09 Shane ha scritto: > Hi Everyone I'm trying to move the mouse automaticallyon the desktop and > click. I can use "Mouse.Move" to move the mouse on the desktop but is > there anyway to click? > > Cheers Shane > Hi Shane, I don't know if this is what you want, but if there is at least one 'link', 'launcher', folder? on the desktop that is not 'home' and you create an executable, put it on the desktop and run it.... I copied from Fabien and vuott's codes ;-) '----------------------------------- Private $hPicture As Picture Private hDrawing As DrawingArea Private hTimer As Timer Private $fStartX As Float Private $fStartY As Float Private $fEndX As Float Private $fEndY As Float Private $aNames As String[] Public Sub Form_KeyPress() If Key.Code = Key.Esc Then Me.Close End Public Sub Form_Open() Dim sNames As String Dim aPoints As Float[] = [6, 2.25, 26, 17.25, 20.5, 20.75, 24.25, 27.75, 19.25, 30.5, 15.25, 23.75, 9.25, 26.75, 5.75, 2.25] $hPicture = New Picture(32, 32, True) With Paint .Begin($hPicture) .Brush = .Color(Color.Green) .Polygon(aPoints) .Fill .End End With With Me .Border = False .Width = Screen.AvailableWidth .Height = Screen.AvailableHeight .Arrangement = Arrange.Vertical .SkipTaskbar = True '.Tracking = True ' for mouse use .Transparent = True End With $fStartX = Me.W - 64 $fStartY = Me.H - 64 With hDrawing = New DrawingArea(Me) As "DrawingArea1" .Expand = True .Refresh End With Shell "gio list '" & Desktop.Path & "'" To sNames If sNames Then $aNames = Split(sNames, "\n", Null, True) For i As Integer = 0 To $aNames.Max Print $aNames[i] Next Shell "gio info '" & Desktop.Path &/ $aNames[$aNames.Max] & "'" To sNames If sNames Then $fEndX = Val(Scan(sNames, "*icon-position: *,*\n*")[1]) $fEndY = Val(Scan(sNames, "*icon-position: *,*\n*")[2]) Else Message.Warning(("Unable to continue")) Me.Close Endif With hTimer = New Timer(5) As "Timer1" .Start End With Else Message.Warning(("Unable to continue")) Me.Close Endif End Public Sub DrawingArea1_Draw() Paint.Begin(hDrawing) Paint.DrawPicture($hPicture, $fStartX, $fStartY, 32, 32) Paint.Fill() Paint.End End Public Sub Timer1_Timer() Dec $fStartY Dec $fStartX Dec $fStartX hDrawing.Refresh If $fStartY <= $fEndY Then $fStartY = $fEndY If $fStartX <= $fEndX Then $fStartX = $fEndX If $fStartY <= $fEndY And $fStartX <= $fEndX Then hTimer.Stop Shell "gio open '" & Desktop.Path &/ $aNames[$aNames.Max] & "'" Me.Close Endif End '-------------------------- Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Apr 5 17:01:07 2022 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 Apr 2022 17:01:07 +0200 Subject: [Gambas-user] desktop mouse In-Reply-To: References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: Il giorno mar 5 apr 2022 alle ore 16:00 Gianluigi ha scritto: > > > Il giorno dom 3 apr 2022 alle ore 06:09 Shane ha > scritto: > >> Hi Everyone I'm trying to move the mouse automaticallyon the desktop and >> click. I can use "Mouse.Move" to move the mouse on the desktop but is >> there anyway to click? >> >> Cheers Shane >> > > Hi Shane, > I don't know if this is what you want, but if there is at least one > 'link', 'launcher', folder? on the desktop that is not 'home' and you > create an executable, put it on the desktop and run it.... > > I copied from Fabien and vuott's codes ;-) > '----------------------------------- > Private $hPicture As Picture > Private hDrawing As DrawingArea > Private hTimer As Timer > Private $fStartX As Float > Private $fStartY As Float > Private $fEndX As Float > Private $fEndY As Float > Private $aNames As String[] > > Public Sub Form_KeyPress() > > If Key.Code = Key.Esc Then Me.Close > > End > > Public Sub Form_Open() > > Dim sNames As String > Dim aPoints As Float[] = [6, 2.25, 26, 17.25, 20.5, 20.75, 24.25, 27.75, > 19.25, 30.5, 15.25, 23.75, 9.25, 26.75, 5.75, 2.25] > > $hPicture = New Picture(32, 32, True) > With Paint > .Begin($hPicture) > .Brush = .Color(Color.Green) > .Polygon(aPoints) > .Fill > .End > End With > > With Me > .Border = False > .Width = Screen.AvailableWidth > .Height = Screen.AvailableHeight > .Arrangement = Arrange.Vertical > .SkipTaskbar = True > '.Tracking = True ' for mouse use > .Transparent = True > End With > $fStartX = Me.W - 64 > $fStartY = Me.H - 64 > With hDrawing = New DrawingArea(Me) As "DrawingArea1" > .Expand = True > .Refresh > End With > > Shell "gio list '" & Desktop.Path & "'" To sNames > If sNames Then > $aNames = Split(sNames, "\n", Null, True) > For i As Integer = 0 To $aNames.Max > Print $aNames[i] > Next > Shell "gio info '" & Desktop.Path &/ $aNames[$aNames.Max] & "'" To > sNames > If sNames Then > $fEndX = Val(Scan(sNames, "*icon-position: *,*\n*")[1]) > $fEndY = Val(Scan(sNames, "*icon-position: *,*\n*")[2]) > Else > Message.Warning(("Unable to continue")) > Me.Close > Endif > With hTimer = New Timer(5) As "Timer1" > .Start > End With > Else > Message.Warning(("Unable to continue")) > Me.Close > Endif > > End > > Public Sub DrawingArea1_Draw() > > Paint.Begin(hDrawing) > Paint.DrawPicture($hPicture, $fStartX, $fStartY, 32, 32) > Paint.Fill() > Paint.End > > End > > Public Sub Timer1_Timer() > > Dec $fStartY > Dec $fStartX > Dec $fStartX > hDrawing.Refresh > If $fStartY <= $fEndY Then $fStartY = $fEndY > If $fStartX <= $fEndX Then $fStartX = $fEndX > If $fStartY <= $fEndY And $fStartX <= $fEndX Then > hTimer.Stop > Shell "gio open '" & Desktop.Path &/ $aNames[$aNames.Max] & "'" > Me.Close > Endif > > End > '-------------------------- > Sorry, I forgot to mention that you need to check the gb.desktop component > Regards > Gianluigi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Apr 5 17:28:28 2022 From: adamnt42 at gmail.com (bb) Date: Wed, 06 Apr 2022 00:58:28 +0930 Subject: [Gambas-user] desktop mouse In-Reply-To: References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: <0a121055a53dccd98904dc97b85636cf35923a36.camel@gmail.com> Hi Gianluigi, I don't believe this is what he is after. It looks like it's an attempt at desktop automation. In other words, move the mouse to somewhere known on the desktop plane and then execute a click at that position. There are a couple of points that I don't think are clear: 1) No solution will work on a Wayland based desktop as wayland is designed to specifically prevent this happening. 2) It can therefore only be possible under X. 3) Getting the X server to accept a click (or any other hardware signal for that matter) from a running program instead of the hardware is notoriously difficult. It is also from my experience, very X version dependant. BruceS' suggested approach is probably the best option, but I would not guarantee the result on any xlib version, only the one that the interface was coded for. 4) The xevent tracing utility "xev" can be used to illustrate the complexity of the issue. best regards bruce From bagonergi at gmail.com Tue Apr 5 18:00:57 2022 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 Apr 2022 18:00:57 +0200 Subject: [Gambas-user] desktop mouse In-Reply-To: <0a121055a53dccd98904dc97b85636cf35923a36.camel@gmail.com> References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> <0a121055a53dccd98904dc97b85636cf35923a36.camel@gmail.com> Message-ID: Il giorno mar 5 apr 2022 alle ore 17:29 bb ha scritto: > > Hi Gianluigi, > > I don't believe this is what he is after. It looks like it's an attempt > at desktop automation. In other words, move the mouse to somewhere > known on the desktop plane and then execute a click at that position. > > There are a couple of points that I don't think are clear: > > 1) No solution will work on a Wayland based desktop as wayland is > designed to specifically prevent this happening. > 2) It can therefore only be possible under X. > 3) Getting the X server to accept a click (or any other hardware signal > for that matter) from a running program instead of the hardware is > notoriously difficult. It is also from my experience, very X version > dependant. BruceS' suggested approach is probably the best option, but > I would not guarantee the result on any xlib version, only the one that > the interface was coded for. > 4) The xevent tracing utility "xev" can be used to illustrate the > complexity of the issue. > > best regards > bruce > > Hi Bruce B, where do you get your certainty from? It also works here on Wayland. This is a demonstration that, if one reasons about it, can work according to various needs. It reads all the links present on the desktop and stores their X and Y position but, if you want, you can store the rectangle too. I suggest you to study better :-D Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Apr 5 18:18:47 2022 From: adamnt42 at gmail.com (bb) Date: Wed, 06 Apr 2022 01:48:47 +0930 Subject: [Gambas-user] desktop mouse In-Reply-To: References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> <0a121055a53dccd98904dc97b85636cf35923a36.camel@gmail.com> Message-ID: <135fec95933692748820aa5a57e1bfaccff4e6d0.camel@gmail.com> On Tue, 2022-04-05 at 18:00 +0200, Gianluigi wrote: > Il giorno mar 5 apr 2022 alle ore 17:29 bb ha > scritto: > > > > > Hi Gianluigi, > > > > I don't believe this is what he is after. It looks like it's an > > attempt > > at desktop automation. In other words, move the mouse to somewhere > > known on the desktop plane and then execute a click at that > > position. > > > > There are a couple of points that I don't think are clear: > > > > 1) No solution will work on a Wayland based desktop as wayland is > > designed to specifically prevent this happening. > > 2) It can therefore only be possible under X. > > 3) Getting the X server to accept a click (or any other hardware > > signal > > for that matter) from a running program instead of the hardware is > > notoriously difficult. It is also from my experience, very X > > version > > dependant. BruceS' suggested approach is probably the best option, > > but > > I would not guarantee the result on any xlib version, only the one > > that > > the interface was coded for. > > 4) The xevent tracing utility "xev" can be used to illustrate the > > complexity of the issue. > > > > best regards > > bruce > > > > > Hi Bruce B, > > where do you get your certainty from? > It also works here on Wayland. > This is a demonstration that, if one reasons about it, can work > according > to various needs. > It reads all the links present on the desktop and stores their X and > Y > position but, if you want, you can store the rectangle too. > > I suggest you to study better :-D > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette?]---- OK might be out of date, but the original intent of wayland was to remedy security holes in X... LWN 2013 "Timoth?e divided up the discussion of security somewhat differently in this part of the presentation, beginning by talking about the security of input in Wayland/Weston. On this front, the new system is in good shape. Because Weston knows where applications are on the screen, it is able to decide which application should receive input events (this differs from the X server). This defeats key logging applications. Regarding integrity of input, the kernel limits access to the two main sources (/dev/input and /dev/uinput) to the root user only. Because Wayland/Weston does not (yet) support virtual keyboards it is not (yet) possible to forge input. (The topic of virtual keyboards was revisited later in the talk.) " https://lwn.net/Articles/517375/ b From bagonergi at gmail.com Tue Apr 5 18:35:22 2022 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 5 Apr 2022 18:35:22 +0200 Subject: [Gambas-user] desktop mouse In-Reply-To: <135fec95933692748820aa5a57e1bfaccff4e6d0.camel@gmail.com> References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> <0a121055a53dccd98904dc97b85636cf35923a36.camel@gmail.com> <135fec95933692748820aa5a57e1bfaccff4e6d0.camel@gmail.com> Message-ID: Il giorno mar 5 apr 2022 alle ore 18:19 bb ha scritto: > ... > OK might be out of date, but the original intent of wayland was to > remedy security holes in X... > > LWN 2013 > "Timoth?e divided up the discussion of security somewhat differently in > this part of the presentation, beginning by talking about the security > of input in Wayland/Weston. On this front, the new system is in good > shape. Because Weston knows where applications are on the screen, it is > able to decide which application should receive input events (this > differs from the X server). This defeats key logging applications. > Regarding integrity of input, the kernel limits access to the two main > sources (/dev/input and /dev/uinput) to the root user only. Because > Wayland/Weston does not (yet) support virtual keyboards it is not (yet) > possible to forge input. (The topic of virtual keyboards was revisited > later in the talk.) " > https://lwn.net/Articles/517375/ > > I am admired that everyone who responded to Shane understood what he is trying to do. Unfortunately, I didn't understand, but I tried to create something as a basis for discussion. If Shane can get me to understand as well, maybe this discussion can continue. If Shane doesn't need to open links on the desktop then I've just wasted my time. If a user puts a launcher to a program on their desktop for what reason should only root open it? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Tue Apr 5 18:27:29 2022 From: admin at allunix.ru (Admin) Date: Tue, 5 Apr 2022 23:27:29 +0700 Subject: [Gambas-user] desktop mouse In-Reply-To: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: I once needed to delete a bunch of files from one web interface, but there were a ton of pages, so I decided to write a quick program that will move mouse cursor to "select all", click, then to "delete", click, and to "next page", click I used mouse move, but since there is no gambas operator to click, I just used 'shell "xdotool click 1" wait', and problem was solved. Maybe that's what you are looking for. Dmitry. 03.04.2022 11:08, Shane ?????: > Hi Everyone I'm trying to move the mouse automaticallyon the desktop > and click. I can use "Mouse.Move"? to move the mouse on the desktop > but is there anyway to click? > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From bsteers4 at gmail.com Tue Apr 5 21:09:29 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 5 Apr 2022 20:09:29 +0100 Subject: [Gambas-user] desktop mouse In-Reply-To: References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> <0a121055a53dccd98904dc97b85636cf35923a36.camel@gmail.com> <135fec95933692748820aa5a57e1bfaccff4e6d0.camel@gmail.com> Message-ID: On Tue, 5 Apr 2022 at 17:37, Gianluigi wrote: > > > Il giorno mar 5 apr 2022 alle ore 18:19 bb ha > scritto: > >> ... >> OK might be out of date, but the original intent of wayland was to >> remedy security holes in X... >> >> LWN 2013 >> "Timoth?e divided up the discussion of security somewhat differently in >> this part of the presentation, beginning by talking about the security >> of input in Wayland/Weston. On this front, the new system is in good >> shape. Because Weston knows where applications are on the screen, it is >> able to decide which application should receive input events (this >> differs from the X server). This defeats key logging applications. >> Regarding integrity of input, the kernel limits access to the two main >> sources (/dev/input and /dev/uinput) to the root user only. Because >> Wayland/Weston does not (yet) support virtual keyboards it is not (yet) >> possible to forge input. (The topic of virtual keyboards was revisited >> later in the talk.) " >> https://lwn.net/Articles/517375/ >> >> > I am admired that everyone who responded to Shane understood what he is > trying to do. > Unfortunately, I didn't understand, but I tried to create something as a > basis for discussion. > If Shane can get me to understand as well, maybe this discussion can > continue. > If Shane doesn't need to open links on the desktop then I've just wasted > my time. > > If a user puts a launcher to a program on their desktop for what reason > should only root open it? > > Regards > Gianluigi > I understood , thanks for the admiration, i am rather awesome to be fair ? His message simply said he could mouse-move but wanted to mouse-click with gambas. I didn't have to time for assumptions. He replied privately to thank me for the xlib suggestion and said he would give it a go. I replied that the xdotool that Fabien pointed out from the discussion page could be a far simpler solution but adding libraries and their functions in gambas is worth figuring out as it can take your code to a whole new level. I could only guess as to what he has done or what his intent was.... ? But suffice to say he did respond just not to the group. So hopefully he figured it out. if not I'm sure he'll be back to further the discussion :) Well wishes all BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Apr 5 21:32:21 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 5 Apr 2022 20:32:21 +0100 Subject: [Gambas-user] desktop mouse In-Reply-To: References: <05283b87-8f12-8d91-3026-8e8433ca1b26@gmail.com> Message-ID: Well that's just much much much too easy ;) lol I was thinking more along the lines of adding SendClick(Mode As Integer) to the gb.desktop.x11 component ;) BruceS On Tue, 5 Apr 2022 at 17:48, Admin wrote: > I once needed to delete a bunch of files from one web interface, but > there were a ton of pages, so I decided to write a quick program that > will move mouse cursor to "select all", click, then to "delete", click, > and to "next page", click > I used mouse move, but since there is no gambas operator to click, I > just used 'shell "xdotool click 1" wait', and problem was solved. Maybe > that's what you are looking for. > > Dmitry. > > > 03.04.2022 11:08, Shane ?????: > > Hi Everyone I'm trying to move the mouse automaticallyon the desktop > > and click. I can use "Mouse.Move" to move the mouse on the desktop > > but is there anyway to click? > > > > Cheers Shane > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Apr 6 16:05:59 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 6 Apr 2022 16:05:59 +0200 Subject: [Gambas-user] Message.Question weird button focus Message-ID: Hi everybody, without change of Gambas itself (3.16.3 with QT5 on our machines) the behavior of Message.Question has changed in the last time. It cannot be seen any more which button has the focus. And before that change the first button had the focus by default and now it's the last one. This is quite bad because we all trust our muscle memory and now do a lot of things wrong ... Why did that happen? Any clue? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Wed Apr 6 17:48:39 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 6 Apr 2022 16:48:39 +0100 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: Message-ID: On Wed, 6 Apr 2022 at 15:06, Christof Thalhofer wrote: > Hi everybody, > > without change of Gambas itself (3.16.3 with QT5 on our machines) the > behavior of Message.Question has changed in the last time. > > It cannot be seen any more which button has the focus. And before that > change the first button had the focus by default and now it's the last one. > > This is quite bad because we all trust our muscle memory and now do a > lot of things wrong ... > > Why did that happen? Any clue? > Did you change theme? I found some widget themes did not show focus while others did, i even placed a bug report (bug 2005) but it was the themes not so much gambas, also it was gtk. Is it the same on all qt themes? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Apr 6 17:51:41 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 6 Apr 2022 16:51:41 +0100 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: Message-ID: On Wed, 6 Apr 2022 at 16:48, Bruce Steers wrote: > > > On Wed, 6 Apr 2022 at 15:06, Christof Thalhofer > wrote: > >> Hi everybody, >> >> without change of Gambas itself (3.16.3 with QT5 on our machines) the >> behavior of Message.Question has changed in the last time. >> >> It cannot be seen any more which button has the focus. And before that >> change the first button had the focus by default and now it's the last >> one. >> >> This is quite bad because we all trust our muscle memory and now do a >> lot of things wrong ... >> >> Why did that happen? Any clue? >> > > Did you change theme? > I found some widget themes did not show focus while others did, i even > placed a bug report (bug 2005) but it was the themes not so much gambas, > also it was gtk. > Is it the same on all qt themes? > > Bruce > PS i just did a quick test and there is no problem with my qt message focused button shows blue not grey. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Apr 6 18:21:34 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 6 Apr 2022 17:21:34 +0100 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: Message-ID: On Wed, 6 Apr 2022 at 16:51, Bruce Steers wrote: > > > On Wed, 6 Apr 2022 at 16:48, Bruce Steers wrote: > >> >> >> On Wed, 6 Apr 2022 at 15:06, Christof Thalhofer >> wrote: >> >>> Hi everybody, >>> >>> without change of Gambas itself (3.16.3 with QT5 on our machines) the >>> behavior of Message.Question has changed in the last time. >>> >>> It cannot be seen any more which button has the focus. And before that >>> change the first button had the focus by default and now it's the last >>> one. >>> >>> This is quite bad because we all trust our muscle memory and now do a >>> lot of things wrong ... >>> >>> Why did that happen? Any clue? >>> >> >> Did you change theme? >> I found some widget themes did not show focus while others did, i even >> placed a bug report (bug 2005) but it was the themes not so much gambas, >> also it was gtk. >> Is it the same on all qt themes? >> >> Bruce >> > > PS i just did a quick test and there is no problem with my qt message > focused button shows blue not grey. > I just tested all my qt themes and found focus shows different on many, better on breeze but i can not tell focus with cleanlooks theme, that's the only theme i see failing completely all others work to some extent. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Apr 7 13:39:00 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 7 Apr 2022 13:39:00 +0200 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: Message-ID: Am 06.04.22 um 16:05 schrieb Christof Thalhofer: > Hi everybody, > > without change of Gambas itself (3.16.3 with QT5 on our machines) the > behavior of Message.Question has changed in the last time. > > It cannot be seen any more which button has the focus. And before that > change the first button had the focus by default and now it's the last > one. > > This is quite bad because we all trust our muscle memory and now do a > lot of things wrong ... > > Why did that happen? Any clue? > > Alles Gute > > Christof Thalhofer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Some time ago, I had just the same question and Benoit promised to change it back with the next version. He said he would 1) change back to first button as default and 2) create a property to manage it as an option. Regards Rolf From chrisml at deganius.de Thu Apr 7 15:25:07 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 Apr 2022 15:25:07 +0200 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: Message-ID: <2f85d048-f3bb-a14d-c092-ca990e8b3c1e@deganius.de> Hi Bruce, Am 06.04.22 um 18:21 schrieb Bruce Steers: > Did you change theme? > I found some widget themes did not show focus while others did, > i even placed a bug report (bug 2005) but it was the themes not > so much gambas, also it was gtk. > Is it the same on all qt themes? > > Bruce > > > PS i just did a quick test and there is no problem with my qt > message focused button shows blue not grey. > > > I just tested all my qt themes and found focus shows different on many, > better on breeze > but i can not tell focus with cleanlooks theme, that's the only theme i > see failing completely > all others work to some extent. Thank you! No I did not change themes but now I tried. It does not matter which theme I choose. I always have the same effect. The effect is: Cannot see the focus of a button of Message.Question. The last button is the default one if I hit and it is also choosen, when I hit . The machine is running xfce. My program is a Gambas QT project, written and compiled in Gambas 3.16.3. I can choose themes with the program 'xfce4-appearance-settings', which affects how the desktop and the frames of the windows looks, but does not change the appearance of a my Gambas program ... I can also select a number of themes with 'qtconfig', but none of the themes I select change the appearance of the Gambas program ... I have no idea what happened and why the default focus is now wrong ... Alles Gute Christof Thalhofer -- [x] nail here for new monitor From adamnt42 at gmail.com Thu Apr 7 15:30:56 2022 From: adamnt42 at gmail.com (bb) Date: Thu, 07 Apr 2022 23:00:56 +0930 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: <2f85d048-f3bb-a14d-c092-ca990e8b3c1e@deganius.de> References: <2f85d048-f3bb-a14d-c092-ca990e8b3c1e@deganius.de> Message-ID: On Thu, 2022-04-07 at 15:25 +0200, Christof Thalhofer wrote: > Hi Bruce, > > Am 06.04.22 um 18:21 schrieb Bruce Steers: > > > ??????? Did you change theme? > > ??????? I found some widget themes did not show focus while others > > did, > > ??????? i even placed a bug report (bug 2005) but it was the themes > > not > > ??????? so much gambas, also it was gtk. > > ??????? Is it the same on all qt themes? > > > > ??????? Bruce > > > > > > ??? PS i just did a quick test and there is no problem with my qt > > ??? message focused button shows blue not grey. > > > > > > I just tested all my qt themes and found focus shows different on > > many, > > better on breeze > > but i can not tell focus with cleanlooks theme, that's the only > > theme i > > see failing completely > > all others work to some extent. > Thank you! No I did not change themes but now I tried. > > It does not matter which theme I choose. I always have the same > effect. > > The effect is: > > Cannot see the focus of a button of Message.Question. > The last button is the default one if I hit and it is > also choosen, when I hit . > > The machine is running xfce. My program is a Gambas QT project, > written > and compiled in Gambas 3.16.3. > > I can choose themes with the program 'xfce4-appearance-settings', > which > affects how the desktop and the frames of the windows looks, but does > not change the appearance of a my Gambas program ... > > I can also select a number of themes with 'qtconfig', but none of the > themes I select change the appearance of the Gambas program ... > > I have no idea what happened and why the default focus is now wrong > ... > > Alles Gute > > Christof Thalhofer > qt5ct may be needed. From bsteers4 at gmail.com Thu Apr 7 15:34:45 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 7 Apr 2022 14:34:45 +0100 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: <2f85d048-f3bb-a14d-c092-ca990e8b3c1e@deganius.de> References: <2f85d048-f3bb-a14d-c092-ca990e8b3c1e@deganius.de> Message-ID: On Thu, 7 Apr 2022 at 14:26, Christof Thalhofer wrote: > Hi Bruce, > > Am 06.04.22 um 18:21 schrieb Bruce Steers: > > > Did you change theme? > > I found some widget themes did not show focus while others did, > > i even placed a bug report (bug 2005) but it was the themes not > > so much gambas, also it was gtk. > > Is it the same on all qt themes? > > > > Bruce > > > > > > PS i just did a quick test and there is no problem with my qt > > message focused button shows blue not grey. > > > > > > I just tested all my qt themes and found focus shows different on many, > > better on breeze > > but i can not tell focus with cleanlooks theme, that's the only theme i > > see failing completely > > all others work to some extent. > Thank you! No I did not change themes but now I tried. > > It does not matter which theme I choose. I always have the same effect. > > The effect is: > > Cannot see the focus of a button of Message.Question. > The last button is the default one if I hit and it is > also choosen, when I hit . > > The machine is running xfce. My program is a Gambas QT project, written > and compiled in Gambas 3.16.3. > > I can choose themes with the program 'xfce4-appearance-settings', which > affects how the desktop and the frames of the windows looks, but does > not change the appearance of a my Gambas program ... > > I can also select a number of themes with 'qtconfig', but none of the > themes I select change the appearance of the Gambas program ... > > I have no idea what happened and why the default focus is now wrong ... > > Alles Gute > aah i use qt5ct Ben just did an update https://gitlab.com/gambas/gambas/-/commit/44159837bbe1cb71404e4a3915debc7835530eed that fixed cleanlooks for me. maybe it's fixed your trouble too? Cheers Ben :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Apr 7 15:39:08 2022 From: adamnt42 at gmail.com (bb) Date: Thu, 07 Apr 2022 23:09:08 +0930 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: <2f85d048-f3bb-a14d-c092-ca990e8b3c1e@deganius.de> Message-ID: <76d908bc88c2f78c0a53713d1e86880502702bad.camel@gmail.com> On Thu, 2022-04-07 at 14:34 +0100, Bruce Steers wrote: > On Thu, 7 Apr 2022 at 14:26, Christof Thalhofer > wrote: > > > Hi Bruce, > > > > Am 06.04.22 um 18:21 schrieb Bruce Steers: > > > > > ??????? Did you change theme? > > > ??????? I found some widget themes did not show focus while > > > others did, > > > ??????? i even placed a bug report (bug 2005) but it was the > > > themes not > > > ??????? so much gambas, also it was gtk. > > > ??????? Is it the same on all qt themes? > > > > > > ??????? Bruce > > > > > > > > > ??? PS i just did a quick test and there is no problem with my qt > > > ??? message focused button shows blue not grey. > > > > > > > > > I just tested all my qt themes and found focus shows different on > > > many, > > > better on breeze > > > but i can not tell focus with cleanlooks theme, that's the only > > > theme i > > > see failing completely > > > all others work to some extent. > > Thank you! No I did not change themes but now I tried. > > > > It does not matter which theme I choose. I always have the same > > effect. > > > > The effect is: > > > > Cannot see the focus of a button of Message.Question. > > The last button is the default one if I hit and it > > is > > also choosen, when I hit . > > > > The machine is running xfce. My program is a Gambas QT project, > > written > > and compiled in Gambas 3.16.3. > > > > I can choose themes with the program 'xfce4-appearance-settings', > > which > > affects how the desktop and the frames of the windows looks, but > > does > > not change the appearance of a my Gambas program ... > > > > I can also select a number of themes with 'qtconfig', but none of > > the > > themes I select change the appearance of the Gambas program ... > > > > I have no idea what happened and why the default focus is now wrong > > ... > > > > Alles Gute > > > > aah i use qt5ct > > Ben just did an update > https://gitlab.com/gambas/gambas/-/commit/44159837bbe1cb71404e4a3915debc7835530eed > that fixed cleanlooks for me. maybe it's fixed your trouble too? > > Cheers Ben :) > > BruceS > > ----[ http://gambaswiki.org/wiki/doc/netiquette?]---- When you think about it, QT5 is not looking at whether or not it is running on a desktop or a mobile platform. Therefore the desktop configuration or theme or whatever should not impact what is rendered. And if you dont like that idea, then consider Qt6 b From chrisml at deganius.de Thu Apr 7 16:13:50 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 Apr 2022 16:13:50 +0200 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: Message-ID: <893f4490-19fc-2826-4f36-a81c8afce802@deganius.de> Am 07.04.22 um 13:39 schrieb Rolf-Werner Eilert: > Some time ago, I had just the same question and Benoit promised to > change it back with the next version. He said he would 1) change back to > first button as default and 2) create a property to manage it as an option. Oh ok, now I remember ...that was 2019 ... as I introduced a fix in my libs regarding the Message class ... uuh ... and this broke now somehow. Oh god ... thanks for all the ideas to everybody! Alles Gute Christof Thalhofer -- [x] nail here for new monitor From chrisml at deganius.de Thu Apr 7 16:22:36 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 7 Apr 2022 16:22:36 +0200 Subject: [Gambas-user] Message.Question weird button focus In-Reply-To: References: <2f85d048-f3bb-a14d-c092-ca990e8b3c1e@deganius.de> Message-ID: Am 07.04.22 um 15:34 schrieb Bruce Steers: > aah i use qt5ct I didn't know that ... thanks for the hint. > Ben just did an update > https://gitlab.com/gambas/gambas/-/commit/44159837bbe1cb71404e4a3915debc7835530eed > > that fixed cleanlooks for me. maybe it's fixed your trouble too? I have to look at it ... but I think I have no time until next week. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From charlie at cogier.com Thu Apr 7 16:39:46 2022 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 7 Apr 2022 15:39:46 +0100 Subject: [Gambas-user] Gambas 3.17.1 Title Message-ID: <0268c43a-1877-877d-8994-d138a6f20dc4@cogier.com> Hi, Just a minor error with the stable version in the ppa: - Regards, Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas%203.17.1.png Type: image/png Size: 70426 bytes Desc: not available URL: From g4mba5 at gmail.com Thu Apr 7 17:17:22 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Apr 2022 17:17:22 +0200 Subject: [Gambas-user] Gambas 3.17.1 Title In-Reply-To: <0268c43a-1877-877d-8994-d138a6f20dc4@cogier.com> References: <0268c43a-1877-877d-8994-d138a6f20dc4@cogier.com> Message-ID: Le 07/04/2022 ? 16:39, Charlie Ogier a ?crit?: > Hi, > > Just a minor error with the stable version in the ppa: - > > > > Regards, > > Charlie > > What prints: gbx3 -e "Application.Version" ? -- Beno?t Minisini From hasanmerkit at outlook.com Thu Apr 7 19:43:27 2022 From: hasanmerkit at outlook.com (Hasan Merkit) Date: Thu, 7 Apr 2022 17:43:27 +0000 Subject: [Gambas-user] GTK4 Support? Message-ID: What about GTK4 support? Gambas3 is supporting GTK4? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Apr 8 00:47:14 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 7 Apr 2022 23:47:14 +0100 Subject: [Gambas-user] GTK4 Support? In-Reply-To: References: Message-ID: On Thu, 7 Apr 2022, 18:44 Hasan Merkit, wrote: > What about GTK4 support? Gambas3 is supporting GTK4? > Not yet. Gtk4 and qt6 are new and not on many distros yet. Gtk3 and qt5 should be enough for a while. BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Apr 8 00:48:44 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Apr 2022 00:48:44 +0200 Subject: [Gambas-user] Release of Gambas 3.17.2 Message-ID: <29ddf77a-9fbd-bc84-f6b1-cf44d700c5e0@gmail.com> Hi, I have just tagged the 3.17.2 release. It fixes a blocking regression in the IDE form editor, and a few other minor bugs. You can download it at: https://gitlab.com/gambas/gambas/-/archive/3.17.2/gambas-3.17.2.tar.bz2 The changelog is at: https://gambaswiki.org/wiki/doc/release/3.17.2 Ubuntu PPA packages will follow soon. Enjoy! -- Beno?t Minisini From t.lee.davidson at gmail.com Fri Apr 8 01:02:59 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 7 Apr 2022 19:02:59 -0400 Subject: [Gambas-user] Gambas 3.17.1 Title In-Reply-To: References: <0268c43a-1877-877d-8994-d138a6f20dc4@cogier.com> Message-ID: On 4/7/22 11:17, Beno?t Minisini wrote: > Le 07/04/2022 ? 16:39, Charlie Ogier a ?crit?: >> Hi, >> >> Just a minor error with the stable version in the ppa: - >> >> >> >> Regards, >> >> Charlie >> >> > > What prints: gbx3 -e "Application.Version" ? > My 3.17.1 stable from an openSUSE community repo says the same in the title. `gbx3 -e "Application.Version"` prints a blank line. `gbx3 --version` prints 3.17.1 -- Lee From g4mba5 at gmail.com Fri Apr 8 01:27:29 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Apr 2022 01:27:29 +0200 Subject: [Gambas-user] Gambas 3.17.1 Title In-Reply-To: References: <0268c43a-1877-877d-8994-d138a6f20dc4@cogier.com> Message-ID: <74a7bbe6-4276-9409-d9b7-7c6b4cf8ff31@gmail.com> Le 08/04/2022 ? 01:02, T Lee Davidson a ?crit?: > On 4/7/22 11:17, Beno?t Minisini wrote: >> Le 07/04/2022 ? 16:39, Charlie Ogier a ?crit?: >>> Hi, >>> >>> Just a minor error with the stable version in the ppa: - >>> >>> >>> >>> Regards, >>> >>> Charlie >>> >>> >> >> What prints: gbx3 -e "Application.Version" ? >> > > My 3.17.1 stable from an openSUSE community repo says the same in the > title. > > `gbx3 -e "Application.Version"` prints a blank line. > `gbx3 --version` prints 3.17.1 > > OK, I have understood the bug... Let's remove the 3.17.2 tag. :-/ -- Beno?t Minisini From g4mba5 at gmail.com Fri Apr 8 01:31:29 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Apr 2022 01:31:29 +0200 Subject: [Gambas-user] Release of Gambas 3.17.2 In-Reply-To: <29ddf77a-9fbd-bc84-f6b1-cf44d700c5e0@gmail.com> References: <29ddf77a-9fbd-bc84-f6b1-cf44d700c5e0@gmail.com> Message-ID: Le 08/04/2022 ? 00:48, Beno?t Minisini a ?crit?: > Hi, > > I have just tagged the 3.17.2 release. > > It fixes a blocking regression in the IDE form editor, and a few other > minor bugs. > > You can download it at: > > https://gitlab.com/gambas/gambas/-/archive/3.17.2/gambas-3.17.2.tar.bz2 > > The changelog is at: > > https://gambaswiki.org/wiki/doc/release/3.17.2 > > Ubuntu PPA packages will follow soon. > > Enjoy! > I have just removed the 3.17.2 tag, because I have understood where a new regression came from. Sorry! -- Beno?t Minisini From g4mba5 at gmail.com Fri Apr 8 02:37:07 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Apr 2022 02:37:07 +0200 Subject: [Gambas-user] Release of Gambas 3.17.2 In-Reply-To: References: <29ddf77a-9fbd-bc84-f6b1-cf44d700c5e0@gmail.com> Message-ID: Le 08/04/2022 ? 01:31, Beno?t Minisini a ?crit?: > Le 08/04/2022 ? 00:48, Beno?t Minisini a ?crit?: >> Hi, >> >> I have just tagged the 3.17.2 release. >> >> It fixes a blocking regression in the IDE form editor, and a few other >> minor bugs. >> >> You can download it at: >> >> https://gitlab.com/gambas/gambas/-/archive/3.17.2/gambas-3.17.2.tar.bz2 >> >> The changelog is at: >> >> https://gambaswiki.org/wiki/doc/release/3.17.2 >> >> Ubuntu PPA packages will follow soon. >> >> Enjoy! >> > > I have just removed the 3.17.2 tag, because I have understood where a > new regression came from. > > Sorry! > The regression has been fixed and backported. The 3.17.2 tag is available again! Regards, -- Beno?t Minisini From chrisml at deganius.de Fri Apr 8 08:45:44 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 8 Apr 2022 08:45:44 +0200 Subject: [Gambas-user] Release of Gambas 3.17.2 In-Reply-To: References: <29ddf77a-9fbd-bc84-f6b1-cf44d700c5e0@gmail.com> Message-ID: Am 08.04.22 um 02:37 schrieb Beno?t Minisini: > The regression has been fixed and backported. The 3.17.2 tag is > available again! Looks good AFAICS, thank you very much! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Fri Apr 8 12:07:55 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Apr 2022 12:07:55 +0200 Subject: [Gambas-user] [CRASH REPORT] arraysavingtest2 In-Reply-To: <32740580-86a0-aae3-dad1-9a27aef61461@gmail.com> References: <32740580-86a0-aae3-dad1-9a27aef61461@gmail.com> Message-ID: Le 08/04/2022 ? 12:03, Ian Caldwell a ?crit?: > *Hello,Please disregard my previous message i was doing something a bit > stupid could be down to me................Ian* Not necessarily. An interpreter crash is usually a bug, and if you can explain me how I can reproduce the crash, I may fix that bug. > > how ever i cannot get gambas to read a file as an array of integers or > an array of strings it appears to write them as? the correct object(array) I don't understand what you said. Reading and writing binary data of arrays of simple datatypes should not be a problem. Regards, -- Beno?t Minisini From charlie at cogier.com Sat Apr 9 18:03:12 2022 From: charlie at cogier.com (Charlie Ogier) Date: Sat, 9 Apr 2022 17:03:12 +0100 Subject: [Gambas-user] Menu shortcut keys Message-ID: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Hi, I am trying to program a shortcut key for a menu item but all I seem to be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see away to add a letter. Am I missing something? Thanks, Charlie From adamnt42 at gmail.com Sat Apr 9 18:31:43 2022 From: adamnt42 at gmail.com (bb) Date: Sun, 10 Apr 2022 02:01:43 +0930 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: On Sat, 2022-04-09 at 17:03 +0100, Charlie Ogier wrote: > Hi, > > I am trying to program a shortcut key for a menu item but all I seem > to > be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see away > to > add a letter. Am I missing something? > > Thanks, > > Charlie > > ----[ http://gambaswiki.org/wiki/doc/netiquette?]---- Set the caption with an & just before the shortcut letter you want. e.g. mnuExit.Caption = "E&xit" or the same in the IDE menu wizard. b From adamnt42 at gmail.com Sat Apr 9 18:36:26 2022 From: adamnt42 at gmail.com (bb) Date: Sun, 10 Apr 2022 02:06:26 +0930 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: <5f7cbde313d17e66bb2b7a3a503213c0bd6a321a.camel@gmail.com> On Sun, 2022-04-10 at 02:01 +0930, bb wrote: > On Sat, 2022-04-09 at 17:03 +0100, Charlie Ogier wrote: > > Hi, > > > > I am trying to program a shortcut key for a menu item but all I > > seem > > to > > be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see > > away > > to > > add a letter. Am I missing something? > > > > Thanks, > > > > Charlie > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette?]---- > Set the caption with an & just before the shortcut letter you want. > e.g. mnuExit.Caption = "E&xit" or the same in the IDE menu wizard. > b Sorry, I just reread your query. You should see in the IDE menu wizard. Is it not there? b -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: charlie.png Type: image/png Size: 11594 bytes Desc: not available URL: From bsteers4 at gmail.com Sat Apr 9 22:20:04 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 9 Apr 2022 21:20:04 +0100 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: Should be a list there with all keys including Fkeys. It may not show if font size is too small. BruceS On Sat, 9 Apr 2022, 17:25 Charlie Ogier, wrote: > Hi, > > I am trying to program a shortcut key for a menu item but all I seem to > be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see away to > add a letter. Am I missing something? > > Thanks, > > Charlie > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Apr 9 22:56:54 2022 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 9 Apr 2022 22:56:54 +0200 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: Il giorno sab 9 apr 2022 alle ore 18:25 Charlie Ogier ha scritto: > Hi, > > I am trying to program a shortcut key for a menu item but all I seem to > be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see away to > add a letter. Am I missing something? > > Thanks, > > Charlie > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi Charlie, do you mean something like this? '--------------------------------------------- Public Sub Form_Open() Dim hMenu, hSubMenu As Menu Dim i As Integer Dim aSubMenu As String[] = ["New", "Open", "Save", "Quit"] Dim s As String = "file-" Dim sAction As String With hMenu = New Menu(FMain) .Caption = "File" End With For i = 0 To aSubMenu.Max sAction = s & Lower(aSubMenu[i]) With hSubMenu = New Menu(hMenu) As "SubMenu" .Action = sAction Action[sAction].Shortcut = "Ctrl+" & Left(aSubMenu[i]) .Caption = aSubMenu[i] .Name = aSubMenu[i] End With Next End Public Sub Action_Activate(sKey As String) As Boolean Select Case sKey Case "file-new" Print "Create new file" Case "file-open" Print "Open existing file" Case "file-save" Print "Save current file" Case "file-quit" Me.Close End Select End '----------------------------------------------------- Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Apr 10 00:39:24 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 9 Apr 2022 18:39:24 -0400 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: <08d87ebd-4541-88a2-b480-4ead9fff88f8@gmail.com> On 4/9/22 12:03, Charlie Ogier wrote: > Hi, > > I am trying to program a shortcut key for a menu item but all I seem to be able to do is click on [Ctrl], [Shift] or [Alt]. I > can't see away to add a letter. Am I missing something? > > Thanks, > > Charlie When you insert a new menu entry using the Menu editor, there should be four items in the Shortcut field: CTRL SHIFT ALT (None) CTRL, SHIFT, and ALT are toggle buttons. (None) is the first entry in a ComboBox that lists the regular keys. You can choose the regular key from the drop-down list and then add (or remove) CTRL, SHIFT, and/or ALT by toggling their buttons. If you don't see the "(None)", then that must be your issue. -- Lee From charlie at cogier.com Sun Apr 10 13:42:46 2022 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 10 Apr 2022 12:42:46 +0100 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: Hi All, Thanks for the ideas. Gianluigi provided some code but I have always been able to do this in the IDE. Since 3.17.1 it has changed. I have tried putting an '&' in from of a letter, this works to underline the letter but adding a [Ctrl] does not add a 'Ctrl+' in the menu. Have a look at this example https://www.cogier.com/gambas/menu_issue.png How could I change the Help shortcut from [F1] to [F12] for example without code? Thanks, Charlie On 09/04/2022 21:20, Bruce Steers wrote: > Should be a list there with all keys including Fkeys. > It may not show if font size is too small. > > BruceS > > On Sat, 9 Apr 2022, 17:25 Charlie Ogier, wrote: > > Hi, > > I am trying to program a shortcut key for a menu item but all I > seem to > be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see > away to > add a letter. Am I missing something? > > Thanks, > > Charlie > > ----[ 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 Sun Apr 10 14:11:34 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 10 Apr 2022 13:11:34 +0100 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: That is odd? Got a combo box on mine like the image other Bruce posted. Did you try upping font size for toolkit? Is it the same if you load gambas ide with qt and gtk? BruceS On Sun, 10 Apr 2022, 13:05 Charlie Ogier, wrote: > Hi All, > > Thanks for the ideas. Gianluigi provided some code but I have always been > able to do this in the IDE. Since 3.17.1 it has changed. > > I have tried putting an '&' in from of a letter, this works to underline > the letter but adding a [Ctrl] does not add a 'Ctrl+' in the menu. > > Have a look at this example https://www.cogier.com/gambas/menu_issue.png > > How could I change the Help shortcut from [F1] to [F12] for example > without code? > > Thanks, > > Charlie > > > > > On 09/04/2022 21:20, Bruce Steers wrote: > > Should be a list there with all keys including Fkeys. > It may not show if font size is too small. > > BruceS > > On Sat, 9 Apr 2022, 17:25 Charlie Ogier, wrote: > >> Hi, >> >> I am trying to program a shortcut key for a menu item but all I seem to >> be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see away to >> add a letter. Am I missing something? >> >> Thanks, >> >> Charlie >> >> ----[ 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 bsteers4 at gmail.com Sun Apr 10 14:47:08 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 10 Apr 2022 13:47:08 +0100 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: Iirc using & puts an underscore but no longer sets a shortcut (I'm sure I remember seeing a commit saying it had been changed?, I could be wrong about that though) BruceS On Sun, 10 Apr 2022, 13:05 Charlie Ogier, wrote: > Hi All, > > Thanks for the ideas. Gianluigi provided some code but I have always been > able to do this in the IDE. Since 3.17.1 it has changed. > > I have tried putting an '&' in from of a letter, this works to underline > the letter but adding a [Ctrl] does not add a 'Ctrl+' in the menu. > > Have a look at this example https://www.cogier.com/gambas/menu_issue.png > > How could I change the Help shortcut from [F1] to [F12] for example > without code? > > Thanks, > > Charlie > > > > > On 09/04/2022 21:20, Bruce Steers wrote: > > Should be a list there with all keys including Fkeys. > It may not show if font size is too small. > > BruceS > > On Sat, 9 Apr 2022, 17:25 Charlie Ogier, wrote: > >> Hi, >> >> I am trying to program a shortcut key for a menu item but all I seem to >> be able to do is click on [Ctrl], [Shift] or [Alt]. I can't see away to >> add a letter. Am I missing something? >> >> Thanks, >> >> Charlie >> >> ----[ 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 bagonergi at gmail.com Sun Apr 10 14:54:45 2022 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 10 Apr 2022 14:54:45 +0200 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: Il giorno dom 10 apr 2022 alle ore 14:05 Charlie Ogier ha scritto: > Hi All, > > Thanks for the ideas. Gianluigi provided some code but I have always been > able to do this in the IDE. Since 3.17.1 it has changed. > > I have tried putting an '&' in from of a letter, this works to underline > the letter but adding a [Ctrl] does not add a 'Ctrl+' in the menu. > > Have a look at this example https://www.cogier.com/gambas/menu_issue.png > > How could I change the Help shortcut from [F1] to [F12] for example > without code? > > Thanks, > > CharlieCharlie > To my knowledge, this is a GTK malfunction. If you change the theme (e.g. X instead of Y) it works with GTK as well. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Apr 10 17:18:00 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 10 Apr 2022 11:18:00 -0400 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> Message-ID: <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> On 4/10/22 07:42, Charlie Ogier wrote: > Thanks for the ideas. Gianluigi provided some code but I have always been able to do this in the IDE. Since 3.17.1 it has changed. > > I have tried putting an '&' in from of a letter, this works to underline the letter but adding a [Ctrl] does not add a 'Ctrl+' > in the menu. > > Have a look at this example https://www.cogier.com/gambas/menu_issue.png > > How could I change the Help shortcut from [F1] to [F12] for example without code? > > Thanks, > > Charlie I didn't see anyone else posting an image of what the Shortcut field should look like. It should look like the picture in the attachment. The function keys are listed in the drop-down of the ComboBox showing "(None)". Perhaps, as Gianluigi suggested, you should try a different desktop theme. -- Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: shortcut.png Type: image/png Size: 3600 bytes Desc: not available URL: From charlie at cogier.com Sun Apr 10 17:57:59 2022 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 10 Apr 2022 16:57:59 +0100 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> Message-ID: <502c76b1-8bc4-5e2d-0041-cf69aa4c0752@cogier.com> Thanks all. I changed my Linux Mint 20.3 Cinnamon from Mint-Y to Mint-X and the [None] appeared. Odd!! On 10/04/2022 16:18, T Lee Davidson wrote: > On 4/10/22 07:42, Charlie Ogier wrote: >> Thanks for the ideas. Gianluigi provided some code but I have always >> been able to do this in the IDE. Since 3.17.1 it has changed. >> >> I have tried putting an '&' in from of a letter, this works to >> underline the letter but adding a [Ctrl] does not add a 'Ctrl+' in >> the menu. >> >> Have a look at this example https://www.cogier.com/gambas/menu_issue.png >> >> How could I change the Help shortcut from [F1] to [F12] for example >> without code? >> >> Thanks, >> >> Charlie > > I didn't see anyone else posting an image of what the Shortcut field > should look like. It should look like the picture in the attachment. > The function keys are listed in the drop-down of the ComboBox showing > "(None)". > > Perhaps, as Gianluigi suggested, you should try a different desktop > theme. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From roberto.premoli at tiscali.it Sun Apr 10 19:16:07 2022 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Sun, 10 Apr 2022 19:16:07 +0200 Subject: [Gambas-user] =?utf-8?q?what_abaut_a_sabbatical_freeze=3F?= Message-ID: Hi, i am... say, tired of the continue "rolling release" i see around. "release fast, release often" can be nice fro who like new features, but less to whom prefere "stability". By the way, i use Debian exactly for stability it assure me. I see Gambas3 has a fast growing rateo, "rolling release", as i said. But beside new features, "rolling release" also introduce errors, patch, patch-of-the-patch and so on. I wonder if it is not time to have a "freeze" that means NO new feature but only bug fix just for some months, maybe one year. Of couse I am not here to say to Minisini how he should manage *HIS* creature (i have not the right nor the power to do), i just ask it it only me to have the feeling or also some other people. Thanks, Roberto Voucher MISE per P.IVA e PMI: fino a 2500? per la Banda Ultralarga. https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/?r=TS00000A00025&dm=link&p=tiscali&utm_source=tiscali&utm_medium=link&utm_campaign=voucherbusiness&wt_np=tiscali.link.footermail.voucherbusiness.btb.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Apr 10 23:00:01 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 10 Apr 2022 23:00:01 +0200 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: References: Message-ID: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> Am 10.04.22 um 19:16 schrieb roberto.premoli at tiscali.it: > i am... say, tired of the continue "rolling release" i see > around. > "release fast, release often" can be nice fro who like new > features, but less to whom prefere "stability". > By the way, i use Debian > exactly for stability it assure me. > I see Gambas3 has a fast growing > rateo, "rolling release", as i said. > But beside new features, "rolling > release" also introduce errors, patch, patch-of-the-patch and so on. > I > wonder if it is not time to have a "freeze" that means NO new feature > but only bug fix just for some months, maybe one year. > Of couse I am not > here to say to Minisini how he should manage *HIS* creature (i have not > the right nor the power to do), > i just ask it it only me to have the > feeling or also some other people. Creativity needs a lot of power and power gets rare if one gets older. Soo ... I like that Beno?t now has power for creativity. In the past years things were introduced that increase the stability of the development (like Git, the improved bugtracker and testing) both for the programmers that use Gambas as well as the one(s) that create(s) it. There also came features that make the programming itself easier and more convenient like 'Use' for properties for example. Then features that make Gambas more universal like 'Task' and webforms and make it more mature like namespaces now. Yes, the development of Gambas itself leads to bugs because things break by accident. The tests now find when some basic features break, but they don't find problems in the GUI. These can only be found by people who use and work with the IDE. I myself do not trust a version 3.x.0 for production because as soon as it is released there are more people who test it and usually they will find bugs. These will be fixed and Beno?t creates further sub-releases. I myself use the new Gambas version for production a couple of weeks after the last sub-sub-version is released and I'm fine with it. I don't have problems with the stability of Gambas. But I don't use every part of it. For me the development cycle is ok. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0xE6BF4426D5B5BF35.asc Type: application/pgp-keys Size: 4049 bytes Desc: OpenPGP public key URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Sun Apr 10 23:00:48 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 10 Apr 2022 22:00:48 +0100 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: References: Message-ID: You should use the "stable" version. Gambas is not so much a rolling release it has a development branch. Benoit shares all his latest updates to the development branch where we help by reporting any bugs and offering suggestions. Occasionally the stable branch is updated with dev updates once things are thought to be okay. If you do not like the risk of being on the development branch just use the stable branch. BruceS On Sun, 10 Apr 2022, 19:03 , wrote: > Hi, > i am... say, tired of the continue "rolling release" i see around. > "release fast, release often" can be nice fro who like new features, but > less to whom prefere "stability". > By the way, i use Debian exactly for stability it assure me. > I see Gambas3 has a fast growing rateo, "rolling release", as i said. > But beside new features, "rolling release" also introduce errors, patch, > patch-of-the-patch and so on. > I wonder if it is not time to have a "freeze" that means NO new feature > but only bug fix just for some months, maybe one year. > Of couse I am not here to say to Minisini how he should manage *HIS* > creature (i have not the right nor the power to do), > i just ask it it only me to have the feeling or also some other people. > Thanks, > Roberto > > > > Voucher MISE per P.IVA e PMI: fino a 2500? per la Banda Ultralarga. > https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/ > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Apr 11 00:23:00 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 11 Apr 2022 00:23:00 +0200 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: <502c76b1-8bc4-5e2d-0041-cf69aa4c0752@cogier.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> <502c76b1-8bc4-5e2d-0041-cf69aa4c0752@cogier.com> Message-ID: <7bb66982-6ba7-1a9b-2f94-7b1d87a3e7ab@gmail.com> Le 10/04/2022 ? 17:57, Charlie Ogier a ?crit?: > Thanks all. I changed my Linux Mint 20.3 Cinnamon from Mint-Y to Mint-X > and the [None] appeared. Odd!! > It's a common problem with recent versions of GTK+3, that do not allow a control to be "too small", the "too small" meaning being almost impossible to predict. GTK+3 is an horrible toolkit for that. So I set some heuristics in the code, and a one pixel too high font may make the control invisible. If I don't hide it when it is "too small", it generates tons of GTK+3 error messages on the standard error. Which font do you use exactly when the combo-box disappears? -- Beno?t Minisini From isafiur at gmail.com Mon Apr 11 07:28:40 2022 From: isafiur at gmail.com (Safiur Rahman) Date: Mon, 11 Apr 2022 11:13:40 +0545 Subject: [Gambas-user] With 3.17.1 WebContainer is shown differently in IDE Message-ID: Hi With 3.17.1 the WebContainer (gb.web.gui) is displayed as TabPanel and not as the container it used to be. Please check the attached image. I expect the bug has been solved in new version 3.17.2. But this update has not appeared in gambas stable ppa. -- Regards Safiur Rahman -------------- next part -------------- A non-text attachment was scrubbed... Name: webcontainer.jpg Type: image/jpeg Size: 178475 bytes Desc: not available URL: From hans at gambas-buch.de Mon Apr 11 10:30:38 2022 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 11 Apr 2022 10:30:38 +0200 Subject: [Gambas-user] Class HTTPForm In-Reply-To: <7bb66982-6ba7-1a9b-2f94-7b1d87a3e7ab@gmail.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> <502c76b1-8bc4-5e2d-0041-cf69aa4c0752@cogier.com> <7bb66982-6ba7-1a9b-2f94-7b1d87a3e7ab@gmail.com> Message-ID: <55c7c577-5f39-758b-2b32-7942580d90bf@gambas-buch.de> Hello. In the Gambas documentation I can't find a hint for which *purpose* one uses the class HTTPForm. I don't have a look at the source code of a small project that shows how to use this class. Therefore I ask if someone can help with an example. With kind regards Hans From mbelmonte at belmotek.net Mon Apr 11 11:42:21 2022 From: mbelmonte at belmotek.net (Martin Belmonte) Date: Mon, 11 Apr 2022 11:42:21 +0200 Subject: [Gambas-user] Force IDE to write in /tmp, not in ~/.cache Message-ID: Hi, I wan to reduce the wites to the SSD at minimum possible. So, I see gambas ide write in ~/.cache director the follow: fontconfig gambas3 gstreamer-1.0 webkitgtk mesa_shader_cache How I can set the IDE to write on /tmp directory. Force gambas ide to write in /tmp directory not in ~/.cache Note: in my system /tmp is mounted on RAM From t.lee.davidson at gmail.com Mon Apr 11 16:20:50 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 11 Apr 2022 10:20:50 -0400 Subject: [Gambas-user] Class HTTPForm In-Reply-To: <55c7c577-5f39-758b-2b32-7942580d90bf@gambas-buch.de> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> <502c76b1-8bc4-5e2d-0041-cf69aa4c0752@cogier.com> <7bb66982-6ba7-1a9b-2f94-7b1d87a3e7ab@gmail.com> <55c7c577-5f39-758b-2b32-7942580d90bf@gambas-buch.de> Message-ID: <413b934a-9d12-b050-e2c4-8c7d44593144@gmail.com> On 4/11/22 04:30, Hans Lehmann wrote: > Hello. > > In the Gambas documentation I can't find a hint for which *purpose* one uses the class HTTPForm. I don't have a look at the > source code of a small project that shows how to use this class. Therefore I ask if someone can help with an example. > > With kind regards > > Hans It's purpose is stated in the first paragraph, "This class allows to forge an HTTP request equivalent to an HTML form post." Perhaps it needs to be worded differently to make it more clear? It is simply an easier manner in which to craft and submit a HTML form than using HttpClient. As you can see, it inherits HttpClient and introduces four new methods: Add, AddFile, Remove, and Submit. I don't have time at the moment to create and test an example. But, it should be relatively simple following the HttpClient examples. Just add your form data using the .Add() method [ie. HttpForm.Add("myField1", "myValue1")] as many times as needed, and then submit the form with HttpForm.Submit(). -- Lee From charlie at cogier.com Mon Apr 11 16:33:34 2022 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 11 Apr 2022 15:33:34 +0100 Subject: [Gambas-user] Menu shortcut keys In-Reply-To: <7bb66982-6ba7-1a9b-2f94-7b1d87a3e7ab@gmail.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> <502c76b1-8bc4-5e2d-0041-cf69aa4c0752@cogier.com> <7bb66982-6ba7-1a9b-2f94-7b1d87a3e7ab@gmail.com> Message-ID: Hi Beno?t, The font is unchanged from the default which is Ubuntu 10. Changing the Theme > Controls setting from Mint-Y to Mint-X was all I needed to fix the problem. Is that enough detail? Charlie [System] Gambas=3.17.1 OperatingSystem=Linux Kernel=5.4.0-107-generic Architecture=x86_64 Distribution=Linux Mint 20.3 Una Desktop=CINNAMON Font=Ubuntu,10 Scale=7 *Theme=mint-x??? ??? This is the setting that is different and fixes the problem* Language=en_GB.UTF-8 Memory=7828M [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.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=5.2.7 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=cinnamon GDM_LANG=en_GB GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK3_MODULES=xapp-gtk3-module GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ADDRESS=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LOGNAME= 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_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1311,unix/:/tmp/.ICE-unix/1311 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1396 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share 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=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 On 10/04/2022 23:23, Beno?t Minisini wrote: > Le 10/04/2022 ? 17:57, Charlie Ogier a ?crit?: >> Thanks all. I changed my Linux Mint 20.3 Cinnamon from Mint-Y to >> Mint-X and the [None] appeared. Odd!! >> > > It's a common problem with recent versions of GTK+3, that do not allow > a control to be "too small", the "too small" meaning being almost > impossible to predict. GTK+3 is an horrible toolkit for that. > > So I set some heuristics in the code, and a one pixel too high font > may make the control invisible. If I don't hide it when it is "too > small", it generates tons of GTK+3 error messages on the standard error. > > Which font do you use exactly when the combo-box disappears? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Mon Apr 11 18:21:11 2022 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 11 Apr 2022 17:21:11 +0100 Subject: [Gambas-user] Ubuntu 22.04 Message-ID: <5f15c52a-740b-e706-28f2-a7cde3d2cb12@cogier.com> Hi, Just to let you know that the default Gambas (3.16.3) on the Kubuntu 22.04 beta crashes with 'The program has returned the value: 1". This is with a new GUI program with no code or Toolbox item added to the form. If you try in Terminal you get: - charlie at charlie-Aspire-E1-570:~/Documents/A$ ./A.gambas ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Cannot find interface of library 'gb.qt5.x11' ** ** ERROR: #27: Cannot load component 'gb.qt5.x11': cannot find component ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user ** I was going to try and start the desktop in X11 but there is no option, just Wayland. Charlie From roberto.premoli at tiscali.it Mon Apr 11 23:02:44 2022 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Mon, 11 Apr 2022 23:02:44 +0200 Subject: [Gambas-user] Force IDE to write in /tmp, not in ~/.cache In-Reply-To: References: Message-ID: worckaround: symlink /.cache/gambas/whatever to /tmp as follow: mv /.cache/gambas/whatever /.cache/gambas/whatever.original ln -s /tmp /.cache/gambas/whatever Il 11.04.2022 11:42 Martin Belmonte ha scritto: > Hi, > I wan to reduce the wites to the SSD at minimum possible. > So, I see gambas ide write in ~/.cache director the follow: > fontconfig > gambas3 > gstreamer-1.0 > webkitgtk > mesa_shader_cache > > How I can set the IDE to write on /tmp directory. > Force gambas ide to write in /tmp directory not in ~/.cache > Note: in my system /tmp is mounted on RAM > > ----[ http://gambaswiki.org/wiki/doc/netiquette [1] ]---- hello, here a workaround: symlink /.cache/gambas/whatever to /tmp as follow: mv /.cache/gambas/whatever /.cache/gambas/whatever.original ln -s /tmp /.cache/gambas/whatever Roberto. Voucher MISE per P.IVA e PMI: fino a 2500? per la Banda Ultralarga. https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/?r=TS00000A00025&dm=link&p=tiscali&utm_source=tiscali&utm_medium=link&utm_campaign=voucherbusiness&wt_np=tiscali.link.footermail.voucherbusiness.btb.. From t.lee.davidson at gmail.com Tue Apr 12 00:58:00 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 11 Apr 2022 18:58:00 -0400 Subject: [Gambas-user] Class HTTPForm In-Reply-To: <413b934a-9d12-b050-e2c4-8c7d44593144@gmail.com> References: <1aec7db5-d865-f63d-dae8-c2f4b34ea069@cogier.com> <3565d687-17ce-1cea-63e0-90a1158a214d@gmail.com> <502c76b1-8bc4-5e2d-0041-cf69aa4c0752@cogier.com> <7bb66982-6ba7-1a9b-2f94-7b1d87a3e7ab@gmail.com> <55c7c577-5f39-758b-2b32-7942580d90bf@gambas-buch.de> <413b934a-9d12-b050-e2c4-8c7d44593144@gmail.com> Message-ID: <9db19497-d93f-e0ea-96a5-682150fc22f8@gmail.com> On 4/11/22 10:20, T Lee Davidson wrote: > On 4/11/22 04:30, Hans Lehmann wrote: >> Hello. >> >> In the Gambas documentation I can't find a hint for which *purpose* one uses the class HTTPForm. I don't have a look at the >> source code of a small project that shows how to use this class. Therefore I ask if someone can help with an example. >> >> With kind regards >> >> Hans > > It's purpose is stated in the first paragraph, "This class allows to forge an HTTP request equivalent to an HTML form post." > Perhaps it needs to be worded differently to make it more clear? > > It is simply an easier manner in which to craft and submit a HTML form than using HttpClient. As you can see, it inherits > HttpClient and introduces four new methods: Add, AddFile, Remove, and Submit. > > I don't have time at the moment to create and test an example. But, it should be relatively simple following the HttpClient > examples. Just add your form data using the .Add() method [ie. HttpForm.Add("myField1", "myValue1")] as many times as needed, > and then submit the form with HttpForm.Submit(). Okay, here's a tested example based on the synchronous HttpClient example: [code] Public Sub SubmitForm() Dim hFormClient As HttpForm Dim sBuffer As String hFormClient = New HttpForm As "hFormClient" With hFormClient .URL = URL '[Url Of form On server] .Async = False .Timeout = 15 .Add("login", "MyLoginName") .Add("password", "MySecretPassword") .Submit End With If hFormClient.Status < 0 Then Print "ERROR" Else ' Success - read the data If Lof(hFormClient) Then sBuffer = Read #hFormClient, Lof(hFormClient) Print sBuffer End If End [/code] Posting a file using the .AddFile method should be relatively simple as well. -- Lee From g4mba5 at gmail.com Tue Apr 12 13:15:41 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Apr 2022 13:15:41 +0200 Subject: [Gambas-user] ComboBox has been rewritten in Gambas Message-ID: <7ea58733-26ac-941d-6a6b-1be761052f1a@gmail.com> Hi, In the last commits, I rewritten the ComboBox entirely in Gambas. It should solve the problem of the native GTK+ combo-box which sometimes becomes invisible. And, more important, it get rid of that native GTK+ combo-box whose popup is horrible to use. The behaviour of the new combo-box mimics the Qt combo-box, which is far easier to manipulate. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Tue Apr 12 13:48:27 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 12 Apr 2022 12:48:27 +0100 Subject: [Gambas-user] ComboBox has been rewritten in Gambas In-Reply-To: <7ea58733-26ac-941d-6a6b-1be761052f1a@gmail.com> References: <7ea58733-26ac-941d-6a6b-1be761052f1a@gmail.com> Message-ID: On Tue, 12 Apr 2022 at 12:16, Beno?t Minisini wrote: > Hi, > > In the last commits, I rewritten the ComboBox entirely in Gambas. > > It should solve the problem of the native GTK+ combo-box which sometimes > becomes invisible. > > And, more important, it get rid of that native GTK+ combo-box whose > popup is horrible to use. The behaviour of the new combo-box mimics the > Qt combo-box, which is far easier to manipulate. > > Regards, > > -- > Beno?t Minisini > Nice , should fix a few things :) Is it by design (i don't usually use qt) that now it is not by default at Index = 0 (when read only) and i have to set in manually on load? Many thanks BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 12 13:55:22 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Apr 2022 13:55:22 +0200 Subject: [Gambas-user] ComboBox has been rewritten in Gambas In-Reply-To: References: <7ea58733-26ac-941d-6a6b-1be761052f1a@gmail.com> Message-ID: Le 12/04/2022 ? 13:48, Bruce Steers a ?crit?: > > > On Tue, 12 Apr 2022 at 12:16, Beno?t Minisini > wrote: > > Hi, > > In the last commits, I rewritten the ComboBox entirely in Gambas. > > It should solve the problem of the native GTK+ combo-box which > sometimes > becomes invisible. > > And, more important, it get rid of that native GTK+ combo-box whose > popup is horrible to use. The behaviour of the new combo-box mimics the > Qt combo-box, which is far easier to manipulate. > > Regards, > > -- > Beno?t Minisini > > > Nice , should fix a few things :) > > Is it by design (i don't usually use qt) that now it is not by default > at Index = 0 (when read only) and i have to set in manually on load? > > Many thanks > BruceS > It's a regression. Just tell me when you find some, and I will fix it. -- Beno?t Minisini From isafiur at gmail.com Tue Apr 12 19:28:45 2022 From: isafiur at gmail.com (Safiur Rahman) Date: Tue, 12 Apr 2022 23:13:45 +0545 Subject: [Gambas-user] ppa for gambas stable version 3.17.3 Message-ID: Hi waiting for gambas 3.17.2 in stable ppa for ubuntu. Gambas ide for 3.17.1 is unusable. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 12 19:31:51 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 12 Apr 2022 19:31:51 +0200 Subject: [Gambas-user] ppa for gambas stable version 3.17.3 In-Reply-To: References: Message-ID: <8db0a327-9439-5732-a399-d0467df1a5f8@gmail.com> Le 12/04/2022 ? 19:28, Safiur Rahman a ?crit?: > Hi > waiting for gambas 3.17.2 in? stable ppa for ubuntu. Gambas ide for > 3.17.1 is unusable. > I will do it... It's the Holy Week and there are elections too, so it's a bit busy for me. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed Apr 13 11:45:28 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 Apr 2022 11:45:28 +0200 Subject: [Gambas-user] Gambas icon theme Message-ID: <001ef088-45d8-e479-3e2a-30330fbaf385@gmail.com> Here is a Gambas icon theme, generated from the 'gb.form.stock' component. Uncompress it in the '~/.local/share/icons' directory. Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas.tar.xz Type: application/x-xz Size: 353264 bytes Desc: not available URL: From bsteers4 at gmail.com Wed Apr 13 13:07:37 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 13 Apr 2022 12:07:37 +0100 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <001ef088-45d8-e479-3e2a-30330fbaf385@gmail.com> References: <001ef088-45d8-e479-3e2a-30330fbaf385@gmail.com> Message-ID: If I try to use the IDE preferences to change icon theme I get an error.... Invalid object (#29) Picture.Refresh.233 Respects BruceS On Wed, 13 Apr 2022 at 11:27, Beno?t Minisini wrote: > Here is a Gambas icon theme, generated from the 'gb.form.stock' component. > > Uncompress it in the '~/.local/share/icons' directory. > > Regards, > > -- > Beno?t Minisini > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Apr 13 16:03:25 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 Apr 2022 16:03:25 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: References: <001ef088-45d8-e479-3e2a-30330fbaf385@gmail.com> Message-ID: <78ae2118-e9fe-7088-5a28-331aee8c4248@gmail.com> Le 13/04/2022 ? 13:07, Bruce Steers a ?crit?: > If I try to use the IDE preferences to change icon theme I get an error.... > Invalid object (#29) > Picture.Refresh.233 > > Respects > BruceS > A new bug. Note that this theme is for the desktop, not for the Gambas IDE only. -- Beno?t Minisini From g4mba5 at gmail.com Wed Apr 13 16:09:03 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 Apr 2022 16:09:03 +0200 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <78ae2118-e9fe-7088-5a28-331aee8c4248@gmail.com> References: <001ef088-45d8-e479-3e2a-30330fbaf385@gmail.com> <78ae2118-e9fe-7088-5a28-331aee8c4248@gmail.com> Message-ID: <7f8ffd67-66ee-59dc-33a3-613c87d3c7bc@gmail.com> Le 13/04/2022 ? 16:03, Beno?t Minisini a ?crit?: > Le 13/04/2022 ? 13:07, Bruce Steers a ?crit?: >> If I try to use the IDE preferences to change icon theme I get an >> error.... >> Invalid object (#29) >> Picture.Refresh.233 >> >> Respects >> BruceS >> > > A new bug. Note that this theme is for the desktop, not for the Gambas > IDE only. > Fixed in last commit. -- Beno?t Minisini From charlie at cogier.com Wed Apr 13 18:52:35 2022 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 13 Apr 2022 17:52:35 +0100 Subject: [Gambas-user] Ubuntu 22.04 In-Reply-To: <5f15c52a-740b-e706-28f2-a7cde3d2cb12@cogier.com> References: <5f15c52a-740b-e706-28f2-a7cde3d2cb12@cogier.com> Message-ID: just to let people know that the Gambas ppa works providing Gambas 3.17.2 on Ubuntu (& Kubuntu) 22.04 beta. On 11/04/2022 17:21, Charlie Ogier wrote: > Hi, > > Just to let you know that the default Gambas (3.16.3) on the Kubuntu > 22.04 beta crashes with 'The program has returned the value: 1". This > is with a new GUI program with no code or Toolbox item added to the form. > > If you try in Terminal you get: - > > charlie at charlie-Aspire-E1-570:~/Documents/A$ ./A.gambas > > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Cannot find interface of library 'gb.qt5.x11' > ** > ** ERROR: #27: Cannot load component 'gb.qt5.x11': cannot find component > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** > > I was going to try and start the desktop in X11 but there is no > option, just Wayland. > > Charlie > > From bsteers4 at gmail.com Thu Apr 14 09:04:15 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 14 Apr 2022 08:04:15 +0100 Subject: [Gambas-user] Gambas icon theme In-Reply-To: <7f8ffd67-66ee-59dc-33a3-613c87d3c7bc@gmail.com> References: <001ef088-45d8-e479-3e2a-30330fbaf385@gmail.com> <78ae2118-e9fe-7088-5a28-331aee8c4248@gmail.com> <7f8ffd67-66ee-59dc-33a3-613c87d3c7bc@gmail.com> Message-ID: On Wed, 13 Apr 2022 at 15:10, Beno?t Minisini wrote: > Le 13/04/2022 ? 16:03, Beno?t Minisini a ?crit : > > Le 13/04/2022 ? 13:07, Bruce Steers a ?crit : > >> If I try to use the IDE preferences to change icon theme I get an > >> error.... > >> Invalid object (#29) > >> Picture.Refresh.233 > >> > >> Respects > >> BruceS > >> > > > > A new bug. Note that this theme is for the desktop, not for the Gambas > > IDE only. > > > > Fixed in last commit. > aah i see :) thank you BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Apr 16 01:23:27 2022 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 15 Apr 2022 16:23:27 -0700 (PDT) Subject: [Gambas-user] Unable to install Apps packaged from release in daily ppa Message-ID: <2067307486.43947.1650065007017.JavaMail.zimbra@westwoodsvcs.com> Daily ppa still contains packages with the 3.16.90 naming even though the gambas version installed thinks it's 3.17.x When building App packages with the gambas packager, it defaults to requiring 3.17. The test install of these generated app packages of course fails as the built packages require 3.17 to be installed which it is not by naming convention. Will the ppa be updated to provide the 3.17 named packages?... soon? Or am I doing something wrong? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Apr 16 01:45:40 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Apr 2022 01:45:40 +0200 Subject: [Gambas-user] Unable to install Apps packaged from release in daily ppa In-Reply-To: <2067307486.43947.1650065007017.JavaMail.zimbra@westwoodsvcs.com> References: <2067307486.43947.1650065007017.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 16/04/2022 ? 01:23, Brian G a ?crit?: > Daily ppa still contains packages with the 3.16.90 naming even though > the gambas version installed thinks it's 3.17.x > When building App packages with the gambas packager, it defaults to > requiring 3.17. > The test install of these generated app packages of course fails > as the built packages require 3.17 to be installed which it is not by > naming convention. > > Will the ppa be updated to provide the 3.17 named packages?... soon? > > Or am I doing something wrong? > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > It should have been fixed with 3.17.2. Apparently not? -- Beno?t Minisini From g4mba5 at gmail.com Sat Apr 16 01:48:06 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Apr 2022 01:48:06 +0200 Subject: [Gambas-user] Unable to install Apps packaged from release in daily ppa In-Reply-To: References: <2067307486.43947.1650065007017.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <5338a285-bc90-4d37-6dd2-a1ce67a25f90@gmail.com> Le 16/04/2022 ? 01:45, Beno?t Minisini a ?crit?: > Le 16/04/2022 ? 01:23, Brian G a ?crit?: >> Daily ppa still contains packages with the 3.16.90 naming even though >> the gambas version installed thinks it's 3.17.x >> When building App packages with the gambas packager, it defaults to >> requiring 3.17. >> The test install of these generated app packages of course fails >> as the built packages require 3.17 to be installed which it is not by >> naming convention. >> >> Will the ppa be updated to provide the 3.17 named packages?... soon? >> >> Or am I doing something wrong? >> >> "Failure is the key to success; >> ??each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G >> > > It should have been fixed with 3.17.2. Apparently not? > Ha, sorry, you are talking about the daily ppa. Which package has a version named 3.16.90? -- Beno?t Minisini From brian at westwoodsvcs.com Sat Apr 16 23:59:52 2022 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 16 Apr 2022 14:59:52 -0700 (PDT) Subject: [Gambas-user] Unable to install Apps packaged from release in daily ppa In-Reply-To: <5338a285-bc90-4d37-6dd2-a1ce67a25f90@gmail.com> References: <2067307486.43947.1650065007017.JavaMail.zimbra@westwoodsvcs.com> <5338a285-bc90-4d37-6dd2-a1ce67a25f90@gmail.com> Message-ID: <2045356111.44079.1650146392526.JavaMail.zimbra@westwoodsvcs.com> The meta package is still 3.16.90 It looks like all are 3.16.90 when I look with the package manager "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 15, 2022, at 4:48 PM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 16/04/2022 ? 01:45, Beno?t Minisini a ?crit?: >> Le 16/04/2022 ? 01:23, Brian G a ?crit?: >>> Daily ppa still contains packages with the 3.16.90 naming even though >>> the gambas version installed thinks it's 3.17.x >>> When building App packages with the gambas packager, it defaults to >>> requiring 3.17. >>> The test install of these generated app packages of course fails >>> as the built packages require 3.17 to be installed which it is not by >>> naming convention. >>> >>> Will the ppa be updated to provide the 3.17 named packages?... soon? >>> >>> Or am I doing something wrong? >>> >>> "Failure is the key to success; >>> ??each mistake teaches us something" ?.. Morihei Ueshiba >>> Brian G >>> >> >> It should have been fixed with 3.17.2. Apparently not? >> > > Ha, sorry, you are talking about the daily ppa. Which package has a > version named 3.16.90? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Sun Apr 17 03:43:14 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 17 Apr 2022 03:43:14 +0200 Subject: [Gambas-user] Unable to install Apps packaged from release in daily ppa In-Reply-To: <2045356111.44079.1650146392526.JavaMail.zimbra@westwoodsvcs.com> References: <2067307486.43947.1650065007017.JavaMail.zimbra@westwoodsvcs.com> <5338a285-bc90-4d37-6dd2-a1ce67a25f90@gmail.com> <2045356111.44079.1650146392526.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 16/04/2022 ? 23:59, Brian G a ?crit?: > The meta package is still 3.16.90 > It looks like all are 3.16.90 when I look with the package manager > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > It should be fixed in 24 hours. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Sun Apr 17 15:50:49 2022 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 17 Apr 2022 06:50:49 -0700 (PDT) Subject: [Gambas-user] Music! Message-ID: <2110592240.44134.1650203449653.JavaMail.zimbra@westwoodsvcs.com> Ben, Really loved the music when I opened Gambas this morning it was a wonderful surprise! Thank You! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Apr 17 16:55:54 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 17 Apr 2022 16:55:54 +0200 Subject: [Gambas-user] Music! In-Reply-To: <2110592240.44134.1650203449653.JavaMail.zimbra@westwoodsvcs.com> References: <2110592240.44134.1650203449653.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <2bbe0e8f-b8f1-8e8c-b401-7105cf2ed511@gmail.com> Le 17/04/2022 ? 15:50, Brian G a ?crit?: > Ben, > ? ?Really loved the music when I opened Gambas this morning it was a > wonderful surprise! > ? ?Thank You! > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > Gambas, the only software with a -true- easter egg. :-) -- Beno?t Minisini From admin at allunix.ru Sun Apr 17 17:29:32 2022 From: admin at allunix.ru (Admin) Date: Sun, 17 Apr 2022 22:29:32 +0700 Subject: [Gambas-user] Music! In-Reply-To: <2bbe0e8f-b8f1-8e8c-b401-7105cf2ed511@gmail.com> References: <2110592240.44134.1650203449653.JavaMail.zimbra@westwoodsvcs.com> <2bbe0e8f-b8f1-8e8c-b401-7105cf2ed511@gmail.com> Message-ID: <800706eb-5ed9-830a-37d8-da633a701db6@allunix.ru> Happy easter! Well, all my software written in Gambas longer then one screen of code contains an easter egg. I mean, this is mandatory, isn't it? And my personal favourite is also about music. I wrote a cash register software for my company (huge thanks to you, guys, I would have never done it without your help), and the cash register units themselves contain a little beeper that can be used pretty freely, the driver takes two parameters - the frequency and duration. So I wrote a beeper test button, which just beeps once a test button is pressed. Cashiers use this button almost just to test the software-hardware connectivity rather then the beeper itself, appears to be the fastest way. So I thought what if I make it to play a little music after some presses of a button. But how do I program a music for this single bit sound source? Well, I googled some music for the old cellphones wich had basically same sound capabilities, and then I googled the frequencies of their "notes". So now, when an operator tests the sound too much, the Mortal Kombat theme suddenly plays from that little receipt printing device. Their faces are priceless usually. Here's my awkward code (since there is no pause, I just use a "silent note" that is _almost_ silent): ------- Dim music As Integer[] Dim note As Integer Dim a3, c4, d4, e4, g4, g3, h3, f3, c5, a4, silent As Integer a3 = 220 f3 = 174 g3 = 196 h3 = 246 a4 = 440 c4 = 261 d4 = 293 e4 = 329 g4 = 392 c5 = 523 silent = 100 music = [a3, a3, c4, a3, d4, a3, e4, d4, c4, c4, e4, c4, g4, c4, e4, c4, g3, g3, h3, g3, c4, g3, d4, c4, f3, f3, a3, f3, c4, f3, c4, h3, a4, silent, a4, silent, a4, silent, a4, silent, g4, c5, a4, silent, a4, silent, a4, silent, a4, silent, g4, e4, a4, silent, a4, silent, a4, silent, a4, silent, g4, c5] For note = 0 To 61 ??? libfptr_set_param_int(fptr, LIBFPTR_PARAM_FREQUENCY, music[note]) ??? If music[note] = 100 Then libfptr_set_param_int(fptr, LIBFPTR_PARAM_DURATION, 100) Else libfptr_set_param_int(fptr, LIBFPTR_PARAM_DURATION, 200) ??? libfptr_beep(fptr) Next music = [a4, silent, a4, silent, a4, silent] For note = 0 To 4 ??? libfptr_set_param_int(fptr, LIBFPTR_PARAM_FREQUENCY, music[note]) ??? If music[note] = 100 Then libfptr_set_param_int(fptr, LIBFPTR_PARAM_DURATION, 100) Else libfptr_set_param_int(fptr, LIBFPTR_PARAM_DURATION, 200) ??? libfptr_beep(fptr) Next music = [a4, a4, silent, a4, a4] For note = 0 To 4 ??? libfptr_set_param_int(fptr, LIBFPTR_PARAM_FREQUENCY, music[note]) ??? If note = 4 Then libfptr_set_param_int(fptr, LIBFPTR_PARAM_DURATION, 200) Else libfptr_set_param_int(fptr, LIBFPTR_PARAM_DURATION, 100) ??? libfptr_beep(fptr) Next ------- Dmitry. 17.04.2022 21:55, Beno?t Minisini ?????: > Le 17/04/2022 ? 15:50, Brian G a ?crit?: >> Ben, >> ?? ?Really loved the music when I opened Gambas this morning it was a >> wonderful surprise! >> ?? ?Thank You! >> >> "Failure is the key to success; >> ??each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G >> > > Gambas, the only software with a -true- easter egg. :-) > From brian at westwoodsvcs.com Mon Apr 18 20:52:13 2022 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 18 Apr 2022 11:52:13 -0700 (PDT) Subject: [Gambas-user] Quit, never exits the program, also never returns as it should Message-ID: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> I am having an issue with Quit in a cli program, quit is called but the gambas application never exits I can't see any reason for this and I am not sure where to look, Maybe a _free or some other issue I am not sure how to debug this without looking into the QUIT process.. Has anyone else seen this issue? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Apr 18 21:31:12 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 18 Apr 2022 15:31:12 -0400 Subject: [Gambas-user] Quit, never exits the program, also never returns as it should In-Reply-To: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> References: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <2784b987-3d25-1f78-5c7f-950f599e92ff@gmail.com> On 4/18/22 14:52, Brian G wrote: > I am having an issue with Quit in a cli program, quit is called but the gambas application never exits > > I can't see any reason for this and I am not sure where to look, Maybe a _free or some other issue > I am not sure how to debug this without looking into the QUIT process.. > > Has anyone else seen this issue? > > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G I have not seen an issue with Quit. It works as expected here with v3.17.2. Without having at least some idea what your program is doing, we can only guess at what the issue might be. Are there any unclosed streams or sockets? -- Lee From brian at westwoodsvcs.com Mon Apr 18 21:37:49 2022 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 18 Apr 2022 12:37:49 -0700 (PDT) Subject: [Gambas-user] Quit, never exits the program, also never returns as it should In-Reply-To: <2784b987-3d25-1f78-5c7f-950f599e92ff@gmail.com> References: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> <2784b987-3d25-1f78-5c7f-950f599e92ff@gmail.com> Message-ID: <1365281722.44539.1650310669559.JavaMail.zimbra@westwoodsvcs.com> Hi, I am running the latest master version 3.17.90 Will an open stream or socket really keep the quit from working, umm. I will have to look at that in the app. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 18, 2022, at 12:31 PM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 4/18/22 14:52, Brian G wrote: >> I am having an issue with Quit in a cli program, quit is called but the gambas >> application never exits >> >> I can't see any reason for this and I am not sure where to look, Maybe a _free >> or some other issue >> I am not sure how to debug this without looking into the QUIT process.. >> >> Has anyone else seen this issue? >> >> >> "Failure is the key to success; >> ?each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G > > I have not seen an issue with Quit. It works as expected here with v3.17.2. > > Without having at least some idea what your program is doing, we can only guess > at what the issue might be. > Are there any unclosed streams or sockets? > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From g4mba5 at gmail.com Mon Apr 18 21:42:47 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 18 Apr 2022 21:42:47 +0200 Subject: [Gambas-user] Quit, never exits the program, also never returns as it should In-Reply-To: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> References: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1c5bd667-ba82-64f2-c018-42c21ce198a4@gmail.com> Le 18/04/2022 ? 20:52, Brian G a ?crit?: > I am having an issue with Quit in a cli program, quit is called but the > gambas application never exits > > I can't see any reason for this and I am not sure where to look, Maybe a > _free or some other issue > I am not sure how to debug this without looking into the QUIT process.. > > Has anyone else seen this issue? > > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > You must run your program with the 'gdb' debugger, and hit CTRL+C to stop it once the QUIT instruction has been executed. Then send the result of the 'bt' command to see where it is locked. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Mon Apr 18 22:17:17 2022 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 18 Apr 2022 13:17:17 -0700 (PDT) Subject: [Gambas-user] Quit, never exits the program, also never returns as it should In-Reply-To: <1c5bd667-ba82-64f2-c018-42c21ce198a4@gmail.com> References: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> <1c5bd667-ba82-64f2-c018-42c21ce198a4@gmail.com> Message-ID: <819600055.44561.1650313037639.JavaMail.zimbra@westwoodsvcs.com> I have found the problem, Boy how silly it was!! I am capturing the Signal[Signal.SIGWINCH].catch I was not doing an Signal[Signal.SIGWINCH].ignore before the quit So the program would quit and try to close the terminal window, which caused a resize signal to the app, and apparently looped for a while and hangs. I have added the Signal[Signal.SIGWINCH].ignore So all is now well! Question should quit auto magically restore the caught signals on exit? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 18, 2022, at 12:42 PM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 18/04/2022 ? 20:52, Brian G a ?crit?: >> I am having an issue with Quit in a cli program, quit is called but the >> gambas application never exits >> >> I can't see any reason for this and I am not sure where to look, Maybe a >> _free or some other issue >> I am not sure how to debug this without looking into the QUIT process.. >> >> Has anyone else seen this issue? >> >> >> "Failure is the key to success; >> ?each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G >> > > You must run your program with the 'gdb' debugger, and hit CTRL+C to > stop it once the QUIT instruction has been executed. Then send the > result of the 'bt' command to see where it is locked. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From rwe-sse at osnanet.de Tue Apr 19 11:06:12 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 19 Apr 2022 11:06:12 +0200 Subject: [Gambas-user] Closing Main form lets Timer keep going Message-ID: <80caad73-6a4c-5bbb-cdec-4adb2d0e738c@osnanet.de> In the latest Gambas versions, I stumbled over a strange new thing: Say you have a Timer running with e. g. 1 minute and you close the Main form, the Timer keeps going. You can see that in the IDE when running the program from there: although the form has gone, the program still runs and has to be stopped manually. In Form_Close() I wrote ? Timer.Enabled = False that solved the problem. But I guess it's not the way it's supposed to run... Regards Rolf From g4mba5 at gmail.com Tue Apr 19 11:52:57 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Apr 2022 11:52:57 +0200 Subject: [Gambas-user] Closing Main form lets Timer keep going In-Reply-To: <80caad73-6a4c-5bbb-cdec-4adb2d0e738c@osnanet.de> References: <80caad73-6a4c-5bbb-cdec-4adb2d0e738c@osnanet.de> Message-ID: <04fd16c5-2937-60d4-a3cc-6231492ced48@gmail.com> Le 19/04/2022 ? 11:06, Rolf-Werner Eilert a ?crit?: > In the latest Gambas versions, I stumbled over a strange new thing: > > Say you have a Timer running with e. g. 1 minute and you close the Main > form, the Timer keeps going. You can see that in the IDE when running > the program from there: although the form has gone, the program still > runs and has to be stopped manually. > > In Form_Close() I wrote > > ? Timer.Enabled = False > > that solved the problem. But I guess it's not the way it's supposed to > run... > > Regards > > Rolf > It depends. Timer automatically stops if their event observer is destroyed. Otherwise they keep running and prevent the program's termination (see the documentation about the event loop on the wiki). But you can now set the Timer.Ignore property to tell Gambas to ignore that timer when quitting. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Tue Apr 19 12:12:13 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 19 Apr 2022 12:12:13 +0200 Subject: [Gambas-user] Closing Main form lets Timer keep going In-Reply-To: <04fd16c5-2937-60d4-a3cc-6231492ced48@gmail.com> References: <80caad73-6a4c-5bbb-cdec-4adb2d0e738c@osnanet.de> <04fd16c5-2937-60d4-a3cc-6231492ced48@gmail.com> Message-ID: <5f9b89d9-9060-081a-2180-4adf8af0cbaa@osnanet.de> Am 19.04.22 um 11:52 schrieb Beno?t Minisini: > Le 19/04/2022 ? 11:06, Rolf-Werner Eilert a ?crit?: >> In the latest Gambas versions, I stumbled over a strange new thing: >> >> Say you have a Timer running with e. g. 1 minute and you close the >> Main form, the Timer keeps going. You can see that in the IDE when >> running the program from there: although the form has gone, the >> program still runs and has to be stopped manually. >> >> In Form_Close() I wrote >> >> ?? Timer.Enabled = False >> >> that solved the problem. But I guess it's not the way it's supposed >> to run... >> >> Regards >> >> Rolf >> > > It depends. > > Timer automatically stops if their event observer is destroyed. > > Otherwise they keep running and prevent the program's termination (see > the documentation about the event loop on the wiki). > > But you can now set the Timer.Ignore property to tell Gambas to ignore > that timer when quitting. > > Regards, > Ah, I see, then I missed that thing. Thank you very much for the hint! Regards Rolf From g4mba5 at gmail.com Tue Apr 19 13:18:50 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Apr 2022 13:18:50 +0200 Subject: [Gambas-user] Closing Main form lets Timer keep going In-Reply-To: <5f9b89d9-9060-081a-2180-4adf8af0cbaa@osnanet.de> References: <80caad73-6a4c-5bbb-cdec-4adb2d0e738c@osnanet.de> <04fd16c5-2937-60d4-a3cc-6231492ced48@gmail.com> <5f9b89d9-9060-081a-2180-4adf8af0cbaa@osnanet.de> Message-ID: <164e4399-b2dd-e322-77d4-03f4570bfc9f@gmail.com> Le 19/04/2022 ? 12:12, Rolf-Werner Eilert a ?crit?: > > Am 19.04.22 um 11:52 schrieb Beno?t Minisini: >> Le 19/04/2022 ? 11:06, Rolf-Werner Eilert a ?crit?: >>> In the latest Gambas versions, I stumbled over a strange new thing: >>> >>> Say you have a Timer running with e. g. 1 minute and you close the >>> Main form, the Timer keeps going. You can see that in the IDE when >>> running the program from there: although the form has gone, the >>> program still runs and has to be stopped manually. >>> >>> In Form_Close() I wrote >>> >>> ?? Timer.Enabled = False >>> >>> that solved the problem. But I guess it's not the way it's supposed >>> to run... >>> >>> Regards >>> >>> Rolf >>> >> >> It depends. >> >> Timer automatically stops if their event observer is destroyed. >> >> Otherwise they keep running and prevent the program's termination (see >> the documentation about the event loop on the wiki). >> >> But you can now set the Timer.Ignore property to tell Gambas to ignore >> that timer when quitting. >> >> Regards, >> > > Ah, I see, then I missed that thing. Thank you very much for the hint! > > Regards > Rolf > Note that it's the same problem if you are running a process. -- Beno?t Minisini From g4mba5 at gmail.com Tue Apr 19 13:19:40 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Apr 2022 13:19:40 +0200 Subject: [Gambas-user] Quit, never exits the program, also never returns as it should In-Reply-To: <819600055.44561.1650313037639.JavaMail.zimbra@westwoodsvcs.com> References: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> <1c5bd667-ba82-64f2-c018-42c21ce198a4@gmail.com> <819600055.44561.1650313037639.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <701fa575-de7f-2d13-3ca9-0c40ff55893e@gmail.com> Le 18/04/2022 ? 22:17, Brian G a ?crit?: > I have found the problem, > > Boy how silly it was!! > > I am capturing the Signal[Signal.SIGWINCH].catch > I was not doing an Signal[Signal.SIGWINCH].ignore > > before the quit > > So the program would quit and try to close the terminal window, which caused a resize signal to > the app, and apparently looped for a while and hangs. > Is it possible for you to make a project that allows me to reproduce that behaviour, so that I can fix it? -- Beno?t Minisini From brian at westwoodsvcs.com Tue Apr 19 16:54:59 2022 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 19 Apr 2022 07:54:59 -0700 (PDT) Subject: [Gambas-user] Quit, never exits the program, also never returns as it should In-Reply-To: <701fa575-de7f-2d13-3ca9-0c40ff55893e@gmail.com> References: <250535210.44522.1650307933757.JavaMail.zimbra@westwoodsvcs.com> <1c5bd667-ba82-64f2-c018-42c21ce198a4@gmail.com> <819600055.44561.1650313037639.JavaMail.zimbra@westwoodsvcs.com> <701fa575-de7f-2d13-3ca9-0c40ff55893e@gmail.com> Message-ID: <750159065.44604.1650380099713.JavaMail.zimbra@westwoodsvcs.com> Ok, Will put something together "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 19, 2022, at 4:19 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 18/04/2022 ? 22:17, Brian G a ?crit?: >> I have found the problem, >> >> Boy how silly it was!! >> >> I am capturing the Signal[Signal.SIGWINCH].catch >> I was not doing an Signal[Signal.SIGWINCH].ignore >> >> before the quit >> >> So the program would quit and try to close the terminal window, which caused a >> resize signal to >> the app, and apparently looped for a while and hangs. >> > > Is it possible for you to make a project that allows me to reproduce > that behaviour, so that I can fix it? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Tue Apr 19 19:07:57 2022 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 19 Apr 2022 10:07:57 -0700 (PDT) Subject: [Gambas-user] Signal and quit issue Message-ID: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> Here is the program, it does strange things if you run it in the ide Build the executable Run it in bash do a ctrl-c which does a quit, you will see that quit never returns and you can resize, and hit ctrl-c as often as you like it will not quit, seems to hang. Maybe you just can not do that from there... if you run it a few times in the IDE it will do a segfault 11... but it all seems pretty random Maybe I am doing something wrong, it is generally like the app I had causing the issue. Maybe my coding is causing the issue. "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: TestQuit-1.0.8.tar.gz.gmail.txt URL: From jussi.lahtinen at gmail.com Tue Apr 19 20:04:16 2022 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Apr 2022 21:04:16 +0300 Subject: [Gambas-user] Signal and quit issue In-Reply-To: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> References: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> Message-ID: SGN11 is almost always a bug. But now it seems to be your error. Remove the "Wait 0" from the event handler. You should never use "wait" inside an event handler, but "sleep" if necessary. Jussi On Tue, Apr 19, 2022 at 8:09 PM Brian G wrote: > Here is the program, it does strange things if you run it in the ide > > Build the executable > Run it in bash > do a ctrl-c which does a quit, you will see that quit never returns and > you can resize, and hit ctrl-c as often as you like > it will not quit, seems to hang. > > Maybe you just can not do that from there... > > if you run it a few times in the IDE it will do a segfault 11... but it > all seems pretty random > > Maybe I am doing something wrong, it is generally like the app I had > causing the issue. > Maybe my coding is causing the issue. > > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Apr 19 20:27:29 2022 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 19 Apr 2022 11:27:29 -0700 (PDT) Subject: [Gambas-user] Signal and quit issue In-Reply-To: References: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1384289678.44893.1650392849057.JavaMail.zimbra@westwoodsvcs.com> Yes you are correct, Here is without the wait... Dumb It behaves just the same. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 19, 2022, at 11:04 AM, Jussi Lahtinen wrote: > SGN11 is almost always a bug. > But now it seems to be your error. Remove the "Wait 0" from the event handler. > You should never use "wait" inside an event handler, but "sleep" if necessary. > Jussi > On Tue, Apr 19, 2022 at 8:09 PM Brian G < [ mailto:brian at westwoodsvcs.com | > brian at westwoodsvcs.com ] > wrote: >> Here is the program, it does strange things if you run it in the ide >> Build the executable >> Run it in bash >> do a ctrl-c which does a quit, you will see that quit never returns and you can >> resize, and hit ctrl-c as often as you like >> it will not quit, seems to hang. >> Maybe you just can not do that from there... >> if you run it a few times in the IDE it will do a segfault 11... but it all >> seems pretty random >> Maybe I am doing something wrong, it is generally like the app I had causing the >> issue. >> Maybe my coding is causing the issue. >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G >> ----[ [ 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 -------------- An embedded and charset-unspecified text was scrubbed... Name: TestQuit-1.0.10.tar.gz.gmail.txt URL: From g4mba5 at gmail.com Tue Apr 19 23:59:07 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Apr 2022 23:59:07 +0200 Subject: [Gambas-user] Signal and quit issue In-Reply-To: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> References: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 19/04/2022 ? 19:07, Brian G a ?crit?: > Here is the program, it does strange things if you run it in the ide > > Build the executable > Run it in bash > do a ctrl-c which does a quit, you will see that quit never returns and > you can resize, and hit ctrl-c as often as you like > it will not quit, seems to hang. > > Maybe you just can not do that from there... > > if you run it a few times in the IDE it will do a segfault 11... but it > all seems pretty random > > Maybe I am doing something wrong, it is generally like the app I had > causing the issue. > Maybe my coding is causing the issue. > > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > I have no problem at all when running your project from a terminal, or from the IDE... No hang at all when QUIT instruction is executed, just the program that quits normally. :-/ -- Beno?t Minisini From g4mba5 at gmail.com Wed Apr 20 00:00:22 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Apr 2022 00:00:22 +0200 Subject: [Gambas-user] Signal and quit issue In-Reply-To: References: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 19/04/2022 ? 23:59, Beno?t Minisini a ?crit?: > Le 19/04/2022 ? 19:07, Brian G a ?crit?: >> Here is the program, it does strange things if you run it in the ide >> >> Build the executable >> Run it in bash >> do a ctrl-c which does a quit, you will see that quit never returns >> and you can resize, and hit ctrl-c as often as you like >> it will not quit, seems to hang. >> >> Maybe you just can not do that from there... >> >> if you run it a few times in the IDE it will do a segfault 11... but >> it all seems pretty random >> >> Maybe I am doing something wrong, it is generally like the app I had >> causing the issue. >> Maybe my coding is causing the issue. >> >> >> "Failure is the key to success; >> ??each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G >> > > I have no problem at all when running your project from a terminal, or > from the IDE... No hang at all when QUIT instruction is executed, just > the program that quits normally. :-/ > OK, I didn't read your mail carefully. It hangs when hitting CTRL+C, but not when typing "quit". -- Beno?t Minisini From g4mba5 at gmail.com Wed Apr 20 00:54:55 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Apr 2022 00:54:55 +0200 Subject: [Gambas-user] Signal and quit issue In-Reply-To: References: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 20/04/2022 ? 00:00, Beno?t Minisini a ?crit?: > Le 19/04/2022 ? 23:59, Beno?t Minisini a ?crit?: >> Le 19/04/2022 ? 19:07, Brian G a ?crit?: >>> Here is the program, it does strange things if you run it in the ide >>> >>> Build the executable >>> Run it in bash >>> do a ctrl-c which does a quit, you will see that quit never returns >>> and you can resize, and hit ctrl-c as often as you like >>> it will not quit, seems to hang. >>> >>> Maybe you just can not do that from there... >>> >>> if you run it a few times in the IDE it will do a segfault 11... but >>> it all seems pretty random >>> >>> Maybe I am doing something wrong, it is generally like the app I had >>> causing the issue. >>> Maybe my coding is causing the issue. >>> >>> >>> "Failure is the key to success; >>> ??each mistake teaches us something" ?.. Morihei Ueshiba >>> Brian G >>> >> >> I have no problem at all when running your project from a terminal, or >> from the IDE... No hang at all when QUIT instruction is executed, just >> the program that quits normally. :-/ >> > > OK, I didn't read your mail carefully. It hangs when hitting CTRL+C, but > not when typing "quit". > Strange: it seems that only the SIGINT signal (CTRL+C) hangs the interpreter. Other signals execute the QUIT instruction correctly... -- Beno?t Minisini From rwe-sse at osnanet.de Wed Apr 20 08:58:31 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 20 Apr 2022 08:58:31 +0200 Subject: [Gambas-user] Program producing constant load In-Reply-To: References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> Message-ID: Am 31.03.22 um 12:56 schrieb Rolf-Werner Eilert: > Am 30.03.22 um 14:05 schrieb Bruce Steers: >> >> >> On Wed, 30 Mar 2022 at 11:06, Rolf-Werner Eilert > > wrote: >> >> ??? Am 30.03.22 um 11:32 schrieb Beno?t Minisini: >> ???? > Le 30/03/2022 ? 10:54, Rolf-Werner Eilert a ?crit?: >> ???? >> For my office use, I made a remake of my calendar program. >> ???? >> >> ???? >> Everything running fine so far, but today I saw that when I have >> ??? the >> ???? >> program on the active screen, it produces a constant load of >> ??? about 40 >> ???? >> % (the little faker on my desktop has 4 CPUs and Xosview says >> ??? 1.3 with >> ???? >> the calendar visible). >> ???? >> >> ???? >> top says gbr3 is sucking CPU, but of course no more information. >> ???? >> >> ???? >> So my question is, how can I find out what is going on within my >> ???? >> program? Obviously, there is one event which is fired over and >> over >> ???? >> again. >> ???? >> >> ???? >> Regards >> ???? >> Rolf >> ???? >> >> ???? > >> ???? > gbx3 -t displays each ligne executed. It generates a lot of log >> ??? in the >> ???? > terminal, but you can see what the program runs exactly. >> ???? > >> ???? > Regards, >> ???? > >> >> ??? Oh yes, that shows it clearly: There is a large gridview >> displaying the >> ??? hours for each day. Obviously, the gridview constantly fires up the >> ??? Data >> ??? event which jumps into one function looking for the school holidays. >> >> ??? The question is, why is Data called over and over again? >> >> ??? This is an Ubuntu Mate and I chose gb.qt5 and gb.qt5.ext as >> libraries. >> ??? May that be the reason? Or should I look for something else? I have >> ??? other projects running with the same libraries here, they use >> Gridview >> ??? as well, and they do not constantly fire the Data event. >> >> >> Lets see the code. >> I suspect there is some code causing the data event to trigger again >> within the data event. >> >> Like putting any instructions in a _Draw event that cause an object >> refresh will cause a recursive loop >> BruceS >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Here is a special version Kalender4-Test which uses a special directory > for its calendar data and should run on other systems too. > > You need the archive and the kaltes.tar.gz of the special directory. > Unpack or copy the latter to your $home as $home/.kalendertest/... It > contains only holiday data, everything else is left out, but it runs > this way and maybe shows the problem. > > Hope this helps! > > Regards > Rolf > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I wouldn't like to leave this open, so I add a report what came out. The real reason for this hassle couldn't be found, no-one seems to have been able to find the reason for the three calendar GridViews to fire Data events all the time. So I decided to re-write the Data events in a way the calendar data are written directly into the GridViews. At least this helped. When the calendar is visible now the CPU has holidays. I can only explain this with some of the VBox, HBox or whatever containers listening to - perhaps - mouse events or something like that and refreshing or arranging its contents over and over again. If someone finds the reason I would be glad to know as this might be helpful for the next project... Regards Rolf From brian at westwoodsvcs.com Wed Apr 20 14:44:51 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 05:44:51 -0700 (PDT) Subject: [Gambas-user] Signal and quit issue In-Reply-To: References: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <337718961.44985.1650458691428.JavaMail.zimbra@westwoodsvcs.com> Should I post a bug, or is this a feature? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 19, 2022, at 3:54 PM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 20/04/2022 ? 00:00, Beno?t Minisini a ?crit?: >> Le 19/04/2022 ? 23:59, Beno?t Minisini a ?crit?: >>> Le 19/04/2022 ? 19:07, Brian G a ?crit?: >>>> Here is the program, it does strange things if you run it in the ide >>>> >>>> Build the executable >>>> Run it in bash >>>> do a ctrl-c which does a quit, you will see that quit never returns >>>> and you can resize, and hit ctrl-c as often as you like >>>> it will not quit, seems to hang. >>>> >>>> Maybe you just can not do that from there... >>>> >>>> if you run it a few times in the IDE it will do a segfault 11... but >>>> it all seems pretty random >>>> >>>> Maybe I am doing something wrong, it is generally like the app I had >>>> causing the issue. >>>> Maybe my coding is causing the issue. >>>> >>>> >>>> "Failure is the key to success; >>>> ??each mistake teaches us something" ?.. Morihei Ueshiba >>>> Brian G >>>> >>> >>> I have no problem at all when running your project from a terminal, or >>> from the IDE... No hang at all when QUIT instruction is executed, just >>> the program that quits normally. :-/ >>> >> >> OK, I didn't read your mail carefully. It hangs when hitting CTRL+C, but >> not when typing "quit". >> > > Strange: it seems that only the SIGINT signal (CTRL+C) hangs the > interpreter. Other signals execute the QUIT instruction correctly... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Wed Apr 20 15:18:18 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 06:18:18 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. Message-ID: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> I am confused by this. I have a number of application I use, that run in background all the time. Recently(or so I noticed today) If those apps are running somewhere on the computer. and I am developing/updating the same app in the IDE. When I do a run in the ide, the app never starts, it will open the terminal emulator, but never goes to the first line of the app code If I stop the production(test set) copies of the app running in the background on my computer and then do a run again in the ide, the app runs fine from the ide... Could the IDE be trying to connect to the apps on my system even when I don't select run remotely? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Apr 20 15:29:10 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 06:29:10 -0700 (PDT) Subject: [Gambas-user] export GB_GUI=gb.qt5 not honored when running app inside ide Message-ID: <866587376.45135.1650461350399.JavaMail.zimbra@westwoodsvcs.com> if my .profile contains export GB_GUI=gb.qt5 The when I start the IDE, it will start and work with qt interface, but when I run my app from the IDE it defaults to the environment for my desktop gtk for example and does not honor the export GB_GUI=gb.qt5 in the environment. At least from my testing It seemed to be doing that. Maybe I am wrong. It was a bit confusing as it would look one way while working on it but never the same when I ran it in the IDE. Until I discovered this and set the debug option to choose qt or gtk. Would it not be better to have the IDE execute the App in the same environment/interface it was being developed in by default. Any comments? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Apr 20 16:27:26 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Apr 2022 16:27:26 +0200 Subject: [Gambas-user] export GB_GUI=gb.qt5 not honored when running app inside ide In-Reply-To: <866587376.45135.1650461350399.JavaMail.zimbra@westwoodsvcs.com> References: <866587376.45135.1650461350399.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <592c66b1-5b36-64e2-31b9-2a69fa24f0ef@gmail.com> Le 20/04/2022 ? 15:29, Brian G a ?crit?: > if my .profile contains?export GB_GUI=gb.qt5 > The when I start the IDE, it will start and work with qt interface, but > when I run my app from the IDE it defaults to the environment for my > desktop gtk for example and does not honor the export GB_GUI=gb.qt5 in > the environment. At least from my testing It seemed to be doing that. > Maybe I am wrong. > > It was a bit confusing as it would look one way while working on it but > never the same when I ran it in the IDE. > > Until I discovered this and set the debug option to choose qt or gtk. > > Would it not be better to have the IDE execute the App in the same > environment/interface? it was being developed in by default. > > Any comments? > The 'GB_GUI' environment variable is managed by the IDE, so the one used by the IDE is overridden. I don't think it's a bad thing. It's less ambiguous. -- Beno?t Minisini From g4mba5 at gmail.com Wed Apr 20 16:28:43 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Apr 2022 16:28:43 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> Le 20/04/2022 ? 15:18, Brian G a ?crit?: > I am confused by this. > > I have a number of application I use, that run in background all the > time. Recently(or so I noticed today) > > If those apps are running somewhere on the computer. and I am > developing/updating? the same app in the IDE. > When I do a run in the ide, the app never starts, it will open the > terminal emulator, but never goes to the first line of the app code > If I stop the production(test set) copies of the app running in the > background on my computer and then > do a run again in the ide, the app runs fine from the ide... > > Could the IDE be trying to connect to the apps on my system even when I > don't select run remotely? > By default nothing special is done by the intepreter, so I guess that the behaviour you describe depends on the code you wrote. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed Apr 20 16:30:09 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 20 Apr 2022 16:30:09 +0200 Subject: [Gambas-user] Signal and quit issue In-Reply-To: <337718961.44985.1650458691428.JavaMail.zimbra@westwoodsvcs.com> References: <45469925.44817.1650388077620.JavaMail.zimbra@westwoodsvcs.com> <337718961.44985.1650458691428.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 20/04/2022 ? 14:44, Brian G a ?crit?: > Should I post a bug, or is this a feature? > It's a bug, but I have no idea how and why it occurs. There is no special treatment of SIGINT in the interpreter, so I would guess it's something picky done by Linux I'm not aware of. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Wed Apr 20 16:33:49 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Apr 2022 10:33:49 -0400 Subject: [Gambas-user] Program producing constant load In-Reply-To: References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> Message-ID: On 4/20/22 02:58, Rolf-Werner Eilert wrote: > Am 31.03.22 um 12:56 schrieb Rolf-Werner Eilert: >> Am 30.03.22 um 14:05 schrieb Bruce Steers: >>> >>> >>> On Wed, 30 Mar 2022 at 11:06, Rolf-Werner Eilert > wrote: >>> >>> ??? Am 30.03.22 um 11:32 schrieb Beno?t Minisini: >>> ???? > Le 30/03/2022 ? 10:54, Rolf-Werner Eilert a ?crit?: >>> ???? >> For my office use, I made a remake of my calendar program. >>> ???? >> >>> ???? >> Everything running fine so far, but today I saw that when I have >>> ??? the >>> ???? >> program on the active screen, it produces a constant load of >>> ??? about 40 >>> ???? >> % (the little faker on my desktop has 4 CPUs and Xosview says >>> ??? 1.3 with >>> ???? >> the calendar visible). >>> ???? >> >>> ???? >> top says gbr3 is sucking CPU, but of course no more information. >>> ???? >> >>> ???? >> So my question is, how can I find out what is going on within my >>> ???? >> program? Obviously, there is one event which is fired over and over >>> ???? >> again. >>> ???? >> >>> ???? >> Regards >>> ???? >> Rolf >>> ???? >> >>> ???? > >>> ???? > gbx3 -t displays each ligne executed. It generates a lot of log >>> ??? in the >>> ???? > terminal, but you can see what the program runs exactly. >>> ???? > >>> ???? > Regards, >>> ???? > >>> >>> ??? Oh yes, that shows it clearly: There is a large gridview displaying the >>> ??? hours for each day. Obviously, the gridview constantly fires up the >>> ??? Data >>> ??? event which jumps into one function looking for the school holidays. >>> >>> ??? The question is, why is Data called over and over again? >>> >>> ??? This is an Ubuntu Mate and I chose gb.qt5 and gb.qt5.ext as libraries. >>> ??? May that be the reason? Or should I look for something else? I have >>> ??? other projects running with the same libraries here, they use Gridview >>> ??? as well, and they do not constantly fire the Data event. >>> >>> >>> Lets see the code. >>> I suspect there is some code causing the data event to trigger again within the data event. >>> >>> Like putting any instructions in a _Draw event that cause an object refresh will cause a recursive loop >>> BruceS >>> >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> Here is a special version Kalender4-Test which uses a special directory for its calendar data and should run on other systems >> too. >> >> You need the archive and the kaltes.tar.gz of the special directory. Unpack or copy the latter to your $home as >> $home/.kalendertest/... It contains only holiday data, everything else is left out, but it runs this way and maybe shows the >> problem. >> >> Hope this helps! >> >> Regards >> Rolf >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > I wouldn't like to leave this open, so I add a report what came out. > > The real reason for this hassle couldn't be found, no-one seems to have been able to find the reason for the three calendar > GridViews to fire Data events all the time. > > So I decided to re-write the Data events in a way the calendar data are written directly into the GridViews. At least this > helped. When the calendar is visible now the CPU has holidays. > > I can only explain this with some of the VBox, HBox or whatever containers listening to - perhaps - mouse events or something > like that and refreshing or arranging its contents over and over again. > > If someone finds the reason I would be glad to know as this might be helpful for the next project... > > Regards > Rolf Rolf, I replied to your thread and informed you what is causing the issue back on April 1. Apparently, you did not get that message. See: https://lists.gambas-basic.org/pipermail/user/2022-April/075722.html -- Lee From brian at westwoodsvcs.com Wed Apr 20 16:42:17 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 07:42:17 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> Message-ID: <1542233212.45171.1650465737530.JavaMail.zimbra@westwoodsvcs.com> Perhaps I did not describe what is happening clearly If I create an installable application on my pc using the IDE, Create the install package for that application. Now I take that Install package and install it onto my pc. I start this application running in a bash terminal. I leave this application running in that terminal. Now I start the IDE again, open the original project and decide to make some changes to the app and try to run it in the IDE the IDE will not start the app when i hit go.. it hangs. if it kill the instance of the app running in the bash window now if i try to run the app in the IDE again it works fine and can be debugged. I do not use the remote debug feature. It appears that the IDE sees the app running in the bash session and tries to debug it Even though I did not choose to debug a remote application. This makes it impossible to actually use an app and develop it on the same pc. It appears to be a problem with the IDE being confused. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 20, 2022, at 7:28 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 20/04/2022 ? 15:18, Brian G a ?crit?: >> I am confused by this. >> >> I have a number of application I use, that run in background all the >> time. Recently(or so I noticed today) >> >> If those apps are running somewhere on the computer. and I am >> developing/updating? the same app in the IDE. >> When I do a run in the ide, the app never starts, it will open the >> terminal emulator, but never goes to the first line of the app code >> If I stop the production(test set) copies of the app running in the >> background on my computer and then >> do a run again in the ide, the app runs fine from the ide... >> >> Could the IDE be trying to connect to the apps on my system even when I >> don't select run remotely? >> > > By default nothing special is done by the intepreter, so I guess that > the behaviour you describe depends on the code you wrote. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From t.lee.davidson at gmail.com Wed Apr 20 16:43:23 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Apr 2022 10:43:23 -0400 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> On 4/20/22 09:18, Brian G wrote: > I am confused by this. > > I have a number of application I use, that run in background all the time. Recently(or so I noticed today) > > If those apps are running somewhere on the computer. and I am developing/updating? the same app in the IDE. > When I do a run in the ide, the app never starts, it will open the terminal emulator, but never goes to the first line of the > app code > If I stop the production(test set) copies of the app running in the background on my computer and then > do a run again in the ide, the app runs fine from the ide... > > Could the IDE be trying to connect to the apps on my system even when I don't select run remotely? > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G Without seeing your code to know what it does, we can only guess. Do your apps use Dbus? Do they use lock files? -- Lee From brian at westwoodsvcs.com Wed Apr 20 16:43:46 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 07:43:46 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> Message-ID: <2048040449.45172.1650465826667.JavaMail.zimbra@westwoodsvcs.com> Perhaps I did not describe what is happening clearly If I create an installable application on my pc using the IDE, Create the install package for that application. Now I take that Install package and install it onto my pc. I start this application running in a bash terminal. I leave this application running in that terminal. Now I start the IDE again, open the original project and decide to make some changes to the app and try to run it in the IDE the IDE will not start the app when i hit go.. it hangs. if I kill the instance of the app running in the bash window now if i try to run the app in the IDE again it works fine and can be debugged. I do not use the remote debug feature. It appears that the IDE sees the app running in the bash session and tries to debug it Even though I did not choose to debug a remote application. This makes it impossible to actually use an app and develop it on the same pc. It appears to be a problem with the IDE being confused. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 20, 2022, at 7:28 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 20/04/2022 ? 15:18, Brian G a ?crit?: >> I am confused by this. >> >> I have a number of application I use, that run in background all the >> time. Recently(or so I noticed today) >> >> If those apps are running somewhere on the computer. and I am >> developing/updating? the same app in the IDE. >> When I do a run in the ide, the app never starts, it will open the >> terminal emulator, but never goes to the first line of the app code >> If I stop the production(test set) copies of the app running in the >> background on my computer and then >> do a run again in the ide, the app runs fine from the ide... >> >> Could the IDE be trying to connect to the apps on my system even when I >> don't select run remotely? >> > > By default nothing special is done by the intepreter, so I guess that > the behaviour you describe depends on the code you wrote. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Wed Apr 20 16:49:23 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 07:49:23 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> Message-ID: <1717785105.45197.1650466163079.JavaMail.zimbra@westwoodsvcs.com> No I don't This can easily be demonstrated with any project make an executable in the IDE, Exit the ide , start app executable in a bash terminal. Now restart the IDE, and open that same project, and try to run it in the ide with the app executable running in the bash terminal. the IDE hangs "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 20, 2022, at 7:43 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 4/20/22 09:18, Brian G wrote: >> I am confused by this. >> >> I have a number of application I use, that run in background all the time. >> Recently(or so I noticed today) >> >> If those apps are running somewhere on the computer. and I am >> developing/updating? the same app in the IDE. >> When I do a run in the ide, the app never starts, it will open the terminal >> emulator, but never goes to the first line of the >> app code >> If I stop the production(test set) copies of the app running in the background >> on my computer and then >> do a run again in the ide, the app runs fine from the ide... >> >> Could the IDE be trying to connect to the apps on my system even when I don't >> select run remotely? >> >> "Failure is the key to success; >> ?each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G > > Without seeing your code to know what it does, we can only guess. > > Do your apps use Dbus? Do they use lock files? > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Wed Apr 20 16:57:20 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 07:57:20 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> Message-ID: <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> You can do this with the attached app "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 20, 2022, at 7:43 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 4/20/22 09:18, Brian G wrote: >> I am confused by this. >> >> I have a number of application I use, that run in background all the time. >> Recently(or so I noticed today) >> >> If those apps are running somewhere on the computer. and I am >> developing/updating? the same app in the IDE. >> When I do a run in the ide, the app never starts, it will open the terminal >> emulator, but never goes to the first line of the >> app code >> If I stop the production(test set) copies of the app running in the background >> on my computer and then >> do a run again in the ide, the app runs fine from the ide... >> >> Could the IDE be trying to connect to the apps on my system even when I don't >> select run remotely? >> >> "Failure is the key to success; >> ?each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G > > Without seeing your code to know what it does, we can only guess. > > Do your apps use Dbus? Do they use lock files? > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TestQuit-1.0.10.tar.gz.gmail.txt URL: From brian at westwoodsvcs.com Wed Apr 20 17:08:51 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 08:08:51 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> Message-ID: <210246498.45217.1650467331266.JavaMail.zimbra@westwoodsvcs.com> ----- On Apr 20, 2022, at 7:43 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 4/20/22 09:18, Brian G wrote: >> I am confused by this. >> >> I have a number of application I use, that run in background all the time. >> Recently(or so I noticed today) >> >> If those apps are running somewhere on the computer. and I am >> developing/updating? the same app in the IDE. >> When I do a run in the ide, the app never starts, it will open the terminal >> emulator, but never goes to the first line of the >> app code >> If I stop the production(test set) copies of the app running in the background >> on my computer and then >> do a run again in the ide, the app runs fine from the ide... >> >> Could the IDE be trying to connect to the apps on my system even when I don't >> select run remotely? >> >> "Failure is the key to success; >> ?each mistake teaches us something" ?.. Morihei Ueshiba >> Brian G > > Without seeing your code to know what it does, we can only guess. > > Do your apps use Dbus? Do they use lock files? > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Note, It only happens when using terminal emulation. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G From t.lee.davidson at gmail.com Wed Apr 20 21:08:11 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Apr 2022 15:08:11 -0400 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <2048040449.45172.1650465826667.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> <2048040449.45172.1650465826667.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <933c2ac8-a859-e141-dd2d-ea53fae967b2@gmail.com> On 4/20/22 10:43, Brian G wrote: > Perhaps I did not describe what is happening clearly > > If I create an installable application on my pc using the IDE, > > Create the install package for that application. > > Now I take that Install package and install it onto my pc. > > I start this application running in a bash terminal. I leave this application running in that terminal. > > Now I start the IDE again, open the original project and decide to make some changes to the app and try to run it in the IDE > the IDE will not start the app when i hit go.. it hangs. > > if I kill the instance of the app running in the bash window > > now if i try to run the app in the IDE again it works fine and can be debugged. > > I do not use the remote debug feature. > > It appears that the IDE sees the app running in the bash session and tries to debug it > > Even though I did not choose to debug a remote application. > > This makes it impossible to actually use an app and develop it on the same pc. > > It appears to be a problem with the IDE being confused. > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G Okay, so I: 1. Created and installed an installation package from your TestQuit demo; 2. From a terminal console, executed `testquit` which resides in '/usr/bin' which is in my path; 3. Launched the IDE and loaded the TestQuit project; 4. Changed some code ('Print') and ran the application. It works as expected. It does not hang, and typing 'quit' in the Console successfully quit the app. `lsof` shows that the IDE-executed program has the correct IDE temporary debug files open based on PID. -- Lee [System] Gambas=3.17.2 OperatingSystem=Linux Kernel=5.3.18-150300.59.63-default Architecture=x86_64 Distribution=openSUSE Leap 15.3 Desktop=KDE5 Font=Noto Sans,10 Scale=7 Theme=breeze Language=en_US.UTF-8 Memory=15999M [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.1603.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 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 [Environment] AUDIODRIVER=pulseaudio COLORTERM=1 CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:path=/run//1000/bus DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 FROM_HEADER= GB_GUI=gb.qt5 GPG_TTY=not a tty GTK2_MODULES=unity-gtk-module GTK3_MODULES=unity-gtk-module GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 JAVA_BINDIR=/usr/lib64/jvm/java/bin JAVA_HOME=/usr/lib64/jvm/java JAVA_ROOT=/usr/lib64/jvm/java JDK_HOME=/usr/lib64/jvm/java JRE_HOME=/usr/lib64/jvm/java KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/share/man MINICOM=-c on MORE=-sl OSTYPE=linux PAGER=less PAM_KWALLET5_LOGIN=/run//1000/kwallet5.socket PATH=/.local/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/GNAT/2019/bin PATH_STATIC=/.local/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/GNAT/2019/bin PROFILEREAD=true PWD= PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_LOGGING_RULES=*.debug=false QT_SYSTEM_DIR=/usr/share/desktop-data SDK_HOME=/usr/lib64/jvm/java SDL_AUDIODRIVER=pulse SESSION_MANAGER=local/:@/tmp/.ICE-unix/1883,unix/:/tmp/.ICE-unix/1883 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=**** SSH_ASKPASS=/usr/lib/ssh/ssh-askpass SSH_AUTH_SOCK=/tmp/* TERM=xterm TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= WINDOWMANAGER=/usr/bin/startplasma-x11 XAUTHLOCALHOSTNAME= XAUTHORITY=/.Xauthority XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_RUNTIME_DIR=/run//1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS= XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes force_s3tc_enable=true From brian at westwoodsvcs.com Wed Apr 20 21:57:44 2022 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 20 Apr 2022 12:57:44 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <933c2ac8-a859-e141-dd2d-ea53fae967b2@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> <2048040449.45172.1650465826667.JavaMail.zimbra@westwoodsvcs.com> <933c2ac8-a859-e141-dd2d-ea53fae967b2@gmail.com> Message-ID: <2132620779.45269.1650484664405.JavaMail.zimbra@westwoodsvcs.com> Did you run in a terminal emulator? if it worked then I guess I have some more investigation to do on my system... lol "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 20, 2022, at 12:08 PM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 4/20/22 10:43, Brian G wrote: >> Perhaps I did not describe what is happening clearly >> >> If I create an installable application on my pc using the IDE, >> >> Create the install package for that application. >> >> Now I take that Install package and install it onto my pc. >> >> I start this application running in a bash terminal. I leave this application >> running in that terminal. >> >> Now I start the IDE again, open the original project and decide to make some >> changes to the app and try to run it in the IDE >> the IDE will not start the app when i hit go.. it hangs. >> >> if I kill the instance of the app running in the bash window >> >> now if i try to run the app in the IDE again it works fine and can be debugged. >> >> I do not use the remote debug feature. >> >> It appears that the IDE sees the app running in the bash session and tries to >> debug it >> >> Even though I did not choose to debug a remote application. >> >> This makes it impossible to actually use an app and develop it on the same pc. >> >> It appears to be a problem with the IDE being confused. >> >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G > > Okay, so I: > 1. Created and installed an installation package from your TestQuit demo; > 2. From a terminal console, executed `testquit` which resides in '/usr/bin' > which is in my path; > 3. Launched the IDE and loaded the TestQuit project; > 4. Changed some code ('Print') and ran the application. > > It works as expected. It does not hang, and typing 'quit' in the Console > successfully quit the app. > `lsof` shows that the IDE-executed program has the correct IDE temporary debug > files open based on PID. > > > -- > Lee > > [System] > Gambas=3.17.2 > OperatingSystem=Linux > Kernel=5.3.18-150300.59.63-default > Architecture=x86_64 > Distribution=openSUSE Leap 15.3 > Desktop=KDE5 > Font=Noto Sans,10 > Scale=7 > Theme=breeze > Language=en_US.UTF-8 > Memory=15999M > > [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.1603.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 > 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 > > [Environment] > AUDIODRIVER=pulseaudio > COLORTERM=1 > CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu > CPU=x86_64 > CSHEDIT=emacs > CVS_RSH=ssh > DBUS_SESSION_BUS_ADDRESS=unix:path=/run//1000/bus > DESKTOP_SESSION=/usr/share/xsessions/plasma5 > DISPLAY=:0 > FROM_HEADER= > GB_GUI=gb.qt5 > GPG_TTY=not a tty > GTK2_MODULES=unity-gtk-module > GTK3_MODULES=unity-gtk-module > GTK_IM_MODULE=cedilla > GTK_MODULES=canberra-gtk-module > G_BROKEN_FILENAMES=1 > G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 > HISTSIZE=1000 > HOME= > HOST= > HOSTNAME= > HOSTTYPE=x86_64 > JAVA_BINDIR=/usr/lib64/jvm/java/bin > JAVA_HOME=/usr/lib64/jvm/java > JAVA_ROOT=/usr/lib64/jvm/java > JDK_HOME=/usr/lib64/jvm/java > JRE_HOME=/usr/lib64/jvm/java > KDE_FULL_SESSION=true > KDE_SESSION_UID=1000 > KDE_SESSION_VERSION=5 > LANG=en_US.UTF-8 > LC_ALL=en_US.UTF-8 > LESS=-M -I -R > LESSCLOSE=lessclose.sh %s %s > LESSKEY=/etc/lesskey.bin > LESSOPEN=lessopen.sh %s > LESS_ADVANCED_PREPROCESSOR=no > LOGNAME= > MACHTYPE=x86_64-suse-linux > MAIL=/var/spool/mail/ > MANPATH=/usr/local/man:/usr/share/man > MINICOM=-c on > MORE=-sl > OSTYPE=linux > PAGER=less > PAM_KWALLET5_LOGIN=/run//1000/kwallet5.socket > PATH=/.local/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/GNAT/2019/bin > PATH_STATIC=/.local/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/GNAT/2019/bin > PROFILEREAD=true > PWD= > PYTHONSTARTUP=/etc/pythonstart > QEMU_AUDIO_DRV=pa > QT_AUTO_SCREEN_SCALE_FACTOR=0 > QT_IM_MODULE=xim > QT_IM_SWITCHER=imsw-multi > QT_LOGGING_RULES=*.debug=false > QT_SYSTEM_DIR=/usr/share/desktop-data > SDK_HOME=/usr/lib64/jvm/java > SDL_AUDIODRIVER=pulse > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1883,unix/:/tmp/.ICE-unix/1883 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=**** > SSH_ASKPASS=/usr/lib/ssh/ssh-askpass > SSH_AUTH_SOCK=/tmp/* > TERM=xterm > TZ=:/etc/localtime > UBUNTU_MENUPROXY=1 > USER= > WINDOWMANAGER=/usr/bin/startplasma-x11 > XAUTHLOCALHOSTNAME= > XAUTHORITY=/.Xauthority > XCURSOR_THEME=breeze_cursors > XDG_CONFIG_DIRS=/etc/xdg > XDG_CURRENT_DESKTOP=KDE > XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_RUNTIME_DIR=/run//1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_CLASS= > XDG_SESSION_DESKTOP=KDE > XDG_SESSION_ID=2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB > XMODIFIERS=@im=local > XNLSPATH=/usr/share/X11/nls > XSESSION_IS_UP=yes > force_s3tc_enable=true > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From t.lee.davidson at gmail.com Wed Apr 20 23:09:46 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 20 Apr 2022 17:09:46 -0400 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <2132620779.45269.1650484664405.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <033c5358-913a-08b5-8644-e97325b44f32@gmail.com> <2048040449.45172.1650465826667.JavaMail.zimbra@westwoodsvcs.com> <933c2ac8-a859-e141-dd2d-ea53fae967b2@gmail.com> <2132620779.45269.1650484664405.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 4/20/22 15:57, Brian G wrote: > Did you run in a terminal emulator? I used KDE's Konsole. -- Lee From g4mba5 at gmail.com Thu Apr 21 00:06:38 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Apr 2022 00:06:38 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> Le 20/04/2022 ? 16:57, Brian G a ?crit?: > You can do this with the attached app > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > I tried what you told, and everything works as expected but the CTRL+C problem. Running the executable in another terminal does not interfer at all with the IDE... What's the name of your '*.gambas' executable file? -- Beno?t Minisini From g4mba5 at gmail.com Thu Apr 21 00:08:03 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Apr 2022 00:08:03 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> Message-ID: Le 21/04/2022 ? 00:06, Beno?t Minisini a ?crit?: > > What's the name of your '*.gambas' executable file? > Other question: did you try the "Debug extern process" menu entry before? -- Beno?t Minisini From rwe-sse at osnanet.de Thu Apr 21 08:48:12 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 21 Apr 2022 08:48:12 +0200 Subject: [Gambas-user] Program producing constant load In-Reply-To: References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> Message-ID: <2b43a0ff-28da-5b18-86d9-49d76fa95158@osnanet.de> Am 20.04.22 um 16:33 schrieb T Lee Davidson: > On 4/20/22 02:58, Rolf-Werner Eilert wrote: >> Am 31.03.22 um 12:56 schrieb Rolf-Werner Eilert: >>> Am 30.03.22 um 14:05 schrieb Bruce Steers: >>>> >>>> >>>> On Wed, 30 Mar 2022 at 11:06, Rolf-Werner Eilert >>> > wrote: >>>> >>>> ??? Am 30.03.22 um 11:32 schrieb Beno?t Minisini: >>>> ???? > Le 30/03/2022 ? 10:54, Rolf-Werner Eilert a ?crit?: >>>> ???? >> For my office use, I made a remake of my calendar program. >>>> ???? >> >>>> ???? >> Everything running fine so far, but today I saw that when I >>>> have >>>> ??? the >>>> ???? >> program on the active screen, it produces a constant load of >>>> ??? about 40 >>>> ???? >> % (the little faker on my desktop has 4 CPUs and Xosview says >>>> ??? 1.3 with >>>> ???? >> the calendar visible). >>>> ???? >> >>>> ???? >> top says gbr3 is sucking CPU, but of course no more >>>> information. >>>> ???? >> >>>> ???? >> So my question is, how can I find out what is going on >>>> within my >>>> ???? >> program? Obviously, there is one event which is fired over >>>> and over >>>> ???? >> again. >>>> ???? >> >>>> ???? >> Regards >>>> ???? >> Rolf >>>> ???? >> >>>> ???? > >>>> ???? > gbx3 -t displays each ligne executed. It generates a lot of log >>>> ??? in the >>>> ???? > terminal, but you can see what the program runs exactly. >>>> ???? > >>>> ???? > Regards, >>>> ???? > >>>> >>>> ??? Oh yes, that shows it clearly: There is a large gridview >>>> displaying the >>>> ??? hours for each day. Obviously, the gridview constantly fires up the >>>> ??? Data >>>> ??? event which jumps into one function looking for the school >>>> holidays. >>>> >>>> ??? The question is, why is Data called over and over again? >>>> >>>> ??? This is an Ubuntu Mate and I chose gb.qt5 and gb.qt5.ext as >>>> libraries. >>>> ??? May that be the reason? Or should I look for something else? I have >>>> ??? other projects running with the same libraries here, they use >>>> Gridview >>>> ??? as well, and they do not constantly fire the Data event. >>>> >>>> >>>> Lets see the code. >>>> I suspect there is some code causing the data event to trigger again >>>> within the data event. >>>> >>>> Like putting any instructions in a _Draw event that cause an object >>>> refresh will cause a recursive loop >>>> BruceS >>>> >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> Here is a special version Kalender4-Test which uses a special >>> directory for its calendar data and should run on other systems too. >>> >>> You need the archive and the kaltes.tar.gz of the special directory. >>> Unpack or copy the latter to your $home as $home/.kalendertest/... It >>> contains only holiday data, everything else is left out, but it runs >>> this way and maybe shows the problem. >>> >>> Hope this helps! >>> >>> Regards >>> Rolf >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> I wouldn't like to leave this open, so I add a report what came out. >> >> The real reason for this hassle couldn't be found, no-one seems to >> have been able to find the reason for the three calendar GridViews to >> fire Data events all the time. >> >> So I decided to re-write the Data events in a way the calendar data >> are written directly into the GridViews. At least this helped. When >> the calendar is visible now the CPU has holidays. >> >> I can only explain this with some of the VBox, HBox or whatever >> containers listening to - perhaps - mouse events or something like >> that and refreshing or arranging its contents over and over again. >> >> If someone finds the reason I would be glad to know as this might be >> helpful for the next project... >> >> Regards >> Rolf > > Rolf, > > I replied to your thread and informed you what is causing the issue back > on April 1. Apparently, you did not get that message. > > See: > https://lists.gambas-basic.org/pipermail/user/2022-April/075722.html > > Oh yes, I completely missed all these messages of 1 April, but they are here - thank you so much, I will try to solve it that way. Regards Rolf From bsteers4 at gmail.com Thu Apr 21 12:14:24 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 21 Apr 2022 11:14:24 +0100 Subject: [Gambas-user] ide icon theme setting Message-ID: I just noticed my IDE icon theme that I set to "gnome" was showing monochrome fonts, not the usual colorful ones. So i changed the IDE icon setting from gnome to desktop, as my desktop theme is also set to gnome, then icons show the colored ones. odd. would be cool if the ide setting has an option to use scalable or not. (i assume that's what's happening, it's using the scalable fonts when gnome is explicitly set) Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Apr 21 12:28:48 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 21 Apr 2022 12:28:48 +0200 Subject: [Gambas-user] Program producing constant load In-Reply-To: References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> Message-ID: <514fbd82-4e8d-cfa7-706c-435d1cbb8b40@osnanet.de> Am 20.04.22 um 16:33 schrieb T Lee Davidson: > On 4/20/22 02:58, Rolf-Werner Eilert wrote: >> Am 31.03.22 um 12:56 schrieb Rolf-Werner Eilert: >>> Am 30.03.22 um 14:05 schrieb Bruce Steers: >>>> >>>> >>>> On Wed, 30 Mar 2022 at 11:06, Rolf-Werner Eilert >>> > wrote: >>>> >>>> ??? Am 30.03.22 um 11:32 schrieb Beno?t Minisini: >>>> ???? > Le 30/03/2022 ? 10:54, Rolf-Werner Eilert a ?crit?: >>>> ???? >> For my office use, I made a remake of my calendar program. >>>> ???? >> >>>> ???? >> Everything running fine so far, but today I saw that when I >>>> have >>>> ??? the >>>> ???? >> program on the active screen, it produces a constant load of >>>> ??? about 40 >>>> ???? >> % (the little faker on my desktop has 4 CPUs and Xosview says >>>> ??? 1.3 with >>>> ???? >> the calendar visible). >>>> ???? >> >>>> ???? >> top says gbr3 is sucking CPU, but of course no more >>>> information. >>>> ???? >> >>>> ???? >> So my question is, how can I find out what is going on >>>> within my >>>> ???? >> program? Obviously, there is one event which is fired over >>>> and over >>>> ???? >> again. >>>> ???? >> >>>> ???? >> Regards >>>> ???? >> Rolf >>>> ???? >> >>>> ???? > >>>> ???? > gbx3 -t displays each ligne executed. It generates a lot of log >>>> ??? in the >>>> ???? > terminal, but you can see what the program runs exactly. >>>> ???? > >>>> ???? > Regards, >>>> ???? > >>>> >>>> ??? Oh yes, that shows it clearly: There is a large gridview >>>> displaying the >>>> ??? hours for each day. Obviously, the gridview constantly fires up the >>>> ??? Data >>>> ??? event which jumps into one function looking for the school >>>> holidays. >>>> >>>> ??? The question is, why is Data called over and over again? >>>> >>>> ??? This is an Ubuntu Mate and I chose gb.qt5 and gb.qt5.ext as >>>> libraries. >>>> ??? May that be the reason? Or should I look for something else? I have >>>> ??? other projects running with the same libraries here, they use >>>> Gridview >>>> ??? as well, and they do not constantly fire the Data event. >>>> >>>> >>>> Lets see the code. >>>> I suspect there is some code causing the data event to trigger again >>>> within the data event. >>>> >>>> Like putting any instructions in a _Draw event that cause an object >>>> refresh will cause a recursive loop >>>> BruceS >>>> >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> Here is a special version Kalender4-Test which uses a special >>> directory for its calendar data and should run on other systems too. >>> >>> You need the archive and the kaltes.tar.gz of the special directory. >>> Unpack or copy the latter to your $home as $home/.kalendertest/... It >>> contains only holiday data, everything else is left out, but it runs >>> this way and maybe shows the problem. >>> >>> Hope this helps! >>> >>> Regards >>> Rolf >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> I wouldn't like to leave this open, so I add a report what came out. >> >> The real reason for this hassle couldn't be found, no-one seems to >> have been able to find the reason for the three calendar GridViews to >> fire Data events all the time. >> >> So I decided to re-write the Data events in a way the calendar data >> are written directly into the GridViews. At least this helped. When >> the calendar is visible now the CPU has holidays. >> >> I can only explain this with some of the VBox, HBox or whatever >> containers listening to - perhaps - mouse events or something like >> that and refreshing or arranging its contents over and over again. >> >> If someone finds the reason I would be glad to know as this might be >> helpful for the next project... >> >> Regards >> Rolf > > Rolf, > > I replied to your thread and informed you what is causing the issue back > on April 1. Apparently, you did not get that message. > > See: > https://lists.gambas-basic.org/pipermail/user/2022-April/075722.html > > Just FYI, I changed the whole thing back to Data events and put the header thing into the Sub which prepares them. Now it runs perfectly. So thank you very much again for the help! Regards Rolf From brian at westwoodsvcs.com Thu Apr 21 13:39:52 2022 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 21 Apr 2022 14:39:52 +0300 Subject: [Gambas-user] =?utf-8?q?IDE_Does_Not_execute_App_if_a_copy_of_th?= =?utf-8?q?e_app_is_open_on_the_computer_from_another_source=2E?= In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> Message-ID: <1650541192.574130359@f41.my.com> Hi, after your message, I tried the external debug and yes it works fine , it picks up the version running in the bash console and allows me to debug it. The executable is called TestQuit.gambas that I start and run in the bash console. It still happens, if not using the remote debug feature the Ide does it execute the app inside the ide with the app executable running in the bash terminal.. I guess I need to dive a little deeper into what is happening on my system. -- Thanks Brian G Wednesday, 20 April 2022, 03:09PM -07:00 from Beno?t Minisini g4mba5 at gmail.com : >Le 21/04/2022 ? 00:06, Beno?t Minisini a ?crit?: > > What's the name of your '*.gambas' executable file? > > >Other question: did you try the "Debug extern process" menu entry before? > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Apr 21 14:24:41 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 21 Apr 2022 14:24:41 +0200 Subject: [Gambas-user] Program producing constant load In-Reply-To: <514fbd82-4e8d-cfa7-706c-435d1cbb8b40@osnanet.de> References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> <514fbd82-4e8d-cfa7-706c-435d1cbb8b40@osnanet.de> Message-ID: <51a9ca52-e252-1afb-c2ff-f159370d4b1a@deganius.de> Oh no, please ... can you please read http://gambaswiki.org/wiki/doc/netiquette I have to scroll down three pages of quote to read your answer which has three lines ... that's so annoying: Am 21.04.22 um 12:28 schrieb Rolf-Werner Eilert: > Am 20.04.22 um 16:33 schrieb T Lee Davidson: >> On 4/20/22 02:58, Rolf-Werner Eilert wrote: >>> Am 31.03.22 um 12:56 schrieb Rolf-Werner Eilert: >>>> Am 30.03.22 um 14:05 schrieb Bruce Steers: >>>>> >>>>> >>>>> On Wed, 30 Mar 2022 at 11:06, Rolf-Werner Eilert >>>> > wrote: >>>>> >>>>> ??? Am 30.03.22 um 11:32 schrieb Beno?t Minisini: >>>>> ???? > Le 30/03/2022 ? 10:54, Rolf-Werner Eilert a ?crit?: >>>>> ???? >> For my office use, I made a remake of my calendar program. >>>>> ???? >> >>>>> ???? >> Everything running fine so far, but today I saw that when I >>>>> have >>>>> ??? the >>>>> ???? >> program on the active screen, it produces a constant load of >>>>> ??? about 40 >>>>> ???? >> % (the little faker on my desktop has 4 CPUs and Xosview says >>>>> ??? 1.3 with >>>>> ???? >> the calendar visible). >>>>> ???? >> >>>>> ???? >> top says gbr3 is sucking CPU, but of course no more >>>>> information. >>>>> ???? >> >>>>> ???? >> So my question is, how can I find out what is going on >>>>> within my >>>>> ???? >> program? Obviously, there is one event which is fired over >>>>> and over >>>>> ???? >> again. >>>>> ???? >> >>>>> ???? >> Regards >>>>> ???? >> Rolf >>>>> ???? >> >>>>> ???? > >>>>> ???? > gbx3 -t displays each ligne executed. It generates a lot of log >>>>> ??? in the >>>>> ???? > terminal, but you can see what the program runs exactly. >>>>> ???? > >>>>> ???? > Regards, >>>>> ???? > >>>>> >>>>> ??? Oh yes, that shows it clearly: There is a large gridview >>>>> displaying the >>>>> ??? hours for each day. Obviously, the gridview constantly fires up the >>>>> ??? Data >>>>> ??? event which jumps into one function looking for the school >>>>> holidays. >>>>> >>>>> ??? The question is, why is Data called over and over again? >>>>> >>>>> ??? This is an Ubuntu Mate and I chose gb.qt5 and gb.qt5.ext as >>>>> libraries. >>>>> ??? May that be the reason? Or should I look for something else? I have >>>>> ??? other projects running with the same libraries here, they use >>>>> Gridview >>>>> ??? as well, and they do not constantly fire the Data event. >>>>> >>>>> >>>>> Lets see the code. >>>>> I suspect there is some code causing the data event to trigger again >>>>> within the data event. >>>>> >>>>> Like putting any instructions in a _Draw event that cause an object >>>>> refresh will cause a recursive loop >>>>> BruceS >>>>> >>>>> >>>>> >>>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>>> Here is a special version Kalender4-Test which uses a special >>>> directory for its calendar data and should run on other systems too. >>>> >>>> You need the archive and the kaltes.tar.gz of the special directory. >>>> Unpack or copy the latter to your $home as $home/.kalendertest/... It >>>> contains only holiday data, everything else is left out, but it runs >>>> this way and maybe shows the problem. >>>> >>>> Hope this helps! >>>> >>>> Regards >>>> Rolf >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> I wouldn't like to leave this open, so I add a report what came out. >>> >>> The real reason for this hassle couldn't be found, no-one seems to >>> have been able to find the reason for the three calendar GridViews to >>> fire Data events all the time. >>> >>> So I decided to re-write the Data events in a way the calendar data >>> are written directly into the GridViews. At least this helped. When >>> the calendar is visible now the CPU has holidays. >>> >>> I can only explain this with some of the VBox, HBox or whatever >>> containers listening to - perhaps - mouse events or something like >>> that and refreshing or arranging its contents over and over again. >>> >>> If someone finds the reason I would be glad to know as this might be >>> helpful for the next project... >>> >>> Regards >>> Rolf >> >> Rolf, >> >> I replied to your thread and informed you what is causing the issue back >> on April 1. Apparently, you did not get that message. >> >> See: >> https://lists.gambas-basic.org/pipermail/user/2022-April/075722.html >> >> > > Just FYI, I changed the whole thing back to Data events and put the > header thing into the Sub which prepares them. Now it runs perfectly. > > So thank you very much again for the help! > > Regards > Rolf > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- You really don't need to quote everything because it is already written in the ML. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Thu Apr 21 15:21:22 2022 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 21 Apr 2022 06:21:22 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> Message-ID: <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> ----- On Apr 20, 2022, at 3:08 PM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 21/04/2022 ? 00:06, Beno?t Minisini a ?crit?: >> >> What's the name of your '*.gambas' executable file? >> > > Other question: did you try the "Debug extern process" menu entry before? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi Ben, ??Sorry to flog this to death, but here is what I found in my investigation so far. ??1) Starting the TestQuit.gambas from with a bash session does not always show the issue ??2) To create the issue every time I created an executable in my home directory ??3) I launch executable such that it runs natively from a terminal with this command: ?? ? ? ? ?mate-terminal -x TestQuit.gambas & ??4) I start the IDE and open the TestQuit.gambas project ??5) I set the IDE to use the terminal emulator - mine uses mate-terminal by default ??6) I Attempt to start/run the TestQuit project in the ide using the run option ??6) The IDE opens the emulated terminal, does not start the app and exits the run option leaving the terminal emulator open. ??7) I have since discovered that this happens in my testing and is reliably repeatable running any app natively inside a terminal ?(i.e. without the bash shell) so far that are using signals. ??8) This does not occur if you do not use the terminal emulation and allow the project to run in the IDE console. Then they co-exist happily. ??9) I verified the IDE starting to run the project by placing a breakpoint in the first executable line of the TestQuit project. I hope this helps you create the issue locally Thanks From g4mba5 at gmail.com Thu Apr 21 15:35:39 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Apr 2022 15:35:39 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 21/04/2022 ? 15:21, Brian G a ?crit?: > > Hi Ben, > > ??Sorry to flog this to death, but here is what I found in my investigation so far. > > ??1) Starting the TestQuit.gambas from with a bash session does not always show the issue > ??2) To create the issue every time I created an executable in my home directory > ??3) I launch executable such that it runs natively from a terminal with this command: > > ?? ? ? ? ?mate-terminal -x TestQuit.gambas & > > ??4) I start the IDE and open the TestQuit.gambas project > ??5) I set the IDE to use the terminal emulator - mine uses mate-terminal by default > ??6) I Attempt to start/run the TestQuit project in the ide using the run option > ??6) The IDE opens the emulated terminal, does not start the app and exits the run option leaving the terminal emulator open. > ??7) I have since discovered that this happens in my testing and is reliably repeatable running any app natively inside a terminal ?(i.e. without the bash shell) so far that are using signals. > > ??8) This does not occur if you do not use the terminal emulation and allow the project to run in the IDE console. Then they co-exist happily. > > ??9) I verified the IDE starting to run the project by placing a breakpoint in the first executable line of the TestQuit project. > > I hope this helps you create the issue locally > > Thanks > Does it occur if you use a different external terminal than 'mate-terminal'? The IDE and the debugger embedded inside the running process communicate using a specific signal (SIGUSR2). -- Beno?t Minisini From brian at westwoodsvcs.com Thu Apr 21 15:59:11 2022 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 21 Apr 2022 06:59:11 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> ----- On Apr 21, 2022, at 6:35 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > Le 21/04/2022 ? 15:21, Brian G a ?crit?: > > Does it occur if you use a different external terminal than 'mate-terminal'? > > The IDE and the debugger embedded inside the running process communicate > using a specific signal (SIGUSR2). > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Lol, Good point It only happens if the ide/emulation and the Stand alone app both use mate-terminal or both use xfce4-terminal all others work fine.. even if you mix them mate-xfce4 or xfc4-mate it does not happen. So my mate system defaulting to mate-terminal caused me this issue, gee I wonder if this can somehow be fixed, as it is a little confusing. Thanks Ben From bagonergi at gmail.com Thu Apr 21 18:00:01 2022 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 21 Apr 2022 18:00:01 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <253c9ac2-cbed-3ce9-80fe-e595e054feaa@gmail.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Il giorno gio 21 apr 2022 alle ore 16:00 Brian G ha scritto: > > ----- On Apr 21, 2022, at 6:35 AM, Beno?t Minisini g4mba5 at gmail.com wrote: > > > Le 21/04/2022 ? 15:21, Brian G a ?crit : > > > > > Does it occur if you use a different external terminal than > 'mate-terminal'? > > > > The IDE and the debugger embedded inside the running process communicate > > using a specific signal (SIGUSR2). > > > > -- > > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Lol, Good point > > It only happens if the ide/emulation and the Stand alone app > both use mate-terminal or both use xfce4-terminal all others work fine.. > > even if you mix them mate-xfce4 or xfc4-mate it does not happen. > > So my mate system defaulting to mate-terminal caused me this issue, gee > > I wonder if this can somehow be fixed, as it is a little confusing. > > Thanks Ben > > Hi, Sorry but I didn't follow the discussion, just reporting that here the code works fine :-) Both in the ide and in my bash shell with this code: (Sub endprogram() Signal[Signal.sigtstp].Ignore Signal[Signal.sigterm].ignore signal[Signal.SIGINT].ignore Signal[Signal.SIGHUP].ignore Signal[Signal.SIGWINCH].ignore Debug "Ending the program" 'Stop Quit 0 End) $ gbr3 TestQuit.gambas Main.Main.16: Hello world quit Main.Endprogram.69: Ending the program ---------------------------------------- And with this code: (Sub endprogram() Signal[Signal.sigtstp].Ignore Signal[Signal.sigterm].ignore signal[Signal.SIGINT].ignore Signal[Signal.SIGHUP].ignore Signal[Signal.SIGWINCH].ignore Debug "Ending the program" 'Stop Quit End) $ gbr3 TestQuit2.gambas Main.Main.16: Hello world quit Main.Endprogram.69: Ending the program Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Apr 21 20:02:37 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 21 Apr 2022 19:02:37 +0100 Subject: [Gambas-user] ide icon theme setting In-Reply-To: References: Message-ID: Dag nab it, not fonts ! replace the word "font" with "icon" in that message. I'm only referring to the IDE icon theme. #NotEnoughCoffee BruceS On Thu, 21 Apr 2022 at 11:14, Bruce Steers wrote: > I just noticed my IDE icon theme that I set to "gnome" was showing > monochrome fonts, not the usual colorful ones. > > So i changed the IDE icon setting from gnome to desktop, as my desktop > theme is also set to gnome, then icons show the colored ones. > > odd. > would be cool if the ide setting has an option to use scalable or not. > (i assume that's what's happening, it's using the scalable fonts when > gnome is explicitly set) > > Respects > BruceS > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Apr 21 20:02:57 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Apr 2022 14:02:57 -0400 Subject: [Gambas-user] Program producing constant load In-Reply-To: <51a9ca52-e252-1afb-c2ff-f159370d4b1a@deganius.de> References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> <514fbd82-4e8d-cfa7-706c-435d1cbb8b40@osnanet.de> <51a9ca52-e252-1afb-c2ff-f159370d4b1a@deganius.de> Message-ID: <56548923-4674-6df1-1f72-21209f73f809@gmail.com> On 4/21/22 08:24, Christof Thalhofer wrote: > You really don't need to quote everything because it is already written in?the?ML. > > Alles?Gute > > Christof?Thalhofer > > -- > Dies?ist?keine?Signatur Right. Just quote the relevant part(s). :-) -- Lee From g4mba5 at gmail.com Thu Apr 21 20:10:43 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Apr 2022 20:10:43 +0200 Subject: [Gambas-user] Program producing constant load In-Reply-To: <56548923-4674-6df1-1f72-21209f73f809@gmail.com> References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> <514fbd82-4e8d-cfa7-706c-435d1cbb8b40@osnanet.de> <51a9ca52-e252-1afb-c2ff-f159370d4b1a@deganius.de> <56548923-4674-6df1-1f72-21209f73f809@gmail.com> Message-ID: <793b6255-de4e-a0d8-843b-f530f24d90eb@gmail.com> Le 21/04/2022 ? 20:02, T Lee Davidson a ?crit?: > On 4/21/22 08:24, Christof Thalhofer wrote: >> You really don't need to quote everything because it is already >> written in?the?ML. >> >> Alles?Gute >> >> Christof?Thalhofer >> >> -- >> Dies?ist?keine?Signatur > > Right. Just quote the relevant part(s). :-) > > Noone wants to write a Thunderbird replacement in Gambas which would have less bugs and be able to reply intelligently to mailing-lists? :-) -- Beno?t Minisini From brian at westwoodsvcs.com Thu Apr 21 20:04:47 2022 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 21 Apr 2022 11:04:47 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> >> Lol, Good point >> It only happens if the ide/emulation and the Stand alone app >> both use mate-terminal or both use xfce4-terminal all others work fine.. >> even if you mix them mate-xfce4 or xfc4-mate it does not happen. >> So my mate system defaulting to mate-terminal caused me this issue, gee >> I wonder if this can somehow be fixed, as it is a little confusing. >> Thanks Ben > Hi, > Sorry but I didn't follow the discussion, just reporting that here the code > works fine :-) > Both in the ide and in my bash shell with this code: Yea it is random if you run it inside bash shell it fails if you run it as native app inside the emulated terminal: mate-terminal -x TestQuit.gambas & It turns out that it only happens when using mate-terminal or xfce4-terminal None of the other emulators cause the issue. Even more detail ....... It only happens if both the standalone execution and IDE execution both use the same emulator that being the mate-terminal or xfce4-terminal emulator. This is new discovery of course since mate-terminal and xfce4-terminal did not work correctly as emulators in the IDE. And in the past the IDE defaulted to something else. Oh Well..... -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Apr 21 21:18:00 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Apr 2022 15:18:00 -0400 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 4/21/22 14:04, Brian G wrote: > It turns out that it only happens when using mate-terminal or xfce4-terminal > > None of the other emulators cause the issue. > > Even more detail ....... > > It only happens if both the standalone execution and IDE execution both use the same emulator? that being the? mate-terminal or > xfce4-terminal emulator. I did not fully understand what you were asking previously, Brian, when you asked if I used terminal emulation. I used Konsole which is a terminal emulator, so, yes, I did use terminal emulation. But, I did not use terminal emulation *within the IDE*. I have now tried that. The IDE defaults to using Konsole (I don't see any way to configure my preferred emulator within the IDE), and the program works as expected even with another copy running independently in a separate Konsole. BTW, Beno?t, Ctrl-C works on my system giving a signal Const of Integer = 2. This leads me to believe that the example on the wiki[1] is incorrect when it shows to catch CTRL+C in a terminal with, "Signal[Signal.SIGTERM].Catch". I don't know who authored that nor the reason for that particular text. Am I right in thinking it should be "Signal[Signal.SIGINT].Catch"? -- Lee [1] http://gambaswiki.org/edit/comp/gb.signal From g4mba5 at gmail.com Thu Apr 21 21:24:58 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Apr 2022 21:24:58 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <5d0e8d19-64c2-d494-2e9b-3b498560765f@gmail.com> Le 21/04/2022 ? 21:18, T Lee Davidson a ?crit?: > > BTW, Beno?t, Ctrl-C works on my system giving a signal Const of Integer > = 2. This leads me to believe that the example on the wiki[1] is > incorrect when it shows to catch CTRL+C in a terminal with, > "Signal[Signal.SIGTERM].Catch". I don't know who authored that nor the > reason for that particular text. Am I right in thinking it should be > "Signal[Signal.SIGINT].Catch"? > Yes, I guess it's a mistake of mine. -- Beno?t Minisini From bagonergi at gmail.com Thu Apr 21 23:39:12 2022 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 21 Apr 2022 23:39:12 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> Message-ID: > > > Yea it is random if you run it inside bash shell it fails if you run it as > native app inside the emulated terminal: > > mate-terminal -x TestQuit.gambas & > > It turns out that it only happens when using mate-terminal or > xfce4-terminal > > None of the other emulators cause the issue. > > Even more detail ....... > > It only happens if both the standalone execution and IDE execution both > use the same emulator that being the mate-terminal or xfce4-terminal > emulator. > > This is new discovery of course since mate-terminal and xfce4-terminal did > not work correctly as emulators in the IDE. And in the past the IDE > defaulted to something else. > > Oh Well..... > But you mean by calling the terminal in that way: Shell System.Find("mate-terminal") & "gbr3 ..." ? (no -x) Ctrl+C stops program Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Apr 21 23:54:44 2022 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 21 Apr 2022 14:54:44 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> ----- On Apr 21, 2022, at 2:39 PM, Gianluigi wrote: > But you mean by calling the terminal in that way: Shell > System.Find("mate-terminal") & "gbr3 ..." ? (no -x) > Ctrl+C stops program > Regards > Gianluigi > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- In the latest daily, you can set it under debug properties, select terminal emulation and set the emulator to use In the old interface the emulator to use was located under the Tools->properties and in there look at the help&applications In the old interface mate and xfce terminal emulation did not work. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Apr 22 00:25:41 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 21 Apr 2022 23:25:41 +0100 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On Thu, 21 Apr 2022, 19:21 Brian G, wrote > Yea it is random if you run it inside bash shell it fails if you run it as > native app inside the emulated terminal: > > mate-terminal -x TestQuit.gambas & > > It turns out that it only happens when using mate-terminal or > xfce4-terminal > I had unexpected behaviour using & to run a command and keep the terminal active. I think using '& false' worked better. Do you get same behaviour not using & BruceS > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Apr 22 00:55:01 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Apr 2022 18:55:01 -0400 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <5d0e8d19-64c2-d494-2e9b-3b498560765f@gmail.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <1047775578.45206.1650466640667.JavaMail.zimbra@westwoodsvcs.com> <79d809ea-6cd5-fdaf-cce0-6c0cb2e98bd0@gmail.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> <5d0e8d19-64c2-d494-2e9b-3b498560765f@gmail.com> Message-ID: <8d123c9d-cd28-c814-b9d6-8a22f05b3788@gmail.com> On 4/21/22 15:24, Beno?t Minisini wrote: > Le 21/04/2022 ? 21:18, T Lee Davidson a ?crit?: >> >> BTW, Beno?t, Ctrl-C works on my system giving a signal Const of Integer = 2. This leads me to believe that the example on the >> wiki[1] is incorrect when it shows to catch CTRL+C in a terminal with, "Signal[Signal.SIGTERM].Catch". I don't know who >> authored that nor the reason for that particular text. Am I right in thinking it should be "Signal[Signal.SIGINT].Catch"? >> > > Yes, I guess it's a mistake of mine. > Okay. Corrected. -- Lee From t.lee.davidson at gmail.com Fri Apr 22 01:11:34 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 21 Apr 2022 19:11:34 -0400 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <71328969-e4a3-89ac-acbc-b259fd75baa9@gmail.com> On 4/21/22 17:54, Brian G wrote: > In the old interface the emulator to use was located under the Tools->properties > and in there look at the help&applications > Ah. Thank you for that info. Since I have 'xterm' installed, I went into "Tools->Preferences->Help & applications" and set the terminal to "XTerm". Unfortunately, though, I cannot test it with that configuration because it still launches Konsole. Output from `strace` indicates that the IDE is looking for 'lxterminal' instead of 'xterm'. -- Lee From bagonergi at gmail.com Fri Apr 22 01:40:04 2022 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 22 Apr 2022 01:40:04 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Il giorno gio 21 apr 2022 alle ore 23:55 Brian G ha scritto: > > > In the latest daily, you can set it under debug properties, select > terminal emulation and set the emulator to use > > In the old interface the emulator to use was located under the > Tools->properties > and in there look at the help&applications > > In the old interface mate and xfce terminal emulation did not work. > But are you sure you have mate-terminal, have you tried to launch it from the default terminal? Anyway to launch the terminal you want just open a new Command-line project and type in: Public Sub Main() Shell System.Find("mate-terminal") ' or "xterm" etc. End Then use the command gbr3 . Good night Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Apr 22 08:05:55 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 22 Apr 2022 08:05:55 +0200 Subject: [Gambas-user] Program producing constant load In-Reply-To: <793b6255-de4e-a0d8-843b-f530f24d90eb@gmail.com> References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> <514fbd82-4e8d-cfa7-706c-435d1cbb8b40@osnanet.de> <51a9ca52-e252-1afb-c2ff-f159370d4b1a@deganius.de> <56548923-4674-6df1-1f72-21209f73f809@gmail.com> <793b6255-de4e-a0d8-843b-f530f24d90eb@gmail.com> Message-ID: <6a75d29a-d64f-a586-9a11-355ceb315f58@deganius.de> Am 21.04.22 um 20:10 schrieb Beno?t Minisini: > Noone wants to write a Thunderbird replacement in Gambas which would > have less bugs and be able to reply intelligently to mailing-lists? > > :-) Good idea! We could also introduce a payment system that charges Bitcoin micro-payments for each additional line of quotes starting from the tenth line. With the astronomical profits, we can then fund the development of an AI system that controls an artificial intelligent delete finger attached to an exoskeleton. ;-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Fri Apr 22 09:06:53 2022 From: adamnt42 at gmail.com (bb) Date: Fri, 22 Apr 2022 16:36:53 +0930 Subject: [Gambas-user] Program producing constant load In-Reply-To: <6a75d29a-d64f-a586-9a11-355ceb315f58@deganius.de> References: <57c6537b-8b05-d3b1-2bba-8c4d9d1f1277@osnanet.de> <7afabe89-e7f7-30ff-1ffc-87ca28e4974c@osnanet.de> <514fbd82-4e8d-cfa7-706c-435d1cbb8b40@osnanet.de> <51a9ca52-e252-1afb-c2ff-f159370d4b1a@deganius.de> <56548923-4674-6df1-1f72-21209f73f809@gmail.com> <793b6255-de4e-a0d8-843b-f530f24d90eb@gmail.com> <6a75d29a-d64f-a586-9a11-355ceb315f58@deganius.de> Message-ID: <395cff1467d53eba425d486d2b81ac59ef824365.camel@gmail.com> On Fri, 2022-04-22 at 08:05 +0200, Christof Thalhofer wrote: > Good idea! We could also introduce a payment system that charges > Bitcoin > micro-payments for each additional line of quotes starting from the > tenth line. > > With the astronomical profits, we can then fund the development of an > AI > system that controls an artificial intelligent delete finger attached > to > an exoskeleton. > Interesting post, exactly 10 lines long. ?? b From bagonergi at gmail.com Fri Apr 22 10:50:26 2022 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 22 Apr 2022 10:50:26 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <596040243.45383.1650547282940.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Il giorno ven 22 apr 2022 alle ore 01:40 Gianluigi ha scritto: > > > Il giorno gio 21 apr 2022 alle ore 23:55 Brian G > ha scritto: > >> >> >> In the latest daily, you can set it under debug properties, select >> terminal emulation and set the emulator to use >> >> In the old interface the emulator to use was located under the >> Tools->properties >> and in there look at the help&applications >> >> In the old interface mate and xfce terminal emulation did not work. >> > > But are you sure you have mate-terminal, have you tried to launch it from > the default terminal? > > Anyway to launch the terminal you want just open a new Command-line > project and type in: > Public Sub Main() > > Shell System.Find("mate-terminal") ' or "xterm" etc. > > End > Then use the command gbr3 . > Hi Brian, I am trying to understand and to do so I am attaching here a compressed video of how I tried your test. Can you tell me if I am off track? https://paste.c-net.org/SuspectsScottish Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri Apr 22 18:03:06 2022 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 22 Apr 2022 09:03:06 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1540883761.45807.1650643386661.JavaMail.zimbra@westwoodsvcs.com> You can not use shell as it runs the process inside a bash shell! to repeat this you must have installed from the Daily ppa which supports all of the terminal types. you must have the ide start mate or xfce4 as the terminal emulator. And start the app inside the IDE using that emulator. Before you start the IDE running You must first start the app as the native app of the same terminal emulation used by the IDE Hence running mate-terminal -x TestQuit.gambas & this creates a completely native copy of the app inside a terminal emulation. Note: the latest version of gambas3 from the daily ppa is the only version that allows to run all of the emulators correctly "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 22, 2022, at 1:50 AM, Gianluigi wrote: > Il giorno ven 22 apr 2022 alle ore 01:40 Gianluigi < [ > mailto:bagonergi at gmail.com | bagonergi at gmail.com ] > ha scritto: >> Il giorno gio 21 apr 2022 alle ore 23:55 Brian G < [ >> mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > ha scritto: >>> In the latest daily, you can set it under debug properties, select terminal >>> emulation and set the emulator to use >>> In the old interface the emulator to use was located under the Tools->properties >>> and in there look at the help&applications >>> In the old interface mate and xfce terminal emulation did not work. >> But are you sure you have mate-terminal, have you tried to launch it from the >> default terminal? >> Anyway to launch the terminal you want just open a new Command-line project and >> type in: >> Public Sub Main() >> Shell System.Find("mate-terminal") ' or "xterm" etc. >> End >> Then use the command gbr3 . > Hi Brian, > I am trying to understand and to do so I am attaching here a compressed video of > how I tried your test. > Can you tell me if I am off track? > [ https://paste.c-net.org/SuspectsScottish | > https://paste.c-net.org/SuspectsScottish ] > Regards > Gianluigi > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Fri Apr 22 18:26:58 2022 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 22 Apr 2022 09:26:58 -0700 (PDT) Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <335283971.45841.1650644818224.JavaMail.zimbra@westwoodsvcs.com> Here is a video of the issue https://drive.google.com/file/d/1GM3CLTNyBMD0vqRfAMJV9lH7KVKtAtzk/view?usp=sharing "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 22, 2022, at 1:50 AM, Gianluigi wrote: > Il giorno ven 22 apr 2022 alle ore 01:40 Gianluigi < [ > mailto:bagonergi at gmail.com | bagonergi at gmail.com ] > ha scritto: >> Il giorno gio 21 apr 2022 alle ore 23:55 Brian G < [ >> mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > ha scritto: >>> In the latest daily, you can set it under debug properties, select terminal >>> emulation and set the emulator to use >>> In the old interface the emulator to use was located under the Tools->properties >>> and in there look at the help&applications >>> In the old interface mate and xfce terminal emulation did not work. >> But are you sure you have mate-terminal, have you tried to launch it from the >> default terminal? >> Anyway to launch the terminal you want just open a new Command-line project and >> type in: >> Public Sub Main() >> Shell System.Find("mate-terminal") ' or "xterm" etc. >> End >> Then use the command gbr3 . > Hi Brian, > I am trying to understand and to do so I am attaching here a compressed video of > how I tried your test. > Can you tell me if I am off track? > [ https://paste.c-net.org/SuspectsScottish | > https://paste.c-net.org/SuspectsScottish ] > Regards > Gianluigi > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Sat Apr 23 01:42:11 2022 From: roberto.premoli at tiscali.it (roberto.premoli at tiscali.it) Date: Sat, 23 Apr 2022 01:42:11 +0200 Subject: [Gambas-user] =?utf-8?q?how_to_remote_code_gambas_3=2E17=2Ex_usi?= =?utf-8?q?ng_ssh=3F?= Message-ID: <4ef57a78ba2a5b4782d706cdbce96c3b@tiscali.it> hi, recently (3.13.0) Mr. Minisini kindly implemented "remote controll" via ssh to permit to code on PC_A from PC_B (in my case PC_A = pinephone and PC_B = my_desktop). I waited till 3.17.3 arrived on my distro, Now, the question is: how to do that features? What commna I have to run on the two devices to make them "see" one the other? thanks, Roberto Voucher MISE per P.IVA e PMI: fino a 2500? per la Banda Ultralarga. https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/?r=TS00000A00025&dm=link&p=tiscali&utm_source=tiscali&utm_medium=link&utm_campaign=voucherbusiness&wt_np=tiscali.link.footermail.voucherbusiness.btb.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Apr 24 00:13:57 2022 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 24 Apr 2022 00:13:57 +0200 Subject: [Gambas-user] IDE Does Not execute App if a copy of the app is open on the computer from another source. In-Reply-To: <335283971.45841.1650644818224.JavaMail.zimbra@westwoodsvcs.com> References: <706155891.45043.1650460698335.JavaMail.zimbra@westwoodsvcs.com> <680031633.45397.1650549551243.JavaMail.zimbra@westwoodsvcs.com> <160252627.45535.1650564287702.JavaMail.zimbra@westwoodsvcs.com> <1717635119.45639.1650578084313.JavaMail.zimbra@westwoodsvcs.com> <335283971.45841.1650644818224.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Il giorno ven 22 apr 2022 alle ore 18:29 Brian G ha scritto: > Here is a video of the issue > > > https://drive.google.com/file/d/1GM3CLTNyBMD0vqRfAMJV9lH7KVKtAtzk/view?usp=sharing > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > Hi Brian, Thank you very much and I apologize for the delay in responding to you. Unfortunately I had problems on the line and only now they are resolved. I finally understood what I had to do and like you I get the same (bad) functioning. Thanks again and good night Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Sun Apr 24 11:39:19 2022 From: isafiur at gmail.com (Safiur Rahman) Date: Sun, 24 Apr 2022 15:24:19 +0545 Subject: [Gambas-user] WebTree shows "Class name hidden by local declaration" on compiling Message-ID: Hi Beno?t When I use both collection and WebTree_Data in a webform, I get a message "Class name hidden by local declaration: Key" on compiling. Private sColl As Collection Public Sub WebTree1_Data(Key As String, Column As Integer, Data As WebTreeData) If Column = 1 Then Data.Html = sColl[Key] Endif End (Attached a project to reproduce it) -- Regards Safiur Rahman -------------- next part -------------- A non-text attachment was scrubbed... Name: webtree.tar.xz Type: application/x-xz Size: 12672 bytes Desc: not available URL: From adamnt42 at gmail.com Sun Apr 24 11:44:25 2022 From: adamnt42 at gmail.com (bb) Date: Sun, 24 Apr 2022 19:14:25 +0930 Subject: [Gambas-user] WebTree shows "Class name hidden by local declaration" on compiling In-Reply-To: References: Message-ID: On Sun, 2022-04-24 at 15:24 +0545, Safiur Rahman wrote: > "Class name hidden by local declaration: Key" This is not a problem, it is just warning you that "Key" is a Gambas name for a class, to wit the "Key" class. It is just issued so that if you expect to use the Key class in that routine, it aint gonna work. You can ignore that warning if you dont do that. b From bsteers4 at gmail.com Sun Apr 24 17:29:45 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 24 Apr 2022 16:29:45 +0100 Subject: [Gambas-user] WebTree shows "Class name hidden by local declaration" on compiling In-Reply-To: References: Message-ID: It's because "Key" is a class name also, You can use parentheses to make the name Key local to the method Ie... Private sColl As Collection Public Sub WebTree1_Data((Key) As String, Column As Integer, Data As WebTreeData) If Column = 1 Then Data.Html = sColl[Key] Endif End On Sun, 24 Apr 2022 at 10:40, Safiur Rahman wrote: > Hi Beno?t > > When I use both collection and WebTree_Data in a webform, I get a > message "Class name hidden by local declaration: Key" on compiling. > > Private sColl As Collection > > Public Sub WebTree1_Data(Key As String, Column As Integer, Data As > WebTreeData) > > If Column = 1 Then > Data.Html = sColl[Key] > Endif > > End > > (Attached a project to reproduce it) > > -- > Regards > Safiur Rahman > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Apr 24 17:57:05 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 24 Apr 2022 11:57:05 -0400 Subject: [Gambas-user] WebTree shows "Class name hidden by local declaration" on compiling In-Reply-To: References: Message-ID: <5da56d71-ff82-9214-86ea-1450cf3ee2fd@gmail.com> On 4/24/22 11:29, Bruce Steers wrote: > You can use parentheses to make the name Key local to the method > Ie... > > Private sColl As Collection > > Public Sub WebTree1_Data((Key) As String, Column As Integer, Data As WebTreeData) > > ? If Column = 1 Then > ? ? Data.Html = sColl[Key] > ? Endif > > End You could also simply use a different parameter name if the warning bothers you, eg. : Public Sub WebTree1_Data(Index As String, Column As Integer, Data As WebTreeData) -- Lee From rwe-sse at osnanet.de Mon Apr 25 10:11:29 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 25 Apr 2022 10:11:29 +0200 Subject: [Gambas-user] Does gb.crypt only handle passwords? Message-ID: <6b92f05e-2f1b-a2fc-5d97-628cce6bc10a@osnanet.de> According to the help texts, gb.crypt is made for handling passwords. What I need is a way crypting really long strings (kB, MB...) with some key string, is this possible too? Or if too slow, maybe there is another gb library I didn't recognize? Thank you for your hints. Regards Rolf From bagonergi at gmail.com Mon Apr 25 10:54:36 2022 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 25 Apr 2022 10:54:36 +0200 Subject: [Gambas-user] Does gb.crypt only handle passwords? In-Reply-To: <6b92f05e-2f1b-a2fc-5d97-628cce6bc10a@osnanet.de> References: <6b92f05e-2f1b-a2fc-5d97-628cce6bc10a@osnanet.de> Message-ID: Il giorno lun 25 apr 2022 alle ore 10:12 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > According to the help texts, gb.crypt is made for handling passwords. > > What I need is a way crypting really long strings (kB, MB...) with some > key string, is this possible too? Or if too slow, maybe there is another > gb library I didn't recognize? > > Thank you for your hints. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You might want to take a look at Tobias Boege's gb.openssl component: If you do a search in old posts there should be something there Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Apr 25 11:17:29 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 25 Apr 2022 11:17:29 +0200 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> References: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> Message-ID: <608bc17a-df1b-73cf-3bf9-0e34c65a0c8a@deganius.de> Am 10.04.22 um 23:00 schrieb Christof Thalhofer: > Am 10.04.22 um 19:16 schrieb roberto.premoli at tiscali.it: > >> i am... say, tired of the continue "rolling release" i see >> around. >> "release fast, release often" can be nice fro who like new >> features, but less to whom prefere "stability". As I now try to do my every-day-work with 3.17.2 I see that Gambas3 has lost stability and reliability compared to 3.16.3 in a way I never saw at a release of a new sub version. I have to go back to 3.16 because 3.17 at current state is unusable for me. I am quite glad that I have not yet rolled out 3.17 in my firm and that we have our own Apt server. There are numerous things that happened this morning while I was debugging a feature, for instance: Doubleclick on a variable showed "3 " while the content was 30. This drove me crazy as I first mentioned a lot of other things to be the reason but not the IDE. The IDE crashed while debugging as a DB result had an empty column. I do not know if it crashed because of that, because in the next run the IDE did not crash. I had to start the IDE with 'GB_GUI=gb.qt4 gambas3' because with Qt5 autocompletion is buggy (only on my main computer) and with Gtk3 the Layout of the IDE is flickering and broken. -------------- This morning Gambas looked like PyGlade as I tried it out in 2014: Crashes and weird behavior ... ... normally I know Gambas3 and the IDE as rock solid. Now I really have to agree to a "sabbatical freeze". Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Mon Apr 25 11:22:19 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 25 Apr 2022 11:22:19 +0200 Subject: [Gambas-user] how to remote code gambas 3.17.x using ssh? In-Reply-To: <4ef57a78ba2a5b4782d706cdbce96c3b@tiscali.it> References: <4ef57a78ba2a5b4782d706cdbce96c3b@tiscali.it> Message-ID: Le 23/04/2022 ? 01:42, roberto.premoli at tiscali.it a ?crit?: > hi, > > recently? (3.13.0) Mr. Minisini kindly implemented "remote controll" > via ssh to permit to code on PC_A > from PC_B (in my case PC_A =?pinephone and PC_B = my_desktop). I waited > till 3.17.3 arrived on my distro, > Now, the question is: how to do that features? What commna I have to run > on the two devices to > make them "see" one the other? > > thanks, > Roberto > > 1) Compile and install gambas on the target system. 2) In the IDE of the source system, select "remote debugging" in the debugging option dialog. 3) Activate the option. 4) Enter the IP address of the target system, the user name, and the password. 5) You may have to add environment variables if, for example, you want to debug a GUI program (you have to set "DISPLAY" for an X11 environment), because the ssh connection by default is just a terminal. 6) The directory field is optional. Your program executable will be copy to the target system in a temporary directory inside the home directory of the ssh user, with a little debugger helper executable. That directory can be changed with that directory field. Note that profiling does not work with remote debugging yet. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Mon Apr 25 11:27:01 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 25 Apr 2022 11:27:01 +0200 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: <608bc17a-df1b-73cf-3bf9-0e34c65a0c8a@deganius.de> References: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> <608bc17a-df1b-73cf-3bf9-0e34c65a0c8a@deganius.de> Message-ID: Le 25/04/2022 ? 11:17, Christof Thalhofer a ?crit?: > Am 10.04.22 um 23:00 schrieb Christof Thalhofer: > >> Am 10.04.22 um 19:16 schrieb roberto.premoli at tiscali.it: >> >>> i am... say, tired of the continue "rolling release" i see >>> around. >>> "release fast, release often" can be nice fro who like new >>> features, but less to whom prefere "stability". > > As I now try to do my every-day-work with 3.17.2 I see that Gambas3 has > lost stability and reliability compared to 3.16.3 in a way I never saw > at a release of a new sub version. > > I have to go back to 3.16 because 3.17 at current state is unusable for > me. I am quite glad that I have not yet rolled out 3.17 in my firm and > that we have our own Apt server. > > There are numerous things that happened this morning while I was > debugging a feature, for instance: > > Doubleclick on a variable showed "3 " while the content was 30. This > drove me crazy as I first mentioned a lot of other things to be the > reason but not the IDE. > > The IDE crashed while debugging as a DB result had an empty column. I do > not know if it crashed because of that, because in the next run the IDE > did not crash. > > I had to start the IDE with 'GB_GUI=gb.qt4 gambas3' because with Qt5 > autocompletion is buggy (only on my main computer) and with Gtk3 the > Layout of the IDE is flickering and broken. > > -------------- > > This morning Gambas looked like PyGlade as I tried it out in 2014: > Crashes and weird behavior ... > > ... normally I know Gambas3 and the IDE as rock solid. > > Now I really have to agree to a "sabbatical freeze". > > Alles Gute > > Christof Thalhofer > I have none of your problems on my Ubuntu computer, and nobody report similar problems at the moment. And I use Gambas all the day. So, without more information, I would say that the problem is in your system, at least for the display problems (font, flickering...). Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Mon Apr 25 11:33:02 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 25 Apr 2022 11:33:02 +0200 Subject: [Gambas-user] Does gb.crypt only handle passwords? In-Reply-To: References: <6b92f05e-2f1b-a2fc-5d97-628cce6bc10a@osnanet.de> Message-ID: <1e184bec-faf5-0443-ed4b-a104b61603b3@osnanet.de> Am 25.04.22 um 10:54 schrieb Gianluigi: > > > You might want to take a look at Tobias Boege's gb.openssl component: > If you do a search in old posts there should be something there > > Regards > Gianluigi > Ah, that was it! Thank you very much. Regards Rolf From chrisml at deganius.de Mon Apr 25 12:55:36 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 25 Apr 2022 12:55:36 +0200 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: References: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> <608bc17a-df1b-73cf-3bf9-0e34c65a0c8a@deganius.de> Message-ID: <686937d1-2d44-4ead-0822-7d0bd271906d@deganius.de> Am 25.04.22 um 11:27 schrieb Beno?t Minisini: > I have none of your problems on my Ubuntu computer, and nobody report > similar problems at the moment. And I use Gambas all the day. > > So, without more information, I would say that the problem is in your > system, at least for the display problems (font, flickering...). Yes, that can be ... right. I don't know. I have no idea why ... and what happened. I have the same problems that were reported by a user at gambas-club.de: https://www.gambas-club.de/viewtopic.php?f=13&t=5778&p=14373&hilit=GB_GUI#p14373 As I removed and reinstalled it a couple of times I now had the same problems with 3.16.2. AAAAAARRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHHHHHHHHHH! Sorry. -------------------------------------------------------- Ok, I fixed it (but I have no idea what really happened): First purged all Gambas packages and then installed Gambas packages but *without any Qt and Gtk packages*. It installed some *-qt5-* as well as *-gtk3-* packages automatically. Then the layout was broken. After that I did this: 'sudo apt remove gambas3-gb-gtk3' This removes 'gambas3-gb-gtk3-wayland gambas3-gb-gtk3-webview gambas3-gb-gtk3-x11' and installs 'gambas3-gb-qt4 gambas3-gb-qt4-webview' Then the layout is ok but when I start it it says: > christof at tof-x230 ~ ? gambas3 > gb.gui: warning: 'gb.gtk3' component not found, using 'gb.qt4' instead And now these packages are installed on my machine: > gambas3-dev-tools gambas3-gb-args gambas3-gb-cairo gambas3-gb-chart > gambas3-gb-clipper gambas3-gb-compress gambas3-gb-compress-zlib > gambas3-gb-crypt gambas3-gb-data gambas3-gb-db gambas3-gb-db-form > gambas3-gb-db-mysql gambas3-gb-db-postgresql gambas3-gb-db-sqlite3 > gambas3-gb-dbus gambas3-gb-deg-form gambas3-gb-desktop > gambas3-gb-desktop-x11 gambas3-gb-eval-highlight gambas3-gb-form > gambas3-gb-form-dialog gambas3-gb-form-editor > gambas3-gb-form-htmlview gambas3-gb-form-mdi gambas3-gb-form-print > gambas3-gb-form-stock gambas3-gb-form-terminal gambas3-gb-gtk > gambas3-gb-httpd gambas3-gb-image gambas3-gb-image-effect > gambas3-gb-image-imlib gambas3-gb-image-io gambas3-gb-inotify > gambas3-gb-logging gambas3-gb-markdown gambas3-gb-media > gambas3-gb-media-form gambas3-gb-mime gambas3-gb-mysql > gambas3-gb-ncurses gambas3-gb-net gambas3-gb-net-curl > gambas3-gb-net-smtp gambas3-gb-opengl gambas3-gb-opengl-glsl > gambas3-gb-opengl-glu gambas3-gb-openssl gambas3-gb-pcre > gambas3-gb-pdf gambas3-gb-poppler gambas3-gb-qt4 > gambas3-gb-qt4-webview gambas3-gb-qt5 gambas3-gb-qt5-ext > gambas3-gb-qt5-wayland gambas3-gb-qt5-webkit gambas3-gb-qt5-x11 > gambas3-gb-report gambas3-gb-report2 gambas3-gb-sdl2-audio > gambas3-gb-settings gambas3-gb-signal gambas3-gb-term gambas3-gb-util > gambas3-gb-util-web gambas3-gb-web gambas3-gb-web-gui gambas3-gb-xml > gambas3-gb-xml-html gambas3-gui gambas3-ide gambas3-runtime > gambas3-scripter Note that apt did not remove gambas3-gb-gtk. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Mon Apr 25 13:17:43 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 25 Apr 2022 13:17:43 +0200 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: <686937d1-2d44-4ead-0822-7d0bd271906d@deganius.de> References: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> <608bc17a-df1b-73cf-3bf9-0e34c65a0c8a@deganius.de> <686937d1-2d44-4ead-0822-7d0bd271906d@deganius.de> Message-ID: <646cb1af-bf7e-cfb7-df15-6ada487f41ae@gmail.com> Le 25/04/2022 ? 12:55, Christof Thalhofer a ?crit?: > > Yes, that can be ... right. I don't know. I have no idea why ... and > what happened. I have the same problems that were reported by a user at > gambas-club.de: > > https://www.gambas-club.de/viewtopic.php?f=13&t=5778&p=14373&hilit=GB_GUI#p14373 > > > As I removed and reinstalled it a couple of times I now had the same > problems with 3.16.2. > > AAAAAARRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHHHHHHHHHH! > > Sorry. > > -------------------------------------------------------- > > Ok, I fixed it (but I have no idea what really happened): > > First purged all Gambas packages and then installed Gambas packages but > *without any Qt and Gtk packages*. It installed some *-qt5-* as well as > *-gtk3-* packages automatically. > > Then the layout was broken. > > After that I did this: > 'sudo apt remove gambas3-gb-gtk3' > > This removes 'gambas3-gb-gtk3-wayland gambas3-gb-gtk3-webview > gambas3-gb-gtk3-x11' and installs 'gambas3-gb-qt4 gambas3-gb-qt4-webview' > > Then the layout is ok but when I start it it says: > >> christof at tof-x230 ~ ? gambas3 >> gb.gui: warning: 'gb.gtk3' component not found, using 'gb.qt4' instead > > And now these packages are installed on my machine: > >> gambas3-dev-tools gambas3-gb-args gambas3-gb-cairo gambas3-gb-chart >> gambas3-gb-clipper gambas3-gb-compress gambas3-gb-compress-zlib >> gambas3-gb-crypt gambas3-gb-data gambas3-gb-db gambas3-gb-db-form >> gambas3-gb-db-mysql gambas3-gb-db-postgresql gambas3-gb-db-sqlite3 >> gambas3-gb-dbus gambas3-gb-deg-form gambas3-gb-desktop >> gambas3-gb-desktop-x11 gambas3-gb-eval-highlight gambas3-gb-form >> gambas3-gb-form-dialog gambas3-gb-form-editor >> gambas3-gb-form-htmlview gambas3-gb-form-mdi gambas3-gb-form-print >> gambas3-gb-form-stock gambas3-gb-form-terminal gambas3-gb-gtk >> gambas3-gb-httpd gambas3-gb-image gambas3-gb-image-effect >> gambas3-gb-image-imlib gambas3-gb-image-io gambas3-gb-inotify >> gambas3-gb-logging gambas3-gb-markdown gambas3-gb-media >> gambas3-gb-media-form gambas3-gb-mime gambas3-gb-mysql >> gambas3-gb-ncurses gambas3-gb-net gambas3-gb-net-curl >> gambas3-gb-net-smtp gambas3-gb-opengl gambas3-gb-opengl-glsl >> gambas3-gb-opengl-glu gambas3-gb-openssl gambas3-gb-pcre >> gambas3-gb-pdf gambas3-gb-poppler gambas3-gb-qt4 >> gambas3-gb-qt4-webview gambas3-gb-qt5 gambas3-gb-qt5-ext >> gambas3-gb-qt5-wayland gambas3-gb-qt5-webkit gambas3-gb-qt5-x11 >> gambas3-gb-report gambas3-gb-report2 gambas3-gb-sdl2-audio >> gambas3-gb-settings gambas3-gb-signal gambas3-gb-term gambas3-gb-util >> gambas3-gb-util-web gambas3-gb-web gambas3-gb-web-gui gambas3-gb-xml >> gambas3-gb-xml-html gambas3-gui gambas3-ide gambas3-runtime >> gambas3-scripter > Note that apt did not remove gambas3-gb-gtk. > > Alles Gute > > Christof Thalhofer > 'gb.gtk' is the GTK+2 component, you didn't remove it, so it's normal you still get it. Apparently there is something in the QT5 version of Ubuntu 18.04 LTS that breaks the QT5 component on Gambas 3.17. The QT4 and QT5 components almost share the same code, at least for text rendering. As for the flickering, I would say that XFCE is in cause more than GTK+3, but who knows. You can check that by changing the window manager (with composition enabled, without...). At least I have no idea how it could be Gambas' fault. To know exactly what happens, you must be more precise, by explaining each problem clearly, and testing them separately. For the IDE crash while debugging, it's almost sure that it's a bug in Gambas. But then you must give me a project that allows me to reproduce it so, or at least describe what you did exactly, so that I could fix it. Regards, -- Beno?t Minisini From tercoide at hotmail.com Mon Apr 25 14:01:43 2022 From: tercoide at hotmail.com (martin p cristia) Date: Mon, 25 Apr 2022 09:01:43 -0300 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: References: Message-ID: Of course we all want it to have no bugs, but all programs do. But we all also love the new features. And being Gambas so environment compatible, multi-OS,multi-toolkit, multi-database ... there is no way Benoit can do all the necessary test to polish it enough. And as the environment being also rolling releases he would also need to debug it even without introducing nothing new. So I think the dev process is the best possible for the resources available. IMHO the only thing I would change is making it no so env compatible. -- Saludos Ing. Martin P Cristia From rwe-sse at osnanet.de Mon Apr 25 15:48:03 2022 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 25 Apr 2022 15:48:03 +0200 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: <646cb1af-bf7e-cfb7-df15-6ada487f41ae@gmail.com> References: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> <608bc17a-df1b-73cf-3bf9-0e34c65a0c8a@deganius.de> <686937d1-2d44-4ead-0822-7d0bd271906d@deganius.de> <646cb1af-bf7e-cfb7-df15-6ada487f41ae@gmail.com> Message-ID: <989a7ea3-36ee-3ae6-79db-8b99a5e1d384@osnanet.de> Am 25.04.22 um 13:17 schrieb Beno?t Minisini: > Le 25/04/2022 ? 12:55, Christof Thalhofer a ?crit?: >> > > Apparently there is something in the QT5 version of Ubuntu 18.04 LTS > that breaks the QT5 component on Gambas 3.17. > Then I am really glad I have not yet updated my Ubuntu 18 in the firm. On my Laptop with Ubuntu 20 the 17.3 version runs well, but in the office we depend on a stable version of Gambas, so I will wait until you find out what caused the problems. Regards Rolf From chrisml at deganius.de Mon Apr 25 20:16:02 2022 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 25 Apr 2022 20:16:02 +0200 Subject: [Gambas-user] what abaut a sabbatical freeze? In-Reply-To: <646cb1af-bf7e-cfb7-df15-6ada487f41ae@gmail.com> References: <4482b187-d566-806e-45ef-3c16faf246d4@deganius.de> <608bc17a-df1b-73cf-3bf9-0e34c65a0c8a@deganius.de> <686937d1-2d44-4ead-0822-7d0bd271906d@deganius.de> <646cb1af-bf7e-cfb7-df15-6ada487f41ae@gmail.com> Message-ID: <0c5f8a04-fa57-7155-9e46-7fbb541f585f@deganius.de> Am 25.04.22 um 13:17 schrieb Beno?t Minisini: > 'gb.gtk' is the GTK+2 component, you didn't remove it, so it's normal > you still get it. Ah, ok. I don't understand these mechanisms, thank you for clarification. > Apparently there is something in the QT5 version of Ubuntu 18.04 LTS > that breaks the QT5 component on Gambas 3.17. Ok, thank you. I will have to upgrade a couple of computers to switch to 20.04. his will take some time. > The QT4 and QT5 components almost share the same code, at least for text > rendering. > > As for the flickering, I would say that XFCE is in cause more than > GTK+3, but who knows. You can check that by changing the window manager > (with composition enabled, without...). At least I have no idea how it > could be Gambas' fault. I have also no idea. It's fixed by forcing the IDE to Qt4 and I'm not going to investigate it further, hoping this is all history in XUbuntu 20.04. :) > To know exactly what happens, you must be more precise, by explaining > each problem clearly, and testing them separately. Yes, I'm aware of that, but I wanted to put it in the list because it's so unclear.... maybe others encounter the same phenomenon. > For the IDE crash while debugging, it's almost sure that it's a bug in > Gambas. But then you must give me a project that allows me to reproduce > it so, or at least describe what you did exactly, so that I could fix it. I was not able to reproduce it. If so, I would have written a project for the bugtracker. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From isafiur at gmail.com Fri Apr 29 10:13:09 2022 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 29 Apr 2022 13:58:09 +0545 Subject: [Gambas-user] Possible bug in new ComboBox Message-ID: Hi I am getting an error with COmboBox in the development version. ComboBox1.Select(textPosition, Len(ComboBoxItems.Text) - textPosition) gives error "Not a function" -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Apr 29 10:32:44 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 29 Apr 2022 09:32:44 +0100 Subject: [Gambas-user] Possible bug in new ComboBox In-Reply-To: References: Message-ID: Yep well spotted seems the line 547 of ComboBox.class is in error. $hTextBox(Start, Length) I think should be.. $hTextBox.Select(Start, Length) BruceS On Fri, 29 Apr 2022 at 09:25, Safiur Rahman wrote: > Hi > > I am getting an error with COmboBox in the development version. > > ComboBox1.Select(textPosition, Len(ComboBoxItems.Text) - textPosition) > > gives error > "Not a function" > > -- > Regards > Safiur Rahman > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From isafiur at gmail.com Fri Apr 29 10:38:35 2022 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 29 Apr 2022 14:23:35 +0545 Subject: [Gambas-user] Possible bug in new ComboBox In-Reply-To: References: Message-ID: A short project to reproduce this problem. On Fri, Apr 29, 2022 at 1:58 PM Safiur Rahman wrote: > Hi > > I am getting an error with COmboBox in the development version. > > ComboBox1.Select(textPosition, Len(ComboBoxItems.Text) - textPosition) > > gives error > "Not a function" > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: combobox.zip Type: application/zip Size: 14578 bytes Desc: not available URL: From isafiur at gmail.com Fri Apr 29 10:48:51 2022 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 29 Apr 2022 14:33:51 +0545 Subject: [Gambas-user] Possible bug in new ComboBox In-Reply-To: References: Message-ID: Hi Also pressing Enter or Return key on Combo box Popup should put the selected text on combobox textbox and close the popup. It is not happening with new ComboBox. On Fri, Apr 29, 2022 at 2:23 PM Safiur Rahman wrote: > A short project to reproduce this problem. > > On Fri, Apr 29, 2022 at 1:58 PM Safiur Rahman wrote: > >> Hi >> >> I am getting an error with COmboBox in the development version. >> >> ComboBox1.Select(textPosition, Len(ComboBoxItems.Text) - textPosition) >> >> gives error >> "Not a function" >> >> -- >> Regards >> Safiur Rahman >> > > > -- > Regards > Safiur Rahman > -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Apr 29 14:01:54 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 29 Apr 2022 14:01:54 +0200 Subject: [Gambas-user] Possible bug in new ComboBox In-Reply-To: References: Message-ID: <5a9c8a3a-731f-8994-88b0-fdec29bc3f9f@gmail.com> Le 29/04/2022 ? 10:48, Safiur Rahman a ?crit?: > Hi > > Also pressing Enter or Return key on Combo box Popup should put the > selected text on combobox textbox and close the popup. It is not > happening with new ComboBox. > > On Fri, Apr 29, 2022 at 2:23 PM Safiur Rahman > wrote: > > A short project to reproduce this problem. > > On Fri, Apr 29, 2022 at 1:58 PM Safiur Rahman > wrote: > > Hi > > I am getting an error with COmboBox in the development version. > > ComboBox1.Select(textPosition, Len(ComboBoxItems.Text) - > textPosition) > > gives error > "Not a function" > Problems fixed in last commit. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Fri Apr 29 15:24:01 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 29 Apr 2022 14:24:01 +0100 Subject: [Gambas-user] Possible bug in new ComboBox In-Reply-To: <5a9c8a3a-731f-8994-88b0-fdec29bc3f9f@gmail.com> References: <5a9c8a3a-731f-8994-88b0-fdec29bc3f9f@gmail.com> Message-ID: On Fri, 29 Apr 2022 at 13:02, Beno?t Minisini wrote: > Le 29/04/2022 ? 10:48, Safiur Rahman a ?crit : > > Hi > > > > Also pressing Enter or Return key on Combo box Popup should put the > > selected text on combobox textbox and close the popup. It is not > > happening with new ComboBox. > > > > On Fri, Apr 29, 2022 at 2:23 PM Safiur Rahman > > wrote: > > > > A short project to reproduce this problem. > > > > On Fri, Apr 29, 2022 at 1:58 PM Safiur Rahman > > wrote: > > > > Hi > > > > I am getting an error with COmboBox in the development version. > > > > ComboBox1.Select(textPosition, Len(ComboBoxItems.Text) - > > textPosition) > > > > gives error > > "Not a function" > > > > Problems fixed in last commit. > I have a new issue with combobox Ben. Discovered using the IDE menu editor, if i use the combobox to select a group name the text does not appear in the textbox field. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Apr 29 15:49:00 2022 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 29 Apr 2022 14:49:00 +0100 Subject: [Gambas-user] Possible bug in new ComboBox In-Reply-To: References: <5a9c8a3a-731f-8994-88b0-fdec29bc3f9f@gmail.com> Message-ID: On Fri, 29 Apr 2022 at 14:24, Bruce Steers wrote: > > > On Fri, 29 Apr 2022 at 13:02, Beno?t Minisini wrote: > >> Le 29/04/2022 ? 10:48, Safiur Rahman a ?crit : >> > Hi >> > >> > Also pressing Enter or Return key on Combo box Popup should put the >> > selected text on combobox textbox and close the popup. It is not >> > happening with new ComboBox. >> > >> > On Fri, Apr 29, 2022 at 2:23 PM Safiur Rahman > > > wrote: >> > >> > A short project to reproduce this problem. >> > >> > On Fri, Apr 29, 2022 at 1:58 PM Safiur Rahman > > > wrote: >> > >> > Hi >> > >> > I am getting an error with COmboBox in the development version. >> > >> > ComboBox1.Select(textPosition, Len(ComboBoxItems.Text) - >> > textPosition) >> > >> > gives error >> > "Not a function" >> > >> >> Problems fixed in last commit. >> > > > I have a new issue with combobox Ben. > Discovered using the IDE menu editor, if i use the combobox to select a > group name the text does not appear in the textbox field. > > This may be an IDE menu editor issue not combobox as not seeing bug on other combobox's Also if i choose a menu entry that has the Group field already set when i click on the textbox text it clears to blank. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Fri Apr 29 23:46:42 2022 From: karl.reinl at fen-net.de (Karl Reinl) Date: Fri, 29 Apr 2022 23:46:42 +0200 Subject: [Gambas-user] think I missed something Message-ID: <643b643e42c97a8a414a0a31be6943675bb2eaf9.camel@fen-net.de> Salut, how do I bring a modal window that is called by a modal window to the top (previously this worked) -- Amicalement Charlie From t.lee.davidson at gmail.com Sat Apr 30 00:17:26 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 29 Apr 2022 18:17:26 -0400 Subject: [Gambas-user] think I missed something In-Reply-To: <643b643e42c97a8a414a0a31be6943675bb2eaf9.camel@fen-net.de> References: <643b643e42c97a8a414a0a31be6943675bb2eaf9.camel@fen-net.de> Message-ID: <4b391cd1-14ae-e0e8-8c1d-922607eaab56@gmail.com> On 4/29/22 17:46, Karl Reinl wrote: > Salut, > > how do I bring a modal window that is called by a modal window to the > top (previously this worked) It works here with both Qt5 and GTK3. -- Lee From g4mba5 at gmail.com Sat Apr 30 00:24:34 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 Apr 2022 00:24:34 +0200 Subject: [Gambas-user] think I missed something In-Reply-To: <643b643e42c97a8a414a0a31be6943675bb2eaf9.camel@fen-net.de> References: <643b643e42c97a8a414a0a31be6943675bb2eaf9.camel@fen-net.de> Message-ID: <3eb13b27-8dde-d947-0317-e078077adbf2@gmail.com> Le 29/04/2022 ? 23:46, Karl Reinl a ?crit?: > Salut, > > how do I bring a modal window that is called by a modal window to the > top (previously this worked) What do you mean? Normally a modal window called by a modal window should always be on top of it. On X11, you say that the last modal window is a "transient" for the first one, and the window manager is supposed to keep the last on top on the first. -- Beno?t Minisini From karl.reinl at fen-net.de Sat Apr 30 10:07:09 2022 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sat, 30 Apr 2022 10:07:09 +0200 Subject: [Gambas-user] think I missed something In-Reply-To: <3eb13b27-8dde-d947-0317-e078077adbf2@gmail.com> References: <643b643e42c97a8a414a0a31be6943675bb2eaf9.camel@fen-net.de> <3eb13b27-8dde-d947-0317-e078077adbf2@gmail.com> Message-ID: <555c31d1dd73fbb52ba58511faf7653559cb43ad.camel@fen-net.de> Am Samstag, dem 30.04.2022 um 00:24 +0200 schrieb Beno?t Minisini: > Normally a modal window called by a modal window should always be on > top of it. this is the part of the project where you can see what happens. -- Amicalement Charlie [System] Gambas=3.17.90 012436e88 (master) OperatingSystem=Linux Kernel=5.4.0-109-generic Architecture=x86_64 Distribution=Ubuntu 20.04.4 LTS Desktop=MATE Font=Ubuntu,11 Scale=8 Theme=menta Language=de_DE.UTF-8 Memory=5911M [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] CLUTTER_IM_MODULE=ibus COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=de_DE GIO_LAUNCHED_DESKTOP_FILE=/Schreibtisch/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=3929 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_IM_MODULE=ibus GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=de_DE.UTF-8 LANGUAGE=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=ibus QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=ibus QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/2101,unix/:/tmp/.ICE-unix/2101 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2317 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/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/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 XMODIFIERS=@im=ibus -------------- next part -------------- A non-text attachment was scrubbed... Name: TestBug05-0.0.22.tar.gz Type: application/x-compressed-tar Size: 12885 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sat Apr 30 16:04:27 2022 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 30 Apr 2022 10:04:27 -0400 Subject: [Gambas-user] think I missed something In-Reply-To: <555c31d1dd73fbb52ba58511faf7653559cb43ad.camel@fen-net.de> References: <643b643e42c97a8a414a0a31be6943675bb2eaf9.camel@fen-net.de> <3eb13b27-8dde-d947-0317-e078077adbf2@gmail.com> <555c31d1dd73fbb52ba58511faf7653559cb43ad.camel@fen-net.de> Message-ID: <07a8a34a-d946-43df-c740-cfbf2d4efa64@gmail.com> On 4/30/22 04:07, Karl Reinl wrote: > Am Samstag, dem 30.04.2022 um 00:24 +0200 schrieb Beno?t Minisini: >> Normally a modal window called by a modal window should always be on >> top of it. > this is the part of the project where you can see what happens. > > -- Amicalement Charlie It works as it should here. All of the modal windows display on top of their callers. With the exception of Poppler, all the major versions of our respective libraries are equivalent. So, unless it is caused by something introduced in the development branch, it seems likely something with the MATE desktop. -- Lee [System] Gambas=3.17.2 OperatingSystem=Linux Kernel=5.3.18-150300.59.63-default Architecture=x86_64 Distribution=openSUSE Leap 15.3 Desktop=KDE5 Font=Noto Sans,10 Scale=7 Theme=breeze Language=en_US.UTF-8 Memory=15999M From g4mba5 at gmail.com Sat Apr 30 18:39:48 2022 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 30 Apr 2022 18:39:48 +0200 Subject: [Gambas-user] Possible bug in new ComboBox In-Reply-To: References: <5a9c8a3a-731f-8994-88b0-fdec29bc3f9f@gmail.com> Message-ID: <6e74ab20-62da-b492-d825-4f749e121e3c@gmail.com> Le 29/04/2022 ? 15:49, Bruce Steers a ?crit?: > > This may be an IDE menu editor issue not combobox as not seeing bug on > other combobox's > > Also if i choose a menu entry that has the Group field already set when > i click on the textbox text it clears to blank. > > BruceS > It should be fixed now. -- Beno?t Minisini