From t.lee.davidson at gmail.com Thu Oct 1 06:18:55 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 1 Oct 2020 00:18:55 -0400 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> Message-ID: On 9/30/20 5:27 PM, Gianluigi wrote: > > > Il giorno mer 30 set 2020 alle ore 19:32 T Lee Davidson > ha scritto: > > On 9/30/20 1:29 PM, T Lee Davidson wrote: > > I have attached a modified project in which: > > > Hi Lee, > in your solution: > $hText = New TextBox($hContenedor) As Me.Name > instead of > $hText = New TextBox($hContenedor) As "CajaTexto" > there is something that does not convince me, how do you raise the Change event? > > Regards > Gianluigi Good point, Gianluigi. The inherited class, UserControl, does not implement a Change event. I was merely trying to quickly solve the issue of the appropriate event handler being called. Now that I've taken a closer look at it, it appears that the event name of the TextBox does not need to be unique. Simply making the name of the popup menu unique is sufficient. To make a Change event work: 1) Leave the line that creates the TextBox as: $hText = New TextBox($hContenedor) As "CajaTexto" 2) In the clastextbox class header, add: Event Change() 3) Implement an event handler in the class for the CajaTexto_Change() event: Public Sub CajaTexto_Change() Raise Change() End This allows the parent form to handle the change event of each distinct clastextbox object. -- Lee From bagonergi at gmail.com Thu Oct 1 09:44:44 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 1 Oct 2020 09:44:44 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> Message-ID: Il giorno gio 1 ott 2020 alle ore 06:19 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 9/30/20 5:27 PM, Gianluigi wrote: > > > > > > Il giorno mer 30 set 2020 alle ore 19:32 T Lee Davidson < > t.lee.davidson at gmail.com > ha scritto: > > > > On 9/30/20 1:29 PM, T Lee Davidson wrote: > > > I have attached a modified project in which: > > > > > > Hi Lee, > > in your solution: > > $hText = New TextBox($hContenedor) As Me.Name > > instead of > > $hText = New TextBox($hContenedor) As "CajaTexto" > > there is something that does not convince me, how do you raise the > Change event? > > > > Regards > > Gianluigi > > Good point, Gianluigi. > > The inherited class, UserControl, does not implement a Change event. > > I was merely trying to quickly solve the issue of the appropriate event > handler being called. Now that I've taken a closer look > at it, it appears that the event name of the TextBox does not need to be > unique. ... > In fact, and the name of the popup menu shouldn't be unique either. We create a new class every time, why does the menu have to be different from the other properties? I believe there is a Gambas malfunction here, but I don't understand what it is. If Benoit wanted to explain it... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 1 12:35:34 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 1 Oct 2020 20:05:34 +0930 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> Message-ID: <399a9ed4-9431-2e32-15c9-37f0ab7328ee@gmail.com> On 1/10/20 1:48 pm, T Lee Davidson wrote: > To make a Change event work: > 1) Leave the line that creates the TextBox as: $hText = New > TextBox($hContenedor) As "CajaTexto" > 2) In the clastextbox class header, add: Event Change() > 3) Implement an event handler in the class for the CajaTexto_Change() > event: > Public Sub CajaTexto_Change() > ? Raise Change() > End and exposing the inner textbox text may come in handy too! b From t.lee.davidson at gmail.com Thu Oct 1 18:37:33 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 1 Oct 2020 12:37:33 -0400 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> Message-ID: <877d0e3c-73b9-a949-f679-1a43d535add9@gmail.com> On 10/1/20 3:44 AM, Gianluigi wrote: > We create a new class every time, why does the menu have to be different from the other properties? Yes, we create a new clastextbox object every time. It's not the menu that needs to be different. It is the menu's *event name* that, apparently, needs to be unique. The event name is exposed to the parent Form which is the event handler. How does the event handler know which component raised the event if the event name is the same for all distinct objects? If the menu was assigned in the Form's scope, then it would know. But, the menu assignment details are 'hidden' from the Form in a separate class. All the Form, the event handler, knows (other than what is exposed by .Proxy) is the event name. I suspect it has to use an event-name lookup table to determine the associated object, and returns with the first one it finds. (I invite corrections.) -- Lee From bagonergi at gmail.com Thu Oct 1 22:19:54 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 1 Oct 2020 22:19:54 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: <877d0e3c-73b9-a949-f679-1a43d535add9@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> <877d0e3c-73b9-a949-f679-1a43d535add9@gmail.com> Message-ID: Il giorno gio 1 ott 2020 alle ore 18:38 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 10/1/20 3:44 AM, Gianluigi wrote: > > We create a new class every time, why does the menu have to be different > from the other properties? > > Yes, we create a new clastextbox object every time. It's not the menu that > needs to be different. It is the menu's *event name* > that, apparently, needs to be unique. The event name is exposed to the > parent Form which is the event handler. > > How does the event handler know which component raised the event if the > event name is the same for all distinct objects? > > If the menu was assigned in the Form's scope, then it would know. But, the > menu assignment details are 'hidden' from the Form in > a separate class. All the Form, the event handler, knows (other than what > is exposed by .Proxy) is the event name. I suspect it > has to use an event-name lookup table to determine the associated object, > and returns with the first one it finds. (I invite > corrections.) > Hi Lee, what you say makes a lot of sense I hope Benoit wants to deepen. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Oct 3 12:55:53 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 3 Oct 2020 11:55:53 +0100 Subject: [Gambas-user] Greetings Message-ID: Hi i've just joined this list. I've been helping with the master debugging of late. Helping and wasting Benoit's time reporting bugs that are not bugs but my lack of knowledge lol :) So i'm wondering if i've joined the right list here. I was hoping for a place to talk about the IDE developement and maybe ask some questions related to one of my apps that's a gambas project manager that deals with various IDE settings. And discuss first maybe if i've found a bug or am an idiot ;) Basically a first call place to ask about things before bothering Ben as i can only imagine how busy he is. Or should i be on another list for that? Many thanks Bruce Steers -------------- next part -------------- An HTML attachment was scrubbed... URL: From angelnunez123 at gmail.com Sat Oct 3 13:19:42 2020 From: angelnunez123 at gmail.com (Angel) Date: Sat, 3 Oct 2020 13:19:42 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> Message-ID: <7d9aba0a-4f6b-578d-177e-2a055adc28cb@gmail.com> When you create objects using code, to have a single event handler, it doesn't work either. When creating multiple objects using: objtxt = New Clastextbox(Me) As "Group" All objects when created in the _new would have the same name "Group", even if a different name is then set. I changed the line : // By: // and what's my surprise that with GTK GUI component all objects have the same ID minus the first one that the id is 0. In Qt each id is different. attached the project El 30/9/20 a las 23:27, Gianluigi escribi?: > > > >there is something that does not convince me, how do you raise the > Change event? > > > This is just an example, if I'm interested in commanding the whole class -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pruebas_textbox.zip Type: application/zip Size: 19887 bytes Desc: not available URL: From adamnt42 at gmail.com Sat Oct 3 14:46:33 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 3 Oct 2020 22:16:33 +0930 Subject: [Gambas-user] Greetings In-Reply-To: References: Message-ID: <8473914b-1d9a-ffae-93c4-5df873ed6a26@gmail.com> On 3/10/20 8:25 pm, Bruce Steers wrote: > I've been helping with the master debugging of late. > Helping and wasting Benoit's time reporting bugs that are not bugs but my > lack of knowledge lol:) > > So i'm wondering if i've joined the right list here. Yes, we are here to help, explain and dispute anything that is Gambas related. > > I was hoping for a place to talk about the IDE developement and maybe ask > some questions related to one of my apps that's a gambas project manager > that deals with various IDE settings. There used to be another list specifiacally for development of Gambas itself but nobody read it ( sorry guys :-) ) Maybe it is still there? I don't think so. Anyway... Yes, you can talk about it here. But see below... > > And discuss first maybe if i've found a bug or am an idiot;) > Basically a first call place to ask about things before bothering Ben as i > can only imagine how busy he is. > Or should i be on another list for that? One thing. Try to keep to exactly 1:1 topic in posts. We are all guilty (well some/most of us anyway) of hijacking, drifting, diversifying and dismangliing threads. Such that a general question like "how do I fix the IDE, it does a,b,c and d when I want it to do q,r and s is rapidly going to become unfollowable. So, the more mail the better as long as it is dingle topic and follows the suggestions in the netti-thingo in the footer. best regards bruce ( a different one!. p.s yes the packager code is a &*^@#! !!! From g4mba5 at gmail.com Sat Oct 3 15:27:06 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Oct 2020 15:27:06 +0200 Subject: [Gambas-user] Greetings In-Reply-To: <8473914b-1d9a-ffae-93c4-5df873ed6a26@gmail.com> References: <8473914b-1d9a-ffae-93c4-5df873ed6a26@gmail.com> Message-ID: Le 03/10/2020 ? 14:46, Bruce a ?crit?: > On 3/10/20 8:25 pm, Bruce Steers wrote: > > There used to be another list specifiacally for development of Gambas > itself but nobody read it ( sorry guys :-) ) > Maybe it is still there? I don't think so. Anyway... No, there is only one mailing-list now. Development discussions and user discussions are not actually really distinct, so it was not useful to do so. > > Yes, you can talk about it here. But see below... > >> >> And discuss first maybe if i've found a bug or am an idiot;) >> Basically a first call place to ask about things before bothering Ben >> as i >> can only imagine how busy he is. >> Or should i be on another list for that? > > One thing. > Try to keep to exactly 1:1 topic in posts. We are all guilty (well > some/most of us anyway) of hijacking, drifting, diversifying and > dismangliing threads. I agree. I usually don't read the thread if is too long, hijacked and too messy. > > best regards > bruce ( a different one!. > > p.s yes the packager code is a &*^@#! !!! Indeed. But it's not entirely its fault. Packaging is already a mess! -- Beno?t Minisini From bsteers4 at gmail.com Sat Oct 3 18:02:28 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 3 Oct 2020 17:02:28 +0100 Subject: [Gambas-user] Greetings In-Reply-To: References: <8473914b-1d9a-ffae-93c4-5df873ed6a26@gmail.com> Message-ID: >> So i'm wondering if i've joined the right list here. > >Yes, we are here to help, explain and dispute anything that is Gambas >related. Excellent thank you :) >There used to be another list specifiacally for development of Gambas >itself but nobody read it ( sorry guys :-) ) >Maybe it is still there? I don't think so. Anyway... Looks like i'm in the right place :) >Yes, you can talk about it here. But see below... Indeed , no worries Bruce I've been around the block, used to be on a lot of mailing lists back in my amiga days. And i agree post hijacking is like the worst thing. >> Basically a first call place to ask about things before bothering Ben as i >> can only imagine how busy he is. > >One thing. >Try to keep to exactly 1:1 topic in posts. We are all guilty (well >some/most of us anyway) of hijacking, drifting, diversifying and >dismangliing threads. Such that a general question like "how do I fix >the IDE, it does a,b,c and d when I want it to do q,r and s is rapidly >going to become unfollowable. So, the more mail the better as long as it >is dingle topic and follows the suggestions in the netti-thingo in the >footer. No worries, understood. Hopefully i will be as much help to you folks as you might be for me :) I have a few questions to post so expect some very soon. >bruce ( a different one!. A rare breed we are :) >p.s yes the packager code is a &*^@#! !!! Isn't it just lol. I got caught out thinking that a projects list of components as listed in it's .project file would be all the required components but then found it's more complicated than that lol. I cracked it though, I've written a working installer now (almost bulletproof and can ignore the projects dependency settings) It's a bash script , creates a drop-box Icon you can drop a gambas app on and installs everything needed and no more. It works by first installing the runtime and then attempting to run the gambas app and getting the error message if it fails, then extracting the missing component from it and auto-installs it. It's a work in progress :) Cheers Bruce Bruce :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Oct 3 20:33:52 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 3 Oct 2020 19:33:52 +0100 Subject: [Gambas-user] Info for the wiki Message-ID: Hi , I'm trying to do my bit by adding what i can to the wiki. I've been writing some info for the TextEditor control but it's not too easy. Mostly as there is no info. I've figured out how to load the control source up in gambas IDE and I have been searching through the code to try to understand what functions/arguments do so i can add the wiki info. I wondered if there was another way? some doc store i don't know about or something or is examining the code the only way? Cheers BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Oct 3 20:52:03 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 3 Oct 2020 20:52:03 +0200 Subject: [Gambas-user] Info for the wiki In-Reply-To: References: Message-ID: <8277338e-81c3-3545-a88f-d1f912fceaf3@gmail.com> Le 03/10/2020 ? 20:33, Bruce Steers a ?crit?: > Hi , I'm trying to do my bit by adding what i can to the wiki. > I've been writing some info for the TextEditor control but it's not too > easy. > Mostly as there is no info. > I've figured out how to load the control source up in gambas IDE and I > have been searching through the code to try to understand what > functions/arguments do so i can add the wiki info. > > I wondered if there was another way? some doc store i don't know about > or something or is examining the code the only way? > > Cheers > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > For such a complex beast I'm afraid I have to make a minimal documentation of everything first. -- Beno?t Minisini From bsteers4 at gmail.com Sat Oct 3 20:55:38 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 3 Oct 2020 19:55:38 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) Message-ID: Hi all. I just uploaded a simple pipe opening/watching routing to the Application section as an example. The reason for this was because it took me quite some time to figure out how to get a pipe working at first and thought many others may have hit the same brick wall. It seemed EVERYTHING I tried just locked up the app til the pipe got some text sent, then everything was okay, the app could run and the File_Read() event would trigger on any more text sent as expected. What was not expected is that "Opening" the pipe is like calling a Read method that locks the program till it gets some text. I came up with a simple solution (eventually) to use the Shell command to echo a blank line to the pipe just before opening it... Shell "echo '' >/tmp/FIFO1" hFile = Pipe "/tmp/FIFO1" For Read Watch That way when the pipe opens it gets the echo and moves on so the program continues running. It just seemed wrong though. Like either i was doing something wrong in how i was opening the pipe or it was a bug in the pipe opening call? I would have thought that setting the "Watch" option would open the pipe without expecting text and just set up the Read event and move on. I found using "Read Write Watch" all together and setting Blocking to False Allowed the program to move past the open without sending text but that gave me weird errors like pop-up menus stopped triggering Click() events, I had some menus visible in the menubar AND attached to a button popup and got the click event okay from the top menu but got nothing from the popup menus. If i removed the "Write" from the pipe opening call the popups worked again!? I found the Shell "echo" method the best way but like i say , seems wrong to have to do it that way. Thanks all :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Oct 3 21:10:57 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 3 Oct 2020 20:10:57 +0100 Subject: [Gambas-user] Info for the wiki In-Reply-To: <8277338e-81c3-3545-a88f-d1f912fceaf3@gmail.com> References: <8277338e-81c3-3545-a88f-d1f912fceaf3@gmail.com> Message-ID: >> I wondered if there was another way? some doc store i don't know about >> or something or is examining the code the only way? > For such a complex beast I'm afraid I have to make a minimal > documentation of everything first. Aah no worries Ben, thank you. Feel free to make something very verbose and send it my way to expand and elaborate on, happy to help ease the load. On Sat, 3 Oct 2020 at 19:53, Beno?t Minisini wrote: > Le 03/10/2020 ? 20:33, Bruce Steers a ?crit : > > Hi , I'm trying to do my bit by adding what i can to the wiki. > > I've been writing some info for the TextEditor control but it's not too > > easy. > > Mostly as there is no info. > > I've figured out how to load the control source up in gambas IDE and I > > have been searching through the code to try to understand what > > functions/arguments do so i can add the wiki info. > > > > I wondered if there was another way? some doc store i don't know about > > or something or is examining the code the only way? > > > > Cheers > > BruceS > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > For such a complex beast I'm afraid I have to make a minimal > documentation of everything first. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Oct 3 22:37:58 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 3 Oct 2020 23:37:58 +0300 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: Message-ID: "Opening a pipe for reading normally blocks until some other process opens the same pipe for writing." http://gambaswiki.org/wiki/lang/pipe I don't think you should be able to open pipe for read AND write at the same time. Benoit? Jussi On Sat, Oct 3, 2020 at 9:56 PM Bruce Steers wrote: > Hi all. > I just uploaded a simple pipe opening/watching routing to the Application > section as an example. > The reason for this was because it took me quite some time to figure out > how to get a pipe working at first and thought many others may have hit the > same brick wall. It seemed EVERYTHING I tried just locked up the app til > the pipe got some text sent, then everything was okay, the app could run > and the File_Read() event would trigger on any more text sent as expected. > > What was not expected is that "Opening" the pipe is like calling a Read > method that locks the program till it gets some text. > I came up with a simple solution (eventually) to use the Shell command to > echo a blank line to the pipe just before opening it... > > Shell "echo '' >/tmp/FIFO1" > hFile = Pipe "/tmp/FIFO1" For Read Watch > > That way when the pipe opens it gets the echo and moves on so the program > continues running. > It just seemed wrong though. > Like either i was doing something wrong in how i was opening the pipe or > it was a bug in the pipe opening call? > I would have thought that setting the "Watch" option would open the pipe > without expecting text and just set up the Read event and move on. > > I found using "Read Write Watch" all together and setting Blocking to > False Allowed the program to move past the open without sending text but > that gave me weird errors like pop-up menus stopped triggering Click() > events, I had some menus visible in the menubar AND attached to a button > popup and got the click event okay from the top menu but got nothing from > the popup menus. If i removed the "Write" from the pipe opening call the > popups worked again!? > I found the Shell "echo" method the best way but like i say , seems wrong > to have to do it that way. > > Thanks all :) > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Oct 3 23:32:38 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 4 Oct 2020 08:02:38 +1030 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: Message-ID: <6e5d513f-5d6c-3101-738d-dfc6c434dba7@gmail.com> On 4/10/20 7:07 am, Jussi Lahtinen wrote: > "Opening a pipe for reading normally blocks until some other process opens > the same pipe for writing." > http://gambaswiki.org/wiki/lang/pipe > > I don't think you should be able to open pipe for read AND write at the > same time. > Benoit? > > Jussi > I am not going to make any plumbing jokes. I promise .... b -------------- next part -------------- A non-text attachment was scrubbed... Name: pipes.png Type: image/png Size: 6020 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Oct 4 00:07:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 4 Oct 2020 00:07:43 +0200 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: Message-ID: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Le 03/10/2020 ? 20:55, Bruce Steers a ?crit?: > Hi all. > I just uploaded a simple pipe opening/watching routing to the > Application section as an example. > The reason for this was because it took me quite some time to figure out > how to get a pipe working at first and thought many others may have hit > the same brick wall. It seemed EVERYTHING I tried just locked up the app > til the pipe got some text sent, then everything was okay, the app could > run and the File_Read() event would trigger on any more text sent as > expected. > > What was not expected is that "Opening" the pipe is like calling a Read > method that locks the program till it gets some text. > I came up with a simple solution (eventually) to use the Shell command > to echo a blank line to the pipe just before opening it... > > ?Shell "echo '' >/tmp/FIFO1" > ?hFile = Pipe "/tmp/FIFO1" For Read Watch > > That way when the pipe opens it gets the echo and moves on so the > program continues running. > It just seemed wrong though. > Like either i was doing something wrong in how i was opening the pipe or > it was a bug in the pipe opening call? > I would have thought that setting the "Watch" option would open the pipe > without expecting text and just set up the Read event and move on. > > I found using "Read Write Watch" all together and setting Blocking to > False Allowed the program to move past the open without sending text but > that gave me weird errors like pop-up menus stopped triggering Click() > events, I had some menus visible in the menubar AND attached to a button > popup and got the click event okay from the top menu but got nothing > from the popup menus. If i removed the "Write" from the pipe opening > call the popups worked again!? > I found the Shell "echo" method the best way but like i say , seems > wrong to have to do it that way. > > Thanks all :) > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I have no locking problem with opening a pipe for reading and watching. Please post your project and tell which version of Gambas you are using. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sun Oct 4 00:20:27 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 4 Oct 2020 00:20:27 +0200 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: Message-ID: <0596e1c8-b32c-c162-2670-223cae5e902f@gmail.com> Le 03/10/2020 ? 22:37, Jussi Lahtinen a ?crit?: > "Opening a pipe for reading normally blocks until some other process > opens the same pipe for writing." > http://gambaswiki.org/wiki/lang/pipe > > I don't think you should be able to open pipe for read AND write at the > same time. > Benoit? > > Jussi > Now when you open a named pipe for reading, it is actually opened in non-blocking mode, and then set to blocking mode once opening has succeeded. Only in older version of Gambas (< 3.15) opening a pipe for reading had to wait for the pipe being opened for writing. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sun Oct 4 12:37:01 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 4 Oct 2020 11:37:01 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: Well according to your reply to the other person you've fixed it in 3.15 So that'd just be a waste of time.. Seems those who've managed to upgrade to the unstable beta version or self compiled it won't find that problem anymore. Just normal people will ;) lol On Sat, 3 Oct 2020 at 23:08, Beno?t Minisini wrote: > Le 03/10/2020 ? 20:55, Bruce Steers a ?crit : > > Hi all. > > I just uploaded a simple pipe opening/watching routing to the > > Application section as an example. > > The reason for this was because it took me quite some time to figure out > > how to get a pipe working at first and thought many others may have hit > > the same brick wall. It seemed EVERYTHING I tried just locked up the app > > til the pipe got some text sent, then everything was okay, the app could > > run and the File_Read() event would trigger on any more text sent as > > expected. > > > > What was not expected is that "Opening" the pipe is like calling a Read > > method that locks the program till it gets some text. > > I came up with a simple solution (eventually) to use the Shell command > > to echo a blank line to the pipe just before opening it... > > > > Shell "echo '' >/tmp/FIFO1" > > hFile = Pipe "/tmp/FIFO1" For Read Watch > > > > That way when the pipe opens it gets the echo and moves on so the > > program continues running. > > It just seemed wrong though. > > Like either i was doing something wrong in how i was opening the pipe or > > it was a bug in the pipe opening call? > > I would have thought that setting the "Watch" option would open the pipe > > without expecting text and just set up the Read event and move on. > > > > I found using "Read Write Watch" all together and setting Blocking to > > False Allowed the program to move past the open without sending text but > > that gave me weird errors like pop-up menus stopped triggering Click() > > events, I had some menus visible in the menubar AND attached to a button > > popup and got the click event okay from the top menu but got nothing > > from the popup menus. If i removed the "Write" from the pipe opening > > call the popups worked again!? > > I found the Shell "echo" method the best way but like i say , seems > > wrong to have to do it that way. > > > > Thanks all :) > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I have no locking problem with opening a pipe for reading and watching. > Please post your project and tell which version of Gambas you are using. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 4 12:38:46 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 4 Oct 2020 11:38:46 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: <0596e1c8-b32c-c162-2670-223cae5e902f@gmail.com> References: <0596e1c8-b32c-c162-2670-223cae5e902f@gmail.com> Message-ID: Well that answered my question. at least. Well done Ben On Sat, 3 Oct 2020 at 23:21, Beno?t Minisini wrote: > Le 03/10/2020 ? 22:37, Jussi Lahtinen a ?crit : > > "Opening a pipe for reading normally blocks until some other process > > opens the same pipe for writing." > > http://gambaswiki.org/wiki/lang/pipe > > > > I don't think you should be able to open pipe for read AND write at the > > same time. > > Benoit? > > > > Jussi > > > > Now when you open a named pipe for reading, it is actually opened in > non-blocking mode, and then set to blocking mode once opening has > succeeded. Only in older version of Gambas (< 3.15) opening a pipe for > reading had to wait for the pipe being opened for writing. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 4 12:42:34 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 4 Oct 2020 11:42:34 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: Message-ID: > "Opening a pipe for reading normally blocks until some other process opens > the same pipe for writing." > http://gambaswiki.org/wiki/lang/pipe Doesn't make it right though ;) And I guess someone agreed because it doesn't do it anymore apparently. On Sat, 3 Oct 2020 at 21:39, Jussi Lahtinen wrote: > "Opening a pipe for reading normally blocks until some other process opens > the same pipe for writing." > http://gambaswiki.org/wiki/lang/pipe > > I don't think you should be able to open pipe for read AND write at the > same time. > Benoit? > > Jussi > > > On Sat, Oct 3, 2020 at 9:56 PM Bruce Steers wrote: > >> Hi all. >> I just uploaded a simple pipe opening/watching routing to the Application >> section as an example. >> The reason for this was because it took me quite some time to figure out >> how to get a pipe working at first and thought many others may have hit the >> same brick wall. It seemed EVERYTHING I tried just locked up the app til >> the pipe got some text sent, then everything was okay, the app could run >> and the File_Read() event would trigger on any more text sent as expected. >> >> What was not expected is that "Opening" the pipe is like calling a Read >> method that locks the program till it gets some text. >> I came up with a simple solution (eventually) to use the Shell command to >> echo a blank line to the pipe just before opening it... >> >> Shell "echo '' >/tmp/FIFO1" >> hFile = Pipe "/tmp/FIFO1" For Read Watch >> >> That way when the pipe opens it gets the echo and moves on so the program >> continues running. >> It just seemed wrong though. >> Like either i was doing something wrong in how i was opening the pipe or >> it was a bug in the pipe opening call? >> I would have thought that setting the "Watch" option would open the pipe >> without expecting text and just set up the Read event and move on. >> >> I found using "Read Write Watch" all together and setting Blocking to >> False Allowed the program to move past the open without sending text but >> that gave me weird errors like pop-up menus stopped triggering Click() >> events, I had some menus visible in the menubar AND attached to a button >> popup and got the click event okay from the top menu but got nothing from >> the popup menus. If i removed the "Write" from the pipe opening call the >> popups worked again!? >> I found the Shell "echo" method the best way but like i say , seems wrong >> to have to do it that way. >> >> Thanks all :) >> >> >> ----[ 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 Oct 4 13:23:44 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 4 Oct 2020 12:23:44 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: > I have no locking problem with opening a pipe for reading and watching. > Please post your project and tell which version of Gambas you are using. I just removed the echo command in my app and now yes on 3.15 it works okay. (I must have missed the memo lol) Thing is Benoit for me i think it's also about which version of gambas others may be using. I'm trying to get gambas beyond the "Personal App Maker" reputation here by making apps useful to all.. incompatibilities between versions are an issue that hinder gambas I think. Like how does the new "non-blocking" mode work for older gambas? is it only on the 3.15 runtime it works? Ie. if i compile an app on 3.15 with GB_PCODE_VERSION=3.8 set and not use the "Shell echo" method will it block on a previous interpreter? As it stands with making software for others to also use there are at least the following problems... Without the GB_PCODE_VERSION=3.8 hint you gave me any user out there who hasn't managed to upgrade their gambas from their main linux distro repo to the latest 3.15 would not even be able to run my app, without having to load it into their version of the gambas IDE and re-compile. (for folks like you and I it's no problem but the average Joe doesn't think like us;) ) And if i haven't removed the CurrentArgument setting from a .project file on a 3.15 project the average user wouldn't even be able to load the project into a lesser gambas IDE as it fails with a type mismatch. For folks like you and I it's no problem to work out glitches like that , but to the average use they're just going to think gambas is rubbish, apps hardly ever work and they can't even load the source into their gambas IDE.. :( (Except for Bruces ones, they work okay ;) lol ) I certainly think it's a consideration to keep our eyes on. I'm making apps for me AND the average user but the "average user" won't have upgraded, they'll be on the version they got when they used their linux distro's software installer. Thank you all :) Bruce Steers On Sat, 3 Oct 2020 at 23:08, Beno?t Minisini wrote: > Le 03/10/2020 ? 20:55, Bruce Steers a ?crit : > > Hi all. > > I just uploaded a simple pipe opening/watching routing to the > > Application section as an example. > > The reason for this was because it took me quite some time to figure out > > how to get a pipe working at first and thought many others may have hit > > the same brick wall. It seemed EVERYTHING I tried just locked up the app > > til the pipe got some text sent, then everything was okay, the app could > > run and the File_Read() event would trigger on any more text sent as > > expected. > > > > What was not expected is that "Opening" the pipe is like calling a Read > > method that locks the program till it gets some text. > > I came up with a simple solution (eventually) to use the Shell command > > to echo a blank line to the pipe just before opening it... > > > > Shell "echo '' >/tmp/FIFO1" > > hFile = Pipe "/tmp/FIFO1" For Read Watch > > > > That way when the pipe opens it gets the echo and moves on so the > > program continues running. > > It just seemed wrong though. > > Like either i was doing something wrong in how i was opening the pipe or > > it was a bug in the pipe opening call? > > I would have thought that setting the "Watch" option would open the pipe > > without expecting text and just set up the Read event and move on. > > > > I found using "Read Write Watch" all together and setting Blocking to > > False Allowed the program to move past the open without sending text but > > that gave me weird errors like pop-up menus stopped triggering Click() > > events, I had some menus visible in the menubar AND attached to a button > > popup and got the click event okay from the top menu but got nothing > > from the popup menus. If i removed the "Write" from the pipe opening > > call the popups worked again!? > > I found the Shell "echo" method the best way but like i say , seems > > wrong to have to do it that way. > > > > Thanks all :) > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I have no locking problem with opening a pipe for reading and watching. > Please post your project and tell which version of Gambas you are using. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 4 14:04:31 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 4 Oct 2020 13:04:31 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: I put the Simple Pipe Example on the app page. http://gambaswiki.org/wiki/app/simple-pipe > I have no locking problem with opening a pipe for reading and watching. > Please post your project and tell which version of Gambas you are using. I just did some tests... That posted version I put on the wiki uses the echo trick and has GB_PCODE_VERSION=3.8 set. It works running it on gambas 3.15 and on 3.12 If i remove the echo trick it then only runs on a 3.15 gbr3 and hangs on a lesser version. I feel i've narrowly avoided a trap there :) Sorry to be the one keep referring to the lesser versions of gambas that i'm sure you've moved beyond but sadly though the rest of the world haven't moved on yet. I don't think this post even warrants a reply now as I was thinking i was doing something wrong when opening a pipe but it seems not, the pipe did lock and now it doesn't so problem solved in that respect. (Nice one Benoit) It just leaves a backward compatibility issue that with the echo trick i've used resolves the issue i guess. Cheers all Bruce Steers On Sat, 3 Oct 2020 at 23:08, Beno?t Minisini wrote: > Le 03/10/2020 ? 20:55, Bruce Steers a ?crit : > > Hi all. > > I just uploaded a simple pipe opening/watching routing to the > > Application section as an example. > > The reason for this was because it took me quite some time to figure out > > how to get a pipe working at first and thought many others may have hit > > the same brick wall. It seemed EVERYTHING I tried just locked up the app > > til the pipe got some text sent, then everything was okay, the app could > > run and the File_Read() event would trigger on any more text sent as > > expected. > > > > What was not expected is that "Opening" the pipe is like calling a Read > > method that locks the program till it gets some text. > > I came up with a simple solution (eventually) to use the Shell command > > to echo a blank line to the pipe just before opening it... > > > > Shell "echo '' >/tmp/FIFO1" > > hFile = Pipe "/tmp/FIFO1" For Read Watch > > > > That way when the pipe opens it gets the echo and moves on so the > > program continues running. > > It just seemed wrong though. > > Like either i was doing something wrong in how i was opening the pipe or > > it was a bug in the pipe opening call? > > I would have thought that setting the "Watch" option would open the pipe > > without expecting text and just set up the Read event and move on. > > > > I found using "Read Write Watch" all together and setting Blocking to > > False Allowed the program to move past the open without sending text but > > that gave me weird errors like pop-up menus stopped triggering Click() > > events, I had some menus visible in the menubar AND attached to a button > > popup and got the click event okay from the top menu but got nothing > > from the popup menus. If i removed the "Write" from the pipe opening > > call the popups worked again!? > > I found the Shell "echo" method the best way but like i say , seems > > wrong to have to do it that way. > > > > Thanks all :) > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I have no locking problem with opening a pipe for reading and watching. > Please post your project and tell which version of Gambas you are using. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Sun Oct 4 14:06:47 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Sun, 4 Oct 2020 14:06:47 +0200 Subject: [Gambas-user] Question to controls Message-ID: Hi, I have some textboxes on a form. To simplify some actions I wanted to use a virtual control defined as *Public ctrl As Control* On each of the textboxes I make f.ex. * **Public Sub DA_nachname_GotFocus()** **? ctrl = DA_nachname** **End** * I thought, when I have set this, I can use all properties of the current control. Especially I wanted to use the value or text. But that does not exist, either *ctrl.Value* nor *ctrl.Tex*t. Most other properties though, but those doesn't help in this case. Also, is there a better way to catch the current control without naming it? I did not find in the docs I searched. As f.ex ctrl=control.current? I don't want to need all the theory of OOP, I only now and then program, but want to make it easier though. (Already retired) Thanks in advance Dag -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Oct 4 14:44:01 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 4 Oct 2020 14:44:01 +0200 Subject: [Gambas-user] Question to controls In-Reply-To: References: Message-ID: Il giorno dom 4 ott 2020 alle ore 14:13 Dag Jarle Nerland Johansen - Gambas ha scritto: > Hi, > > I have some textboxes on a form. > To simplify some actions I wanted to use a virtual control defined as > > *...* > I don't want to need all the theory of OOP, I only now and then program, > but want to make it easier though. > (Already retired) > > Thanks in advance > Dag > You can group all the textboxes into a single group e.g .: In the properties of the textboxes in Group write myText And then in the class: Public Sub myText_GotFocus() Print Last.Name End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 4 14:57:53 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 4 Oct 2020 13:57:53 +0100 Subject: [Gambas-user] Question to controls In-Reply-To: References: Message-ID: Do you know of the "Last" property? Any event call like GotFocus() comes with the "Last" property. it will be the object that called the event regardless of it's name. (also "Control" may lack some properties you wish to access unique to a TextBox, if so try "Object" instead or even better if you know the type of control use that explicitly) Ie. *Public ctrl As Control* *Public obj As Object* *Public Sub DA_nachname_GotFocus()* * ctrl = Last* * obj = Last* *End* Or (using this method will give you ALL the available textbox properties) *Public ctrlTBox As TextBox* *Public Sub DA_nachname_GotFocus()* * ctrlTBox = Last* *End* BruceS On Sun, 4 Oct 2020 at 13:13, Dag Jarle Nerland Johansen - Gambas < gambas at cd-bahia.com> wrote: > Hi, > > I have some textboxes on a form. > To simplify some actions I wanted to use a virtual control defined as > > *Public ctrl As Control* > > On each of the textboxes I make f.ex. > > *Public Sub DA_nachname_GotFocus()* > * ctrl = DA_nachname* > *End* > > I thought, when I have set this, I can use all properties of the current > control. Especially I wanted to use the value or text. > But that does not exist, either *ctrl.Value* nor *ctrl.Tex*t. Most other > properties though, but those doesn't help in this case. > > Also, is there a better way to catch the current control without naming > it? I did not find in the docs I searched. > As f.ex ctrl=control.current? > > I don't want to need all the theory of OOP, I only now and then program, > but want to make it easier though. > (Already retired) > > Thanks in advance > Dag > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Oct 4 19:50:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 4 Oct 2020 19:50:47 +0200 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: Le 04/10/2020 ? 14:04, Bruce Steers a ?crit?: > > I don't think this post even warrants a reply now as I was thinking i > was doing something wrong when opening a pipe but it seems not, the pipe > did lock and now it doesn't so problem solved in that respect. (Nice one > Benoit) > It just leaves a backward compatibility issue that with the echo trick > i've used resolves the issue i guess. > > Cheers all > Bruce Steers > You did something wrong actually, because the old behaviour was the default one provided by Linux. It's only by playing with pipes in 3.14.90 that I noticed the default behaviour was not useful, so I dropped it to the current one. Note that your trick is welcome for older versions. It could be a notice in the wiki! Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sun Oct 4 20:10:32 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 4 Oct 2020 19:10:32 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: > It's only by playing with pipes in 3.14.90 that I noticed the default > behaviour was not useful, so I dropped it to the current one. Well thank you again kind sir :) It's much better the way it is now. more useful indeed than Linux's default behaviour. > Note that your trick is welcome for older versions. It could be a notice > in the wiki! I did try to edit the wiki last night to add a tip but the /lang/pipe wiki page shows a lot of info till you try to edit it then it breaks. So I quickly undid my edits to restore it. Cheers :) On Sun, 4 Oct 2020 at 18:51, Beno?t Minisini wrote: > Le 04/10/2020 ? 14:04, Bruce Steers a ?crit : > > > > I don't think this post even warrants a reply now as I was thinking i > > was doing something wrong when opening a pipe but it seems not, the pipe > > did lock and now it doesn't so problem solved in that respect. (Nice one > > Benoit) > > It just leaves a backward compatibility issue that with the echo trick > > i've used resolves the issue i guess. > > > > Cheers all > > Bruce Steers > > > > You did something wrong actually, because the old behaviour was the > default one provided by Linux. > > It's only by playing with pipes in 3.14.90 that I noticed the default > behaviour was not useful, so I dropped it to the current one. > > Note that your trick is welcome for older versions. It could be a notice > in the wiki! > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Sun Oct 4 22:00:13 2020 From: pflora at libero.it (pflora at libero.it) Date: Sun, 04 Oct 2020 23:00:13 +0300 Subject: [Gambas-user] =?utf-8?q?Project_crash_due_Textarea_selection?= Message-ID: <1601841613.21121674@f26.my.com> Hello in a project I have 2 Textarea that shows messages coming from UDP datagrams. Every 20 rows I do Textarea.clear Textarea.line = 1 If I select text in the exact moment the rows are cleared, for example making rapidly left clicks on the text, the programma crashes. I don't know if this can be considered a bug. Any way to avoid this ? I have no need to select text, It makes no sense so I can disabile all mouse events on the 2 text areas but I don't know how to do It. Gambas 15.1 Thank you. -- Inviato da Libero Mail per Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Oct 5 01:56:58 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 4 Oct 2020 19:56:58 -0400 Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: <1601841613.21121674@f26.my.com> References: <1601841613.21121674@f26.my.com> Message-ID: On 10/4/20 4:00 PM, pinglix via User wrote: > I have no need to select text, It makes no sense so I can disabile all mouse events on the 2 text areas but I don't know how to > do It. You could use something like: Public Sub TextArea1_MouseDown() Stop Event End -- Lee From g4mba5 at gmail.com Mon Oct 5 04:15:21 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Oct 2020 04:15:21 +0200 Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: <1601841613.21121674@f26.my.com> References: <1601841613.21121674@f26.my.com> Message-ID: <13e98630-94e4-7fca-2449-5860784de578@gmail.com> Le 04/10/2020 ? 22:00, pinglix via User a ?crit?: > Hello > in a project I have 2 Textarea that shows messages coming from UDP > datagrams. > > Every 20 rows I do > > Textarea.clear > Textarea.line = 1 > > If I select text in the exact moment the rows are cleared, for example > making rapidly left clicks on the text, the programma crashes. > I don't know if this can be considered a bug. > > Any way to avoid this ? > > I have no need to select text, It makes no sense so I can disabile all > mouse events on the 2 text areas but I don't know how to do It. > > Gambas 15.1 > > Thank you. > > -- > Inviato da Libero Mail per Android > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Please provide a project that reproduces the bug (this is Gambas 3.15.1, not Gambas 15.1 by the way). Thanks. -- Beno?t Minisini From ujlain at gmail.com Mon Oct 5 08:29:33 2020 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Mon, 5 Oct 2020 11:59:33 +0530 Subject: [Gambas-user] Anyone else facing issues with offline help Message-ID: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> Upgraded to 3.15.2 (Linux Mint 19.3),the offline help available in previous version has disappeared , is it my local IDE setting or others too having this issue ? Or have I managed to disturb some IDE setting ?/[ Use offline documentation - enabled , offline document is up to date ]/ Regards - UZI ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bpfewo at gmail.com Mon Oct 5 09:08:09 2020 From: bpfewo at gmail.com (Boris Breuer) Date: Mon, 5 Oct 2020 09:08:09 +0200 Subject: [Gambas-user] Advice/Help appreciated: Gambas install on WSL Ubuntu 20.04 Message-ID: Good morning altogether, i am new to programming in Gambas BASIC - though a little experience in vb.net, vba and lazarus / freepascal is there ;) Due to work my main computer has to have windows installed but i thought it would be nice to have a linux-system on WSL with ubuntu aside. For developing purposes I wanted to install gambas 3.15.2 from the ubuntu ppa. That worked to some extent. After install the command gambas3 only delivers an error message: gb.gui.qt: error: cannot load component 'gb.qt5' An dpkg --get-selections | grep gambas3 shows: gambas3 install gambas3-devel install gambas3-gb-args install gambas3-gb-cairo install gambas3-gb-chart install gambas3-gb-clipper install gambas3-gb-complex install gambas3-gb-compress install gambas3-gb-compress-bzlib2 install gambas3-gb-compress-zlib install gambas3-gb-crypt install gambas3-gb-data install gambas3-gb-db install gambas3-gb-db-form install gambas3-gb-db-mysql install gambas3-gb-db-odbc install gambas3-gb-db-postgresql install gambas3-gb-db-sqlite3 install gambas3-gb-dbus install gambas3-gb-dbus-trayicon install gambas3-gb-desktop install gambas3-gb-desktop-x11 install gambas3-gb-eval-highlight install gambas3-gb-form install gambas3-gb-form-dialog install gambas3-gb-form-editor install gambas3-gb-form-mdi install gambas3-gb-form-print install gambas3-gb-form-stock install gambas3-gb-form-terminal install gambas3-gb-gmp install gambas3-gb-gsl install gambas3-gb-gtk install gambas3-gb-gtk-opengl install gambas3-gb-gtk3 install gambas3-gb-httpd install gambas3-gb-image install gambas3-gb-image-effect install gambas3-gb-image-imlib install gambas3-gb-image-io install gambas3-gb-inotify install gambas3-gb-libxml install gambas3-gb-logging install gambas3-gb-map install gambas3-gb-markdown install gambas3-gb-media install gambas3-gb-media-form install gambas3-gb-memcached install gambas3-gb-mime install gambas3-gb-mysql install gambas3-gb-ncurses install gambas3-gb-net install gambas3-gb-net-curl install gambas3-gb-net-pop3 install gambas3-gb-net-smtp install gambas3-gb-openal install gambas3-gb-opengl install gambas3-gb-opengl-glsl install gambas3-gb-opengl-glu install gambas3-gb-opengl-sge install gambas3-gb-openssl install gambas3-gb-option install gambas3-gb-pcre install gambas3-gb-pdf install gambas3-gb-qt5 install gambas3-gb-qt5-ext install gambas3-gb-qt5-opengl install gambas3-gb-qt5-webkit install gambas3-gb-report install gambas3-gb-report2 install gambas3-gb-scanner install gambas3-gb-sdl install gambas3-gb-sdl-sound install gambas3-gb-sdl2 install gambas3-gb-sdl2-audio install gambas3-gb-settings install gambas3-gb-signal install gambas3-gb-term install gambas3-gb-term-form install gambas3-gb-util install gambas3-gb-util-web install gambas3-gb-v4l install gambas3-gb-vb install gambas3-gb-web install gambas3-gb-web-feed install gambas3-gb-web-form install gambas3-gb-web-gui install gambas3-gb-xml install gambas3-gb-xml-html install gambas3-gb-xml-rpc install gambas3-gb-xml-xslt install gambas3-ide install gambas3-runtime install And dpkg --get-selections | grep qt5 delivers: libaccounts-qt5-1:amd64 install libdbusmenu-qt5-2:amd64 install libpackagekitqt5-1:amd64 install libphonon4qt5-4:amd64 install libphonon4qt5-data install libpolkit-qt5-1-1:amd64 install libpoppler-qt5-1:amd64 install libqca-qt5-2:amd64 install libqca-qt5-2-plugins:amd64 install libqt5concurrent5:amd64 install libqt5core5a:amd64 install libqt5dbus5:amd64 install libqt5designer5:amd64 install libqt5gui5:amd64 install libqt5gui5-gles:amd64 deinstall libqt5help5:amd64 install libqt5hunspellinputmethod5:amd64 install libqt5multimedia5:amd64 install libqt5multimedia5-plugins:amd64 install libqt5multimediagsttools5:amd64 install libqt5multimediaquick5:amd64 install libqt5multimediawidgets5:amd64 install libqt5network5:amd64 install libqt5opengl5:amd64 install libqt5positioning5:amd64 install libqt5printsupport5:amd64 install libqt5qml5:amd64 install libqt5quick5-gles:amd64 install libqt5quickcontrols2-5:amd64 install libqt5quicktemplates2-5:amd64 install libqt5quickwidgets5:amd64 install libqt5script5:amd64 install libqt5sensors5:amd64 install libqt5sql5:amd64 install libqt5sql5-sqlite:amd64 install libqt5svg5:amd64 install libqt5test5:amd64 install libqt5texttospeech5:amd64 install libqt5virtualkeyboard5:amd64 install libqt5waylandclient5:amd64 install libqt5waylandcompositor5:amd64 install libqt5webchannel5:amd64 install libqt5webengine-data install libqt5webenginecore5:amd64 install libqt5webenginewidgets5:amd64 install libqt5webkit5:amd64 install libqt5widgets5:amd64 install libqt5x11extras5:amd64 install libqt5xml5:amd64 install I don't understand why it doesn't work - the desktop environment comes up and works on the x-server on windows very well. On my mobile workplace an install from ppa on KDE Neon worked like a charm. Maybe someone can point to a workaround or a solution to this? Thanks in advance for your help. Yours sincerly, Boris Breuer -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Mon Oct 5 10:47:59 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Mon, 5 Oct 2020 10:47:59 +0200 Subject: [Gambas-user] For Each controls Message-ID: <51be01b7-c51e-023a-1a4f-43655151d7ea@cd-bahia.com> Hi, I need a refreshment in for Each of form objects. I can't find a proper example, a collection is not relevant, because it is defined in the example, the objects not. I want to collect the data i have on the screen, on the current form, content of label + content of textbox, nothing complicated. I have really no idea of how to initiate the "For Each" statement. The Textboxes are named as DA_ then the field name of the DB-table, e.g. DA_nachname. To know this will be useful for me in other situations to. I assume a combination of two different control-types (label + textbox) is too difficult, please start simple with Textbox. Thanks in advance, Dag From bsteers4 at gmail.com Mon Oct 5 12:53:25 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 11:53:25 +0100 Subject: [Gambas-user] Advice/Help appreciated: Gambas install on WSL Ubuntu 20.04 In-Reply-To: References: Message-ID: Hi. According to --get-selections you don't seem to have anything Gambas installed at all. You'll need to install the main package gambas3 apt-get install gambas3 :) On Mon, 5 Oct 2020 at 08:09, Boris Breuer wrote: > Good morning altogether, > > i am new to programming in Gambas BASIC - though a little experience in > vb.net, vba and lazarus / freepascal is there ;) > > Due to work my main computer has to have windows installed but i thought > it would be nice to have a linux-system on WSL with ubuntu aside. For > developing purposes I wanted to install gambas 3.15.2 from the ubuntu ppa. > That worked to some extent. After install the command gambas3 only delivers > an error message: gb.gui.qt: error: cannot load component 'gb.qt5' > > An dpkg --get-selections | grep gambas3 shows: > > gambas3 install > gambas3-devel install > gambas3-gb-args install > gambas3-gb-cairo install > gambas3-gb-chart install > gambas3-gb-clipper install > gambas3-gb-complex install > gambas3-gb-compress install > gambas3-gb-compress-bzlib2 install > gambas3-gb-compress-zlib install > gambas3-gb-crypt install > gambas3-gb-data install > gambas3-gb-db install > gambas3-gb-db-form install > gambas3-gb-db-mysql install > gambas3-gb-db-odbc install > gambas3-gb-db-postgresql install > gambas3-gb-db-sqlite3 install > gambas3-gb-dbus install > gambas3-gb-dbus-trayicon install > gambas3-gb-desktop install > gambas3-gb-desktop-x11 install > gambas3-gb-eval-highlight install > gambas3-gb-form install > gambas3-gb-form-dialog install > gambas3-gb-form-editor install > gambas3-gb-form-mdi install > gambas3-gb-form-print install > gambas3-gb-form-stock install > gambas3-gb-form-terminal install > gambas3-gb-gmp install > gambas3-gb-gsl install > gambas3-gb-gtk install > gambas3-gb-gtk-opengl install > gambas3-gb-gtk3 install > gambas3-gb-httpd install > gambas3-gb-image install > gambas3-gb-image-effect install > gambas3-gb-image-imlib install > gambas3-gb-image-io install > gambas3-gb-inotify install > gambas3-gb-libxml install > gambas3-gb-logging install > gambas3-gb-map install > gambas3-gb-markdown install > gambas3-gb-media install > gambas3-gb-media-form install > gambas3-gb-memcached install > gambas3-gb-mime install > gambas3-gb-mysql install > gambas3-gb-ncurses install > gambas3-gb-net install > gambas3-gb-net-curl install > gambas3-gb-net-pop3 install > gambas3-gb-net-smtp install > gambas3-gb-openal install > gambas3-gb-opengl install > gambas3-gb-opengl-glsl install > gambas3-gb-opengl-glu install > gambas3-gb-opengl-sge install > gambas3-gb-openssl install > gambas3-gb-option install > gambas3-gb-pcre install > gambas3-gb-pdf install > gambas3-gb-qt5 install > gambas3-gb-qt5-ext install > gambas3-gb-qt5-opengl install > gambas3-gb-qt5-webkit install > gambas3-gb-report install > gambas3-gb-report2 install > gambas3-gb-scanner install > gambas3-gb-sdl install > gambas3-gb-sdl-sound install > gambas3-gb-sdl2 install > gambas3-gb-sdl2-audio install > gambas3-gb-settings install > gambas3-gb-signal install > gambas3-gb-term install > gambas3-gb-term-form install > gambas3-gb-util install > gambas3-gb-util-web install > gambas3-gb-v4l install > gambas3-gb-vb install > gambas3-gb-web install > gambas3-gb-web-feed install > gambas3-gb-web-form install > gambas3-gb-web-gui install > gambas3-gb-xml install > gambas3-gb-xml-html install > gambas3-gb-xml-rpc install > gambas3-gb-xml-xslt install > gambas3-ide install > gambas3-runtime install > > And dpkg --get-selections | grep qt5 delivers: > > libaccounts-qt5-1:amd64 install > libdbusmenu-qt5-2:amd64 install > libpackagekitqt5-1:amd64 install > libphonon4qt5-4:amd64 install > libphonon4qt5-data install > libpolkit-qt5-1-1:amd64 install > libpoppler-qt5-1:amd64 install > libqca-qt5-2:amd64 install > libqca-qt5-2-plugins:amd64 install > libqt5concurrent5:amd64 install > libqt5core5a:amd64 install > libqt5dbus5:amd64 install > libqt5designer5:amd64 install > libqt5gui5:amd64 install > libqt5gui5-gles:amd64 deinstall > libqt5help5:amd64 install > libqt5hunspellinputmethod5:amd64 install > libqt5multimedia5:amd64 install > libqt5multimedia5-plugins:amd64 install > libqt5multimediagsttools5:amd64 install > libqt5multimediaquick5:amd64 install > libqt5multimediawidgets5:amd64 install > libqt5network5:amd64 install > libqt5opengl5:amd64 install > libqt5positioning5:amd64 install > libqt5printsupport5:amd64 install > libqt5qml5:amd64 install > libqt5quick5-gles:amd64 install > libqt5quickcontrols2-5:amd64 install > libqt5quicktemplates2-5:amd64 install > libqt5quickwidgets5:amd64 install > libqt5script5:amd64 install > libqt5sensors5:amd64 install > libqt5sql5:amd64 install > libqt5sql5-sqlite:amd64 install > libqt5svg5:amd64 install > libqt5test5:amd64 install > libqt5texttospeech5:amd64 install > libqt5virtualkeyboard5:amd64 install > libqt5waylandclient5:amd64 install > libqt5waylandcompositor5:amd64 install > libqt5webchannel5:amd64 install > libqt5webengine-data install > libqt5webenginecore5:amd64 install > libqt5webenginewidgets5:amd64 install > libqt5webkit5:amd64 install > libqt5widgets5:amd64 install > libqt5x11extras5:amd64 install > libqt5xml5:amd64 install > > I don't understand why it doesn't work - the desktop environment comes up > and works on the x-server on windows very well. > On my mobile workplace an install from ppa on KDE Neon worked like a charm. > > Maybe someone can point to a workaround or a solution to this? Thanks in > advance for your help. > > Yours sincerly, > > Boris Breuer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Oct 5 13:00:05 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 5 Oct 2020 21:30:05 +1030 Subject: [Gambas-user] For Each controls In-Reply-To: <51be01b7-c51e-023a-1a4f-43655151d7ea@cd-bahia.com> References: <51be01b7-c51e-023a-1a4f-43655151d7ea@cd-bahia.com> Message-ID: On 5/10/20 7:17 pm, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > I need a refreshment in for Each of form objects. > I can't find a proper example, a collection is not relevant, because it > is defined in the example, the objects not. > I want to collect the data i have on the screen, on the current form, > content of label + content of textbox, nothing complicated. > I have really no idea of how to initiate the "For Each" statement. > The Textboxes are named as DA_ then the field name of the DB-table, e.g. > DA_nachname. > To know this will be useful for me in other situations to. > I assume a combination of two different control-types (label + textbox) > is too difficult, please start simple with Textbox. > Thanks in advance, > Dag > For Each .Window.Controls (gb.qt4) Dim hWindow As Window Dim hControl As Control For Each hControl In hWindow.Controls ... Next Enumerates each control that belongs to a window. rgrds bruce -- From bpfewo at gmail.com Mon Oct 5 13:08:48 2020 From: bpfewo at gmail.com (Boris Breuer) Date: Mon, 5 Oct 2020 13:08:48 +0200 Subject: [Gambas-user] User Digest, Vol 37, Issue 11 In-Reply-To: References: Message-ID: Hi Bruce, thanks for your reply. Just give it a try: sudo apt install gambas3:: Reading package lists... Done Building dependency tree Reading state information... Done gambas3 is already the newest version (3.15.2+git6080.2c36245e4+build5.da1e7df.17.76493e1~ubuntu20.04.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Not sure, but this means the package should be there, doesn't it? ;) Am Mo., 5. Okt. 2020 um 12:56 Uhr schrieb < user-request at lists.gambas-basic.org>: > Send User mailing list submissions to > user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of User digest..." > > > Today's Topics: > > 1. Re: Advice/Help appreciated: Gambas install on WSL Ubuntu > 20.04 (Bruce Steers) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 5 Oct 2020 11:53:25 +0100 > From: Bruce Steers > To: Gambas Mailing List > Subject: Re: [Gambas-user] Advice/Help appreciated: Gambas install on > WSL Ubuntu 20.04 > Message-ID: > ce5nJyQg+8LV3yA at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi. > According to --get-selections you don't seem to have anything Gambas > installed at all. > > You'll need to install the main package gambas3 > > apt-get install gambas3 > > :) > > On Mon, 5 Oct 2020 at 08:09, Boris Breuer wrote: > > > Good morning altogether, > > > > i am new to programming in Gambas BASIC - though a little experience in > > vb.net, vba and lazarus / freepascal is there ;) > > > > Due to work my main computer has to have windows installed but i thought > > it would be nice to have a linux-system on WSL with ubuntu aside. For > > developing purposes I wanted to install gambas 3.15.2 from the ubuntu > ppa. > > That worked to some extent. After install the command gambas3 only > delivers > > an error message: gb.gui.qt: error: cannot load component 'gb.qt5' > > > > An dpkg --get-selections | grep gambas3 shows: > > > > gambas3 install > > gambas3-devel install > > gambas3-gb-args install > > gambas3-gb-cairo install > > gambas3-gb-chart install > > gambas3-gb-clipper install > > gambas3-gb-complex install > > gambas3-gb-compress install > > gambas3-gb-compress-bzlib2 install > > gambas3-gb-compress-zlib install > > gambas3-gb-crypt install > > gambas3-gb-data install > > gambas3-gb-db install > > gambas3-gb-db-form install > > gambas3-gb-db-mysql install > > gambas3-gb-db-odbc install > > gambas3-gb-db-postgresql install > > gambas3-gb-db-sqlite3 install > > gambas3-gb-dbus install > > gambas3-gb-dbus-trayicon install > > gambas3-gb-desktop install > > gambas3-gb-desktop-x11 install > > gambas3-gb-eval-highlight install > > gambas3-gb-form install > > gambas3-gb-form-dialog install > > gambas3-gb-form-editor install > > gambas3-gb-form-mdi install > > gambas3-gb-form-print install > > gambas3-gb-form-stock install > > gambas3-gb-form-terminal install > > gambas3-gb-gmp install > > gambas3-gb-gsl install > > gambas3-gb-gtk install > > gambas3-gb-gtk-opengl install > > gambas3-gb-gtk3 install > > gambas3-gb-httpd install > > gambas3-gb-image install > > gambas3-gb-image-effect install > > gambas3-gb-image-imlib install > > gambas3-gb-image-io install > > gambas3-gb-inotify install > > gambas3-gb-libxml install > > gambas3-gb-logging install > > gambas3-gb-map install > > gambas3-gb-markdown install > > gambas3-gb-media install > > gambas3-gb-media-form install > > gambas3-gb-memcached install > > gambas3-gb-mime install > > gambas3-gb-mysql install > > gambas3-gb-ncurses install > > gambas3-gb-net install > > gambas3-gb-net-curl install > > gambas3-gb-net-pop3 install > > gambas3-gb-net-smtp install > > gambas3-gb-openal install > > gambas3-gb-opengl install > > gambas3-gb-opengl-glsl install > > gambas3-gb-opengl-glu install > > gambas3-gb-opengl-sge install > > gambas3-gb-openssl install > > gambas3-gb-option install > > gambas3-gb-pcre install > > gambas3-gb-pdf install > > gambas3-gb-qt5 install > > gambas3-gb-qt5-ext install > > gambas3-gb-qt5-opengl install > > gambas3-gb-qt5-webkit install > > gambas3-gb-report install > > gambas3-gb-report2 install > > gambas3-gb-scanner install > > gambas3-gb-sdl install > > gambas3-gb-sdl-sound install > > gambas3-gb-sdl2 install > > gambas3-gb-sdl2-audio install > > gambas3-gb-settings install > > gambas3-gb-signal install > > gambas3-gb-term install > > gambas3-gb-term-form install > > gambas3-gb-util install > > gambas3-gb-util-web install > > gambas3-gb-v4l install > > gambas3-gb-vb install > > gambas3-gb-web install > > gambas3-gb-web-feed install > > gambas3-gb-web-form install > > gambas3-gb-web-gui install > > gambas3-gb-xml install > > gambas3-gb-xml-html install > > gambas3-gb-xml-rpc install > > gambas3-gb-xml-xslt install > > gambas3-ide install > > gambas3-runtime install > > > > And dpkg --get-selections | grep qt5 delivers: > > > > libaccounts-qt5-1:amd64 install > > libdbusmenu-qt5-2:amd64 install > > libpackagekitqt5-1:amd64 install > > libphonon4qt5-4:amd64 install > > libphonon4qt5-data install > > libpolkit-qt5-1-1:amd64 install > > libpoppler-qt5-1:amd64 install > > libqca-qt5-2:amd64 install > > libqca-qt5-2-plugins:amd64 install > > libqt5concurrent5:amd64 install > > libqt5core5a:amd64 install > > libqt5dbus5:amd64 install > > libqt5designer5:amd64 install > > libqt5gui5:amd64 install > > libqt5gui5-gles:amd64 deinstall > > libqt5help5:amd64 install > > libqt5hunspellinputmethod5:amd64 install > > libqt5multimedia5:amd64 install > > libqt5multimedia5-plugins:amd64 install > > libqt5multimediagsttools5:amd64 install > > libqt5multimediaquick5:amd64 install > > libqt5multimediawidgets5:amd64 install > > libqt5network5:amd64 install > > libqt5opengl5:amd64 install > > libqt5positioning5:amd64 install > > libqt5printsupport5:amd64 install > > libqt5qml5:amd64 install > > libqt5quick5-gles:amd64 install > > libqt5quickcontrols2-5:amd64 install > > libqt5quicktemplates2-5:amd64 install > > libqt5quickwidgets5:amd64 install > > libqt5script5:amd64 install > > libqt5sensors5:amd64 install > > libqt5sql5:amd64 install > > libqt5sql5-sqlite:amd64 install > > libqt5svg5:amd64 install > > libqt5test5:amd64 install > > libqt5texttospeech5:amd64 install > > libqt5virtualkeyboard5:amd64 install > > libqt5waylandclient5:amd64 install > > libqt5waylandcompositor5:amd64 install > > libqt5webchannel5:amd64 install > > libqt5webengine-data install > > libqt5webenginecore5:amd64 install > > libqt5webenginewidgets5:amd64 install > > libqt5webkit5:amd64 install > > libqt5widgets5:amd64 install > > libqt5x11extras5:amd64 install > > libqt5xml5:amd64 install > > > > I don't understand why it doesn't work - the desktop environment comes up > > and works on the x-server on windows very well. > > On my mobile workplace an install from ppa on KDE Neon worked like a > charm. > > > > Maybe someone can point to a workaround or a solution to this? Thanks in > > advance for your help. > > > > Yours sincerly, > > > > Boris Breuer > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.gambas-basic.org/pipermail/user/attachments/20201005/f65a6b58/attachment.htm > > > > ------------------------------ > > Subject: Digest Footer > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ------------------------------ > > End of User Digest, Vol 37, Issue 11 > ************************************ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Oct 5 13:32:52 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 12:32:52 +0100 Subject: [Gambas-user] User Digest, Vol 37, Issue 11 In-Reply-To: References: Message-ID: You could have conflicts going on with the repositories version if you've installed the ppa version as well. I would advise the following... first clear ALL gambas stuff out, from terminal type *sudo apt-get purge gambas3** then load synaptic package manager and click on the "Origins" button. Then from the list find the gambas3-team-ppa you added and install your gambas components only from there. Just using apt-get install gambas3 after adding a ppa can cause problems with conflicts. Hope this helps :) On Mon, 5 Oct 2020 at 12:09, Boris Breuer wrote: > Hi Bruce, > > thanks for your reply. Just give it a try: > > sudo apt install gambas3:: > > Reading package lists... Done > Building dependency tree > Reading state information... Done > gambas3 is already the newest version > (3.15.2+git6080.2c36245e4+build5.da1e7df.17.76493e1~ubuntu20.04.1). > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > Not sure, but this means the package should be there, doesn't it? ;) > > Am Mo., 5. Okt. 2020 um 12:56 Uhr schrieb < > user-request at lists.gambas-basic.org>: > >> Send User mailing list submissions to >> user at lists.gambas-basic.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.gambas-basic.org/listinfo/user >> or, via email, send a message with subject or body 'help' to >> user-request at lists.gambas-basic.org >> >> You can reach the person managing the list at >> user-owner at lists.gambas-basic.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of User digest..." >> >> >> Today's Topics: >> >> 1. Re: Advice/Help appreciated: Gambas install on WSL Ubuntu >> 20.04 (Bruce Steers) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 5 Oct 2020 11:53:25 +0100 >> From: Bruce Steers >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Advice/Help appreciated: Gambas install on >> WSL Ubuntu 20.04 >> Message-ID: >> > ce5nJyQg+8LV3yA at mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Hi. >> According to --get-selections you don't seem to have anything Gambas >> installed at all. >> >> You'll need to install the main package gambas3 >> >> apt-get install gambas3 >> >> :) >> >> On Mon, 5 Oct 2020 at 08:09, Boris Breuer wrote: >> >> > Good morning altogether, >> > >> > i am new to programming in Gambas BASIC - though a little experience in >> > vb.net, vba and lazarus / freepascal is there ;) >> > >> > Due to work my main computer has to have windows installed but i thought >> > it would be nice to have a linux-system on WSL with ubuntu aside. For >> > developing purposes I wanted to install gambas 3.15.2 from the ubuntu >> ppa. >> > That worked to some extent. After install the command gambas3 only >> delivers >> > an error message: gb.gui.qt: error: cannot load component 'gb.qt5' >> > >> > An dpkg --get-selections | grep gambas3 shows: >> > >> > gambas3 install >> > gambas3-devel install >> > gambas3-gb-args install >> > gambas3-gb-cairo install >> > gambas3-gb-chart install >> > gambas3-gb-clipper install >> > gambas3-gb-complex install >> > gambas3-gb-compress install >> > gambas3-gb-compress-bzlib2 install >> > gambas3-gb-compress-zlib install >> > gambas3-gb-crypt install >> > gambas3-gb-data install >> > gambas3-gb-db install >> > gambas3-gb-db-form install >> > gambas3-gb-db-mysql install >> > gambas3-gb-db-odbc install >> > gambas3-gb-db-postgresql install >> > gambas3-gb-db-sqlite3 install >> > gambas3-gb-dbus install >> > gambas3-gb-dbus-trayicon install >> > gambas3-gb-desktop install >> > gambas3-gb-desktop-x11 install >> > gambas3-gb-eval-highlight install >> > gambas3-gb-form install >> > gambas3-gb-form-dialog install >> > gambas3-gb-form-editor install >> > gambas3-gb-form-mdi install >> > gambas3-gb-form-print install >> > gambas3-gb-form-stock install >> > gambas3-gb-form-terminal install >> > gambas3-gb-gmp install >> > gambas3-gb-gsl install >> > gambas3-gb-gtk install >> > gambas3-gb-gtk-opengl install >> > gambas3-gb-gtk3 install >> > gambas3-gb-httpd install >> > gambas3-gb-image install >> > gambas3-gb-image-effect install >> > gambas3-gb-image-imlib install >> > gambas3-gb-image-io install >> > gambas3-gb-inotify install >> > gambas3-gb-libxml install >> > gambas3-gb-logging install >> > gambas3-gb-map install >> > gambas3-gb-markdown install >> > gambas3-gb-media install >> > gambas3-gb-media-form install >> > gambas3-gb-memcached install >> > gambas3-gb-mime install >> > gambas3-gb-mysql install >> > gambas3-gb-ncurses install >> > gambas3-gb-net install >> > gambas3-gb-net-curl install >> > gambas3-gb-net-pop3 install >> > gambas3-gb-net-smtp install >> > gambas3-gb-openal install >> > gambas3-gb-opengl install >> > gambas3-gb-opengl-glsl install >> > gambas3-gb-opengl-glu install >> > gambas3-gb-opengl-sge install >> > gambas3-gb-openssl install >> > gambas3-gb-option install >> > gambas3-gb-pcre install >> > gambas3-gb-pdf install >> > gambas3-gb-qt5 install >> > gambas3-gb-qt5-ext install >> > gambas3-gb-qt5-opengl install >> > gambas3-gb-qt5-webkit install >> > gambas3-gb-report install >> > gambas3-gb-report2 install >> > gambas3-gb-scanner install >> > gambas3-gb-sdl install >> > gambas3-gb-sdl-sound install >> > gambas3-gb-sdl2 install >> > gambas3-gb-sdl2-audio install >> > gambas3-gb-settings install >> > gambas3-gb-signal install >> > gambas3-gb-term install >> > gambas3-gb-term-form install >> > gambas3-gb-util install >> > gambas3-gb-util-web install >> > gambas3-gb-v4l install >> > gambas3-gb-vb install >> > gambas3-gb-web install >> > gambas3-gb-web-feed install >> > gambas3-gb-web-form install >> > gambas3-gb-web-gui install >> > gambas3-gb-xml install >> > gambas3-gb-xml-html install >> > gambas3-gb-xml-rpc install >> > gambas3-gb-xml-xslt install >> > gambas3-ide install >> > gambas3-runtime install >> > >> > And dpkg --get-selections | grep qt5 delivers: >> > >> > libaccounts-qt5-1:amd64 install >> > libdbusmenu-qt5-2:amd64 install >> > libpackagekitqt5-1:amd64 install >> > libphonon4qt5-4:amd64 install >> > libphonon4qt5-data install >> > libpolkit-qt5-1-1:amd64 install >> > libpoppler-qt5-1:amd64 install >> > libqca-qt5-2:amd64 install >> > libqca-qt5-2-plugins:amd64 install >> > libqt5concurrent5:amd64 install >> > libqt5core5a:amd64 install >> > libqt5dbus5:amd64 install >> > libqt5designer5:amd64 install >> > libqt5gui5:amd64 install >> > libqt5gui5-gles:amd64 deinstall >> > libqt5help5:amd64 install >> > libqt5hunspellinputmethod5:amd64 install >> > libqt5multimedia5:amd64 install >> > libqt5multimedia5-plugins:amd64 install >> > libqt5multimediagsttools5:amd64 install >> > libqt5multimediaquick5:amd64 install >> > libqt5multimediawidgets5:amd64 install >> > libqt5network5:amd64 install >> > libqt5opengl5:amd64 install >> > libqt5positioning5:amd64 install >> > libqt5printsupport5:amd64 install >> > libqt5qml5:amd64 install >> > libqt5quick5-gles:amd64 install >> > libqt5quickcontrols2-5:amd64 install >> > libqt5quicktemplates2-5:amd64 install >> > libqt5quickwidgets5:amd64 install >> > libqt5script5:amd64 install >> > libqt5sensors5:amd64 install >> > libqt5sql5:amd64 install >> > libqt5sql5-sqlite:amd64 install >> > libqt5svg5:amd64 install >> > libqt5test5:amd64 install >> > libqt5texttospeech5:amd64 install >> > libqt5virtualkeyboard5:amd64 install >> > libqt5waylandclient5:amd64 install >> > libqt5waylandcompositor5:amd64 install >> > libqt5webchannel5:amd64 install >> > libqt5webengine-data install >> > libqt5webenginecore5:amd64 install >> > libqt5webenginewidgets5:amd64 install >> > libqt5webkit5:amd64 install >> > libqt5widgets5:amd64 install >> > libqt5x11extras5:amd64 install >> > libqt5xml5:amd64 install >> > >> > I don't understand why it doesn't work - the desktop environment comes >> up >> > and works on the x-server on windows very well. >> > On my mobile workplace an install from ppa on KDE Neon worked like a >> charm. >> > >> > Maybe someone can point to a workaround or a solution to this? Thanks in >> > advance for your help. >> > >> > Yours sincerly, >> > >> > Boris Breuer >> > >> > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://lists.gambas-basic.org/pipermail/user/attachments/20201005/f65a6b58/attachment.htm >> > >> >> ------------------------------ >> >> Subject: Digest Footer >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ------------------------------ >> >> End of User Digest, Vol 37, Issue 11 >> ************************************ >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Oct 5 13:34:36 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 12:34:36 +0100 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> Message-ID: I found the offline help works but its lacking many many pages the online version has. You should find the option of the preferences (Help and Application) But from gambas 3.12 to 3.15.90 i've always found the offline help lacking a lot. On Mon, 5 Oct 2020 at 07:30, Vinode Singh Ujlain wrote: > Upgraded to 3.15.2 (Linux Mint 19.3), the offline help available in > previous version has disappeared , is it my local IDE setting or others > too having this issue ? > Or have I managed to disturb some IDE setting ?* [ Use offline > documentation - enabled , offline document is up to date ]* > > Regards - UZI > ------------------------------ > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 5 13:42:46 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Oct 2020 13:42:46 +0200 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> Message-ID: Le 05/10/2020 ? 13:34, Bruce Steers a ?crit?: > I found the offline help works but its lacking many many pages the > online version has. > > You should find the option of the preferences? (Help and Application) > > But from gambas 3.12 to 3.15.90 i've always found the offline help > lacking a lot. > Indeed, the automatic generation of offline documentation was disabled since March! I activated it again, and you should have a new version of the documenation available to download. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Oct 5 14:20:58 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 13:20:58 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: > I did try to edit the wiki last night to add a tip but the /lang/pipe wiki page shows a lot of info till you try to edit it then it breaks. I figured it out :) realised the /lang/pipe page was just a link to the /lang/openpipe page. Added some info :) On Sun, 4 Oct 2020 at 18:51, Beno?t Minisini wrote: > Le 04/10/2020 ? 14:04, Bruce Steers a ?crit : > > > > I don't think this post even warrants a reply now as I was thinking i > > was doing something wrong when opening a pipe but it seems not, the pipe > > did lock and now it doesn't so problem solved in that respect. (Nice one > > Benoit) > > It just leaves a backward compatibility issue that with the echo trick > > i've used resolves the issue i guess. > > > > Cheers all > > Bruce Steers > > > > You did something wrong actually, because the old behaviour was the > default one provided by Linux. > > It's only by playing with pipes in 3.14.90 that I noticed the default > behaviour was not useful, so I dropped it to the current one. > > Note that your trick is welcome for older versions. It could be a notice > in the wiki! > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Oct 5 14:24:43 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 5 Oct 2020 22:54:43 +1030 Subject: [Gambas-user] Offline help - mulitiuser situation Message-ID: <3138141f-8242-f452-79b8-a22d566b061a@gmail.com> (Good to see the updater is working again!) Given the following: a) the offline help appears to be 300% faster than using the online version. So the offline version is a major boost. b) here, we have 8 (now!) users working off the one server containing our gambas source "repository". What I would like to do is move the offline help into a shared location. Looking through the FSH it appears that /usr/shar/gambas3/help would be an appropriate place. Would you mind informing me: 1) what do I need to move from ~/? for this to work and 2) approximately what classes in the IDE would I need to tailor for this to work? regards bruce From bsteers4 at gmail.com Mon Oct 5 14:32:18 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 13:32:18 +0100 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: Hi Benoit. Can you tell me if the pipe blocking mode is only changed when using "Watch" or blocking has been stopped altogether. (I wish to know for the wiki info) Thank you :) On Sun, 4 Oct 2020 at 18:51, Beno?t Minisini wrote: > Le 04/10/2020 ? 14:04, Bruce Steers a ?crit : > > > > I don't think this post even warrants a reply now as I was thinking i > > was doing something wrong when opening a pipe but it seems not, the pipe > > did lock and now it doesn't so problem solved in that respect. (Nice one > > Benoit) > > It just leaves a backward compatibility issue that with the echo trick > > i've used resolves the issue i guess. > > > > Cheers all > > Bruce Steers > > > > You did something wrong actually, because the old behaviour was the > default one provided by Linux. > > It's only by playing with pipes in 3.14.90 that I noticed the default > behaviour was not useful, so I dropped it to the current one. > > Note that your trick is welcome for older versions. It could be a notice > in the wiki! > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 5 15:00:59 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Oct 2020 15:00:59 +0200 Subject: [Gambas-user] Opening Pipes (avoiding lockup) In-Reply-To: References: <2b2ea229-f858-fd61-9d44-7a6277eb58b6@gmail.com> Message-ID: Le 05/10/2020 ? 14:32, Bruce Steers a ?crit?: > Hi Benoit. > Can you tell me if the pipe blocking mode is only changed when using > "Watch" or blocking has been stopped altogether. > (I wish to know for the wiki info) > > Thank you :) > The opening behaviour is independant of whether the pipe is watched or not. Once opened for reading, the pipe returns to blocking mode. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Oct 5 15:12:41 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 14:12:41 +0100 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> Message-ID: Excellent stuff thank you :) I'm still getting nothing on the GUI Classes "/comp/gb.qt4" page though. It just lists needing gb.image but shows no Control list. On Mon, 5 Oct 2020 at 12:43, Beno?t Minisini wrote: > Le 05/10/2020 ? 13:34, Bruce Steers a ?crit : > > I found the offline help works but its lacking many many pages the > > online version has. > > > > You should find the option of the preferences (Help and Application) > > > > But from gambas 3.12 to 3.15.90 i've always found the offline help > > lacking a lot. > > > > Indeed, the automatic generation of offline documentation was disabled > since March! I activated it again, and you should have a new version of > the documenation available to download. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Oct 5 15:36:35 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 5 Oct 2020 15:36:35 +0200 Subject: [Gambas-user] For Each controls In-Reply-To: <51be01b7-c51e-023a-1a4f-43655151d7ea@cd-bahia.com> References: <51be01b7-c51e-023a-1a4f-43655151d7ea@cd-bahia.com> Message-ID: Il giorno lun 5 ott 2020 alle ore 10:49 Dag Jarle Nerland Johansen - Gambas ha scritto: > Hi, > I need a refreshment in for Each of form objects. > I can't find a proper example, a collection is not relevant... > Benoit wrote: Window (and so Form) objects can be used as a collection of its children controls indexed by name. I am attaching an example (zip to avoid problems with GMail) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CoControlsTest.zip Type: application/zip Size: 17121 bytes Desc: not available URL: From adamnt42 at gmail.com Mon Oct 5 15:41:28 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 6 Oct 2020 00:11:28 +1030 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> Message-ID: <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> On 5/10/20 11:42 pm, Bruce Steers wrote: > Excellent stuff thank you :) > > I'm still getting nothing on the GUI Classes "/comp/gb.qt4" page though. > It just lists needing gb.image but shows no Control list. > > Odd! It works fine here. b From bsteers4 at gmail.com Mon Oct 5 15:52:38 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 14:52:38 +0100 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> Message-ID: That is odd. On both my debian gambas 3.12 and Mint gambas 3.15 for as long as i can remember i've only ever got this... http://bws.org.uk/gb-help-qt.png On Mon, 5 Oct 2020 at 14:42, Bruce wrote: > On 5/10/20 11:42 pm, Bruce Steers wrote: > > Excellent stuff thank you :) > > > > I'm still getting nothing on the GUI Classes "/comp/gb.qt4" page though. > > It just lists needing gb.image but shows no Control list. > > > > > > Odd! It works fine here. > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Oct 5 15:53:02 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 6 Oct 2020 00:23:02 +1030 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> Message-ID: <1d2f0dbb-618a-cce9-3eb2-a67a2b6ed37d@gmail.com> On 6/10/20 12:11 am, Bruce wrote: > On 5/10/20 11:42 pm, Bruce Steers wrote: >> Excellent stuff thank you :) >> >> I'm still getting nothing on the GUI Classes "/comp/gb.qt4" page though. >> It just lists needing gb.image but shows no Control list. >> >> > > Odd! It works fine here. > b p.s. (I some times forget to check before posting...) In my local version of the IDE Helpview.class I have a difference to the official version diff --git a/app/src/gambas3/.src/Help/HelpView.class b/app/src/gambas3/.src/Help/HelpView.class index e1e9ba691..8c9934aa1 100644 --- a/app/src/gambas3/.src/Help/HelpView.class +++ b/app/src/gambas3/.src/Help/HelpView.class @@ -137,7 +137,7 @@ Public Sub WebView_Progress() ShowWaiting(Me.Progress < 1) - If Me.Progress = 0 Then + If Me.Progress < 1 Then sLastUrl = $sLastUrl If $sLastUrl Then I don't know whether that is involved in your issue, but it certainly helped a lot of "help" here. b From bsteers4 at gmail.com Mon Oct 5 16:28:19 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 15:28:19 +0100 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <1d2f0dbb-618a-cce9-3eb2-a67a2b6ed37d@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> <1d2f0dbb-618a-cce9-3eb2-a67a2b6ed37d@gmail.com> Message-ID: I made that change, did a reconf-all a make and a make install. Still no different. On Mon, 5 Oct 2020 at 14:54, Bruce wrote: > On 6/10/20 12:11 am, Bruce wrote: > > On 5/10/20 11:42 pm, Bruce Steers wrote: > >> Excellent stuff thank you :) > >> > >> I'm still getting nothing on the GUI Classes "/comp/gb.qt4" page though. > >> It just lists needing gb.image but shows no Control list. > >> > >> > > > > Odd! It works fine here. > > b > > p.s. > > (I some times forget to check before posting...) > > In my local version of the IDE Helpview.class I have a difference to the > official version > > diff --git a/app/src/gambas3/.src/Help/HelpView.class > b/app/src/gambas3/.src/Help/HelpView.class > index e1e9ba691..8c9934aa1 100644 > --- a/app/src/gambas3/.src/Help/HelpView.class > +++ b/app/src/gambas3/.src/Help/HelpView.class > @@ -137,7 +137,7 @@ Public Sub WebView_Progress() > > ShowWaiting(Me.Progress < 1) > > - If Me.Progress = 0 Then > + If Me.Progress < 1 Then > > sLastUrl = $sLastUrl > If $sLastUrl Then > > > I don't know whether that is involved in your issue, but it certainly > helped a lot of "help" here. > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Oct 5 16:29:46 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 15:29:46 +0100 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <1d2f0dbb-618a-cce9-3eb2-a67a2b6ed37d@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> <1d2f0dbb-618a-cce9-3eb2-a67a2b6ed37d@gmail.com> Message-ID: Does the download check for differences in saved help files? Maybe i've an old file that needs to update or something? On Mon, 5 Oct 2020 at 14:54, Bruce wrote: > On 6/10/20 12:11 am, Bruce wrote: > > On 5/10/20 11:42 pm, Bruce Steers wrote: > >> Excellent stuff thank you :) > >> > >> I'm still getting nothing on the GUI Classes "/comp/gb.qt4" page though. > >> It just lists needing gb.image but shows no Control list. > >> > >> > > > > Odd! It works fine here. > > b > > p.s. > > (I some times forget to check before posting...) > > In my local version of the IDE Helpview.class I have a difference to the > official version > > diff --git a/app/src/gambas3/.src/Help/HelpView.class > b/app/src/gambas3/.src/Help/HelpView.class > index e1e9ba691..8c9934aa1 100644 > --- a/app/src/gambas3/.src/Help/HelpView.class > +++ b/app/src/gambas3/.src/Help/HelpView.class > @@ -137,7 +137,7 @@ Public Sub WebView_Progress() > > ShowWaiting(Me.Progress < 1) > > - If Me.Progress = 0 Then > + If Me.Progress < 1 Then > > sLastUrl = $sLastUrl > If $sLastUrl Then > > > I don't know whether that is involved in your issue, but it certainly > helped a lot of "help" here. > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Oct 5 16:34:36 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 6 Oct 2020 01:04:36 +1030 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> <1d2f0dbb-618a-cce9-3eb2-a67a2b6ed37d@gmail.com> Message-ID: <2c16eb87-e36e-c232-f8bc-dfe3e0ae78ea@gmail.com> On 6/10/20 12:59 am, Bruce Steers wrote: > Does the download check for differences in saved help files? > Maybe i've an old file that needs to update or something? > What does the IDE Preferences / Help & Applications popup day? From bsteers4 at gmail.com Mon Oct 5 17:30:49 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 16:30:49 +0100 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <2c16eb87-e36e-c232-f8bc-dfe3e0ae78ea@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> <1d2f0dbb-618a-cce9-3eb2-a67a2b6ed37d@gmail.com> <2c16eb87-e36e-c232-f8bc-dfe3e0ae78ea@gmail.com> Message-ID: Says documentation up to date. I tend to disagree ;) lol where does it download to? i can't find it, was going to see if removing it and re-download might fix it. Is it only me? Anyone else reading this got the same issue? On Mon, 5 Oct 2020 at 15:35, Bruce wrote: > On 6/10/20 12:59 am, Bruce Steers wrote: > > Does the download check for differences in saved help files? > > Maybe i've an old file that needs to update or something? > > > What does the IDE Preferences / Help & Applications popup day? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 5 17:33:25 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Oct 2020 17:33:25 +0200 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> Message-ID: <67cdc3ce-f4fb-aebb-e6b0-b483c1c43d0a@gmail.com> Le 05/10/2020 ? 15:52, Bruce Steers a ?crit?: > That is odd. > On both my debian gambas 3.12 and Mint gambas 3.15 for as long as i can > remember i've only ever got this... > http://bws.org.uk/gb-help-qt.png > I confirm the bug: it's because online help needs gb.qt4 component information files, which may not be installed. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Mon Oct 5 18:02:45 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 17:02:45 +0100 Subject: [Gambas-user] /lang/pipe minor glitch in offline docs Message-ID: Hi. Not much of an issue but i just noticed something.. In the "*online*" wiki the /lang/pipe page that is just a link to the /lang/openpipe page shows on the "Language Index" /lang page okay. On the "*Offline*" docs it shows "*OPEN PIPE*" twice linking to both pages. Could one be removed? All links to "*OPEN PIPE*" that i've seen seem to go to /lang/pipe that just redirects to /lang/openpipe (not seen any direct links to /lang/openpipe) I was thinking to copy the info from /lang/openpipe to /lang/pipe and remove the redirect and remove /lang/openpipe ? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 5 18:10:29 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Oct 2020 18:10:29 +0200 Subject: [Gambas-user] /lang/pipe minor glitch in offline docs In-Reply-To: References: Message-ID: <3c61590c-10f1-4366-61db-0b9d869e01d9@gmail.com> Le 05/10/2020 ? 18:02, Bruce Steers a ?crit?: > Hi. > Not much of an issue but i just noticed something.. > > In the "*online*" wiki the /lang/pipe page that is just a link to the > /lang/openpipe page shows on the "Language Index" /lang page okay. > > On the "*Offline*" docs it shows "*OPEN PIPE*" twice linking to both pages. > > Could one be removed? > All links to "*OPEN PIPE*" that i've seen seem to go to /lang/pipe that > just redirects to /lang/openpipe (not seen any direct links to > /lang/openpipe) > I was thinking to copy the info from /lang/openpipe to /lang/pipe and > remove the redirect and remove /lang/openpipe ? > > BruceS > No, keep the pages and the links as they are. This is necessary for indexing things. -- Beno?t Minisini From g4mba5 at gmail.com Mon Oct 5 19:04:34 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Oct 2020 19:04:34 +0200 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <67cdc3ce-f4fb-aebb-e6b0-b483c1c43d0a@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> <67cdc3ce-f4fb-aebb-e6b0-b483c1c43d0a@gmail.com> Message-ID: Le 05/10/2020 ? 17:33, Beno?t Minisini a ?crit?: > Le 05/10/2020 ? 15:52, Bruce Steers a ?crit?: >> That is odd. >> On both my debian gambas 3.12 and Mint gambas 3.15 for as long as i >> can remember i've only ever got this... >> http://bws.org.uk/gb-help-qt.png >> > > I confirm the bug: it's because online help needs gb.qt4 component > information files, which may not be installed. > > Regards, > Is it better with the last commit? -- Beno?t Minisini From bsteers4 at gmail.com Mon Oct 5 19:39:23 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 18:39:23 +0100 Subject: [Gambas-user] /lang/pipe minor glitch in offline docs In-Reply-To: <3c61590c-10f1-4366-61db-0b9d869e01d9@gmail.com> References: <3c61590c-10f1-4366-61db-0b9d869e01d9@gmail.com> Message-ID: Sure ,, and note , i would never do anything like that without checking with you first :) On Mon, 5 Oct 2020 at 17:11, Beno?t Minisini wrote: > Le 05/10/2020 ? 18:02, Bruce Steers a ?crit : > > Hi. > > Not much of an issue but i just noticed something.. > > > > In the "*online*" wiki the /lang/pipe page that is just a link to the > > /lang/openpipe page shows on the "Language Index" /lang page okay. > > > > On the "*Offline*" docs it shows "*OPEN PIPE*" twice linking to both > pages. > > > > Could one be removed? > > All links to "*OPEN PIPE*" that i've seen seem to go to /lang/pipe that > > just redirects to /lang/openpipe (not seen any direct links to > > /lang/openpipe) > > I was thinking to copy the info from /lang/openpipe to /lang/pipe and > > remove the redirect and remove /lang/openpipe ? > > > > BruceS > > > > No, keep the pages and the links as they are. This is necessary for > indexing things. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Oct 5 20:19:07 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 19:19:07 +0100 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> <6dfe007a-f11b-680b-baff-b0d85ec56a3c@gmail.com> <67cdc3ce-f4fb-aebb-e6b0-b483c1c43d0a@gmail.com> Message-ID: It is indeed. You sir are a miracle worker :) Thank you :) On Mon, 5 Oct 2020 at 18:06, Beno?t Minisini wrote: > Le 05/10/2020 ? 17:33, Beno?t Minisini a ?crit : > > Le 05/10/2020 ? 15:52, Bruce Steers a ?crit : > >> That is odd. > >> On both my debian gambas 3.12 and Mint gambas 3.15 for as long as i > >> can remember i've only ever got this... > >> http://bws.org.uk/gb-help-qt.png > >> > > > > I confirm the bug: it's because online help needs gb.qt4 component > > information files, which may not be installed. > > > > Regards, > > > > Is it better with the last commit? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ujlain at gmail.com Mon Oct 5 20:44:09 2020 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Tue, 6 Oct 2020 00:14:09 +0530 Subject: [Gambas-user] Anyone else facing issues with offline help In-Reply-To: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> References: <80585c45-7592-106b-c5a8-bebc7e64d9ef@gmail.com> Message-ID: <5708486f-3bec-694d-4af0-f9a1d9cd45f0@gmail.com> Dear Benoit, After your last commit , I got a? prompt to update offline help , which I did. However there isn't any offline help yet...*instead the spinner keeps rotating !!* Regards - UZI ------------------------------------------------------------------------ On 05/10/20 11:59 am, Vinode Singh Ujlain wrote: > Upgraded to 3.15.2 (Linux Mint 19.3),the offline help available in > previous version has disappeared , is it my local IDE setting or > others too having this issue ? > Or have I managed to disturb some IDE setting ?/[ Use offline > documentation - enabled , offline document is up to date ]/ > > Regards - UZI > ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Mon Oct 5 21:26:39 2020 From: pflora at libero.it (pflora at libero.it) Date: Mon, 5 Oct 2020 21:26:39 +0200 (CEST) Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: <13e98630-94e4-7fca-2449-5860784de578@gmail.com> References: <1601841613.21121674@f26.my.com> <13e98630-94e4-7fca-2449-5860784de578@gmail.com> Message-ID: <555623256.133125.1601925999146@mail1.libero.it> I send the project. It is a monitor that prints incoming messages from UDP datagrams received on ports 50000 and 50001. The rate is 1 message per second. There are 2 TextArea named TextServer and TextAudio. For each textarea every 20 messages the code makes a Textxxxxx.clear Textxxxxx.Line = 1 to clean the area and restart from the first line. If you do rapid clicks with the mouse over a text it happens that the project crashes now and then. I suppose the clicks select words and lines at the same time the text is cleared and this makes the program to crash. Of course it is Gambas 3.15.1, I was writing the email not in front of the computer. Thanks > Il 05/10/2020 04:15 Beno?t Minisini ha scritto: > > > Le 04/10/2020 ? 22:00, pinglix via User a ?crit?: > > Hello > > in a project I have 2 Textarea that shows messages coming from UDP > > datagrams. > > > > Every 20 rows I do > > > > Textarea.clear > > Textarea.line = 1 > > > > If I select text in the exact moment the rows are cleared, for example > > making rapidly left clicks on the text, the programma crashes. > > I don't know if this can be considered a bug. > > > > Any way to avoid this ? > > > > I have no need to select text, It makes no sense so I can disabile all > > mouse events on the 2 text areas but I don't know how to do It. > > > > Gambas 15.1 > > > > Thank you. > > > > -- > > Inviato da Libero Mail per Android > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > Please provide a project that reproduces the bug (this is Gambas 3.15.1, > not Gambas 15.1 by the way). > > Thanks. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- A non-text attachment was scrubbed... Name: shm_hmi.tar.gz Type: application/gzip Size: 22812 bytes Desc: not available URL: From bsteers4 at gmail.com Mon Oct 5 22:03:21 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 5 Oct 2020 21:03:21 +0100 Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: <555623256.133125.1601925999146@mail1.libero.it> References: <1601841613.21121674@f26.my.com> <13e98630-94e4-7fca-2449-5860784de578@gmail.com> <555623256.133125.1601925999146@mail1.libero.it> Message-ID: My 2 bits worth. I'd just use TextArea1.Text = "" instead of the .Clear and .Line method. And I'm not at a computer to test but is the 1st line line=1 or line=0 ? Also you could... If TextArea1.Selected Then TextArea1.UnSelect() Bruce S On Mon, 5 Oct 2020, 20:27 pinglix via User, wrote: > I send the project. > > It is a monitor that prints incoming messages from UDP datagrams received > on ports 50000 and 50001. > The rate is 1 message per second. > > There are 2 TextArea named TextServer and TextAudio. > > For each textarea every 20 messages the code makes a > > Textxxxxx.clear > Textxxxxx.Line = 1 > > to clean the area and restart from the first line. > > If you do rapid clicks with the mouse over a text it happens that the > project crashes now and then. > > I suppose the clicks select words and lines at the same time the text is > cleared and this makes the program to crash. > > Of course it is Gambas 3.15.1, I was writing the email not in front of the > computer. > > Thanks > > > Il 05/10/2020 04:15 Beno?t Minisini ha scritto: > > > > > > Le 04/10/2020 ? 22:00, pinglix via User a ?crit : > > > Hello > > > in a project I have 2 Textarea that shows messages coming from UDP > > > datagrams. > > > > > > Every 20 rows I do > > > > > > Textarea.clear > > > Textarea.line = 1 > > > > > > If I select text in the exact moment the rows are cleared, for example > > > making rapidly left clicks on the text, the programma crashes. > > > I don't know if this can be considered a bug. > > > > > > Any way to avoid this ? > > > > > > I have no need to select text, It makes no sense so I can disabile all > > > mouse events on the 2 text areas but I don't know how to do It. > > > > > > Gambas 15.1 > > > > > > Thank you. > > > > > > -- > > > Inviato da Libero Mail per Android > > > > > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > Please provide a project that reproduces the bug (this is Gambas 3.15.1, > > not Gambas 15.1 by the way). > > > > Thanks. > > > > -- > > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Oct 5 23:28:33 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Oct 2020 23:28:33 +0200 Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: <555623256.133125.1601925999146@mail1.libero.it> References: <1601841613.21121674@f26.my.com> <13e98630-94e4-7fca-2449-5860784de578@gmail.com> <555623256.133125.1601925999146@mail1.libero.it> Message-ID: <940f865b-0ff3-7ee0-e089-d00e4c7f2d55@gmail.com> Le 05/10/2020 ? 21:26, pinglix via User a ?crit?: > I send the project. > > It is a monitor that prints incoming messages from UDP datagrams received on ports 50000 and 50001. > The rate is 1 message per second. > > There are 2 TextArea named TextServer and TextAudio. > > For each textarea every 20 messages the code makes a > > Textxxxxx.clear > Textxxxxx.Line = 1 > > to clean the area and restart from the first line. > > If you do rapid clicks with the mouse over a text it happens that the project crashes now and then. > > I suppose the clicks select words and lines at the same time the text is cleared and this makes the program to crash. > > Of course it is Gambas 3.15.1, I was writing the email not in front of the computer. > > Thanks > Can you provide your system information as returned by corresponding the IDE menu entry? -- Beno?t Minisini From t.lee.davidson at gmail.com Tue Oct 6 00:54:52 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 5 Oct 2020 18:54:52 -0400 Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: References: <1601841613.21121674@f26.my.com> <13e98630-94e4-7fca-2449-5860784de578@gmail.com> <555623256.133125.1601925999146@mail1.libero.it> Message-ID: <124220b8-10ee-eea4-3d9c-6788502d957e@gmail.com> On 10/5/20 4:03 PM, Bruce Steers wrote: > And I'm not at a computer to test but is the 1st line line=1 or line=0 ? > The lines are zero-indexed. -- Lee From pflora at libero.it Tue Oct 6 19:23:51 2020 From: pflora at libero.it (pflora at libero.it) Date: Tue, 6 Oct 2020 19:23:51 +0200 (CEST) Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: <124220b8-10ee-eea4-3d9c-6788502d957e@gmail.com> References: <1601841613.21121674@f26.my.com> <13e98630-94e4-7fca-2449-5860784de578@gmail.com> <555623256.133125.1601925999146@mail1.libero.it> <124220b8-10ee-eea4-3d9c-6788502d957e@gmail.com> Message-ID: <1904247807.177991.1602005031812@mail1.libero.it> > The lines are zero-indexed. If I put textarea.line = 0 program crashes immediately so I think Line is one-indexed. When it crashes with fast clicks I see the following messages in the IDE: (shm_hmi:3828): Gtk-CRITICAL **: 19:11:08.750: _gtk_text_line_char_locate: assertion 'char_offset >= 0' failed (shm_hmi:3828): Gtk-ERROR **: 19:11:08.750: Char offset -1 is off the end of the line It seems the problem is in locating the start of selected text. With fast clicks some lines are printed without CR-LF so 2 lines are melted together. With static text pasted in the textarea there are no problems with fast clicks. As I wrote before this is not a real problem for me, just let you know this behaviour. Thank you for your support. My system: [System] Gambas=3.15.90 OperatingSystem=Linux Kernel=5.0.0-32-generic Architecture=x86_64 Distribution=Linux Mint 19.3 Tricia Desktop=XFCE Theme=windows Language=it_IT.UTF-8 Memory=1844M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2200.30 GStreamer=libgstreamer-1.0.so.0.1405.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.73.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.5 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:path=/run//1000/bus DESKTOP_SESSION=xfce DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xfce GDM_LANG=it GTK_MODULES=gail:atk-bridge HOME= LANG=it_IT.UTF-8 LANGUAGE=it_IT.UTF-8 LOGNAME= PANEL_GDK_CORE_DEVICE_EVENTS=0 PATH=/.local/bin:/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/1082,unix/:/tmp/.ICE-unix/1082 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1168 SSH_AUTH_SOCK=/tmp/ssh-9XeY7GgTefxc/agent.1082 TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xfce:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xfce4:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run//1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xfce XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From t.lee.davidson at gmail.com Wed Oct 7 01:52:14 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 6 Oct 2020 19:52:14 -0400 Subject: [Gambas-user] Project crash due Textarea selection In-Reply-To: <1904247807.177991.1602005031812@mail1.libero.it> References: <1601841613.21121674@f26.my.com> <13e98630-94e4-7fca-2449-5860784de578@gmail.com> <555623256.133125.1601925999146@mail1.libero.it> <124220b8-10ee-eea4-3d9c-6788502d957e@gmail.com> <1904247807.177991.1602005031812@mail1.libero.it> Message-ID: <0a9da10e-0083-3abe-7e39-531cdce34eca@gmail.com> On 10/6/20 1:23 PM, pinglix via User wrote: > If I put textarea.line = 0 program crashes immediately so I think Line is one-indexed. With a form having only a TextArea and a Timer, the following code does not crash. Public Sub Form_Open() TextArea1.Line = 0 End Public Sub Timer1_Timer() TextArea1.Insert("This is line #" & TextArea1.Line & "\n") End If you remove the Form_Open event handler, you will see that line numbers start with zero. -- Lee From bsteers4 at gmail.com Wed Oct 7 02:51:12 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 7 Oct 2020 01:51:12 +0100 Subject: [Gambas-user] Argument lists resetting Message-ID: All my argument lists are disappearing. The last couple of projects i've loaded have had the argument lists deleted. The args are in the .project file until i click "Run As" in the IDE to select an arg then the argument editor shows no argument list and when i close it the argument lists get deleted from the .project file. But is saving new entries okay. Just be warned if you have a project with lots of test args in the IDE you may want to back up your projects .project file. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 7 02:59:28 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 7 Oct 2020 01:59:28 +0100 Subject: [Gambas-user] Argument lists resetting Message-ID: Thank you though for addressing the CurrentArgument incompatibility issue with previous gambas versions. :) I see you changed the name of the setting now so it won't interfere. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 7 03:19:51 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 7 Oct 2020 02:19:51 +0100 Subject: [Gambas-user] Argument lists resetting Message-ID: Hang on sorry , i don't get this but.. if I copy a backed up .project file back into the folder then the args are there again? Where did they go? Has something changed for a commit or two then changed back or something? Sorry i freaked out there for a minute, had loads of test arguments in my GForm app , got them back from a backup though :) Bruce Steers -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Wed Oct 7 11:25:34 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Wed, 7 Oct 2020 11:25:34 +0200 Subject: [Gambas-user] Printing TableView Message-ID: ?Hi, I am struggling a little with the printing abilities in Gambas. Two years ago I made some printing with Report, but it was not that what I was looking for. What I want, is to print in the form of TableView, but on the ReportBox there are no object for that, I only see Labels and Images. *Is there a way to print a TableView in a convenient way?* (With the printer, it is also easy to write a file in PDF-format. But I need both, print and PDF) Thanks in advance, Dag -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Oct 7 12:59:52 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 7 Oct 2020 12:59:52 +0200 Subject: [Gambas-user] Printing TableView In-Reply-To: References: Message-ID: <1f42dfea-31ca-6bea-8d35-3872df0554b6@osnanet.de> Am 07.10.20 um 11:25 schrieb Dag Jarle Nerland Johansen - Gambas: > ?Hi, > I am struggling a little with the printing abilities in Gambas. > Two years ago I made some printing with Report, but it was not that what > I was looking for. > What I want, is to print in the form of TableView, but on the ReportBox > there are no object for that, I only see Labels and Images. > *Is there a way to print a TableView in a convenient way?* > (With the printer, it is also easy to write a file in PDF-format. But I > need both, print and PDF) > Thanks in advance, > Dag > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Couple of years ago, I had a similar problem. I thought it might be nice to use a TableView to read out line breaks and so on, but there seems to be no way to do so. So I developed my own table printing including infinite tables which may spread over several pages. The thing can be a bit tricky, but basically you have to size up each table cell (width, height) which makes for a single line. Then you measure the next one, and if it doesn't fit to the page, you open the next page. After testing this way, you delete everything and begin printing the real stuff using the notes you have stored along the way. This sounds more cumbersome than it is actually, in fact I found it runs pretty fast. In my case, I decided to print into PDF only, and send the output to lp in the end. Making these PDFs is so fast I can use it for a preview. Regards Rolf From bagonergi at gmail.com Wed Oct 7 13:59:10 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 7 Oct 2020 13:59:10 +0200 Subject: [Gambas-user] Printing TableView In-Reply-To: <1f42dfea-31ca-6bea-8d35-3872df0554b6@osnanet.de> References: <1f42dfea-31ca-6bea-8d35-3872df0554b6@osnanet.de> Message-ID: Il giorno mer 7 ott 2020 alle ore 13:00 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Am 07.10.20 um 11:25 schrieb Dag Jarle Nerland Johansen - Gambas: > > Hi, > > I am struggling a little with the printing abilities in Gambas. > > Two years ago I made some printing with Report, but it was not that what > > I was looking for. > ... > Couple of years ago, I had a similar problem. I thought it might be nice > to use a TableView to read out line breaks and so on, but there seems to > be no way to do so. > Sorry but I did not understand, explain to me what you want different from my ReportTest 0.1.2 project on the farm? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 7 14:05:08 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 7 Oct 2020 13:05:08 +0100 Subject: [Gambas-user] GitLab forking Message-ID: I've been getting a bit of experience loading up the gambas code and seeing how things work. Much of it is well beyond me but i'm thinking a may be able to help with the occasional minor thing, little edits/bugfixes, additions/improvements.. Mostly i'd like to help where i can to ease the load. So i followed the gambas wiki / gitlab instructions on forking the master and got to the point where it said "you must have permission to fork a project" So i dunno , should I ,, should I not? Bruce Steers -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 7 14:20:56 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 7 Oct 2020 14:20:56 +0200 Subject: [Gambas-user] GitLab forking In-Reply-To: References: Message-ID: Le 07/10/2020 ? 14:05, Bruce Steers a ?crit?: > I've been getting a bit of experience loading up the gambas code and > seeing how things work. > > Much of it is well beyond me but i'm thinking a may be able to help with > the occasional minor thing, little edits/bugfixes, additions/improvements.. > > Mostly i'd like to help where i can to ease the load. > > So i followed the gambas wiki / gitlab instructions on forking the > master and got to the point where it said "you must have permission to > fork a project" > > So i dunno? , should I ,, should I not? > Bruce Steers > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > There are 27 forks of the Gambas project on GitLab at the moment. I don't know why you can't at the moment. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Wed Oct 7 16:16:37 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 8 Oct 2020 00:46:37 +1030 Subject: [Gambas-user] GitLab forking In-Reply-To: References: Message-ID: <3f0dbcf3-dc55-8648-4175-adf7bac02933@gmail.com> On 7/10/20 10:50 pm, Beno?t Minisini wrote: > Le 07/10/2020 ? 14:05, Bruce Steers a ?crit?: >> I've been getting a bit of experience loading up the gambas code and >> seeing how things work. >> >> Much of it is well beyond me but i'm thinking a may be able to help >> with the occasional minor thing, little edits/bugfixes, >> additions/improvements.. >> >> Mostly i'd like to help where i can to ease the load. >> >> So i followed the gambas wiki / gitlab instructions on forking the >> master and got to the point where it said "you must have permission to >> fork a project" >> >> So i dunno? , should I ,, should I not? >> Bruce Steers >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > There are 27 forks of the Gambas project on GitLab at the moment. I > don't know why you can't at the moment. > > Regards, > Looks to me that your fork exists. https://gitlab.com/bsteers4/gambas b From bsteers4 at gmail.com Wed Oct 7 16:32:09 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 7 Oct 2020 15:32:09 +0100 Subject: [Gambas-user] GitLab forking In-Reply-To: <3f0dbcf3-dc55-8648-4175-adf7bac02933@gmail.com> References: <3f0dbcf3-dc55-8648-4175-adf7bac02933@gmail.com> Message-ID: Yes I created it after getting the okay from Benoit. Looks like I got a lot of reading up to do now on how to use it properly. If you've seen my coding you'll notice that getting things to work regardless how to do it properly is kinda my thing ? On Wed, 7 Oct 2020, 15:17 Bruce, wrote: > On 7/10/20 10:50 pm, Beno?t Minisini wrote: > > Le 07/10/2020 ? 14:05, Bruce Steers a ?crit : > >> I've been getting a bit of experience loading up the gambas code and > >> seeing how things work. > >> > >> Much of it is well beyond me but i'm thinking a may be able to help > >> with the occasional minor thing, little edits/bugfixes, > >> additions/improvements.. > >> > >> Mostly i'd like to help where i can to ease the load. > >> > >> So i followed the gambas wiki / gitlab instructions on forking the > >> master and got to the point where it said "you must have permission to > >> fork a project" > >> > >> So i dunno , should I ,, should I not? > >> Bruce Steers > >> > >> > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > > > > There are 27 forks of the Gambas project on GitLab at the moment. I > > don't know why you can't at the moment. > > > > Regards, > > > > Looks to me that your fork exists. > https://gitlab.com/bsteers4/gambas > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Wed Oct 7 16:51:46 2020 From: cedron at exede.net (Cedron Dawg) Date: Wed, 7 Oct 2020 10:51:46 -0400 (EDT) Subject: [Gambas-user] Keeping repositories up to date Message-ID: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> This is something I don't have the facilities, capabilities, or time to do. However, I think this is a hugely under prioritized aspect of Gambas proliferation. For instance, I just started working with a Raspberry Pi 4 (or two). The version of Gambas for Raspbian is 3.12.2, significantly out of date. I also tried doing a Manjero 20 install, quite successfully. However, there was *no* Gambas in the repository for that. :-( So I had to roll back to Raspbian (a much more simplistic distro) for my second Pi4. It would seem that it should be possible to store the latest Gambas "Tar balls" somewhere that could be downloaded an installed as an alternative to keeping the actual repositories up to date. I think it is entirely unreasonable to expect folks to have to learn how to do their own compiles in order to accomplish this, or force them to do the actual compiles which I understand can be quite time consuming. Thoughts? From charlie at cogier.com Wed Oct 7 18:19:17 2020 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 7 Oct 2020 17:19:17 +0100 Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> Message-ID: Hi Cedron, If you use a distro based in Ubuntu you will have the ability to use a ppa to keep up to date with Gambas, no compiling required. (I have never compiled Gambas). Ubuntu Mate is an available distro for the pi, if that helps. Charlie On 07/10/2020 15:51, Cedron Dawg wrote: > This is something I don't have the facilities, capabilities, or time to do. However, I think this is a hugely under prioritized aspect of Gambas proliferation. > > For instance, I just started working with a Raspberry Pi 4 (or two). The version of Gambas for Raspbian is 3.12.2, significantly out of date. I also tried doing a Manjero 20 install, quite successfully. However, there was *no* Gambas in the repository for that. :-( So I had to roll back to Raspbian (a much more simplistic distro) for my second Pi4. > > It would seem that it should be possible to store the latest Gambas "Tar balls" somewhere that could be downloaded an installed as an alternative to keeping the actual repositories up to date. > > I think it is entirely unreasonable to expect folks to have to learn how to do their own compiles in order to accomplish this, or force them to do the actual compiles which I understand can be quite time consuming. > > Thoughts? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Wed Oct 7 19:00:38 2020 From: cedron at exede.net (Cedron Dawg) Date: Wed, 7 Oct 2020 13:00:38 -0400 (EDT) Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> Message-ID: <879328714.84140852.1602090038796.JavaMail.zimbra@exede.net> Hi Charlie, Thanks. I do use the the PPA for my Mint laptops. However, the a previous install of Manjero had an older version and PPA didn't work with that. (ArchLinux) The Pi4's are my bigger concern personally. But I sense this is a wider issue than just my few select platforms. I will try the ubuntu-mate for the Pi, but I haven't liked the Ubuntu interface much. Ced ----- Original Message ----- From: "Charlie Ogier" To: "user" Sent: Wednesday, October 7, 2020 12:19:17 PM Subject: Re: [Gambas-user] Keeping repositories up to date Hi Cedron, If you use a distro based in Ubuntu you will have the ability to use a ppa to keep up to date with Gambas, no compiling required. (I have never compiled Gambas). [ https://ubuntu-mate.org/ports/raspberry-pi/ | Ubuntu Mate ] is an available distro for the pi, if that helps. Charlie From bsteers4 at gmail.com Wed Oct 7 19:20:21 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 7 Oct 2020 18:20:21 +0100 Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> Message-ID: aah if only it was that easy. it's an age old problem. Sadly each linux distro works quite differently to the other. An application compiled for ubuntu for example will not work on Fedora in the same way a MS windows app won't either. The architecture is just different., yes it's still Linux but a different type. That's why each distro has it's own version on it's repo. Debian is still on Gambas 3.12 , Linux mint is on 3.14 and the latest Ubuntu has 3.15 Raspian is a derivative of Debian so it's possible the Debian install instructions/dependencies may work for Raspian. Downloading and compiling isn't that hard really, the hardest most difficult thing about it is installing the correct libraries/dependencies needed to compile as even though they are listed for many distro's on the gambas page they become outdated quite quickly and a simple copy and paste of the listed requirements fails. I did this very thing yesterday to upgrade my Debian (buster) to the latest Gambas 3.15 I copied the list of requirements and 'apt-get' installed but apt failed on 4 of the things it listed that were not found. I had to search for the changes in names of the libraries and adjust as needed. Raspian is basically Debian. (Raspberry + Debian = Raspian) I updated the Debian instructions on the Gambas wiki yesterday to account for the current library name changes and added Buster to the list as it was still only showing info for Debian Stretch. The dependency list for debian is now (as of yesterday) okay and will not fail (at least on Debian) Maybe the new dependency list i added for Debian might work on Raspian? But back to your original question, an online tarball that anyone could download simply won't work as the independant Linux architectures are not the same. check out http://gambaswiki.org/wiki/install/debian#t17 If the list of dependencies from that page installs for you then you're only 6 commands away from having the latest.. Failing that try the actual Raspberry gambas page http://gambaswiki.org/wiki/install/raspbian *git clone --depth=1 https://gitlab.com/gambas/gambas.git * *cd gambas./reconf-all./configure -Cmake* *sudo make install* That worked for me yesterday. on Debian I've got a couple of Raspberries here , i'll try to download/compile/install later and adjust the wiki page for you if anything needs to be amended. :) Bruce Steers On Wed, 7 Oct 2020 at 16:12, Cedron Dawg wrote: > This is something I don't have the facilities, capabilities, or time to > do. However, I think this is a hugely under prioritized aspect of Gambas > proliferation. > > For instance, I just started working with a Raspberry Pi 4 (or two). The > version of Gambas for Raspbian is 3.12.2, significantly out of date. I > also tried doing a Manjero 20 install, quite successfully. However, there > was *no* Gambas in the repository for that. :-( So I had to roll back to > Raspbian (a much more simplistic distro) for my second Pi4. > > It would seem that it should be possible to store the latest Gambas "Tar > balls" somewhere that could be downloaded an installed as an alternative to > keeping the actual repositories up to date. > > I think it is entirely unreasonable to expect folks to have to learn how > to do their own compiles in order to accomplish this, or force them to do > the actual compiles which I understand can be quite time consuming. > > Thoughts? > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 7 23:15:51 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 7 Oct 2020 22:15:51 +0100 Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> Message-ID: Hi Cedron. If you were interested i have just updated the raspberry-pi compile info on the gambas wiki page to include buster... http://gambaswiki.org/wiki/install/raspbian#t20 I've adjusted the listed packages to be correct for Raspian 10 (buster) and have successfully tested it out by running it on a freshly set up RPI-4. Now yes it takes a while because the RPI is pretty slow. (my packages have installed but it's still running ./reconf-all at mo but no errors so far) it'll be faster if you've copied the OS to a usb3 stick and configured to boot from that in your /boot/cmdline.txt file. Although it is "time lengthy" i wouldn't call it "time consuming" as it's only a few commands, they just take a while to complete so get the kettle on or watch a film innit :) lol Ps. if you have Gambas already installed from the repositories you'll need to uninstall it first with... $ *sudo apt-get purge gambas3** Good luck :) Bruce Steers > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at cd-bahia.com Thu Oct 8 10:27:03 2020 From: gambas at cd-bahia.com (Dag Jarle Nerland Johansen - Gambas) Date: Thu, 8 Oct 2020 10:27:03 +0200 Subject: [Gambas-user] IDE renaming Message-ID: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Hi, I found a little thing in the IDE which may cause irritation by testing a program. If an object is renamed on the form, it works very fine, the source is changed too, a great benefit indeed. But if a menu item is renamed, it is not changed in the source. Not a big deal, in my programs I only link? the menu-click to a button-click, but sometime I use time to find the "error", which is none. That is when I make more changes, get distracted from something else, start and the click on the menu doesn't work. In fact only a beauty thing, but perhaps someone has time to change that. Regards, Dag From bagonergi at gmail.com Thu Oct 8 11:17:53 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 8 Oct 2020 11:17:53 +0200 Subject: [Gambas-user] IDE renaming In-Reply-To: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Message-ID: Il giorno gio 8 ott 2020 alle ore 10:28 Dag Jarle Nerland Johansen - Gambas ha scritto: > Hi, > I found a little thing in the IDE which may cause irritation by testing > a program. > If an object is renamed on the form, it works very fine, the source is > changed too, a great benefit indeed. > But if a menu item is renamed, it is not changed in the source. > Not a big deal, in my programs I only link the menu-click to a > button-click, but sometime I use time to find the "error", which is > none. That is when I make more changes, get distracted from something > else, start and the click on the menu doesn't work. > In fact only a beauty thing, but perhaps someone has time to change that. > Regards, > Dag > Hi Dag, if you use the Action class you solve the problem and you can safely change the names of the menus. See attached example, zip to avoid problems with GMail Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Action.zip Type: application/zip Size: 16858 bytes Desc: not available URL: From adamnt42 at gmail.com Thu Oct 8 11:35:10 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 8 Oct 2020 20:05:10 +1030 Subject: [Gambas-user] IDE renaming In-Reply-To: References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Message-ID: On 8/10/20 7:47 pm, Gianluigi wrote: > Il giorno gio 8 ott 2020 alle ore 10:28 Dag Jarle Nerland Johansen - Gambas > ha scritto: > >> Hi, >> I found a little thing in the IDE which may cause irritation by testing >> a program. >> If an object is renamed on the form, it works very fine, the source is >> changed too, a great benefit indeed. >> But if a menu item is renamed, it is not changed in the source. >> Not a big deal, in my programs I only link the menu-click to a >> button-click, but sometime I use time to find the "error", which is >> none. That is when I make more changes, get distracted from something >> else, start and the click on the menu doesn't work. >> In fact only a beauty thing, but perhaps someone has time to change that. >> Regards, >> Dag >> > > Hi Dag, > if you use the Action class you solve the problem and you can safely change > the names of the menus. > > See attached example, zip to avoid problems with GMail > > Regards > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > No, that wont address the names of popup menus on controls. b From bagonergi at gmail.com Thu Oct 8 12:03:31 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 8 Oct 2020 12:03:31 +0200 Subject: [Gambas-user] IDE renaming In-Reply-To: References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Message-ID: Il giorno gio 8 ott 2020 alle ore 11:36 Bruce ha scritto: > > No, that wont address the names of popup menus on controls. > b > I don't think Dag was talking about popup menus, also because I don't think you can change it or am I wrong? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 8 12:13:00 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 8 Oct 2020 20:43:00 +1030 Subject: [Gambas-user] IDE renaming In-Reply-To: References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Message-ID: <0e7ad713-acaa-0f70-1b38-25b09757c9e1@gmail.com> On 8/10/20 8:33 pm, Gianluigi wrote: > Il giorno gio 8 ott 2020 alle ore 11:36 Bruce ha > scritto: > >> >> No, that wont address the names of popup menus on controls. >> b >> > > I don't think Dag was talking about popup menus, also because I don't think > you can change it or am I wrong? > > Regards > Gianluigi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > My taking is that he is saying "If I change a menu name the name of the handlers dont change the same way other things do". For example, change abutton name, then all the button event handlers names xhange in the code. Changinf menu names is different because "menus are not the same as normal classes". A popup menu in a control is one example. I think he is commenting on one aspect of menus where they are different and "you" (a gambas application developer have to generate a mindset that recognizes that differene. b p.s. If I'm correct in what Dag was referring to then I think using actions just because I might want to change a menu item name some time in the future can't be cost justified! From bagonergi at gmail.com Thu Oct 8 12:15:15 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 8 Oct 2020 12:15:15 +0200 Subject: [Gambas-user] IDE renaming In-Reply-To: References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Message-ID: Il giorno gio 8 ott 2020 alle ore 12:03 Gianluigi ha scritto: > > > Il giorno gio 8 ott 2020 alle ore 11:36 Bruce ha > scritto: > >> >> No, that wont address the names of popup menus on controls. >> b >> > > I don't think Dag was talking about popup menus, also because I don't > think you can change it or am I wrong? > > I have tried and it works on popup too, the only thing is that it does not update the combobox of the property. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Oct 8 12:29:24 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 8 Oct 2020 12:29:24 +0200 Subject: [Gambas-user] IDE renaming In-Reply-To: <0e7ad713-acaa-0f70-1b38-25b09757c9e1@gmail.com> References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> <0e7ad713-acaa-0f70-1b38-25b09757c9e1@gmail.com> Message-ID: I think I gave Dag good advice, indeed excellent. I wished someone had given it to me in due time. p.s. If I'm correct in what Dag was referring to then I think using > actions just because I might want to change a menu item name some time > in the future can't be cost justified! > But what cost are you talking about, if you use Action you only save code and time. Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 8 12:52:45 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 8 Oct 2020 21:22:45 +1030 Subject: [Gambas-user] IDE renaming In-Reply-To: References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Message-ID: <10652d8b-e4b7-b824-0e9f-ecb9937d51e2@gmail.com> On 8/10/20 8:45 pm, Gianluigi wrote: >> >> > I have tried and it works on popup too, the only thing is that it does not > update the combobox of the property. > > Regards > Gianluigi > That's exactly what I'm talking about. ;-) b From bsteers4 at gmail.com Thu Oct 8 14:45:31 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 8 Oct 2020 13:45:31 +0100 Subject: [Gambas-user] Making changes to the IDE Message-ID: Hi all. I thought i'd try and make an edit , a practice run if anything. I'd seen someone ask about changing the Balloon background and foreground colours so i thought that'd be a simplistic place to start. So what i did.... Loaded up in gambas IDE the gb.form component from the "comp" dir and found the Balloon.class and FBalloon.class and form. Added the Property Background and Foreground and event handlers for them to Balloon.class. I added the properties just under where the Font property was and did everything the same as the font but using Color instead of course. gave FBalloon.class a couple of Public variables FGColor and BGColor.and added a way for it to be either settable or use the default Tooltip colours. But I'm stuck :'( I compiled all in gb.form and made the exe I then compiled gambas3 again I then did another "make" then i did a "make install" Can't seem to see the added properties Background and Foreground that i put just under Font , but i can see Font of course. Anyone know my obvious mistake (but not too obvious to me) ? Thanks in advance Bruce Steers -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 8 15:21:14 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 8 Oct 2020 23:51:14 +1030 Subject: [Gambas-user] Making changes to the IDE In-Reply-To: References: Message-ID: <48446a4e-77b7-ae06-3e6e-225a111c2c6b@gmail.com> Inline On 8/10/20 11:15 pm, Bruce Steers wrote: > Hi all. > > I thought i'd try and make an edit , a practice run if anything. > I'd seen someone ask about changing the Balloon background and foreground > colours so i thought that'd be a simplistic place to start. > > So what i did.... > Loaded up in gambas IDE the gb.form component from the "comp" dir and found > the Balloon.class and FBalloon.class and form. > > Added the Property Background and Foreground and event handlers for them to > Balloon.class. > I added the properties just under where the Font property was and did > everything the same as the font but using Color instead of course. > gave FBalloon.class a couple of Public variables FGColor and BGColor.and > added a way for it to be either settable or use the default Tooltip colours. > > But I'm stuck :'( Now what is going on here? All you need is to go to comp and do a make and then a make install. > I compiled all in gb.form and made the exe <---- ??? > I then compiled gambas3 again > I then did another "make" > then i did a "make install" > > Can't seem to see the added properties Background and Foreground that i put > just under Font , but i can see Font of course. > You may have done this bu I can't tell from the above. Did you add the new peoperties to the _Properties list in the Balloon.class? > Anyone know my obvious mistake (but not too obvious to me) ? > > Thanks in advance > Bruce Steers > > b From bsteers4 at gmail.com Thu Oct 8 16:13:26 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 8 Oct 2020 15:13:26 +0100 Subject: [Gambas-user] Making changes to the IDE In-Reply-To: <48446a4e-77b7-ae06-3e6e-225a111c2c6b@gmail.com> References: <48446a4e-77b7-ae06-3e6e-225a111c2c6b@gmail.com> Message-ID: Cheers Bruce. also inline > So what i did.... > > Loaded up in gambas IDE the gb.form component from the "comp" dir and > found > > the Balloon.class and FBalloon.class and form. > > > > Added the Property Background and Foreground and event handlers for them > to > > Balloon.class. > > I added the properties just under where the Font property was and did > > everything the same as the font but using Color instead of course. > > gave FBalloon.class a couple of Public variables FGColor and BGColor.and > > added a way for it to be either settable or use the default Tooltip > colours. > > > > But I'm stuck :'( > > Now what is going on here? > All you need is to go to comp and do a make and then a make > install. > I tried all the stuff below as it wasn't working. first i just compiled then did a make and make install but not in comp in the main folder. so do you not have to compile changes in the IDE? just make once saved > > I compiled all in gb.form and made the exe <---- ??? > > I then compiled gambas3 again > > I then did another "make" > > then i did a "make install" > > > > Can't seem to see the added properties Background and Foreground that i > put > > just under Font , but i can see Font of course. > > > You may have done this bu I can't tell from the above. Did you add the > new peoperties to the _Properties list in the Balloon.class? > I added "Properties" as you would normally in a class. (does *_Properties* with an underscore refer to something else?) Top of the Balloon.class file in comp/src/gb.form/.src dir now looks like this... *Static Property Read Control As ControlStatic Property Delay As IntegerStatic Property Font As FontStatic Property Background As ColorStatic Property Foreground As ColorStatic Property Read Visible As Boolean* I added the Background and Foreground and I also added the Background_Read and write events (i copy-n-pasted the Font stuff and edited it to color) had to do it a little different to how the Font just set FBalloon.Font to account for the drawing stuff involbed, didn't think just setting the balloon forms background property would suffice. but that's neither here or there as i've stumbled at the first hurdle of just getting the new Properties visible lol. I wondered if the list of an objects properties were listed in another file somewhere? Thanks again. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 8 16:19:17 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 9 Oct 2020 00:49:17 +1030 Subject: [Gambas-user] IDE renaming In-Reply-To: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> Message-ID: <1d33f063-820a-c973-04ee-b244e0cd8811@gmail.com> On 8/10/20 6:57 pm, Dag Jarle Nerland Johansen - Gambas wrote: > Hi, > I found a little thing in the IDE which may cause irritation by testing > a program. > If an object is renamed on the form, it works very fine, the source is > changed too, a great benefit indeed. > But if a menu item is renamed, it is not changed in the source. > Not a big deal, in my programs I only link? the menu-click to a > button-click, but sometime I use time to find the "error", which is > none. That is when I make more changes, get distracted from something > else, start and the click on the menu doesn't work. > In fact only a beauty thing, but perhaps someone has time to change that. > Regards, > Dag > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Dag, I confirm your observation and profer the followin (manual) test script to show how it v=can be dangerous and why RETRO-fitting Actions doesn't solve the problem (for anyone that cares). bruce Test script 1: A simple view 1. Create a new project 2. In the FMain form designer, click Menu Editor 3. Add a top level menu named "mnuProgram"captioned "Program" 4. Add a submenu item named "MnuNewXYZ" caption "New..." 5. Open the form class file (just to check that it is clear) 6. Go back to the form designer and open the menu editor 7. Double click on the "New" item in the tree 8. Go back to the code - there should be a new method "mnuNewXYZ_Click()" 9. Go back to the form designer and open the menu editor 10. Click on "New" in the tree 11. Change the Name to mnuNewABC 12. Double click on "New" in the tree 13. Click SAVE to go back to the code editor 14. OBSERVE! The IDE has not changed the anme of the menu hanlder. Instead it has created a new one with the new name Test script 2: To satisfy some why this is dangerous 1. Add some code to each menu handler, say Print "Row, row your boat\nGently down the stream" and Print "Motivate your speedboat up that reknown creek" 2. Now imagine that it is 5 years later and the code is now 1200 lines long and both these methods are randomly somewhere 3. Go back to the form designer & Menu Editor 4. Change the name of the "New" item to "mnuNewXYZZY" 5. SAve the menu then double click on "New" in the form designer 6. Observe, Yet another menu handler. OK but lets make it Print "Yet another menu handler" 7. Imagine waiting a year. 8. Go back to the form designer / Menu Editor change the name of the "New" menu back to "mnuNewXYZ" and Add "PLUGH" to the "New" menu as an action string 9. Save the menu and doubl click on "New" in the menu in the form designer 10. Add an Action_Activate menthd as follows: Public Sub Action_Activate(sKey As String) As Boolean If skey = "PLUGH" Then Print "What a waste of time..."; sKey End 11. Run the program and select "New" in the menu 12. OBSERVE! Both the new avtion and the old handler are executed! (Pity you if the old one did something dangerous like initialisng your database or something!) So expecting that retro-fitting ab Action handler does not solve the observed problem which is "Changeing the name of a menu item does not chane the name of the handler in the code." You still have to recognize that Menus Do Not Work The Same Way As Controls. From adamnt42 at gmail.com Thu Oct 8 16:38:27 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 9 Oct 2020 01:08:27 +1030 Subject: [Gambas-user] Making changes to the IDE In-Reply-To: References: <48446a4e-77b7-ae06-3e6e-225a111c2c6b@gmail.com> Message-ID: <4bed7928-fdc8-8cea-ed72-201406dcd9d4@gmail.com> Ellided.. On 9/10/20 12:43 am, Bruce Steers wrote: >> > I tried all the stuff below as it wasn't working. first i just compiled > then did a make and make install but not in comp in the main folder. > so do you not have to compile changes in the IDE? just make once saved > gb.form is a component i.e. think "shared library" so if you change one of the comp projects, in fact all you need do is install that "library". But it is easier to use the autotools scripts in the comp directory to just redo 'em all. > > I added "Properties" as you would normally in a class. (does *_Properties* > with an underscore refer to something else?) Oh yes! Very much so. Read "How To Program Components In Gambas" in the wiki (http://gambaswiki.org/wiki/dev/gambas I think). In fact read it until your eyes bleed and you can recite it in your sleep. _Properties is a Constant of great importance. > I added the Background and Foreground and I also added the Background_Read > and write events ... but that's neither here > or there as i've stumbled at the first hurdle of just getting the new > Properties visible lol. > I wondered if the list of an objects properties were listed in another file > somewhere? Nup, see the above, after your eyes have healed of course :-) It might be better to try building a custom control for your own i.e. outside the gambas3 code to understand how to do it. It's trivial but say how about a checkbox with the label on the left. regards bruce From g4mba5 at gmail.com Thu Oct 8 16:39:19 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 8 Oct 2020 16:39:19 +0200 Subject: [Gambas-user] IDE renaming In-Reply-To: <1d33f063-820a-c973-04ee-b244e0cd8811@gmail.com> References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> <1d33f063-820a-c973-04ee-b244e0cd8811@gmail.com> Message-ID: <0ff7212c-bfec-0e26-ca5c-2a8354a480fa@gmail.com> Le 08/10/2020 ? 16:19, Bruce a ?crit?: > On 8/10/20 6:57 pm, Dag Jarle Nerland Johansen - Gambas wrote: >> Hi, >> I found a little thing in the IDE which may cause irritation by >> testing a program. >> If an object is renamed on the form, it works very fine, the source is >> changed too, a great benefit indeed. >> But if a menu item is renamed, it is not changed in the source. >> Not a big deal, in my programs I only link? the menu-click to a >> button-click, but sometime I use time to find the "error", which is >> none. That is when I make more changes, get distracted from something >> else, start and the click on the menu doesn't work. >> In fact only a beauty thing, but perhaps someone has time to change that. >> Regards, >> Dag >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Dag, > > I confirm your observation and profer the followin (manual) test script > to show how it v=can be dangerous and why RETRO-fitting Actions doesn't > solve the problem (for anyone that cares). > > bruce > > [...] I think it's not possible to fix that while the menu editor is a modal dialog. I plan to redesign it in a non-modal way, so that all changes are immediate, and then automatic renaming will be easy to implement. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Thu Oct 8 16:55:57 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 9 Oct 2020 01:25:57 +1030 Subject: [Gambas-user] IDE renaming In-Reply-To: <0ff7212c-bfec-0e26-ca5c-2a8354a480fa@gmail.com> References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> <1d33f063-820a-c973-04ee-b244e0cd8811@gmail.com> <0ff7212c-bfec-0e26-ca5c-2a8354a480fa@gmail.com> Message-ID: <9567e027-d91d-f3d8-eba0-507c74bf6c2b@gmail.com> On 9/10/20 1:09 am, Beno?t Minisini wrote: > I think it's not possible to fix that while the menu editor is a modal > dialog. I plan to redesign it in a non-modal way, so that all changes > are immediate, and then automatic renaming will be easy to implement. Beno?t, I agree. I also don't thnink it's bug. It's more of a usage issue. How about... I presume that chnaging menu names is not something people do as an afternoon pastime, thus it is more likely to happen down the track,.So is it easy to add a warning popup to the menu name control just reminding the user that changing the name may cause issues? b From bsteers4 at gmail.com Thu Oct 8 17:13:01 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 8 Oct 2020 16:13:01 +0100 Subject: [Gambas-user] Making changes to the IDE In-Reply-To: <4bed7928-fdc8-8cea-ed72-201406dcd9d4@gmail.com> References: <48446a4e-77b7-ae06-3e6e-225a111c2c6b@gmail.com> <4bed7928-fdc8-8cea-ed72-201406dcd9d4@gmail.com> Message-ID: Eureka :) Cheers Bruce. I'd missed the _Properties setting as Balloon.class must be the only class that didn't have one. I added the _Properties constant and added Background and Foreground to it and now they show along with all the others and my changes work fine :) Balloon defaults to tooltip colours unless i issue a Balloon.Background=color integer I'm so happy , and my eyes are just a little blurred :) lol Thanks again Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Thu Oct 8 17:18:31 2020 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 8 Oct 2020 16:18:31 +0100 Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: <879328714.84140852.1602090038796.JavaMail.zimbra@exede.net> References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> <879328714.84140852.1602090038796.JavaMail.zimbra@exede.net> Message-ID: <0387b479-cd91-cb31-6ec3-95e49f41b121@cogier.com> Hi Cedron, I have installed Ubuntu Mate on a Pi4 added the Gambas ppa, installed Gambas 3.15.2, uploaded your program 'M3U Player' (Version 0.0.21 from Gambas.One) and it runs without issue. Charlie On 07/10/2020 18:00, Cedron Dawg wrote: > Hi Charlie, > > Thanks. I do use the the PPA for my Mint laptops. > > However, the a previous install of Manjero had an older version and PPA didn't work with that. (ArchLinux) > > The Pi4's are my bigger concern personally. But I sense this is a wider issue than just my few select platforms. > > I will try the ubuntu-mate for the Pi, but I haven't liked the Ubuntu interface much. > > Ced > > ----- Original Message ----- > From: "Charlie Ogier" > To: "user" > Sent: Wednesday, October 7, 2020 12:19:17 PM > Subject: Re: [Gambas-user] Keeping repositories up to date > > Hi Cedron, > > If you use a distro based in Ubuntu you will have the ability to use a ppa to keep up to date with Gambas, no compiling required. (I have never compiled Gambas). [ https://ubuntu-mate.org/ports/raspberry-pi/ | Ubuntu Mate ] is an available distro for the pi, if that helps. > > Charlie > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bagonergi at gmail.com Thu Oct 8 18:37:58 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 8 Oct 2020 18:37:58 +0200 Subject: [Gambas-user] IDE renaming In-Reply-To: <9567e027-d91d-f3d8-eba0-507c74bf6c2b@gmail.com> References: <69982df3-5fb5-0778-0004-d5331b70504f@cd-bahia.com> <1d33f063-820a-c973-04ee-b244e0cd8811@gmail.com> <0ff7212c-bfec-0e26-ca5c-2a8354a480fa@gmail.com> <9567e027-d91d-f3d8-eba0-507c74bf6c2b@gmail.com> Message-ID: I only intervene to say that when I wrote that it didn't work on PopupMenu it is only because I have confused Name with Caption. I confirm that using Action it is possible to change the names of the menus as you want, also to exchange them with each other without malfunctions. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 8 18:43:14 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 8 Oct 2020 17:43:14 +0100 Subject: [Gambas-user] Making changes to the IDE In-Reply-To: <4bed7928-fdc8-8cea-ed72-201406dcd9d4@gmail.com> References: <48446a4e-77b7-ae06-3e6e-225a111c2c6b@gmail.com> <4bed7928-fdc8-8cea-ed72-201406dcd9d4@gmail.com> Message-ID: Okay well i have made my first change :) I've sent a merge request. Probably not done it right but got it done anyway :) lol (story of my life that) > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 8 20:28:34 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 8 Oct 2020 19:28:34 +0100 Subject: [Gambas-user] Making changes to the IDE In-Reply-To: References: <48446a4e-77b7-ae06-3e6e-225a111c2c6b@gmail.com> <4bed7928-fdc8-8cea-ed72-201406dcd9d4@gmail.com> Message-ID: > I've sent a merge request. > Probably not done it right but got it done anyway :) lol (story of my life that) only 2 errors i think.. I didn't pull the latest commits before hand. Doh! have set that up now. And i forgot to add this type of thing.. *[GB.FORM]* *NEW: added colours to Balloon* When i fist uploaded the changes, so added it as comments after. >From what i've read i think that's all was required that i missed. Hopefully i got everything else right (i did read the Contributing.md). only difference was i used the gitlab site to upload the commits not git commands in a terminal. Please advise if it's completely wrong. Thank you :) BruceS ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Fri Oct 9 03:02:32 2020 From: cedron at exede.net (Cedron Dawg) Date: Thu, 8 Oct 2020 21:02:32 -0400 (EDT) Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: <0387b479-cd91-cb31-6ec3-95e49f41b121@cogier.com> References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> <879328714.84140852.1602090038796.JavaMail.zimbra@exede.net> <0387b479-cd91-cb31-6ec3-95e49f41b121@cogier.com> Message-ID: <2043442022.85098201.1602205352078.JavaMail.zimbra@exede.net> Charlie, Thanks for testing that out. I will be trying Ubuntu on the Pi4 just to see. The kludge I coded is fine for my friend's installation, and I'll likely post it to the M3U Player post. Bruce S., I understand all that and thanks for updating the wiki, maybe I'll end up using it. All, My observation is meant to be in a broader sense than my particular situation with the music player. IMO, in order for Gambas to be good for general proliferation the latest version should be readily and easily available on every platform at a very user level. How best to do that? From bsteers4 at gmail.com Fri Oct 9 04:02:06 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 9 Oct 2020 03:02:06 +0100 Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: <2043442022.85098201.1602205352078.JavaMail.zimbra@exede.net> References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> <879328714.84140852.1602090038796.JavaMail.zimbra@exede.net> <0387b479-cd91-cb31-6ec3-95e49f41b121@cogier.com> <2043442022.85098201.1602205352078.JavaMail.zimbra@exede.net> Message-ID: > > > My observation is meant to be in a broader sense than my particular > situation with the music player. IMO, in order for Gambas to be good for > general proliferation the latest version should be readily and easily > available on every platform at a very user level. > > How best to do that? > I've recently been expressing the very same concerns. My worry was i'd been advised to upgrade to 3.15 (that none of the main distro repos had) but then found none of my programs working on lesser gambas's due to the bytecode mismatch error. and i wanted other people, those who might not be capable of doing the upgrade, to use my programs too. To be fair being told about the GB_PCODE_VERSION=3.8 environment variable fixed all those worries for me. Once i knew about it and used it all my apps worked just fine on 3.12. Trouble is not a lot of people know about it. The only other issue was loading a 3.15+ project into a lesser gambas IDE would crash the IDE if you had a CurrenArgument setting set in it's .project file as the settings type changed from an integer to a string[] but Benoit has kindly fixed that. I have no idea how easy/hard it is for the developers to get all the repositories up to date, I'm assuming not so easy otherwise it would have been done. I'm thinking I should add some info on the wiki about the GB_PCODE_VERION variable setting. What do you think Benoit? I'll make a "Note about backward compatibility" section somewhere obvious expose the "undocumented variable" I think it's an issue that's going to be important to many others so i think it requires a resolve. Maybe the variable could be added to the list of presets in the Environment page on the IDE? and have it's version set the lowest of the main distro repository versions out there perhaps? (which by the way, if i set to 3.12 it gives a bytecode error on 3.12?, i found it best to leave it at 3.8) Or if you feel like setting yourself a challenge make it auto-add itself depending on the code used and have the IDE intelligently detect and alert the user if they are compiling something that may not work on public distro versions? ;) I'll write something about it i guess and add it i guess and you can edit/move it as you please (unless you think otherwise please say so :) ) Or if you think i could help with the repo updating somehow let me know. BruceS ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Oct 9 04:54:29 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 9 Oct 2020 03:54:29 +0100 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq Message-ID: I do not know just "how" frequently this question is asked, but I asked it, I've seen others ask it too. So the wiki F.A.Q seemed a good place to put this info... http://gambaswiki.org/wiki/doc/faq#t13 Please edit/add anything you think i missed. :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Oct 9 06:15:49 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 9 Oct 2020 00:15:49 -0400 Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> <879328714.84140852.1602090038796.JavaMail.zimbra@exede.net> <0387b479-cd91-cb31-6ec3-95e49f41b121@cogier.com> <2043442022.85098201.1602205352078.JavaMail.zimbra@exede.net> Message-ID: On 10/8/20 10:02 PM, Bruce Steers wrote: > I have no idea how easy/hard it is for the developers to get all the repositories up to date, I'm assuming not so easy otherwise > it would have been done. It is not the Gambas developers' responsibility to ensure that all the myriad distribution repositories are up to date. That is totally out of their control. Each Linux distribution has its own policy and manner of deciding what versions of what software it includes and maintains. There are, though, some third-party repos that do keep the version of Gambas they maintain more up to date. -- Lee From chrisml at deganius.de Fri Oct 9 08:15:04 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 9 Oct 2020 08:15:04 +0200 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: References: Message-ID: <2a2c1533-ba5f-897b-e8ca-e8f2eed74630@deganius.de> > Is a Gambas application i make backward compatible with a lesser version of Gambas; ? > > Maybe, depending on the code you have used but not by default. Thats wrong, IMO. Older bytecode is been executed by the interpreter and runs in Gambas3 *by default*. By default older bytecode runs in newer versions. Bytecode is the product of the compilation process. If you compiled your code with V3.8 it will be executed and run by the interpreter of Gambas 3.15. There was a change of the bytecode in 3.15 and the bytecode is tagged accordingly. So if you execute a bytecode created by a compiler with a version number *equal or newer than 3.15* with an interpreter of Gambas *older than 3.15* this old interpreter will complain about that and tell you: "bytecode too recent" Because the bytecode may contain parts the old interpreter *may* not be able to understand. With the environment variable 'GB_PCODE_VERSION' you can tell the newer compiler to tag the bytecode with an older version number so that older interpreters will not complain. But you have to ensure that then your code does not contain language features introduced in the newer version. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Fri Oct 9 09:21:47 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 9 Oct 2020 08:21:47 +0100 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: <2a2c1533-ba5f-897b-e8ca-e8f2eed74630@deganius.de> References: <2a2c1533-ba5f-897b-e8ca-e8f2eed74630@deganius.de> Message-ID: On Fri, 9 Oct 2020 at 07:22, Christof Thalhofer wrote: > >> Is a Gambas application i make backward compatible with a lesser > version of Gambas; ? > >> > >> Maybe, depending on the code you have used but not by default. > > > Thats wrong, IMO. Older bytecode is been executed by the interpreter and > > runs in Gambas3 *by default*. > > > By default older bytecode runs in newer versions. > > I didn't say anything about forward compatibility. Ie. older bytecode working on newer gambas. The faq is about backward compatibility ,Ie. newer applications/bytecode working on older gambas. So how is it wrong? That post you've forwarded pretty much says exactly what i said except i didn't mention forward compatibility. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Oct 9 09:23:19 2020 From: taboege at gmail.com (Tobias Boege) Date: Fri, 9 Oct 2020 09:23:19 +0200 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: References: Message-ID: <20201009072319.GE2446432@highrise.localdomain> On Fri, 09 Oct 2020, Bruce Steers wrote: > I do not know just "how" frequently this question is asked, but I asked it, > I've seen others ask it too. > So the wiki F.A.Q seemed a good place to put this info... > > http://gambaswiki.org/wiki/doc/faq#t13 > > Please edit/add anything you think i missed. :) > BruceS As far as I (looked up and) understood the mail by Beno?t, this is a feature of the *compiler*, not of the runtime, right? The compiler supports emitting multiple bytecode versions. The interpreter supports running its own version and older ones, up to major version boundaries. I would like to know what the failure modes of this feature are. The options I can think of are: - If the differences are too big, the compiler may throw an error "can't compile this construct with that bytecode version". It will never compile to code that will not work and you get feedback immediately in the compilation process. - The compiler implements backward-compatible features as it normally would but only tags the file as the old bytecode version, causing the interpreter to potentially fail at runtime or silently misinterpret the code. I think the second mode is inevitable because parts of Gambas are too late-bound for the compiler to catch mismatches, but in those cases at least the bytecode won't be incompatible, right? What happens when the bytecode format changes locally, because the encoding for the parameters of an instruction changes? Does that just never happen in a minor version update because it's Beno?t's unwritten policy? According to my casual observations, the bytecode format is treated like an implementation detail and that makes reasoning about the effect of that environment variable very hard. I would tend not to recommend using it in an FAQ (but the wiki should list it somewhere, maybe on a page about compiler/interpreter environment variables). The recommended solution would be to recompile the project with your own compiler. This is an even better solution than to upgrade your Gambas to the version that the code author used -- unless the code requires new features of Gambas, of course! But if your compiler version is too low, the first, better failure mode will automatically kick in and tell you if you need to update after all. Gambas is not the only (byte)compiled language. Distributors who ship binary packages of Gambas applications must compile it with the Gambas that's currently in their repositories. Everybody else, who bypass their package manager, need their own compiler and do the same: recompile the project for their runtime version before they run it. And they don't need the IDE for that, gbc3 -a suffices. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From rwe-sse at osnanet.de Fri Oct 9 09:55:37 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 9 Oct 2020 09:55:37 +0200 Subject: [Gambas-user] Idea for arrays: .SWAP function Message-ID: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> Hi Benoit and all, Just had this one in a current project. To enable the user to push an entry in a list one up or down, I have to swap the related values in several arrays. There seems to be no swap function, so I have to write 3 lines of codes for it, like this: t$ = klName[po] klName[po] = klName[po + 1] klName[po + 1] = t$ I have to use these 3 lines for each array. How much easier it would be if I could use a function like for this: klName.Swap(po, po+1) This would also make sense in ListBox etc. I think this would enhance code and readability a lot. Regards Rolf From bsteers4 at gmail.com Fri Oct 9 10:02:04 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 9 Oct 2020 09:02:04 +0100 Subject: [Gambas-user] Idea for arrays: .SWAP function In-Reply-To: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> References: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> Message-ID: There is a command Swap http://gambaswiki.org/wiki/lang/swap will this work? *Swap(klName[po], klName[po+1])* BruceS On Fri, 9 Oct 2020 at 08:56, Rolf-Werner Eilert wrote: > Hi Benoit and all, > > Just had this one in a current project. To enable the user to push an > entry in a list one up or down, I have to swap the related values in > several arrays. There seems to be no swap function, so I have to write 3 > lines of codes for it, like this: > > t$ = klName[po] > klName[po] = klName[po + 1] > klName[po + 1] = t$ > > I have to use these 3 lines for each array. How much easier it would be > if I could use a function like for this: > > klName.Swap(po, po+1) > > This would also make sense in ListBox etc. > > I think this would enhance code and readability a lot. > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Oct 9 10:07:11 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 9 Oct 2020 10:07:11 +0200 Subject: [Gambas-user] Idea for arrays: .SWAP function In-Reply-To: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> References: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> Message-ID: Le 09/10/2020 ? 09:55, Rolf-Werner Eilert a ?crit?: > Hi Benoit and all, > > Just had this one in a current project. To enable the user to push an > entry in a list one up or down, I have to swap the related values in > several arrays. There seems to be no swap function, so I have to write 3 > lines of codes for it, like this: > > ?t$ = klName[po] > ?klName[po] = klName[po + 1] > ?klName[po + 1] = t$ > > I have to use these 3 lines for each array. How much easier it would be > if I could use a function like for this: > > klName.Swap(po, po+1) > > This would also make sense in ListBox etc. > > I think this would enhance code and readability a lot. > > Regards > Rolf > Do the following: Swap klName[po], klName[po + 1] It compiles into what you wrote, but using a stack slot instead of a local variable. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Fri Oct 9 10:08:05 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 9 Oct 2020 09:08:05 +0100 Subject: [Gambas-user] Idea for arrays: .SWAP function In-Reply-To: References: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> Message-ID: > > *> Swap(klName[po], klName[po+1])* > > Sorrymy mistake, do not use the Brackets. *Swap klName[po], klName[po+1]* -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Oct 9 10:09:29 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 9 Oct 2020 10:09:29 +0200 Subject: [Gambas-user] Idea for arrays: .SWAP function In-Reply-To: References: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> Message-ID: Le 09/10/2020 ? 10:07, Beno?t Minisini a ?crit?: > Le 09/10/2020 ? 09:55, Rolf-Werner Eilert a ?crit?: >> Hi Benoit and all, >> >> Just had this one in a current project. To enable the user to push an >> entry in a list one up or down, I have to swap the related values in >> several arrays. There seems to be no swap function, so I have to write >> 3 lines of codes for it, like this: >> >> ??t$ = klName[po] >> ??klName[po] = klName[po + 1] >> ??klName[po + 1] = t$ >> >> I have to use these 3 lines for each array. How much easier it would >> be if I could use a function like for this: >> >> klName.Swap(po, po+1) >> >> This would also make sense in ListBox etc. >> >> I think this would enhance code and readability a lot. >> >> Regards >> Rolf >> > > Do the following: > > Swap klName[po], klName[po + 1] > > It compiles into what you wrote, but using a stack slot instead of a > local variable. > > Regards, > By the way your request is right in a way. An array Swap() method would ba a little bit faster than the Swap instruction. -- Beno?t Minisini From chrisml at deganius.de Fri Oct 9 10:12:30 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 9 Oct 2020 10:12:30 +0200 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: References: <2a2c1533-ba5f-897b-e8ca-e8f2eed74630@deganius.de> Message-ID: <7c293dc4-42d5-a30f-802d-c06c06473028@deganius.de> Am 09.10.20 um 09:21 schrieb Bruce Steers: > I didn't say anything about forward compatibility.?Ie.? older bytecode > working on newer gambas. > The faq is about backward compatibility ,Ie. newer applications/bytecode > working on older gambas. > So how is it wrong? > That post you've forwarded pretty much says exactly what i said except i > didn't mention forward compatibility. Ok, you're right. I think my misunderstanding is caused by the lack of understanding english on the fly in my case. But for the last years backward compatibility was the default from 3.8 to 3.14, so for quite a long time. Bytecode changes are seldom, so this sentence: > "Maybe, depending on the code you have used but not by default. IMO doesn't mirror the reality. I would describe the reality as such: "Normally yes, except the case that the bytecode version has changed." And then explain, what bytecode version means and how it can be faked with GB_PCODE_VERSION. Also I am not sure if 'GB_PCODE_VERSION' if set in the IDE (which means in the '.project' file) is considered by the compiler if the project is compiled directly from the commandline via gbc3. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bsteers4 at gmail.com Fri Oct 9 10:19:48 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 9 Oct 2020 09:19:48 +0100 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: <7c293dc4-42d5-a30f-802d-c06c06473028@deganius.de> References: <2a2c1533-ba5f-897b-e8ca-e8f2eed74630@deganius.de> <7c293dc4-42d5-a30f-802d-c06c06473028@deganius.de> Message-ID: > > Ok, you're right. I think my misunderstanding is caused by the lack of > understanding english on the fly in my case. > > Bytecode changes are seldom, so this sentence: > > > "Maybe, depending on the code you have used but not by default. > > IMO doesn't mirror the reality. > > I would describe the reality as such: "Normally yes, except the case > that the bytecode version has changed." > > And then explain, what bytecode version means and how it can be faked > with GB_PCODE_VERSION. > I just got the ball rolling ;) If you think it can be improved upon please feel free to change it :) > Also I am not sure if 'GB_PCODE_VERSION' if set in the IDE (which means > in the '.project' file) is considered by the compiler if the project is > compiled directly from the commandline via gbc3. > No it does not, I've tried. so that's a good point to mention too. :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Oct 9 10:25:02 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 9 Oct 2020 10:25:02 +0200 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: <20201009072319.GE2446432@highrise.localdomain> References: <20201009072319.GE2446432@highrise.localdomain> Message-ID: <44ba75d3-9df9-82d4-9f4a-c3646492dda8@gmail.com> Le 09/10/2020 ? 09:23, Tobias Boege a ?crit?: > On Fri, 09 Oct 2020, Bruce Steers wrote: >> I do not know just "how" frequently this question is asked, but I asked it, >> I've seen others ask it too. >> So the wiki F.A.Q seemed a good place to put this info... >> >> http://gambaswiki.org/wiki/doc/faq#t13 >> >> Please edit/add anything you think i missed. :) >> BruceS > > As far as I (looked up and) understood the mail by Beno?t, this is a > feature of the *compiler*, not of the runtime, right? The compiler > supports emitting multiple bytecode versions. The interpreter supports > running its own version and older ones, up to major version boundaries. > > I would like to know what the failure modes of this feature are. > The options I can think of are: > > - If the differences are too big, the compiler may throw an error > "can't compile this construct with that bytecode version". > It will never compile to code that will not work and you get > feedback immediately in the compilation process. > > - The compiler implements backward-compatible features as it > normally would but only tags the file as the old bytecode > version, causing the interpreter to potentially fail at runtime > or silently misinterpret the code. > > I think the second mode is inevitable because parts of Gambas are > too late-bound for the compiler to catch mismatches, but in those > cases at least the bytecode won't be incompatible, right? At the moment, the compiler is not very clever. It emits compatible bytecode according to the value of GB_PCODE_VERSION only for a few features (fast &= implementation, checking error of EXEC or SHELL immediately, CREATE STATIC), which covers three versions of bytecode: 3.15, 3.7, and older than 3.7 (I said 3.8, but the code tells 3.7). In other words, it can't build code for an older version of the bytecode. The GB_PCODE_VERSION is a trick. You use it at your own risk, provided that you know what you do. > > What happens when the bytecode format changes locally, because the > encoding for the parameters of an instruction changes? Does that > just never happen in a minor version update because it's Beno?t's > unwritten policy? My rule was the old bytecode must always work with newer versions of the bytecode. Except if the major version of Gambas changes. > > According to my casual observations, the bytecode format is treated > like an implementation detail and that makes reasoning about the > effect of that environment variable very hard. I would tend not to > recommend using it in an FAQ (but the wiki should list it somewhere, > maybe on a page about compiler/interpreter environment variables). I agree. This must be removed from the FAQ and put it somewhere else. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Fri Oct 9 10:40:09 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 9 Oct 2020 10:40:09 +0200 Subject: [Gambas-user] Idea for arrays: .SWAP function In-Reply-To: References: <342e9dfe-e00d-044f-c258-446cb06824d5@osnanet.de> Message-ID: <9afbd0d2-76f3-8362-8d30-8fad76c8be6b@osnanet.de> Am 09.10.20 um 10:09 schrieb Beno?t Minisini: > Le 09/10/2020 ? 10:07, Beno?t Minisini a ?crit?: >> Le 09/10/2020 ? 09:55, Rolf-Werner Eilert a ?crit?: >>> Hi Benoit and all, >>> >>> Just had this one in a current project. To enable the user to push an >>> entry in a list one up or down, I have to swap the related values in >>> several arrays. There seems to be no swap function, so I have to >>> write 3 lines of codes for it, like this: >>> >>> ??t$ = klName[po] >>> ??klName[po] = klName[po + 1] >>> ??klName[po + 1] = t$ >>> >>> I have to use these 3 lines for each array. How much easier it would >>> be if I could use a function like for this: >>> >>> klName.Swap(po, po+1) >>> >>> This would also make sense in ListBox etc. >>> >>> I think this would enhance code and readability a lot. >>> >>> Regards >>> Rolf >>> >> >> Do the following: >> >> Swap klName[po], klName[po + 1] >> >> It compiles into what you wrote, but using a stack slot instead of a >> local variable. >> >> Regards, >> > > By the way your request is right in a way. An array Swap() method would > ba a little bit faster than the Swap instruction. > Aaah thanks for the quick answer! I now remember I once used it. And this way, it is more flexible, as one can swap items from two different arrays. Thanks to both of you! Rolf From bsteers4 at gmail.com Fri Oct 9 13:22:10 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 9 Oct 2020 12:22:10 +0100 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: <44ba75d3-9df9-82d4-9f4a-c3646492dda8@gmail.com> References: <20201009072319.GE2446432@highrise.localdomain> <44ba75d3-9df9-82d4-9f4a-c3646492dda8@gmail.com> Message-ID: > I agree. This must be removed from the FAQ and put it somewhere else. > Any suggestions of exactly where i should sove it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Oct 9 13:42:14 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 9 Oct 2020 13:42:14 +0200 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: References: <20201009072319.GE2446432@highrise.localdomain> <44ba75d3-9df9-82d4-9f4a-c3646492dda8@gmail.com> Message-ID: Le 09/10/2020 ? 13:22, Bruce Steers a ?crit?: > > I agree. This must be removed from the FAQ and put it somewhere else. > > > Any suggestions of exactly where i should sove it? > Create a page "/doc/compat" with "Compatibility between versions" as title. -- Beno?t Minisini From bsteers4 at gmail.com Fri Oct 9 15:33:25 2020 From: bsteers4 at gmail.com (Bruce) Date: Fri, 9 Oct 2020 14:33:25 +0100 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: References: Message-ID: >>/Any suggestions of exactly where i should sove it? />>//> > Create a page "/doc/compat" with "Compatibility between versions" as title. Done my good man. Edited and updated a bit. Should i put a link to it somewhere or have you taken care of that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Oct 9 16:37:45 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 10 Oct 2020 01:07:45 +1030 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: References: <20201009072319.GE2446432@highrise.localdomain> <44ba75d3-9df9-82d4-9f4a-c3646492dda8@gmail.com> Message-ID: <6b556190-7593-23b3-48c5-b6c4353af991@gmail.com> On 9/10/20 10:12 pm, Beno?t Minisini wrote: > Le 09/10/2020 ? 13:22, Bruce Steers a ?crit?: >> >> ??? I agree. This must be removed from the FAQ and put it somewhere else. >> >> >> Any suggestions of exactly where i should sove it? >> > > Create a page "/doc/compat" with "Compatibility between versions" as title. > Good! I was starting to imagine the help desk calls... [Me] Hello, Paddys Hill. How can... [They] Is your Xyzzy program backward compatible? [Me] Damned if I know, Tonto. Does it work? [They] Yes, but there's all this new stuff on the internet about backward compatability in Gambas... [Me] Hmmm, I see. Do you happen to have a toaster, a long extension cord and a bath filled with water? [They] Huh? [Me] Goodbye. cheers b From chrisml at deganius.de Fri Oct 9 17:46:37 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 9 Oct 2020 17:46:37 +0200 Subject: [Gambas-user] Backward Compatibility with gambas versions added to wiki faq In-Reply-To: <6b556190-7593-23b3-48c5-b6c4353af991@gmail.com> References: <20201009072319.GE2446432@highrise.localdomain> <44ba75d3-9df9-82d4-9f4a-c3646492dda8@gmail.com> <6b556190-7593-23b3-48c5-b6c4353af991@gmail.com> Message-ID: <2f982ce8-cb01-3bd7-75b1-48a53cf8982c@deganius.de> On 09.10.20 16:37, Bruce wrote: > Good! I was starting to imagine the help desk calls... > > [Me] Hello, Paddys Hill. How can... > [They] Is your Xyzzy program backward compatible? > [Me] Damned if I know, Tonto. Does it work? > [They] Yes, but there's all this new stuff on the internet about > backward compatability in Gambas... > [Me] Hmmm, I see. Do you happen to have a toaster, a long extension cord > and a bath filled with water? > [They] Huh? > [Me] Goodbye. Haha! Wonderful! :-) Eleventh Commandment: Thou shalt not kill thy customers. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From cedron at exede.net Fri Oct 9 17:55:37 2020 From: cedron at exede.net (Cedron Dawg) Date: Fri, 9 Oct 2020 11:55:37 -0400 (EDT) Subject: [Gambas-user] Keeping repositories up to date In-Reply-To: References: <99705169.84045154.1602082306120.JavaMail.zimbra@exede.net> <879328714.84140852.1602090038796.JavaMail.zimbra@exede.net> <0387b479-cd91-cb31-6ec3-95e49f41b121@cogier.com> <2043442022.85098201.1602205352078.JavaMail.zimbra@exede.net> Message-ID: <182115191.85479854.1602258937702.JavaMail.zimbra@exede.net> Well then, it would seem that it is a systemic incompatibility and a replacement architecture, maintained by the developers, should be implemented. ----- Original Message ----- From: "T Lee Davidson" To: "user" Sent: Friday, October 9, 2020 12:15:49 AM Subject: Re: [Gambas-user] Keeping repositories up to date On 10/8/20 10:02 PM, Bruce Steers wrote: > I have no idea how easy/hard it is for the developers to get all the repositories up to date, I'm assuming not so easy otherwise > it would have been done. It is not the Gambas developers' responsibility to ensure that all the myriad distribution repositories are up to date. That is totally out of their control. Each Linux distribution has its own policy and manner of deciding what versions of what software it includes and maintains. There are, though, some third-party repos that do keep the version of Gambas they maintain more up to date. -- Lee ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bsteers4 at gmail.com Sat Oct 10 19:16:35 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 10 Oct 2020 18:16:35 +0100 Subject: [Gambas-user] Compiling Gambas on Debian10 PDFDoc.h error Message-ID: Hi all, I'm Hitting a roadblock trying to compile on a new Debian 10. I have got ./configure to only disable gnome-keyring, no other errors but then make stops with the following error.. (same thing on Raspbian RPI4) Anyone know what i am missing? *make[4]: Entering directory '/home/bonus/gambas-main/gb.pdf/src' CXX gb_pdf_la-main.loIn file included from main.cpp:26:CPdfDocument.h:29:10: fatal error: PDFDoc.h: No such file or directory #include * ^~~~~~~~~~ Thanks in advance :) Bruce S -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat Oct 10 19:43:14 2020 From: taboege at gmail.com (Tobias Boege) Date: Sat, 10 Oct 2020 19:43:14 +0200 Subject: [Gambas-user] gb.web.feed documentation not fully uploaded to wiki Message-ID: <20201010174314.GG2446432@highrise.localdomain> Hi, the in-source documentation of gb.web.feed has not completely made it into the wiki: the class overview texts are missing. Can this be fixed or was that not supported by the help-to-wiki importer? Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bsteers4 at gmail.com Sat Oct 10 21:17:53 2020 From: bsteers4 at gmail.com (Bruce) Date: Sat, 10 Oct 2020 20:17:53 +0100 Subject: [Gambas-user] Compiling Gambas on Debian10 PDFDoc.h error In-Reply-To: References: Message-ID: |Never mind i found them with libpoppler-private-dev and |||libhpdf-dev| :) I'm trying to get the wiki dependency list accurate as can be. I had problems getting the qt5.webview and also |||postgresql|, enabled with some additions. and "make" was failing in gb.pdf not being able to find the afore mentioned header files. fixed with adding | ||libpoppler-private-dev libhpdf-dev| Can SOMEBODY who knows EXACTLY what's needed tell me if I've added anything more then i should have or something should be different or whatever. It's possible in my trying to get it working i've installed something i didn't need to and added it to this list. thanks all. ||build-essential g++ automake autoconf libbz2-dev default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libasound2-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl-dev libncurses5-dev libgmime-3.0-dev llvm-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev qtwebengine5-dev qt5-default libpoppler-private-dev libhpdf-dev postgresql-server-dev-all| || -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 11 03:03:54 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 11 Oct 2020 02:03:54 +0100 Subject: [Gambas-user] Compiling latest commits (Debian10,Raspbian) Message-ID: Hi all. I've spent a whole lot of hours and a whole lot of mobile data doing this for everyone as i figured , someone had to as it hadn't been done since 2017 :) I've updated the info on the wiki pages for compiling the latest commits on both Debian and Raspian (Buster) as best as i can, just missing a couple of things (see below). close but not quite there, needs some expert adjustments. I installed fresh new operating systems on both a Debian pc and a Rapberry PI4 Images: Debian *debian-live-10.4.0-amd64-mate* Raspian *2020-08-20-raspios-buster-armhf.img* i Ran *apt-get update* and *apt-get full-upgrade* on both and installed nothing else. I then installed the dependencies which are as best as i can get them by copy-n-pasting from the lists i've edited on the wiki pages. http://www.gambaswiki.org/wiki/install/debian#t17 http://www.gambaswiki.org/wiki/install/raspbian#t20 They are very very close but just not quite right darn it . working except the following.. Neither one installed a system menu item for Gambas3 I had to manually add one. Debian. Unable to met pkg-config requirement: gnome-keyring-1 gb.desktop.gnome.keyring is disabled gb.openssl is disabled All else is okay Raspbian. Unable to met pkg-config requirement:Qt5WebEngineWidgets gb.qt5.webview is disabled All else is okay. (qtwebengine5-dev is not available on raspbian) Like i say i've spent hours on this as the raspberry is slow as hell. and my phone just alerted me i've used 75% of my data and it's like, the 11th :( So i'm done, someone else can add the finishing touches now. I've got it best i can and am obviously missing something and could possibly have added something that's not needed. Apart from the listed components gambas compiles and installs fine on both (apart from the menu item). BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Oct 11 04:34:28 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 11 Oct 2020 04:34:28 +0200 Subject: [Gambas-user] gb.web.feed documentation not fully uploaded to wiki In-Reply-To: <20201010174314.GG2446432@highrise.localdomain> References: <20201010174314.GG2446432@highrise.localdomain> Message-ID: <7b099edf-e931-5003-87b5-967ea1a576bb@gmail.com> Le 10/10/2020 ? 19:43, Tobias Boege a ?crit?: > Hi, > > the in-source documentation of gb.web.feed has not completely made it > into the wiki: the class overview texts are missing. Can this be fixed > or was that not supported by the help-to-wiki importer? > > Best, > Tobias > It's just that the pages must be created manually first so that the help is retrieved. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sun Oct 11 04:35:03 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 11 Oct 2020 04:35:03 +0200 Subject: [Gambas-user] gb.web.feed documentation not fully uploaded to wiki In-Reply-To: <7b099edf-e931-5003-87b5-967ea1a576bb@gmail.com> References: <20201010174314.GG2446432@highrise.localdomain> <7b099edf-e931-5003-87b5-967ea1a576bb@gmail.com> Message-ID: <0ff1c77e-8bf7-9a4d-5199-913557a24e3e@gmail.com> Le 11/10/2020 ? 04:34, Beno?t Minisini a ?crit?: > Le 10/10/2020 ? 19:43, Tobias Boege a ?crit?: >> Hi, >> >> the in-source documentation of gb.web.feed has not completely made it >> into the wiki: the class overview texts are missing. Can this be fixed >> or was that not supported by the help-to-wiki importer? >> >> Best, >> Tobias >> > > It's just that the pages must be created manually first so that the help > is retrieved. > > Regards, > This should be automatic by the way... :-) -- Beno?t Minisini From g4mba5 at gmail.com Sun Oct 11 04:38:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 11 Oct 2020 04:38:58 +0200 Subject: [Gambas-user] Compiling Gambas on Debian10 PDFDoc.h error In-Reply-To: References: Message-ID: Le 10/10/2020 ? 21:17, Bruce a ?crit?: > |Never mind i found them with libpoppler-private-dev and |||libhpdf-dev| :) I'm trying to get the wiki dependency list accurate as > can be. I had problems getting the qt5.webview and also |||postgresql|, enabled with some additions. and "make" was failing in > gb.pdf not being able to find the afore mentioned header files. fixed > with adding | > ||libpoppler-private-dev libhpdf-dev| Can SOMEBODY who knows EXACTLY > what's needed tell me if I've added anything more then i should have or > something should be different or whatever. It's possible in my trying to > get it working i've installed something i didn't need to and added it to > this list. thanks all. ||build-essential g++ automake autoconf libbz2-dev > default-libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev > libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev > libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev > libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev > libpoppler-glib-dev libasound2-dev libdirectfb-dev libxtst-dev > libffi-dev libqt4-dev libglew-dev libimlib2-dev libv4l-dev > libsdl-ttf2.0-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > libgsl-dev libncurses5-dev libgmime-3.0-dev llvm-dev libalure-dev > libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > libsdl2-image-dev sane-utils libdumb1-dev qtwebengine5-dev qt5-default > libpoppler-private-dev libhpdf-dev postgresql-server-dev-all| > > > || > (where does that strange mail formatting come from???) You can take the information from the the '.gitlab-ci.yml' file located in the source directory root, and use it for you or for updating the wiki. It's the configuration file of GitLab "Continuous Integration" system. In other words, if Gambas compiles on GitLab automatic compilation system, then the package list located in that file for your distribution is accurate. If your distribution is not in this file, you are unlucky. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Sun Oct 11 13:29:23 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 11 Oct 2020 12:29:23 +0100 Subject: [Gambas-user] Compiling Gambas on Debian10 PDFDoc.h error In-Reply-To: References: Message-ID: On Sun, 11 Oct 2020 at 03:40, Beno?t Minisini wrote: > Le 10/10/2020 ? 21:17, Bruce a ?crit : > > |Never mind i found them with libpoppler-private-dev and |||libhpdf-dev| > :) I'm trying to get the wiki dependency list accurate as > > can be. I had problems getting the qt5.webview and also |||postgresql|, > enabled with some additions. and "make" was failing in > > gb.pdf not being able to find the afore mentioned header files. fixed > > > > (where does that strange mail formatting come from???) > Oops sorry about that. i replied to the post via the mail archives and Thunderbird popped up instead the gmail i normally use. > You can take the information from the the '.gitlab-ci.yml' file located > in the source directory root, and use it for you or for updating the wiki. > > It's the configuration file of GitLab "Continuous Integration" system. > > In other words, if Gambas compiles on GitLab automatic compilation > system, then the package list located in that file for your distribution > is accurate. > Awesome , thank you Benoit.Knowing that i may look into updating the others distro info on the site too as i had to add some things (mostly webview dependencies) in Mint. The gitlabs list for Debian only installed libgmime-2.6 on top of what i'd added (i'd changed it to libgmime-3.0 as when configuring it complained it wanted 3.0 but was using 2.6 so i updated it) but this has resolved the gb.openssl not compiling now. So Debian now compiles everything but gnome-keyring. > If your distribution is not in this file, you are unlucky. > You not adding Raspberry? I'm loving the fact i now have 3.15.90 on my PI :) qtwebengine5-dev was the only package from the Debian list it couldn't find thus gb.qt5.webview disabled but all other components are fine :) Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ujlain at gmail.com Mon Oct 12 07:35:53 2020 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Mon, 12 Oct 2020 11:05:53 +0530 Subject: [Gambas-user] Two quick requests Message-ID: <55eaf238-006f-d7d2-2eee-af26fed32229@gmail.com> 1.??? Help browser is *modal* and can't be minimized. It sticks around preventing any other activity , thus any copy , paste or revert to same help page is made unwieldy and cumbersome. Request this browser popup be made *minimizable*. 2. *Optional* parameter in function parameters : It makes function declaration line too long. Is it not possible to omit optional keyword all together ? i.e if value is assigned to a parameter with = operator , it automatically should imply optional ?? Regards - UZI ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From detlef at kleiss.de Mon Oct 12 12:23:46 2020 From: detlef at kleiss.de (Detlef Kleiss) Date: Mon, 12 Oct 2020 12:23:46 +0200 Subject: [Gambas-user] Changing the directory for source (project) files Message-ID: <409a83e7-a186-fb87-abbd-207a19724fda@kleiss.de> Hello out there, for some reasons I changed the path,(directory)? where the Gambas project files are stored. How can I tell the Gambas IDE to use this new directory? Thanks a lot, Detlef From t.lee.davidson at gmail.com Mon Oct 12 16:57:04 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 12 Oct 2020 10:57:04 -0400 Subject: [Gambas-user] Changing the directory for source (project) files In-Reply-To: <409a83e7-a186-fb87-abbd-207a19724fda@kleiss.de> References: <409a83e7-a186-fb87-abbd-207a19724fda@kleiss.de> Message-ID: <656a8f72-9b2c-ce44-5e21-ec9269a3e328@gmail.com> On 10/12/20 6:23 AM, Detlef Kleiss wrote: > Hello out there, > > for some reasons I changed the path,(directory)? where the Gambas project files are stored. > > How can I tell the Gambas IDE to use this new directory? > > Thanks a lot, > > Detlef You shouldn't need to tell it. Just navigate to the new location using the Open Project dialog. -- Lee From bsteers4 at gmail.com Mon Oct 12 17:12:38 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 12 Oct 2020 16:12:38 +0100 Subject: [Gambas-user] Gambas setup compile and install script. Message-ID: Hi all. I have written a bash script to help people with cloning / compiling and installing gambas3 by hand. http://bws.org.uk/Gambas3-Compile-and-Install.zip http://bws.org.uk/Gambas-c-and-r-ReadMe.txt Free for all to use/rip/modify as you please. Main features... Can be run from an existing Gambas Gitlab clone dir or will ask for an existing dir or will download a new clone into current dir. offers to run git pull first on existing dir. detects linux distro or can be manually set. supports ubuntu, mint, debian, archlinux and alpine added support for Raspbian Extracts dependency/package list from the ".gitlab-ci.yml" file and custom ./configure commands. Offers to install dependencies or not. Asks a simple 'y' or 'n' for each step from ./reconf-all to 'make install' or you can type 'a' to say yes to all. Offers to install a desktop icon and/or menu launcher (using xdg and the /app/desktop files) All it's lacking.. I'm not sure how to know if user has archlinux or archlinux-clang so have made a note to set manually if using archlinux. Possibly more distros could be added. I added Raspbian by removing the unavailable qtwebengine5-dev debian package and setting --disable-qt5webview to the ./configure command. other distros could be added the same way but i don't have any other distros to try it on. Hopefully this will help get some more folks on the latest commits who cannot ppa install. or those who want to compile gambas and have tried but failed. Please let me know if you try it and it works or fails. tested on debian, mint, raspbian Cheers all :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Oct 12 19:44:43 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 13 Oct 2020 04:14:43 +1030 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: Message-ID: On 13/10/20 1:42 am, Bruce Steers wrote: > Hi all. > I have written a bash script to help people with cloning / compiling and > installing gambas3 by hand. > http://bws.org.uk/Gambas3-Compile-and-Install.zip Hi Bruce S, [xxxxxx at xxxxxxxx Downloads]$ lxqt-archiver Gambas3-Compile-and-Install.zip lxqt-archiver: Exectuable file detected in archive - aborting [xxxxxx at xxxxxxxx Downloads] Political correctness suggests that you don't include executable files in a zip with the exec flag set. Let the user decide that (whatever it is) can be executed or not. regards bruce From bsteers4 at gmail.com Mon Oct 12 20:25:32 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 12 Oct 2020 19:25:32 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: Message-ID: haha, that's mad. (like most political correctness) Cheers Bruce. On linux mint i can't even unset it. i even tried chmod -x from terminal , still says it's executable. when you set #!/usr/bin/env bash as the first line it becomes an executable automatically. Besides, Personally i think it's the "developer" that wants to decide if the script gets run or viewed. the "user" doesn't want to see the gubbins ;) they just want the cake not the recipie for the cake ;) I'll put it on git , then it should be cool :) Cheers for the heads up. Bruce On Mon, 12 Oct 2020 at 18:45, Bruce wrote: > On 13/10/20 1:42 am, Bruce Steers wrote: > > Hi all. > > I have written a bash script to help people with cloning / compiling and > > installing gambas3 by hand. > > http://bws.org.uk/Gambas3-Compile-and-Install.zip > > Hi Bruce S, > > [xxxxxx at xxxxxxxx Downloads]$ lxqt-archiver Gambas3-Compile-and-Install.zip > lxqt-archiver: Exectuable file detected in archive - aborting > [xxxxxx at xxxxxxxx Downloads] > > Political correctness suggests that you don't include executable files > in a zip with the exec flag set. Let the user decide that (whatever it > is) can be executed or not. > > regards > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Oct 12 20:14:56 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Mon, 12 Oct 2020 21:14:56 +0300 Subject: [Gambas-user] =?utf-8?q?Gambas_setup_compile_and_install_script?= =?utf-8?q?=2E?= In-Reply-To: References: Message-ID: <1602526496.278457805@f4.my.com> Is there any way this link can be added the gambas website -- Thanks Brian Monday, 12 October 2020, 10:45AM -07:00 from Bruce adamnt42 at gmail.com : >On 13/10/20 1:42 am, Bruce Steers wrote: > Hi all. > I have written a bash script to help people with cloning / compiling and > installing gambas3 by hand. > http://bws.org.uk/Gambas3-Compile-and-Install.zip > >Hi Bruce S, > >[xxxxxx at xxxxxxxx Downloads]$ lxqt-archiver Gambas3-Compile-and-Install.zip >lxqt-archiver: Exectuable file detected in archive - aborting >[xxxxxx at xxxxxxxx Downloads] > >Political correctness suggests that you don't include executable files >in a zip with the exec flag set. Let the user decide that (whatever it >is) can be executed or not. > >regards >bruce > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Oct 12 20:41:55 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 12 Oct 2020 19:41:55 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: Message-ID: I've now put it on github in all it's naked glory :) Ps. i hadn't tested it from scratch before first upload and found a bug in the 'installing git' routing so fixed it. it's running on a Raspberry PI4 with ubuntu 20 on it as we speak. (as far as ./reconf-all so with far no errors) https://github.com/BruceSteers/gambas3-compile-and-install BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Oct 13 10:43:13 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 13 Oct 2020 09:43:13 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: <1602526496.278457805@f4.my.com> References: <1602526496.278457805@f4.my.com> Message-ID: Hi Brian. It's going through a process of evolution/testing right now. It's now on version 2.3 Check out the revision history https://github.com/BruceSteers/gambas3-compile-and-install/blob/main/version.txt I think now it's about ready though. it now gives a list of supported distros if your linux type isn't found so is automated about as much as can be. (no need to manually edit the script now) Other distros may be added in the future the same way i added Raspbian but for now it will ask for the best matching one from the list. what do you think Gambas Team? Should i put this somewhere? do you think it needs something added first? Latest version here... https://github.com/BruceSteers/gambas3-compile-and-install On Mon, 12 Oct 2020 at 19:42, Brian G wrote: > Is there any way this link can be added the gambas website > > -- > Thanks > Brian > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Oct 13 23:01:44 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 13 Oct 2020 23:01:44 +0200 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> Message-ID: Am 13.10.20 um 10:43 schrieb Bruce Steers: > It's going through a process of evolution/testing right now. > It's now on version 2.3 > Check out the revision history > https://github.com/BruceSteers/gambas3-compile-and-install/blob/main/version.txt > > I think now it's about ready though. > it now gives a list of supported distros if your linux type isn't found > so is automated about as much as can be. > (no need to manually edit the script now) > > Other distros may be added in the future the same way i added Raspbian > but for now it will ask for the best matching one from the list. > what do you think Gambas Team? Didn't try it but I like that idea because I can remember how much I had to struggle until I had the first self-compiled (and therefore current) Gambas installation on a computer. For instance, I had Gambas running on Raspberry Pi's in my firm but gave that idea up when the only source of current Gambas Apt packages I knew went offline. To test the compilation on Raspis was definitely too time consuming, so I had to carry on with small X86 computers and now I have some useless Pi's lying around and the X86's consume more electricity. :-( But: AFAICS the many packages of a distribution the compilation depends on are not installed by your script, right? To get this done is IMO one of the biggest hurdles if one compiles and installs Gambas on a computer. And instead of echoing "hopefully all went well and Gambas3 is now compiled and installed correctly" it should better test if that's the case. :-) I think it would not be bad to provide your script by the Gitlab Gambas site as soon as it is stable and does it's job well. And then set a link to it from the wiki and so make it 'official'. But maybe Beno?t or someone else has some good arguments against it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From Karl.Reinl at Fen-Net.de Wed Oct 14 00:24:18 2020 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Wed, 14 Oct 2020 00:24:18 +0200 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> Message-ID: <57872d3dbdb5f363af1337c05aed8b1e1b4e5b99.camel@Fen-Net.de> Salut Bruce, so, first of all it works well. But, asking for a decision in the middle of the setup, that's not possible, at this time I'm no longer in front of the screen. Everything should be queried at the beginning, and then it runs through or fails. Secondly, the Gambas SetUp must be redirected into a protocol. Beno?t will asks for when problems are reported. -- Amicalement Charlie From bsteers4 at gmail.com Wed Oct 14 03:00:19 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 14 Oct 2020 02:00:19 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> Message-ID: > Didn't try it but I like that idea because I can remember how much I had > to struggle until I had the first self-compiled (and therefore current) > Gambas installation on a computer. > Likewise , hence a lovely script to avoid all the headaches for others :) > But: AFAICS the many packages of a distribution the compilation depends > on are not installed by your script, right? To get this done is IMO one > of the biggest hurdles if one compiles and installs Gambas on a computer. > Er no, that is exactly what this script is for. I have tested it on debian, raspbian, mint, ubuntu and manjaro. running this script from a fresh linux install before installing anything else installed ALL the required dependencies and compiled and installed gambas in one go :) > And instead of echoing "hopefully all went well and Gambas3 is now > compiled and installed correctly" it should better test if that's the > case. :-) > I think i've done enough , the user has to do something for themselves right? ;) lol To be honest if the script gets to that final message it means everything went well. I guess i could take out the word "Hopefully" I think it would not be bad to provide your script by the Gitlab Gambas > site as soon as it is stable and does it's job well. And then set a link > to it from the wiki and so make it 'official'. > > But maybe Beno?t or someone else has some good arguments against it. > C'est possible Not heard much against it yet mind. Mostly good ;) BruceS > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 14 03:40:26 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 14 Oct 2020 02:40:26 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: <57872d3dbdb5f363af1337c05aed8b1e1b4e5b99.camel@Fen-Net.de> References: <1602526496.278457805@f4.my.com> <57872d3dbdb5f363af1337c05aed8b1e1b4e5b99.camel@Fen-Net.de> Message-ID: On Tue, 13 Oct 2020 at 23:44, Charlie Reinl wrote: > Salut Bruce, > > so, first of all it works well. > But, asking for a decision in the middle of the setup, that's not > possible, at this time I'm no longer in front of the screen. > Everything should be queried at the beginning, and then it runs through > or fails. > You can select 'a' to answer "yes to all" and everything runs along without prompts until the final *sudo make install* command as it needs root permissions. if that's what you mean did you try running the script as root? or do you just mean set all the options at start of script. this could be possible, you'd still have to keep an eye out the the sudo password entry though. > Secondly, the Gambas SetUp must be redirected into a protocol. Beno?t > will asks for when problems are reported. > Sorry i do not understand. Sort of sounds like you are saying it should be clearer that if someone has a problem with the script they should contact me about it and not the gambas team? Is that what you are saying? Bruce Steers > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 14 11:18:49 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 14 Oct 2020 11:18:49 +0200 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> Message-ID: <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Le 14/10/2020 ? 03:00, Bruce Steers a ?crit?: > > But maybe Beno?t or someone else has some good arguments against it. > > > C'est possible > Not heard much against it yet mind. > Mostly good? ;) > BruceS > Hi, This script is a welcome idea. I looked at it quickly, but I'm not very good at reading/writing shell scripts. Here is a few remarks: 1) I think that it should be able to install Gambas from the "tar.gz" source archive downloadable from the web site too (it's just the one generated by GitLab). 2) The name of the script should be all lower case (and good that it starts with "gambas3-"). 3) "sudo make install" already installs the icon, the desktop launcher... If not, then "make install" should be fixed, instead of having to do its job inside the script. 4) The log of all commands must not be put in "/dev/null". We need it to understand what goes wrong if something goes wrong. Everything should be redirected to a temporary file, that would be available if there is an error. 5) You must detect if there is already a Gambas installation by running "gbx3", finding where it is installed to find the Gambas installation prefix, and then tell the user before aborting the script (unless you can detect if it was installed by package or manually to remove it, but I don't think so). Anyway good job! Regards, -- Beno?t Minisini From bsteers4 at gmail.com Wed Oct 14 14:29:15 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 14 Oct 2020 13:29:15 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: > This script is a welcome idea. > Thamnks Benoit :) just doing what i can to help. > I looked at it quickly, but I'm not very good at reading/writing shell > scripts. Here is a few remarks: > Haha, that's how i feel reading the Gambas code ;) 1) I think that it should be able to install Gambas from the "tar.gz" > source archive downloadable from the web site too (it's just the one > generated by GitLab). Okay sure, will offer that option. Is it to either download the stable version or the latest beta commits? if that's the reason the script already installs git and i'd have to also install curl or something and work on un-achivers. also I'd have to extract the websites download file name string from the page as it changes. Or i could make the script use https://gitlab.com/gambas/gambas/-/tree/stable as well as https://gitlab.com/gambas/gambas/-/tree/master to offer the choice. Or was there another reason to use the tar ball? > 2) The name of the script should be all lower case (and good that it > starts with "gambas3-"). > consider it done :) 3) "sudo make install" already installs the icon, the desktop > launcher... If not, then "make install" should be fixed, instead of > having to do its job inside the script. > I thought that the make install did do that., it set up the menu when installlng on mint and i think debian. but not on my raspberry PI Maybe i can leave a message and break out of the "say yes to all" bit at the end, saying it's installed and the menu item "should" be there and to check, and my script can try if the make installed didn't? > 4) The log of all commands must not be put in "/dev/null". We need it to > understand what goes wrong if something goes wrong. Everything should be > redirected to a temporary file, that would be available if there is an > error. > My appologies, I had not considered you folks. i used it for the ./configure command only but redirected the standard output not the error output. so i could only see the errors and not have to scroll through miles of text looking. do you want the >std_output.log as well as 2>error.log ? > 5) You must detect if there is already a Gambas installation by running > "gbx3", finding where it is installed to find the Gambas installation > prefix, and then tell the user before aborting the script (unless you > can detect if it was installed by package or manually to remove it, but > I don't think so). > there may be a way, the script already detects if it's using apt or pacman. i think pacman can list installed packages and dpkg can too so i should be able to find if a repository version exists. should also be able to auto-uninstall repo versions first. all i'll need is an Alpine system to test if apk can tell as well. > > Anyway good job! > Thank you kind sir , and likewise :) Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 14 14:37:26 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 14 Oct 2020 14:37:26 +0200 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Le 14/10/2020 ? 14:29, Bruce Steers a ?crit?: > > 1) I think that it should be able to install Gambas from the "tar.gz" > source archive downloadable from the web site too (it's just the one > generated by GitLab). > > > Okay sure, will offer that option. > Is it to either download the stable version or the latest beta commits? > if that's the reason the script already installs git and i'd have to > also install curl or something and work on un-achivers. > also I'd have to extract the websites download file name string from the > page as it changes. > > Or i could make the script use > https://gitlab.com/gambas/gambas/-/tree/stable as well as > https://gitlab.com/gambas/gambas/-/tree/master to offer the choice. > Or was there another reason to use the tar ball? The reason is people who do not want to install git on their system. > > 3) "sudo make install" already installs the icon, the desktop > launcher... If not, then "make install" should be fixed, instead of > having to do its job inside the script. > > > I thought that the make install did do that., > it set up the menu when installlng on mint and i think debian. but not > on my raspberry PI > Maybe i can leave a message and break out of the "say yes to all" bit at > the end, saying it's installed and the menu item "should" be there and > to check, and my script can try if the make installed didn't? "make install" use the xdg commands too. So if yours work but not those inside the "Makefile.am" file, then they should be fixed. > > 4) The log of all commands must not be put in "/dev/null". We need > it to > understand what goes wrong if something goes wrong. Everything > should be > redirected to a temporary file, that would be available if there is an > error. > > > My appologies, I had not considered you folks. > i used it for the ./configure command only but redirected the standard > output not the error output. so i could only see the errors and not have > to scroll through miles of text looking. > > do you want the >std_output.log as well as 2>error.log Do as you like. We just need the full output of the process when something fails. Regards, -- Beno?t Minisini From brian at westwoodsvcs.com Wed Oct 14 14:22:13 2020 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Wed, 14 Oct 2020 15:22:13 +0300 Subject: [Gambas-user] =?utf-8?q?Gambas_setup_compile_and_install_script?= =?utf-8?q?=2E?= In-Reply-To: References: <1602526496.278457805@f4.my.com> Message-ID: <1602678133.855147526@f25.my.com> Hi Bruce, I really like the work you have done here,? It will surely simplify building gambas for most users. I would like to see your project become an integrated part of the gambas project. I read Benoit's comments regarding the script they looked very positive! It would be great if you could include an opensuse rpm? build as well... Just my thought. You have made fabulous progress in simplifying what many of us struggled to get working! Thanks for doing this and sharing it with us. I am going to give it a deeper look this week and test a few platforms.. -- Thanks Brian Tuesday, 13 October 2020, 01:43AM -07:00 from Bruce Steers bsteers4 at gmail.com : >Hi Brian. > >It's going through a process of evolution/testing right now. >It's now on version 2.3 >Check out the revision history >https://github.com/BruceSteers/gambas3-compile-and-install/blob/main/version.txt > >I think now it's about ready though. >it now gives a list of supported distros if your linux type isn't found so is automated about as much as can be. >(no need to manually edit the script now) > >Other distros may be added in the future the same way i added Raspbian but for now it will ask for the best matching one from the list. >what do you think Gambas Team? >Should i put this somewhere? >do you think it needs something added first? >Latest version here... >https://github.com/BruceSteers/gambas3-compile-and-install >On Mon, 12 Oct 2020 at 19:42, Brian G < brian at westwoodsvcs.com> wrote: >>Is there any way this link can be added th e gambas website >>-- >>Thanks >>Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 14 21:56:12 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 14 Oct 2020 20:56:12 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Message-ID: On Wed, 14 Oct 2020 at 13:38, Beno?t Minisini wrote: > Le 14/10/2020 ? 14:29, Bruce Steers a ?crit : > > > > 1) I think that it should be able to install Gambas from the "tar.gz" > > source archive downloadable from the web site too (it's just the one > > generated by GitLab). > > > Or i could make the script use > > https://gitlab.com/gambas/gambas/-/tree/stable as well as > > https://gitlab.com/gambas/gambas/-/tree/master to offer the choice. > > Or was there another reason to use the tar ball? > > The reason is people who do not want to install git on their system. > Aah i see , okay i will look into there being a choice of git download method and achive method too. > to check, and my script can try if the make installed didn't? > > "make install" use the xdg commands too. So if yours work but not those > inside the "Makefile.am" file, then they should be fixed. I just ran a test on manjaro (archlinux) , I can confirm make install did not create menu item but my script did. just saying. For now I have changed the text to say something like "make install Should have made your menu" if it hasn't we can retry. I may as well leave it in there for now along side the offer to make a desktop icon too. also after running "make uninstall" it left a .component file in /usr/lib/gambas3 and a number of items in /usr/share/gambas3 causing the following running of pacman to re-install the gambas-runtime to fail due to residual files. > do you want the >std_output.log as well as 2>error.log > > Do as you like. We just need the full output of the process when > something fails. > I see , understood, there is no information about that being needed on the wiki. Tto be fair the only output i diverted to /dev/null was the ./configure std-out and only if you type 'v' for verbose at that point. by default all other messages print to terminal as normal. I could make a "Debug" or "report" type mode. where if user if having problems it can run non-interactively outputting all data to a log file. Or a message if a command fails showing the user the failing command and telling them to type into a terminal the usual way the gambas wiki instructs to to get the output you want. I'll see what i can do. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 14 22:14:48 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 14 Oct 2020 21:14:48 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: > 5) You must detect if there is already a Gambas installation by running > "gbx3", finding where it is installed to find the Gambas installation > prefix, and then tell the user before aborting the script (unless you > can detect if it was installed by package or manually to remove it, but > I don't think so). > I worked out the following commands listed all installed gambas3 components only if installed by package manager and listed nothing if installed by make. apt *$(apt list gambas3* 2>/dev/null|grep 'installed'|awk {'print $1'})* pacman *$(pacman -Qsq gambas3* 2>/dev/null)* pacman listed just the package names and apt gave a string like "gambas3-ide/stable,now 3.12.2-1 all [installed,automatic]" so i just split the string left of the / (not that there is need to with apt as regex* can be used) So with apt systems I issue a 'apt-get purge gambas3*' with pacman i had to provide the list of packages, It's been tested and now working on both those packagers I detects the existing installation if present at the start of the script and informs the user it will be removed just before the 'make install' command is run. I did it that way so if the compilation fails the user will still have their existing gambas installed. I'm going to have to download and install alpine to get it working for apk though. https://github.com/BruceSteers/gambas3-compile-and-install/tree/testing Wishing Well Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 15 00:30:53 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 15 Oct 2020 09:00:53 +1030 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: On 14/10/20 10:59 pm, Bruce Steers wrote: > there may be a way, the script already detects if it's using apt or pacman. > i think pacman can list installed packages and dpkg can too so i should be > able to find if a repository version exists. should also be able to > auto-uninstall repo versions first. > all i'll need is an Alpine system to test if apk can tell as well. test the output from "which gbx3: b From adamnt42 at gmail.com Thu Oct 15 00:36:09 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 15 Oct 2020 09:06:09 +1030 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Message-ID: On 15/10/20 6:26 am, Bruce Steers wrote: > I see , understood, there is no information about that being needed on the > wiki. yes there is http://gambas.sourceforge.net/en/main.html# in the Troubleshooting section > Tto be fair the only output i diverted to /dev/null was the ./configure > std-out and only if you type 'v' for verbose at that point. > by default all other messages print to terminal as normal. > > I could make a "Debug" or "report" type mode. where if user if having > problems it can run non-interactively outputting all data to a log file. > > Or a message if a command fails showing the user the failing command and > telling them to type into a terminal the usual way the gambas wiki > instructs to to get the output you want. > I'll see what i can do. > I don't think it needs to be that complex, here I just always output the lot to output.txt then it's there if I need it. b From adamnt42 at gmail.com Thu Oct 15 00:41:37 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 15 Oct 2020 09:11:37 +1030 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: On 15/10/20 6:44 am, Bruce Steers wrote: >> 5) You must detect if there is already a Gambas installation by running >> "gbx3", finding where it is installed to find the Gambas installation >> prefix, and then tell the user before aborting the script (unless you >> can detect if it was installed by package or manually to remove it, but >> I don't think so). >> > > I worked out the following commands listed all installed gambas3 components > only if installed by package manager and listed nothing if installed by > make. > apt > > *$(apt list gambas3* 2>/dev/null|grep 'installed'|awk {'print $1'})* > pacman > > *$(pacman -Qsq gambas3* 2>/dev/null)* > pacman listed just the package names and apt gave a string like > "gambas3-ide/stable,now 3.12.2-1 all [installed,automatic]" so i just split > the string left of the / (not that there is need to with apt as regex* can > be used) > > So with apt systems I issue a 'apt-get purge gambas3*' > with pacman i had to provide the list of packages, It's been tested and now > working on both those packagers > I detects the existing installation if present at the start of the script > and informs the user it will be removed just before the 'make install' > command is run. > I did it that way so if the compilation fails the user will still have > their existing gambas installed. > > I'm going to have to download and install alpine to get it working for apk > though. > > https://github.com/BruceSteers/gambas3-compile-and-install/tree/testing > > Wishing Well > Bruce Just as a matter of interest, why don't you check for the libraries rather than the packages. automake knows nothing of packages, the only time you need a particular distro package is when some library or dev header is missing. The packages that contain the library can and sometimes do chnage at the whim of the distro. b From bsteers4 at gmail.com Thu Oct 15 04:15:46 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 15 Oct 2020 03:15:46 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: Just as a matter of interest, why don't you check for the libraries > rather than the packages. automake knows nothing of packages, the only > time you need a particular distro package is when some library or dev > header is missing. The packages that contain the library can and > sometimes do chnage at the whim of the distro. > Because i'm detecting whether a package manager has installed Gambas already or not before doing the 'make install' to avoid conflicts. I thought that was the concern? Like you say automake cannot tell if the library in /usr/lib/gambas3 was installed via package installer or make. Also 'which' cannot tell what installed gbx3 if it's found. so that's not what i'm after either, i need to know if existing installed gambas was installed via make or distro.. The way i am doing it returns nothing if gambas is installed via make. but returns a list of package names installed by the package manager that need to be removed before make installs if they're installed. Benoit sounded like he was setting me a challenge ;) "(unless you can detect if it was installed by package or manually to remove it, but I don't think so)." Challenge accepted ;) lol BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Oct 15 07:33:03 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 15 Oct 2020 16:03:03 +1030 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: <221400e3-37ad-19d8-c9de-eee4170cd20e@gmail.com> On 15/10/20 12:45 pm, Bruce Steers wrote: > Just as a matter of interest, why don't you check for the libraries >> rather than the packages. automake knows nothing of packages, the only >> time you need a particular distro package is when some library or dev >> header is missing. The packages that contain the library can and >> sometimes do chnage at the whim of the distro. >> > > Because i'm detecting whether a package manager has installed Gambas > already or not before doing the 'make install' to avoid conflicts. > I thought that was the concern? > Like you say automake cannot tell if the library in /usr/lib/gambas3 was > installed via package installer or make. > Also 'which' cannot tell what installed gbx3 if it's found. so that's not > what i'm after either, i need to know if existing installed gambas was > installed via make or distro.. > The way i am doing it returns nothing if gambas is installed via make. but > returns a list of package names installed by the package manager that need > to be removed before make installs if they're installed. > Ahh, yes now I see. > Benoit sounded like he was setting me a challenge ;) > "(unless you can detect if it was installed by package or manually to > remove it, but I don't think so)." > > Challenge accepted ;) lol > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From bsteers4 at gmail.com Thu Oct 15 15:29:07 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 15 Oct 2020 14:29:07 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Message-ID: > I could make a "Debug" or "report" type mode. where if user if having > > problems it can run non-interactively outputting all data to a log file. > > > > Or a message if a command fails showing the user the failing command and > > telling them to type into a terminal the usual way the gambas wiki > > instructs to to get the output you want. > > I'll see what i can do. > > > > I don't think it needs to be that complex, here I just always output the > lot to output.txt then it's there if I need it. > b > I just discovered the 'tee' command and one of it's uses :) Now, regardless of what text shows in the terminal ALL output gets directed to $HOME/gambas-compile-install.log All the "vital" commands are run through an imaginatively named function called VitalCommand() so i added 'tee' to it to send output to a file as well :) Shimples :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Oct 15 16:22:10 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 15 Oct 2020 16:22:10 +0200 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Message-ID: <5007dabb-4823-6724-b19a-a9f055518678@deganius.de> On 15.10.20 15:29, Bruce Steers wrote: > I just discovered the 'tee' command and one of it's uses :) > Now, regardless of what text shows in the terminal ALL output gets > directed to $HOME/gambas-compile-install.log > All the "vital" commands are run through an imaginatively named function > called VitalCommand() so i added 'tee' to it to send output to a file as > well :) > Shimples :) Yes, I wanted to recommend 'tee' to you but forgot it this morning. ;-( I'm, glad that you found it! Another alternative is the usage of 'script' like Debian recommends it for upgrades: https://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.en.html#record-session With that you can even replay what happened ... https://iq.opengenus.org/script-and-scriptreplay-in-linux/ Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bsteers4 at gmail.com Thu Oct 15 16:47:46 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 15 Oct 2020 15:47:46 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Message-ID: > Or i could make the script use > > https://gitlab.com/gambas/gambas/-/tree/stable as well as > > https://gitlab.com/gambas/gambas/-/tree/master to offer the choice. > > Or was there another reason to use the tar ball? > > The reason is people who do not want to install git on their system. > Hey,, I just noticed... You know they have no choice right? git is in the list of dependencies on ALL supported distros in the .gitlab-ci.yml file So they're going to install git regardless of if the script uses it or not. Just saying ;) Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Oct 15 17:37:39 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 15 Oct 2020 17:37:39 +0200 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Message-ID: Le 15/10/2020 ? 16:47, Bruce Steers a ?crit?: > > Or i could make the script use > > > https://gitlab.com/gambas/gambas/-/tree/stable as well as > > https://gitlab.com/gambas/gambas/-/tree/master to offer the choice. > > Or was there another reason to use the tar ball? > > The reason is people who do not want to install git on their system. > > > Hey,, I just noticed... > You know they have no choice right? > git is in the list of dependencies on ALL supported distros in the > .gitlab-ci.yml file > > So they're going to install git regardless of if the script uses it or not. > Just saying ;) > Bruce > It's in .gitlab-ci.yml because it's needed by GitLab. But it's not needed if you download the tar.gz source archives from GitLab. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Thu Oct 15 21:35:13 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 15 Oct 2020 20:35:13 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> <000d18b0-b575-76bb-421d-5249bc1b54e0@gmail.com> Message-ID: > Hey,, I just noticed... > > You know they have no choice right? > > git is in the list of dependencies on ALL supported distros in the > > .gitlab-ci.yml file > > > > So they're going to install git regardless of if the script uses it or > not. > > Just saying ;) > > Bruce > > > > It's in .gitlab-ci.yml because it's needed by GitLab. > > But it's not needed if you download the tar.gz source archives from GitLab. > aah i see, but my point is still valid i think, unless i remove git from the dependency list they will still get it installed. Is there anything else in the dependency lists that gambas does not depend on i should remove? Cheers BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Oct 16 20:19:06 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 16 Oct 2020 19:19:06 +0100 Subject: [Gambas-user] Gambas setup compile and install script. In-Reply-To: <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> References: <1602526496.278457805@f4.my.com> <1ff2f716-884b-6fa1-d74a-92d81d56823d@gmail.com> Message-ID: I have an updated version here for testing... https://github.com/BruceSteers/gambas3-compile-and-install/tree/testing It's addressed ALL these concerns apart from making the menu entry. I've kept the menu making in there telling the user to check if 'make install' did it or not. And I'm keeping the Desktop launcher part in there as make install does not make a desktop icon. anyway just the menu. So as per Benoits requests... 1) I think that it should be able to install Gambas from the "tar.gz" > source archive downloadable from the web site too (it's just the one > generated by GitLab). > Okay this is done now. User has options to use git or curl and also options to get master or stable branch. 2) The name of the script should be all lower case (and good that it > starts with "gambas3-"). > Done. > 3) "sudo make install" already installs the icon, the desktop > launcher... If not, then "make install" should be fixed, instead of > having to do its job inside the script. > I looked around the make stuff but I know nothing about make files. Until the makefile is fixed i'll keep it in there. > 4) The log of all commands must not be put in "/dev/null". We need it to > understand what goes wrong if something goes wrong. Everything should be > redirected to a temporary file, that would be available if there is an > error. > All commands now tee to /home/username/gambas-compile-install.log > 5) You must detect if there is already a Gambas installation by running > "gbx3", finding where it is installed to find the Gambas installation > prefix, and then tell the user before aborting the script (unless you > can detect if it was installed by package or manually to remove it, but > I don't think so). > Now taken care of. Script detects if a distro installed gambas if present and uninstalls it just before 'make install' is called. -------- Also somebody didn't like the fact they were not at their keyboard while it was running and the 'make install' asked for sudo password but timed out and caused the script to fail. So i've added an option to temporarily up the default sudo timeout to 2 hours instead of 15 minutes while the script runs then removes the temporary setting on exit. Anyway good job! > Thank you all :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Oct 18 00:49:32 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 09:19:32 +1030 Subject: [Gambas-user] Overriding Color class Message-ID: I have a project that has it's own Color class. It replaces all the native static properties, e.g. Background with read/write properties, so we can set a particular color scheme from a file. This has worked since 2017 up to Gambas 3.15.1 without a problem but now I've updated to the latest git version suddenly I get Color.Background is incorrectly overridden in class 'Color' Why would this be? I thought local classes had a higher priority in the symbol table than the native ones? There is no inheritance involved it is simply a class that should completely replace the ntive one. tia bruce From g4mba5 at gmail.com Sun Oct 18 00:55:34 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 18 Oct 2020 00:55:34 +0200 Subject: [Gambas-user] Overriding Color class In-Reply-To: References: Message-ID: Le 18/10/2020 ? 00:49, Bruce a ?crit?: > I have a project that has it's own Color class. It replaces all the > native static properties, e.g. Background with read/write properties, so > we can set a particular color scheme from a file. > > This has worked since 2017 up to Gambas 3.15.1 without a problem but now > I've updated to the latest git version suddenly I get > ????Color.Background is incorrectly overridden in class 'Color' > Why would this be? I thought local classes had a higher priority in the > symbol table than the native ones? There is no inheritance involved it > is simply a class that should completely replace the ntive one. > tia > bruce > There is actually no "replacement", only inheritance. You must ensure that the new Color.Background property is declared the same way as the old one. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Sun Oct 18 01:02:38 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 09:32:38 +1030 Subject: [Gambas-user] Overriding Color class In-Reply-To: References: Message-ID: On 18/10/20 9:25 am, Beno?t Minisini wrote: > Le 18/10/2020 ? 00:49, Bruce a ?crit?: >> I have a project that has it's own Color class. It replaces all the >> native static properties, e.g. Background with read/write properties, >> so we can set a particular color scheme from a file. >> >> This has worked since 2017 up to Gambas 3.15.1 without a problem but >> now I've updated to the latest git version suddenly I get >> ?????Color.Background is incorrectly overridden in class 'Color' >> Why would this be? I thought local classes had a higher priority in >> the symbol table than the native ones? There is no inheritance >> involved it is simply a class that should completely replace the ntive >> one. >> tia >> bruce >> > > There is actually no "replacement", only inheritance. You must ensure > that the new Color.Background property is declared the same way as the > old one. > > Regards, > So, this is no longer true: 4.4. Project symbol table Your project has its own private symbol, like any component, and can export any of its classes to the global symbol table by using the EXPORT keyword. The project classes are loaded after all components. So your exported class can override any exported classes declared in any component. ? b From g4mba5 at gmail.com Sun Oct 18 01:07:34 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 18 Oct 2020 01:07:34 +0200 Subject: [Gambas-user] Overriding Color class In-Reply-To: References: Message-ID: <750b0e6b-5b03-51fc-2b5c-1950aba44478@gmail.com> Le 18/10/2020 ? 01:02, Bruce a ?crit?: > So, this is no longer true: > > 4.4. Project symbol table > Your project has its own private symbol, like any component, and can > export any of its classes to the global symbol table by using the EXPORT > keyword. > The project classes are loaded after all components. So your exported > class can override any exported classes declared in any component. > > ? > b > You must take chapter 3.5 into account too. -- Beno?t Minisini From adamnt42 at gmail.com Sun Oct 18 01:21:22 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 09:51:22 +1030 Subject: [Gambas-user] Overriding Color class In-Reply-To: <750b0e6b-5b03-51fc-2b5c-1950aba44478@gmail.com> References: <750b0e6b-5b03-51fc-2b5c-1950aba44478@gmail.com> Message-ID: <6c0d5d9d-e96e-84a4-f3ea-f5ee44451cf5@gmail.com> On 18/10/20 9:37 am, Beno?t Minisini wrote: > Le 18/10/2020 ? 01:02, Bruce a ?crit?: >> So, this is no longer true: >> >> 4.4. Project symbol table >> Your project has its own private symbol, like any component, and can >> export any of its classes to the global symbol table by using the >> EXPORT keyword. >> The project classes are loaded after all components. So your exported >> class can override any exported classes declared in any component. >> >> ? >> b >> > > You must take chapter 3.5 into account too. > A read/write property must be overridden by a read/write property. A read-only property must be overridden by a read-only property. Why? That's the whole point of what I am trying to do, override the readonly properties of your Color class with configurable colors that require the properties to be read/write. I make no explicit references to your Color class, each color property has its' own local state variable that is set when the class is loaded. If I was excplicitly inheriting your Color class then I'd see why the properties accessors must match, but I'm not. Are you saying that if I accidentally create a class with the same name as a class in some component then it implicitly inherits from that class? I thought the namespacing was supposed to prevent that? regards b From adamnt42 at gmail.com Sun Oct 18 01:44:17 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 10:14:17 +1030 Subject: [Gambas-user] Where has the GUI Component chooser gone? Message-ID: (I'm not having a good day :-) ) If I configure the IDE toolbar I can see the GUI chooser there but when I close the configure popup it disappears? And it is no longer in the debug menu either? What gives? b From adamnt42 at gmail.com Sun Oct 18 05:02:00 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 13:32:00 +1030 Subject: [Gambas-user] Shell and exit no longer return control to the calling class - ever Message-ID: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> Says it all really. Public Sub Maini() Shell "ls -l" Print "Hello i'm back" End Never comes back and says hello. After exitting the IDE there is still a process running. :-( b From adamnt42 at gmail.com Sun Oct 18 05:09:51 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 13:39:51 +1030 Subject: [Gambas-user] Fix 'make install' that should now correctly remove all installed files. Message-ID: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> Is that really in the make-install target? I hope that it dowsn't remove /usr/lib(64)/antything that doesn't start with gb. as I don't want to have to reinstall 80+ local components and custom controls everytime I update gambas. ? b From t.lee.davidson at gmail.com Sun Oct 18 06:02:57 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 18 Oct 2020 00:02:57 -0400 Subject: [Gambas-user] Shell and exit no longer return control to the calling class - ever In-Reply-To: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> References: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> Message-ID: <6a021f17-2da8-890c-7730-ad05f550dca5@gmail.com> On 10/17/20 11:02 PM, Bruce wrote: > Says it all really. > > Public Sub Maini() > > ? Shell "ls -l" > ? Print "Hello i'm back" > > End > > Never comes back and says hello. > After exitting the IDE there is still a process running. > > :-( > b It works fine here. "Hello i'm back" is printed prior to the "ls -l" output since there is no Wait specified. With: Public Sub Main() Shell "ls -l" Wait Print "Hello i'm back" End The output is as one would expect, and I find no 'orphan' process. -- Lee From adamnt42 at gmail.com Sun Oct 18 07:25:53 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 15:55:53 +1030 Subject: [Gambas-user] Shell and exit no longer return control to the calling class - ever In-Reply-To: <6a021f17-2da8-890c-7730-ad05f550dca5@gmail.com> References: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> <6a021f17-2da8-890c-7730-ad05f550dca5@gmail.com> Message-ID: <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> On 18/10/20 2:32 pm, T Lee Davidson wrote: > On 10/17/20 11:02 PM, Bruce wrote: >> Says it all really. >> >> Public Sub Maini() >> >> ?? Shell "ls -l" >> ?? Print "Hello i'm back" >> >> End >> >> Never comes back and says hello. >> After exitting the IDE there is still a process running. >> >> :-( >> b > > It works fine here. > > "Hello i'm back" is printed prior to the "ls -l" output since there is > no Wait specified. > > With: > Public Sub Main() > > ? Shell "ls -l" Wait > ? Print "Hello i'm back" > > End > > The output is as one would expect, and I find no 'orphan' process. > > Lee, I forgot to add, this i after the latest commits. What verdion are you using, the commit tag would be helpful. ( I've alos just done a major update to this system so there may be some newer system libraries that are causing this.) ...and.. I have just noticed that the IDE itself is leaving lots of processes running when it exits as well. Regardless of whether the projects that were opened had shells's or execs in them. And I had a lot of gardening scheduled today, sigh.) tia bruce From t.lee.davidson at gmail.com Sun Oct 18 07:28:32 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 18 Oct 2020 01:28:32 -0400 Subject: [Gambas-user] Shell and exit no longer return control to the calling class - ever In-Reply-To: <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> References: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> <6a021f17-2da8-890c-7730-ad05f550dca5@gmail.com> <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> Message-ID: <933ce43d-31d9-43a4-8ab7-d66532530f6d@gmail.com> On 10/18/20 1:25 AM, Bruce wrote: > Lee, > I forgot to add, this i after the latest commits. What verdion are you using,?the?commit?tag?would?be?helpful. > ( I've alos just done a major update to this system so there may be some newer?system?libraries?that?are?causing?this.) > ...and.. I have just noticed that the IDE itself is leaving lots of processes running when it exits as well. Regardless of > whether the projects that were opened had shells's or execs in them.? And I had a lot?of?gardening?scheduled?today,?sigh.) > tia > bruce Ah, I'm using the stable version, 3.15.2. -- Lee From adamnt42 at gmail.com Sun Oct 18 08:24:07 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 16:54:07 +1030 Subject: [Gambas-user] Where has the GUI Component chooser gone? In-Reply-To: References: Message-ID: On 18/10/20 10:14 am, Bruce wrote: > (I'm not having a good day :-)? ) > > If I configure the IDE toolbar I can see the GUI chooser there but when > I close the configure popup it disappears? And it is no longer in the > debug menu either? > > What gives? > > b Again, off the latest commits, at least from the new green telephones b From adamnt42 at gmail.com Sun Oct 18 08:24:58 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Oct 2020 16:54:58 +1030 Subject: [Gambas-user] Fix 'make install' that should now correctly remove all installed files. In-Reply-To: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> References: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> Message-ID: <62cc7f98-2058-6724-0684-09aebcfab8a3@gmail.com> On 18/10/20 1:39 pm, Bruce wrote: > Is that really in the make-install target? > > I hope that it dowsn't remove /usr/lib(64)/antything that doesn't start > with gb. as I don't want to have to reinstall 80+ local components and > custom controls everytime I update gambas. > > ? > b Again, after the new green telephone. b From g4mba5 at gmail.com Sun Oct 18 09:01:55 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 18 Oct 2020 09:01:55 +0200 Subject: [Gambas-user] Fix 'make install' that should now correctly remove all installed files. In-Reply-To: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> References: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> Message-ID: <317336a7-3e4c-ce16-30ba-6ff6ebf29a3e@gmail.com> Le 18/10/2020 ? 05:09, Bruce a ?crit?: > Is that really in the make-install target? > > I hope that it dowsn't remove /usr/lib(64)/antything that doesn't start > with gb. as I don't want to have to reinstall 80+ local components and > custom controls everytime I update gambas. > > ? > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > . It's actually both "make uninstall" and "make install" that were fixed. -- Beno?t Minisini From bsteers4 at gmail.com Sun Oct 18 12:15:30 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 18 Oct 2020 11:15:30 +0100 Subject: [Gambas-user] Fix 'make install' that should now correctly remove all installed files. In-Reply-To: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> References: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> Message-ID: Don't worry Bruce, make install just had the menu item adding entry fixed and make uninstall was leaving a bunch of files in /usr/share/gambas3. So i'd guess you'll be okay unless you run make uninstall. On Sun, 18 Oct 2020 at 04:10, Bruce wrote: > Is that really in the make-install target? > > I hope that it dowsn't remove /usr/lib(64)/antything that doesn't start > with gb. as I don't want to have to reinstall 80+ local components and > custom controls everytime I update gambas. > > ? > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 18 12:34:07 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 18 Oct 2020 11:34:07 +0100 Subject: [Gambas-user] Shell and exit no longer return control to the calling class - ever In-Reply-To: <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> References: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> <6a021f17-2da8-890c-7730-ad05f550dca5@gmail.com> <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> Message-ID: > > I forgot to add, this i after the latest commits. What verdion are you > using, the commit tag would be helpful. > ( I've alos just done a major update to this system so there may be some > newer system libraries that are causing this.) > ...and.. I have just noticed that the IDE itself is leaving lots of > processes running when it exits as well. Regardless of whether the > projects that were opened had shells's or execs in them. And I had a > lot of gardening scheduled today, sigh.) > tia > bruce > Thought i'd better check this out as i have a few progs that use shell and exec. So i loaded up my GrubHack prog (via the IDE) pressed the button that lists my drives (uses Shell command) Closed the app. everything seemed normal. App closed, IDE debug/console view closed by itself. (that does not happen if for example i assign a process pointer and don't kill it before exit) And i just made a test app with the same commands you listed and it all worked okay just as expected. the print , printed and the ls listed and the app closed okay. Might be a problem on your end Bruce. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 18 13:06:19 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 18 Oct 2020 12:06:19 +0100 Subject: [Gambas-user] Shell and exit no longer return control to the calling class - ever In-Reply-To: <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> References: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> <6a021f17-2da8-890c-7730-ad05f550dca5@gmail.com> <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> Message-ID: > > Lee, > I forgot to add, this i after the latest commits. What verdion are you > using, the commit tag would be helpful. > > My appologies i was using yesterdays commit. I just upgraded to todays latest 4dea9a2c Still all seems okay, no problems. printing fine, exiting fine. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 18 13:42:05 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 18 Oct 2020 12:42:05 +0100 Subject: [Gambas-user] Where has the GUI Component chooser gone? In-Reply-To: References: Message-ID: I just tested this on todays latest too. GUI component chooser button shows fine for me after adding toolbar. Also it shows in the menu as normal.. (using component gb.gui) BruceS > If I configure the IDE toolbar I can see the GUI chooser there but when > > I close the configure popup it disappears? And it is no longer in the > > debug menu either? > > > > What gives? > > > > b > > Again, off the latest commits, at least from the new green telephones > b > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sun Oct 18 13:56:49 2020 From: kicking177 at gmail.com (KKing) Date: Sun, 18 Oct 2020 12:56:49 +0100 Subject: [Gambas-user] drawing rectangles on a picture. Message-ID: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> So I want to load a png, then draw some rectangles on it and resave it. Any pointers, after reading and searching I'm just confused by Draw, Paint, DrawingArea, PictureBox etc. Also why does ?? ?PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") work but ? myPicture = New Picture ? myPicture.Load("/media/user01/Test01.png") ? PictureBox1.Picture = myPicture does not ? K. From bsteers4 at gmail.com Sun Oct 18 14:00:32 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 18 Oct 2020 13:00:32 +0100 Subject: [Gambas-user] Where has the GUI Component chooser gone? In-Reply-To: References: Message-ID: On Sun, 18 Oct 2020 at 00:45, Bruce wrote: > (I'm not having a good day :-) ) > Hate to say it m8 but it seems you got all these issues after your "major upgrade" Can you roll-back the upgrade and see if it's the same? The only thing i can't test is your custom Color setting issue but i'm not getting any of the other errors you've mentioned. Although saying that I have an app that has font color changing options on a GridView. Before it was loading the custom font color on load but if i clicked the TabPanel to view another tab and then went back to the gridview tab the colour would reset to black. Now though the colour does not load on app start at all. I can set it in the app and it changes but if i close the app and open it again it's back to black :( (PS. It all works fine on QT just GTK has the issue) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 18 14:06:08 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 18 Oct 2020 13:06:08 +0100 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: I cannot help with the drawing functions as i've never used them but have you tried this.. *PictureBox1.Picture = myPicture.Copy()* Or even more simply... *PictureBox1.Picture.Load("/media/user01/**Test01.png")* On Sun, 18 Oct 2020 at 12:57, KKing wrote: > So I want to load a png, then draw some rectangles on it and resave it. > > Any pointers, after reading and searching I'm just confused by Draw, > Paint, DrawingArea, PictureBox etc. > > Also why does > PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") > work but > myPicture = New Picture > myPicture.Load("/media/user01/Test01.png") > PictureBox1.Picture = myPicture > does not ? > > K. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Oct 18 14:22:48 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 18 Oct 2020 14:22:48 +0200 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: Il giorno dom 18 ott 2020 alle ore 13:57 KKing ha scritto: > So I want to load a png, then draw some rectangles on it and resave it. > > Any pointers, after reading and searching I'm just confused by Draw, > Paint, DrawingArea, PictureBox etc. > > Also why does > PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") > work but > myPicture = New Picture > myPicture.Load("/media/user01/Test01.png") > PictureBox1.Picture = myPicture > does not ? > Public Sub Form_Open() Dim hImg1 As Image Dim hImage As ImageView hImage = New ImageView(Me) hImage.W = 272 hImage.H = 272 hImg1 = Picture["icon:/256/linux"].Image With paint .Begin(hImg1) .DrawRect(20, 20, 50, 50, Color.Blue, 2) .End End With hImage.Image = hImg1 End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Oct 18 14:30:38 2020 From: taboege at gmail.com (Tobias Boege) Date: Sun, 18 Oct 2020 14:30:38 +0200 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: <20201018123038.GA1469045@highrise.localdomain> On Sun, 18 Oct 2020, KKing wrote: > So I want to load a png, then draw some rectangles on it and resave it. > > Any pointers, after reading and searching I'm just confused by Draw, Paint, > DrawingArea, PictureBox etc. > Draw is the old and meanwhile deprecated interface. Between Draw and Paint, you should always go for Paint. You do not need a DrawingArea or a Picture- Box to draw on a picture and save it to disk. Those two are for displaying pictures on your form. You .Load the picture, paint on it and .Save it. If you have never used Paint before, it can take some time to get used to. First, you have to establish a painting context on your picture by wrapping Paint.Begin and Paint.End calls around your painting. Then, the painting model consists of adding "paths" and either stroking or filling those paths. To draw a rectangle on a picture hPic, you do Paint.Begin(hPic) ' Define an invisible path for drawing a rectangle at ' X=10, Y=20 with Width=50, Height=100. Paint.Rectangle(10, 20, 50, 100) ' Stroke the path in red and do not delete the path afterwards, ' we'll use it again. Paint.Brush = Paint.Color(&H00ff0000&) ' ARGB color (fully opaque red) Paint.Stroke(True) ' Fill the rectangle in semitransparent blue (reuses the previous path). Paint.Brush = Paint.Color(&H800000ff&) Paint.Fill() ' path is automatically deleted Paint.End() > Also why does > ?? ?PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") > work but > ? myPicture = New Picture > ? myPicture.Load("/media/user01/Test01.png") > ? PictureBox1.Picture = myPicture > does not ? > Picture.Load is a static method of the Picture class. It loads a file and returns a new picture. You seem to be thinking that myPicture.Load would fill myPicture, but it doesn't. You load the new picture, throw it away and assign Null to the PictureBox with the second snippet. Best, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Oct 18 14:52:03 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 18 Oct 2020 14:52:03 +0200 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: Il giorno dom 18 ott 2020 alle ore 14:22 Gianluigi ha scritto: > > > Il giorno dom 18 ott 2020 alle ore 13:57 KKing ha > scritto: > >> So I want to load a png, then draw some rectangles on it and resave it. >> >> Any pointers, after reading and searching I'm just confused by Draw, >> Paint, DrawingArea, PictureBox etc. >> >> Also why does >> PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") >> work but >> myPicture = New Picture >> myPicture.Load("/media/user01/Test01.png") >> PictureBox1.Picture = myPicture >> does not ? >> > > Public Sub Form_Open() > > Dim hImg1 As Image > Dim hImage As ImageView > > hImage = New ImageView(Me) > hImage.W = 272 > hImage.H = 272 > hImg1 = Picture["icon:/256/linux"].Image > With paint > .Begin(hImg1) > .DrawRect(20, 20, 50, 50, Color.Blue, 2) > .End > End With > hImage.Image = hImg1 > > End > > Regards > Gianluigi > I forgot, to save: hImg1.Save(User.Home &/ "MyTestImage.png", 0) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Oct 18 15:03:08 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 18 Oct 2020 15:03:08 +0200 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: <20201018123038.GA1469045@highrise.localdomain> References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> <20201018123038.GA1469045@highrise.localdomain> Message-ID: Il giorno dom 18 ott 2020 alle ore 14:31 Tobias Boege ha scritto: > On Sun, 18 Oct 2020, KKing wrote: > > So I want to load a png, then draw some rectangles on it and resave it. > > > > Any pointers, after reading and searching I'm just confused by Draw, > Paint, > > DrawingArea, PictureBox etc. > > > > Draw is the old and meanwhile deprecated interface. Between Draw and Paint, > you should always go for Paint. You do not need a DrawingArea or a Picture- > Box to draw on a picture and save it to disk. Those two are for displaying > pictures on your form. You .Load the picture, paint on it and .Save it. > > If you have never used Paint before, it can take some time to get used to. > First, you have to establish a painting context on your picture by wrapping > Paint.Begin and Paint.End calls around your painting. Then, the painting > model consists of adding "paths" and either stroking or filling those > paths. > > To draw a rectangle on a picture hPic, you do > > Paint.Begin(hPic) > ' Define an invisible path for drawing a rectangle at > ' X=10, Y=20 with Width=50, Height=100. > Paint.Rectangle(10, 20, 50, 100) > > ' Stroke the path in red and do not delete the path afterwards, > ' we'll use it again. > Paint.Brush = Paint.Color(&H00ff0000&) ' ARGB color (fully opaque red) > Paint.Stroke(True) > > ' Fill the rectangle in semitransparent blue (reuses the previous > path). > Paint.Brush = Paint.Color(&H800000ff&) > Paint.Fill() ' path is automatically deleted > Paint.End() > > > Also why does > > PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") > > work but > > myPicture = New Picture > > myPicture.Load("/media/user01/Test01.png") > > PictureBox1.Picture = myPicture > > does not ? > > > > Picture.Load is a static method of the Picture class. It loads a file and > returns a new picture. You seem to be thinking that myPicture.Load would > fill myPicture, but it doesn't. You load the new picture, throw it away > and assign Null to the PictureBox with the second snippet. > > Best, > Tobias > I hadn't received Tobias' mail yet, he is a true teacher. I would follow his directions :-) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Sun Oct 18 17:16:23 2020 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 18 Oct 2020 16:16:23 +0100 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: Hi K, Have a look on the Farm for 'ScreenShot' or you can download it from here . This program allows you to draw all sorts on an image and save it. You can also re-edit it. Here is a video of what it can do and it's all written in Gambas. Charlie On 18/10/2020 12:56, KKing wrote: > So I want to load a png, then draw some rectangles on it and resave it. > > Any pointers, after reading and searching I'm just confused by Draw, > Paint, DrawingArea, PictureBox etc. > > Also why does > ?? ?PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") > work but > ? myPicture = New Picture > ? myPicture.Load("/media/user01/Test01.png") > ? PictureBox1.Picture = myPicture > does not ? > > K. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Oct 18 18:40:51 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 18 Oct 2020 12:40:51 -0400 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: <195b0579-46c7-e9f9-282d-535709961675@gmail.com> On 10/18/20 11:16 AM, Charlie Ogier wrote: > > Here is a video of what it can do and it's all written in Gambas. That is amazing. -- Lee From adamnt42 at gmail.com Sun Oct 18 21:53:58 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 19 Oct 2020 06:23:58 +1030 Subject: [Gambas-user] Shell and exit no longer return control to the calling class - ever In-Reply-To: References: <7aedcdf8-db5c-ffcd-c86d-148906e9ab92@gmail.com> <6a021f17-2da8-890c-7730-ad05f550dca5@gmail.com> <8406f677-b268-8b7d-aaf3-de5eca7e4cfb@gmail.com> Message-ID: On 18/10/20 9:36 pm, Bruce Steers wrote: >> > >> Lee, >> I forgot to add, this i after the latest commits. What verdion are you >> using, the commit tag would be helpful. >> >> > My appologies i was using yesterdays commit. > I just upgraded to todays latest 4dea9a2c > > Still all seems okay, no problems. > printing fine, exiting fine. > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Well I got this one fixed. It was a "bad" library in the distro upgrade. So much for binary updates. Sorry about the noise on this one. b From adamnt42 at gmail.com Mon Oct 19 00:12:33 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 19 Oct 2020 08:42:33 +1030 Subject: [Gambas-user] Where has the GUI Component chooser gone? In-Reply-To: References: Message-ID: <56af4102-f7d4-3efa-5cb4-3675151e654e@gmail.com> On 18/10/20 10:30 pm, Bruce Steers wrote: > On Sun, 18 Oct 2020 at 00:45, Bruce wrote: > >> (I'm not having a good day :-) ) >> > > Hate to say it m8 but it seems you got all these issues after your "major > upgrade" Yep, I think South Australia was underneath a massive anti-matter black hole yesterday. It looks like what happened was that I did the system update just as the distro mirrors were being updated and thus got a mixture of this and that packages. PCLOS is a rolling release distro and this can happen. Its just never happened to me before in 12+ years of using it. Today after donig another system update most of the problems have gone away. Including the gui switcher which just magically reappeared in both the toolbar and the menu. No idea why, unless there is something deep inside qt that detects my PC and throws in random hairiness just to annoy me. b From adamnt42 at gmail.com Mon Oct 19 01:17:55 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 19 Oct 2020 09:47:55 +1030 Subject: [Gambas-user] Fix 'make install' that should now correctly remove all installed files. In-Reply-To: References: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> Message-ID: On 18/10/20 8:45 pm, Bruce Steers wrote: > Don't worry Bruce, make install just had the menu item adding entry fixed Good oh. Maybe it will work here now. > and make uninstall was leaving a bunch of files in /usr/share/gambas3. > So i'd guess you'll be okay unless you run make uninstall. and that's exactly what I am worried about. In usr/share/gambas/control we have 20+ custom control icons in directories all called ph.something In usr/share/gambas/info we have over 60 ph.*.info and ph.*.list file pairs that are all our local components In usr/share/gambas/template we have 8 project templates that we use as out boilerplate project templates (there is no implicit naming scheme that identifies them as local i.e. not gambas) Maybe once or twice a year I need to do a make uninstall on the gambas suite because of some change in the native system that wont install properly if there are existing stuff. That's fine in itself as long as make uninstall only rm's the native gambas stuff. So can I get a simpe answer please. Do these changes only rm the native gambas stuff. i.e. in terms of /usr/share/gambas does it only remove controls that start with gb. in terms of info files ditto and in terms of templates does it only remove the 10 native templates? When I have to do an uninstall I guarantee that I'll have forgotten this and if it clobbers all our local stuff I will be very depressed. It seems to me that there is an emerging mind set that gambas is only deployed as a single PC/single developer IDE and system. Here that is very much not the case. anyway cheers for now b From g4mba5 at gmail.com Mon Oct 19 02:18:55 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Oct 2020 02:18:55 +0200 Subject: [Gambas-user] Fix 'make install' that should now correctly remove all installed files. In-Reply-To: References: <3c47b195-122b-8043-80ee-8de57123ce08@gmail.com> Message-ID: <84827d3e-2a5c-3262-999c-e49a7a0631a3@gmail.com> Le 19/10/2020 ? 01:17, Bruce a ?crit?: > On 18/10/20 8:45 pm, Bruce Steers wrote: >> Don't worry Bruce, make install just had the menu item adding entry fixed > > Good oh. Maybe it will work here now. > >> and make uninstall was leaving a bunch of files in /usr/share/gambas3. >> So i'd guess you'll be okay unless you run make uninstall. > > and that's exactly what I am worried about. > > In usr/share/gambas/control we have 20+ custom control icons in > directories all called ph.something > In usr/share/gambas/info we have over 60 ph.*.info and ph.*.list file > pairs that are all our local components > In usr/share/gambas/template we have 8 project templates that we use as > out boilerplate project templates (there is no implicit naming scheme > that identifies them as local i.e. not gambas) > > Maybe once or twice a year I need to do a make uninstall on the gambas > suite because of some change in the native system that wont install > properly if there are existing stuff. That's fine in itself as long as > make uninstall only rm's the native gambas stuff. > > So can I get a simpe answer please. Do these changes only rm the native > gambas stuff. i.e. in terms of /usr/share/gambas does it only remove > controls that start with gb. in terms of info files ditto and in terms > of templates does it only remove the 10 native templates? > > When I have to do an uninstall I guarantee that I'll have forgotten this > and if it clobbers all our local stuff I will be very depressed. > > It seems to me that there is an emerging mind set that gambas is only > deployed as a single PC/single developer IDE and system. Here that is > very much not the case. > > anyway cheers for now > b > Now that 'make uninstall' is fixed, it should remove everything that was installed by 'make install', and only that. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Mon Oct 19 03:24:50 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 18 Oct 2020 21:24:50 -0400 Subject: [Gambas-user] xorg vs wayland and future of GUI stack in gambas! Message-ID: is not a secret that gambas GUI relies so much in Xorg stack.. so : *my question is... between wayland and xorg alpine linux do you opt for what everyone uses or for one in particular? *(i already made this question in other mail list also) Let's keep in mind that although wayland has developed in current times with many resources and large communities: in more than 10 years it has not been completely stable and leaves all the work to the toolkit libraries On the other hand, xorg, although it has design details, today it is incorrectly called "failure issues", since we do not take into account that its main objective was for a time when this protocol was used on local networks and not on the Internet, and and, in that era one service was one powered computer. today any modern computer has enough power for all of this. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Mon Oct 19 10:14:58 2020 From: kicking177 at gmail.com (KKing) Date: Mon, 19 Oct 2020 09:14:58 +0100 Subject: [Gambas-user] drawing rectangles on a picture. Message-ID: <7d27c6d2-5cc6-84da-d6ae-5746157a2577@gmail.com> thank you all, very useful, helped me progress From bagonergi at gmail.com Mon Oct 19 17:01:59 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 19 Oct 2020 17:01:59 +0200 Subject: [Gambas-user] Connection via ODBC Message-ID: An Italian friend of ours asks if anyone knows how to connect Gambas to a DB2 database through the ODBC driver, thanks. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Oct 19 17:23:48 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 19 Oct 2020 17:23:48 +0200 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: Hum Charlie... why not having added a way to rotate objects directly on objects ? :-D Good work Le dim. 18 oct. 2020 ? 17:40, Charlie Ogier a ?crit : > > Hi K, > > Have a look on the Farm for 'ScreenShot' or you can download it from here. This program allows you to draw all sorts on an image and save it. You can also re-edit it. > > Here is a video of what it can do and it's all written in Gambas. > > Charlie > > > On 18/10/2020 12:56, KKing wrote: > > So I want to load a png, then draw some rectangles on it and resave it. > > Any pointers, after reading and searching I'm just confused by Draw, Paint, DrawingArea, PictureBox etc. > > Also why does > PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") > work but > myPicture = New Picture > myPicture.Load("/media/user01/Test01.png") > PictureBox1.Picture = myPicture > does not ? > > K. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From d4t4full at gmail.com Mon Oct 19 19:18:46 2020 From: d4t4full at gmail.com (First Last) Date: Mon, 19 Oct 2020 14:18:46 -0300 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: Gianluigi, In *this link* you'll find info about setting up the whole DB2 under ODBC environment for Linux/Unix, courtesy of IBM. Note that since Aug 2015, though, there are two ways to set up pretty much *any* database using ODBC in Gambas. The first one is setting up the whole unixODBC Driver Manager environment as above described and normally used, but it takes time, is kind of error-prone and tiresome if you have to deploy the same app to a bunch of end users (same setup over and over...). The second approach I tried to assimilate as smoothly as possible to whatever already existed, and is similar to a On Mon, Oct 19, 2020 at 12:03 PM Gianluigi wrote: > An Italian friend of ours asks if anyone knows how to connect Gambas to a > DB2 database through the ODBC driver, thanks. > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Mon Oct 19 19:34:02 2020 From: d4t4full at gmail.com (First Last) Date: Mon, 19 Oct 2020 14:34:02 -0300 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: (Sorry for the "mailus interruptus", I'll start over.) In *this link* you'll find info about setting up the whole DB2 under ODBC environment for Linux/Unix, courtesy of IBM. Note that since Aug 2015, though, there are two ways to set up pretty much *any* database using ODBC in Gambas. The first one is setting up the whole unixODBC Driver Manager environment as above described and normally used, but it takes time, is kind of error-prone and tiresome if you have to deploy the same app to a bunch of end users (same setup over and over...). The second approach I tried to assimilate as smoothly as possible to whatever already existed, and is similar to what exists on Windows platforms, and it is the use of "Connection Strings". Basically, you tell ODBC all the settings that normally go in the several ODBC config files in a single string, and the ODBC Driver Manager will take care of the connection. This is an example Connection String for connecting to a MSSQL Server 2005 using freeTDS from ODBC *"Driver=FreeTDS;TDS_Version=7.2;Server={serverIP};Port=1433;Database={databaseName};UId={userName};Password={password}"* In Gambas, you'd connect this way: *' Gambas class file* *Private $conn As Connection* *'[...]* *Private Sub Connect(connString As String)* * $conn = New Connection* * $conn.Type = "odbc" 'Yup, lowercase.* * $conn.Host = connString* * $conn.Open()* *End* You just call Connect() with the adequate connection string. Now, parameters for the vast amount of different drivers depend on the actual driver used by ODBC (unfortunately, I don't have access to anything besides MSSQL), as an example, the *TDS_Version* parameter in the example above sets some defaults in FreeTDS so it knows "beforehand" to what kind of server it will connect. Beware: Some parameters may, others WILL, affect connectivity and may also impact overall speed. HTH, zxMarce. On Mon, Oct 19, 2020 at 2:18 PM First Last wrote: > Gianluigi, > > In *this link* > > you'll find info about setting up the whole DB2 under ODBC environment for > Linux/Unix, courtesy of IBM. > Note that since Aug 2015, though, there are two ways to set up pretty much > *any* database using ODBC in Gambas. > The first one is setting up the whole unixODBC Driver Manager environment > as above described and normally used, but it takes time, is kind of > error-prone and tiresome if you have to deploy the same app to a bunch of > end users (same setup over and over...). > > The second approach I tried to assimilate as smoothly as possible to > whatever already existed, and is similar to a > > > > On Mon, Oct 19, 2020 at 12:03 PM Gianluigi wrote: > >> An Italian friend of ours asks if anyone knows how to connect Gambas to a >> DB2 database through the ODBC driver, thanks. >> >> Regards >> Gianluigi >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Oct 19 19:44:03 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 19 Oct 2020 19:44:03 +0200 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: Il giorno lun 19 ott 2020 alle ore 19:35 First Last ha scritto: > (Sorry for the "mailus interruptus", I'll start over.) > > In *this link* > > you'll find info about setting up the whole DB2 under ODBC environment for > Linux/Unix, courtesy of IBM. > Note that since Aug 2015, though, there are two ways to set up pretty much > *any* database using ODBC in Gambas. > The first one is setting up the whole unixODBC Driver Manager environment > as above described and normally used, but it takes time, is kind of > error-prone and tiresome if you have to deploy the same app to a bunch of > end users (same setup over and over...). > > The second approach I tried to assimilate as smoothly as possible to > whatever already existed, and is similar to what exists on Windows > platforms, and it is the use of "Connection Strings". > Basically, you tell ODBC all the settings that normally go in the several > ODBC config files in a single string, and the ODBC Driver Manager will take > care of the connection. > > This is an example Connection String for connecting to a MSSQL Server 2005 > using freeTDS from ODBC > > > *"Driver=FreeTDS;TDS_Version=7.2;Server={serverIP};Port=1433;Database={databaseName};UId={userName};Password={password}"* > > In Gambas, you'd connect this way: > > *' Gambas class file* > *Private $conn As Connection* > *'[...]* > > *Private Sub Connect(connString As String)* > > * $conn = New Connection* > * $conn.Type = "odbc" 'Yup, lowercase.* > * $conn.Host = connString* > > * $conn.Open()* > > > *End* > > You just call Connect() with the adequate connection string. > > Now, parameters for the vast amount of different drivers depend on the > actual driver used by ODBC (unfortunately, I don't have access to anything > besides MSSQL), as an example, the *TDS_Version* parameter in the example > above sets some defaults in FreeTDS so it knows "beforehand" to what kind > of server it will connect. > Beware: Some parameters may, others WILL, affect connectivity and may also > impact overall speed. > > HTH, > zxMarce. > Hi, thank you very much, I pass the information to our friend immediately... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Mon Oct 19 20:09:07 2020 From: d4t4full at gmail.com (First Last) Date: Mon, 19 Oct 2020 15:09:07 -0300 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: Gianluigi et al, With the usual *I need to connect to database XXX using ODBC* claim, I think a couple of clarifications are needed. 1- Important: The Gambas ODBC interface targets unixODBC, not iODBC (actually I did not test against iODBC myself; it may or may not work). 2- ODBC is not a database driver per-s?; instead, it is a *Driver Manager*. You do not connect to a *FooBar* database with ODBC, you connect to a *FooBar* database with a *FooBar ODBC Driver*, managed by ODBC. That is why all connection strings have at the very least a *Driver={FooBar}* parameter; it tells ODBC which actual low-level, ODBC-compliant driver to use. In turn, the Gambas application uses the standardized database-interface offered by ODBC to send/receive queries/data to/from the actual database. ODBC is, then, some kind of "middle man" standing between the actual low-level connectivity driver and your application, "filing the burrs" between them. The advantage is simple yet powerful: Your application can connect to a DB2, MySQL, MSSQL or any other database that provides an ODBC-compliant driver, and you do (almost-)nothing at the application level to issue queries and get results back. You want to change DB2 for MySQL? Change the connstring, and you're mostly done... Well, yes, subtle differences between vendor database features may call for some kind of code adjusting, but it is usually minimal... or that's at least the goal. Regards, zxMarce. On Mon, Oct 19, 2020 at 2:45 PM Gianluigi wrote: > > > Il giorno lun 19 ott 2020 alle ore 19:35 First Last > ha scritto: > >> (Sorry for the "mailus interruptus", I'll start over.) >> >> In *this link* >> >> you'll find info about setting up the whole DB2 under ODBC environment for >> Linux/Unix, courtesy of IBM. >> Note that since Aug 2015, though, there are two ways to set up pretty >> much *any* database using ODBC in Gambas. >> The first one is setting up the whole unixODBC Driver Manager environment >> as above described and normally used, but it takes time, is kind of >> error-prone and tiresome if you have to deploy the same app to a bunch of >> end users (same setup over and over...). >> >> The second approach I tried to assimilate as smoothly as possible to >> whatever already existed, and is similar to what exists on Windows >> platforms, and it is the use of "Connection Strings". >> Basically, you tell ODBC all the settings that normally go in the several >> ODBC config files in a single string, and the ODBC Driver Manager will take >> care of the connection. >> >> This is an example Connection String for connecting to a MSSQL Server >> 2005 using freeTDS from ODBC >> >> >> *"Driver=FreeTDS;TDS_Version=7.2;Server={serverIP};Port=1433;Database={databaseName};UId={userName};Password={password}"* >> >> In Gambas, you'd connect this way: >> >> *' Gambas class file* >> *Private $conn As Connection* >> *'[...]* >> >> *Private Sub Connect(connString As String)* >> >> * $conn = New Connection* >> * $conn.Type = "odbc" 'Yup, lowercase.* >> * $conn.Host = connString* >> >> * $conn.Open()* >> >> >> *End* >> >> You just call Connect() with the adequate connection string. >> >> Now, parameters for the vast amount of different drivers depend on the >> actual driver used by ODBC (unfortunately, I don't have access to anything >> besides MSSQL), as an example, the *TDS_Version* parameter in the >> example above sets some defaults in FreeTDS so it knows "beforehand" to >> what kind of server it will connect. >> Beware: Some parameters may, others WILL, affect connectivity and may >> also impact overall speed. >> >> HTH, >> zxMarce. >> > > Hi, > > thank you very much, I pass the information to our friend immediately... > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Oct 19 22:55:59 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 19 Oct 2020 22:55:59 +0200 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: Il giorno lun 19 ott 2020 alle ore 20:10 First Last ha scritto: > Gianluigi et al, > > With the usual *I need to connect to database XXX using ODBC* claim, I > think a couple of clarifications are needed. > > 1- Important: The Gambas ODBC interface targets unixODBC, not iODBC > (actually I did not test against iODBC myself; it may or may not work). > > 2- ODBC is not a database driver per-s?; instead, it is a *Driver Manager* > . > > You do not connect to a *FooBar* database with ODBC, you connect to a > *FooBar* database with a *FooBar ODBC Driver*, managed by ODBC. > That is why all connection strings have at the very least a > *Driver={FooBar}* parameter; it tells ODBC which actual low-level, > ODBC-compliant driver to use. > In turn, the Gambas application uses the standardized database-interface > offered by ODBC to send/receive queries/data to/from the actual database. > > ODBC is, then, some kind of "middle man" standing between the actual > low-level connectivity driver and your application, "filing the burrs" > between them. > > The advantage is simple yet powerful: Your application can connect to a > DB2, MySQL, MSSQL or any other database that provides an ODBC-compliant > driver, and you do (almost-)nothing at the application level to issue > queries and get results back. You want to change DB2 for MySQL? Change the > connstring, and you're mostly done... Well, yes, subtle differences between > vendor database features may call for some kind of code adjusting, but it > is usually minimal... or that's at least the goal. > > Regards, > zxMarce. > Dear zxMarce, I renew my thanks for your willingness, all very useful informations... Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Oct 19 23:47:15 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 19 Oct 2020 17:47:15 -0400 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: hi guys.. ODBC components seems still have problems and seems is not concerned here.. i worked so much under odbc not with "mysql"school one! i work with DB2, Firebase, Sybase.. under gambas.. and found many problems.. already reported.. in my contribution i made the property documentation: http://gambaswiki.org/wiki/doc/odbc to code you must use http://gambaswiki.org/wiki/howto/odbcdatabase many queries does not work property and does not returns the right resultset and you must find work around.. of course not all are culprit of gambas.. ODBC unix layer are pretty basic so but other things are incomplete or changed since gambas 3.9 .. in gambas 3.4 and 3.7 ODBC layer works perfectly! El lun., 19 de oct. de 2020 a la(s) 16:57, Gianluigi (bagonergi at gmail.com) escribi?: > > > Il giorno lun 19 ott 2020 alle ore 20:10 First Last > ha scritto: > >> Gianluigi et al, >> >> With the usual *I need to connect to database XXX using ODBC* claim, I >> think a couple of clarifications are needed. >> >> 1- Important: The Gambas ODBC interface targets unixODBC, not iODBC >> (actually I did not test against iODBC myself; it may or may not work). >> >> 2- ODBC is not a database driver per-s?; instead, it is a *Driver >> Manager*. >> >> You do not connect to a *FooBar* database with ODBC, you connect to a >> *FooBar* database with a *FooBar ODBC Driver*, managed by ODBC. >> That is why all connection strings have at the very least a >> *Driver={FooBar}* parameter; it tells ODBC which actual low-level, >> ODBC-compliant driver to use. >> In turn, the Gambas application uses the standardized database-interface >> offered by ODBC to send/receive queries/data to/from the actual database. >> >> ODBC is, then, some kind of "middle man" standing between the actual >> low-level connectivity driver and your application, "filing the burrs" >> between them. >> >> The advantage is simple yet powerful: Your application can connect to a >> DB2, MySQL, MSSQL or any other database that provides an ODBC-compliant >> driver, and you do (almost-)nothing at the application level to issue >> queries and get results back. You want to change DB2 for MySQL? Change the >> connstring, and you're mostly done... Well, yes, subtle differences between >> vendor database features may call for some kind of code adjusting, but it >> is usually minimal... or that's at least the goal. >> >> Regards, >> zxMarce. >> > > Dear zxMarce, > I renew my thanks for your willingness, all very useful informations... > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Oct 20 02:10:55 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 19 Oct 2020 17:10:55 -0700 (PDT) Subject: [Gambas-user] Lost password and bug report Message-ID: <1593436982.2291.1603152655375.JavaMail.zimbra@westwoodsvcs.com> I have lost my password for gambas bug reports website and software farm for user ercoupeflyer or it no longer works, not sure which How do I reset it? The bug report was that the packager no longer allows to choose or package directories in .hidden sample project attached latest build 3.15.90 [System] Gambas=3.15.90 OperatingSystem=Linux Kernel=5.4.0-51-generic Architecture=x86_64 Distribution=Linux Mint 20 Ulyana Desktop=MATE Theme=qt5ctproxy Language=en_US.UTF-8 Memory=14013M [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] CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=mate GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE_PID=135106 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 LIBVIRT_DEFAULT_URI=qemu:///system 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= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/3813,unix/:/tmp/.ICE-unix/3813 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=4563 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime 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 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 Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testpackaging-0.0.1.tar.gz Type: application/x-compressed-tar Size: 11575 bytes Desc: not available URL: From bagonergi at gmail.com Tue Oct 20 07:35:17 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 20 Oct 2020 07:35:17 +0200 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: Il giorno lun 19 ott 2020 alle ore 23:48 PICCORO McKAY Lenz < mckaygerhard at gmail.com> ha scritto: > hi guys.. ODBC components seems still have problems and seems is not > concerned here.. > > i worked so much under odbc not with "mysql"school one! i work with DB2, > Firebase, Sybase.. under gambas.. and found many problems.. already > reported.. > > in my contribution i made the property documentation: > http://gambaswiki.org/wiki/doc/odbc > to code you must use http://gambaswiki.org/wiki/howto/odbcdatabase > > many queries does not work property and does not returns the right > resultset and you must find work around.. of course not all are culprit of > gambas.. ODBC unix layer are pretty basic so but other things are > incomplete or changed since gambas 3.9 .. in gambas 3.4 and 3.7 ODBC layer > works perfectly! > I thank Piccoro for his contribution. I had already reported the wiki he wrote. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Oct 20 12:08:44 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 20 Oct 2020 12:08:44 +0200 Subject: [Gambas-user] Two quick requests In-Reply-To: <55eaf238-006f-d7d2-2eee-af26fed32229@gmail.com> References: <55eaf238-006f-d7d2-2eee-af26fed32229@gmail.com> Message-ID: For your second request : If the OPTIONAL keyword is specified, all parameters after the keywords are optional. http://gambaswiki.org/wiki/lang/methoddecl so Public Sub MyFunction(Needed as Type, Needed2 as Type, Optional Opt as Type, Opt2 as Type = Value, etc...) You just need one occurrence of the optional KeyWord in the declaration line From mckaygerhard at gmail.com Tue Oct 20 15:41:32 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 20 Oct 2020 09:41:32 -0400 Subject: [Gambas-user] Connection via ODBC In-Reply-To: References: Message-ID: El mar., 20 de oct. de 2020 a la(s) 01:36, Gianluigi (bagonergi at gmail.com) escribi?: > I thank Piccoro for his contribution. > I had already reported the wiki he wrote. > I was talking about problems.. not wiki.. that are the problems that ODBC currently shows: http://gambaswiki.org/bugtracker/main?tab=1&update=.menu&scroll=0&focus=%23filter-bug you must be registered to wacht the issues! > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Tue Oct 20 18:08:11 2020 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 20 Oct 2020 17:08:11 +0100 Subject: [Gambas-user] drawing rectangles on a picture. In-Reply-To: References: <6682f67e-148a-ef0d-7ab0-ec1407218722@gmail.com> Message-ID: <5257b969-4e40-c52f-ad55-00311e205213@cogier.com> Hi Fabien and thanks for the kind words. Do you mean you think that the whole drawing item should rotate? On 19/10/2020 16:23, Fabien Bodard wrote: > Hum Charlie... why not having added a way to rotate objects directly > on objects ? :-D > > Good work > > > Le dim. 18 oct. 2020 ? 17:40, Charlie Ogier a ?crit : >> Hi K, >> >> Have a look on the Farm for 'ScreenShot' or you can download it from here. This program allows you to draw all sorts on an image and save it. You can also re-edit it. >> >> Here is a video of what it can do and it's all written in Gambas. >> >> Charlie >> >> >> On 18/10/2020 12:56, KKing wrote: >> >> So I want to load a png, then draw some rectangles on it and resave it. >> >> Any pointers, after reading and searching I'm just confused by Draw, Paint, DrawingArea, PictureBox etc. >> >> Also why does >> PictureBox1.Picture = Picture.Load("/media/user01/Test01.png") >> work but >> myPicture = New Picture >> myPicture.Load("/media/user01/Test01.png") >> PictureBox1.Picture = myPicture >> does not ? >> >> K. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > From g4mba5 at gmail.com Wed Oct 21 01:07:17 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Oct 2020 01:07:17 +0200 Subject: [Gambas-user] New web browser component and GTK+3 support Message-ID: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> Hi, With the last commit in master, you can now run the development environment with GTK+3. You will get a lot of GTK+ layout warnings [1], no support of the Gambas bitmap font [2], some unexpected crashes, and many other problems for sure! The new Web browser is not finished (it uses WebKit on both QT and GTK+), and will not support DOM access methods like the old one, because that's not supported by Qt and GTK+ Webkit interface. If you want to test it, please report the problems, not necessarily on the bugtracker as this is development in progress. Enjoy. [1] I don't know how to get rid of them at the moment. [2] Removed by the GTK+ developers because. -- Beno?t Minisini From g4mba5 at gmail.com Wed Oct 21 01:10:50 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Oct 2020 01:10:50 +0200 Subject: [Gambas-user] New web browser component and GTK+3 support In-Reply-To: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> References: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> Message-ID: <7f4694b8-9da6-6bd7-55c8-f157138f6caf@gmail.com> An additional note: the IDE now uses the 'gb.gui' component, so you will automatically get the 'gb.gtk3' version if you run it on something else than KDE. As it's far from sure at the moment that 'gb.gtk3' will be stable enough, 'gb.gui.qt' may be used again in the next stable versions. Le 21/10/2020 ? 01:07, Beno?t Minisini a ?crit?: > Hi, > > With the last commit in master, you can now run the development > environment with GTK+3. > > You will get a lot of GTK+ layout warnings [1], no support of the Gambas > bitmap font [2], some unexpected crashes, and many other problems for sure! > > The new Web browser is not finished (it uses WebKit on both QT and > GTK+), and will not support DOM access methods like the old one, because > that's not supported by Qt and GTK+ Webkit interface. > > If you want to test it, please report the problems, not necessarily on > the bugtracker as this is development in progress. > > Enjoy. > > [1] I don't know how to get rid of them at the moment. > [2] Removed by the GTK+ developers because. > -- Beno?t Minisini From mbelmonte at belmotek.net Wed Oct 21 01:12:08 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 21 Oct 2020 01:12:08 +0200 Subject: [Gambas-user] New web browser component and GTK+3 support In-Reply-To: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> References: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> Message-ID: <66cc5bc6-6155-3814-9052-bcb16daba66b@belmotek.net> Tanks !! Mart?n Belmonte. On 21/10/20 1:07, Beno?t Minisini wrote: > Hi, > > With the last commit in master, you can now run the development > environment with GTK+3. > > You will get a lot of GTK+ layout warnings [1], no support of the > Gambas bitmap font [2], some unexpected crashes, and many other > problems for sure! > > The new Web browser is not finished (it uses WebKit on both QT and > GTK+), and will not support DOM access methods like the old one, > because that's not supported by Qt and GTK+ Webkit interface. > > If you want to test it, please report the problems, not necessarily on > the bugtracker as this is development in progress. > > Enjoy. > > [1] I don't know how to get rid of them at the moment. > [2] Removed by the GTK+ developers because. > From mbelmonte at belmotek.net Wed Oct 21 02:21:03 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 21 Oct 2020 02:21:03 +0200 Subject: [Gambas-user] GauchoCAD + LibreDWG Message-ID: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> Hi, I am pleased to announce that GauchoCAD[1], which as you know is a CAD made with Gambas, is in good health, at the moment the program is capable of opening autocad DWG plans (thanks to LibreDWG[2]) that close LibreCAD[3]. We are using the library with the Shell instruction, which is not the best in terms of performance. We need some help in order to do something with Extern or directly a gb.component that uses this library. Of course, if someone does this it will be useful for many other projects not just GauchoCAD. We need read/write dwg and dxf files more efficiently Here we are an script to install LibreDWG in the system ??? #!/bin/bash ??? git clone git://git.sv.gnu.org/libredwg.git ??? cd libredwg ??? sh autogen.sh ??? ./configure --enable-trace ??? make ??? sudo make install ??? make check ??? cd .. [1] https://github.com/tercoide/GauchoCAD [2] https://www.gnu.org/software/libredwg/ [3] https://librecad.org/ Thanks. Martin Belmonte From jussi.lahtinen at gmail.com Wed Oct 21 04:00:53 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 21 Oct 2020 05:00:53 +0300 Subject: [Gambas-user] GauchoCAD + LibreDWG In-Reply-To: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> References: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> Message-ID: What kind of help do you need? Let's say example, this line: Shell "/usr/local/bin/dwglayers -f '" & sFile & "' 2>&1 " To sOut The problem is to find equivalent function call(s) (in C) from the API documentation. I personally don't have the time. However, many here (including me) can help to translate the C function calls to Gambas extern function calls, if that is needed. Jussi On Wed, Oct 21, 2020 at 3:22 AM Martin wrote: > Hi, > I am pleased to announce that GauchoCAD[1], which as you know is a CAD > made with Gambas, is in good health, at the moment the program is > capable of opening autocad DWG plans (thanks to LibreDWG[2]) that close > LibreCAD[3]. > We are using the library with the Shell instruction, which is not the > best in terms of performance. > We need some help in order to do something with Extern or directly a > gb.component that uses this library. Of course, if someone does this it > will be useful for many other projects not just GauchoCAD. > > We need read/write dwg and dxf files more efficiently > > Here we are an script to install LibreDWG in the system > > #!/bin/bash > git clone git://git.sv.gnu.org/libredwg.git > cd libredwg > sh autogen.sh > ./configure --enable-trace > make > sudo make install > make check > cd .. > > [1] https://github.com/tercoide/GauchoCAD > > [2] https://www.gnu.org/software/libredwg/ > > [3] https://librecad.org/ > > Thanks. > Martin Belmonte > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Oct 21 04:15:40 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 20 Oct 2020 22:15:40 -0400 Subject: [Gambas-user] GauchoCAD + LibreDWG In-Reply-To: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> References: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> Message-ID: El mar., 20 de oct. de 2020 a la(s) 20:22, Martin (mbelmonte at belmotek.net) escribi?: > Hi, > I am pleased to announce that GauchoCAD[1], which as you know is a CAD > made with Gambas, is in good health, at the moment the program is > capable of opening autocad DWG plans (thanks to LibreDWG[2]) that close > LibreCAD[3]. > I'm not fan of your work but this time! puff You have stood out, excelled and made a great entry on the mailing list, I have reviewed your project and do not have much free time but I took the trouble to review it. lest take: > We are using the library with the Shell instruction, which is not the > best in terms of performance. > We need some help in order to do something with Extern or directly a > gb.component that uses this library. Of course, if someone does this it > will be useful for many other projects not just GauchoCAD. > > We need read/write dwg and dxf files more efficiently > Yes.. *that being so great deserves applause* even if you and your dog icon don't bite and bark much taking as example this hardcoded thing in the project like https://github.com/tercoide/GauchoCAD/blob/b43a038ef4a995dbdd2007ee7f45fcea36bb3876/.src/rad/cad.module#L699 so seems you dont use a standarixzed LSB distribution.. i will made some proposal as PULL request later.. i use in more deep.. cos i plan to port GAMBAS to alpine linux *One important note:* takin in consideration that important zealots will always use AutoCAD (born in Venezuelan you know guys) .. you must make your project work in older versions of Gambas to property use in schools and some educational institutions.. in this way.. you can get into more in people rather than in busy people! use brain for that! > Here we are an script to install LibreDWG in the system > > #!/bin/bash > git clone git://git.sv.gnu.org/libredwg.git > cd libredwg > sh autogen.sh > ./configure --enable-trace > make > sudo make install > make check > cd .. > > [1] https://github.com/tercoide/GauchoCAD > > [2] https://www.gnu.org/software/libredwg/ > > [3] https://librecad.org/ > > Thanks. > Martin Belmonte > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Oct 21 04:23:56 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 20 Oct 2020 22:23:56 -0400 Subject: [Gambas-user] New web browser component and GTK+3 support In-Reply-To: <7f4694b8-9da6-6bd7-55c8-f157138f6caf@gmail.com> References: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> <7f4694b8-9da6-6bd7-55c8-f157138f6caf@gmail.com> Message-ID: El mar., 20 de oct. de 2020 a la(s) 19:11, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > An additional note: the IDE now uses the 'gb.gui' component, so you will > automatically get the 'gb.gtk3' version if you run it on something else > than KDE. > some years ago you talks about the hell of coding in GTK3+ .. now seesm is enought stable for made this ? *the question here: This change has something to do with the large amount of resources involved in running the environment in qt5 and the future qt6?* > > As it's far from sure at the moment that 'gb.gtk3' will be stable > enough, 'gb.gui.qt' may be used again in the next stable versions. > > Le 21/10/2020 ? 01:07, Beno?t Minisini a ?crit : > > Hi, > > > > With the last commit in master, you can now run the development > > environment with GTK+3. > > > > You will get a lot of GTK+ layout warnings [1], no support of the Gambas > > bitmap font [2], some unexpected crashes, and many other problems for > sure! > > > > The new Web browser is not finished (it uses WebKit on both QT and > > GTK+), and will not support DOM access methods like the old one, because > > that's not supported by Qt and GTK+ Webkit interface. > > > > If you want to test it, please report the problems, not necessarily on > > the bugtracker as this is development in progress. > > > > Enjoy. > > > > [1] I don't know how to get rid of them at the moment. > > [2] Removed by the GTK+ developers because. > > > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Oct 21 10:23:56 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 21 Oct 2020 10:23:56 +0200 Subject: [Gambas-user] GauchoCAD + LibreDWG In-Reply-To: References: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> Message-ID: <9af52f94-e8de-0ce3-21d9-dfd7f2f5f369@belmotek.net> Jussi, Help to translate the C function calls to Gambas extern function calls will be fine. I'm going to try to find the functions in the API and then I'll say it here, to try to translate something using Extern. Tanks. MB. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Wed Oct 21 10:39:01 2020 From: mbelmonte at belmotek.net (Martin) Date: Wed, 21 Oct 2020 10:39:01 +0200 Subject: [Gambas-user] GauchoCAD + LibreDWG In-Reply-To: References: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> Message-ID: <53f13cbe-d356-fa0a-b619-cda527536485@belmotek.net> Hi PICCORO McKAY Lenz, We need help to translate using Extern some Fuctions of the library. I think you are confused, my avatar logo is not the dog, it is the penguin, but it is confusing because we are two Martin in the GauchoCAD team. Tanks. MB. On 21/10/20 4:15, PICCORO McKAY Lenz wrote: > > > El mar., 20 de oct. de 2020 a la(s) 20:22, Martin > (mbelmonte at belmotek.net ) escribi?: > > Hi, > I am pleased to announce that GauchoCAD[1], which as you know is a > CAD > made with Gambas, is in good health, at the moment the program is > capable of opening autocad DWG plans (thanks to LibreDWG[2]) that > close > LibreCAD[3]. > > I'm not fan of your work but this time! puff?You have stood out, > excelled and made a great entry on the mailing list, I have reviewed > your project and do not have much free time but I took the trouble to > review it. lest take: > > We are using the library with the Shell instruction, which is not the > best in terms of performance. > We need some help in order to do something with Extern or directly a > gb.component that uses this library. Of course, if someone does > this it > will be useful for many other projects not just GauchoCAD. > > We need read/write dwg and dxf files more efficiently > > > Yes.. _that being so great deserves applause_ even if you and your dog > icon don't bite and bark much taking as example this?hardcoded thing > in the project like > https://github.com/tercoide/GauchoCAD/blob/b43a038ef4a995dbdd2007ee7f45fcea36bb3876/.src/rad/cad.module#L699 > so seems you dont use a standarixzed LSB distribution.. > > i will made some proposal as PULL request later.. i use in more deep.. > cos i plan to port GAMBAS to alpine linux > > *_One important note:_* takin in consideration that important zealots > will always use AutoCAD (born in Venezuelan you know guys) ..? you > must make your project work in older versions of Gambas to property > use in schools and some educational institutions.. in this way.. you > can get into more in people rather than in busy people! use brain for > that! > > > Here we are an script to install LibreDWG in the system > > ???? #!/bin/bash > ???? git clone git://git.sv.gnu.org/libredwg.git > > ???? cd libredwg > ???? sh autogen.sh > ???? ./configure --enable-trace > ???? make > ???? sudo make install > ???? make check > ???? cd .. > > [1] https://github.com/tercoide/GauchoCAD > > [2] https://www.gnu.org/software/libredwg/ > > [3] https://librecad.org/ > > Thanks. > Martin Belmonte > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 21 10:44:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Oct 2020 10:44:47 +0200 Subject: [Gambas-user] New web browser component and GTK+3 support In-Reply-To: References: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> <7f4694b8-9da6-6bd7-55c8-f157138f6caf@gmail.com> Message-ID: <3f79353f-f116-50da-6037-72d19f06302f@gmail.com> Le 21/10/2020 ? 04:23, PICCORO McKAY Lenz a ?crit?: > El mar., 20 de oct. de 2020 a la(s) 19:11, Beno?t Minisini > (g4mba5 at gmail.com ) escribi?: > > An additional note: the IDE now uses the 'gb.gui' component, so you > will > automatically get the 'gb.gtk3' version if you run it on something else > than KDE. > > some years ago you talks about the hell of coding in GTK3+ .. now seesm > is enought?stable for made this ? > > *the question here: This change has something to do with the large > amount of resources involved in running the environment in qt5 and the > future qt6?* > I don't understand what the question means... -- Beno?t Minisini From mckaygerhard at gmail.com Wed Oct 21 11:55:10 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 21 Oct 2020 05:55:10 -0400 Subject: [Gambas-user] New web browser component and GTK+3 support In-Reply-To: <3f79353f-f116-50da-6037-72d19f06302f@gmail.com> References: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> <7f4694b8-9da6-6bd7-55c8-f157138f6caf@gmail.com> <3f79353f-f116-50da-6037-72d19f06302f@gmail.com> Message-ID: You just said that after much criticism in the past how difficult it is to program using GTK3, and that the shrimp IDE will only work in QT, now this IDE also works in GTK3... it doesn't make any sense this extra effort when there are components that still require attention like ODBC You can also notice that now QT6 and the current QT5 consume much more resources than the GTK3, and that in the future I predict that using shrimp IDE with QT6 will be a waste of resources and not of creativity El mi?., 21 de oct. de 2020 a la(s) 04:45, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Le 21/10/2020 ? 04:23, PICCORO McKAY Lenz a ?crit : > > El mar., 20 de oct. de 2020 a la(s) 19:11, Beno?t Minisini > > (g4mba5 at gmail.com ) escribi?: > > > > An additional note: the IDE now uses the 'gb.gui' component, so you > > will > > automatically get the 'gb.gtk3' version if you run it on something > else > > than KDE. > > > > some years ago you talks about the hell of coding in GTK3+ .. now seesm > > is enought stable for made this ? > > > > *the question here: This change has something to do with the large > > amount of resources involved in running the environment in qt5 and the > > future qt6?* > > > > I don't understand what the question means... > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Oct 21 11:57:48 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 21 Oct 2020 05:57:48 -0400 Subject: [Gambas-user] GauchoCAD + LibreDWG In-Reply-To: <53f13cbe-d356-fa0a-b619-cda527536485@belmotek.net> References: <23eba172-cb21-7a67-0332-168711acdb08@belmotek.net> <53f13cbe-d356-fa0a-b619-cda527536485@belmotek.net> Message-ID: El mi?., 21 de oct. de 2020 a la(s) 04:39, Martin (mbelmonte at belmotek.net) escribi?: > I think you are confused, my avatar logo is not the dog, it is the > penguin, but it is confusing because we are two Martin in the GauchoCAD > team. > i know both of you! check of us in the gambas forums andothers projects. XD in the counter part you must pay attention in the last lines i write from my last mail! > On 21/10/20 4:15, PICCORO McKAY Lenz wrote: > > > > El mar., 20 de oct. de 2020 a la(s) 20:22, Martin (mbelmonte at belmotek.net) > escribi?: > >> Hi, >> I am pleased to announce that GauchoCAD[1], which as you know is a CAD >> made with Gambas, is in good health, at the moment the program is >> capable of opening autocad DWG plans (thanks to LibreDWG[2]) that close >> LibreCAD[3]. >> > I'm not fan of your work but this time! puff You have stood out, excelled > and made a great entry on the mailing list, I have reviewed your project > and do not have much free time but I took the trouble to review it. lest > take: > > >> We are using the library with the Shell instruction, which is not the >> best in terms of performance. >> We need some help in order to do something with Extern or directly a >> gb.component that uses this library. Of course, if someone does this it >> will be useful for many other projects not just GauchoCAD. >> >> We need read/write dwg and dxf files more efficiently >> > > Yes.. *that being so great deserves applause* even if you and your dog > icon don't bite and bark much taking as example this hardcoded thing in the > project like > https://github.com/tercoide/GauchoCAD/blob/b43a038ef4a995dbdd2007ee7f45fcea36bb3876/.src/rad/cad.module#L699 > so seems you dont use a standarixzed LSB distribution.. > > i will made some proposal as PULL request later.. i use in more deep.. cos > i plan to port GAMBAS to alpine linux > > *One important note:* takin in consideration that important zealots will > always use AutoCAD (born in Venezuelan you know guys) .. you must make > your project work in older versions of Gambas to property use in schools > and some educational institutions.. in this way.. you can get into more in > people rather than in busy people! use brain for that! > > >> Here we are an script to install LibreDWG in the system >> >> #!/bin/bash >> git clone git://git.sv.gnu.org/libredwg.git >> cd libredwg >> sh autogen.sh >> ./configure --enable-trace >> make >> sudo make install >> make check >> cd .. >> >> [1] https://github.com/tercoide/GauchoCAD >> >> [2] https://www.gnu.org/software/libredwg/ >> >> [3] https://librecad.org/ >> >> Thanks. >> Martin Belmonte >> >> >> ----[ 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 Wed Oct 21 12:06:55 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 21 Oct 2020 12:06:55 +0200 Subject: [Gambas-user] Warning from the terminal Message-ID: Hi Benoit, with the last compilation, when opening gambas3 from the terminal I get this warning: gb.gtk3: warning: class WebKitWebView was not patched Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 21 12:25:53 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Oct 2020 12:25:53 +0200 Subject: [Gambas-user] Warning from the terminal In-Reply-To: References: Message-ID: <57d1d193-06cc-cbbf-8562-156b08d6fef1@gmail.com> Le 21/10/2020 ? 12:06, Gianluigi a ?crit?: > Hi Benoit, > > with the last compilation, when opening gambas3 from the terminal I get > this warning: > gb.gtk3: warning: class WebKitWebView was not patched > > Regards > Gianluigi > Yes, I know. If you see a message starting with "gb.gtk3:", it's a message coming from the code I wrote. :-) -- Beno?t Minisini From g4mba5 at gmail.com Wed Oct 21 12:34:48 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Oct 2020 12:34:48 +0200 Subject: [Gambas-user] New web browser component and GTK+3 support In-Reply-To: References: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> <7f4694b8-9da6-6bd7-55c8-f157138f6caf@gmail.com> <3f79353f-f116-50da-6037-72d19f06302f@gmail.com> Message-ID: Le 21/10/2020 ? 11:55, PICCORO McKAY Lenz a ?crit?: > You just said that after much criticism in the past how difficult it is > to program using GTK3, and that the shrimp IDE will only work in QT, now > this IDE also works in GTK3... it doesn't make any sense this extra > effort when there are components that still require attention like ODBC As far as I know, I do what I want, and can even change my mind, even if I actually don't. Quoting myself: "As it's far from sure at the moment that 'gb.gtk3' will be stable enough, 'gb.gui.qt' may be used again in the next stable versions.". > > You can also notice that now QT6 and the current QT5 consume much more > resources than the GTK3, and that in the future I predict that using > shrimp IDE with QT6 will be a waste of resources and not of creativity I noticed nothing as QT6 is not released yet, and I see no reason why it should consume much more resource for managing widgets, as apparently nothing really changed on that level since QT5. -- Beno?t Minisini From mckaygerhard at gmail.com Wed Oct 21 12:42:48 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 21 Oct 2020 06:42:48 -0400 Subject: [Gambas-user] New web browser component and GTK+3 support In-Reply-To: References: <3f34cb2b-599d-0ac2-7479-9e8c46970ecc@gmail.com> <7f4694b8-9da6-6bd7-55c8-f157138f6caf@gmail.com> <3f79353f-f116-50da-6037-72d19f06302f@gmail.com> Message-ID: El mi?., 21 de oct. de 2020 a la(s) 06:35, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > As far as I know, I do what I want, and can even change my mind, even if > I actually don't. > sound like a child.. gambas is just a hobby or a secure project when i can rely my developments? > > Quoting myself: "As it's far from sure at the moment that 'gb.gtk3' will > be stable enough, 'gb.gui.qt' may be used again in the next stable > versions.". > ok it sound pretty good.. i just quoted you TOO when GTK3+ starts some time ago > I noticed nothing as QT6 is not released yet, and I see no reason why it > should consume much more resource for managing widgets, as apparently > nothing really changed on that level since QT5. > as PCMAN developer of LXDE demostrates in their first attemp to LXQT, the QT toolkit consumes much more RAM and resources rather than GTK3 and each newer version also consumes more respect the previous, that is not secret.. he develops LXQT cos is more modern and easy to code in QT rather that in GTK.. taking that fact as start i was guessing the same for Gambas until you said that Gambas IDE now are able to use GTK3. i thinks IS A GREAT FEATURE but i remenber so many llittle details but important issues in GTK respect QT like the input issue i reported some years ago for Gambas (that makes unusable) > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Oct 21 14:05:26 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 21 Oct 2020 14:05:26 +0200 Subject: [Gambas-user] Warning from the terminal In-Reply-To: <57d1d193-06cc-cbbf-8562-156b08d6fef1@gmail.com> References: <57d1d193-06cc-cbbf-8562-156b08d6fef1@gmail.com> Message-ID: Il giorno mer 21 ott 2020 alle ore 12:26 Beno?t Minisini ha scritto: > Le 21/10/2020 ? 12:06, Gianluigi a ?crit : > > Hi Benoit, > > > > with the last compilation, when opening gambas3 from the terminal I get > > this warning: > > gb.gtk3: warning: class WebKitWebView was not patched > > > > Regards > > Gianluigi > > > > Yes, I know. If you see a message starting with "gb.gtk3:", it's a > message coming from the code I wrote. :-) > > -- > Beno?t Minisini > Sorry I forgot your email Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Wed Oct 21 15:38:20 2020 From: tercoide at hotmail.com (martin p cristia) Date: Wed, 21 Oct 2020 10:38:20 -0300 Subject: [Gambas-user] GauchoCAD + LibreDWG In-Reply-To: References: Message-ID: And I remember you got out of the spanish forum for being a jerk, and now I see you haven't changed a bit. You are not welcome in any of my projects. El 10/21/20 a las 7:12 AM, user-request at lists.gambas-basic.org escribi?: > i know both of you! check of us in the gambas forums andothers projects. XD > in the counter part you must pay attention in the last lines i write from > my last mail! -- Saludos Ing. Martin P Cristia From mckaygerhard at gmail.com Wed Oct 21 16:08:03 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 21 Oct 2020 10:08:03 -0400 Subject: [Gambas-user] GauchoCAD + LibreDWG In-Reply-To: References: Message-ID: oh yeah so used your project.. ok no problem, BE OBJETIVE no vengative! XD XD El mi?., 21 de oct. de 2020 a la(s) 09:40, martin p cristia ( tercoide at hotmail.com) escribi?: > And I remember you got out of the spanish forum for being a jerk, and > now I see you haven't changed a bit. You are not welcome in any of my > projects. > > El 10/21/20 a las 7:12 AM, user-request at lists.gambas-basic.org escribi?: > > i know both of you! check of us in the gambas forums andothers projects. > XD > > in the counter part you must pay attention in the last lines i write from > > my last mail! > > -- > Saludos > > Ing. Martin P Cristia > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Oct 21 16:57:14 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 21 Oct 2020 07:57:14 -0700 (PDT) Subject: [Gambas-user] Bugtracker login - thought bad password Message-ID: <1793161792.2644.1603292234240.JavaMail.zimbra@westwoodsvcs.com> Ok so I thought I forgot my password for bug tracker but it turns out that it works fine on firefox the issue seems to be in using chrome on linux.. which I have for some time. What happens when the correct password is entered is that the website simply returns you to the login page with no errors and no fields filled in. Everything works correctly with Firefox. I think this has been since most recent update of chrome on linux. A Bad password returns an error.. as it should. Has anyone else seen this behavior? Also this website is not encrypted, chrome complains now each time I try to enter a password.. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Wed Oct 21 17:48:32 2020 From: vuott at tiscali.it (vuott at tiscali.it) Date: Wed, 21 Oct 2020 17:48:32 +0200 Subject: [Gambas-user] Error: Bad event handler.... Message-ID: <0a48e691980984228b140be66e335726@tiscali.it> Hello, with last master version when I open my gambas, I obtain this error: [28] Bad event handler in CProjectList.ExampleWebView_Link(): too many arguments. CProjectList.FillWithExample.106 see attached image file regards Con Tiscali Mobile Smart 30 4G hai minuti illimitati, 100 SMS e 30 Giga in 4G a soli 8,99? al mese. http://tisca.li/smart30 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error.png Type: image/png Size: 21386 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Oct 21 19:57:18 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Oct 2020 19:57:18 +0200 Subject: [Gambas-user] Error: Bad event handler.... In-Reply-To: <0a48e691980984228b140be66e335726@tiscali.it> References: <0a48e691980984228b140be66e335726@tiscali.it> Message-ID: Le 21/10/2020 ? 17:48, vuott at tiscali.it a ?crit?: > Hello, > with last master version when I open my gambas, I obtain this error: > > ?? [28] Bad event handler in CProjectList.ExampleWebView_Link(): too > many arguments. > ?? CProjectList.FillWithExample.106 > see attached image file > regards > It should be fixed now. -- Beno?t Minisini From bsteers4 at gmail.com Thu Oct 22 05:06:35 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 04:06:35 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( Message-ID: I have an app called JumpEd Basically a text editor that lists functions on the side. works for gambas files , C files bash scripts etc. It lists all the functions and clicking them jumps to them in the editor. the Gambas IDE does a similar thing. Anyway it has options to select the "Highlighting" mode I was on a test system and using the app and noticed i hadn't set a highlighting option so i was just selecting through them as it was a bash script and sh isn't in the list so trying to the the best compromise. Settled on C , closed the app and saved my changes. Without realising selecting the "Highlight" mode to "gambas" on the TextEditor completely "formatted" the entire bash script gambas style !!! I thought setting the "Mode" on a texteditor did formatting not the Highlight Personally , right now , i don't bloody think it should. My scripts going to take some serious repair. I'm off to bed. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 22 17:57:40 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 16:57:40 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: Message-ID: Without realising selecting the "Highlight" mode to "gambas" on the TextEditor completely "formatted" the entire bash script gambas style !!! > > I thought setting the "Mode" on a texteditor did formatting not the > Highlight > > Personally , right now , i don't bloody think it should. > My scripts going to take some serious repair. > Took me about 4.5 hours of re-fomatting and bug-fixing :( Am i missing something? is there something to set to stop it formatting or is that just how the highlighting currently works? Thanks BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Oct 22 18:02:00 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 22 Oct 2020 18:02:00 +0200 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: Message-ID: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Am 22.10.20 um 17:57 schrieb Bruce Steers: > Took me about 4.5 hours of re-fomatting and bug-fixing :( > Am i missing something? Git ;-) Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bsteers4 at gmail.com Thu Oct 22 18:14:28 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 17:14:28 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: haha , not sure it would have helped though , it was a brand new write. Had only just finished building the new script by importing and adapting commands from 2 other scripts (that are on git) into a new one. One quick check on a different system and a small edit using my home made editor ( had been tweaking the editor as well as the script, making it good for script wriiing , and it was) Then it suddenly became horribly "BAD" for scripting :'( Horribly, terribly, awfully bad. I may have even cussed ;) lol On Thu, 22 Oct 2020 at 17:03, Christof Thalhofer wrote: > Am 22.10.20 um 17:57 schrieb Bruce Steers: > > > Took me about 4.5 hours of re-fomatting and bug-fixing :( > > Am i missing something? > > Git ;-) > > Alles Gute > > Christof Thalhofer > > -- > [x] nail here for new monitor > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Oct 22 18:49:12 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 22 Oct 2020 18:49:12 +0200 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: Am 22.10.20 um 18:14 schrieb Bruce Steers: > Then it suddenly became horribly "BAD" for scripting :'( > Horribly, terribly, awfully bad. > > I may have even cussed ;) lol Yes sure such shit happens sometimes. Maybe you should implement also a Ctrl-Z/Ctrl-Y function into your editor. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From bsteers4 at gmail.com Thu Oct 22 19:00:43 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 18:00:43 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: Also wouldn't have helped, the file saved on closing Maybe gambas TextEditor shouldn't rearrange text when only choosing a highlight mode? On Thu, 22 Oct 2020 at 17:50, Christof Thalhofer wrote: > Am 22.10.20 um 18:14 schrieb Bruce Steers: > > > Then it suddenly became horribly "BAD" for scripting :'( > > Horribly, terribly, awfully bad. > > > > I may have even cussed ;) lol > > Yes sure such shit happens sometimes. Maybe you should implement also a > Ctrl-Z/Ctrl-Y function into your editor. > > Alles Gute > > Christof Thalhofer > > -- > [x] nail here for new monitor > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 22 19:09:14 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 18:09:14 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: Message-ID: > >> I thought setting the "Mode" on a texteditor did formatting not the >> Highlight >> >> As there is little documantetion on the TextEditor does anyone know exactly how the 2 Properties "Highlight" and "Mode" differ as they have the same settings it seems? It has been my assumption that "Highlight" would just show the text a certain way while "Mode" would do formatting tricks. But i guess not. So what exactly does TextEditor.Mode="gambas" do? TIA BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 22 20:22:16 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 19:22:16 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: I've added a warning on the wiki about it. Beno?t rejected it as a bug, asked why would i set highlighting to gambas and expect no gambas highlighting? Simple answer being that i *did* expect gambas highlighting but didn't expect "highlighting" to do "text re-formatting" I didn't expect to spend 4.5 hours fixing a bash script that the so called "highlighting" ruined either. as far as i'm concerned for my Text Editor app the "Highlight" option "gambas" has to be removed as it's dangerous. BruceS On Thu, 22 Oct 2020 at 17:50, Christof Thalhofer wrote: > Am 22.10.20 um 18:14 schrieb Bruce Steers: > > > Then it suddenly became horribly "BAD" for scripting :'( > > Horribly, terribly, awfully bad. > > > > I may have even cussed ;) lol > > Yes sure such shit happens sometimes. Maybe you should implement also a > Ctrl-Z/Ctrl-Y function into your editor. > > Alles Gute > > Christof Thalhofer > > -- > [x] nail here for new monitor > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 22 20:29:01 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 19:29:01 +0100 Subject: [Gambas-user] pop up lists getting in the way Message-ID: I've started to notice something new... while typing in the IDE, the pop up lists for wiki info and properties that appear are suddenly right in the way of the text i'm trying to write and i can't see what i'm doing. This is new, it didn't used to be that way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Oct 22 20:46:24 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 22 Oct 2020 21:46:24 +0300 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: Not sure I understand what you mean by re-formatting. Just adding indentations..? But that shouldn't ruin anything..? Jussi On Thu, Oct 22, 2020 at 9:23 PM Bruce Steers wrote: > I've added a warning on the wiki about it. > > Beno?t rejected it as a bug, asked why would i set highlighting to gambas > and expect no gambas highlighting? > Simple answer being that i *did* expect gambas highlighting but didn't > expect "highlighting" to do "text re-formatting" > I didn't expect to spend 4.5 hours fixing a bash script that the so called > "highlighting" ruined either. > > as far as i'm concerned for my Text Editor app the "Highlight" option > "gambas" has to be removed as it's dangerous. > > BruceS > > > On Thu, 22 Oct 2020 at 17:50, Christof Thalhofer > wrote: > >> Am 22.10.20 um 18:14 schrieb Bruce Steers: >> >> > Then it suddenly became horribly "BAD" for scripting :'( >> > Horribly, terribly, awfully bad. >> > >> > I may have even cussed ;) lol >> >> Yes sure such shit happens sometimes. Maybe you should implement also a >> Ctrl-Z/Ctrl-Y function into your editor. >> >> Alles Gute >> >> Christof Thalhofer >> >> -- >> [x] nail here for new monitor >> >> ----[ 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 Thu Oct 22 21:00:45 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 20:00:45 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: I mean completely changing LOTS of text, I've attached a zip. I contains 2 files. One is a working bash script. the other has been RUINED by simply selecting the "gambas" highlight option. it does WAY more than just indent. is capitalised all the If , then, else, while, etc commands, moved text/spaces around a lot , added quotes on strings split over various lines. changed for example cat /home/user/myfile.txt to cat / home / user / myfile.txt Scrunched stuff like if [ $spacin = "matters" ]; then to if [$spacin = "matters"]; then moved EVERY dash arg like echo -e "text" became echo - e "text" (dash moved) the list goes on. The attached file is the one that took me over 4 hours to re-do and debug after the Text editor i made saved my changes on exit. Look at the 2 files to see what i'm saying. one is messed right up and all i did was view gambas highlight mode. Waaaay more than indenting. BruceS On Thu, 22 Oct 2020 at 19:47, Jussi Lahtinen wrote: > Not sure I understand what you mean by re-formatting. Just adding > indentations..? But that shouldn't ruin anything..? > > > Jussi > > On Thu, Oct 22, 2020 at 9:23 PM Bruce Steers wrote: > >> I've added a warning on the wiki about it. >> >> Beno?t rejected it as a bug, asked why would i set highlighting to gambas >> and expect no gambas highlighting? >> Simple answer being that i *did* expect gambas highlighting but didn't >> expect "highlighting" to do "text re-formatting" >> I didn't expect to spend 4.5 hours fixing a bash script that the so >> called "highlighting" ruined either. >> >> as far as i'm concerned for my Text Editor app the "Highlight" option >> "gambas" has to be removed as it's dangerous. >> >> BruceS >> >> >> On Thu, 22 Oct 2020 at 17:50, Christof Thalhofer >> wrote: >> >>> Am 22.10.20 um 18:14 schrieb Bruce Steers: >>> >>> > Then it suddenly became horribly "BAD" for scripting :'( >>> > Horribly, terribly, awfully bad. >>> > >>> > I may have even cussed ;) lol >>> >>> Yes sure such shit happens sometimes. Maybe you should implement also a >>> Ctrl-Z/Ctrl-Y function into your editor. >>> >>> Alles Gute >>> >>> Christof Thalhofer >>> >>> -- >>> [x] nail here for new monitor >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: what-gambas-highlight-does.zip Type: application/zip Size: 13412 bytes Desc: not available URL: From bsteers4 at gmail.com Thu Oct 22 21:15:22 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 20:15:22 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: On Thu, 22 Oct 2020 at 19:47, Jussi Lahtinen wrote: > Not sure I understand what you mean by re-formatting. Just adding > indentations..? But that shouldn't ruin anything..? > > Not to mention... EVERY single variable assignment that in bash must not have a space eg. VAR="Value" , it put a space in to make VAR = "value" EVERY "if" statement that MUST have spaces after the [ and before ] , it removed those spaces. EVERY string that wasn't enclosed in brackets got adjusted somehow. String changes like this for example all over the place... Ways To avoid this are For the script To pause And await your signal To Continue before this command Is Run. (Notice the Capital letters on the words To, For, And, Continue and Run) a few occurrences of this ((CNT++)) became this... ((CNT + + )) silly little hardly noticeable , minor changes eh? but almost ALL of them become a syntax error. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 22 21:19:36 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 20:19:36 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: On Thu, 22 Oct 2020 at 20:00, Bruce Steers wrote: > I mean completely changing LOTS of text, > > I've attached a zip. > I contains 2 files. > One is a working bash script. > the other has been RUINED by simply selecting the "gambas" highlight > option. > > Not sure attachments work on this list so here's a link... http://bws.org.uk/what-gambas-highlight-does.zip -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Oct 22 21:21:31 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 22 Oct 2020 22:21:31 +0300 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: OK, now I understand. And I agree, that behavior is not consistent with what is usually meant by highlighting. I guess that has been an easy place to put the action. When you type something in the IDE, the text is highlighted and thus at the same time corrected for proper formatting. I don't know how it is implemented, but if the "gambas" style is in a separated data file, I think you might want to copy and modify it to do a "bash" version for it. Jussi On Thu, Oct 22, 2020 at 10:01 PM Bruce Steers wrote: > I mean completely changing LOTS of text, > > I've attached a zip. > I contains 2 files. > One is a working bash script. > the other has been RUINED by simply selecting the "gambas" highlight > option. > > it does WAY more than just indent. > is capitalised all the If , then, else, while, etc commands, moved > text/spaces around a lot , added quotes on strings split over various lines. > changed for example cat /home/user/myfile.txt to cat / home / user / > myfile.txt > > Scrunched stuff like if [ $spacin = "matters" ]; then > to if [$spacin = "matters"]; then > moved EVERY dash arg like echo -e "text" became echo - e "text" (dash > moved) > > the list goes on. > The attached file is the one that took me over 4 hours to re-do and debug > after the Text editor i made saved my changes on exit. > > Look at the 2 files to see what i'm saying. > one is messed right up and all i did was view gambas highlight mode. > Waaaay more than indenting. > BruceS > > > On Thu, 22 Oct 2020 at 19:47, Jussi Lahtinen > wrote: > >> Not sure I understand what you mean by re-formatting. Just adding >> indentations..? But that shouldn't ruin anything..? >> >> >> Jussi >> >> On Thu, Oct 22, 2020 at 9:23 PM Bruce Steers wrote: >> >>> I've added a warning on the wiki about it. >>> >>> Beno?t rejected it as a bug, asked why would i set highlighting to >>> gambas and expect no gambas highlighting? >>> Simple answer being that i *did* expect gambas highlighting but didn't >>> expect "highlighting" to do "text re-formatting" >>> I didn't expect to spend 4.5 hours fixing a bash script that the so >>> called "highlighting" ruined either. >>> >>> as far as i'm concerned for my Text Editor app the "Highlight" option >>> "gambas" has to be removed as it's dangerous. >>> >>> BruceS >>> >>> >>> On Thu, 22 Oct 2020 at 17:50, Christof Thalhofer >>> wrote: >>> >>>> Am 22.10.20 um 18:14 schrieb Bruce Steers: >>>> >>>> > Then it suddenly became horribly "BAD" for scripting :'( >>>> > Horribly, terribly, awfully bad. >>>> > >>>> > I may have even cussed ;) lol >>>> >>>> Yes sure such shit happens sometimes. Maybe you should implement also a >>>> Ctrl-Z/Ctrl-Y function into your editor. >>>> >>>> Alles Gute >>>> >>>> Christof Thalhofer >>>> >>>> -- >>>> [x] nail here for new monitor >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>> >>> ----[ 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 jussi.lahtinen at gmail.com Thu Oct 22 21:23:17 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 22 Oct 2020 22:23:17 +0300 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: <78b28453-18c9-42b5-a172-b9d8d2e67e52@deganius.de> Message-ID: > Not sure attachments work on this list so here's a link... > http://bws.org.uk/what-gambas-highlight-does.zip > Attachments are fine, if they aren't too big. I can't remember the size limit, but your attachments came through. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Oct 22 21:23:56 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Oct 2020 21:23:56 +0200 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: References: Message-ID: <58263f6c-4df4-a46d-0fea-a4ee791bcc30@gmail.com> Le 22/10/2020 ? 19:09, Bruce Steers a ?crit?: > > > I thought setting the "Mode" on a texteditor did formatting not > the Highlight > > > As there is little documantetion on the TextEditor does anyone know > exactly how the 2 Properties > "Highlight" and "Mode" differ as they have the same settings it seems? > It has been my assumption that "Highlight" would just show the text a > certain way while "Mode" would do formatting tricks. > But i guess not. > So what exactly does TextEditor.Mode="gambas" do? > > TIA > BruceS > As I said in the bugtracker, 'Mode' property = 'Highlight' property + more editing features. Now, after having read your dozen mails, I finally understand that you wanted rewriting only enabled if the Mode property is set, not if the Highlight property is set. I will see if it is possible. Regards, -- Beno?t Minisini From bsteers4 at gmail.com Thu Oct 22 21:36:54 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 20:36:54 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: <58263f6c-4df4-a46d-0fea-a4ee791bcc30@gmail.com> References: <58263f6c-4df4-a46d-0fea-a4ee791bcc30@gmail.com> Message-ID: > > > As I said in the bugtracker, 'Mode' property = 'Highlight' property + > more editing features. > "The Mode property implies the Highlight property (that is just for highlighting and rewriting) plus a few specific editor behavior" Now, after having read your dozen mails, I finally understand that you > wanted rewriting only enabled if the Mode property is set, not if the > Highlight property is set. > Sorry Beno?t but i needed to be clear an didn't think i had been. Yes it would be good if the gambas highlight only changed how i see the text colours like all the other highlight modes do. Like i say none of the other highlight modes actually modify text just the gambas one, and it's not really desired of a "highlight" i think. The feature how it modifies text is great when editing a gambas file though :) It would make sense though i think for the "Mode" to be a modifier and "Highlight" for just how it looks. > I will see if it is possible. > > Regards, > Thank you Ben, and sorry again but i was fuming last night when it happened to the script i'd been working on all day. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 22 23:07:57 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 22 Oct 2020 22:07:57 +0100 Subject: [Gambas-user] Ouch, TextEditor just ruined my script :( In-Reply-To: <58263f6c-4df4-a46d-0fea-a4ee791bcc30@gmail.com> References: <58263f6c-4df4-a46d-0fea-a4ee791bcc30@gmail.com> Message-ID: > > > I will see if it is possible. > I love you Beno?t , you are truly a god amongst men :) I just updated the latest commit and it works, gambas highlight is not changing the text now :) Thank you :) -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Oct 23 10:20:53 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 23 Oct 2020 10:20:53 +0200 Subject: [Gambas-user] Keys Return & Enter Message-ID: Hi Benoit, if I remember correctly, once you could write: Desktop.SendKeys ("[Return]") or Desktop.SendKeys ("[RETURN]") Now it gives 'Unknown key' error Once you could also write: Desktop.SendKeys ("[Enter]") And, again if I remember correctly, the code distinguished between 'Return' and 'Enter' Do I remember badly? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Oct 23 17:18:50 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 23 Oct 2020 16:18:50 +0100 Subject: [Gambas-user] using 'clear' in terminal view gives a "[3J" warning. Message-ID: Took me a while to track this bug down (if it is a bug) but got it eventually :) if running a shell script through a TerminalView and the script issues the command 'clear' i get this warning... gb.form.terminal: warning: not implemented: "[3J" if i change the script command to 'clear -x' the warning goes away. don't get the warning on any other terminal. Cheers BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Oct 23 21:54:15 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 23 Oct 2020 20:54:15 +0100 Subject: [Gambas-user] using 'clear' in terminal view gives a "[3J" warning. In-Reply-To: References: Message-ID: Great work Beno?t bug squashed, thank you :) On Fri, 23 Oct 2020 at 16:18, Bruce Steers wrote: > Took me a while to track this bug down (if it is a bug) but got it > eventually :) > > if running a shell script through a TerminalView and the script issues the > command 'clear' > i get this warning... > gb.form.terminal: warning: not implemented: "[3J" > > if i change the script command to 'clear -x' the warning goes away. > don't get the warning on any other terminal. > > Cheers > BruceS > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Oct 24 13:16:40 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 24 Oct 2020 12:16:40 +0100 Subject: [Gambas-user] added sh (shell) to TextEditor highlighting. Message-ID: Good morning all. As was suggested the other day "I could take one of the existing highlighting files and modify it for shell scripts" That's exactly what I did. Spent a few hours tweaking it and getting it right. As sh does not use datatype defining I've used the Datatype colour field for commands like echo, read, exit, etc. I think...... I'm sure.... I made the merge-request on GitHub okay. up to date commit pulled from upstream master,, my commits added and pushed etc If I've done something wrong with git i'm going to need a little guidance. I initially used the c++ file but realised the c++ file mainly used the C file after adding a few things so i took to the C file and edited it until I darn near understood it lol :) Examine the changes here if you like... https://gitlab.com/bsteers4/gambas Be well all :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sun Oct 25 17:06:33 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 25 Oct 2020 16:06:33 +0000 Subject: [Gambas-user] TextEditor "Mode" auto sets "Highlight" Message-ID: Hi all. If i set TextEditor.Mode to a value it also changes Highlight by itself. My code has to do the following.. *Dim iVal As Integer = TextEditor1.Highlight* *TextEditor1.Mode = "none"* *TextEditor.Highlight = iVal* otherwise setting the "Mode" to "none" wil auto unset the highlight too. PS. also i think some things in the "gambas" mode are not working so well now, like selecting text and pressing a bracket seems to sometimes put a bracket on either side of the text and sometimes it erases the text. Was wondering if the change Beno?t made to stop "Highlight" manipulating the text has broken some things? All the best BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Mon Oct 26 15:22:13 2020 From: kicking177 at gmail.com (KKing) Date: Mon, 26 Oct 2020 14:22:13 +0000 Subject: [Gambas-user] transparent button Message-ID: can you set button to be transparent I tried hButton.Background = Color.Transparent but the button is Black? K. From bsteers4 at gmail.com Mon Oct 26 15:28:02 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 26 Oct 2020 14:28:02 +0000 Subject: [Gambas-user] added sh (shell) to TextEditor highlighting. In-Reply-To: References: Message-ID: Hi all. i have refined this greatly. Added all the built in shell commands from using 'compgen -b Was stuck having problems with either single quoted strings showing correctly but not double quoted ones or the other way round but not working for both. added some code to fix this. Pretty sure it's as good as can be now with latest commit. I've tested it on my own shell scripts and to really put it to the test i tested it on the main Gambas configure file. Needs to be tested by others to see if good enough for inclusion i guess... :) BruceS I initially used the c++ file but realised the c++ file mainly used the C > file after adding a few things so i took to the C file and edited it until > I darn near understood it lol :) > > Examine the changes here if you like... > https://gitlab.com/bsteers4/gambas > > Be well all :) > BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at servinfo.it Mon Oct 26 16:48:44 2020 From: gambas at servinfo.it (Marco Ancillotti) Date: Mon, 26 Oct 2020 16:48:44 +0100 Subject: [Gambas-user] Old project update Message-ID: Hi all , I have update an old gambas2 / qt4 /gb.report project to use latest version of gambas , everythink work ok but reports are all wrong , some panel are invisible , is there some trick to move from gb.report to gb.report2 or I need to rewrite from scratch ? Thank's in advance, Marco. From bagonergi at gmail.com Mon Oct 26 17:45:38 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 26 Oct 2020 17:45:38 +0100 Subject: [Gambas-user] Old project update In-Reply-To: References: Message-ID: Il giorno lun 26 ott 2020 alle ore 16:56 Marco Ancillotti < gambas at servinfo.it> ha scritto: > Hi all , > > I have update an old gambas2 / qt4 /gb.report project to use latest > version of gambas , everythink work ok but reports are all wrong , some > panel are invisible , is there some trick to move from gb.report to > gb.report2 or I need to rewrite from scratch ? > Hi Marco, I don't think there is a quick and easy way. Here is a lesson on version 2, but I warn you that I wrote it :-) https://www.gambas-it.org/wiki/index.php?title=Creare_report_con_il_componente_gb.report2 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Mon Oct 26 18:50:33 2020 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 26 Oct 2020 17:50:33 +0000 Subject: [Gambas-user] transparent button In-Reply-To: References: Message-ID: <543c5f33-a176-7ff1-d4e1-e037f9364a40@cogier.com> Hi K, I can't see away to make a button transparent, but why not use something else? Try running the code below in a 'Graphical application' '******************************************* ' Gambas class file DrawingArea1 As DrawingArea Label1 As Label Public Sub DrawingArea1_Draw() ? Paint.Begin(DrawingArea1) ? Paint.Font.Size = 16 ? Paint.Font.Bold = True ? Paint.Text("Click me!", 0, 0, DrawingArea1.W, DrawingArea1.H, 3) ? Paint.Fill ? Paint.Stroke ? Paint.End End Public Sub DrawingArea1_MouseDown() ? DrawingArea1.Border = Border.Sunken End Public Sub DrawingArea1_MouseUp() ? If Label1.Text = "" Then Label1.Text = "You clicked me" Else Label1.Text = "" ? DrawingArea1.Border = Border.Raised End Public Sub Form_Open() ? With Me ??? .H = 200 ??? .W = 400 ??? .Background = Color.White ??? .Picture = Picture["icon:/128/sun"] ? End With ? With Label1 = New Label(Me) As "Label1" ??? .H = 42 ??? .W = 200 ??? .X = 200 ??? .Y = 100 ??? .Font.Size = 16 ??? .Font.Bold = True ? End With ? With DrawingArea1 = New DrawingArea(Me) As "DrawingArea1" ??? .x = 50 ??? .y = 100 ??? .H = 42 ??? .W = 100 ??? .Border = Border.Raised ? End With End '******************************** On 26/10/2020 14:22, KKing wrote: > can you set button to be transparent I tried > hButton.Background = Color.Transparent > but the button is Black? > K. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bsteers4 at gmail.com Mon Oct 26 22:06:36 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 26 Oct 2020 21:06:36 +0000 Subject: [Gambas-user] transparent button In-Reply-To: References: Message-ID: I'm finding hButton.Background = Color.Transparent works fine. I gave the form a background picture. Set the button colour to Transparent , setting by code first then in the IDE. Both ways worked. I got the attached image. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: snap.png Type: image/png Size: 10146 bytes Desc: not available URL: From james at lixce.com Mon Oct 26 22:42:57 2020 From: james at lixce.com (james at lixce.com) Date: Mon, 26 Oct 2020 14:42:57 -0700 Subject: [Gambas-user] Button Transparency In-Reply-To: Message-ID: <74e2dcfb-18da-43d1-83c4-86aa0f56a322@email.android.com> An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Oct 27 00:10:47 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 26 Oct 2020 19:10:47 -0400 Subject: [Gambas-user] Button Transparency In-Reply-To: <74e2dcfb-18da-43d1-83c4-86aa0f56a322@email.android.com> References: <74e2dcfb-18da-43d1-83c4-86aa0f56a322@email.android.com> Message-ID: On 10/26/20 5:42 PM, james at lixce.com wrote: > You need to be using a compositor for transparency to work, otherwise it will show as a black background. > > -j > It does not work for me either set in the IDE or programmatically even with a compositor enabled. When set in the IDE, it shows as transparent. But, when the application is executed, it is not transparent. -- Lee [System] Gambas=3.15.2 OperatingSystem=Linux Kernel=4.12.14-lp151.28.75-default Architecture=x86_64 Distribution=openSUSE Leap 15.1 Desktop=KDE5 Theme=breeze Language=en_US.UTF-8 Memory=16030M [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.5.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.2200.30 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1205.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 GTK+3=/usr/lib64/libgtk-3.so.0.2200.30 OpenGL=/usr/lib64/libGL.so.1.0.0 Poppler=/usr/lib64/libpoppler.so.73.0.0 QT4=/usr/lib64/libQtCore.so.4.8.7 QT5=/usr/lib64/libQt5Core.so.5.9.7 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 From jussi.lahtinen at gmail.com Tue Oct 27 00:29:27 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 27 Oct 2020 01:29:27 +0200 Subject: [Gambas-user] Button Transparency In-Reply-To: References: <74e2dcfb-18da-43d1-83c4-86aa0f56a322@email.android.com> Message-ID: Does it fail with gtk, qt or with both? What version of the component? Jussi On Tue, Oct 27, 2020 at 1:11 AM T Lee Davidson wrote: > On 10/26/20 5:42 PM, james at lixce.com wrote: > > You need to be using a compositor for transparency to work, otherwise it > will show as a black background. > > > > -j > > > > It does not work for me either set in the IDE or programmatically even > with a compositor enabled. When set in the IDE, it shows > as transparent. But, when the application is executed, it is not > transparent. > > > -- > Lee > > [System] > Gambas=3.15.2 > OperatingSystem=Linux > Kernel=4.12.14-lp151.28.75-default > Architecture=x86_64 > Distribution=openSUSE Leap 15.1 > Desktop=KDE5 > Theme=breeze > Language=en_US.UTF-8 > Memory=16030M > > [Libraries] > Cairo=/usr/lib64/libcairo.so.2.11600.0 > Curl=/usr/lib64/libcurl.so.4.5.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.2200.30 > GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1205.0 > GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32 > GTK+3=/usr/lib64/libgtk-3.so.0.2200.30 > OpenGL=/usr/lib64/libGL.so.1.0.0 > Poppler=/usr/lib64/libpoppler.so.73.0.0 > QT4=/usr/lib64/libQtCore.so.4.8.7 > QT5=/usr/lib64/libQt5Core.so.5.9.7 > SDL=/usr/lib64/libSDL-1.2.so.0.11.4 > SQLite=/usr/lib64/libsqlite3.so.0.8.6 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Oct 27 10:46:19 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 27 Oct 2020 09:46:19 +0000 Subject: [Gambas-user] Button Transparency In-Reply-To: References: <74e2dcfb-18da-43d1-83c4-86aa0f56a322@email.android.com> Message-ID: On 10/26/20 5:42 PM, james at lixce.com wrote: > > You need to be using a compositor for transparency to work, otherwise it > will show as a black background. > > > > It does not work for me either set in the IDE or programmatically even > with a compositor enabled. When set in the IDE, it shows > as transparent. But, when the application is executed, it is not > transparent. > Darn it i've tried every connotation to see if i can help with this. Marco and Metacity, with and without compositing/compton , Compiz. gtk2 and 3 and QT Works correctly as expected on all?? Mint-20 , gambas 3.15.90 Of course without a picture behind the button i only get the form background colour. With a picture background i see through the button to the picture. With no picture but i set the main form transparency in the IDE i can see through it all. oooh , wait , no i just discovered something... Without compositing enabled setting the *main form transparency* sets the form BG to black. (I had loaded an image background so was not seeing this) If i load a picture as a background image then the button transparency works fine, i see through button to the image. But with no image the form background only goes to black (with no compositing) so button background is transparent but showing the forms bg colour Hope this helps :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Tue Oct 27 12:36:10 2020 From: kicking177 at gmail.com (KKing) Date: Tue, 27 Oct 2020 11:36:10 +0000 Subject: [Gambas-user] Button Transparency Message-ID: <82814e4a-d638-f724-af4b-a67bf10ffc3a@gmail.com> just to elaborate I'm trying create the button on top of an ImageView ... I have a scanned document in the ImageView When I set the button background to transparent (without picture on button) I get black I want to see the scanned document in the ImageView. It doesn't have to be a button, so will look at other controls I could draw on it and hopefully see through it and be able to click on it. K. From bagonergi at gmail.com Tue Oct 27 14:01:19 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 27 Oct 2020 14:01:19 +0100 Subject: [Gambas-user] Button Transparency In-Reply-To: <82814e4a-d638-f724-af4b-a67bf10ffc3a@gmail.com> References: <82814e4a-d638-f724-af4b-a67bf10ffc3a@gmail.com> Message-ID: Il giorno mar 27 ott 2020 alle ore 12:37 KKing ha scritto: > just to elaborate I'm trying create the button on top of an ImageView ... > I have a scanned document in the ImageView > When I set the button background to transparent (without picture on > button) I get black I want to see the scanned document in the ImageView. > It doesn't have to be a button, so will look at other controls I could > draw on it and hopefully see through it and be able to click on it. > K. > Can you explain why you need to place the button (or other) above the view? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Oct 27 19:07:51 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 27 Oct 2020 19:07:51 +0100 Subject: [Gambas-user] Overriding Color class In-Reply-To: <6c0d5d9d-e96e-84a4-f3ea-f5ee44451cf5@gmail.com> References: <750b0e6b-5b03-51fc-2b5c-1950aba44478@gmail.com> <6c0d5d9d-e96e-84a4-f3ea-f5ee44451cf5@gmail.com> Message-ID: <41115c42-3f60-7e26-5556-5114a284330b@gmail.com> Le 18/10/2020 ? 01:21, Bruce a ?crit?: > On 18/10/20 9:37 am, Beno?t Minisini wrote: >> Le 18/10/2020 ? 01:02, Bruce a ?crit?: >>> So, this is no longer true: >>> >>> 4.4. Project symbol table >>> Your project has its own private symbol, like any component, and can >>> export any of its classes to the global symbol table by using the >>> EXPORT keyword. >>> The project classes are loaded after all components. So your exported >>> class can override any exported classes declared in any component. >>> >>> ? >>> b >>> >> >> You must take chapter 3.5 into account too. >> > > A read/write property must be overridden by a read/write property. > A read-only property must be overridden by a read-only property. > > Why? Because of dynamic inheritance and symbol dispatching. if class B inherits class A while overriding the X property, then a reference on a class A object may be actually a reference on a class B object, and so the public interface cannot change because of the inheritance. Inheritance is not solved statically at compilation time, but dynamically at runtime. So the compiled bytecode may assume possibilities on a symbol dispatching that a later inheritance/overriding like you want to do will break. This is a Gambas object model limitation. Regards, -- Beno?t Minisini From kicking177 at gmail.com Wed Oct 28 09:55:21 2020 From: kicking177 at gmail.com (KKing) Date: Wed, 28 Oct 2020 08:55:21 +0000 Subject: [Gambas-user] Button Transparency Message-ID: << Can you explain why you need to place the button (or other) above the view? >> It doesn't have to be a button, but it has to be something a user can see through to see the content of the ImageView underneath it and be able to click on it to invoke other processes which for different people will have different potential actions. There is a couple of reasons we are looking into this. Currently for each scanned document we're loading into an ImageView and allowing one group to draw rectangles around certain areas, these co-ordinates are saved away (currently just an associated text file). Then other people can load the same ImageView and the saved co-ordinates would generate "see through" buttons (or something). They can then click on each one which would allow another form to popup for other actions relating to just that area of the ImageView. How do cater for a click event (or mouse up) on a dynamically created control? K. From bsteers4 at gmail.com Wed Oct 28 10:35:33 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 28 Oct 2020 09:35:33 +0000 Subject: [Gambas-user] Button Transparency In-Reply-To: References: Message-ID: > > How do cater for a click event (or mouse up) on a dynamically created > control? > Use the As keyword. Eg define/create the the button as so... Dim MyButton As Button MyButton = New Button(parent) As "My_Button" MyButton.Text = "Button 1" Then you can use something like.. Public Sub My_Button_Click() If Last.Text = "Button 1" Then EndIf End That way you can assign multiple buttons the same event name and use the Events "Last" keyword to get what button it is calling. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Oct 28 18:28:04 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 28 Oct 2020 10:28:04 -0700 (PDT) Subject: [Gambas-user] Gambas 3 no longer starts on mint 19.3 Message-ID: <479903498.3666.1603906084974.JavaMail.zimbra@westwoodsvcs.com> Hi all, I just updated to the latest version daily build of gambas 3 This is what happened 2981.brian at GN41:/home/brian$ gambas3 gb.gui: error: 'gb.gtk3.webview' component not found, unable to find any GUI replacement component 2981.brian at GN41:/home/brian$ Am I missing something? Do I now have to install something explicitly? Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Oct 28 19:31:20 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 28 Oct 2020 18:31:20 +0000 Subject: [Gambas-user] Gambas 3 no longer starts on mint 19.3 In-Reply-To: <479903498.3666.1603906084974.JavaMail.zimbra@westwoodsvcs.com> References: <479903498.3666.1603906084974.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Have you tried my scripts Brian? https://gitlab.com/bsteers4/gambas3-compile-and-install These will help make sure you have the dependencies and updates as gambas does. if new dependencies arise you will probably need to do all compile steps from ./reconf-all to make install. On Wed, 28 Oct 2020 at 17:39, Brian G wrote: > Hi all, > > I just updated to the latest version daily build of gambas 3 > > This is what happened > > 2981.brian at GN41:/home/brian$ gambas3 > gb.gui: error: 'gb.gtk3.webview' component not found, unable to find any > GUI replacement component > 2981.brian at GN41:/home/brian$ > > Am I missing something? > Do I now have to install something explicitly? > > Thank You > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Oct 28 19:37:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 28 Oct 2020 19:37:31 +0100 Subject: [Gambas-user] Gambas 3 no longer starts on mint 19.3 In-Reply-To: <479903498.3666.1603906084974.JavaMail.zimbra@westwoodsvcs.com> References: <479903498.3666.1603906084974.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <995e2c98-4aad-bc17-a405-3731f99f4d1a@gmail.com> Le 28/10/2020 ? 18:28, Brian G a ?crit : > Hi all, > > I just updated to the latest version daily build of gambas 3 > > This is what happened > > 2981.brian at GN41:/home/brian$ gambas3 gb.gui: error: > 'gb.gtk3.webview' component not found, unable to find any GUI > replacement component 2981.brian at GN41:/home/brian$ > > Am I missing something? Do I now have to install something > explicitly? > > Thank You Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I'm currently working on it... -- Beno?t Minisini From brian at westwoodsvcs.com Wed Oct 28 22:41:01 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 28 Oct 2020 14:41:01 -0700 (PDT) Subject: [Gambas-user] Gambas 3 no longer starts on mint 19.3 In-Reply-To: References: <479903498.3666.1603906084974.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <409202879.3715.1603921261860.JavaMail.zimbra@westwoodsvcs.com> I have tried them. But on most of the systems I use I just have the daily ppa installed and do updates from there. I only have one system usually that I do builds on when I am working on something. Thank You Brian G From: "Bruce Steers" To: "Gambas mailing list" Sent: Wednesday, October 28, 2020 11:31:20 AM Subject: Re: [Gambas-user] Gambas 3 no longer starts on mint 19.3 Have you tried my scripts Brian? [ https://gitlab.com/bsteers4/gambas3-compile-and-install | https://gitlab.com/bsteers4/gambas3-compile-and-install ] These will help make sure you have the dependencies and updates as gambas does. if new dependencies arise you will probably need to do all compile steps from ./reconf-all to make install. On Wed, 28 Oct 2020 at 17:39, Brian G < [ mailto:brian at westwoodsvcs.com | brian at westwoodsvcs.com ] > wrote: Hi all, I just updated to the latest version daily build of gambas 3 This is what happened 2981.brian at GN41:/home/brian$ gambas3 gb.gui: error: 'gb.gtk3.webview' component not found, unable to find any GUI replacement component 2981.brian at GN41:/home/brian$ Am I missing something? Do I now have to install something explicitly? Thank You 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: From brian at westwoodsvcs.com Wed Oct 28 22:41:55 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 28 Oct 2020 14:41:55 -0700 (PDT) Subject: [Gambas-user] Gambas 3 no longer starts on mint 19.3 In-Reply-To: <995e2c98-4aad-bc17-a405-3731f99f4d1a@gmail.com> References: <479903498.3666.1603906084974.JavaMail.zimbra@westwoodsvcs.com> <995e2c98-4aad-bc17-a405-3731f99f4d1a@gmail.com> Message-ID: <1295323866.3718.1603921315365.JavaMail.zimbra@westwoodsvcs.com> Thanks Beno?t! Thank You Brian G ----- Original Message ----- From: "Beno?t Minisini" To: "Gambas mailing list" Sent: Wednesday, October 28, 2020 11:37:31 AM Subject: Re: [Gambas-user] Gambas 3 no longer starts on mint 19.3 Le 28/10/2020 ? 18:28, Brian G a ?crit : > Hi all, > > I just updated to the latest version daily build of gambas 3 > > This is what happened > > 2981.brian at GN41:/home/brian$ gambas3 gb.gui: error: > 'gb.gtk3.webview' component not found, unable to find any GUI > replacement component 2981.brian at GN41:/home/brian$ > > Am I missing something? Do I now have to install something > explicitly? > > Thank You Brian G > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I'm currently working on it... -- Beno?t Minisini ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From kicking177 at gmail.com Thu Oct 29 18:15:21 2020 From: kicking177 at gmail.com (KKing) Date: Thu, 29 Oct 2020 17:15:21 +0000 Subject: [Gambas-user] Button Transparency Message-ID: hButton.Background = Color.Transparent Works great on a debian 10 KDE unit out of box. But on debian 9 LXDE (fairly plain) unit the button is black not transparent. I've installed "compton" on a Debian 9 LXDE unit and now have a "Window Effects" menu item with a plethora of options of which I have no idea what they all mean. But know it can do stuff as funky command in terminal of compton --opacity-rule 45:'class_g *= "X-terminal-emulator"' makes all the other windows faint, until the command is terminated. Anyone know what setting(s) I need to look at to make the button transparent in LXDE? K. From bsteers4 at gmail.com Thu Oct 29 18:57:27 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 29 Oct 2020 17:57:27 +0000 Subject: [Gambas-user] ./reconf-all oddity Message-ID: I've noticed something weird.. When running ./reconf-all i get output like this.... *autoreconf: Entering directory `gb.qt4'* Notice it has a single quote on the right but on the left it has a back-quote And now suddenly when running my compile script if i do the reconf-all part the script exits after the reconf-all process saying there an extra "fi" that shouldn't be there and i've examined the code and there is not an extra fi at all. running all the other processes work fine, just reconf-all causes the problem. I'm wondering if it's an issue that also caused my latest git pipeline attempt to fail for ubuntu-latest. Just thought it worth a mention, probably it's just a cosmetic thing. but who knows? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Oct 29 21:12:41 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 29 Oct 2020 20:12:41 +0000 Subject: [Gambas-user] ./reconf-all oddity In-Reply-To: References: Message-ID: > And now suddenly when running my compile script if i do the reconf-all part the script exits after the reconf-all process saying there an extra "fi" that shouldn't be there and i've examined the code and there is not an extra fi at all. Sorry i just ran the script on mint and it got past reconf-all just fine. It's either Debian of Manjaro it failed on. I'll do some tests and make a more accurate report... BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Oct 29 22:06:46 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 29 Oct 2020 22:06:46 +0100 Subject: [Gambas-user] Button Transparency In-Reply-To: References: Message-ID: Il giorno gio 29 ott 2020 alle ore 18:16 KKing ha scritto: > hButton.Background = Color.Transparent > Works great on a debian 10 KDE unit out of box. > But on debian 9 LXDE (fairly plain) unit the button is black not > transparent. > I've installed "compton" on a Debian 9 LXDE unit and now have a "Window > Effects" menu item with a plethora of options of which I have no idea > what they all mean. But know it can do stuff as funky command in terminal > of > compton --opacity-rule 45:'class_g *= "X-terminal-emulator"' > makes all the other windows faint, until the command is terminated. > Anyone know what setting(s) I need to look at to make the button > transparent in LXDE? > K. > I am not exactly clear what you need to do, maybe the attached project can inspire you Zip to avoid problems with GMail Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: KingTest.zip Type: application/zip Size: 45643 bytes Desc: not available URL: From rwe-sse at osnanet.de Fri Oct 30 08:42:12 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 30 Oct 2020 08:42:12 +0100 Subject: [Gambas-user] Button Transparency In-Reply-To: References: Message-ID: <171ff8d2-f42a-b918-f2f4-f4af707ec65e@osnanet.de> Am 29.10.20 um 18:15 schrieb KKing: > hButton.Background = Color.Transparent > Works great on a debian 10 KDE unit out of box. > But on debian 9 LXDE (fairly plain) unit the button is black not > transparent. > I've installed "compton" on a Debian 9 LXDE unit and now have a "Window > Effects" menu item with a plethora of options of which I have no idea > what they all mean. But know it can do stuff as funky command in > terminal of > compton --opacity-rule 45:'class_g *= "X-terminal-emulator"' > makes all the other windows faint, until the command is terminated. > Anyone know what setting(s) I need to look at to make the button > transparent in LXDE? > K. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Have you tried ToolButton? It has a Picture area plus Text, and it defaults to transparent, i. e. when you add a picture with transparent parts you can still see what's behind. And it is a button after all... I just tried it, and it worked flawlessly. Regards Rolf From kicking177 at gmail.com Fri Oct 30 10:35:32 2020 From: kicking177 at gmail.com (KKing) Date: Fri, 30 Oct 2020 09:35:32 +0000 Subject: [Gambas-user] Button Transparency Message-ID: perfect Rolf... ToolButton does the job for me. From bsteers4 at gmail.com Fri Oct 30 14:12:52 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 30 Oct 2020 13:12:52 +0000 Subject: [Gambas-user] Makefile speedup.. Message-ID: Hi all. Beno?t , would you consider the following... I've made a small change to my makefile for the mime install stuff to speed it up. (Lines 42-51) I've used xdg-mime query to check if the scripter types for gbs and gbw exist and not do the install if already set up as it seems to take some time on slower machines and does not seem needed. (makefile attached) That combined with 2 blank files in the mime dir blank.gbs and blank.gbw This speeds up the install nicely. Well the end anyway. I cannot find the part at the beginning of the install where it installs the main gambas executable mime type to do the same for that though. Would you accept this change if i offered the merge? Wishing Well BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile Type: application/octet-stream Size: 14967 bytes Desc: not available URL: From g4mba5 at gmail.com Fri Oct 30 14:16:38 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 30 Oct 2020 14:16:38 +0100 Subject: [Gambas-user] Makefile speedup.. In-Reply-To: References: Message-ID: Le 30/10/2020 ? 14:12, Bruce Steers a ?crit?: > Hi all. > Beno?t , would you consider the following... > > I've made a small change to my makefile for the mime install stuff to > speed it up. (Lines 42-51) > * > * > I've used xdg-mime query to check if the scripter types for gbs and gbw > exist and not do the install if already set up as it seems to take some > time on slower machines and does not seem needed. > **(makefile attached) > > That combined with 2 blank files in the mime dir blank.gbs and blank.gbw > > This speeds up the install nicely. > > Well the end anyway. > I cannot find the part at the beginning of the install where it installs > the main gambas executable mime type to do the same for that though. > > Would you accept this change if i offered the merge? > > Wishing Well > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > You must not modify the generated file like 'Makefile'. Do you know how 'autoconf' works? -- Beno?t Minisini From bsteers4 at gmail.com Fri Oct 30 14:29:24 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 30 Oct 2020 13:29:24 +0000 Subject: [Gambas-user] Makefile speedup.. In-Reply-To: References: Message-ID: Sorry i meant Makefile.am It's a similar change to the last one that got the menu item install working, i saw no major issue like you suggest. i ran all from ./reconf-all to make install and there was no error. I know autoconf uses the app/Makefile.am to generate a man/Makefile.am script. I know it worked a treat and made make install a lot quicker. I know I'm a cheeky monkey , but that's just how i'm built ;) I just like to help make things better if i can. Much love :) BruceS On Fri, 30 Oct 2020 at 13:17, Beno?t Minisini wrote: > Le 30/10/2020 ? 14:12, Bruce Steers a ?crit : > > Hi all. > > Beno?t , would you consider the following... > > > > I've made a small change to my makefile for the mime install stuff to > > speed it up. (Lines 42-51) > > * > > * > > I've used xdg-mime query to check if the scripter types for gbs and gbw > > exist and not do the install if already set up as it seems to take some > > time on slower machines and does not seem needed. > > **(makefile attached) > > > > That combined with 2 blank files in the mime dir blank.gbs and blank.gbw > > > > This speeds up the install nicely. > > > > Well the end anyway. > > I cannot find the part at the beginning of the install where it installs > > the main gambas executable mime type to do the same for that though. > > > > Would you accept this change if i offered the merge? > > > > Wishing Well > > BruceS > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > You must not modify the generated file like 'Makefile'. Do you know how > 'autoconf' works? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Oct 30 14:32:02 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 30 Oct 2020 13:32:02 +0000 Subject: [Gambas-user] Makefile speedup.. In-Reply-To: References: Message-ID: My appologies Beno?t i attached the wrong file :( i meant makefile.am. here is the correct attachment. BruceS > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > You must not modify the generated file like 'Makefile'. Do you know how > 'autoconf' works? > > -- > Beno?t Minisini > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.am Type: application/octet-stream Size: 40 bytes Desc: not available URL: From bsteers4 at gmail.com Fri Oct 30 14:35:39 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 30 Oct 2020 13:35:39 +0000 Subject: [Gambas-user] Makefile speedup.. In-Reply-To: References: Message-ID: i've pushed it to my fork https://gitlab.com/bsteers4/gambas master branch has an updated sh mode file, i removed the quote stuff, just left the highlight addition. makefile-speedup branch has the makefile.am modification. On Fri, 30 Oct 2020 at 13:32, Bruce Steers wrote: > > My appologies Beno?t i attached the wrong file :( > i meant makefile.am. > > here is the correct attachment. > > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > >> >> You must not modify the generated file like 'Makefile'. Do you know how >> 'autoconf' works? >> >> -- >> Beno?t Minisini >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Oct 30 14:49:18 2020 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 30 Oct 2020 13:49:18 +0000 Subject: [Gambas-user] Makefile speedup.. In-Reply-To: References: Message-ID: After my last posts i'm going to say sorry, i don't seem to know much. not even how to post a correct attachment it seems. :-\ should have just gone for a link.. https://gitlab.com/bsteers4/gambas/-/blob/makefile-speedup/app/Makefile.am I think i need more coffee. Appologies BruceS You must not modify the generated file like 'Makefile'. Do you know how > 'autoconf' works? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Oct 31 01:48:30 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 31 Oct 2020 11:18:30 +1030 Subject: [Gambas-user] Float equality Message-ID: (Having bad brain day) What is trhe most efficient way to check for equality between two float values, presuming some arbitryary precision? tia bruce From jussi.lahtinen at gmail.com Sat Oct 31 03:14:01 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 31 Oct 2020 04:14:01 +0200 Subject: [Gambas-user] Float equality In-Reply-To: References: Message-ID: If Abs(fA - fB) <= fPrecision Then Print "Equal" What do you mean by efficient? Fastest? Jussi On Sat, Oct 31, 2020 at 2:49 AM Bruce wrote: > (Having bad brain day) > > What is trhe most efficient way to check for equality between two float > values, presuming some arbitryary precision? > > tia > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Oct 31 03:16:36 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 31 Oct 2020 04:16:36 +0200 Subject: [Gambas-user] Float equality In-Reply-To: References: Message-ID: Umm.. If signs can be different then; Abs(Abs(fA) - Abs(fB)) <= fPrecision Then Print "Equal" Jussi On Sat, Oct 31, 2020 at 4:14 AM Jussi Lahtinen wrote: > If Abs(fA - fB) <= fPrecision Then Print "Equal" > > What do you mean by efficient? Fastest? > > Jussi > > On Sat, Oct 31, 2020 at 2:49 AM Bruce wrote: > >> (Having bad brain day) >> >> What is trhe most efficient way to check for equality between two float >> values, presuming some arbitryary precision? >> >> tia >> bruce >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Oct 31 03:25:09 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 31 Oct 2020 12:55:09 +1030 Subject: [Gambas-user] Float equality In-Reply-To: References: Message-ID: On 31/10/20 12:44 pm, Jussi Lahtinen wrote: > If Abs(fA - fB) <= fPrecision Then Print "Equal" > > What do you mean by efficient? Fastest? > > Jussi Efficient... fastest?, least code?, I don't know actually. I was typing a line as in your answer above and it suddenly looked very "clunky". The longer I looked at it the worse it looked, so I thought I'd better check my sanity level. Thanks bruce From jussi.lahtinen at gmail.com Sat Oct 31 03:25:30 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 31 Oct 2020 04:25:30 +0200 Subject: [Gambas-user] Float equality In-Reply-To: References: Message-ID: This is faster: If (fA - fPrecision) < fB And If (fA + fPrecision) > fB Then Print "Equal" Jussi On Sat, Oct 31, 2020 at 4:16 AM Jussi Lahtinen wrote: > Umm.. If signs can be different then; Abs(Abs(fA) - Abs(fB)) <= > fPrecision Then Print "Equal" > > > Jussi > > On Sat, Oct 31, 2020 at 4:14 AM Jussi Lahtinen > wrote: > >> If Abs(fA - fB) <= fPrecision Then Print "Equal" >> >> What do you mean by efficient? Fastest? >> >> Jussi >> >> On Sat, Oct 31, 2020 at 2:49 AM Bruce wrote: >> >>> (Having bad brain day) >>> >>> What is trhe most efficient way to check for equality between two float >>> values, presuming some arbitryary precision? >>> >>> tia >>> bruce >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Oct 31 04:16:08 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 31 Oct 2020 13:46:08 +1030 Subject: [Gambas-user] Float equality In-Reply-To: References: Message-ID: <7db47c94-55fa-3f7e-779e-53e2ef9d813e@gmail.com> On 31/10/20 12:55 pm, Jussi Lahtinen wrote: > This is faster: > If (fA - fPrecision) < fB And If (fA + fPrecision) > fB Then Print "Equal" > > Jussi > Ooh I like that! Gave it a check on 20,000 float pairs and it is significantly faster! tx bruce From adamnt42 at gmail.com Sat Oct 31 04:59:26 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 31 Oct 2020 14:29:26 +1030 Subject: [Gambas-user] Postgres - obscure problem with oids Message-ID: I have a table ("tableext") which is an "extension" to the system pg_catalog pg_class table. tableext relates to the pg_class on 1:1 basis via the pg_class OID. Inn the tableext class that oid (called "tname") a) is the primary key and b) has a datatype of "regclass", IOW the table displays the OID as a table name instead of an OID. That is all standard stuff in postgres whwn dealing with the catalog. Here's my problem. In Gambas I am trying to update a row in this tableext table. I can get an updateable result using hBuffer = $srcConn.Edit("dd.tableext", "tname = &1::regclass", txtTableName.Text) In other words I am forcing the integer OID from the tname. That's fine and I get an updatable cursor. But when I get to the hBuffer.Update point Gambas is trying to use the string tname and I cant see how to tell it to pass the ::regclass back to the postgres server, A sample db.debug output of the query it is trying to execute is: UPDATE "dd"."tableext" SET "cat" = $$LOOKUP$$, "facade" = $$Reference$$, "is audited" = FALSE, "strength" = $$STRONG$$, "aspect" = $$Reference$$, "comments" = NULL, "disposition" = NULL, "centity" = NULL, "boclass" = $$BPGroups$$ WHERE "tname" = $$bpgroups$$ I need that last line to be WHERE "tname" = $$bpgroups$$::regclass. Any clues (apart from writing specific update queries which is too onerous for the number of thesse I have to do). tia bruce From adamnt42 at gmail.com Sat Oct 31 05:05:55 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 31 Oct 2020 14:35:55 +1030 Subject: [Gambas-user] Postgres : Connection.Tables Message-ID: <557f78f8-f7c6-ea81-ba4c-827dadb759e9@gmail.com> The Connection.Tables property returns a "a virtual collection used for managing the tables of the database". However this collection includes tables, views and materialised views. The .Connection.Tables["name"].Type property is always empty ("") so is there any way to tell if a Table is a real table or a view? tia bruce From buster6seven at gmail.com Sat Oct 31 05:26:27 2020 From: buster6seven at gmail.com (Shane) Date: Sat, 31 Oct 2020 15:26:27 +1100 Subject: [Gambas-user] SDL2 Message-ID: <80d6a785-7174-9a80-c1df-472960ba25f0@gmail.com> Hi everyone would some one like to add a GetDeltaTime property to the SDL2 component Cheers Shane From g4mba5 at gmail.com Sat Oct 31 13:06:56 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 31 Oct 2020 13:06:56 +0100 Subject: [Gambas-user] Postgres - obscure problem with oids In-Reply-To: References: Message-ID: Le 31/10/2020 ? 04:59, Bruce a ?crit?: > I have a table ("tableext") which is an "extension" to the system > pg_catalog pg_class table. tableext relates to the pg_class on 1:1 basis > via the pg_class OID. Inn the tableext class that oid (called "tname") > a) is the primary key and > b) has a datatype of "regclass", IOW the table displays the OID as a > table name instead of an OID. > That is all standard stuff in postgres whwn dealing with the catalog. > > Here's my problem. In Gambas I am trying to update a row in this > tableext table. > > I can get an updateable result using > hBuffer = $srcConn.Edit("dd.tableext", "tname = &1::regclass", > txtTableName.Text) > > In other words I am forcing the integer OID from the tname. That's fine > and I get an updatable cursor. > > But when I get to the hBuffer.Update point Gambas is trying to use the > string tname and I cant see how to tell it to pass the ::regclass back > to the postgres server, A sample db.debug output of the query it is > trying to execute is: > > UPDATE "dd"."tableext" > SET "cat" = $$LOOKUP$$, > ??? "facade" = $$Reference$$, > ??? "is audited" = FALSE, > ??? "strength" = $$STRONG$$, > ??? "aspect" = $$Reference$$, > ??? "comments" = NULL, > ??? "disposition" = NULL, > ??? "centity" = NULL, > ??? "boclass" = $$BPGroups$$ > WHERE "tname" = $$bpgroups$$ > > > I need that last line to be > > WHERE "tname" = $$bpgroups$$::regclass. > > Any clues (apart from writing specific update queries which is too > onerous for the number of thesse I have to do). > > tia > bruce > You have to write your own update request. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Oct 31 13:07:27 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 31 Oct 2020 13:07:27 +0100 Subject: [Gambas-user] Postgres : Connection.Tables In-Reply-To: <557f78f8-f7c6-ea81-ba4c-827dadb759e9@gmail.com> References: <557f78f8-f7c6-ea81-ba4c-827dadb759e9@gmail.com> Message-ID: <5df8ea49-1f4a-792e-43aa-8a20d8f58765@gmail.com> Le 31/10/2020 ? 05:05, Bruce a ?crit?: > The Connection.Tables property returns a "a virtual collection used for > managing the tables of the database". However this collection includes > tables, views and materialised views. The > .Connection.Tables["name"].Type property is always empty ("") so > is there any way to tell if a Table is a real table or a view? > > tia > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Not at the moment. -- Beno?t Minisini From g4mba5 at gmail.com Sat Oct 31 13:10:16 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 31 Oct 2020 13:10:16 +0100 Subject: [Gambas-user] SDL2 In-Reply-To: <80d6a785-7174-9a80-c1df-472960ba25f0@gmail.com> References: <80d6a785-7174-9a80-c1df-472960ba25f0@gmail.com> Message-ID: <69c6f0f8-8192-de0e-f1cd-16b38ec7d5c4@gmail.com> Le 31/10/2020 ? 05:26, Shane a ?crit?: > Hi everyone would some one like to add a GetDeltaTime property to the > SDL2 component > > Cheers Shane > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- I don't see any function having that name in the SDL2 documentation... What should it do? -- Beno?t Minisini From ujlain at gmail.com Sat Oct 31 13:22:25 2020 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Sat, 31 Oct 2020 17:52:25 +0530 Subject: [Gambas-user] I am unable to run Gambas script , is 3.15.2 carrying gbs3 ? Message-ID: <26091820-841d-bd4c-88a1-113c43def249@gmail.com> I am unable to run Gambas script ??? #!/usr/bin/env gbs3 ??? Print "Hello World!" saved above script as testGB and run as (after chmod +x testGB) ./testGB /usr/bin/env: ?gbs3?: No such file or directory What's wrong here ? AlsoI get no response when I do *whereis **gbs3* regards-UZI ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Oct 31 13:34:29 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 31 Oct 2020 13:34:29 +0100 Subject: [Gambas-user] I am unable to run Gambas script , is 3.15.2 carrying gbs3 ? In-Reply-To: <26091820-841d-bd4c-88a1-113c43def249@gmail.com> References: <26091820-841d-bd4c-88a1-113c43def249@gmail.com> Message-ID: Le 31/10/2020 ? 13:22, Vinode Singh Ujlain a ?crit?: > I am unable to run Gambas script > > ??? #!/usr/bin/env gbs3 > ??? Print "Hello World!" > > saved above script as testGB and run as (after chmod +x testGB) > > ./testGB > > /usr/bin/env: ?gbs3?: No such file or directory > > What's wrong here ? AlsoI get no response when I do *whereis **gbs3* > > regards-UZI > ------------------------------------------------------------------------ > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > How did you install Gambas? -- Beno?t Minisini From ujlain at gmail.com Sat Oct 31 14:00:20 2020 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Sat, 31 Oct 2020 18:30:20 +0530 Subject: [Gambas-user] I am unable to run Gambas script , is 3.15.2 carrying gbs3 ? In-Reply-To: <26091820-841d-bd4c-88a1-113c43def249@gmail.com> References: <26091820-841d-bd4c-88a1-113c43def249@gmail.com> Message-ID: I searched and found *gambas3-scripter* wasn't installed by the default installer .. *works fine now* *regards-UZI* ------------------------------------------------------------------------ On 31/10/20 5:52 pm, Vinode Singh Ujlain wrote: > I am unable to run Gambas script > > ??? #!/usr/bin/env gbs3 > ??? Print "Hello World!" > > saved above script as testGB and run as (after chmod +x testGB) > > ./testGB > > /usr/bin/env: ?gbs3?: No such file or directory > > What's wrong here ? AlsoI get no response when I do *whereis **gbs3* > > regards-UZI > ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Oct 31 17:27:22 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 1 Nov 2020 02:57:22 +1030 Subject: [Gambas-user] Postgres - obscure problem with oids In-Reply-To: References: Message-ID: On 31/10/20 10:36 pm, Beno?t Minisini wrote: > Le 31/10/2020 ? 04:59, Bruce a ?crit?: >> I have a table ("tableext") which is an "extension" to the system >> pg_catalog pg_class table. tableext relates to the pg_class on 1:1 >> basis via the pg_class OID. Inn the tableext class that oid (called >> "tname") >> a) is the primary key and >> b) has a datatype of "regclass", IOW the table displays the OID as a >> table name instead of an OID. >> That is all standard stuff in postgres whwn dealing with the catalog. >> >> Here's my problem. In Gambas I am trying to update a row in this >> tableext table. >> >> I can get an updateable result using >> hBuffer = $srcConn.Edit("dd.tableext", "tname = &1::regclass", >> txtTableName.Text) >> >> In other words I am forcing the integer OID from the tname. That's >> fine and I get an updatable cursor. >> >> But when I get to the hBuffer.Update point Gambas is trying to use the >> string tname and I cant see how to tell it to pass the ::regclass back >> to the postgres server, A sample db.debug output of the query it is >> trying to execute is: >> >> UPDATE "dd"."tableext" >> SET "cat" = $$LOOKUP$$, >> ???? "facade" = $$Reference$$, >> ???? "is audited" = FALSE, >> ???? "strength" = $$STRONG$$, >> ???? "aspect" = $$Reference$$, >> ???? "comments" = NULL, >> ???? "disposition" = NULL, >> ???? "centity" = NULL, >> ???? "boclass" = $$BPGroups$$ >> WHERE "tname" = $$bpgroups$$ >> >> >> I need that last line to be >> >> WHERE "tname" = $$bpgroups$$::regclass. >> >> Any clues (apart from writing specific update queries which is too >> onerous for the number of thesse I have to do). >> >> tia >> bruce >> > > You have to write your own update request. > > Regards, > Ah well. ;-( b From adamnt42 at gmail.com Sat Oct 31 21:56:03 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 1 Nov 2020 07:26:03 +1030 Subject: [Gambas-user] Postgres : Connection.Tables In-Reply-To: <5df8ea49-1f4a-792e-43aa-8a20d8f58765@gmail.com> References: <557f78f8-f7c6-ea81-ba4c-827dadb759e9@gmail.com> <5df8ea49-1f4a-792e-43aa-8a20d8f58765@gmail.com> Message-ID: On 31/10/20 10:37 pm, Beno?t Minisini wrote: > Le 31/10/2020 ? 05:05, Bruce a ?crit?: >> The Connection.Tables property returns a "a virtual collection used >> for managing the tables of the database". However this collection >> includes tables, views and materialised views. The >> .Connection.Tables["name"].Type property is always empty ("") so >> is there any way to tell if a Table is a real table or a view? >> >> tia >> bruce >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Not at the moment. > OK, well here is what I've developed. (Also attached as a text file) --------------------------- /***************************************************************************** table_type() Returns or sets the table type. is the database handle. is the table name. is the new type This function returns the table type. NOTE: Postgresql does not allow setting the table type under normal circumstances. *****************************************************************************/ static char *table_type(DB_DATABASE *db, const char *table, const char *newtype) { if (newtype) { GB.Error("PostgreSQL does not allow setting the table types"); return NULL; } const char *query ="SELECT c.relname, n.nspname, CASE c.relkind WHEN 'r' THEN 'BASE TABLE' WHEN 'v' THEN 'VIEW' WHEN 'm' THEN 'MATERIALIZED VIEW' END FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN ('r', 'v', 'm') AND n.nspname <> 'information_schema' AND n.nspname !~ 'pg_toast' AND c.relname = '&1' AND n.nspname = '&2';"; PGresult *res; char *schema; get_table_schema(&table, &schema); //fprintf(stderr, "get_table_schema: %s %s\n", schema, table); if (do_query(db, "Unable to check table: &1", &res, query, 2, table, schema)) return NULL; if (PQntuples(res) > 1) { GB.Error("Non-existant or ambiguous table name - &1", table); return NULL; } char *type = GB.NewZeroString(PQgetvalue(res, 0, 2)); //fprintf(stderr, "get_table_type: %s\n", type); PQclear(res); ; return type; } --------------------------------- Hope you like it cheers bruce -------------- next part -------------- /***************************************************************************** table_type() Returns or sets the table type. is the database handle.
is the table name. is the new type This function returns the table type. NOTE: Postgresql does not allow setting the table type under normal circumstances. *****************************************************************************/ static char *table_type(DB_DATABASE *db, const char *table, const char *newtype) { if (newtype) { GB.Error("PostgreSQL does not allow setting the table types"); return NULL; } const char *query ="SELECT c.relname, n.nspname, CASE c.relkind WHEN 'r' THEN 'BASE TABLE' WHEN 'v' THEN 'VIEW' WHEN 'm' THEN 'MATERIALIZED VIEW' END FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN ('r', 'v', 'm') AND n.nspname <> 'information_schema' AND n.nspname !~ 'pg_toast' AND c.relname = '&1' AND n.nspname = '&2';"; PGresult *res; char *schema; get_table_schema(&table, &schema); //fprintf(stderr, "get_table_schema: %s %s\n", schema, table); if (do_query(db, "Unable to check table: &1", &res, query, 2, table, schema)) return NULL; if (PQntuples(res) > 1) { GB.Error("Non-existant or ambiguous table name - &1", table); return NULL; } char *type = GB.NewZeroString(PQgetvalue(res, 0, 2)); //fprintf(stderr, "get_table_type: %s\n", type); PQclear(res); ; return type; } From buster6seven at gmail.com Sat Oct 31 23:09:34 2020 From: buster6seven at gmail.com (Shane) Date: Sun, 1 Nov 2020 09:09:34 +1100 Subject: [Gambas-user] SDL2 In-Reply-To: <69c6f0f8-8192-de0e-f1cd-16b38ec7d5c4@gmail.com> References: <80d6a785-7174-9a80-c1df-472960ba25f0@gmail.com> <69c6f0f8-8192-de0e-f1cd-16b38ec7d5c4@gmail.com> Message-ID: <2133bf9a-18d5-4d3e-1b05-3d91854d8443@gmail.com> Hi? Beno?t I guess I was a bit ambitious with that request but if we can get access to sdl2 SDL_GetTicks() then we could calculate Delta Time with is the time since the last frame cheers Shane On 31/10/20 11:10 pm, Beno?t Minisini wrote: > Le 31/10/2020 ? 05:26, Shane a ?crit?: >> Hi everyone would some one like to add a GetDeltaTime property to the >> SDL2 component >> >> Cheers Shane >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > I don't see any function having that name in the SDL2 documentation... > What should it do? > From g4mba5 at gmail.com Sat Oct 31 23:17:45 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 31 Oct 2020 23:17:45 +0100 Subject: [Gambas-user] Postgres : Connection.Tables In-Reply-To: References: <557f78f8-f7c6-ea81-ba4c-827dadb759e9@gmail.com> <5df8ea49-1f4a-792e-43aa-8a20d8f58765@gmail.com> Message-ID: Le 31/10/2020 ? 21:56, Bruce a ?crit?: > On 31/10/20 10:37 pm, Beno?t Minisini wrote: >> Le 31/10/2020 ? 05:05, Bruce a ?crit?: >>> The Connection.Tables property returns a "a virtual collection used >>> for managing the tables of the database". However this collection >>> includes tables, views and materialised views. The >>> .Connection.Tables["name"].Type property is always empty ("") so >>> is there any way to tell if a Table is a real table or a view? >>> >>> tia >>> bruce >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> Not at the moment. >> > > OK, well here is what I've developed. (Also attached as a text file) > --------------------------- > /***************************************************************************** > > > ????table_type() > > ????Returns or sets the table type. > > ???? is the database handle. > ????
is the table name. > ???? is the new type > > ????This function returns the table type. > > ????NOTE: Postgresql does not allow setting the table type under normal > circumstances. > > *****************************************************************************/ > > > static char *table_type(DB_DATABASE *db, const char *table, const char > *newtype) > { > ????if (newtype) > ????{ > ??????? GB.Error("PostgreSQL does not allow setting the table types"); > > ??????? return NULL; > ????} > > ????const char *query ="SELECT c.relname, n.nspname, CASE c.relkind > WHEN 'r' THEN 'BASE TABLE' WHEN 'v' THEN 'VIEW' WHEN 'm' THEN > 'MATERIALIZED VIEW' END FROM pg_catalog.pg_class c LEFT JOIN > pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN > ('r', 'v', 'm') AND n.nspname <> 'information_schema' AND n.nspname !~ > 'pg_toast' AND c.relname = '&1' AND n.nspname = '&2';"; > > ????PGresult *res; > ????char *schema; > > ????get_table_schema(&table, &schema); > ????//fprintf(stderr, "get_table_schema: %s %s\n", schema, table); > > ????if (do_query(db, "Unable to check table: &1", &res, query, 2, > table, schema)) > ??????? return NULL; > > ????if (PQntuples(res) > 1) > ????{ > ??????? GB.Error("Non-existant or ambiguous table name - &1", table); > ??????? return NULL; > ????} > > ????char *type = GB.NewZeroString(PQgetvalue(res, 0, 2)); > ????//fprintf(stderr, "get_table_type: %s\n", type); > > ????PQclear(res); > ????; > ????return type; > > } > --------------------------------- > > Hope you like it > > cheers > bruce > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > The "table type" has actually nothing to do with whether the table is a view or not, but is related to the storing engine used. It's a MySQL thing, and afaik PostgreSQL stores all tables the same way. The concept of table view must be introduced in another way that does not exist at the moment. Regards, -- Beno?t Minisini