From t.lee.davidson at gmail.com Wed Mar 1 00:24:40 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 28 Feb 2023 18:24:40 -0500 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <5ee2097d-14b3-e923-663a-c154ed519269@deganius.de> References: <5120aad5-882a-7fa4-ab25-10bb7e0f9de4@gmail.com> <9c7b8af0-d77e-c117-b526-05ead2fe6f80@gmail.com> <1d1d60c1-8464-2314-a477-7f7381d841ab@gmail.com> <5ee2097d-14b3-e923-663a-c154ed519269@deganius.de> Message-ID: <84b7b438-ee67-3976-642b-73d2494d2233@gmail.com> On 2/28/23 17:33, Christof Thalhofer wrote: > >> I?was?referring?to?a?timeout?on?the?connection?itself,?ie.?the?time >> that?must?pass?before?a?stale/inactive?connection?is?freed?by?the >> server?so?a?new?one?can?be?created.?If?'max_connections'?has?been >> reached,?no?new?connections?can?be?created?until?one?or?more?are >> freed. > > Yes, but this would be reproducible. But it is not. It happens by random. And it can happen in the first second. Usually network > timeouts happen after a couple of seconds at minimum due to the inherent unreliability?of?network?connections > > Ok,?a?new?observation: > > If?it?happens?this?gambas?process?runs?at?100?percent?forever: > > /usr/bin/gbx3 -g -f /tmp/gambas.1000/gambas3-ide-debug-6552. -H /home/doms/mynewpage.de/webapp > > I?can?hear?the?fan?hissing?right?now. > > Alles?Gute > > Christof?Thalhofer Okay. But, it may only seem random merely because we don't know what triggers it. I don't know exactly how the embedded server works, but perhaps is uses some sort of caching to maintain its state (and connection data). If so, and the cache isn't getting cleared properly between launches, that could be part of the reason it chokes. How long are you waiting between relaunches/retries? -- Lee From t.lee.davidson at gmail.com Wed Mar 1 00:37:05 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 28 Feb 2023 18:37:05 -0500 Subject: [Gambas-user] WebTable Background color of row selection In-Reply-To: <20230228192349.M24633@455.co.il> References: <20230227194522.M71388@455.co.il> <20230227210842.M54807@455.co.il> <9082daee-4c4b-51f7-cef3-b7ba635695b9@gmail.com> <20230228055140.M89974@455.co.il> <20230228182129.M11581@455.co.il> <20230228192349.M24633@455.co.il> Message-ID: <5fdddba7-d420-c7a3-0459-11571afc0fdf@gmail.com> On 2/28/23 14:28, Mayost Sharon wrote: > Hello > > It is not good that I define the yellow background color in both cells > I want the table to be: > Column 0 has a yellow background color > Column 1 has a white background color > But only when I select a certain row then it will color the entire row I selected to a blue background color > > I was able to do what I want but the problem is that it only works when I execute > Me.Reload() > And it doesn't seem successful because it refreshes the whole page every time > Attached is an example of what I did > > Is there a better way? > > Thank you Try Me.Refresh. -- Lee From chrisml at deganius.de Wed Mar 1 08:30:25 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 1 Mar 2023 08:30:25 +0100 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <84b7b438-ee67-3976-642b-73d2494d2233@gmail.com> References: <5120aad5-882a-7fa4-ab25-10bb7e0f9de4@gmail.com> <9c7b8af0-d77e-c117-b526-05ead2fe6f80@gmail.com> <1d1d60c1-8464-2314-a477-7f7381d841ab@gmail.com> <5ee2097d-14b3-e923-663a-c154ed519269@deganius.de> <84b7b438-ee67-3976-642b-73d2494d2233@gmail.com> Message-ID: Am 01.03.23 um 00:24 schrieb T Lee Davidson: > Okay. But, it may only seem random merely because we don't know what > triggers it. > > I don't know exactly how the embedded server works, but perhaps is > uses some sort of caching to maintain its state (and connection > data). If so, and the cache isn't getting cleared properly between > launches, that could be part of the reason it chokes. > > How long are you waiting between relaunches/retries? Between two seconds and three days. :-) Ok. Claus provided an application with which it happens. Did you test it? I think we should write a bug and add the application there. What I can just imagine is that there is an infinite loop anywhere, my observation speaks for it. The ugly thing is that it happens by random which makes it difficult to debug. It can happen at the first request or one can request 50 times from the application until it occurs ... One thing is sure: it happens. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From fabien.toniutti at free.fr Wed Mar 1 08:31:15 2023 From: fabien.toniutti at free.fr (Fabien TONIUTTI) Date: Wed, 1 Mar 2023 08:31:15 +0100 Subject: [Gambas-user] Drop text on not selected line of ListBox Message-ID: <8d27eae0-2ac4-f29a-04b8-a4952b9ad674@free.fr> !! All in the title !! GB3.18 What should be code written in Drop event method to change text to a non selected line in ListBox? (i think line should? be selected during mouseup) exemple: Public Sub Label1_Drag() Last.Drag(Label1.Text) End Public Sub ListBox1_Drop() "????????" = Drag.data End Thx a lot for your support From sharon at 455.co.il Wed Mar 1 11:44:20 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 1 Mar 2023 12:44:20 +0200 Subject: [Gambas-user] WebTable Background color of row selection In-Reply-To: <5fdddba7-d420-c7a3-0459-11571afc0fdf@gmail.com> References: <20230227194522.M71388@455.co.il> <20230227210842.M54807@455.co.il> <9082daee-4c4b-51f7-cef3-b7ba635695b9@gmail.com> <20230228055140.M89974@455.co.il> <20230228182129.M11581@455.co.il> <20230228192349.M24633@455.co.il> <5fdddba7-d420-c7a3-0459-11571afc0fdf@gmail.com> Message-ID: <20230301103503.M2702@455.co.il> Hello Me.Refresh It works beautifully Sometimes when I scroll the table down with the scroll and then immediately I select a row it does not show me the selection Then I keep scrolling and I see that he has selected another row Is this the end of the solution or should we look for a better solution? It seems to me that it would be better if there was a CSS way to fix it But I couldn't figure out how to do it thank you very much ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Tue, 28 Feb 2023 18:37:05 -0500 Subject: Re: [Gambas-user] WebTable Background color of row selection > On 2/28/23 14:28, Mayost Sharon wrote: > > Hello > > > > It is not good that I define the yellow background color in both cells > > I want the table to be: > > Column 0 has a yellow background color > > Column 1 has a white background color > > But only when I select a certain row then it will color the entire row I selected to a blue background color > > > > I was able to do what I want but the problem is that it only works when I execute > > Me.Reload() > > And it doesn't seem successful because it refreshes the whole page every time > > Attached is an example of what I did > > > > Is there a better way? > > > > Thank you > > Try Me.Refresh. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- From sharon at 455.co.il Wed Mar 1 11:47:21 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 1 Mar 2023 12:47:21 +0200 Subject: [Gambas-user] WebTable Background color of row selection In-Reply-To: <5fdddba7-d420-c7a3-0459-11571afc0fdf@gmail.com> References: <20230227194522.M71388@455.co.il> <20230227210842.M54807@455.co.il> <9082daee-4c4b-51f7-cef3-b7ba635695b9@gmail.com> <20230228055140.M89974@455.co.il> <20230228182129.M11581@455.co.il> <20230228192349.M24633@455.co.il> <5fdddba7-d420-c7a3-0459-11571afc0fdf@gmail.com> Message-ID: <20230301104721.M25335@455.co.il> Hello Sorry again, I forgot to attach the sample Now the sample is attached Me.Refresh It works beautifully Sometimes when I scroll the table down with the scroll and then immediately I select a row it does not show me the selection Then I keep scrolling and I see that he has selected another row Is this the end of the solution or should we look for a better solution? It seems to me that it would be better if there was a CSS way to fix it But I couldn't figure out how to do it thank you very much ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Tue, 28 Feb 2023 18:37:05 -0500 Subject: Re: [Gambas-user] WebTable Background color of row selection > On 2/28/23 14:28, Mayost Sharon wrote: > > Hello > > > > It is not good that I define the yellow background color in both cells > > I want the table to be: > > Column 0 has a yellow background color > > Column 1 has a white background color > > But only when I select a certain row then it will color the entire row I selected to a blue background color > > > > I was able to do what I want but the problem is that it only works when I execute > > Me.Reload() > > And it doesn't seem successful because it refreshes the whole page every time > > Attached is an example of what I did > > > > Is there a better way? > > > > Thank you > > Try Me.Refresh. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: test3.zip Type: application/zip Size: 18651 bytes Desc: not available URL: From bsteers4 at gmail.com Wed Mar 1 12:40:42 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 1 Mar 2023 11:40:42 +0000 Subject: [Gambas-user] Drop text on not selected line of ListBox In-Reply-To: <8d27eae0-2ac4-f29a-04b8-a4952b9ad674@free.fr> References: <8d27eae0-2ac4-f29a-04b8-a4952b9ad674@free.fr> Message-ID: On Wed, 1 Mar 2023 at 07:32, Fabien TONIUTTI wrote: > !! All in the title !! GB3.18 > > What should be code written in Drop event method to change text to a non > selected line in ListBox? > > (i think line should be selected during mouseup) > > exemple: > > Public Sub Label1_Drag() > Last.Drag(Label1.Text) > End > > Public Sub ListBox1_Drop() > "????????" = Drag.data > End > > Thx a lot for your support > you can use FindChild to get the gridview object inside the listbox then use gridview RowAt to get the item. Public Sub ListBox1_Drop() Dim gv As Gridview = ListBox1.FindChild(Drag.X, Drag.Y) Dim iIndex As Integer = gv.RowAt(Drag.Y) ListBox1[iIndex].Text = Trim(Drag.Paste("text/plain")) End BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Wed Mar 1 13:14:04 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Wed, 1 Mar 2023 13:14:04 +0100 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <1dcffe65-5643-eca3-7f8f-dee384da6b7c@t-online.de> References: <1dcffe65-5643-eca3-7f8f-dee384da6b7c@t-online.de> Message-ID: <954f2b39-0ab0-7540-2694-01883c43bdb2@freenet.de> On /Wed Mar 1 08:30:25 CET 2023 Christof Thalhofer wrote: > think we should write a bug and add the application there. I agree and take care of it. The problem seems to relate to the required multiple requests to get embedded images, media and JavaScripts to the browser which gb.httpd has to handle file by file through a single socket (HTTP/1.0). For the time being all these files have to be located in the .public directory, which is another gb.httpd usability issue. But I suggest not to stress this before the main problem is solved. Best regards Claus From sharon at 455.co.il Wed Mar 1 13:41:55 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 1 Mar 2023 14:41:55 +0200 Subject: [Gambas-user] Event WebTable.Click Message-ID: <20230301123541.M4136@455.co.il> Hello I am trying that when I click on an element inside a cell in the table it will respond to the click event Clicking with the mouse does not trigger the click event Even if I click on the cell and if I click on the button that I put inside the cell Is there a bug? Or I misunderstood what the click event is supposed to do I am attaching an example file Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: webtable1.zip Type: application/zip Size: 17577 bytes Desc: not available URL: From bsteers4 at gmail.com Wed Mar 1 13:50:17 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 1 Mar 2023 12:50:17 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230301123541.M4136@455.co.il> References: <20230301123541.M4136@455.co.il> Message-ID: On Wed, 1 Mar 2023 at 12:25, Mayost Sharon wrote: > Hello > > I am trying that when I click on an element inside a cell in the table it > will respond to the click event > > Clicking with the mouse does not trigger the click event > Even if I click on the cell and if I click on the button that I put inside > the cell > > Is there a bug? Or I misunderstood what the click event is supposed to do > > I am attaching an example file > > Thank you > you probably need to use Data.Control so it configures properly and not just insert a button using Data.Html This works and fires the WebTable_Click event okay. Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) Select Case Column Case 0 Data.Background = Color.SetAlpha(Color.Yellow, 192) Data.Text = "Data: " & CString(Row) & "_" & CString(Column) Case 1 Dim wb As WebButton = New WebButton(Me) wb.Text = "Button: " & CString(Row) & "_" & CString(Column) wb.Class = "button is-danger" Data.Control = wb End Select End -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Mar 1 14:02:53 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 1 Mar 2023 13:02:53 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230301123541.M4136@455.co.il> References: <20230301123541.M4136@455.co.il> Message-ID: On Wed, 1 Mar 2023 at 12:25, Mayost Sharon wrote: > Hello > > I am trying that when I click on an element inside a cell in the table it > will respond to the click event > > Clicking with the mouse does not trigger the click event > Even if I click on the cell and if I click on the button that I put inside > the cell > > Is there a bug? Or I misunderstood what the click event is supposed to do > > I am attaching an example file > > Thank you > Note: if you do not use the proper gambas way of making a control and just use your own html then the control will be missing required things like click event triggers. Your example code that added a button did not even have a onclick event set for the button so of course it did not fire one so the WebTable_Click event does not trigger. So you cannot just simply insert things using your own html, they must be created/configured correctly (using gb.web.gui methods) to work correctly. Good luck BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Mar 1 16:27:57 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 1 Mar 2023 16:27:57 +0100 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <954f2b39-0ab0-7540-2694-01883c43bdb2@freenet.de> References: <1dcffe65-5643-eca3-7f8f-dee384da6b7c@t-online.de> <954f2b39-0ab0-7540-2694-01883c43bdb2@freenet.de> Message-ID: <67abe2dd-2559-ee99-85e0-806f1ed24b9b@deganius.de> Am 01.03.23 um 13:14 schrieb Claus Dietrich: > On /Wed Mar 1 08:30:25 CET 2023 Christof Thalhofer wrote: > > > think we should write a bug and add the application there. > > I agree and take care of it. Thank you! > For the time being all these files have to be located in the .public > directory, > which is another gb.httpd usability issue. But I suggest not to stress this > before the main problem is solved. This bug is already written: https://gambaswiki.org/bugtracker/edit?object=BUG.2706 Btw: Please answer to *existing mails in a thread* by using "Reply to" in your Thunderbird instead of creating a new thread with the same topic as you did in the mail I am just replying to. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From sharon at 455.co.il Wed Mar 1 17:49:03 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 1 Mar 2023 18:49:03 +0200 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: References: <20230301123541.M4136@455.co.il> Message-ID: <20230301160556.M68316@455.co.il> Thank you very much I didn't see that there is Data.Control now 1. Is it possible to combine multiple controls into one cell? 2. If I understood correctly, only controls that have a click event can be integrated into the cell (if I want it to respond to the event) But only a button control responds to the event I am attaching an example file Many thanks again ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Wed, 1 Mar 2023 12:50:17 +0000 Subject: Re: [Gambas-user] Event WebTable.Click > On Wed, 1 Mar 2023 at 12:25, Mayost Sharon wrote: > > > Hello > > > > I am trying that when I click on an element inside a cell in the table it > > will respond to the click event > > > > Clicking with the mouse does not trigger the click event > > Even if I click on the cell and if I click on the button that I put inside > > the cell > > > > Is there a bug? Or I misunderstood what the click event is supposed to do > > > > I am attaching an example file > > > > Thank you > > > > you probably need to use Data.Control so it configures properly and not > just insert a button using Data.Html > This works and fires the WebTable_Click event okay. > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As > WebTableData) > > Select Case Column > Case 0 > Data.Background = Color.SetAlpha(Color.Yellow, 192) > Data.Text = "Data: " & CString(Row) & "_" & CString(Column) > Case 1 > Dim wb As WebButton = New WebButton(Me) > wb.Text = "Button: " & CString(Row) & "_" & CString(Column) > wb.Class = "button is-danger" > Data.Control = wb > End Select > > End ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: webtable2.zip Type: application/zip Size: 18445 bytes Desc: not available URL: From fabien.toniutti at free.fr Wed Mar 1 17:54:36 2023 From: fabien.toniutti at free.fr (Fabien TONIUTTI) Date: Wed, 1 Mar 2023 17:54:36 +0100 Subject: [Gambas-user] Inode from file and Gambas Message-ID: <8920a7e7-ab45-0e31-a4d8-d55513303337@free.fr> Hi every one Is existing one Gambas command to get File inode from its name ? Or reverse ,get name from inode? gb3.18 MINT ext4 Thx From jussi.lahtinen at gmail.com Wed Mar 1 19:00:44 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 1 Mar 2023 20:00:44 +0200 Subject: [Gambas-user] Inode from file and Gambas In-Reply-To: <8920a7e7-ab45-0e31-a4d8-d55513303337@free.fr> References: <8920a7e7-ab45-0e31-a4d8-d55513303337@free.fr> Message-ID: Does this give you what you need? https://gambaswiki.org/wiki/comp/gb/stat Jussi On Wed, Mar 1, 2023 at 6:55?PM Fabien TONIUTTI wrote: > Hi every one > > Is existing one Gambas command to get File inode from its name ? > > Or reverse ,get name from inode? > > gb3.18 MINT ext4 > > Thx > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Mar 1 19:04:30 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 1 Mar 2023 13:04:30 -0500 Subject: [Gambas-user] Inode from file and Gambas In-Reply-To: <8920a7e7-ab45-0e31-a4d8-d55513303337@free.fr> References: <8920a7e7-ab45-0e31-a4d8-d55513303337@free.fr> Message-ID: <4e921f1e-2816-f216-d009-6e3d68573913@gmail.com> On 3/1/23 11:54, Fabien TONIUTTI wrote: > Hi every one > > Is existing one Gambas command to get File inode from its name ? > > Or reverse ,get name from inode? > > gb3.18 MINT ext4 > > Thx There is the Stat command that returns a Stat object. But, that object does not have an Inode property. You would need to use Shell thusly: Shell("stat --printf=%i " & [filename] To sOutput Getting a filename from an inode number can be problematic. -- Lee From t.lee.davidson at gmail.com Wed Mar 1 19:12:12 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 1 Mar 2023 13:12:12 -0500 Subject: [Gambas-user] WebTable Background color of row selection In-Reply-To: <20230301104721.M25335@455.co.il> References: <20230227194522.M71388@455.co.il> <20230227210842.M54807@455.co.il> <9082daee-4c4b-51f7-cef3-b7ba635695b9@gmail.com> <20230228055140.M89974@455.co.il> <20230228182129.M11581@455.co.il> <20230228192349.M24633@455.co.il> <5fdddba7-d420-c7a3-0459-11571afc0fdf@gmail.com> <20230301104721.M25335@455.co.il> Message-ID: <508c20a7-507e-9eac-7546-40810d265456@gmail.com> On 3/1/23 05:47, Mayost Sharon wrote: > Hello > > Sorry again, I forgot to attach the sample > Now the sample is attached > > Me.Refresh > It works beautifully > > Sometimes when I scroll the table down with the scroll and then immediately I select a row it does not show me the selection > Then I keep scrolling and I see that he has selected another row > > Is this the end of the solution or should we look for a better solution? > > It seems to me that it would be better if there was a CSS way to fix it > But I couldn't figure out how to do it > > thank you very much > I can't reproduce that behavior. It seems to work just fine. -- Lee From gambas.fr at gmail.com Wed Mar 1 20:05:05 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 1 Mar 2023 20:05:05 +0100 Subject: [Gambas-user] Scaled property to False by default In-Reply-To: <40f729fe-231e-a5a5-cf53-d9d811ee99b7@free.fr> References: <40f729fe-231e-a5a5-cf53-d9d811ee99b7@free.fr> Message-ID: Le mar. 28 f?vr. 2023 ? 22:31, Fabien TONIUTTI a ?crit : > Hi every one, > > Is it possible do define the 'SCALED' property of all form in my project > to FALSE by default? Do we have this option in IDE? or in .conf? > > ...and is it possible to define all FONT from all FORMS to 'NOT > PROPORTIONAL' by d?fault too? > > thx > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > No.. but What for ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Mar 1 20:41:09 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 1 Mar 2023 14:41:09 -0500 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230301160556.M68316@455.co.il> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> Message-ID: <334a19d1-7c8d-a5b2-d4d1-da4a33b63c57@gmail.com> On 3/1/23 11:49, Mayost Sharon wrote: > Thank you very much > I didn't see that there is Data.Control > > now > 1. Is it possible to combine multiple controls into one cell? > 2. If I understood correctly, only controls that have a click event can be integrated into the cell (if I want it to respond to the event) > But only a button control responds to the event > I am attaching an example file > > Many thanks again Just FYI, by creating controls without any condition, you were creating controls owned by, and displayed in, the WebForm. I made some modifications that seem to work well, unless the form is refreshed by the client. (attached) Unfortunately, this answers neither of your questions. I do not know the answer to #1. And, I can't figure out the cause of #2 but confirm the behavior. -- Lee -------------- next part -------------- H4sIAAAAAAAAA+xZCzyU2ft/3UpapbQ16WKMGFqNeec+wriVy5JC7VIugzHkMsyM3A2hTSoiRato KauSJJvaQldEZru4fFpSIbqtXIrJZf7vjNsk1fbftv7/38/38+G873POeZ7nnOc8l/MOSnMtNdCE RnWlMVmaATRnNtXZiw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f+fhf7f7P9J7/l/PxR/zP+WoNS7/rjxP2nJ3/K/FGqP/38IJH/N/zJyGNQe 6/8fwnf8/7PQ/4fw/17858fgj/nfyfLPXAbwH7f/JWUwe/s//xDs2f//t/Ed/+8K/b9kA+h/gv+/ rf+9x///evyd978uuTrgrD3/pDL+O/7/bv8vtKSE5K79j94b//kx+E38R05SAiWGwoACKCUrI/Pb /b9+n2v993P/3U+2h/8Jvn//608V+u/wnfz/If9L/Y3//yL/aIzM3v7PPwR/3f9L/+fW/9sWYGd+ Dgcq/DVCZARWAOggKvwcJFJzdXZzdcG5eCr8Ei36Vcpf4ka/+9W30NGvUv8o4VtUydDS6oy9L05B klbf0trR0hZ3SUGCFmwGO09PN7AxvL/9/++uvz3sYQ972MMe9rCHPexhD3vYwx72sIc97OE/Gf8F fKp1hACgAAA= From t.lee.davidson at gmail.com Wed Mar 1 20:46:19 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 1 Mar 2023 14:46:19 -0500 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: References: <5120aad5-882a-7fa4-ab25-10bb7e0f9de4@gmail.com> <9c7b8af0-d77e-c117-b526-05ead2fe6f80@gmail.com> <1d1d60c1-8464-2314-a477-7f7381d841ab@gmail.com> <5ee2097d-14b3-e923-663a-c154ed519269@deganius.de> <84b7b438-ee67-3976-642b-73d2494d2233@gmail.com> Message-ID: <312729a5-709b-d43a-5bd0-1be0c71d67fc@gmail.com> On 3/1/23 02:30, Christof Thalhofer wrote: > Am 01.03.23 um 00:24 schrieb T Lee Davidson: > >> Okay. But, it may only seem random merely because we don't know what >> triggers it. >> >> I don't know exactly how the embedded server works, but perhaps is >> uses some sort of caching to maintain its state (and connection >> data). If so, and the cache isn't getting cleared properly between >> launches, that could be part of the reason it chokes. >> >> How long are you waiting between relaunches/retries? > > Between two seconds and three days. :-) LOL. > Ok. Claus provided an application with which it happens. No, I have not. I'll have to go find it. While I'm there, I'll try to find the discussion from when I raised this issue, I think, a couple of years ago. -- Lee From t.lee.davidson at gmail.com Wed Mar 1 21:19:59 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 1 Mar 2023 15:19:59 -0500 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <312729a5-709b-d43a-5bd0-1be0c71d67fc@gmail.com> References: <5120aad5-882a-7fa4-ab25-10bb7e0f9de4@gmail.com> <9c7b8af0-d77e-c117-b526-05ead2fe6f80@gmail.com> <1d1d60c1-8464-2314-a477-7f7381d841ab@gmail.com> <5ee2097d-14b3-e923-663a-c154ed519269@deganius.de> <84b7b438-ee67-3976-642b-73d2494d2233@gmail.com> <312729a5-709b-d43a-5bd0-1be0c71d67fc@gmail.com> Message-ID: <6969cd90-6c33-839a-2416-b3d7cc26a5b2@gmail.com> On 3/1/23 14:46, T Lee Davidson wrote: > >> Ok.?Claus?provided?an?application?with?which?it?happens. > > No, I have not. I'll have to go find it. While I'm there, I'll try to find the discussion from when I raised this issue, I > think,?a?couple?of?years?ago. Okay, it wasn't even a year ago. First asked: https://lists.gambas-basic.org/pipermail/user/2022-June/076211.html Asked again: https://lists.gambas-basic.org/pipermail/user/2022-June/076222.html I got webapp4_Prelease-3.7.7.tar.gz from the link Clause posted. But, then Hans sent me an updated version, webapp4-3.7.12.tar.gz. With v3.7.12 I cannot reproduce the issue. I have launched and relaunched it a number of times immediately after another; running through all the top menu items each time. It works fine here. :-\ -- Lee From sharon at 455.co.il Wed Mar 1 21:48:19 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 1 Mar 2023 22:48:19 +0200 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <334a19d1-7c8d-a5b2-d4d1-da4a33b63c57@gmail.com> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <334a19d1-7c8d-a5b2-d4d1-da4a33b63c57@gmail.com> Message-ID: <20230301204640.M30255@455.co.il> Hello I can't decompress your file The file seems to have been processed by Google You can resend a file Thanks ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Wed, 1 Mar 2023 14:41:09 -0500 Subject: Re: [Gambas-user] Event WebTable.Click > On 3/1/23 11:49, Mayost Sharon wrote: > > Thank you very much > > I didn't see that there is Data.Control > > > > now > > 1. Is it possible to combine multiple controls into one cell? > > 2. If I understood correctly, only controls that have a click event can be integrated into the cell (if I want it to respond to the event) > > But only a button control responds to the event > > I am attaching an example file > > > > Many thanks again > > Just FYI, by creating controls without any condition, you were creating > controls owned by, and displayed in, the WebForm. I made some modifications > that seem to work well, unless the form is refreshed by the client. (attached) > > Unfortunately, this answers neither of your questions. I do not know the > answer to #1. And, I can't figure out the cause of #2 but confirm the behavior. > > -- > Lee ------- End of Original Message ------- From bsteers4 at gmail.com Wed Mar 1 21:34:21 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 1 Mar 2023 20:34:21 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230301204640.M30255@455.co.il> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <334a19d1-7c8d-a5b2-d4d1-da4a33b63c57@gmail.com> <20230301204640.M30255@455.co.il> Message-ID: It decompressed fine here Do you not know about gmail.txt archives? Read here.. https://gambaswiki.org/wiki/howto/opengmailtxt Open it in gambas IDE using the "Uncompress file" option twice , once to convert from text to archive then again to uncompress. BruceS On Wed, 1 Mar 2023 at 20:28, Mayost Sharon wrote: > Hello > > I can't decompress your file > The file seems to have been processed by Google > > You can resend a file > > Thanks > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Wed, 1 Mar 2023 14:41:09 -0500 > Subject: Re: [Gambas-user] Event WebTable.Click > > > On 3/1/23 11:49, Mayost Sharon wrote: > > > Thank you very much > > > I didn't see that there is Data.Control > > > > > > now > > > 1. Is it possible to combine multiple controls into one cell? > > > 2. If I understood correctly, only controls that have a click event > can be integrated into the cell (if I want it to respond to the event) > > > But only a button control responds to the event > > > I am attaching an example file > > > > > > Many thanks again > > > > Just FYI, by creating controls without any condition, you were creating > > controls owned by, and displayed in, the WebForm. I made some > modifications > > that seem to work well, unless the form is refreshed by the client. > (attached) > > > > Unfortunately, this answers neither of your questions. I do not know the > > answer to #1. And, I can't figure out the cause of #2 but confirm the > behavior. > > > > -- > > Lee > ------- End of Original Message ------- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Mar 1 21:58:20 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 1 Mar 2023 20:58:20 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230301160556.M68316@455.co.il> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> Message-ID: On Wed, 1 Mar 2023 at 16:30, Mayost Sharon wrote: > Thank you very much > I didn't see that there is Data.Control > > now > 1. Is it possible to combine multiple controls into one cell? > Have you tried making the .Control a panel with items? > 2. If I understood correctly, only controls that have a click event can be > integrated into the cell (if I want it to respond to the event) > But only a button control responds to the event > I am attaching an example file > I think maybe you do not want the Click event but should use 'As "HandlerName"' on the Buttons Like below i create 2 buttons in a container, add the container as .Control object and use BUT_Click to get clicks Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) Select Case Column Case 0 Data.Background = Color.SetAlpha(Color.Yellow, 192) Data.Text = "Data: " & CString(Row) & "_" & CString(Column) Case 1 Dim wp As WebContainer = New WebContainer(Me) wp.Arrangement = Arrange.Horizontal wp.Spacing = True wp.Height = "30px" Dim wb As WebButton = New WebButton(wp) As "BUT" wb.Text = "ButtonFine: " & CString(Row) & "_" & CString(Column) wb = New WebButton(wp) As "BUT" wb.Text = "ButtonDanger: " & CString(Row) & "_" & CString(Column) wb.Class = "button is-danger" Data.Control = wp End Select End Public Sub BUT_Click() Message(Last.Text) End Good luck BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabien.toniutti at free.fr Wed Mar 1 23:54:41 2023 From: fabien.toniutti at free.fr (Fabien TONIUTTI) Date: Wed, 1 Mar 2023 23:54:41 +0100 Subject: [Gambas-user] Scaled property to False by default Message-ID: @t Fabien, Most of my machines don't have the same screen resolution, and differents linux distro don't have the same true type default fonts. That's why i have some problems on 32 computers in my customer's stations in europe. I have done one? profesionnal Gambas software 12 years ago, and disabled all scaled properties from all forms, all widgets, and all? fonts. Now it works perfectly, but it was long hours to remove scaled properties and fonts for all form (more than 40 form for every computer) I checked one by one every Form.class file to remove Movescaled property. By the way, maybe a bug i don't know. I ask : example : I have 2 vbox on my form inside these 2 vbox i have some widgets. I click on somevwhere on my form and CTRL+A to select all. I change font of all widget in one time. But if i click on one widget inside vbox, font didn't change. is it a bug? ;-) From bsteers4 at gmail.com Thu Mar 2 00:42:16 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 1 Mar 2023 23:42:16 +0000 Subject: [Gambas-user] Scaled property to False by default In-Reply-To: References: Message-ID: On Wed, 1 Mar 2023, 22:55 Fabien TONIUTTI, wrote: > @t Fabien, > > Most of my machines don't have the same screen resolution, and > differents linux distro don't have the same true type default fonts. > > That's why i have some problems on 32 computers in my customer's > stations in europe. > > I have done one profesionnal Gambas software 12 years ago, and disabled > all scaled properties from all forms, all widgets, and all fonts. > > Now it works perfectly, but it was long hours to remove scaled > properties and fonts for all form (more than 40 form for every computer) > > I checked one by one every Form.class file to remove Movescaled property. > > By the way, maybe a bug i don't know. I ask : > > > example : > > I have 2 vbox on my form > > inside these 2 vbox i have some widgets. > > I click on somevwhere on my form and CTRL+A to select all. > > I change font of all widget in one time. > > But if i click on one widget inside vbox, font didn't change. is it a bug? > > ;-) I would say no. Select all selects all the containers children. Not the grandchildren ? I wish there were as some way to set defaults. I always select spacing on my containers. Mostly all labels and checkboxes get autoresize unless their expanded to stop pango warnings. I may just see if I can edit my ide to support some default settings. Do you compile gambas? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Thu Mar 2 01:08:21 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 2 Mar 2023 01:08:21 +0100 Subject: [Gambas-user] WebTable Background color of row selection In-Reply-To: <20230227194522.M71388@455.co.il> References: <20230227194522.M71388@455.co.il> Message-ID: <868af679-9ab7-a3a6-d71c-7ffa2c477582@gambas-basic.org> Le 27/02/2023 ? 20:55, Mayost Sharon a ?crit?: > Hello > > I am trying to create in WEBTABLE the contents of cells with HTML ELEMENT > It works > but > 1. When I select the row it marks the selection of the row in blue color but some cells are not selected with blue color. > 2. How can I change the background color of row selection > > I'm featuring a file > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi, In the last commit, I added that to the default CSS: TR.gw-selected > TD { background-color: inherit !important; } That way, the background color of a selected row is always stronger than the background color of its cells. If you want to change the default colors, just override the CSS. Regards, -- Beno?t Minisini. From jussi.lahtinen at gmail.com Thu Mar 2 01:27:29 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 2 Mar 2023 02:27:29 +0200 Subject: [Gambas-user] Scaled property to False by default In-Reply-To: References: Message-ID: > > Most of my machines don't have the same screen resolution, and ... With proper form design this shouldn't be an issue at all. Example, Gambas IDE works fine with different resolutions. ... differents linux distro don't have the same true type default fonts. > As far as I know this shouldn't be an issue either. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Thu Mar 2 06:12:48 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Thu, 2 Mar 2023 06:12:48 +0100 (CET) Subject: [Gambas-user] Inode from file and Gambas In-Reply-To: <4e921f1e-2816-f216-d009-6e3d68573913@gmail.com> References: <8920a7e7-ab45-0e31-a4d8-d55513303337@free.fr> <4e921f1e-2816-f216-d009-6e3d68573913@gmail.com> Message-ID: ...or you could use the "Extern" resource: Library "libc:6" Public Struct stat_ ? st_dev As Long ? st_ino As Long ? st_nlink As Long ? st_mode As Integer ? st_uid As Integer ? st_gid As Integer ? __pad0 As Integer ? st_rdev As Long ? st_size As Long ? st_blksize As Long ? st_blocks As Long ? st_atime As Long ? st_atimensec As Long ? st_mtime As Long ? st_mtimensec As Long ? st_ctime As Long ? st_ctimensec As Long ? __glibc_reserved[3] As Long End Struct Private Const _STAT_VER_LINUX As Integer = 1 ' int __xstat (_STAT_VER, __path, __statbuf) ' Get file attributes for FILE and put them in BUF. Private Extern __xstat(_STAT_VER As Integer, __path As String, __statbuf As Stat_) As Integer Public Sub Main() ? Dim i As Integer ? Dim st As New Stat_ ? i = __xstat(_STAT_VER_LINUX, "/path/of/file", st) ? If i < 0 Then Error.Raise("Error !") ?? Print st.st_ino End ----------------------------------------------------------------------- 1 mar 2023, 19:05 da t.lee.davidson at gmail.com: > On 3/1/23 11:54, Fabien TONIUTTI wrote: > >> Hi every one >> >> Is existing one Gambas command to get File inode from its name ? >> >> Or reverse ,get name from inode? >> >> gb3.18 MINT ext4 >> >> Thx >> > > There is the Stat command that returns a Stat object. But, that object does not have an Inode property. You would need to use Shell thusly: > Shell("stat --printf=%i " & [filename] To sOutput > > Getting a filename from an inode number can be problematic. > > > -- > Lee > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Thu Mar 2 12:20:33 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Thu, 2 Mar 2023 12:20:33 +0100 Subject: [Gambas-user] Problem with Embedded Server Message-ID: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> Sorry, if this opens a new thread again. It should be the last time. I hope I solved the bounce back problem with my provider for future posts. On 3/1/23 14:46, T Lee Davidson wrote: >I got webapp4_Prelease-3.7.7.tar.gz from the link Clause posted. But, then Hans sent me an updated version, webapp4-3.7.12.tar.gz. >With v3.7.12 I cannot reproduce the issue. I have launched and relaunched it a number of times immediately after another; >running through all the top menu items each time. It works fine here. :-\ As described it doesn't occur when launching the app. The stall happens when changing the selection of the menu tabs. I tested the v3.7.12 with the same result - hanging server. I recorded it in a screen video which can be downloaded here: https://magentacloud.de/s/YnsfGF7y762yrdK With best regards Claus From antonio.j.teixeira at gmail.com Thu Mar 2 15:42:55 2023 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Thu, 2 Mar 2023 14:42:55 +0000 Subject: [Gambas-user] httpget issue Message-ID: Hi everyone, I am trying to use the httpget class in gambas but I am having issues. The curl that is working is : curl --location --request POST 'https://192.168.10.110:50301/api/user/Login' \ --header 'Content-Type: application/json' \ --data-raw '{ "username" : "a", "password" : "a" }' the answer is "code":0,"message":"No error","data":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Nzc3Njg3MjQuNjk2MTg0LCJpYXQiOjE2Nzc3Njc4MjQuNjk2MTY5LCJuYmYiOjE2Nzc3Njc4MjQuNjk2MTc5LCJyZW1vdGVBY2NvdW50IjpmYWxzZSwic3ViIjoiQ2FzaG1hdGljIEpXVCB0b2tlbiIsInVpZCI6MX0.498btABtMc40u57mLczvFasEL89llI9RlHC4dvlD_xA"}} The code I am using in gambas is : Private Sub DoLogin() Dim data As String Dim headers As New String[] Dim resposta As String hClient.URL = "https://192.168.10.110:50301/api/user/Login" hClient.Async = False hclient.Auth = Net.AuthNone hclient.SSL.VerifyHost = False hclient.SSL.VerifyPeer = False hClient.Timeout = 2 headers.Add("Content-Type: application/json") data = "username=a&password=a" hClient.Post("application/json", data) ', headers) 'hClient.get(headers) Resposta = hclient.Peek() Message(Resposta, "OK") End Sub I am getting always "Bad Request" Any help please? Thanks in advance. Atentamente / Regards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Mar 2 15:52:07 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 2 Mar 2023 15:52:07 +0100 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> References: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> Message-ID: Am 02.03.23 um 12:20 schrieb Claus Dietrich: > I tested the v3.7.12 with the same result - hanging server. I recorded > it in a screen video which can be downloaded > here: https://magentacloud.de/s/YnsfGF7y762yrdK You can upload it to the bug. The we have no such strong limits as in the ML. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From sharon at 455.co.il Thu Mar 2 17:03:15 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 2 Mar 2023 18:03:15 +0200 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> Message-ID: <20230302155837.M26361@455.co.il> Hello Thanks The problem is that if you don't receive an event on clicking inside the table (WebTable_Click) we won't be able to know from which row and column the button was clicked And there is another problem that the table click event (WebTable_Click) only works if you add a button but the other controls do not transfer the click event to the table ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Wed, 1 Mar 2023 20:58:20 +0000 Subject: Re: [Gambas-user] Event WebTable.Click > On Wed, 1 Mar 2023 at 16:30, Mayost Sharon wrote: > > > Thank you very much > > I didn't see that there is Data.Control > > > > now > > 1. Is it possible to combine multiple controls into one cell? > > > > Have you tried making the .Control a panel with items? > > > 2. If I understood correctly, only controls that have a click event can be > > integrated into the cell (if I want it to respond to the event) > > But only a button control responds to the event > > I am attaching an example file > > > > I think maybe you do not want the Click event but should use 'As > "HandlerName"' on the Buttons > > Like below i create 2 buttons in a container, add the container as .Control > object and use BUT_Click to get clicks > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As > WebTableData) > > Select Case Column > Case 0 > Data.Background = Color.SetAlpha(Color.Yellow, 192) > Data.Text = "Data: " & CString(Row) & "_" & CString(Column) > Case 1 > Dim wp As WebContainer = New WebContainer(Me) > wp.Arrangement = Arrange.Horizontal > wp.Spacing = True > wp.Height = "30px" > Dim wb As WebButton = New WebButton(wp) As "BUT" > wb.Text = "ButtonFine: " & CString(Row) & "_" & CString(Column) > wb = New WebButton(wp) As "BUT" > wb.Text = "ButtonDanger: " & CString(Row) & "_" & CString(Column) > wb.Class = "button is-danger" > Data.Control = wp > End Select > > End > > Public Sub BUT_Click() > > Message(Last.Text) > > End > > Good luck > BruceS ------- End of Original Message ------- From benoit.minisini at gambas-basic.org Thu Mar 2 16:50:40 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 2 Mar 2023 16:50:40 +0100 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230302155837.M26361@455.co.il> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> Message-ID: Le 02/03/2023 ? 17:03, Mayost Sharon a ?crit?: > Hello > > Thanks > > The problem is that if you don't receive an event on clicking inside the table (WebTable_Click) we won't be able to know from which row and column the button was clicked > > And there is another problem that the table click event (WebTable_Click) only works if you add a button but the other controls do not transfer the click event to the table > WebTable is just a control made for displaying contents like rows from a database able. It's not like the GridView control. A WebGridView control should be made to fulfill your needs. Regards, -- Beno?t Minisini. From sharon at 455.co.il Thu Mar 2 17:35:16 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 2 Mar 2023 18:35:16 +0200 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> Message-ID: <20230302162931.M31066@455.co.il> Hello I know it's just for show but While I fill the cell with the button data.control=WebButton So when I click on the button that is in a certain cell I get an event of: WebTable1_Click(Row As Integer, Column As Integer) Then I can know from which row and which column the button is pressed And it provides me with information on how to access a database to retrieve the information I need The problem is that it only works with a button If I fill the cell with a check box It does not respond to a click event I am attaching the example again that shows what I mean Many thanks ---------- Original Message ----------- From: Benoit Minisini To: user at lists.gambas-basic.org Sent: Thu, 2 Mar 2023 16:50:40 +0100 Subject: Re: [Gambas-user] Event WebTable.Click > Le 02/03/2023 ? 17:03, Mayost Sharon a ?crit?: > > Hello > > > > Thanks > > > > The problem is that if you don't receive an event on clicking inside the table (WebTable_Click) we won't be able to know from which row and column the button was clicked > > > > And there is another problem that the table click event (WebTable_Click) only works if you add a button but the other controls do not transfer the click event to the table > > > > WebTable is just a control made for displaying contents like rows from a > database able. It's not like the GridView control. > > A WebGridView control should be made to fulfill your needs. > > Regards, > > -- > Beno?t Minisini. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: webtable2.zip Type: application/zip Size: 18445 bytes Desc: not available URL: From t.lee.davidson at gmail.com Thu Mar 2 17:16:43 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 2 Mar 2023 11:16:43 -0500 Subject: [Gambas-user] httpget issue In-Reply-To: References: Message-ID: <64c993aa-675d-132d-c8a2-8d87a4659db5@gmail.com> On 3/2/23 09:42, Antonio Teixeira wrote: > Hi everyone, > > I am trying to use the httpget class in gambas but I am having issues. > The curl that is working is : > [snip] > > The code I am using in gambas is : > > Private Sub DoLogin() > ? Dim data As String > ? Dim headers As New String[] > ? Dim resposta As String > > ? hClient.URL = "https://192.168.10.110:50301/api/user/Login " > ? hClient.Async = False > ? hclient.Auth = Net.AuthNone > ? hclient.SSL.VerifyHost = False > ? hclient.SSL.VerifyPeer = False > ? hClient.Timeout = 2 > ? headers.Add("Content-Type: application/json") > ? data = "username=a&password=a" > ? hClient.Post("application/json", data) ', headers) > ? 'hClient.get(headers) > ? Resposta = hclient.Peek() > ? Message(Resposta, "OK") > End Sub > > > I am getting always "Bad Request" > > Any help please? > > Thanks in advance. > > Atentamente / Regards > > Ant?nio Teixeira First off so that others don't get confused, there is no httpget class. I think you probably meant HttpClient. It appears the data you are sending is not in JSON format: data = "username=a&password=a" try: data = "{'username'='a'&'password'='a'}" Tip: The gb.util.web component has a JSON class that has encode and decode methods: https://gambaswiki.org/wiki/comp/gb.util.web/json (You may already know this, but others may not.) -- Lee From t.lee.davidson at gmail.com Thu Mar 2 17:21:02 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 2 Mar 2023 11:21:02 -0500 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> References: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> Message-ID: On 3/2/23 06:20, Claus Dietrich wrote: [snip] > > On 3/1/23 14:46, T Lee Davidson wrote: >> I got webapp4_Prelease-3.7.7.tar.gz from the link Clause posted. But, then Hans sent me an updated version, >> webapp4-3.7.12.tar.gz. > >> With v3.7.12 I cannot reproduce the issue. I have launched and relaunched it a number of times immediately after another; >> running through all the top menu items each time. It works fine here. :-\ > > As described it doesn't occur when launching the app. The stall happens when changing the selection of the menu tabs. And, that is exactly what I did many times: "running through all the top menu items each time." I could not make it fail. [snip] -- Lee From bsteers4 at gmail.com Thu Mar 2 17:48:53 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 2 Mar 2023 16:48:53 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230302162931.M31066@455.co.il> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> <20230302162931.M31066@455.co.il> Message-ID: On Thu, 2 Mar 2023 at 16:08, Mayost Sharon wrote: > Hello > > I know it's just for show > but > While I fill the cell with the button > data.control=WebButton > So when I click on the button that is in a certain cell I get an event of: > WebTable1_Click(Row As Integer, Column As Integer) > Then I can know from which row and which column the button is pressed > And it provides me with information on how to access a database to > retrieve the information I need showing the button text in the example code we have been using the text showed Button:1_1 for row 1 column 1 Button:2_1 for row 2 column 1 (there is row/col identity there) You can also use the button.Name to give a unique name stating Row/column while having same button text on all buttons. Also button.Tag So of course you can tell what button was clicked from what row./col, by smart naming as your code has done all along.. Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) Select Case Column Case 0 Data.Background = Color.SetAlpha(Color.Yellow, 192) Data.Text = "Data: " & CString(Row) & "_" & CString(Column) Case 1 Dim wb As WebButton = New WebButton(Me) As "BUT" wb.Text = "DangerButton" wb.Name = "btnDanger_" & CString(Row) & "_" & CString(Column) wb.Class = "button is-danger" Data.Control = wb End Select End Public Sub BUT_Click() Dim iRow, iCol as Integer iRow = Split(Last.Text, "_")[1] iCol = Split(Last.Text, "_")[2] End > The problem is that it only works with a button > If I fill the cell with a check box > It does not respond to a click event > Oh it has lots of problems if you want to make it do more than it has been designed for. I don't get why you even need it as there are plenty of ways to keep track of the buttons row/col data. As mentioned above. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Mar 2 17:51:54 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 2 Mar 2023 16:51:54 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> <20230302162931.M31066@455.co.il> Message-ID: > > > Public Sub BUT_Click() > > Dim iRow, iCol as Integer > iRow = Split(Last.Text, "_")[1] > iCol = Split(Last.Text, "_")[2] > > End > Oops, that should be Last.Name not Last.Text Public Sub BUT_Click() Dim iRow, iCol as Integer iRow = Split(Last.Name, "_")[1] iCol = Split(Last.Name, "_")[2] End -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Mar 2 20:01:52 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 2 Mar 2023 19:01:52 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230302162931.M31066@455.co.il> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> <20230302162931.M31066@455.co.il> Message-ID: On Thu, 2 Mar 2023 at 16:08, Mayost Sharon wrote: > Hello > > I know it's just for show > but > While I fill the cell with the button > data.control=WebButton > So when I click on the button that is in a certain cell I get an event of: > WebTable1_Click(Row As Integer, Column As Integer) > Then I can know from which row and which column the button is pressed > And it provides me with information on how to access a database to > retrieve the information I need > > The problem is that it only works with a button > If I fill the cell with a check box > It does not respond to a click event > > I am attaching the example again that shows what I mean > I'm attaching an example where buttons and checkboxes trigger WebTable1_Click event. all having Row and column data. the WebTable has 4 columns and puts a button/checkbox in each column. Did it like this... Non buttons (checkboxes) use the "ITEM" handler and on click they get the row/col from the name and raise the WebTable_Click event with the row/col data. There's always a way :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Thu Mar 2 20:02:52 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 2 Mar 2023 19:02:52 +0000 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> <20230302162931.M31066@455.co.il> Message-ID: On Thu, 2 Mar 2023 at 19:01, Bruce Steers wrote: > > > On Thu, 2 Mar 2023 at 16:08, Mayost Sharon wrote: > >> Hello >> >> I know it's just for show >> but >> While I fill the cell with the button >> data.control=WebButton >> So when I click on the button that is in a certain cell I get an event of: >> WebTable1_Click(Row As Integer, Column As Integer) >> Then I can know from which row and which column the button is pressed >> And it provides me with information on how to access a database to >> retrieve the information I need >> >> The problem is that it only works with a button >> If I fill the cell with a check box >> It does not respond to a click event >> >> I am attaching the example again that shows what I mean >> > > I'm attaching an example where buttons and checkboxes trigger > WebTable1_Click event. all having Row and column data. > > the WebTable has 4 columns and puts a button/checkbox in each column. > > Did it like this... > Non buttons (checkboxes) use the "ITEM" handler and on click they get the > row/col from the name and raise the WebTable_Click event with the row/col > data. > > There's always a way :) > BruceS > Oops forgot to attach... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test1-0.0.1.tar.gz Type: application/gzip Size: 13040 bytes Desc: not available URL: From sharon at 455.co.il Thu Mar 2 22:17:04 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 2 Mar 2023 23:17:04 +0200 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> <20230302162931.M31066@455.co.il> Message-ID: <20230302211522.M71490@455.co.il> thank you very much ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Thu, 2 Mar 2023 19:02:52 +0000 Subject: Re: [Gambas-user] Event WebTable.Click > On Thu, 2 Mar 2023 at 19:01, Bruce Steers wrote: > > > > > > > On Thu, 2 Mar 2023 at 16:08, Mayost Sharon wrote: > > > >> Hello > >> > >> I know it's just for show > >> but > >> While I fill the cell with the button > >> data.control=WebButton > >> So when I click on the button that is in a certain cell I get an event of: > >> WebTable1_Click(Row As Integer, Column As Integer) > >> Then I can know from which row and which column the button is pressed > >> And it provides me with information on how to access a database to > >> retrieve the information I need > >> > >> The problem is that it only works with a button > >> If I fill the cell with a check box > >> It does not respond to a click event > >> > >> I am attaching the example again that shows what I mean > >> > > > > I'm attaching an example where buttons and checkboxes trigger > > WebTable1_Click event. all having Row and column data. > > > > the WebTable has 4 columns and puts a button/checkbox in each column. > > > > Did it like this... > > Non buttons (checkboxes) use the "ITEM" handler and on click they get the > > row/col from the name and raise the WebTable_Click event with the row/col > > data. > > > > There's always a way :) > > BruceS > > > > Oops forgot to attach... ------- End of Original Message ------- From benoit.minisini at gambas-basic.org Thu Mar 2 23:10:52 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 2 Mar 2023 23:10:52 +0100 Subject: [Gambas-user] Event WebTable.Click In-Reply-To: <20230302162931.M31066@455.co.il> References: <20230301123541.M4136@455.co.il> <20230301160556.M68316@455.co.il> <20230302155837.M26361@455.co.il> <20230302162931.M31066@455.co.il> Message-ID: <7dfd7446-1f76-46b4-8160-ff7b5ad37e46@gambas-basic.org> Le 02/03/2023 ? 17:35, Mayost Sharon a ?crit?: > Hello > > I know it's just for show > but > While I fill the cell with the button > data.control=WebButton > So when I click on the button that is in a certain cell I get an event of: > WebTable1_Click(Row As Integer, Column As Integer) > Then I can know from which row and which column the button is pressed > And it provides me with information on how to access a database to retrieve the information I need > > The problem is that it only works with a button > If I fill the cell with a check box > It does not respond to a click event > Indeed. It has not been correctly implemented for the 'Click' event of WebCheckBox and WebRadioButton. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Fri Mar 3 03:20:41 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 2 Mar 2023 21:20:41 -0500 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> References: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> Message-ID: I deleted my last response so this may be out of thread order. I finally broke it - well, sort of. The symptom is not exactly as others have described, but I got the server to stop responding. For me, NO images got loaded before the server choked. See the attached. What did I do? Simple. I just used the Chromium browser, ie. Debug > Configuration > Debug browser = Chromium. If I use Firefox or the Internal browser (which probably uses Firefox anyway since it is my default browser), I can't break it. -- Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot_no-images.png Type: image/png Size: 26781 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot_unresponsive.png Type: image/png Size: 21536 bytes Desc: not available URL: From bsteers4 at gmail.com Fri Mar 3 12:27:46 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 3 Mar 2023 11:27:46 +0000 Subject: [Gambas-user] Getting an objects handler Message-ID: Is it possible to get the objects handler name? Ie. if i use... Dim m as Menu = New Menu(mParent) As "ThisMenu" m.Name = "This" m.Text = "This is a menu" I can read m.Name , m.Text, etc but can i get the "ThisMenu" reference? I've made a Menu.Save() Menu.Load() function to save/restore menus to disk It saves all the properties (except Tag yet) but i want to save the handler name too. Many thanks. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Fri Mar 3 12:33:59 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 3 Mar 2023 12:33:59 +0100 Subject: [Gambas-user] Getting an objects handler In-Reply-To: References: Message-ID: <9ce73858-89bb-8a92-9671-0385a20c1613@gambas-basic.org> Le 03/03/2023 ? 12:27, Bruce Steers a ?crit?: > Is it possible to get the objects handler name? > No, it is stored nowhere. Regards, -- Beno?t Minisini. From claus.dietrich at freenet.de Fri Mar 3 13:09:07 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 3 Mar 2023 13:09:07 +0100 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: References: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> Message-ID: Am 03.03.23 um 03:20 schrieb T Lee Davidson: > I deleted my last response so this may be out of thread order. > > I finally broke it - well, sort of.? The symptom is not exactly as > others have described, but I got the server to stop responding. For > me, NO images got loaded before the server choked. See the attached. > > What did I do? Simple. I just used the Chromium browser, ie. Debug > > Configuration > Debug browser = Chromium. > If I use Firefox or the Internal browser (which probably uses Firefox > anyway since it is my default browser), I can't break it. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- A counter check with the Chrome browser showed the same problem as faced with the Firefox. I would be grateful if you could share some platform data with us. This would allow me to replicate your OS environment in a VM for a test. BTW: We shouldn't forget gb.web as a possible reason for the problem. Best regards Claus From adamnt42 at gmail.com Fri Mar 3 13:36:14 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 3 Mar 2023 23:06:14 +1030 Subject: [Gambas-user] Getting an objects handler In-Reply-To: References: Message-ID: <64803199-a209-2291-620a-29f56fe37cf2@gmail.com> On 3/3/23 9:57 pm, Bruce Steers wrote: > Is it possible to get the objects handler name? > > Ie. if i use... > > Dim m as Menu = New Menu(mParent) As "ThisMenu" > m.Name = "This" > m.Text = "This is a menu" > > I can read m.Name , m.Text, etc but can i get the "ThisMenu" reference? > > I've made a Menu.Save() Menu.Load() function to save/restore menus to disk > It saves all the properties (except Tag yet) but i want to save the > handler name too. > > Many thanks. > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- For why? _FThis_ Dim m as Menu = New Menu(mParent) As "ThisMenu" _FThat_ Dim m as Menu = New Menu(mParent) AsIf FThis.Menus["ThisMenu"] As "ThatMenu" Public Sub ThatMenu_or_maybe_ThisMenu_Click_Or_Clack_Maybe_Even_Cluck() ??? Keyborg.Send(3000kV) ??? Error.Raise("FATAL - Do not try and confuse me Earthbeing") End ???? ? b -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Mar 3 13:55:19 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 3 Mar 2023 23:25:19 +1030 Subject: [Gambas-user] Getting an objects handler In-Reply-To: References: Message-ID: <49dc9fc9-43fd-929a-7704-f10537beec9e@gmail.com> On 3/3/23 9:57 pm, Bruce Steers wrote: > Is it possible to get the objects handler name? > > Ie. if i use... > > Dim m as Menu = New Menu(mParent) As "ThisMenu" > m.Name = "This" > m.Text = "This is a menu" > > I can read m.Name , m.Text, etc but can i get the "ThisMenu" reference? > > I've made a Menu.Save() Menu.Load() function to save/restore menus to disk > It saves all the properties (except Tag yet) but i want to save the > handler name too. > > Many thanks. > BruceS > WggShelly (I'm learning Welsh btw)! My previously erudition regarding this torpid topic raises, to me anymorehow (it's Friday heer btw) what we need is to bring GBasic into the 1970's with the introduction of .... *Possible Event Handlers!* Imagine .... Public Sub MyControl_AnythingElse(username as String, useraddress as Google.Current.Physical.Location) ... Damn. I just remembered, we had this in 1970 in PL1 with its' magical ON_ANY$ hhandlers. b -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 3 16:05:37 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 3 Mar 2023 15:05:37 +0000 Subject: [Gambas-user] Getting an objects handler In-Reply-To: <64803199-a209-2291-620a-29f56fe37cf2@gmail.com> References: <64803199-a209-2291-620a-29f56fe37cf2@gmail.com> Message-ID: On Fri, 3 Mar 2023, 12:37 BB, wrote: > > On 3/3/23 9:57 pm, Bruce Steers wrote: > > Is it possible to get the objects handler name? > > Ie. if i use... > > Dim m as Menu = New Menu(mParent) As "ThisMenu" > m.Name = "This" > m.Text = "This is a menu" > > I can read m.Name , m.Text, etc but can i get the "ThisMenu" reference? > > I've made a Menu.Save() Menu.Load() function to save/restore menus to disk > It saves all the properties (except Tag yet) but i want to save the > handler name too. > > Many thanks. > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > For why? > For Object.Attach() was my thinking *FThis* > > Dim m as Menu = New Menu(mParent) As "ThisMenu" > > *FThat* > > Dim m as Menu = New Menu(mParent) AsIf FThis.Menus["ThisMenu"] As > "ThatMenu" > > Public Sub ThatMenu_or_maybe_ThisMenu_Click_Or_Clack_Maybe_Even_Cluck() > > Keyborg.Send(3000kV) > > Error.Raise("FATAL - Do not try and confuse me Earthbeing") > > End > > ???? ? > > b > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Fri Mar 3 17:34:00 2023 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Fri, 3 Mar 2023 16:34:00 +0000 Subject: [Gambas-user] =?utf-8?q?=E2=80=8Bhttpget_issue?= In-Reply-To: References: Message-ID: Hi T Lee, Thank you for your answer. Replacing the data content from "username=a&password=a" to "{'username'='a'&'password'='a'}" did not solve the problem. The answer "Bad Request" remains. Any other ideas? Atentamente / Regards Ant?nio Teixeira On Thu, 2 Mar 2023 at 19:05, wrote: > 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: httpget issue (T Lee Davidson) > 2. Re: Problem with Embedded Server (T Lee Davidson) > 3. Re: Event WebTable.Click (Bruce Steers) > 4. Re: Event WebTable.Click (Bruce Steers) > 5. Re: Event WebTable.Click (Bruce Steers) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 2 Mar 2023 11:16:43 -0500 > From: T Lee Davidson > To: user at lists.gambas-basic.org > Subject: Re: [Gambas-user] httpget issue > Message-ID: <64c993aa-675d-132d-c8a2-8d87a4659db5 at gmail.com> > Content-Type: text/plain; charset=UTF-8; format=flowed > > On 3/2/23 09:42, Antonio Teixeira wrote: > > Hi everyone, > > > > I am trying to use the httpget class in gambas but I am having issues. > > The curl that is working is : > > > [snip] > > > > The code I am using in gambas is : > > > > Private Sub DoLogin() > > ? Dim data As String > > ? Dim headers As New String[] > > ? Dim resposta As String > > > > ? hClient.URL = "https://192.168.10.110:50301/api/user/Login < > https://192.168.10.110:50301/api/user/Login>" > > ? hClient.Async = False > > ? hclient.Auth = Net.AuthNone > > ? hclient.SSL.VerifyHost = False > > ? hclient.SSL.VerifyPeer = False > > ? hClient.Timeout = 2 > > ? headers.Add("Content-Type: application/json") > > ? data = "username=a&password=a" > > ? hClient.Post("application/json", data) ', headers) > > ? 'hClient.get(headers) > > ? Resposta = hclient.Peek() > > ? Message(Resposta, "OK") > > End Sub > > > > > > I am getting always "Bad Request" > > > > Any help please? > > > > Thanks in advance. > > > > Atentamente / Regards > > > > Ant?nio Teixeira > > First off so that others don't get confused, there is no httpget class. I > think you probably meant HttpClient. > > It appears the data you are sending is not in JSON format: > data = "username=a&password=a" > > try: > data = "{'username'='a'&'password'='a'}" > > Tip: The gb.util.web component has a JSON class that has encode and decode > methods: > https://gambaswiki.org/wiki/comp/gb.util.web/json > (You may already know this, but others may not.) > > > -- > Lee > > > > ------------------------------ > > Message: 2 > Date: Thu, 2 Mar 2023 11:21:02 -0500 > From: T Lee Davidson > To: user at lists.gambas-basic.org > Subject: Re: [Gambas-user] Problem with Embedded Server > Message-ID: > Content-Type: text/plain; charset=UTF-8; format=flowed > > On 3/2/23 06:20, Claus Dietrich wrote: > [snip] > > > > On 3/1/23 14:46, T Lee Davidson wrote: > >> I got webapp4_Prelease-3.7.7.tar.gz from the link Clause posted. But, > then Hans sent me an updated version, > >> webapp4-3.7.12.tar.gz. > > > >> With v3.7.12 I cannot reproduce the issue. I have launched and > relaunched it a number of times immediately after another; > >> running through all the top menu items each time. It works fine here. > :-\ > > > > As described it doesn't occur when launching the app. The stall happens > when changing the selection of the menu tabs. > > And, that is exactly what I did many times: "running through all the top > menu items each time." I could not make it fail. > [snip] > > -- > Lee > > > > ------------------------------ > > Message: 3 > Date: Thu, 2 Mar 2023 16:48:53 +0000 > From: Bruce Steers > To: Gambas Mailing List > Subject: Re: [Gambas-user] Event WebTable.Click > Message-ID: > < > CABuQYCAx9chUmgQsZ5ZOPS4jbBHWkWk5Y8bXKx7qrhG3hmoU1A at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > On Thu, 2 Mar 2023 at 16:08, Mayost Sharon wrote: > > > Hello > > > > I know it's just for show > > but > > While I fill the cell with the button > > data.control=WebButton > > So when I click on the button that is in a certain cell I get an event > of: > > WebTable1_Click(Row As Integer, Column As Integer) > > Then I can know from which row and which column the button is pressed > > And it provides me with information on how to access a database to > > retrieve the information I need > > > showing the button text in the example code we have been using the text > showed > Button:1_1 for row 1 column 1 > Button:2_1 for row 2 column 1 > > (there is row/col identity there) > > You can also use the button.Name to give a unique name stating Row/column > while having same button text on all buttons. > > Also button.Tag > > So of course you can tell what button was clicked from what row./col, > by smart naming as your code has done all along.. > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As > WebTableData) > > Select Case Column > Case 0 > Data.Background = Color.SetAlpha(Color.Yellow, 192) > Data.Text = "Data: " & CString(Row) & "_" & CString(Column) > Case 1 > Dim wb As WebButton = New WebButton(Me) As "BUT" > wb.Text = "DangerButton" > wb.Name = "btnDanger_" & CString(Row) & "_" & CString(Column) > wb.Class = "button is-danger" > Data.Control = wb > End Select > > End > > Public Sub BUT_Click() > > Dim iRow, iCol as Integer > iRow = Split(Last.Text, "_")[1] > iCol = Split(Last.Text, "_")[2] > > End > > > > > The problem is that it only works with a button > > If I fill the cell with a check box > > It does not respond to a click event > > > > Oh it has lots of problems if you want to make it do more than it has been > designed for. > I don't get why you even need it as there are plenty of ways to keep track > of the buttons row/col data. As mentioned above. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.gambas-basic.org/pipermail/user/attachments/20230302/d18c9c65/attachment-0001.htm > > > > ------------------------------ > > Message: 4 > Date: Thu, 2 Mar 2023 16:51:54 +0000 > From: Bruce Steers > To: Gambas Mailing List > Subject: Re: [Gambas-user] Event WebTable.Click > Message-ID: > < > CABuQYCB+orDrd8xZTpYGMWdX47yTNbXrUKAchs-Vnhq5MbitJQ at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > > > > > > Public Sub BUT_Click() > > > > Dim iRow, iCol as Integer > > iRow = Split(Last.Text, "_")[1] > > iCol = Split(Last.Text, "_")[2] > > > > End > > > > Oops, that should be Last.Name not Last.Text > > > Public Sub BUT_Click() > > Dim iRow, iCol as Integer > iRow = Split(Last.Name, "_")[1] > iCol = Split(Last.Name, "_")[2] > > End > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.gambas-basic.org/pipermail/user/attachments/20230302/4446bff7/attachment-0001.htm > > > > ------------------------------ > > Message: 5 > Date: Thu, 2 Mar 2023 19:01:52 +0000 > From: Bruce Steers > To: Gambas Mailing List > Subject: Re: [Gambas-user] Event WebTable.Click > Message-ID: > fbYV9MCRC4K8a0Zd6UH7gKLhWjEWvt5tdZJa02Sw at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > On Thu, 2 Mar 2023 at 16:08, Mayost Sharon wrote: > > > Hello > > > > I know it's just for show > > but > > While I fill the cell with the button > > data.control=WebButton > > So when I click on the button that is in a certain cell I get an event > of: > > WebTable1_Click(Row As Integer, Column As Integer) > > Then I can know from which row and which column the button is pressed > > And it provides me with information on how to access a database to > > retrieve the information I need > > > > The problem is that it only works with a button > > If I fill the cell with a check box > > It does not respond to a click event > > > > I am attaching the example again that shows what I mean > > > > I'm attaching an example where buttons and checkboxes trigger > WebTable1_Click event. all having Row and column data. > > the WebTable has 4 columns and puts a button/checkbox in each column. > > Did it like this... > Non buttons (checkboxes) use the "ITEM" handler and on click they get the > row/col from the name and raise the WebTable_Click event with the row/col > data. > > There's always a way :) > BruceS > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.gambas-basic.org/pipermail/user/attachments/20230302/9aa0aa38/attachment.htm > > > > ------------------------------ > > Subject: Digest Footer > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ------------------------------ > > End of User Digest, Vol 66, Issue 9 > *********************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Mar 3 19:14:55 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 3 Mar 2023 13:14:55 -0500 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: References: <48ffeefb-200e-0647-a101-8bb4abb0bcb4@freenet.de> Message-ID: <0250c61b-ee06-e91c-5ae5-5f5faff90b9b@gmail.com> On 3/3/23 07:09, Claus Dietrich wrote: > Am 03.03.23 um 03:20 schrieb T Lee Davidson: >> I deleted my last response so this may be out of thread order. >> >> I finally broke it - well, sort of.? The symptom is not exactly as others have described, but I got the server to stop >> responding. For me, NO images got loaded before the server choked. See the attached. >> >> What did I do? Simple. I just used the Chromium browser, ie. Debug > Configuration > Debug browser = Chromium. >> If I use Firefox or the Internal browser (which probably uses Firefox anyway since it is my default browser), I can't break it. >> [snip] > > A counter check with the Chrome browser showed the same problem as faced with the Firefox. I don't understand why you said this. I reported that I experienced absolutely NO problems with Firefox. Only with Chromium did I experience an issue. > > I would be grateful if you could share some platform data with us. This would allow me to > > replicate your OS environment in a VM for a test. > > BTW: We shouldn't forget gb.web as a possible reason for the problem. > > Best regards > > Claus -- Lee [System] Gambas=3.18.1 OperatingSystem=Linux Distribution=openSUSE Leap 15.4 Kernel=5.14.21-150400.24.46-default Architecture=x86_64 Cores=6 Memory=15922M Language=en_US.UTF-8 Desktop=KDE DesktopResolution=96 DesktopScale=7 WidgetTheme=breeze Font=Noto Sans,10 [Programs] clang=clang version 13.0.1 gcc=gcc (SUSE Linux) 7.5.0 git=git version 2.35.3 pngquant=2.11.2 (November 2017) trans=Translate Shell 0.9.6.12 [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.7.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.33 GDK3=/usr/lib64/libgdk-3.so.0.2404.30 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.2001.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.33 GTK+3=/usr/lib64/libgtk-3.so.0.2404.30 OpenGL=/usr/lib64/libGL.so.1.7.0 Poppler=/usr/lib64/libpoppler.so.117.0.0 Poppler=/usr/lib64/libpoppler.so.89.0.0 QT5=/usr/lib64/libQt5Core.so.5.15.2 RSvg=/usr/lib64/librsvg-2.so.2.48.0 SDL=/usr/lib64/libSDL-1.2.so.0.11.4 SQLite=/usr/lib64/libsqlite3.so.0.8.6 [Environment] AUDIODRIVER=pulseaudio COLORTERM=1 CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs CVS_RSH=ssh DBUS_SESSION_BUS_ADDRESS=unix:path=/run//1000/bus DESKTOP_SESSION=/usr/share/xsessions/plasma5 DISPLAY=:0 FROM_HEADER= GB_GUI=gb.qt5 GPG_TTY=not a tty GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/.gtkrc-2.0:/.config/gtkrc-2.0 GTK_IM_MODULE=cedilla GTK_MODULES=canberra-gtk-module GTK_RC_FILES=/etc/gtk/gtkrc:/.gtkrc:/.config/gtkrc G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 HISTSIZE=1000 HOME= HOST= HOSTNAME= HOSTTYPE=x86_64 JAVA_BINDIR=/usr/lib64/jvm/java/bin JAVA_HOME=/usr/lib64/jvm/java JAVA_ROOT=/usr/lib64/jvm/java JDK_HOME=/usr/lib64/jvm/java JRE_HOME=/usr/lib64/jvm/java KDE_APPLICATIONS_AS_SCOPE=1 KDE_FULL_SESSION=true KDE_SESSION_UID=1000 KDE_SESSION_VERSION=5 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LESS=-M -I -R LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESSOPEN=lessopen.sh %s LESS_ADVANCED_PREPROCESSOR=no LOGNAME= MACHTYPE=x86_64-suse-linux MAIL=/var/spool/mail/ MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man MINICOM=-c on MORE=-sl OSTYPE=linux PAGER=less PAM_KWALLET5_LOGIN=/run//1000/kwallet5.socket PATH=/.local/bin:/bin:/usr/local/bin:/usr/bin:/bin:/opt/: PROFILEREAD=true PWD= PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=xim QT_IM_SWITCHER=imsw-multi QT_LOGGING_RULES=*.debug=false SDK_HOME=/usr/lib64/jvm/java SESSION_MANAGER=local/:@/tmp/.ICE-unix/1553,unix/:/tmp/.ICE-unix/1553 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1491 SSH_ASKPASS=/usr/lib/ssh/ssh-askpass SSH_AUTH_SOCK=/tmp/ssh-tpesFI1ZtmwY/agent.1441 SYSTEMD_EXEC_PID=1424 TERM=xterm TZ=:/etc/localtime USER= WINDOWMANAGER=/usr/bin/startplasma-x11 XAUTHLOCALHOSTNAME= XAUTHORITY=/run//1000/xauth_uJTKFX XCURSOR_SIZE=24 XCURSOR_THEME=breeze_cursors XDG_CONFIG_DIRS=/.config/kdedefaults:/etc/xdg XDG_CURRENT_DESKTOP=KDE XDG_DATA_DIRS=/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_RUNTIME_DIR=/run//1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS= XDG_SESSION_DESKTOP=KDE XDG_SESSION_ID=3 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XMODIFIERS=@im=local XNLSPATH=/usr/share/X11/nls XSESSION_IS_UP=yes force_s3tc_enable=true From bsteers4 at gmail.com Fri Mar 3 19:34:58 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 3 Mar 2023 18:34:58 +0000 Subject: [Gambas-user] Getting an objects handler In-Reply-To: References: <64803199-a209-2291-620a-29f56fe37cf2@gmail.com> Message-ID: On Fri, 3 Mar 2023, 15:05 Bruce Steers, wrote: > > > On Fri, 3 Mar 2023, 12:37 BB, wrote: > >> >> On 3/3/23 9:57 pm, Bruce Steers wrote: >> >> Is it possible to get the objects handler name? >> >> Ie. if i use... >> >> Dim m as Menu = New Menu(mParent) As "ThisMenu" >> m.Name = "This" >> m.Text = "This is a menu" >> >> I can read m.Name , m.Text, etc but can i get the "ThisMenu" reference? >> >> I've made a Menu.Save() Menu.Load() function to save/restore menus to disk >> It saves all the properties (except Tag yet) but i want to save the >> handler name too. >> >> Many thanks. >> BruceS >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> For why? >> > > For Object.Attach() was my thinking > To elaborate.... I have a few programs that i have made custom menu creators for. like the new Desktop-ish launcher that is highly customizable. (i attached a snap of the custom menu editor) I want to just Menu.Save(sFileName) and save the menu to file then just as easily restore it. Hmm, actually, thinking about it, I may not need to save the handler name as it will probably be handled inside the program the same. :-\ I got a Menu.Save(Path) method working pretty well. Had to make an addition to Picture.class though, A Picture.Path property that stores the file Path when an image is loaded. i can save mostly all the menu data including pictures. (just got to work on Tag variants) For some reason I though having the handler name would be useful. ? Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Untitled.jpg Type: image/jpeg Size: 111467 bytes Desc: not available URL: From t.lee.davidson at gmail.com Fri Mar 3 19:41:16 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 3 Mar 2023 13:41:16 -0500 Subject: [Gambas-user] =?utf-8?q?=E2=80=8Bhttpget_issue?= In-Reply-To: References: Message-ID: On 3/3/23 11:34, Antonio Teixeira wrote: > Hi T Lee, > > Thank you for your answer. > Replacing?the data content?from?"username=a&password=a"?to "{'username'='a'&'password'='a'}" did not?solve the problem. The > answer "Bad Request" remains. > Any other ideas? > > Atentamente / Regards > > Ant?nio Teixeira Oops, what I wrote is not valid JSON either. Try this: "{\"username\":\"a\",\"password\":\"a\"}" Or, using the JSON class: JSON.encode(["username": "a", "password": "a"]) BTW, please quote only the relevant message, not the entire message digest. -- Lee From gambas.fr at gmail.com Sat Mar 4 05:47:52 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 4 Mar 2023 05:47:52 +0100 Subject: [Gambas-user] Getting an objects handler In-Reply-To: References: <64803199-a209-2291-620a-29f56fe37cf2@gmail.com> Message-ID: Do as if the handler and the name was the same. In the ide it go in this way. Le ven. 3 mars 2023 ? 19:36, Bruce Steers a ?crit : > > > > On Fri, 3 Mar 2023, 15:05 Bruce Steers, wrote: > >> >> >> On Fri, 3 Mar 2023, 12:37 BB, wrote: >> >>> >>> On 3/3/23 9:57 pm, Bruce Steers wrote: >>> >>> Is it possible to get the objects handler name? >>> >>> Ie. if i use... >>> >>> Dim m as Menu = New Menu(mParent) As "ThisMenu" >>> m.Name = "This" >>> m.Text = "This is a menu" >>> >>> I can read m.Name , m.Text, etc but can i get the "ThisMenu" reference? >>> >>> I've made a Menu.Save() Menu.Load() function to save/restore menus to >>> disk >>> It saves all the properties (except Tag yet) but i want to save the >>> handler name too. >>> >>> Many thanks. >>> BruceS >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> For why? >>> >> >> For Object.Attach() was my thinking >> > > To elaborate.... > > I have a few programs that i have made custom menu creators for. like the > new Desktop-ish launcher that is highly customizable. (i attached a snap of > the custom menu editor) > > I want to just Menu.Save(sFileName) and save the menu to file then just as > easily restore it. > Hmm, actually, thinking about it, I may not need to save the handler name > as it will probably be handled inside the program the same. :-\ > I got a Menu.Save(Path) method working pretty well. Had to make an > addition to Picture.class though, A Picture.Path property that stores the > file Path when an image is loaded. > i can save mostly all the menu data including pictures. (just got to > work on Tag variants) > > For some reason I though having the handler name would be useful. ? > > Respects > BruceS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Mar 4 11:44:28 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 4 Mar 2023 10:44:28 +0000 Subject: [Gambas-user] Getting an objects handler In-Reply-To: <9ce73858-89bb-8a92-9671-0385a20c1613@gambas-basic.org> References: <9ce73858-89bb-8a92-9671-0385a20c1613@gambas-basic.org> Message-ID: On Fri, 3 Mar 2023 at 11:35, Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 03/03/2023 ? 12:27, Bruce Steers a ?crit : > > Is it possible to get the objects handler name? > > > > No, it is stored nowhere. > > Regards, > > -- > Beno?t Minisini. > Aah. Cheers Ben :) Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Sat Mar 4 12:01:34 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 4 Mar 2023 11:01:34 +0000 Subject: [Gambas-user] Getting an objects handler In-Reply-To: References: <64803199-a209-2291-620a-29f56fe37cf2@gmail.com> Message-ID: On Sat, 4 Mar 2023 at 04:49, Fabien Bodard wrote: > Do as if the handler and the name was the same. > > In the ide it go in this way. > Cheers Fab Gotta love gambas, It only took a moment and i now have Menu.Handler property :) But i think i may have over-thought it. the program hasn't been constructed to the point of restoring the menus yet as I have mostly been working on saving the info. I suspect I may not even need the handler name :-\ i sure have needed the Picture.Path property , that's actually really useful :) Respects BruceS > > Le ven. 3 mars 2023 ? 19:36, Bruce Steers a ?crit : > >> >> >> >> On Fri, 3 Mar 2023, 15:05 Bruce Steers, wrote: >> >>> >>> >>> On Fri, 3 Mar 2023, 12:37 BB, wrote: >>> >>>> >>>> On 3/3/23 9:57 pm, Bruce Steers wrote: >>>> >>>> Is it possible to get the objects handler name? >>>> >>>> Ie. if i use... >>>> >>>> Dim m as Menu = New Menu(mParent) As "ThisMenu" >>>> m.Name = "This" >>>> m.Text = "This is a menu" >>>> >>>> I can read m.Name , m.Text, etc but can i get the "ThisMenu" reference? >>>> >>>> I've made a Menu.Save() Menu.Load() function to save/restore menus to >>>> disk >>>> It saves all the properties (except Tag yet) but i want to save the >>>> handler name too. >>>> >>>> Many thanks. >>>> BruceS >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>>> For why? >>>> >>> >>> For Object.Attach() was my thinking >>> >> >> To elaborate.... >> >> I have a few programs that i have made custom menu creators for. like the >> new Desktop-ish launcher that is highly customizable. (i attached a snap of >> the custom menu editor) >> >> I want to just Menu.Save(sFileName) and save the menu to file then just >> as easily restore it. >> Hmm, actually, thinking about it, I may not need to save the handler name >> as it will probably be handled inside the program the same. :-\ >> I got a Menu.Save(Path) method working pretty well. Had to make an >> addition to Picture.class though, A Picture.Path property that stores the >> file Path when an image is loaded. >> i can save mostly all the menu data including pictures. (just got to >> work on Tag variants) >> >> For some reason I though having the handler name would be useful. ? >> >> Respects >> BruceS >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sun Mar 5 15:02:59 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 5 Mar 2023 16:02:59 +0200 Subject: [Gambas-user] webhtml click event Message-ID: <20230305135240.M75586@455.co.il> Hello I am attaching an example that when I click on WebHTML it responds to a click event It seems to me that the way I did was not successful, maybe there is another advice on how to create the event on a certain control The problem was because: A. All gb.web.gui controls do not have a click event such as WEBHTML, WEBIMAGE, WEBLABEL, etc. B. In order to create an event in WEBHTML I took a WEBBUTTON control that has a click event. I put the HTML content inside WEBHTML.TEXT and put it: onclick=\"gw.raise('@1.WebButton2','click');\" onmousedown=event.stopPropagation(); Now when I click WEBHTML it reaches the WEBBUTTON click event And it's a bit complicated every time to create an additional control for an event. Is there another way? And also is there a good reason that there are no click events in all the gb.web.gui controls Many thanks for the help -------------- next part -------------- A non-text attachment was scrubbed... Name: html_click.zip Type: application/zip Size: 17705 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Sun Mar 5 19:45:48 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 5 Mar 2023 19:45:48 +0100 Subject: [Gambas-user] webhtml click event In-Reply-To: <20230305135240.M75586@455.co.il> References: <20230305135240.M75586@455.co.il> Message-ID: Le 05/03/2023 ? 15:02, Mayost Sharon a ?crit?: > And also is there a good reason that there are no click events in all the gb.web.gui controls > Yes, Logic. If a control is for displaying, it can't any event related to user interaction. Otherwise it will not be a display-only control. Why do you want to add a "Click" event to all controls? Why don't you use a WebButton is that case, customizing its look with css? -- Beno?t Minisini. From sharon at 455.co.il Sun Mar 5 22:17:37 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 5 Mar 2023 23:17:37 +0200 Subject: [Gambas-user] webhtml click event In-Reply-To: References: <20230305135240.M75586@455.co.il> Message-ID: <20230305204758.M86612@455.co.il> Hello first thanks In GTK or QT, controls that are views also have a click event, sometimes you need events on a view as well I can't use the WebButton for example: I want the label of the button to be aligned to the left side I am attaching an example file in which in WEBHTML I manage to align the caption to the left Thanks again ---------- Original Message ----------- From: Benoit Minisini To: user at lists.gambas-basic.org Sent: Sun, 5 Mar 2023 19:45:48 +0100 Subject: Re: [Gambas-user] webhtml click event > Le 05/03/2023 ? 15:02, Mayost Sharon a ?crit?: > > And also is there a good reason that there are no click events in all the gb.web.gui controls > > > > Yes, Logic. > > If a control is for displaying, it can't any event related to user > interaction. Otherwise it will not be a display-only control. > > Why do you want to add a "Click" event to all controls? Why don't you > use a WebButton is that case, customizing its look with css? > > -- > Beno?t Minisini. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: html_click2.zip Type: application/zip Size: 18998 bytes Desc: not available URL: From gradobag at gradobag.it Mon Mar 6 09:59:22 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 6 Mar 2023 09:59:22 +0100 Subject: [Gambas-user] webhtml click event In-Reply-To: <20230305204758.M86612@455.co.il> References: <20230305135240.M75586@455.co.il> <20230305204758.M86612@455.co.il> Message-ID: <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> Il 05/03/23 22:17, Mayost Sharon ha scritto: > Hello > > first thanks > > In GTK or QT, controls that are views also have a click event, sometimes you need events on a view as well > > I can't use the WebButton for example: > I want the label of the button to be aligned to the left side > > I am attaching an example file in which in WEBHTML I manage to align the caption to the left > > Thanks again Hi, I'm not sure I understand your needs, each time you ask for something different. Maybe you are missing the basics of Gambas? Are you sure you understand how containers work? Have you ever read the component code? Here is the link: https://gitlab.com/gambas/gambas/-/tree/3.18.1/comp/src/gb.web.gui Here you will find lectures by A. Guzman, they refer to the previous webform but are still valid: https://www.youtube.com/@alessandriguzmanabad173/videos Regards Gianluigi From sharon at 455.co.il Mon Mar 6 15:55:38 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 6 Mar 2023 16:55:38 +0200 Subject: [Gambas-user] webhtml click event In-Reply-To: <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> References: <20230305135240.M75586@455.co.il> <20230305204758.M86612@455.co.il> <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> Message-ID: <20230306144647.M46385@455.co.il> Hello First thanks for the video tutorials I will watch them You may not understand me because I don't know English and I translate through Google 1. You refer me to a source code and I don't know how to read it, I should use GAMBAS even if I don't know the source 2. My question was why all the WEB controls in GAMBAS do not have the click event. According to what I understand, there are events that are the basis for all the elements, you can see here: https://www.w3schools.com/js/js_events.asp Many thanks ---------- Original Message ----------- From: Gianluigi To: user at lists.gambas-basic.org Sent: Mon, 6 Mar 2023 09:59:22 +0100 Subject: Re: [Gambas-user] webhtml click event > Il 05/03/23 22:17, Mayost Sharon ha scritto: > > Hello > > > > first thanks > > > > In GTK or QT, controls that are views also have a click event, sometimes you need events on a view as well > > > > I can't use the WebButton for example: > > I want the label of the button to be aligned to the left side > > > > I am attaching an example file in which in WEBHTML I manage to align the caption to the left > > > > Thanks again > > Hi, > > I'm not sure I understand your needs, each time you ask for something > different. > Maybe you are missing the basics of Gambas? > Are you sure you understand how containers work? > Have you ever read the component code? Here is the link: > https://gitlab.com/gambas/gambas/-/tree/3.18.1/comp/src/gb.web.gui > Here you will find lectures by A. Guzman, they refer to the previous > webform but are still valid: > https://www.youtube.com/@alessandriguzmanabad173/videos > > Regards > > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- From gradobag at gradobag.it Mon Mar 6 15:46:38 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 6 Mar 2023 15:46:38 +0100 Subject: [Gambas-user] webhtml click event In-Reply-To: <20230306144647.M46385@455.co.il> References: <20230305135240.M75586@455.co.il> <20230305204758.M86612@455.co.il> <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> <20230306144647.M46385@455.co.il> Message-ID: <659b80af-57a2-1cb6-d77b-bd52facf0934@gradobag.it> Il 06/03/23 15:55, Mayost Sharon ha scritto: > Hello > > First thanks for the video tutorials I will watch them > > You may not understand me because I don't know English and I translate through Google > > 1. You refer me to a source code and I don't know how to read it, I should use GAMBAS even if I don't know the source > 2. My question was why all the WEB controls in GAMBAS do not have the click event. > According to what I understand, there are events that are the basis for all the elements, you can see here: > https://www.w3schools.com/js/js_events.asp > > Many thanks Hi, I am unable to add anything to what has already been said. I attach a link to a compressed video on how to read Benoit's code from the Gambas IDE: https://paste.c-net.org/GenieLamar Regards Gianluigi From bsteers4 at gmail.com Mon Mar 6 16:26:30 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 6 Mar 2023 15:26:30 +0000 Subject: [Gambas-user] webhtml click event In-Reply-To: <20230305204758.M86612@455.co.il> References: <20230305135240.M75586@455.co.il> <20230305204758.M86612@455.co.il> Message-ID: On Sun, 5 Mar 2023, 20:23 Mayost Sharon, wrote: > Hello > > first thanks > > In GTK or QT, controls that are views also have a click event, sometimes > you need events on a view as well > > I can't use the WebButton for example: > I want the label of the button to be aligned to the left side. With webdrawingarea you can make any kind of control. > > I am attaching an example file in which in WEBHTML I manage to align the > caption to the left > > Thanks agai. gb.gtk and GB.qt toolkits are nothing like web.gui They cannot be compared. You are comparing advanced gui builder toolkits with a htm/js Just because GB.gtk and GB.qt work in a certain way really does not mean gb.web will. Hb web is very long muted compared to gui toolkits. It is easy to add your own click events and customise any web components to suit your own specific needs I do not want Every control to fire click event. Not every gui toolkit control fires a click event. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon Mar 6 22:02:52 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 6 Mar 2023 23:02:52 +0200 Subject: [Gambas-user] webhtml click event In-Reply-To: <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> References: <20230305135240.M75586@455.co.il> <20230305204758.M86612@455.co.il> <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> Message-ID: <20230306205636.M19839@455.co.il> Hello I saw all the videos (very nice) But I didn't see it explaining how to create a WebHTML click event And I didn't understand what CSS has to do with creating events If I still need a click event in WebHTML how do I do it? Is the only way only through source code? Thanks ---------- Original Message ----------- From: Gianluigi To: user at lists.gambas-basic.org Sent: Mon, 6 Mar 2023 09:59:22 +0100 Subject: Re: [Gambas-user] webhtml click event > Il 05/03/23 22:17, Mayost Sharon ha scritto: > > Hello > > > > first thanks > > > > In GTK or QT, controls that are views also have a click event, sometimes you need events on a view as well > > > > I can't use the WebButton for example: > > I want the label of the button to be aligned to the left side > > > > I am attaching an example file in which in WEBHTML I manage to align the caption to the left > > > > Thanks again > > Hi, > > I'm not sure I understand your needs, each time you ask for something > different. > Maybe you are missing the basics of Gambas? > Are you sure you understand how containers work? > Have you ever read the component code? Here is the link: > https://gitlab.com/gambas/gambas/-/tree/3.18.1/comp/src/gb.web.gui > Here you will find lectures by A. Guzman, they refer to the previous > webform but are still valid: > https://www.youtube.com/@alessandriguzmanabad173/videos > > Regards > > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- From benoit.minisini at gambas-basic.org Tue Mar 7 00:19:08 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 7 Mar 2023 00:19:08 +0100 Subject: [Gambas-user] Problem with Embedded Server In-Reply-To: <6969cd90-6c33-839a-2416-b3d7cc26a5b2@gmail.com> References: <5120aad5-882a-7fa4-ab25-10bb7e0f9de4@gmail.com> <9c7b8af0-d77e-c117-b526-05ead2fe6f80@gmail.com> <1d1d60c1-8464-2314-a477-7f7381d841ab@gmail.com> <5ee2097d-14b3-e923-663a-c154ed519269@deganius.de> <84b7b438-ee67-3976-642b-73d2494d2233@gmail.com> <312729a5-709b-d43a-5bd0-1be0c71d67fc@gmail.com> <6969cd90-6c33-839a-2416-b3d7cc26a5b2@gmail.com> Message-ID: <92eba2d9-9f77-4b88-068f-a8b02c359fac@gambas-basic.org> Le 01/03/2023 ? 21:19, T Lee Davidson a ?crit?: > On 3/1/23 14:46, T Lee Davidson wrote: >> >>> Ok.?Claus?provided?an?application?with?which?it?happens. >> >> No, I have not. I'll have to go find it. While I'm there, I'll try to >> find the discussion from when I raised this issue, I >> think,?a?couple?of?years?ago. > > Okay, it wasn't even a year ago. > First asked: > https://lists.gambas-basic.org/pipermail/user/2022-June/076211.html > Asked again: > https://lists.gambas-basic.org/pipermail/user/2022-June/076222.html > > I got webapp4_Prelease-3.7.7.tar.gz from the link Clause posted. But, > then Hans sent me an updated version, webapp4-3.7.12.tar.gz. > > With v3.7.12 I cannot reproduce the issue. I have launched and > relaunched it a number of times immediately after another; running > through all the top menu items each time. It works fine here. :-\ > > Commit https://gitlab.com/gambas/gambas/-/commit/cac1a0f3d0919d757337cb805ec34d2479378132 should fix the problem, if people want to try. It's actually a workaround. But not an ugly workaround. A reasonable one. I think there is some race condition behind that stuff, related to the fact that I move the fifo between the debugger and the IDE between blocking and non-blocking state, leading to random read or write failures. Regards, -- Beno?t Minisini. From bsteers4 at gmail.com Tue Mar 7 03:26:40 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 7 Mar 2023 02:26:40 +0000 Subject: [Gambas-user] webhtml click event In-Reply-To: <20230306205636.M19839@455.co.il> References: <20230305135240.M75586@455.co.il> <20230305204758.M86612@455.co.il> <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> <20230306205636.M19839@455.co.il> Message-ID: On Mon, 6 Mar 2023 at 20:00, Mayost Sharon wrote: > Hello > > I saw all the videos (very nice) > But I didn't see it explaining how to create a WebHTML click event > And I didn't understand what CSS has to do with creating events > > If I still need a click event in WebHTML how do I do it? > Is the only way only through source code? > > Thanks > I thought you wanted a WebButton but with text on the other side? I attach a simple example where i have imported the WebButton.class into my project from gb.web.gui source. I removed EVERY function from the class except the _Render() method. I put the first (make Image) part into a method called RenderImage() I put the last (make menu arrow) part into a method called RenderArrow() I added a "Invert" property. I then made it write either Image - Text - Arrow (Default) or Arrow - Text - Image (if Inverted) It works for compact buttons but not for expanded ones as when inverted the image is center but the text is align.left. I added 2 buttons with images and set Invert on one of them. I had to place the buttons into panels to shrink them to get over the align.left problem. this is only a simple example but shows how you can easily modify an object to your own needs. It is what you said you initially wanted , a button with the text to the left of the image. You must study some of the gb-web-gui object code. You complain that you are being pointed to code you do not understand, but that's the point, YOU MUST understand. I did not understand when i first started using web-gui, but then it starts to make sense. and you will realize gb.web.gui is very different to gb.gui and it will always be. gb.web.gui is very minimal in features, mostly because all it can do is produce HTMl/JS code. If you wish to get more advanced objects you really must learn how your current gb.web objects are made and how to manipulate them. They are all here https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.web.gui/.src some are not so complicated and examining them will help you understand. There's always a way :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- H4sIAAAAAAAAA+28B1hTy9Y3vkNvAoI0RQhI1QgJhKL0ohRBpCpFeuiEEnoNRQSRoiBdQVFEqogU C72JiAhIEUR6FwFBigTy3wE97d73nvv9n3vOfd7v46c+O9kzs2bNWjOrzGS8iLJECAN/LeAgJCQk dp8g/vjc/YxAIuEIMYQEUlQEgCPgomISAFTsL+ZrF54YDwt3KBRwd3Hx+Ff1/qz8fykuEvQvZGHl Ye+C/qvmwb+nfxFxUXFxMQQSrIdASIjs6/9vwZ7+re3dUVYeLu6+f0kff6p/JOKn/pEiYghQ/yKi EiIAFP6XcPMH/D+uf2NlFMbRw8UVegbt4e57mUrNygUtIyQsZA8+hVzRtlT/bQb38Zdib/3bWjhb WmD+u/Z/1/8j4SK79h+0BPv2/+/Anv7t7K2tUf91/w8XB2uJie76fwR8X/9/B/b0/9Pa/zV9/Gv9 i4gjJMT/6P8RIvv+/29B1IXzKgeoDhPc/AE1VWUdAIAAhH8UZODDxD3XBnyQYBTV9ChABFBYRwIA FFBTVtDzyVi4reZkreY3jD/o0n4r9eO1y0M9Q/pDMt1D3XeSYMKix4gjoHUiJMYi0Nq1oeoN642R MOBIdT9/A/mWdW31ljlF9QD5Jp/hMbuzpd9ML1/uKXNVE0l4s7BwULYxOlk4QU3k2YRi9SI5j6pN dYCwyObY4Dj1Gt1OUw2RAn1TuLA/QKIAo2MASLTNVQF65RAuiDw9aQQJoHCI9a99iSj2Dw0+tHPx WTD3k5oD4juntfA2CXKYFg1Z26XO/OvEOrmZ31O6py2z11c6fSWJ70sH4ibETpGHX5DjN+uIiy5p xTyebZku4u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kyfq19a74fUPZmWgu4V7TOmgbNxR GLufxP7ZFsou/3s56h4FqZ+8/0/6/7H+9856/qI59qf5H1z8D/GfCFxsf//vb8Evp3tUcMKf3aM9 qp8ner+e4/329O7Hmd1vTur+tzi7fexjH/vYxz72sY997GMf+9jHPvaxj33sYx/72Mc+9rGPfezj /3L8fxLqPFQAeAAA -------------- next part -------------- A non-text attachment was scrubbed... Name: Untitled.jpg Type: image/jpeg Size: 68434 bytes Desc: not available URL: From sharon at 455.co.il Tue Mar 7 07:34:52 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 7 Mar 2023 08:34:52 +0200 Subject: [Gambas-user] webhtml click event In-Reply-To: References: <20230305135240.M75586@455.co.il> <20230305204758.M86612@455.co.il> <5e5c77c5-dc3b-cdef-c238-9a07ee0f9e0a@gradobag.it> <20230306205636.M19839@455.co.il> Message-ID: <20230307062800.M2350@455.co.il> Hello Thank you very much Your example helped me a lot. Many thanks again ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Tue, 7 Mar 2023 02:26:40 +0000 Subject: Re: [Gambas-user] webhtml click event > On Mon, 6 Mar 2023 at 20:00, Mayost Sharon wrote: > > > Hello > > > > I saw all the videos (very nice) > > But I didn't see it explaining how to create a WebHTML click event > > And I didn't understand what CSS has to do with creating events > > > > If I still need a click event in WebHTML how do I do it? > > Is the only way only through source code? > > > > Thanks > > > > I thought you wanted a WebButton but with text on the other side? > > I attach a simple example where i have imported the WebButton.class into my > project from gb.web.gui source. > > I removed EVERY function from the class except the _Render() method. > I put the first (make Image) part into a method called RenderImage() > I put the last (make menu arrow) part into a method called RenderArrow() > > I added a "Invert" property. > > I then made it write either > Image - Text - Arrow (Default) > or > Arrow - Text - Image (if Inverted) > > It works for compact buttons but not for expanded ones as when inverted the > image is center but the text is align.left. > I added 2 buttons with images and set Invert on one of them. > I had to place the buttons into panels to shrink them to get over the > align.left problem. > > this is only a simple example but shows how you can easily modify an object > to your own needs. > > It is what you said you initially wanted , a button with the text to the > left of the image. > > You must study some of the gb-web-gui object code. > You complain that you are being pointed to code you do not understand, but > that's the point, YOU MUST understand. > > I did not understand when i first started using web-gui, but then it starts > to make sense. > and you will realize gb.web.gui is very different to gb.gui and it will > always be. > gb.web.gui is very minimal in features, mostly because all it can do is > produce HTMl/JS code. > > If you wish to get more advanced objects you really must learn how your > current gb.web objects are made and how to manipulate them. They are all > here https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.web.gui/.src > some are not so complicated and examining them will help you understand. > > There's always a way :) > BruceS ------- End of Original Message ------- From denisc at exemail.com.au Tue Mar 7 05:56:16 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Tue, 7 Mar 2023 15:56:16 +1100 Subject: [Gambas-user] IDE Error Message-ID: The attached error is raised if I click New or Open Project when first starting the IDE. Only since upgrading to 3.18.1 Anybody else have this or should I report it? -- Regards Denis -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas_NewProjectError.png Type: image/png Size: 100892 bytes Desc: not available URL: From chrisml at deganius.de Tue Mar 7 08:10:33 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 7 Mar 2023 08:10:33 +0100 Subject: [Gambas-user] IDE Error In-Reply-To: References: Message-ID: <7726aa78-02aa-af0f-3925-9251bd8bbe6c@deganius.de> Am 07.03.23 um 05:56 schrieb Denis Crowther: > > The attached error is raised if I click New or Open Project when first > starting the IDE. Only since upgrading to 3.18.1 > > Anybody else have this or should I report it? First check your installation. If you have an Apt-based system then execute 'dpkg -l | grep gambas' and check if every package installed has the same version. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From denisc at exemail.com.au Tue Mar 7 08:38:15 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Tue, 7 Mar 2023 18:38:15 +1100 Subject: [Gambas-user] IDE Error In-Reply-To: <7726aa78-02aa-af0f-3925-9251bd8bbe6c@deganius.de> References: <7726aa78-02aa-af0f-3925-9251bd8bbe6c@deganius.de> Message-ID: <49a4b1c6-2b71-7cac-2d63-a5c8d55da4f6@exemail.com.au> On 3/7/23 18:10, Christof Thalhofer wrote: > Am 07.03.23 um 05:56 schrieb Denis Crowther: >> >> The attached error is raised if I click New or Open Project when first >> starting the IDE. Only since upgrading to 3.18.1 >> >> Anybody else have this or should I report it? > > First check your installation. If you have an Apt-based system then execute > > 'dpkg -l | grep gambas' > > and check if every package installed has the same version. > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Thanks but I compiled from source. -- Regards Denis From hans at gambas-buch.de Tue Mar 7 09:18:25 2023 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 7 Mar 2023 09:18:25 +0100 Subject: [Gambas-user] IDE Error In-Reply-To: <7726aa78-02aa-af0f-3925-9251bd8bbe6c@deganius.de> References: <7726aa78-02aa-af0f-3925-9251bd8bbe6c@deganius.de> Message-ID: <9778fdfa-5fcf-0693-e305-262d24e45693@gambas-buch.de> Am 07.03.23 um 08:10 schrieb Christof Thalhofer: > First check your installation. If you have an Apt-based system then > execute > > 'dpkg -l | grep gambas' > > and check if every package installed has the same version. Hello. The above test showed that all Gambas packages have the same version number. However, the listed error still occurs with me under the same conditions. With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Tue Mar 7 09:44:19 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 7 Mar 2023 19:14:19 +1030 Subject: [Gambas-user] IDE Error In-Reply-To: References: Message-ID: On 7/3/23 3:26 pm, Denis Crowther wrote: > > The attached error is raised if I click New or Open Project when first > starting the IDE. Only since upgrading to 3.18.1 > > Anybody else have this or should I report it? Yes, report it. From bsteers4 at gmail.com Tue Mar 7 12:09:17 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 7 Mar 2023 11:09:17 +0000 Subject: [Gambas-user] IDE Error In-Reply-To: References: Message-ID: The error occurs on this line... $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" Check your ~/.config/user-dirs.dirs file has something like this line in it.,.. XDG_PUBLICSHARE_DIR="$HOME/Public" $ cat ~/.config/user-dirs.dirs Mine does and i get no errors. BruceS On Tue, 7 Mar 2023 at 05:33, Denis Crowther wrote: > > The attached error is raised if I click New or Open Project when first > starting the IDE. Only since upgrading to 3.18.1 > > Anybody else have this or should I report it? > > > -- > Regards > Denis > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From denisc at exemail.com.au Tue Mar 7 12:32:41 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Tue, 7 Mar 2023 22:32:41 +1100 Subject: [Gambas-user] IDE Error In-Reply-To: References: Message-ID: On 3/7/23 22:09, Bruce Steers wrote: I didn't have that line and now it's fixed. Thank You > > > The error occurs on this line... > $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" > > Check your ~/.config/user-dirs.dirs file has something like this line in > it.,.. > XDG_PUBLICSHARE_DIR="$HOME/Public" > > $ cat ~/.config/user-dirs.dirs > > > Mine does and i get no errors. > > BruceS > > > On Tue, 7 Mar 2023 at 05:33, Denis Crowther > wrote: > > > The attached error is raised if I click New or Open Project when first > starting the IDE. Only since upgrading to 3.18.1 > > Anybody else have this or should I report it? > > > -- > Regards > Denis > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > -- Regards Denis From bsteers4 at gmail.com Tue Mar 7 13:01:59 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 7 Mar 2023 12:01:59 +0000 Subject: [Gambas-user] IDE Error In-Reply-To: References: Message-ID: You are welcome. I guess it's still a bug that needs squishing though as a few people seem to have the same issue. Ben would best know how , i would just pop a "Try" in front of the offending line. ? Respects BruceS On Tue, 7 Mar 2023 at 11:33, Denis Crowther wrote: > On 3/7/23 22:09, Bruce Steers wrote: > > I didn't have that line and now it's fixed. > > Thank You > > > > > > > The error occurs on this line... > > $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" > > > > Check your ~/.config/user-dirs.dirs file has something like this line in > > it.,.. > > XDG_PUBLICSHARE_DIR="$HOME/Public" > > > > $ cat ~/.config/user-dirs.dirs > > > > > > Mine does and i get no errors. > > > > BruceS > > > > > > On Tue, 7 Mar 2023 at 05:33, Denis Crowther > > wrote: > > > > > > The attached error is raised if I click New or Open Project when > first > > starting the IDE. Only since upgrading to 3.18.1 > > > > Anybody else have this or should I report it? > > > > > > -- > > Regards > > Denis > > ----[ http://gambaswiki.org/wiki/doc/netiquette > > ]---- > > > > -- > Regards > Denis > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Mar 7 14:26:28 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 7 Mar 2023 08:26:28 -0500 Subject: [Gambas-user] IDE Error In-Reply-To: References: Message-ID: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> On 3/7/23 06:09, Bruce Steers wrote: > The error occurs on this line... > $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" > > Check your ~/.config/user-dirs.dirs file has something like this line in it.,.. > XDG_PUBLICSHARE_DIR="$HOME/Public" > > $ cat ~/.config/user-dirs.dirs > > > Mine does and i get no errors. > > BruceS I wonder if it is distro-specific. No problem on openSUSE; the line was already there: user at linux-desktop:~> grep -i "publicshare" ~/.config/user-dirs.dirs XDG_PUBLICSHARE_DIR="$HOME/" -- Lee From denisc at exemail.com.au Tue Mar 7 14:49:33 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Wed, 8 Mar 2023 00:49:33 +1100 Subject: [Gambas-user] IDE Error In-Reply-To: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> References: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> Message-ID: <189f7c06-c13f-f63b-74ab-51fd829da491@exemail.com.au> On 3/8/23 00:26, T Lee Davidson wrote: > On 3/7/23 06:09, Bruce Steers wrote: >> The error occurs on this line... >> $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" >> >> Check your ~/.config/user-dirs.dirs file has something like this line >> in it.,.. >> XDG_PUBLICSHARE_DIR="$HOME/Public" >> >> $ cat ~/.config/user-dirs.dirs >> >> >> Mine does and i get no errors. >> >> BruceS > > I wonder if it is distro-specific. > > No problem on openSUSE; the line was already there: > user at linux-desktop:~> grep -i "publicshare" ~/.config/user-dirs.dirs > XDG_PUBLICSHARE_DIR="$HOME/" > > BruceS said and I used "$HOME/Public" not "$HOME/", typo?. Also I compiled from source, not a distro. -- Regards Denis From bsteers4 at gmail.com Tue Mar 7 15:09:21 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 7 Mar 2023 14:09:21 +0000 Subject: [Gambas-user] IDE Error In-Reply-To: <189f7c06-c13f-f63b-74ab-51fd829da491@exemail.com.au> References: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> <189f7c06-c13f-f63b-74ab-51fd829da491@exemail.com.au> Message-ID: On Tue, 7 Mar 2023 at 13:50, Denis Crowther wrote: > On 3/8/23 00:26, T Lee Davidson wrote: > > On 3/7/23 06:09, Bruce Steers wrote: > >> The error occurs on this line... > >> $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" > >> > >> Check your ~/.config/user-dirs.dirs file has something like this line > >> in it.,.. > >> XDG_PUBLICSHARE_DIR="$HOME/Public" > >> > >> $ cat ~/.config/user-dirs.dirs > >> > >> > >> Mine does and i get no errors. > >> > >> BruceS > > > > I wonder if it is distro-specific. > > > > No problem on openSUSE; the line was already there: > > user at linux-desktop:~> grep -i "publicshare" ~/.config/user-dirs.dirs > > XDG_PUBLICSHARE_DIR="$HOME/" > > > > > > BruceS said and I used "$HOME/Public" not "$HOME/", typo?. > > Also I compiled from source, not a distro. > > -- > Regards > Denis > I think he means the XDG_PUBLICSHARE_DIR setting not being there is distro specific. and the location is just where you choose the root of your public area. (it's up to you) I'm sure you can choose to not have a public dir i wonder if that makes the line missing from the config? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Mar 7 16:50:47 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 7 Mar 2023 15:50:47 +0000 Subject: [Gambas-user] IDE Error In-Reply-To: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> References: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> Message-ID: On Tue, 7 Mar 2023 at 13:27, T Lee Davidson wrote: > On 3/7/23 06:09, Bruce Steers wrote: > > The error occurs on this line... > > $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" > > > > Check your ~/.config/user-dirs.dirs file has something like this line in > it.,.. > > XDG_PUBLICSHARE_DIR="$HOME/Public" > > > > $ cat ~/.config/user-dirs.dirs > > > > > > Mine does and i get no errors. > > > > BruceS > > I wonder if it is distro-specific. > > No problem on openSUSE; the line was already there: > user at linux-desktop:~> grep -i "publicshare" ~/.config/user-dirs.dirs > XDG_PUBLICSHARE_DIR="$HOME/" > > > -- > Lee > a little research shows gnome-user-share will set the XDG_PUBLICSHARE_DIR variable. (and possibly remove it if uninstalled) I guess it's not a guaranteed to exist value. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Mar 7 18:14:19 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 7 Mar 2023 12:14:19 -0500 Subject: [Gambas-user] IDE Error In-Reply-To: References: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> <189f7c06-c13f-f63b-74ab-51fd829da491@exemail.com.au> Message-ID: On 3/7/23 09:09, Bruce Steers wrote: > On Tue, 7 Mar 2023 at 13:50, Denis Crowther > wrote: > On 3/8/23 00:26, T Lee Davidson wrote: > > On 3/7/23 06:09, Bruce Steers wrote: > >> The error occurs on this line... > >> $cDesktopDirCache[Desktop.GetDirectory("PUBLICSHARE")] = "folder-share" > >> > >> Check your ~/.config/user-dirs.dirs file has something like this line > >> in it.,.. > >> XDG_PUBLICSHARE_DIR="$HOME/Public" > >> > >> $ cat ~/.config/user-dirs.dirs > >> > >> > >> Mine does and i get no errors. > >> > >> BruceS > > > > I wonder if it is distro-specific. > > > > No problem on openSUSE; the line was already there: > > user at linux-desktop:~> grep -i "publicshare" ~/.config/user-dirs.dirs > > XDG_PUBLICSHARE_DIR="$HOME/" > > > > > > BruceS said and I used "$HOME/Public" not "$HOME/", typo?. > > Also I compiled from source, not a distro. > > -- > Regards > Denis > > > I think he means the XDG_PUBLICSHARE_DIR setting not being there is distro specific. That is correct. I believe the content of user-dirs.dirs and user-dirs.locale are set by the specific distro, not Gambas. -- Lee From adamnt42 at gmail.com Wed Mar 8 12:42:25 2023 From: adamnt42 at gmail.com (BB) Date: Wed, 8 Mar 2023 22:12:25 +1030 Subject: [Gambas-user] IDE Error In-Reply-To: References: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> <189f7c06-c13f-f63b-74ab-51fd829da491@exemail.com.au> Message-ID: <2f880027-fa85-4243-c7d3-e28860664083@gmail.com> On 8/3/23 3:44 am, T Lee Davidson wrote: > That is correct. I believe the content of user-dirs.dirs and > user-dirs.locale are set by the specific distro, not Gambas. To be possibly pedantic its more of a problem with the version of the XDG utilities. This was a consistent problem that I have had over the years with different distros. To put it simply, the XDG scripts are not a *standard* and the distro installed version is one that is convenient to the distro maintainers, for their purposes. For example, for years the Ubuntu version was a complete hack and generally unusable anywhere else. Remember, they are just shell scripts. These days I just install the latest "Portland" version which 99% of the time works ootb. However, there is a bug! Gambas tries to use an internal set of the utilities. That doesn't work. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Wed Mar 8 16:53:26 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 8 Mar 2023 16:53:26 +0100 Subject: [Gambas-user] IDE Error In-Reply-To: References: Message-ID: <96d61a6e-45b0-a04d-02ec-dfbfde093c6a@gambas-basic.org> Le 07/03/2023 ? 05:56, Denis Crowther a ?crit?: > > The attached error is raised if I click New or Open Project when first > starting the IDE. Only since upgrading to 3.18.1 > > Anybody else have this or should I report it? > It's fixed in the last commit. Regards, -- Beno?t Minisini. From claus.dietrich at freenet.de Wed Mar 8 16:54:54 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Wed, 8 Mar 2023 16:54:54 +0100 Subject: [Gambas-user] No Cache Control with gb.web? Message-ID: Hi I couldn't find any property in gb.web to control the cache of the browser. It seems that the cache is always switched off, which is visible in the we-app from Hans which I provided recently for testing. Is there a way or workaround to get the cache controlled or would it be a good idea to add an according property in the response class? Best regards Claus From benoit.minisini at gambas-basic.org Wed Mar 8 16:57:11 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 8 Mar 2023 16:57:11 +0100 Subject: [Gambas-user] IDE Error In-Reply-To: <2f880027-fa85-4243-c7d3-e28860664083@gmail.com> References: <6293b483-1658-2750-df59-7247294a5b08@gmail.com> <189f7c06-c13f-f63b-74ab-51fd829da491@exemail.com.au> <2f880027-fa85-4243-c7d3-e28860664083@gmail.com> Message-ID: Le 08/03/2023 ? 12:42, BB a ?crit?: > > On 8/3/23 3:44 am, T Lee Davidson wrote: >> That is correct. I believe the content of user-dirs.dirs and >> user-dirs.locale are set by the specific distro, not Gambas. > > To be possibly pedantic its more of a problem with the version of the > XDG utilities. This was a consistent problem that I have had over the > years with different distros. > > To put it simply, the XDG scripts are not a *standard* and the distro > installed version is one that is convenient to the distro maintainers, > for their purposes. For example, for years the Ubuntu version was a > complete hack and generally unusable anywhere else. Remember, they are > just shell scripts. > > These days I just install the latest "Portland" version which 99% of the > time works ootb. What you say is right, but it is not related to the problem described in this thread, that I fixed in the last commit. > > > However, there is a bug! Gambas tries to use an internal set of the > utilities. That doesn't work. They are internal in Gambas because of the exact problem you describe: the ones installed on the system are often out of date. It's just that I must update them more frequently. Moreover, the XDG shell scripts are currently slowly replaced by the DBus XDG portal we were talking about in another thread. The advantage of shell scripts is that they do not depend on DBus. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Wed Mar 8 16:59:28 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 8 Mar 2023 16:59:28 +0100 Subject: [Gambas-user] No Cache Control with gb.web? In-Reply-To: References: Message-ID: Le 08/03/2023 ? 16:54, Claus Dietrich a ?crit?: > Hi > > I couldn't find any property in gb.web to control the cache of the > browser. It seems that the > > cache is always switched off, which is visible in the we-app from Hans > which I provided recently > > for testing. Is there a way or workaround to get the cache controlled or > would it be a good idea > > to add an according property in the response class? > > Best regards > > Claus > Page that are dynamically generated are usually never cached. Otherwise, you can add your own HTTP headers with the Response.AddHeader() method to control the HTTP cache behaviour. Good luck, it is not simple, as the different browsers seem not to react exactly the same way to the HTTP cache headers. Regards, -- Beno?t Minisini. From denisc at exemail.com.au Thu Mar 9 02:45:16 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Thu, 9 Mar 2023 12:45:16 +1100 Subject: [Gambas-user] IDE Error In-Reply-To: <96d61a6e-45b0-a04d-02ec-dfbfde093c6a@gambas-basic.org> References: <96d61a6e-45b0-a04d-02ec-dfbfde093c6a@gambas-basic.org> Message-ID: <3f7a9d6e-44df-b305-1f40-c8c544647b3f@exemail.com.au> On 3/9/23 02:53, Benoit Minisini wrote: > Le 07/03/2023 ? 05:56, Denis Crowther a ?crit?: >> >> The attached error is raised if I click New or Open Project when first >> starting the IDE. Only since upgrading to 3.18.1 >> >> Anybody else have this or should I report it? >> > > It's fixed in the last commit. > > Regards, > Thank You. I'll shortly be installing Gambas on 2 new machines, now I won't have to remember the fix given by Bruce. and thank you for Gambas itself. -- Regards Denis From bsteers4 at gmail.com Thu Mar 9 16:32:19 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 9 Mar 2023 15:32:19 +0000 Subject: [Gambas-user] a form within a form and Resize event Message-ID: I have a form Inside this form are some objects that are other forms. If i resize the top form and the inner forms also resize themselves they do not fire their own resize events. I think they should, as they are actually being resized. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Thu Mar 9 18:32:35 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 9 Mar 2023 19:32:35 +0200 Subject: [Gambas-user] difference ME and SUPER with inherit Message-ID: <20230309172922.M63772@455.co.il> Hello When I inherit a command Does it make a difference if I use: ME or Super Attached is an example that I don't see a difference For example, I change ListBox.Clear which will clear the entire list except for the rhyme "c" Both when I use me and when I use super it works So the question is if there is a difference between them? Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: super1.tar.xz Type: application/x-xz Size: 12856 bytes Desc: not available URL: From adamnt42 at gmail.com Thu Mar 9 17:10:03 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 10 Mar 2023 02:40:03 +1030 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <20230309172922.M63772@455.co.il> References: <20230309172922.M63772@455.co.il> Message-ID: <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> Yes there is. If you override a parent property or public method then you can use Super to force the reference to the parent item and Me to refer to the local one. Otherwise they just refer to the visible one, if its in the parent then that one is used with either Me or Super. b On 10/3/23 4:02 am, Mayost Sharon wrote: > Hello > When I inherit a command > Does it make a difference if I use: > ME or Super > Attached is an example that I don't see a difference > For example, I change ListBox.Clear which will clear the entire list except for the rhyme "c" > Both when I use me and when I use super it works > So the question is if there is a difference between them? > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Mar 9 17:14:52 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 10 Mar 2023 02:44:52 +1030 Subject: [Gambas-user] a form within a form and Resize event In-Reply-To: References: Message-ID: On 10/3/23 2:02 am, Bruce Steers wrote: > I have a form > > Inside this form are some objects that are other forms. > > If i resize the top form and the inner forms also resize themselves > they do not fire their own resize events. > > I think they should, as they are actually being resized. > > Respects > BruceS > Hmm, I use that a lot with forms embedded in TabStrips and don't have that problem. Maybe it depends on the container that your sub-forms are in? b -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Thu Mar 9 17:59:21 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 9 Mar 2023 18:59:21 +0200 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> Message-ID: <20230309165221.M33083@455.co.il> Hello first thanks I could not understand your explanation also I tried to take the example of the documentation: http://gambaswiki.org/wiki/lang/super When I run it gives me an error: INCORRECT OVERRIDEN IN CLASS Attached is an example I tried to run Thanks ---------- Original Message ----------- From: BB To: user at lists.gambas-basic.org Sent: Fri, 10 Mar 2023 02:40:03 +1030 Subject: Re: [Gambas-user] difference ME and SUPER with inherit > Yes there is. > > If you override a parent property or public method then you can use > Super to force the reference to the parent item and Me to refer to the > local one. Otherwise they just refer to the visible one, if its in the > parent then that one is used with either Me or Super. > > b > > On 10/3/23 4:02 am, Mayost Sharon wrote: > > Hello > > When I inherit a command > > Does it make a difference if I use: > > ME or Super > > Attached is an example that I don't see a difference > > For example, I change ListBox.Clear which will clear the entire list except for the rhyme "c" > > Both when I use me and when I use super it works > > So the question is if there is a difference between them? > > > > Thank you > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: super2.tar.xz Type: application/x-xz Size: 12860 bytes Desc: not available URL: From adamnt42 at gmail.com Thu Mar 9 18:09:05 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 10 Mar 2023 03:39:05 +1030 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> Message-ID: <6d66f323-5be4-b1bf-d202-4dbae96f8fe2@gmail.com> *ClassA* Public Function? DoThis(X as integer) as Integer ??? Return X/2 End *ClassB* Public Function DoThis(Y as Integer) as Integer ??? If "IsOdd"(Y) then ??? ??? Return Super.DoThis(Y-1) ??? Else ??? ??? Return(X*2) End Public Sub Main Dim I as Integer ??? For I = 1 to 10 ??? ??? Print DoThis(I) ??? End End -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Thu Mar 9 19:24:18 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 9 Mar 2023 20:24:18 +0200 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <6d66f323-5be4-b1bf-d202-4dbae96f8fe2@gmail.com> References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> <6d66f323-5be4-b1bf-d202-4dbae96f8fe2@gmail.com> Message-ID: <20230309182144.M24174@455.co.il> Hello I try to run your example (the example file is attached) and it gives me errors If possible you can attach an example file that works well Many thanks ---------- Original Message ----------- From: BB To: Gambas Mailing List Sent: Fri, 10 Mar 2023 03:39:05 +1030 Subject: Re: [Gambas-user] difference ME and SUPER with inherit > *ClassA* > > Public Function? DoThis(X as integer) as Integer > > ??? Return X/2 > > End > > *ClassB* > > Public Function DoThis(Y as Integer) as Integer > > ??? If "IsOdd"(Y) then > > ??? ??? Return Super.DoThis(Y-1) > > ??? Else > > ??? ??? Return(X*2) > > End > > Public Sub Main > > Dim I as Integer > > ??? For I = 1 to 10 > > ??? ??? Print DoThis(I) > > ??? End > > End ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: super3.tar.xz Type: application/x-xz Size: 12432 bytes Desc: not available URL: From bsteers4 at gmail.com Thu Mar 9 19:30:49 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 9 Mar 2023 18:30:49 +0000 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <20230309165221.M33083@455.co.il> References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> <20230309165221.M33083@455.co.il> Message-ID: On Thu, 9 Mar 2023 at 17:00, Mayost Sharon wrote: > Hello > > first thanks > I could not understand your explanation > > also > I tried to take the example of the documentation: > http://gambaswiki.org/wiki/lang/super > When I run it gives me an error: > INCORRECT OVERRIDEN IN CLASS > Attached is an example I tried to run > You have much to learn young padwan :) Overrides are incorrect if they do not match the inherited function. you must match if it is Static, Public, Private. you must match the arguments and the return variable. The explanation of the difference of Super and Me should be clear. In the example you linked to in the wiki there is this... ' Reimplements the Add method*Public* *Sub* Add*(*Text *As* *String**,* Key *As* *String**,* *Optional* Pos *As* *Integer* *=* -1*)* ' Adds the item to the list box *Super**.*Add*(*Text*,* Pos*)* ' Adds the key to key array *If* Pos *<* 0 *Then* $aKey*.*Add*(*Key*)* *Else* $aKey*.*Add*(*Key*,* Pos*)* *Endif* $cValue*[*Key*]* *=* Text *End* If that method used Me.Add() and not Super.Add() then it would be in an infinite recursion loop as the local Add() method would just run itself again. You do not want that you want to use the Add() method of the inherited class not your override class. If you cannot understand the explanation then you will just have to wait till you figure it out :) it won't take you long. Yes there is a very clear difference between Super and Me Super = Inherited object Me = local object BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Mar 9 19:49:36 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 10 Mar 2023 05:19:36 +1030 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <20230309182144.M24174@455.co.il> References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> <6d66f323-5be4-b1bf-d202-4dbae96f8fe2@gmail.com> <20230309182144.M24174@455.co.il> Message-ID: <75741563-6fc6-ec1f-bb66-e295f22c55f7@gmail.com> On 10/3/23 4:54 am, Mayost Sharon wrote: > Hello > > I try to run your example (the example file is attached) and it gives me errors > If possible you can attach an example file that works well > It's just pseudo-code for you to work through in your mind. It wasn't supposed to actually run. b From t.lee.davidson at gmail.com Thu Mar 9 19:57:08 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 9 Mar 2023 13:57:08 -0500 Subject: [Gambas-user] a form within a form and Resize event In-Reply-To: References: Message-ID: <749d2267-3c06-b4fb-61f8-a65150cef6af@gmail.com> On 3/9/23 10:32, Bruce Steers wrote: > I have a form > > Inside this form are some objects that are other forms. > > If i resize the top form and the inner forms also resize themselves they do not fire their own resize events. > > I think they should, as they are actually being resized. > > Respects > BruceS Are you creating the Child forms with an EventName, or just expecting the Parent to catch the event? -- Lee From sharon at 455.co.il Thu Mar 9 20:05:30 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 9 Mar 2023 21:05:30 +0200 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> <20230309165221.M33083@455.co.il> Message-ID: <20230309184830.M34373@455.co.il> Hello Yes I am this Gambas-user To learn from you But when I try to run the sample it gives an error (I am attaching the sample file "super2.tar.xz" again) for me it gives an error Can you fix the error for me? And so I can study well You helped me a lot when you wrote "recursion loop" If I understood correctly, in the "Clear" part of the example it doesn't matter if we use ME or SUPER ' Reimplements the Clear method public Sub Clear() Super.Clear $aKey.Clear $cValue.Clear End Many thanks again to all the helpers ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Thu, 9 Mar 2023 18:30:49 +0000 Subject: Re: [Gambas-user] difference ME and SUPER with inherit > On Thu, 9 Mar 2023 at 17:00, Mayost Sharon wrote: > > > Hello > > > > first thanks > > I could not understand your explanation > > > > also > > I tried to take the example of the documentation: > > http://gambaswiki.org/wiki/lang/super > > When I run it gives me an error: > > INCORRECT OVERRIDEN IN CLASS > > Attached is an example I tried to run > > > > You have much to learn young padwan :) > Overrides are incorrect if they do not match the inherited function. > you must match if it is Static, Public, Private. you must match the > arguments and the return variable. > > The explanation of the difference of Super and Me should be clear. > > In the example you linked to in the wiki there is this... > > ' Reimplements the Add method*Public* *Sub* Add*(*Text *As* > *String**,* Key *As* *String**,* *Optional* Pos *As* *Integer* *=* > -1*)* > > ' Adds the item to the list box *Super**.*Add*(*Text*,* Pos*)* > ' Adds the key to key array *If* Pos *<* 0 *Then* > $aKey*.*Add*(*Key*)* > *Else* > $aKey*.*Add*(*Key*,* Pos*)* > *Endif* > $cValue*[*Key*]* *=* Text > *End* > > If that method used Me.Add() and not Super.Add() then it would be in > an infinite recursion loop as the local Add() method would just run > itself again. > You do not want that you want to use the Add() method of the inherited > class not your override class. > > If you cannot understand the explanation then you will just have to > wait till you figure it out :) it won't take you long. > > Yes there is a very clear difference between Super and Me > Super = Inherited object > > Me = local object > > BruceS ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: super2.tar.xz Type: application/x-xz Size: 12860 bytes Desc: not available URL: From bsteers4 at gmail.com Thu Mar 9 21:12:28 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 9 Mar 2023 20:12:28 +0000 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <20230309184830.M34373@455.co.il> References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> <20230309165221.M33083@455.co.il> <20230309184830.M34373@455.co.il> Message-ID: On Thu, 9 Mar 2023 at 19:05, Mayost Sharon wrote: > Hello > > Yes I am this Gambas-user > To learn from you > > But when I try to run the sample it gives an error > (I am attaching the sample file "super2.tar.xz" again) for me it gives an > error > Can you fix the error for me? > And so I can study well > > You helped me a lot when you wrote "recursion loop" > If I understood correctly, in the "Clear" part of the example it doesn't > matter if we use ME or SUPER > ' Reimplements the Clear method > public Sub Clear() > Super.Clear > $aKey.Clear > $cValue.Clear > End > > Many thanks again to all the helpers > Aaah It seems the example in the wiki is wrong :-\ Like I said you must match the arguments the example adds a "Key" arg to the Add method and that is wrong. And it seems you did not understand at all. if you run Me.Clear() in the classes Clear() method it will loop , Me.Clear() IS Clear() Public Sub Clear() Me.Clear() End Is the same as,,, Public Sub Clear() Clear() End You must understand.. The class has inherited another class so it has all it's properties/methods by default. (Me.) Any properties/methods you are *NOT* overriding you can use Me. you will see the inherited classes objects. if you *HAVE* made your own override for a property/method then using Me. will be your own override not the inherited class. You will use Super. to access the inherited objects. Does that make sense? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Mar 9 21:09:19 2023 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 9 Mar 2023 12:09:19 -0800 (PST) Subject: [Gambas-user] Setting Debug break points randomly fail Message-ID: <1623842564.19632.1678392559836.JavaMail.zimbra@westwoodsvcs.com> I am having an issue with the latest build. When trying to set break points it seems to randomly fail to set the break point. When I double click on a source line, often the break point is not set, but yet if i try at some later time on the same line it will work. I dont know if some changes have been made to the debugger but right now I have had to resort to adding a stop to where i want a break. Has anyone else experienced this? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Thu Mar 9 22:38:06 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 9 Mar 2023 22:38:06 +0100 Subject: [Gambas-user] Setting Debug break points randomly fail In-Reply-To: <1623842564.19632.1678392559836.JavaMail.zimbra@westwoodsvcs.com> References: <1623842564.19632.1678392559836.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <73a5e6a7-42ab-9a09-8442-baa4ca648230@gambas-basic.org> Le 09/03/2023 ? 21:09, Brian G a ?crit?: > I am having an issue with the latest build. > > When trying to set break points it seems to randomly fail to set the > break point. > When I double click on a source line, often the break point is not set, > but yet if i try at some later time on > the same line it will work. > > I dont know if some changes have been made to the debugger but right now > I have had to resort to > adding a stop to where i want a break. > > Has anyone else experienced this? > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > Yes, there was some changes in the debugger recently (read the git commit logs!), and I have sometimes random problems too now, but I have no idea why at the moment. The change was a workaround of the freeze when debugging a project using the embedded http server (which forks for each request, so the IDE does not talk to the child process running the embedded http server, but to its child). Regards, -- Beno?t Minisini. From sharon at 455.co.il Fri Mar 10 06:07:59 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 10 Mar 2023 07:07:59 +0200 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> <20230309165221.M33083@455.co.il> <20230309184830.M34373@455.co.il> Message-ID: <20230310050413.M41224@455.co.il> Hello Thank you very much Now I was able to understand. If I did me.clear I got: STACK OVERFLOW because it entered an infinite loop. It takes time but eventually I understand. Many thanks again ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Thu, 9 Mar 2023 20:12:28 +0000 Subject: Re: [Gambas-user] difference ME and SUPER with inherit > On Thu, 9 Mar 2023 at 19:05, Mayost Sharon wrote: > > > Hello > > > > Yes I am this Gambas-user > > To learn from you > > > > But when I try to run the sample it gives an error > > (I am attaching the sample file "super2.tar.xz" again) for me it gives an > > error > > Can you fix the error for me? > > And so I can study well > > > > You helped me a lot when you wrote "recursion loop" > > If I understood correctly, in the "Clear" part of the example it doesn't > > matter if we use ME or SUPER > > ' Reimplements the Clear method > > public Sub Clear() > > Super.Clear > > $aKey.Clear > > $cValue.Clear > > End > > > > Many thanks again to all the helpers > > > > Aaah It seems the example in the wiki is wrong :-\ > > Like I said you must match the arguments > the example adds a "Key" arg to the Add method and that is wrong. > > And it seems you did not understand at all. > if you run Me.Clear() in the classes Clear() method it will loop , > Me.Clear() IS Clear() > > Public Sub Clear() > Me.Clear() > End > > Is the same as,,, > Public Sub Clear() > Clear() > End > > You must understand.. > The class has inherited another class so it has all it's properties/methods > by default. (Me.) > Any properties/methods you are *NOT* overriding you can use Me. > you will see the inherited classes objects. > > if you *HAVE* made your own override for a property/method then using Me. > will be your own override not the inherited class. You will use Super. to > access the inherited objects. > > Does that make sense? > BruceS ------- End of Original Message ------- From gambas.fr at gmail.com Fri Mar 10 08:51:28 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 10 Mar 2023 08:51:28 +0100 Subject: [Gambas-user] a form within a form and Resize event In-Reply-To: <749d2267-3c06-b4fb-61f8-a65150cef6af@gmail.com> References: <749d2267-3c06-b4fb-61f8-a65150cef6af@gmail.com> Message-ID: Le jeu. 9 mars 2023 ? 19:58, T Lee Davidson a ?crit : > On 3/9/23 10:32, Bruce Steers wrote: > > I have a form > > > > Inside this form are some objects that are other forms. > > > > If i resize the top form and the inner forms also resize themselves they > do not fire their own resize events. > > > > I think they should, as they are actually being resized. > > > > Respects > > BruceS > > Are you creating the Child forms with an EventName, or just expecting the > Parent to catch the event? > As Saying Lee I'm quite sure you have redirected involuntary the event handler. If you create a dynamic form As HForm = new MychildForm(hContainer) as "MyForm" All the events of the child (usually named Form_event) are redirected to MyForm_event in the parent form class. So you have two solution: - remove the as "MyForm" sentence so the event is not attached to the parent anymore - If you need to manage some events form the parent you can also do a direct call to the child procedure HForm.Form_resize But note that the LAST value will be the parent form .. not the child. The best way I think will be the first one . And then put some public function to the parent to allow the child to communicate with. Don't forget that Gambas is not VB and the need of using _Resize event is Rare. You have all the bunch of object properties that allow to manage your content positionning automagiquely. But sometime... it is not enouth. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- H4sIAAAAAAAAA+xZB1xTWbO/oUhxERQ/jYgSUJobQzqgkNCUIkiVXRCQACGEkkBCkZrQXBEVBEFQ EFxQREEEZMUG2CiCZC2UT0GUIigq0pRAIO8G1M+yu763z3V/763z+3HPvWfmzFzuzH9mzokR2Y9u RWKQaYGGXlRfDw3gLyAkSJo4nGBEaeKQ749vCUBhsUg0Do/E4NAAEoXBoDAADPdXvMzHFMQMJDFg MMCT5EYl035f7nP8/6Nk9JH/ERSSnxuJ+UXjYNb/mv8d/+PwKKwm6H8sHoP95v+vQZ/4n8lw/9JJ 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7R/+X7D//+H5f5LSp/b/V+C/n//wj21f/5Pf+F/u/5W88l/Of5AEbzjd//OvwD9291GLnfz9 vbWP+j929P37Pr5/7t473al3ilOc4hSnOMUpTnGKU5ziFKc4xSlOcYpTnOIUpzjFKU5xilOc4hSn OMUpTvH/I/4NC9Dn7wB4AAA= From bsteers4 at gmail.com Fri Mar 10 11:26:44 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 10 Mar 2023 10:26:44 +0000 Subject: [Gambas-user] a form within a form and Resize event In-Reply-To: References: <749d2267-3c06-b4fb-61f8-a65150cef6af@gmail.com> Message-ID: On Fri, 10 Mar 2023 at 07:52, Fabien Bodard wrote: > > > Le jeu. 9 mars 2023 ? 19:58, T Lee Davidson a > ?crit : > >> On 3/9/23 10:32, Bruce Steers wrote: >> > I have a form >> > >> > Inside this form are some objects that are other forms. >> > >> > If i resize the top form and the inner forms also resize themselves >> they do not fire their own resize events. >> > >> > I think they should, as they are actually being resized. >> > >> > Respects >> > BruceS >> >> Are you creating the Child forms with an EventName, or just expecting the >> Parent to catch the event? >> > As Saying Lee I'm quite sure you have redirected involuntary the event > handler. > > If you create a dynamic form > As > HForm = new MychildForm(hContainer) as "MyForm" > > > All the events of the child (usually named Form_event) are redirected to > MyForm_event in the parent form class. > > So you have two solution: > - remove the as "MyForm" sentence so the event is not attached to the > parent anymore > > - If you need to manage some events form the parent you can also do a > direct call to the child procedure > > HForm.Form_resize > > But note that the LAST value will be the parent form .. not the child. > > > > The best way I think will be the first one . > > And then put some public function to the parent to allow the child to > communicate with. > > > Don't forget that Gambas is not VB and the need of using _Resize event is > Rare. You have all the bunch of object properties that allow to manage your > content positionning automagiquely. > > But sometime... it is not enouth. > Yes this time seemed not enough. the problem i have is with objects inside a splitter. If one side gets too small it pumps out pango warnings. I used the Splitter_Resize() event to detect this and limit the size reduction of the left hand panel. That works fine when using the splitter bar. But then resizing the whole window has left me a mystery as to where a resize event is triggered. I tried to make a small test app to show the problem but I found it worked :-/ !! So i will study this mail and investigate and see if i can find the resize trigger, or like you say handle it in FMain. Thank you :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 10 11:48:58 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 10 Mar 2023 10:48:58 +0000 Subject: [Gambas-user] difference ME and SUPER with inherit In-Reply-To: <20230310050413.M41224@455.co.il> References: <20230309172922.M63772@455.co.il> <7701a42f-6e75-0458-21fc-d1f94b484cc3@gmail.com> <20230309165221.M33083@455.co.il> <20230309184830.M34373@455.co.il> <20230310050413.M41224@455.co.il> Message-ID: On Fri, 10 Mar 2023 at 05:04, Mayost Sharon wrote: > Hello > > Thank you very much > > Now I was able to understand. > If I did me.clear I got: STACK OVERFLOW because it entered an infinite > loop. > It takes time but eventually I understand. > > Many thanks again > You see , I told you it wouldn't take you long to figure it out :) I have also just changed the wiki Super page example to be correct and use the same syntax for ListBox.Add() Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From denisc at exemail.com.au Fri Mar 10 13:06:30 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Fri, 10 Mar 2023 23:06:30 +1100 Subject: [Gambas-user] a form within a form and Resize event In-Reply-To: References: <749d2267-3c06-b4fb-61f8-a65150cef6af@gmail.com> Message-ID: <2719cd68-008e-17f4-5b10-11815199575c@exemail.com.au> On 3/10/23 21:26, Bruce Steers wrote: > > > On Fri, 10 Mar 2023 at 07:52, Fabien Bodard > wrote: > > > > Le jeu. 9 mars 2023 ? 19:58, T Lee Davidson > > a ?crit?: > > On 3/9/23 10:32, Bruce Steers wrote: > > I have a form > > > > Inside this form are some objects that are other forms. > > > > If i resize the top form and the inner forms also resize > themselves they do not fire their own resize events. > > > > I think they should, as they are actually being resized. > > > > Respects > > BruceS > > Are you creating the Child forms with an EventName, or just > expecting the Parent to catch the event? > > As Saying Lee I'm quite sure you have redirected involuntary the > event handler. > > If you create a dynamic form > As > HForm = new MychildForm(hContainer) as "MyForm" > > > All the? events of the child (usually named Form_event) are > redirected to MyForm_event in the parent form class. > > So you have two solution: > - remove the as "MyForm" sentence so the event is not attached to > the parent anymore > > - If you need to manage some events form the parent you can also do > a direct call to the child procedure > > HForm.Form_resize > > But note that the LAST value will be the parent form .. not the child. > > > > The best way I think will be the first one . > > And then put some public function to the parent to allow the child > to communicate with. > > > Don't forget that Gambas is not VB and the need of using _Resize > event is Rare. You have all the bunch of object properties that > allow to manage your content positionning?automagiquely. > > But sometime... it is not enouth. > > > Yes this time seemed not enough. > > the problem i have is with objects inside a splitter. > If one side gets too small it pumps out pango warnings. > I used the Splitter_Resize() event to detect this and limit the size > reduction of the left hand panel. > That works fine when using the splitter bar. > But then resizing the whole window has left me a mystery as to where a > resize event is triggered. > I tried to make a small test app to show the problem but I found it > worked :-/ !! > > So i will study this mail and investigate and see if i can find the > resize trigger, or like you say handle it in FMain. > > Thank you :) > BruceS > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- It would only be a problem when the form is embedded wouldn't it?. So wouldn't storing and tracking the splitter size from the splitter & fmain resizes be the solution? Would you mind posting the solution please, I think this will be a situation for me in the very near future as well. :-) -- Regards Denis From bsteers4 at gmail.com Fri Mar 10 19:43:30 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 10 Mar 2023 18:43:30 +0000 Subject: [Gambas-user] a form within a form and Resize event In-Reply-To: <749d2267-3c06-b4fb-61f8-a65150cef6af@gmail.com> References: <749d2267-3c06-b4fb-61f8-a65150cef6af@gmail.com> Message-ID: On Thu, 9 Mar 2023 at 18:58, T Lee Davidson wrote: > On 3/9/23 10:32, Bruce Steers wrote: > > I have a form > > > > Inside this form are some objects that are other forms. > > > > If i resize the top form and the inner forms also resize themselves they > do not fire their own resize events. > > > > I think they should, as they are actually being resized. > > > > Respects > > BruceS > > Are you creating the Child forms with an EventName, or just expecting the > Parent to catch the event? > Yes i tried using an event name but i didn't get a handle_Resize event when resizing the parent form. What I expected was for the child forms own Form_Resize() method to run even though the parent form was being resized. because resizing the parent form resized the child form. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 10 21:50:44 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 10 Mar 2023 20:50:44 +0000 Subject: [Gambas-user] Setting Debug break points randomly fail In-Reply-To: <73a5e6a7-42ab-9a09-8442-baa4ca648230@gambas-basic.org> References: <1623842564.19632.1678392559836.JavaMail.zimbra@westwoodsvcs.com> <73a5e6a7-42ab-9a09-8442-baa4ca648230@gambas-basic.org> Message-ID: On Thu, 9 Mar 2023 at 21:39, Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 09/03/2023 ? 21:09, Brian G a ?crit : > > I am having an issue with the latest build. > > > > When trying to set break points it seems to randomly fail to set the > > break point. > > When I double click on a source line, often the break point is not set, > > but yet if i try at some later time on > > the same line it will work. > > > > I dont know if some changes have been made to the debugger but right now > > I have had to resort to > > adding a stop to where i want a break. > > > > Has anyone else experienced this? > > > > "Failure is the key to success; > > each mistake teaches us something" .. Morihei Ueshiba > > Brian G > > > > Yes, there was some changes in the debugger recently (read the git > commit logs!), and I have sometimes random problems too now, but I have > no idea why at the moment. > > The change was a workaround of the freeze when debugging a project using > the embedded http server (which forks for each request, so the IDE does > not talk to the child process running the embedded http server, but to > its child). > > Regards, > > -- > Beno?t Minisini. > If it even is the debugger? I was just unable to deselect a breakpoint with a double click. At the same time i noticed i could not press the icon in the designer that goes from Code to Form or Form to code. (the arrow, top left of designer, next to save button) I've experienced the Code/Form button not working a few times. I save and select "reload project" then it works again. The same just happened with the breakpoint, after reloading i could double click again to toggle. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Fri Mar 10 21:57:08 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 10 Mar 2023 21:57:08 +0100 Subject: [Gambas-user] Setting Debug break points randomly fail In-Reply-To: References: <1623842564.19632.1678392559836.JavaMail.zimbra@westwoodsvcs.com> <73a5e6a7-42ab-9a09-8442-baa4ca648230@gambas-basic.org> Message-ID: Le 10/03/2023 ? 21:50, Bruce Steers a ?crit?: > > > On Thu, 9 Mar 2023 at 21:39, Benoit Minisini > > wrote: > > Le 09/03/2023 ? 21:09, Brian G a ?crit?: > > I am having an issue with the latest build. > > > > When trying to set break points it seems to randomly fail to set the > > break point. > > When I double click on a source line, often the break point is > not set, > > but yet if i try at some later time on > > the same line it will work. > > > > I dont know if some changes have been made to the debugger but > right now > > I have had to resort to > > adding a stop to where i want a break. > > > > Has anyone else experienced this? > > > > "Failure is the key to success; > >? ?each mistake teaches us something" ?.. Morihei Ueshiba > > Brian G > > > > Yes, there was some changes in the debugger recently (read the git > commit logs!), and I have sometimes random problems too now, but I have > no idea why at the moment. > > The change was a workaround of the freeze when debugging a project > using > the embedded http server (which forks for each request, so the IDE does > not talk to the child process running the embedded http server, but to > its child). > > Regards, > > -- > Beno?t Minisini. > > > If it even is the debugger? > > I was just unable to deselect a breakpoint with a double click. > > At the same time i noticed i could not press the icon in the designer > that goes from Code to Form or Form to code. (the arrow, top left of > designer, next to save button) > > I've experienced the Code/Form button not working a few times. > I save and select "reload project" then it works again. > > The same just happened with the breakpoint, > after reloading i could double click again to toggle. > > > Respects > BruceS > OK, it's another problem. Sometimes the code window is kept read-only, whereas it should be read-only only when the program is running, and be writable again when the debugger wakes up. -- Beno?t Minisini. From bsteers4 at gmail.com Fri Mar 10 22:11:19 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 10 Mar 2023 21:11:19 +0000 Subject: [Gambas-user] Setting Debug break points randomly fail In-Reply-To: References: <1623842564.19632.1678392559836.JavaMail.zimbra@westwoodsvcs.com> <73a5e6a7-42ab-9a09-8442-baa4ca648230@gambas-basic.org> Message-ID: On Fri, 10 Mar 2023 at 20:58, Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 10/03/2023 ? 21:50, Bruce Steers a ?crit : > > > > > > On Thu, 9 Mar 2023 at 21:39, Benoit Minisini > > > > wrote: > > > > Le 09/03/2023 ? 21:09, Brian G a ?crit : > > > I am having an issue with the latest build. > > > > > > When trying to set break points it seems to randomly fail to set > the > > > break point. > > > When I double click on a source line, often the break point is > > not set, > > > but yet if i try at some later time on > > > the same line it will work. > > > > > > I dont know if some changes have been made to the debugger but > > right now > > > I have had to resort to > > > adding a stop to where i want a break. > > > > > > Has anyone else experienced this? > > > > > > "Failure is the key to success; > > > each mistake teaches us something" .. Morihei Ueshiba > > > Brian G > > > > > > > Yes, there was some changes in the debugger recently (read the git > > commit logs!), and I have sometimes random problems too now, but I > have > > no idea why at the moment. > > > > The change was a workaround of the freeze when debugging a project > > using > > the embedded http server (which forks for each request, so the IDE > does > > not talk to the child process running the embedded http server, but > to > > its child). > > > > Regards, > > > > -- > > Beno?t Minisini. > > > > > > If it even is the debugger? > > > > I was just unable to deselect a breakpoint with a double click. > > > > At the same time i noticed i could not press the icon in the designer > > that goes from Code to Form or Form to code. (the arrow, top left of > > designer, next to save button) > > > > I've experienced the Code/Form button not working a few times. > > I save and select "reload project" then it works again. > > > > The same just happened with the breakpoint, > > after reloading i could double click again to toggle. > > > > > > Respects > > BruceS > > > > OK, it's another problem. Sometimes the code window is kept read-only, > whereas it should be read-only only when the program is running, and be > writable again when the debugger wakes up. > > -- > Beno?t Minisini. > Possibly also Bug 2707 bon chance you find it :) Many thanks BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sat Mar 11 19:36:52 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 11 Mar 2023 20:36:52 +0200 Subject: [Gambas-user] watch expression on object super Message-ID: <20230311183012.M6362@455.co.il> Hello When I try to check a certain value in the SUPER object, it returns me an error: "UNEXPECTED SUPER" Thank you From t.lee.davidson at gmail.com Sat Mar 11 19:55:48 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 11 Mar 2023 13:55:48 -0500 Subject: [Gambas-user] watch expression on object super In-Reply-To: <20230311183012.M6362@455.co.il> References: <20230311183012.M6362@455.co.il> Message-ID: <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> On 3/11/23 13:36, Mayost Sharon wrote: > Hello > > When I try to check a certain value in the SUPER object, it returns me an error: > "UNEXPECTED SUPER" > > Thank you You really don't give enough information about exactly what you are doing that cause that for us to provide much help. Are you trying to access the value in your code or as a 'watch' expression in the debugger? If in the debugger, don't use SUPER - use the object directly to get its property. If in your code and you have not overridden the property, use ME. -- Lee From philippe.valarcher at free.fr Sat Mar 11 20:10:49 2023 From: philippe.valarcher at free.fr (Philippe Valarcher) Date: Sat, 11 Mar 2023 20:10:49 +0100 Subject: [Gambas-user] [CRASH REPORT] CherchMail Message-ID: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> Hello, Damned, my program crashed Gambas that way : Public Function RunPOP(i As Integer) As String????????????????????????????????? 'alimentation des comptes en mails ?? Dim Ligne As Integer, n As Integer, Emails As Integer ?? Dim newLast As String, phrase1 As String, phrase2 As String, monText As String ?? Module1.serveurPop(i) ?? Try Module1.POP.Open?????????????????????????????????????????????????????? 'ouverture de la connexion pop ?? Emails = Module1.POP.count ?? If Emails > 0 Then ????? newLast = Module1.POP[Module1.POP.count - 1].UniqueID ????? If newLast > MailRecu[i].theLast Then ???????? If chkBeep.value Then PlayBeep() ????? Endif ????? monText = txtRun.Text??????????????????????????????????????????????? ' texte des notifications ????? phrase1 = ("Serveur : ") ????? phrase2 = ("Nombre de Courriel(s) : ") ????? monText = Replace(monText, "%p1", phrase1) ????? monText = Replace(monText, "%p2", phrase2) ????? monText = Replace(monText, "%u", Module1.pop.user) ????? monText = Replace(monText, "%s", Module1.pop.host) ????? monText = Replace(monText, "%m", CStr(emails)) ????? AddLog(("Nombre de courriels sur le serveur") & " : " & " [ " & Module1.pop.host & " ] " & " : " & Emails) ????? grvw[i].Rows.Count = Module1.POP.Count ????? For n = 0 To Emails - 1 ???????? newLast = Module1.POP[n].UniqueID ???????? tbstp[i + 1].Text = Accounts[i].Nom & " + " & Module1.POP.Count ???????? ' grvw[i].Columns.Count = 5 ???????? grvw[i][Ligne, 0].Text = CStr(Module1.POP[n].Message.Sender) ???????? grvw[i][Ligne, 1].Text = CStr(Module1.POP[n].Message.Subject) ???????? grvw[i][Ligne, 2].Text = CStr(Module1.POP[n].Message.To) ???????? grvw[i][Ligne, 3].Text = CStr(Module1.POP[n].Message.Headers["Date"]) ???????? grvw[i][Ligne, 4].Text = CStr(Module1.POP[n].Size) ???????? Ligne += 1 ???????? MailRecu[i].index = Module1.POP[n].Index ???????? nbrMail += 1 ????? Next ????? MailRecu[i].theLast = Module1.POP[Emails - 1].UniqueID ????? grvw[i].Tooltip = ("Double-Cliquer sur un message pour le visionner") ?? Else ????? tbstp[i + 1].Text = Accounts[i].Nom ????? With grvw[i] ???????? .Clear ???????? .Refresh ???????? .Rows.Count = 0 ???????? .Columns.Count = 0 ???????? .Tooltip = "" ????? End With ?? Endif ?? Try Module1.POP.Close ?? Try Module1.POP = Null ?? Return monText Catch ?? TimeRemain = TimeInterval ?? Tray.icon = Picture["./ic?nes/mail.png"] ?? Message.Title = ("Horreur!") ?? Message(gb.CrLf & ("Une erreur : ") & " RunPOP " & Error.Text & gb.CrLf & "Code : " & Error.Code) End Public Sub tbstp_MouseDown() ?? Module1.son(Module1.shade) End Cette fontion provoque une erreur de segmentation, si je commente les cinq lignes avec grvw[i] ?a ne plante pas? -- Philippe Valarcher -------------- next part -------------- An HTML attachment was scrubbed... URL: From Karl.Reinl at Fen-Net.de Sat Mar 11 20:06:55 2023 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Sat, 11 Mar 2023 20:06:55 +0100 Subject: [Gambas-user] any Ideas? Message-ID: <5e52ef4c11fa9d6a84a8cf805d1d09c0cdf55565.camel@Fen-Net.de> Salut, after update to '829a8a16ca60f8bb1a43a0afa3576f155b1b9a01 HEAD' today on loading the first time a project I'v got this (see Attchment) After that I could load all project tested without problems.But this is not the first time this has happened to me, but I didn't pay attention at the time, but I am sure it has happened at least 2 more times. I will see what happens next time, because I need to go back to a previous commit to see why my DBReport is no longer working. -- Amicalement Charlie [System] Gambas=3.18.90 829a8a16c (master) OperatingSystem=Linux Distribution=Ubuntu 20.04.5 LTS Kernel=5.4.0-144-generic Architecture=x86_64 Cores=4 Memory=5911M Language=de_DE.UTF-8 Desktop=MATE DesktopResolution=96 DesktopScale=8 WidgetTheme=menta Font=Ubuntu,11 [Programs] gcc=gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 git=git version 2.25.1 [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.1603.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.73.0.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 RSvg=librsvg-2.so.2.47.0 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=ibus COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=mate GDM_LANG=de_DE GIO_LAUNCHED_DESKTOP_FILE=/Schreibtisch/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=163308 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_IM_MODULE=ibus GTK_MODULES=appmenu-gtk-module:gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= INSIDE_CAJA_PYTHON= LANG=de_DE.UTF-8 LANGUAGE=de_DE.UTF-8 LC_ALL=de_DE.UTF-8 LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=ibus QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_IM_MODULE=ibus QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1904,unix/:/tmp/.ICE-unix/1904 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2198 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UBUNTU_MENUPROXY=1 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/share/mate:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto zu 2023-03-11 17-45-55.png Type: image/png Size: 33748 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Sat Mar 11 22:51:57 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 11 Mar 2023 22:51:57 +0100 Subject: [Gambas-user] [CRASH REPORT] CherchMail In-Reply-To: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> References: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> Message-ID: <504d93bb-faa7-e902-e5a8-53d67792e2b3@gambas-basic.org> Le 11/03/2023 ? 20:10, Philippe Valarcher a ?crit?: > Hello, > > Damned, my program crashed Gambas that way : > > Public Function RunPOP(i As Integer) As > String????????????????????????????????? 'alimentation des comptes en mails > > ?? Dim Ligne As Integer, n As Integer, Emails As Integer > ?? Dim newLast As String, phrase1 As String, phrase2 As String, monText > As String > > [...] Please send a full project that reproduces the crash, not just the code. Thanks in advance. -- Beno?t Minisini. From t.lee.davidson at gmail.com Sun Mar 12 04:35:19 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 11 Mar 2023 22:35:19 -0500 Subject: [Gambas-user] [CRASH REPORT] CherchMail In-Reply-To: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> References: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> Message-ID: <33431a3b-3d59-caad-4a1a-e82919788e97@gmail.com> On 3/11/23 14:10, Philippe Valarcher wrote: > ?? Dim Ligne As Integer, n As Integer, Emails As Integer > ?? Dim newLast As String, phrase1 As String, phrase2 As String, monText As String Just FYI, you don't need all those "As" statements in the variable declarations. You can simply do: Dim Ligne, n, Emails As Integer Dim newLast, phrase1, phrase2, monText As String You can even assign an initial value to all those on the same line, eg." Dim Ligne, n, Emails As Integer = 1 Dim newLast, phrase1, phrase2, monText As String = "hello" -- Lee From karl.reinl at fen-net.de Sun Mar 12 23:40:25 2023 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sun, 12 Mar 2023 23:40:25 +0100 Subject: [Gambas-user] any Ideas? In-Reply-To: <5e52ef4c11fa9d6a84a8cf805d1d09c0cdf55565.camel@Fen-Net.de> References: <5e52ef4c11fa9d6a84a8cf805d1d09c0cdf55565.camel@Fen-Net.de> Message-ID: Am Samstag, dem 11.03.2023 um 20:06 +0100 schrieb Charlie Reinl: > Salut, > > after update to '829a8a16ca60f8bb1a43a0afa3576f155b1b9a01 HEAD' > today > on loading the first time a project I'v got this (see Attchment) > After that I could load all project tested without problems.But this > is not the first time this has happened to me, but I didn't pay > attention at the time, but I am sure it has happened at least 2 more > times. > I will see what happens next time, because I need to go back to a > previous commit to see why my DBReport is no longer working. > Salut, found it, it was a very bad network connection which reduced the response times quite a lot (2 connection settings both set to DHCP). So it was a timing problem. -- Amicalement Charlie From sharon at 455.co.il Mon Mar 13 08:43:58 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 13 Mar 2023 09:43:58 +0200 Subject: [Gambas-user] watch expression on object super In-Reply-To: <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> References: <20230311183012.M6362@455.co.il> <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> Message-ID: <20230313074346.M88861@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Sat, 11 Mar 2023 13:55:48 -0500 Subject: Re: [Gambas-user] watch expression on object super > On 3/11/23 13:36, Mayost Sharon wrote: > > Hello > > > > When I try to check a certain value in the SUPER object, it returns me an error: > > "UNEXPECTED SUPER" > > > > Thank you > > You really don't give enough information about exactly what you are doing that > cause that for us to provide much help. Are you trying to access the value in > your code or as a 'watch' expression in the debugger? > > If in the debugger, don't use SUPER - use the object directly to get its property. > If in your code and you have not overridden the property, use ME. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello Thanks I am trying to access a value in code But I ran over the property For example I made a new TAG property If I check what is in ME.TAG it is not what is in SUPER.TAG And how can I access the value in the code by clicking the right mouse button and then: "Watch expression" Thank you From rwe-sse at osnanet.de Mon Mar 13 09:30:24 2023 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 Mar 2023 09:30:24 +0100 Subject: [Gambas-user] [CRASH REPORT] CherchMail In-Reply-To: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> References: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> Message-ID: Am 11.03.23 um 20:10 schrieb Philippe Valarcher: > Hello, > > Damned, my program crashed Gambas that way : > > Public Function RunPOP(i As Integer) As > String????????????????????????????????? 'alimentation des comptes en mails > > ?? Dim Ligne As Integer, n As Integer, Emails As Integer > ?? Dim newLast As String, phrase1 As String, phrase2 As String, monText > As String > > ?? Module1.serveurPop(i) > ?? Try > Module1.POP.Open > 'ouverture de la connexion pop > > ?? Emails = Module1.POP.count > > ?? If Emails > 0 Then > ????? newLast = Module1.POP[Module1.POP.count - 1].UniqueID > ????? If newLast > MailRecu[i].theLast Then > ???????? If chkBeep.value Then PlayBeep() > ????? Endif > ????? monText = > txtRun.Text??????????????????????????????????????????????? ' texte des > notifications > ????? phrase1 = ("Serveur : ") > ????? phrase2 = ("Nombre de Courriel(s) : ") > ????? monText = Replace(monText, "%p1", phrase1) > ????? monText = Replace(monText, "%p2", phrase2) > ????? monText = Replace(monText, "%u", Module1.pop.user) > ????? monText = Replace(monText, "%s", Module1.pop.host) > ????? monText = Replace(monText, "%m", CStr(emails)) > ????? AddLog(("Nombre de courriels sur le serveur") & " : " & " [ " & > Module1.pop.host & " ] " & " : " & Emails) > > ????? grvw[i].Rows.Count = Module1.POP.Count > > ????? For n = 0 To Emails - 1 > ???????? newLast = Module1.POP[n].UniqueID > ???????? tbstp[i + 1].Text = Accounts[i].Nom & " + " & Module1.POP.Count > ???????? ' grvw[i].Columns.Count = 5 > > ???????? grvw[i][Ligne, 0].Text = CStr(Module1.POP[n].Message.Sender) > ???????? grvw[i][Ligne, 1].Text = CStr(Module1.POP[n].Message.Subject) > ???????? grvw[i][Ligne, 2].Text = CStr(Module1.POP[n].Message.To) > ???????? grvw[i][Ligne, 3].Text = > CStr(Module1.POP[n].Message.Headers["Date"]) > ???????? grvw[i][Ligne, 4].Text = CStr(Module1.POP[n].Size) > > ???????? Ligne += 1 > ???????? MailRecu[i].index = Module1.POP[n].Index > ???????? nbrMail += 1 > ????? Next > > ????? MailRecu[i].theLast = Module1.POP[Emails - 1].UniqueID > ????? grvw[i].Tooltip = ("Double-Cliquer sur un message pour le visionner") > > ?? Else > ????? tbstp[i + 1].Text = Accounts[i].Nom > ????? With grvw[i] > ???????? .Clear > ???????? .Refresh > ???????? .Rows.Count = 0 > ???????? .Columns.Count = 0 > ???????? .Tooltip = "" > ????? End With > ?? Endif > > ?? Try Module1.POP.Close > ?? Try Module1.POP = Null > > ?? Return monText > > Catch > ?? TimeRemain = TimeInterval > ?? Tray.icon = Picture["./ic?nes/mail.png"] > ?? Message.Title = ("Horreur!") > ?? Message(gb.CrLf & ("Une erreur : ") & " RunPOP " & Error.Text & > gb.CrLf & "Code : " & Error.Code) > > End > > Public Sub tbstp_MouseDown() > > ?? Module1.son(Module1.shade) > > End > Cette fontion provoque une erreur de segmentation, si je commente les > cinq lignes avec grvw[i] ?a ne plante pas? I tried to answer in French, but my English is better :) What springs into my eye is this: grvw[i].Tooltip = ("Double-Cliquer sur un message pour le visionner") and this: Message(gb.CrLf & ("Une erreur : ") & " RunPOP " & Error.Text & > gb.CrLf & "Code : " & Error.Code) What do you use brackets for in connection with strings? I have never seen that before. Second of all, is grvw a tableview? You spend a lot of effort in calling a bunch of its functions to clear, refresh, then set again and so on. Why not using the tableview's Data event and leave the whole work to the tableview? I might be wrong here, but it looks as if the tableview expects to be "not empty/void", such things are easily overseen and have driven me nuts in the past. This is one point I would start looking for the error. Regards Rolf From adamnt42 at gmail.com Mon Mar 13 09:39:28 2023 From: adamnt42 at gmail.com (BB) Date: Mon, 13 Mar 2023 19:09:28 +1030 Subject: [Gambas-user] [CRASH REPORT] CherchMail In-Reply-To: References: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> Message-ID: @Rolf The brackets around literal strings indicates that they are translatable. b On 13/3/23 7:00 pm, Rolf-Werner Eilert wrote: > Am 11.03.23 um 20:10 schrieb Philippe Valarcher: >> Hello, >> >> Damned, my program crashed Gambas that way : >> >> Public Function RunPOP(i As Integer) As >> String????????????????????????????????? 'alimentation des comptes en >> mails >> >> ??? Dim Ligne As Integer, n As Integer, Emails As Integer >> ??? Dim newLast As String, phrase1 As String, phrase2 As String, >> monText As String >> >> ??? Module1.serveurPop(i) >> ??? Try Module1.POP.Open 'ouverture de la connexion pop >> >> ??? Emails = Module1.POP.count >> >> ??? If Emails > 0 Then >> ?????? newLast = Module1.POP[Module1.POP.count - 1].UniqueID >> ?????? If newLast > MailRecu[i].theLast Then >> ????????? If chkBeep.value Then PlayBeep() >> ?????? Endif >> ?????? monText = >> txtRun.Text??????????????????????????????????????????????? ' texte >> des notifications >> ?????? phrase1 = ("Serveur : ") >> ?????? phrase2 = ("Nombre de Courriel(s) : ") >> ?????? monText = Replace(monText, "%p1", phrase1) >> ?????? monText = Replace(monText, "%p2", phrase2) >> ?????? monText = Replace(monText, "%u", Module1.pop.user) >> ?????? monText = Replace(monText, "%s", Module1.pop.host) >> ?????? monText = Replace(monText, "%m", CStr(emails)) >> ?????? AddLog(("Nombre de courriels sur le serveur") & " : " & " [ " >> & Module1.pop.host & " ] " & " : " & Emails) >> >> ?????? grvw[i].Rows.Count = Module1.POP.Count >> >> ?????? For n = 0 To Emails - 1 >> ????????? newLast = Module1.POP[n].UniqueID >> ????????? tbstp[i + 1].Text = Accounts[i].Nom & " + " & >> Module1.POP.Count >> ????????? ' grvw[i].Columns.Count = 5 >> >> ????????? grvw[i][Ligne, 0].Text = CStr(Module1.POP[n].Message.Sender) >> ????????? grvw[i][Ligne, 1].Text = CStr(Module1.POP[n].Message.Subject) >> ????????? grvw[i][Ligne, 2].Text = CStr(Module1.POP[n].Message.To) >> ????????? grvw[i][Ligne, 3].Text = >> CStr(Module1.POP[n].Message.Headers["Date"]) >> ????????? grvw[i][Ligne, 4].Text = CStr(Module1.POP[n].Size) >> >> ????????? Ligne += 1 >> ????????? MailRecu[i].index = Module1.POP[n].Index >> ????????? nbrMail += 1 >> ?????? Next >> >> ?????? MailRecu[i].theLast = Module1.POP[Emails - 1].UniqueID >> ?????? grvw[i].Tooltip = ("Double-Cliquer sur un message pour le >> visionner") >> >> ??? Else >> ?????? tbstp[i + 1].Text = Accounts[i].Nom >> ?????? With grvw[i] >> ????????? .Clear >> ????????? .Refresh >> ????????? .Rows.Count = 0 >> ????????? .Columns.Count = 0 >> ????????? .Tooltip = "" >> ?????? End With >> ??? Endif >> >> ??? Try Module1.POP.Close >> ??? Try Module1.POP = Null >> >> ??? Return monText >> >> Catch >> ??? TimeRemain = TimeInterval >> ??? Tray.icon = Picture["./ic?nes/mail.png"] >> ??? Message.Title = ("Horreur!") >> ??? Message(gb.CrLf & ("Une erreur : ") & " RunPOP " & Error.Text & >> gb.CrLf & "Code : " & Error.Code) >> >> End >> >> Public Sub tbstp_MouseDown() >> >> ??? Module1.son(Module1.shade) >> >> End >> Cette fontion provoque une erreur de segmentation, si je commente les >> cinq lignes avec grvw[i] ?a ne plante pas? > > > I tried to answer in French, but my English is better :) > > What springs into my eye is this: > > grvw[i].Tooltip = ("Double-Cliquer sur un message pour le visionner") > > and this: > > Message(gb.CrLf & ("Une erreur : ") & " RunPOP " & Error.Text & > > gb.CrLf & "Code : " & Error.Code) > > What do you use brackets for in connection with strings? I have never > seen that before. > > Second of all, is grvw a tableview? You spend a lot of effort in > calling a bunch of its functions to clear, refresh, then set again and > so on. Why not using the tableview's Data event and leave the whole > work to the tableview? > > I might be wrong here, but it looks as if the tableview expects to be > "not empty/void", such things are easily overseen and have driven me > nuts in the past. This is one point I would start looking for the error. > > Regards > Rolf > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From rwe-sse at osnanet.de Mon Mar 13 11:21:38 2023 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 Mar 2023 11:21:38 +0100 Subject: [Gambas-user] [CRASH REPORT] CherchMail In-Reply-To: References: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> Message-ID: Am 13.03.23 um 09:39 schrieb BB: > @Rolf > > The brackets around literal strings indicates that they are translatable. Ah ok, I never had a translatable project, just projects for myself, so I've never got in touch with this. Interesting! Thanks for the hint! Rolf > > b > > On 13/3/23 7:00 pm, Rolf-Werner Eilert wrote: >> Am 11.03.23 um 20:10 schrieb Philippe Valarcher: >>> Hello, >>> >>> Damned, my program crashed Gambas that way : >>> >>> Public Function RunPOP(i As Integer) As >>> String????????????????????????????????? 'alimentation des comptes en >>> mails >>> >>> ??? Dim Ligne As Integer, n As Integer, Emails As Integer >>> ??? Dim newLast As String, phrase1 As String, phrase2 As String, >>> monText As String >>> >>> ??? Module1.serveurPop(i) >>> ??? Try Module1.POP.Open 'ouverture de la connexion pop >>> >>> ??? Emails = Module1.POP.count >>> >>> ??? If Emails > 0 Then >>> ?????? newLast = Module1.POP[Module1.POP.count - 1].UniqueID >>> ?????? If newLast > MailRecu[i].theLast Then >>> ????????? If chkBeep.value Then PlayBeep() >>> ?????? Endif >>> ?????? monText = >>> txtRun.Text??????????????????????????????????????????????? ' texte >>> des notifications >>> ?????? phrase1 = ("Serveur : ") >>> ?????? phrase2 = ("Nombre de Courriel(s) : ") >>> ?????? monText = Replace(monText, "%p1", phrase1) >>> ?????? monText = Replace(monText, "%p2", phrase2) >>> ?????? monText = Replace(monText, "%u", Module1.pop.user) >>> ?????? monText = Replace(monText, "%s", Module1.pop.host) >>> ?????? monText = Replace(monText, "%m", CStr(emails)) >>> ?????? AddLog(("Nombre de courriels sur le serveur") & " : " & " [ " >>> & Module1.pop.host & " ] " & " : " & Emails) >>> >>> ?????? grvw[i].Rows.Count = Module1.POP.Count >>> >>> ?????? For n = 0 To Emails - 1 >>> ????????? newLast = Module1.POP[n].UniqueID >>> ????????? tbstp[i + 1].Text = Accounts[i].Nom & " + " & >>> Module1.POP.Count >>> ????????? ' grvw[i].Columns.Count = 5 >>> >>> ????????? grvw[i][Ligne, 0].Text = CStr(Module1.POP[n].Message.Sender) >>> ????????? grvw[i][Ligne, 1].Text = CStr(Module1.POP[n].Message.Subject) >>> ????????? grvw[i][Ligne, 2].Text = CStr(Module1.POP[n].Message.To) >>> ????????? grvw[i][Ligne, 3].Text = >>> CStr(Module1.POP[n].Message.Headers["Date"]) >>> ????????? grvw[i][Ligne, 4].Text = CStr(Module1.POP[n].Size) >>> >>> ????????? Ligne += 1 >>> ????????? MailRecu[i].index = Module1.POP[n].Index >>> ????????? nbrMail += 1 >>> ?????? Next >>> >>> ?????? MailRecu[i].theLast = Module1.POP[Emails - 1].UniqueID >>> ?????? grvw[i].Tooltip = ("Double-Cliquer sur un message pour le >>> visionner") >>> >>> ??? Else >>> ?????? tbstp[i + 1].Text = Accounts[i].Nom >>> ?????? With grvw[i] >>> ????????? .Clear >>> ????????? .Refresh >>> ????????? .Rows.Count = 0 >>> ????????? .Columns.Count = 0 >>> ????????? .Tooltip = "" >>> ?????? End With >>> ??? Endif >>> >>> ??? Try Module1.POP.Close >>> ??? Try Module1.POP = Null >>> >>> ??? Return monText >>> >>> Catch >>> ??? TimeRemain = TimeInterval >>> ??? Tray.icon = Picture["./ic?nes/mail.png"] >>> ??? Message.Title = ("Horreur!") >>> ??? Message(gb.CrLf & ("Une erreur : ") & " RunPOP " & Error.Text & >>> gb.CrLf & "Code : " & Error.Code) >>> >>> End >>> >>> Public Sub tbstp_MouseDown() >>> >>> ??? Module1.son(Module1.shade) >>> >>> End >>> Cette fontion provoque une erreur de segmentation, si je commente les >>> cinq lignes avec grvw[i] ?a ne plante pas? >> >> >> I tried to answer in French, but my English is better :) >> >> What springs into my eye is this: >> >> grvw[i].Tooltip = ("Double-Cliquer sur un message pour le visionner") >> >> and this: >> >> Message(gb.CrLf & ("Une erreur : ") & " RunPOP " & Error.Text & >> > gb.CrLf & "Code : " & Error.Code) >> >> What do you use brackets for in connection with strings? I have never >> seen that before. >> >> Second of all, is grvw a tableview? You spend a lot of effort in >> calling a bunch of its functions to clear, refresh, then set again and >> so on. Why not using the tableview's Data event and leave the whole >> work to the tableview? >> >> I might be wrong here, but it looks as if the tableview expects to be >> "not empty/void", such things are easily overseen and have driven me >> nuts in the past. This is one point I would start looking for the error. >> >> Regards >> Rolf >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From t.lee.davidson at gmail.com Mon Mar 13 20:55:25 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 13 Mar 2023 15:55:25 -0400 Subject: [Gambas-user] watch expression on object super In-Reply-To: <20230313074346.M88861@455.co.il> References: <20230311183012.M6362@455.co.il> <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> <20230313074346.M88861@455.co.il> Message-ID: <3f28283e-c0dc-bf5c-ca10-d9c7b851dc1e@gmail.com> On 3/13/23 03:43, Mayost Sharon wrote: > Hello > > Thanks > > I am trying to access a value in code > But I ran over the property > > For example I made a new TAG property > If I check what is in ME.TAG it is not what is in SUPER.TAG > And how can I access the value in the code by clicking the right mouse button and then: "Watch expression" > > Thank you Okay, just to be clear, you are talking about accessing a value using the debugger (not in your code). To do what you're asking, first highlight the variable, or object and property, then right-click and select "Watch expression". -- Lee From sharon at 455.co.il Tue Mar 14 05:19:58 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 14 Mar 2023 06:19:58 +0200 Subject: [Gambas-user] watch expression on object super In-Reply-To: <3f28283e-c0dc-bf5c-ca10-d9c7b851dc1e@gmail.com> References: <20230311183012.M6362@455.co.il> <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> <20230313074346.M88861@455.co.il> <3f28283e-c0dc-bf5c-ca10-d9c7b851dc1e@gmail.com> Message-ID: <20230314041406.M38005@455.co.il> > Okay, just to be clear, you are talking about accessing a value using the > debugger (not in your code). > > To do what you're asking, first highlight the variable, or object and property, > then right-click and select "Watch expression". > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello If I highlight the variable, or object (Super.Tag) and property, then right-click and select "Watch expression" It returns an error: "UNEXPECTED SUPER" Many thanks From t.lee.davidson at gmail.com Tue Mar 14 15:08:20 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 14 Mar 2023 10:08:20 -0400 Subject: [Gambas-user] watch expression on object super In-Reply-To: <20230314041406.M38005@455.co.il> References: <20230311183012.M6362@455.co.il> <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> <20230313074346.M88861@455.co.il> <3f28283e-c0dc-bf5c-ca10-d9c7b851dc1e@gmail.com> <20230314041406.M38005@455.co.il> Message-ID: On 3/14/23 00:19, Mayost Sharon wrote: [snip] > > Hello > > If I highlight the variable, or object (Super.Tag) and property, then right-click and select "Watch expression" > It returns an error: > "UNEXPECTED SUPER" > > Many thanks I am going to have to point you back to what I said three days ago: https://lists.gambas-basic.org/pipermail/user/2023-March/078799.html Have you overridden the Tag property? If you are unable to answer that question, then you will need to provide a project that demonstrates the issue. -- Lee From benoit.minisini at gambas-basic.org Tue Mar 14 15:46:48 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 14 Mar 2023 15:46:48 +0100 Subject: [Gambas-user] [CRASH REPORT] CherchMail In-Reply-To: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> References: <777226aa16bf239a21674675b3b3e9e99cc7367a.camel@free.fr> Message-ID: <24417892-39a5-1db3-b877-2dc6a7d41628@gambas-basic.org> Le 11/03/2023 ? 20:10, Philippe Valarcher a ?crit?: > Hello, > > Damned, my program crashed Gambas that way : > > Public Function RunPOP(i As Integer) As > String????????????????????????????????? 'alimentation des comptes en mails > > ?? Dim Ligne As Integer, n As Integer, Emails As Integer > ?? Dim newLast As String, phrase1 As String, phrase2 As String, monText > As String > > ?? Module1.serveurPop(i) > ?? Try > Module1.POP.Open > 'ouverture de la connexion pop > > [...] It's fixed in the last commit: https://gitlab.com/gambas/gambas/-/commit/a3f1cccf0b996b2d37afc431a35f8cb1585d5c38 But in my test, for any reason, the underlying 'gmime' library seems to be unable to retrieve the sender of my mails correctly. It often returns a void string, which was leading to a crash before I made that fix. Regards, -- Beno?t Minisini. From sharon at 455.co.il Tue Mar 14 23:16:45 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 15 Mar 2023 00:16:45 +0200 Subject: [Gambas-user] watch expression on object super In-Reply-To: References: <20230311183012.M6362@455.co.il> <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> <20230313074346.M88861@455.co.il> <3f28283e-c0dc-bf5c-ca10-d9c7b851dc1e@gmail.com> <20230314041406.M38005@455.co.il> Message-ID: <20230314221623.M76283@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Tue, 14 Mar 2023 10:08:20 -0400 Subject: Re: [Gambas-user] watch expression on object super > On 3/14/23 00:19, Mayost Sharon wrote: > [snip] > > > > Hello > > > > If I highlight the variable, or object (Super.Tag) and property, then right-click and select "Watch expression" > > It returns an error: > > "UNEXPECTED SUPER" > > > > Many thanks > > I am going to have to point you back to what I said three days ago: > https://lists.gambas-basic.org/pipermail/user/2023-March/078799.html > > Have you overridden the Tag property? > > If you are unable to answer that question, then you will need to provide a > project that demonstrates the issue. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello I answered you in the previous message I override the TAG property I am attaching an example: Click the CLEAR button See the comment I wrote there Many thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: super4.zip Type: application/zip Size: 18003 bytes Desc: not available URL: From adamnt42 at gmail.com Wed Mar 15 00:55:22 2023 From: adamnt42 at gmail.com (BB) Date: Wed, 15 Mar 2023 10:25:22 +1030 Subject: [Gambas-user] watch expression on object super In-Reply-To: <20230314221623.M76283@455.co.il> References: <20230311183012.M6362@455.co.il> <826e757b-a918-cd2a-00b7-41843b4d960a@gmail.com> <20230313074346.M88861@455.co.il> <3f28283e-c0dc-bf5c-ca10-d9c7b851dc1e@gmail.com> <20230314041406.M38005@455.co.il> <20230314221623.M76283@455.co.il> Message-ID: On 15/3/23 8:46 am, Mayost Sharon wrote: 8< stuff OK. Looks like Super and the debugger aren't on speaking terms. ? You might get around this, when you need it, by setting a local variable to the Super value, e.g. Dim sTest as string sTest=Super.Tag_or_someotherstringproperty Print sTest I had a quick go with something similar here and both highlighting and watching sTest work. b From chrisml at deganius.de Wed Mar 15 17:33:59 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 15 Mar 2023 17:33:59 +0100 Subject: [Gambas-user] Bug #2706: Gambas packs the content of .public into executable even if .public is a symlink In-Reply-To: References: Message-ID: <918494f4-2cd0-acee-eee9-afede4ce6544@deganius.de> Hi Beno?t, Am 11.03.23 um 10:37 schrieb bugtracker at gambaswiki.org: > http://gambaswiki.org/bugtracker/edit?object=BUG.2706&from=L21haW4- > > Comment #5 by Beno?t MINISINI: > > Done in https://gitlab.com/gambas/gambas/-/commit/5c5885bac87ca7938097f5df67b59ae40a316c1a. > > Beno?t MINISINI changed the state of the bug to: Fixed. That's very cool. Thank you very much! :-) Alles Gute Christof Thalhofer -- [x] nail here for new monitor From gradobag at gradobag.it Wed Mar 15 17:57:39 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 15 Mar 2023 17:57:39 +0100 Subject: [Gambas-user] ciarea Message-ID: <630392cb-17ec-2bfc-236c-65b3c88b11ec@gradobag.it> A non-text attachment was scrubbed... Name: ProvaTetto-0.0.1.tar.gz Type: application/gzip Size: 44345 bytes Desc: not available URL: From gradobag at gradobag.it Wed Mar 15 18:16:14 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 15 Mar 2023 18:16:14 +0100 Subject: [Gambas-user] ciarea (Question for Christof) In-Reply-To: <630392cb-17ec-2bfc-236c-65b3c88b11ec@gradobag.it> References: <630392cb-17ec-2bfc-236c-65b3c88b11ec@gradobag.it> Message-ID: Hi Christof, I don't understand why, if I send a file to myself, it ends up in the user list. What am I doing wrong? Regards Gianluigi From chrisml at deganius.de Wed Mar 15 22:24:05 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 15 Mar 2023 22:24:05 +0100 Subject: [Gambas-user] ciarea (Question for Christof) In-Reply-To: References: <630392cb-17ec-2bfc-236c-65b3c88b11ec@gradobag.it> Message-ID: <9de31ece-2fbb-4a8b-f675-c7af92a6e820@deganius.de> Hi Gianluigi, Am 15.03.23 um 18:16 schrieb Gianluigi: > Hi Christof, Thanks for my name in the topic. I wouldn't have seen it without it. > I don't understand why, if I send a file to myself, it ends up in the > user list. > What am I doing wrong? Your mail was sent: 'To: gian via User ' The crucial factor is the mail address ''. Please have a look at the headers of the mail you sent. In Thunderbird press when the mail is selected. How did you send this mail "to myself"? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From gradobag at gradobag.it Wed Mar 15 22:42:33 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 15 Mar 2023 22:42:33 +0100 Subject: [Gambas-user] ciarea (Question for Christof) In-Reply-To: <9de31ece-2fbb-4a8b-f675-c7af92a6e820@deganius.de> References: <630392cb-17ec-2bfc-236c-65b3c88b11ec@gradobag.it> <9de31ece-2fbb-4a8b-f675-c7af92a6e820@deganius.de> Message-ID: <6a831163-6f26-def2-9667-b3d02b82122d@gradobag.it> Il 15/03/23 22:24, Christof Thalhofer ha scritto: > Hi Gianluigi, > > Am 15.03.23 um 18:16 schrieb Gianluigi: > >> Hi Christof, > > Thanks for my name in the topic. I wouldn't have seen it without it. > >> I don't understand why, if I send a file to myself, it ends up in the >> user list. >> What am I doing wrong? > > Your mail was sent: > > 'To: gian via User ' > > The crucial factor is the mail address ''. > > Please have a look at the headers of the mail you sent. In Thunderbird > press when the mail is selected. > > How did you send this mail "to myself"? > > Alles Gute > > Christof Thalhofer Hi Christof, sorry, I took the wrong pill today and am more distracted than usual. The first address that appears when I start typing my name in the recipient now (unlike before with the old provider) is the one of the Gambas milinglist, I have to be careful. Sorry for the trouble, regards Gianluigi From chrisml at deganius.de Thu Mar 16 08:16:07 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 16 Mar 2023 08:16:07 +0100 Subject: [Gambas-user] ciarea (Question for Christof) In-Reply-To: <6a831163-6f26-def2-9667-b3d02b82122d@gradobag.it> References: <630392cb-17ec-2bfc-236c-65b3c88b11ec@gradobag.it> <9de31ece-2fbb-4a8b-f675-c7af92a6e820@deganius.de> <6a831163-6f26-def2-9667-b3d02b82122d@gradobag.it> Message-ID: <265423c1-9b95-4af6-11d8-838edbe8e4d1@deganius.de> Am 15.03.23 um 22:42 schrieb Gianluigi: > sorry, I took the wrong pill today and am more distracted than usual. > The first address that appears when I start typing my name in the > recipient now (unlike before with the old provider) is the one of the > Gambas milinglist, I have to be careful. > > Sorry for the trouble, regards This is no trouble, don't worry. I think we will get more confusions of this kind in future because we will be forced to use SPF and DKIM to get the mails through some strictly configured mailservers. And then we will have to rewrite the "From:" header so that it looks like: "Prename Name via " Currently it is not the case, therefore I wondered how your Thunderbird came to the conclusion to present you this address 'To: gian via User ' as you entered "gian" to write to yourself. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Thu Mar 16 08:38:20 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 16 Mar 2023 08:38:20 +0100 Subject: [Gambas-user] Checksum for array and collection Message-ID: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> Hi everybody, I'm in search for a function that returns a checksum for an array or a collection so that I have the possibility to check if the size or content has changed. Any ideas? To create a checksum for a string is easy, for that I use 'Digest["sha1"](sCheckstring)' with 'Digest' from gb.openssl. But how create 'sCheckstring' which represents the content of the array? A simple approach would be to use JSON.Encode($TheArray), but I wonder if there are faster solutions? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From gambas.fr at gmail.com Thu Mar 16 09:07:04 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 16 Mar 2023 09:07:04 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> Message-ID: Le jeu. 16 mars 2023 ? 08:39, Christof Thalhofer a ?crit : > > Hi everybody, > > I'm in search for a function that returns a checksum for an array or a > collection so that I have the possibility to check if the size or > content has changed. > > Any ideas? > > To create a checksum for a string is easy, for that I use > > 'Digest["sha1"](sCheckstring)' > > with 'Digest' from gb.openssl. > > But how create 'sCheckstring' which represents the content of the array? > > A simple approach would be to use JSON.Encode($TheArray), but I wonder > if there are faster solutions? I think it's the the faster, For string array you have '.join()' But for Collection you have to deal with gambas tools to put the datas inline and compare them in one shot. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard From gradobag at gradobag.it Thu Mar 16 10:39:36 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 16 Mar 2023 10:39:36 +0100 Subject: [Gambas-user] ciarea (Question for Christof) In-Reply-To: <265423c1-9b95-4af6-11d8-838edbe8e4d1@deganius.de> References: <630392cb-17ec-2bfc-236c-65b3c88b11ec@gradobag.it> <9de31ece-2fbb-4a8b-f675-c7af92a6e820@deganius.de> <6a831163-6f26-def2-9667-b3d02b82122d@gradobag.it> <265423c1-9b95-4af6-11d8-838edbe8e4d1@deganius.de> Message-ID: <4306a623-20e5-7419-ee34-b78cc128a129@gradobag.it> Il 16/03/23 08:16, Christof Thalhofer ha scritto: > Currently it is not the case, therefore I wondered how your > Thunderbird came to the conclusion to present you this address > > 'To: gian via User ' > > as you entered "gian" to write to yourself. Hi Christof, I have no idea why Thunderbird wrote this address in the address book (collected addresses), maybe when I was testing to hang up a deleted thread, anyway I have now deleted it and, as said, I will be more careful in the future. Thank you and regards Gianluigi From mbelmonte at belmotek.net Thu Mar 16 10:37:30 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Thu, 16 Mar 2023 10:37:30 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> Message-ID: El 16/3/23 a las 8:38, Christof Thalhofer escribi?: > Hi everybody, > > I'm in search for a function that returns a checksum for an array or a > collection so that I have the possibility to check if the size or > content has changed. > > Any ideas? Hi, To compare Collections is not simple, but you can use some function like IsDirty() please see the attached project. Regards. Martin. -------------- next part -------------- A non-text attachment was scrubbed... Name: sample-collection-compare-0.0.1.tar.gz Type: application/gzip Size: 12816 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Thu Mar 16 10:55:32 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 16 Mar 2023 10:55:32 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> Message-ID: <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> Le 16/03/2023 ? 08:38, Christof Thalhofer a ?crit?: > Hi everybody, > > I'm in search for a function that returns a checksum for an array or a > collection so that I have the possibility to check if the size or > content has changed. > > Any ideas? > > To create a checksum for a string is easy, for that I use > > 'Digest["sha1"](sCheckstring)' > > with 'Digest' from gb.openssl. > > But how create 'sCheckstring' which represents the content of the array? > > A simple approach would be to use JSON.Encode($TheArray), but I wonder > if there are faster solutions? > > Alles Gute > > Christof Thalhofer > You can serialize your data in a string, and then get the checksum. Note that you have now a 'gb.hash' component that implements the main checksum routines. hString = Open String For Write Write #hString, MyCollection As Collection ' Or whatever your data is sString = Close #hString Print Hash.SHA256(sString) ' From 'gb.hash' Regards, -- Beno?t Minisini. From mbelmonte at belmotek.net Thu Mar 16 11:42:07 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Thu, 16 Mar 2023 11:42:07 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> Message-ID: El 16/3/23 a las 10:55, Benoit Minisini escribi?: > You can serialize your data in a string if serialize don't use a charter for separate each item there are the possibility of error. oData_state1 = ["key1":"a","key2":"b","key3":"c"] oData_state2 = ["key1":"a","key2":"bc"] Then oData_state1 cold be the same that oData_state2 for the "serialization" method. Regards. From benoit.minisini at gambas-basic.org Thu Mar 16 12:35:35 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 16 Mar 2023 12:35:35 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> Message-ID: <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> Le 16/03/2023 ? 11:42, Mart?n a ?crit?: > El 16/3/23 a las 10:55, Benoit Minisini escribi?: >> You can serialize your data in a string > > if serialize don't use a charter for separate each item there are the > possibility of error. Serialized data is not a string, it's a binary format stored in a string. Look at the documentation of the READ and WRITE functions. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Mar 16 12:36:47 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 16 Mar 2023 12:36:47 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> Message-ID: Le 16/03/2023 ? 12:35, Benoit Minisini a ?crit?: > Le 16/03/2023 ? 11:42, Mart?n a ?crit?: >> El 16/3/23 a las 10:55, Benoit Minisini escribi?: >>> You can serialize your data in a string >> >> if serialize don't use a charter for separate each item there are the >> possibility of error. > > Serialized data is not a string, it's a binary format stored in a > string. Look at the documentation of the READ and WRITE functions. > It's very useful to communicate Gambas data between a process and a background task (see the 'Task' class), or between different processes, or through the network between Gambas programs. Regard, -- Beno?t Minisini. From mbelmonte at belmotek.net Thu Mar 16 13:53:17 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Thu, 16 Mar 2023 13:53:17 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> Message-ID: <58179467-2494-8a3a-75ea-7700c3df450e@belmotek.net> El 16/3/23 a las 12:35, Benoit Minisini escribi?: > Serialized data is not a string, it's a binary format stored in a string ok, You right, it works for general cases. I don't read the documentation but I made some test. serial made this: https://imgur.com/8YyzTI2 It create the string like: C??? ITEMKEY1??? ?ITEM1VALUE C start the collection ? start the item value Then, each item start after some non printable characters. https://imgur.com/8YyzTI2https://imgur.com/8YyzTI2 https://imgur.com/8YyzTI2 From mbelmonte at belmotek.net Thu Mar 16 15:29:57 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Thu, 16 Mar 2023 15:29:57 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> Message-ID: El 16/3/23 a las 12:35, Benoit Minisini escribi?: > Le 16/03/2023 ? 11:42, Mart?n a ?crit?: >> El 16/3/23 a las 10:55, Benoit Minisini escribi?: >>> You can serialize your data in a string >> >> if serialize don't use a charter for separate each item there are the >> possibility of error. > > Serialized data is not a string, it's a binary format stored in a > string. Look at the documentation of the READ and WRITE functions. > > Regards, > I has made the check, serialized method is faster that check recursively the content of the Collection but only in the case that the collection has not changed the number of items, in that case it is faster the other method that takes into account if .Count is different from the initial state, if so it does not make sense to make more checks that involve computation, because the collection is already different from the initial state. So the conclusion is that the most efficient is to use serialisation but only if the collection does not change the number of items. -------------- next part -------------- A non-text attachment was scrubbed... Name: sample-collection-compare-0.0.2.tar.gz Type: application/gzip Size: 13452 bytes Desc: not available URL: From chrisml at deganius.de Thu Mar 16 17:30:29 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 16 Mar 2023 17:30:29 +0100 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> Message-ID: <8995d4c8-290c-a30b-0482-38520124e2f2@deganius.de> Am 16.03.23 um 15:29 schrieb Mart?n: > I has made the check, serialized method is faster that check recursively > the content of the Collection but only in the case that the collection > has not changed the number of items, in that case it is faster the other > method that takes into account if .Count is different from the initial > state, if so it does not make sense to make more checks that involve > computation, because the collection is already different from the > initial state. > So the conclusion is that the most efficient is to use serialisation but > only if the collection does not change the number of items. Checksum must work with the data being checked alone. Comparing the output of '.Count' would assume that it has previously stored the counted number. This would be another beast. Thanks everybody and thank you for the test! Thank you Beno?t for this nice and fast algorithm. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From simonlebon54 at yahoo.com Thu Mar 16 19:52:21 2023 From: simonlebon54 at yahoo.com (Steve) Date: Thu, 16 Mar 2023 10:52:21 -0800 Subject: [Gambas-user] Still no drag and drop In-Reply-To: References: Message-ID: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> I am running on fedora. The 3.18.1 update finally came through. It corrected my major problems. However the drag and drop is still non-functional for me. It does not even trigger the event. I am using it on a list box and the dragon drop still does not trigger at all. Get TypeApp for Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Mar 16 21:32:03 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 16 Mar 2023 22:32:03 +0200 Subject: [Gambas-user] Checksum for array and collection In-Reply-To: <8995d4c8-290c-a30b-0482-38520124e2f2@deganius.de> References: <93515cba-f5a0-7281-9a6e-e8adff5952ed@deganius.de> <36654e6a-9d72-9dcc-4a65-a83994f8acb6@gambas-basic.org> <6eb2a229-1c3d-aaef-2df3-de978c186dd9@gambas-basic.org> <8995d4c8-290c-a30b-0482-38520124e2f2@deganius.de> Message-ID: For arrays you can use memcmp from libc. Pointer to the array is in the .data property. That is the fastest, but it doesn't work for collections. Jussi On Thu, Mar 16, 2023 at 6:31?PM Christof Thalhofer wrote: > Am 16.03.23 um 15:29 schrieb Mart?n: > > > I has made the check, serialized method is faster that check recursively > > the content of the Collection but only in the case that the collection > > has not changed the number of items, in that case it is faster the other > > method that takes into account if .Count is different from the initial > > state, if so it does not make sense to make more checks that involve > > computation, because the collection is already different from the > > initial state. > > So the conclusion is that the most efficient is to use serialisation but > > only if the collection does not change the number of items. > > Checksum must work with the data being checked alone. > > Comparing the output of '.Count' would assume that it has previously > stored the counted number. This would be another beast. > > Thanks everybody and thank you for the test! > > Thank you Beno?t for this nice and fast algorithm. > > :-) > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Mar 16 21:32:34 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 16 Mar 2023 16:32:34 -0400 Subject: [Gambas-user] Still no drag and drop In-Reply-To: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> References: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> Message-ID: <4d19ea20-ed84-0ace-3672-df58f0a10c30@gmail.com> On 3/16/23 14:52, Steve via User wrote: > I am running on fedora. The 3.18.1 update finally came through. It corrected my major problems. However the drag and drop is > still non-functional for me. It does not even trigger the event. I am using it on a list box and the dragon drop still does not > trigger at all. It works fine here. With just a ListBox, a TextBox, and the following code, I can drag the textbox text to the listbox and add it to the list: [code] ' Gambas class file Public Sub ListBox1_Drop() ListBox1.Add(Drag.Data) End Public Sub TextBox1_MouseDrag() TextBox1.Drag(TextBox1.Text) End [/code] Be sure you have set ListBox.Drop = True. -- Lee From bsteers4 at gmail.com Fri Mar 17 00:19:01 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 16 Mar 2023 23:19:01 +0000 Subject: [Gambas-user] Still no drag and drop In-Reply-To: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> References: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> Message-ID: On Thu, 16 Mar 2023 at 18:53, Steve via User wrote: > I am running on fedora. The 3.18.1 update finally came through. It > corrected my major problems. However the drag and drop is still > non-functional for me. It does not even trigger the event. I am using it on > a list box and the dragon drop still does not trigger at all. > Please post an example application that does not work. afaik only gtk2 has issues it's possible you are not doing it right. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Mar 17 00:30:16 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Thu, 16 Mar 2023 23:30:16 +0000 Subject: [Gambas-user] Still no drag and drop In-Reply-To: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> References: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> Message-ID: Is your system only using gtk2 and not gtk3 or have you just found it does not work for the old gtk2 toolkit? because gtk2 is pretty obsolete now and a gtk2 only system will be pretty rare, gtk4 is on it's way now, and qt6..... there is a known issue with gtk2 d-n-d , gtk3 and qt4/5 work okay. If you have no specific need for d-n-d on gtk2 then i shouldn't worry about it. most system are going to have gtk3 or above. https://gambaswiki.org/bugtracker/edit?object=BUG.2618&from=L21haW4- BruceS On Thu, 16 Mar 2023 at 18:53, Steve via User wrote: > I am running on fedora. The 3.18.1 update finally came through. It > corrected my major problems. However the drag and drop is still > non-functional for me. It does not even trigger the event. I am using it on > a list box and the dragon drop still does not trigger at all. > > > > Get TypeApp for Android > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Mar 17 08:18:33 2023 From: simonlebon54 at yahoo.com (Steve) Date: Thu, 16 Mar 2023 23:18:33 -0800 Subject: [Gambas-user] Re drag drop not working In-Reply-To: References: Message-ID: <57d23d1d-7d5b-4cae-b6f9-5210d0f280bd@yahoo.com> I am trying to drag and drop from other applications not from within the same one that might be making a difference. It's still an active problem on bug tracker. And it is gtk2. This project was working fine until the update. And drop a set to true. As I said this is been working perfect for the longest time until this update of the interpreter. running on fedora. The 3.18.1 update finally came through. It corrected my major problems. However the drag and drop is still non-functional for me. It does not even trigger the event. I am using it on a list box and the dragon drop still does not trigger at all. Please post an example application that does not work. afaik only gtk2 has issues it's possible you are not doing it right. Get TypeApp for Android -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Mar 17 08:58:39 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 17 Mar 2023 09:58:39 +0200 Subject: [Gambas-user] Still no drag and drop In-Reply-To: <4d19ea20-ed84-0ace-3672-df58f0a10c30@gmail.com> References: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> <4d19ea20-ed84-0ace-3672-df58f0a10c30@gmail.com> Message-ID: <20230317075237.M12732@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Thu, 16 Mar 2023 16:32:34 -0400 Subject: Re: [Gambas-user] Still no drag and drop > On 3/16/23 14:52, Steve via User wrote: > > I am running on fedora. The 3.18.1 update finally came through. It corrected my major problems. However the drag and drop is > > still non-functional for me. It does not even trigger the event. I am using it on a list box and the dragon drop still does not > > trigger at all. > > It works fine here. With just a ListBox, a TextBox, and the following code, I > can drag the textbox text to the listbox and add it to the list: > > [code] > ' Gambas class file > > Public Sub ListBox1_Drop() > > ListBox1.Add(Drag.Data) > > End > > Public Sub TextBox1_MouseDrag() > > TextBox1.Drag(TextBox1.Text) > > End > [/code] > > Be sure you have set ListBox.Drop = True. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello I'm on Fedora 36 and Gamba 3.18.1 In ListBox when ListBox1.Drop=True it works fine but In TextBox even if TextBox1.Drop=False it also works Is this how it should be? Thank you From sharon at 455.co.il Fri Mar 17 09:15:05 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 17 Mar 2023 10:15:05 +0200 Subject: [Gambas-user] Still no drag and drop In-Reply-To: <20230317075237.M12732@455.co.il> References: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> <4d19ea20-ed84-0ace-3672-df58f0a10c30@gmail.com> <20230317075237.M12732@455.co.il> Message-ID: <20230317081358.M804@455.co.il> ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Fri, 17 Mar 2023 09:58:39 +0200 Subject: Re: [Gambas-user] Still no drag and drop > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Thu, 16 Mar 2023 16:32:34 -0400 > Subject: Re: [Gambas-user] Still no drag and drop > > > On 3/16/23 14:52, Steve via User wrote: > > > I am running on fedora. The 3.18.1 update finally came through. It corrected my major problems. However the drag and drop is > > > still non-functional for me. It does not even trigger the event. I am using it on a list box and the dragon drop still does not > > > trigger at all. > > > > It works fine here. With just a ListBox, a TextBox, and the following code, I > > can drag the textbox text to the listbox and add it to the list: > > > > [code] > > ' Gambas class file > > > > Public Sub ListBox1_Drop() > > > > ListBox1.Add(Drag.Data) > > > > End > > > > Public Sub TextBox1_MouseDrag() > > > > TextBox1.Drag(TextBox1.Text) > > > > End > > [/code] > > > > Be sure you have set ListBox.Drop = True. > > > > -- > > Lee > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ------- End of Original Message ------- > > Hello > > I'm on Fedora 36 and Gamba 3.18.1 > In ListBox when ListBox1.Drop=True it works fine > but > In TextBox even if TextBox1.Drop=False it also works > > Is this how it should be? > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello Sorry I notice that if I write in the code TextBox1.Drop=False it really cancels the drop event But if I take a new textbox the default property TextBox1.Drop is false This allows an drop event Thanks From t.lee.davidson at gmail.com Fri Mar 17 14:31:37 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 17 Mar 2023 09:31:37 -0400 Subject: [Gambas-user] Still no drag and drop In-Reply-To: <20230317075237.M12732@455.co.il> References: <2b90f5f8-188f-4b51-8786-9ac9b1b539d6@yahoo.com> <4d19ea20-ed84-0ace-3672-df58f0a10c30@gmail.com> <20230317075237.M12732@455.co.il> Message-ID: On 3/17/23 03:58, Mayost Sharon wrote: > Hello > > I'm on Fedora 36 and Gamba 3.18.1 > In ListBox when ListBox1.Drop=True it works fine > but > In TextBox even if TextBox1.Drop=False it also works > > Is this how it should be? > > Thank you The Drop property returns or sets if a control *accepts* drops. So, to drag from a TextBox to a ListBox, only the ListBox needs to be set with Drop = True. The setting of TextBox.Drop would be irrelevant. -- Lee From t.lee.davidson at gmail.com Fri Mar 17 14:51:24 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 17 Mar 2023 09:51:24 -0400 Subject: [Gambas-user] Re drag drop not working In-Reply-To: <57d23d1d-7d5b-4cae-b6f9-5210d0f280bd@yahoo.com> References: <57d23d1d-7d5b-4cae-b6f9-5210d0f280bd@yahoo.com> Message-ID: On 3/17/23 03:18, Steve via User wrote: > I am trying to drag and drop from other applications not from within the same one that might be making a difference. It's still > an active problem on bug tracker. And it is gtk2. This project was working fine until the update. And drop a set to true. As I > said this is been working perfect for the longest time until this update of the interpreter. Okay, it must be an issue with GTK2. I tried it with both GTK3 and Qt5, and it works as expected dragging from one application to another. -- Lee From benoit.minisini at gambas-basic.org Fri Mar 17 16:04:31 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 17 Mar 2023 16:04:31 +0100 Subject: [Gambas-user] Drag and drop on GTK+2 Message-ID: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> Hi, Drag and drop on GTK+2 should have been fixed by the last commit. Please report if you still have problems. Anyway, you should not use GTK+2 anymore. ..........perhaps we should not use GTK+ at all! :-) -> [] -- Beno?t Minisini. From gambas.fr at gmail.com Fri Mar 17 16:26:48 2023 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 17 Mar 2023 16:26:48 +0100 Subject: [Gambas-user] Gambas web form Message-ID: Hi, How to make WebTable react on a click ?.. or dblClick ? -- Fabien Bodard From t.lee.davidson at gmail.com Fri Mar 17 16:58:06 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 17 Mar 2023 11:58:06 -0400 Subject: [Gambas-user] Gambas web form In-Reply-To: References: Message-ID: On 3/17/23 11:26, Fabien Bodard wrote: > Hi, > > How to make WebTable react on a click ?.. or dblClick ? There was a related discussion about this a couple of weeks ago: https://lists.gambas-basic.org/pipermail/user/2023-March/078696.html WebTable does not raise its own Click event. The Click event is raised when a control in a cell raises its Click event. As for dblClick, catch that with the Activate event. -- Lee From bsteers4 at gmail.com Sat Mar 18 23:11:08 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 18 Mar 2023 22:11:08 +0000 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> Message-ID: On Fri, 17 Mar 2023 at 15:05, Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Hi, > > Drag and drop on GTK+2 should have been fixed by the last commit. > > Please report if you still have problems. > > Anyway, you should not use GTK+2 anymore. > > ..........perhaps we should not use GTK+ at all! :-) > it seems more of an option than a need today. and a rubbish option too compared to gtk3 Maybe keep it going until gb.gtk4 then retire it? Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sun Mar 19 12:19:29 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 19 Mar 2023 13:19:29 +0200 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> Message-ID: <20230319111623.M97365@455.co.il> ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Sat, 18 Mar 2023 22:11:08 +0000 Subject: Re: [Gambas-user] Drag and drop on GTK+2 > On Fri, 17 Mar 2023 at 15:05, Benoit Minisini < > benoit.minisini at gambas-basic.org> wrote: > > > Hi, > > > > Drag and drop on GTK+2 should have been fixed by the last commit. > > > > Please report if you still have problems. > > > > Anyway, you should not use GTK+2 anymore. > > > > ..........perhaps we should not use GTK+ at all! :-) > > > > it seems more of an option than a need today. and a rubbish option too > compared to gtk3 > > Maybe keep it going until gb.gtk4 then retire it? > > Respects > BruceS ------- End of Original Message ------- I'm on Fedora 36 Gambas 3.18.1 And I only have GTK3 installed In a text box it responds to the DROP event even if the value is: TextBox1.Drop = False If I define both TextBox1.Drop = True TextBox1.Drop = False This cancels the DROP event I am attaching an example I made a note by pressing the buttons It doesn't seem right Many thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: drag.zip Type: application/zip Size: 16236 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sun Mar 19 20:13:00 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 19 Mar 2023 15:13:00 -0400 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: <20230319111623.M97365@455.co.il> References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> <20230319111623.M97365@455.co.il> Message-ID: On 3/19/23 07:19, Mayost Sharon wrote: > I'm on Fedora 36 > Gambas 3.18.1 > And I only have GTK3 installed > > In a text box it responds to the DROP event even if the value is: > TextBox1.Drop = False > > If I define both > TextBox1.Drop = True > TextBox1.Drop = False > > This cancels the DROP event > > I am attaching an example > I made a note by pressing the buttons > > It doesn't seem right > > Many thanks This is actually a different issue than the topic of this thread. But, I confirm that on v3.18.1, the interpreter does not respect the default value of TextBox.Drop until it is programmatically changed. -- Lee KDE Plasma (Qt5) From benoit.minisini at gambas-basic.org Sun Mar 19 20:36:20 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 19 Mar 2023 20:36:20 +0100 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> <20230319111623.M97365@455.co.il> Message-ID: <8f117217-961e-61e1-201b-4f86338594fc@gambas-basic.org> Le 19/03/2023 ? 20:13, T Lee Davidson a ?crit?: > On 3/19/23 07:19, Mayost Sharon wrote: >> I'm on Fedora 36 >> Gambas 3.18.1 >> And I only have GTK3 installed >> >> In a text box it responds to the DROP event even if the value is: >> TextBox1.Drop = False >> >> If I define both >> TextBox1.Drop = True >> TextBox1.Drop = False >> >> This cancels the DROP event >> >> I am attaching an example >> I made a note by pressing the buttons >> >> It doesn't seem right >> >> Many thanks > > This is actually a different issue than the topic of this thread. > > But, I confirm that on v3.18.1, the interpreter does not respect the > default value of TextBox.Drop until it is programmatically changed. > Mmm... All controls ignore drops by default, except editing controls like TextBox and TextArea, both in Qt and GTK+ by the way. And I ignored that fact, hence the incoherent behaviour you noticed. I will make the Drop property True by default for TextBox and TextArea and see if it raises some other problems. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sun Mar 19 20:43:54 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 19 Mar 2023 20:43:54 +0100 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: <8f117217-961e-61e1-201b-4f86338594fc@gambas-basic.org> References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> <20230319111623.M97365@455.co.il> <8f117217-961e-61e1-201b-4f86338594fc@gambas-basic.org> Message-ID: <2a76655f-9391-bd09-acf6-00b37d62e4bb@gambas-basic.org> Le 19/03/2023 ? 20:36, Benoit Minisini a ?crit?: > > Mmm... All controls ignore drops by default, except editing controls > like TextBox and TextArea, both in Qt and GTK+ by the way. And I ignored > that fact, hence the incoherent behaviour you noticed. > > I will make the Drop property True by default for TextBox and TextArea > and see if it raises some other problems. > > Regards, > Done in last commit. Let's see now what happens, if some things break... -- Beno?t Minisini. From bsteers4 at gmail.com Mon Mar 20 12:55:47 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 20 Mar 2023 11:55:47 +0000 Subject: [Gambas-user] Finding the TextEditor search string for FindNextString() Message-ID: If i use TextEditor1.ShowFindPanel() to do a search how can i get the entered search string to use on TextEditor1.FindNextString(SearchString) ? Thanks BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Mar 20 15:47:37 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 20 Mar 2023 14:47:37 +0000 Subject: [Gambas-user] Finding the TextEditor search string for FindNextString() In-Reply-To: References: Message-ID: On Mon, 20 Mar 2023 at 11:55, Bruce Steers wrote: > If i use TextEditor1.ShowFindPanel() to do a search how can i get the > entered search string to use on TextEditor1.FindNextString(SearchString) ? > Never mind. I checked out the source and found it's not designed that way. But here is a way if you need it... I used what i learned from the source to do the following to make a moveNext/Prev command .... Public Sub mnuFindNext_Click() Dim hObject As Object = ActiveEd().TEdit1.Children[0] ' editor view If hObject.Children.Count = 1 Then Return ' FFind is null so return hObject = hObject.Children[1] ' the FFind form hObject.btnNext_Click End Public Sub mnuFindPrev_Click() Dim hObject As Object = ActiveEd().TEdit1.Children[0] If hObject.Children.Count = 1 Then Return hObject = hObject.Children[1] hObject.btnPrevious_Click End Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Mon Mar 20 15:51:22 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 20 Mar 2023 14:51:22 +0000 Subject: [Gambas-user] Finding the TextEditor search string for FindNextString() In-Reply-To: References: Message-ID: On Mon, 20 Mar 2023 at 14:47, Bruce Steers wrote: > > > Never mind. > > But here is a way if you need it... > I used what i learned from the source to do the following to make a > moveNext/Prev command .... > > Public Sub mnuFindNext_Click() > > Dim hObject As Object = ActiveEd().TEdit1.Children[0] ' editor view > If hObject.Children.Count = 1 Then Return ' FFind is null so return > hObject = hObject.Children[1] ' the FFind form > hObject.btnNext_Click > > End > > Public Sub mnuFindPrev_Click() > > Dim hObject As Object = ActiveEd().TEdit1.Children[0] > If hObject.Children.Count = 1 Then Return > hObject = hObject.Children[1] > hObject.btnPrevious_Click > > End > Sorry i meant to edit that so it had TextEditor1 not my pointer to it .... Public Sub mnuFindNext_Click() Dim hObject As Object = TextEditor1.Children[0] ' editor view If hObject.Children.Count = 1 Then Return ' FFind is null so return hObject = hObject.Children[1] ' the FFind form hObject.btnNext_Click End Public Sub mnuFindPrev_Click() Dim hObject As Object = TextEditor1.Children[0] If hObject.Children.Count = 1 Then Return hObject = hObject.Children[1] hObject.btnPrevious_Click End -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Mar 20 17:37:14 2023 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 20 Mar 2023 09:37:14 -0700 (PDT) Subject: [Gambas-user] Adding unsigned byte value to Pointer Message-ID: <1024945329.22409.1679330234913.JavaMail.zimbra@westwoodsvcs.com> Should adding an unsigned byte value to a pointer work correctly. It generates and error, not pointer All other integer types may be added to a pointer, and work correctly. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Mar 20 19:10:15 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 20 Mar 2023 14:10:15 -0400 Subject: [Gambas-user] Adding unsigned byte value to Pointer In-Reply-To: <1024945329.22409.1679330234913.JavaMail.zimbra@westwoodsvcs.com> References: <1024945329.22409.1679330234913.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <8cc4fd42-80bf-4e44-136e-648b13fd2956@gmail.com> On 3/20/23 12:37, Brian G wrote: > Should adding an unsigned byte value to a pointer work correctly. > > It generates and error, not pointer > All other integer types may be added to a pointer, and work correctly. It seems logical that attempting to add an unsigned value to a Pointer would produce an error. However, Shorts are signed and also cannot be added to a Pointer. Keep in mind that Pointers, in Gambas, are unique data types. [code] ' Gambas module file Public Sub Main() Dim pPointer As Pointer Dim bByte As Byte = 255 Dim iShort As Short = bByte Dim iInt As Integer = bByte Dim iLong As Long = bByte ' Print CPointer(bByte) 'Type mismatch: wanted Pointer, got Byte instead ' Print CPointer(iShort) 'Type mismatch: wanted Pointer, got Short instead Print CPointer(iInt) Print CPointer(iLong) Print ' Print pPointer + bByte 'Type mismatch: wanted Pointer, got Byte instead ' Print pPointer + iShort 'Type mismatch: wanted Pointer, got Short instead Print pPointer + iInt Print pPointer + iLong Print Print pPointer + CInt(bByte) End [/code] -- Lee From bsteers4 at gmail.com Mon Mar 20 19:54:15 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Mon, 20 Mar 2023 18:54:15 +0000 Subject: [Gambas-user] where does the TextEditor turn "?" to "Print" ? Message-ID: Was going to see if i could get my gambas to replace "??" for "Debug" like it replaces "?" for "Print" cant find where it does it, looked all round gb.form.editor and gb.eval.highlight And clues anyone? Cheers BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Mar 20 20:48:12 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 21 Mar 2023 06:18:12 +1030 Subject: [Gambas-user] where does the TextEditor turn "?" to "Print" ? In-Reply-To: References: Message-ID: On 21/3/23 5:24 am, Bruce Steers wrote: > Was going to see if i could get my gambas to replace "??" for "Debug" > like it replaces "?" for "Print" > > cant find where it does it, looked all round gb.form.editor and > gb.eval.highlight > > And clues anyone? > > Cheers > BruceS > Not really, but you could just add a code snippet. b -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Mon Mar 20 22:05:41 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 20 Mar 2023 22:05:41 +0100 Subject: [Gambas-user] where does the TextEditor turn "?" to "Print" ? In-Reply-To: References: Message-ID: Le 20/03/2023 ? 19:54, Bruce Steers a ?crit?: > Was going to see if i could get my gambas to replace "??" for "Debug" > like it replaces "?" for "Print" > > cant find where it does it, looked all round gb.form.editor and > gb.eval.highlight > > And clues anyone? > > Cheers > BruceS > The TextEditor does nothing. It's the 'gb.eval.highlight' component that has support for highlighting that both highlights and rewrites the highlighted text. The Gambas highlighting is done in the 'gb.eval' component. The transformation of "?" into "PRINT" is done in 'eval_read.c' at line 400 (in 'master'). It's done after the parser has done its job, so it's just a matter of replacing the token for question mark by the token of PRINT, only if we want to rewrite the code ('EVAL->analyze' is 'TRUE' then). Regards, -- Beno?t Minisini. From brian at westwoodsvcs.com Mon Mar 20 22:03:44 2023 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 20 Mar 2023 14:03:44 -0700 (PDT) Subject: [Gambas-user] Adding unsigned byte value to Pointer In-Reply-To: <8cc4fd42-80bf-4e44-136e-648b13fd2956@gmail.com> References: <1024945329.22409.1679330234913.JavaMail.zimbra@westwoodsvcs.com> <8cc4fd42-80bf-4e44-136e-648b13fd2956@gmail.com> Message-ID: <647783511.22659.1679346224726.JavaMail.zimbra@westwoodsvcs.com> I Hate to disagree, but an unsigned value added to a pointer is just as valid as any other type of value added to a pointer. A pointer is essentially an unsigned value in this context, if I can Add an integer, or long why not any other integer value type... It is inconsistant to fail, as I can add a byte value or short value to a long value..... so there is automatic type conversion taking place. in those cases..., Why not then for byte and short values???? Of course as you point out I can force the type conversion, but why? The byte and short just have to be added to the automatic type conversion to Pointer, as int and long already are. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 20, 2023, at 11:10 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 3/20/23 12:37, Brian G wrote: >> Should adding an unsigned byte value to a pointer work correctly. >> >> It generates and error, not pointer >> All other integer types may be added to a pointer, and work correctly. > > It seems logical that attempting to add an unsigned value to a Pointer would > produce an error. However, Shorts are signed and > also cannot be added to a Pointer. Keep in mind that Pointers, in Gambas, are > unique data types. > > [code] > ' Gambas module file > > Public Sub Main() > > Dim pPointer As Pointer > Dim bByte As Byte = 255 > Dim iShort As Short = bByte > Dim iInt As Integer = bByte > Dim iLong As Long = bByte > > ' Print CPointer(bByte) 'Type mismatch: wanted Pointer, got Byte instead > ' Print CPointer(iShort) 'Type mismatch: wanted Pointer, got Short instead > Print CPointer(iInt) > Print CPointer(iLong) > Print > > ' Print pPointer + bByte 'Type mismatch: wanted Pointer, got Byte instead > ' Print pPointer + iShort 'Type mismatch: wanted Pointer, got Short instead > Print pPointer + iInt > Print pPointer + iLong > Print > > Print pPointer + CInt(bByte) > > End > [/code] > > > -- > Lee > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From jussi.lahtinen at gmail.com Mon Mar 20 22:32:16 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 20 Mar 2023 23:32:16 +0200 Subject: [Gambas-user] Adding unsigned byte value to Pointer In-Reply-To: <647783511.22659.1679346224726.JavaMail.zimbra@westwoodsvcs.com> References: <1024945329.22409.1679330234913.JavaMail.zimbra@westwoodsvcs.com> <8cc4fd42-80bf-4e44-136e-648b13fd2956@gmail.com> <647783511.22659.1679346224726.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Brian is right, this should work. Pointer is just an unsigned integer with size of 32 or 64 bits depending on the system. Jussi On Mon, Mar 20, 2023 at 11:10?PM Brian G wrote: > I Hate to disagree, but an unsigned value added to a pointer is just as > valid as any other type of value added to a pointer. A pointer is > essentially an unsigned value in this context, if I can Add an integer, or > long why not any other integer value type... > > It is inconsistant to fail, as I can add a byte value or short value to a > long value..... so there is automatic type conversion taking place. in > those cases..., Why not then for byte and short values???? > > Of course as you point out I can force the type conversion, but why? > > The byte and short just have to be added to the automatic type conversion > to Pointer, as int and long already are. > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Mar 20, 2023, at 11:10 AM, T Lee Davidson > t.lee.davidson at gmail.com wrote: > > > On 3/20/23 12:37, Brian G wrote: > >> Should adding an unsigned byte value to a pointer work correctly. > >> > >> It generates and error, not pointer > >> All other integer types may be added to a pointer, and work correctly. > > > > It seems logical that attempting to add an unsigned value to a Pointer > would > > produce an error. However, Shorts are signed and > > also cannot be added to a Pointer. Keep in mind that Pointers, in > Gambas, are > > unique data types. > > > > [code] > > ' Gambas module file > > > > Public Sub Main() > > > > Dim pPointer As Pointer > > Dim bByte As Byte = 255 > > Dim iShort As Short = bByte > > Dim iInt As Integer = bByte > > Dim iLong As Long = bByte > > > > ' Print CPointer(bByte) 'Type mismatch: wanted Pointer, got Byte > instead > > ' Print CPointer(iShort) 'Type mismatch: wanted Pointer, got Short > instead > > Print CPointer(iInt) > > Print CPointer(iLong) > > Print > > > > ' Print pPointer + bByte 'Type mismatch: wanted Pointer, got Byte > instead > > ' Print pPointer + iShort 'Type mismatch: wanted Pointer, got Short > instead > > Print pPointer + iInt > > Print pPointer + iLong > > Print > > > > Print pPointer + CInt(bByte) > > > > End > > [/code] > > > > > > -- > > Lee > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Mon Mar 20 23:33:20 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 20 Mar 2023 23:33:20 +0100 Subject: [Gambas-user] Adding unsigned byte value to Pointer In-Reply-To: References: <1024945329.22409.1679330234913.JavaMail.zimbra@westwoodsvcs.com> <8cc4fd42-80bf-4e44-136e-648b13fd2956@gmail.com> <647783511.22659.1679346224726.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <5ae674b3-971f-514e-980f-92f5dfcbadea@gambas-basic.org> Le 20/03/2023 ? 22:32, Jussi Lahtinen a ?crit?: > Brian is right, this should work. Pointer is just an unsigned integer > with size of 32 or 64 bits depending on the system. > > Jussi > In commit 30c5e0af I added implicit conversion of Boolean, Byte and Short values into Pointer. Regards, -- Beno?t Minisini. From brian at westwoodsvcs.com Mon Mar 20 23:58:18 2023 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 20 Mar 2023 15:58:18 -0700 (PDT) Subject: [Gambas-user] Adding unsigned byte value to Pointer In-Reply-To: <5ae674b3-971f-514e-980f-92f5dfcbadea@gambas-basic.org> References: <1024945329.22409.1679330234913.JavaMail.zimbra@westwoodsvcs.com> <8cc4fd42-80bf-4e44-136e-648b13fd2956@gmail.com> <647783511.22659.1679346224726.JavaMail.zimbra@westwoodsvcs.com> <5ae674b3-971f-514e-980f-92f5dfcbadea@gambas-basic.org> Message-ID: <71982406.22700.1679353098390.JavaMail.zimbra@westwoodsvcs.com> Thank you Beno?t. Much Appreciated! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 20, 2023, at 3:33 PM, Benoit Minisini benoit.minisini at gambas-basic.org wrote: > Le 20/03/2023 ? 22:32, Jussi Lahtinen a ?crit?: >> Brian is right, this should work. Pointer is just an unsigned integer >> with size of 32 or 64 bits depending on the system. >> >> Jussi >> > > In commit 30c5e0af I added implicit conversion of Boolean, Byte and > Short values into Pointer. > > Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Tue Mar 21 19:44:25 2023 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 21 Mar 2023 11:44:25 -0700 (PDT) Subject: [Gambas-user] Way to tell if an object is a struct Message-ID: <796736239.22833.1679424265345.JavaMail.zimbra@westwoodsvcs.com> Is there some way to tell if an object or object class represents a struct class? Any Ideas "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Mar 21 20:29:55 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 21 Mar 2023 19:29:55 +0000 Subject: [Gambas-user] where does the TextEditor turn "?" to "Print" ? In-Reply-To: References: Message-ID: On Mon, 20 Mar 2023 at 21:06, Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 20/03/2023 ? 19:54, Bruce Steers a ?crit : > > Was going to see if i could get my gambas to replace "??" for "Debug" > > like it replaces "?" for "Print" > > > > cant find where it does it, looked all round gb.form.editor and > > gb.eval.highlight > > > > And clues anyone? > > > > Cheers > > BruceS > > > > The TextEditor does nothing. > > It's the 'gb.eval.highlight' component that has support for highlighting > that both highlights and rewrites the highlighted text. > > The Gambas highlighting is done in the 'gb.eval' component. > > The transformation of "?" into "PRINT" is done in 'eval_read.c' at line > 400 (in 'master'). > > It's done after the parser has done its job, so it's just a matter of > replacing the token for question mark by the token of PRINT, only if we > want to rewrite the code ('EVAL->analyze' is 'TRUE' then). > > Regards, > > -- > Beno?t Minisini. > aaah thank you Ben So after some investigating i added this after the existing code to replace ? for Print in eval_read.c ... if (EVAL->analyze && op == RS_AT) op = RS_DEBUG; Made sense to use AT @ as usually i want to use Debug not Print because i want to know there the message is "at". (plus I had no idea how to make it check for double Questionmarks ??) works a treat converting @ to Debug :) Thanks again :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Mar 21 20:57:10 2023 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 21 Mar 2023 12:57:10 -0700 (PDT) Subject: [Gambas-user] Issues when writing and reading structures Message-ID: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> When a structure containing a string is written the first byte is the length But when it is read back as the structure it does not use the length byte but does include the len byte into the string field. I am not sure if this is correct or not. p.s. is it possible to have varptr return the memory address of the structure as you can assign a pointer to a structure object. Is this correct or is it a bug, not sure? But I would like to send structured data to another client and recieve it on that side the follow script demonstrates: #!/usr/bin/env gbs3 ' Gambas Script File Created 03/21/2023 12:39:45 Public Struct elevation a As Short b As Long c As Float d As Short e As String End Struct Public Sub main() Dim a As Elevation Dim aa As Elevation Dim aaa As Elevation Dim p As Pointer = Alloc(10000) Dim pp As Pointer = Alloc(10000) Dim ppp as pointer = Alloc(10000) a = ppp a.a = 45 a.b = 98765 a.c = 67.456 a.d = 1 a.e = "hello a.........." aa = pp aa.a = 45 aa.b = 98765 aa.c = 67.465 aa.d = 1 aa.e = "hello aa........" Dim f As File f = Memory p For Write Write #f, a As Variant Close #f f = Memory p For Read aaa = Read #f As Elevation Print "Original :"; For i As Integer = 0 To 50 Print Hex(Byte@(ppp + i), 2);; Next Print print "Write :"; For i As Integer = 0 To 50 Print Hex(Byte@(p + i), 2);; Next Print Print "Check Block :"; For i As Integer = 0 To 50 Print Hex(Byte@(pp + i), 2);; Next Print Print "a :";a.a, a.b, a.c, a.d, a.e Print "aaa :";aaa.a, aaa.b, aaa.c, aaa.d, aaa.e Print "aa :";aa.a, aa.b, aa.c, aa.d, aa.e Free(p) Free(pp) Quit 0 Catch error "Script Error >";;error.text & "\n" & error.where end "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Mar 21 22:00:08 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 21 Mar 2023 21:00:08 +0000 Subject: [Gambas-user] where does the TextEditor turn "?" to "Print" ? In-Reply-To: References: Message-ID: > > On Mon, 20 Mar 2023 at 21:06, Benoit Minisini < > benoit.minisini at gambas-basic.org> wrote: > >> >> The TextEditor does nothing. >> >> It's the 'gb.eval.highlight' component that has support for highlighting >> that both highlights and rewrites the highlighted text. >> >> The Gambas highlighting is done in the 'gb.eval' component. >> >> The transformation of "?" into "PRINT" is done in 'eval_read.c' at line >> 400 (in 'master'). >> >> It's done after the parser has done its job, so it's just a matter of >> replacing the token for question mark by the token of PRINT, only if we >> want to rewrite the code ('EVAL->analyze' is 'TRUE' then). >> >> Regards, >> >> -- >> Beno?t Minisini. >> > > aaah thank you Ben > > So after some investigating i added this after the existing code to > replace ? for Print in eval_read.c ... > > if (EVAL->analyze && op == RS_AT) > op = RS_DEBUG; > Made sense to use AT @ as usually i want to use Debug not Print because i > want to know there the message is "at". > (plus I had no idea how to make it check for double Questionmarks ??) > > works a treat converting @ to Debug :) > Sorry i got a couple of questions. is it safe using @ ? I know various chars like # and & couldn't be used. i have a funny feeling @ is used for something, iirc pointers so should not be used this way. what would be safe chars to use? Tilde maybe? but i could not find the RS_CODE for ~ tilde Semicolon looks unused Thanks in advance BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Mar 21 23:01:33 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 21 Mar 2023 18:01:33 -0400 Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> On 3/21/23 15:57, Brian G wrote: > When a structure containing a string is written the first byte is the length > But when it is read back as the structure it does not use the length byte but does include the len byte? into the string field. > I am not sure if this is correct or not. > > p.s. is it possible to have varptr return the memory address of the structure as you can assign a pointer to a structure object. > > Is this correct or is it a bug, not sure? But I would like to send structured data to another client and recieve it on that side > the follow script demonstrates: > [code snipped] > > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G When I try to run that code in the IDE, I get a SegFault at: Write #f, a As Variant -- Lee From Karl.Reinl at Fen-Net.de Tue Mar 21 23:11:27 2023 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Tue, 21 Mar 2023 23:11:27 +0100 Subject: [Gambas-user] chat.openai.com and gambas3 Message-ID: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> I asked -> Q: fill an array with the files of a directory with gambas3 This is the answer from chat.openai.com -> A: To fill an array with the files of a directory in Gambas 3, you can use the "Dir()" function. This function returns a list of all files and directories in the specified path. Here is an example code that fills an array with the files in a directory: [code] vbnet Public Sub FillArrayWithFiles(directory As String) Dim files[] As String Dim filename As String files = Dir(directory & "/*") For Each filename In files If Not Is_Directory(directory & "/" & filename) Then ' add filename to array Array.Append(files, filename) Endif Next End [/code] This code creates an empty array "files[]" and fills it with all file names in the specified directory. If the path does not exist or is not a directory, an empty array is returned. Note: Note that "Is_Directory()" is another Gambas function that checks whether the path is a directory. You can avoid using this function by using "Dir()" with the "DIRECTORY" option, which only returns directories. << ChatGPT Mar 14 Version. Free Research Preview. Our goal is to make AI systems more natural and safe to interact with. Your feedback will help us improve. >> Not usable! -- Amicalement Charlie From bsteers4 at gmail.com Tue Mar 21 23:56:40 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 21 Mar 2023 22:56:40 +0000 Subject: [Gambas-user] chat.openai.com and gambas3 In-Reply-To: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> References: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> Message-ID: On Tue, 21 Mar 2023, 22:12 Charlie Reinl, wrote: > I asked -> Q: > > fill an array with the files of a directory with gambas3 > > This is the answer from chat.openai.com -> A: > > To fill an array with the files of a directory in Gambas 3, you can use > the "Dir()" function. This function returns a list of all files and > directories in the specified path. > > Here is an example code that fills an array with the files in a > directory: > > [code] > vbnet > > Public Sub FillArrayWithFiles(directory As String) > Dim files[] As String > Dim filename As String > > files = Dir(directory & "/*") > > For Each filename In files > If Not Is_Directory(directory & "/" & filename) Then > ' add filename to array > Array.Append(files, filename) > Endif > Next > End > [/code] > > This code creates an empty array "files[]" and fills it with all file > names in the specified directory. If the path does not exist or is not > a directory, an empty array is returned. > > Note: Note that "Is_Directory()" is another Gambas function that checks > whether the path is a directory. You can avoid using this function by > using "Dir()" with the "DIRECTORY" option, which only returns > directories. > << > ChatGPT Mar 14 Version. Free Research Preview. Our goal is to make AI > systems more natural and safe to interact with. Your feedback will help > us improve. > >> > > Not usable! > -- > Amicalement > Charlie. So teach it better. That's how it works. ? BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Mar 22 00:01:32 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 21 Mar 2023 23:01:32 +0000 Subject: [Gambas-user] chat.openai.com and gambas3 In-Reply-To: References: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> Message-ID: On Tue, 21 Mar 2023, 22:56 Bruce Steers, wrote: > > > > On Tue, 21 Mar 2023, 22:12 Charlie Reinl, wrote: > >> I asked -> Q: >> >> fill an array with the files of a directory with gambas3 >> >> This is the answer from chat.openai.com -> A: >> >> To fill an array with the files of a directory in Gambas 3, you can use >> the "Dir()" function. This function returns a list of all files and >> directories in the specified path. >> >> Here is an example code that fills an array with the files in a >> directory: >> >> [code] >> vbnet >> >> Public Sub FillArrayWithFiles(directory As String) >> Dim files[] As String >> Dim filename As String >> >> files = Dir(directory & "/*") >> >> For Each filename In files >> If Not Is_Directory(directory & "/" & filename) Then >> ' add filename to array >> Array.Append(files, filename) >> Endif >> Next >> End >> [/code] >> >> This code creates an empty array "files[]" and fills it with all file >> names in the specified directory. If the path does not exist or is not >> a directory, an empty array is returned. >> >> Note: Note that "Is_Directory()" is another Gambas function that checks >> whether the path is a directory. You can avoid using this function by >> using "Dir()" with the "DIRECTORY" option, which only returns >> directories. >> << >> ChatGPT Mar 14 Version. Free Research Preview. Our goal is to make AI >> systems more natural and safe to interact with. Your feedback will help >> us improve. >> >> >> >> Not usable! >> -- >> Amicalement >> Charlie. > > > So teach it better. > > That's how it works. > > ? > > BruceS > Actually don't. If that thing learns gambas better than me I'll have nothing to do around here or in the forum ? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Mar 22 00:10:06 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 21 Mar 2023 23:10:06 +0000 Subject: [Gambas-user] chat.openai.com and gambas3 In-Reply-To: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> References: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> Message-ID: On Tue, 21 Mar 2023, 22:12 Charlie Reinl, wrote: > I asked -> Q: > > fill an array with the files of a directory with gambas3 > > This is the answer from chat.openai.com -> A: > > To fill an array with the files of a directory in Gambas 3, you can use > the "Dir()" function. This function returns a list of all files and > directories in the specified path. > > Here is an example code that fills an array with the files in a > directory: > > [code] > vbnet > > Public Sub FillArrayWithFiles(directory As String) > Dim files[] As String > Dim filename As String > > files = Dir(directory & "/*") > > For Each filename In files > If Not Is_Directory(directory & "/" & filename) Then > ' add filename to array > Array.Append(files, filename) > Endif > Next > End > [/code] > > This code creates an empty array "files[]" and fills it with all file > names in the specified directory. If the path does not exist or is not > a directory, an empty array is returned. > > Note: Note that "Is_Directory()" is another Gambas function that checks > whether the path is a directory. You can avoid using this function by > using "Dir()" with the "DIRECTORY" option, which only returns > directories. > << > ChatGPT Mar 14 Version. Free Research Preview. Our goal is to make AI > systems more natural and safe to interact with. Your feedback will help > us improve. > >> > > Not usable! > -- > Amicalement > Charlie. > It only partly right. Yes a Dir() function and the read of the array is okay but. Should be IsDir() not Is_Directory() Also Dir takes gb.directory as it's third argument. The second being pattern. I think it's confused itself with a different language. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Mar 22 00:13:56 2023 From: adamnt42 at gmail.com (BB) Date: Wed, 22 Mar 2023 09:43:56 +1030 Subject: [Gambas-user] chat.openai.com and gambas3 In-Reply-To: References: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> Message-ID: <5e00d9ee-eba4-19af-a5b7-52d4b5253ede@gmail.com> On 22/3/23 9:40 am, Bruce Steers wrote: > > > On Tue, 21 Mar 2023, 22:12 Charlie Reinl, > wrote: > > I asked -> Q: > > fill an array with the files of a directory with gambas3 > > This is the answer from chat.openai.com -> A: > > To fill an array with the files of a directory in Gambas 3, you > can use > the "Dir()" function. This function returns a list of all files and > directories in the specified path. > > Here is an example code that fills an array with the files in a > directory: > > [code] > *vbnet* > > Public Sub FillArrayWithFiles(directory As String) > ? Dim files[] As String > ? Dim filename As String > > ? files = Dir(directory & "/*") > > ? For Each filename In files > ? ? If Not Is_Directory(directory & "/" & filename) Then > ? ? ? ' add filename to array > ? ? ? Array.Append(files, filename) > ? ? Endif > ? Next > End > [/code] > > This code creates an empty array "files[]" and fills it with all file > names in the specified directory. If the path does not exist or is not > a directory, an empty array is returned. > > Note: Note that "Is_Directory()" is another Gambas function that > checks > whether the path is a directory. You can avoid using this function by > using "Dir()" with the "DIRECTORY" option, which only returns > directories. > << > ChatGPT Mar 14 Version. Free Research Preview. Our goal is to make AI > systems more natural and safe to interact with. Your feedback will > help > us improve. > >> > > Not usable! > -- > Amicalement > Charlie. > > > It only partly right. > Yes a Dir() function and the read of the array is okay but. > > Should be IsDir() not Is_Directory() > Also Dir takes gb.directory as it's third argument. The second being > pattern. > > I think it's confused itself with a different language. > > Perhaps that first line in the code is a clue. ? b -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Wed Mar 22 01:18:17 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Tue, 21 Mar 2023 20:18:17 -0400 Subject: [Gambas-user] chat.openai.com and gambas3 In-Reply-To: <5e00d9ee-eba4-19af-a5b7-52d4b5253ede@gmail.com> References: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> <5e00d9ee-eba4-19af-a5b7-52d4b5253ede@gmail.com> Message-ID: <07a13e016362b3c294c701c4a058f654@cenpalab.cu> On 2023-03-21 19:13, BB wrote: > On 22/3/23 9:40 am, Bruce Steers wrote: >> >> >> I think it's confused itself with a different language. >> >> > Perhaps that first line in the code is a clue. ? > Was going to say the same thing, heh... Regards, Joe1962 From bsteers4 at gmail.com Wed Mar 22 03:01:42 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 22 Mar 2023 02:01:42 +0000 Subject: [Gambas-user] chat.openai.com and gambas3 In-Reply-To: <5e00d9ee-eba4-19af-a5b7-52d4b5253ede@gmail.com> References: <088d947e69155bd249f1ee00a946e4305427e452.camel@Fen-Net.de> <5e00d9ee-eba4-19af-a5b7-52d4b5253ede@gmail.com> Message-ID: On Tue, 21 Mar 2023 at 23:15, BB wrote: > > On 22/3/23 9:40 am, Bruce Steers wrote: > > > > On Tue, 21 Mar 2023, 22:12 Charlie Reinl, wrote: > >> I asked -> Q: >> >> fill an array with the files of a directory with gambas3 >> >> This is the answer from chat.openai.com -> A: >> >> To fill an array with the files of a directory in Gambas 3, you can use >> the "Dir()" function. This function returns a list of all files and >> directories in the specified path. >> >> Here is an example code that fills an array with the files in a >> directory: >> >> [code] >> *vbnet* >> >> Public Sub FillArrayWithFiles(directory As String) >> Dim files[] As String >> Dim filename As String >> >> files = Dir(directory & "/*") >> >> For Each filename In files >> If Not Is_Directory(directory & "/" & filename) Then >> ' add filename to array >> Array.Append(files, filename) >> Endif >> Next >> End >> [/code] >> >> This code creates an empty array "files[]" and fills it with all file >> names in the specified directory. If the path does not exist or is not >> a directory, an empty array is returned. >> >> Note: Note that "Is_Directory()" is another Gambas function that checks >> whether the path is a directory. You can avoid using this function by >> using "Dir()" with the "DIRECTORY" option, which only returns >> directories. >> << >> ChatGPT Mar 14 Version. Free Research Preview. Our goal is to make AI >> systems more natural and safe to interact with. Your feedback will help >> us improve. >> >> >> >> Not usable! >> -- >> Amicalement >> Charlie. >> > > It only partly right. > Yes a Dir() function and the read of the array is okay but. > > Should be IsDir() not Is_Directory() > Also Dir takes gb.directory as it's third argument. The second being > pattern. > > I think it's confused itself with a different language. > >> > Perhaps that first line in the code is a clue. ? > > b > haha , aah I didn't see that. well that explains it then i guess. vb ,,, eeew, Now i feel i need to shower or something :-\ ;) -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Mar 22 05:35:47 2023 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Wed, 22 Mar 2023 07:35:47 +0300 Subject: [Gambas-user] =?utf-8?q?Issues_when_writing_and_reading_structur?= =?utf-8?q?es?= In-Reply-To: <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> Message-ID: <1679459746.985562664@f8.my.com> Are you using 3.18.1 -- Thanks Brian G Tuesday, 21 March 2023, 03:02PM -07:00 from T Lee Davidson t.lee.davidson at gmail.com : >On 3/21/23 15:57, Brian G wrote: > When a structure containing a string is written the first byte is the length > But when it is read back as the structure it does not use the length byte but does include the len byte? into the string field. > I am not sure if this is correct or not. > > p.s. is it possible to have varptr return the memory address of the structure as you can assign a pointer to a structure object. > > Is this correct or is it a bug, not sure? But I would like to send structured data to another client and recieve it on that side > the follow script demonstrates: > >[code snipped] > > > "Failure is the key to success; > ?each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > >When I try to run that code in the IDE, I get a SegFault at: >???Write #f, a As Variant > > >-- >Lee > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Karl.Reinl at Fen-Net.de Wed Mar 22 08:20:39 2023 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Wed, 22 Mar 2023 08:20:39 +0100 Subject: [Gambas-user] chat.openai.com and vbNet Message-ID: I asked -> Q: fill an array with the files of a directory with vbNet This is the answer from chat.openai.com -> A: To fill an array with the files of a directory using VB.NET, you can use the Directory.GetFiles method, which returns an array of strings that contain the file names in the specified directory. Here's an example code snippet: [code] vbnet Dim directoryPath As String = "C:\Users\Username\Documents" Dim filesArray As String() = Directory.GetFiles(directoryPath) [/code] In this example, the directoryPath variable contains the path of the directory you want to get the files from. The GetFiles method is called with the directoryPath parameter and returns an array of strings that contains the file names. You can loop through the filesArray to perform operations on each file: [code] vbnet For Each file As String In filesArray ' do something with the file Next [/code] Note that Directory.GetFiles only returns the names of files in the specified directory, not subdirectories. If you want to get files from subdirectories as well, you can use the Directory.GetFiles method overload that takes a search pattern and a SearchOption parameter. For example: [code] vbnet Dim filesArray As String() = Directory.GetFiles(directoryPath, "*.*", SearchOption.AllDirectories) [/code] This code will return an array of strings that contains the names of all files in the specified directory and its subdirectories. ChatGPT Mar 14 Version To see the difference Iasked to do the same but in vbNet As I do not know vbNet syntax (hope that is not rubbish too) -- Amicalement Charlie From bsteers4 at gmail.com Wed Mar 22 15:17:08 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 22 Mar 2023 14:17:08 +0000 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: <2a76655f-9391-bd09-acf6-00b37d62e4bb@gambas-basic.org> References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> <20230319111623.M97365@455.co.il> <8f117217-961e-61e1-201b-4f86338594fc@gambas-basic.org> <2a76655f-9391-bd09-acf6-00b37d62e4bb@gambas-basic.org> Message-ID: On Sun, 19 Mar 2023 at 19:45, Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 19/03/2023 ? 20:36, Benoit Minisini a ?crit : > > > > Mmm... All controls ignore drops by default, except editing controls > > like TextBox and TextArea, both in Qt and GTK+ by the way. And I ignored > > that fact, hence the incoherent behaviour you noticed. > > > > I will make the Drop property True by default for TextBox and TextArea > > and see if it raises some other problems. > > > > Regards, > > > > Done in last commit. Let's see now what happens, if some things break... > I wouldn't say broken but i am now getting this warning if I have set Drop to False on a TextArea.. (_aa:947938): Gtk-WARNING **: 14:10:53.667: Can't set a target list on a widget until you've called gtk_drag_dest_set() to make the widget into a drag destination Only with TextArea , TextBox does not give the warning. Happens if Drop is set to false via code or by the IDE designer. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Mar 22 15:22:56 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 22 Mar 2023 14:22:56 +0000 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> <20230319111623.M97365@455.co.il> <8f117217-961e-61e1-201b-4f86338594fc@gambas-basic.org> <2a76655f-9391-bd09-acf6-00b37d62e4bb@gambas-basic.org> Message-ID: On Wed, 22 Mar 2023 at 14:17, Bruce Steers wrote: > > > On Sun, 19 Mar 2023 at 19:45, Benoit Minisini < > benoit.minisini at gambas-basic.org> wrote: > >> Le 19/03/2023 ? 20:36, Benoit Minisini a ?crit : >> > >> > Mmm... All controls ignore drops by default, except editing controls >> > like TextBox and TextArea, both in Qt and GTK+ by the way. And I >> ignored >> > that fact, hence the incoherent behaviour you noticed. >> > >> > I will make the Drop property True by default for TextBox and TextArea >> > and see if it raises some other problems. >> > >> > Regards, >> > >> >> Done in last commit. Let's see now what happens, if some things break... >> > > I wouldn't say broken but i am now getting this warning if I have set Drop > to False on a TextArea.. > > (_aa:947938): Gtk-WARNING **: 14:10:53.667: Can't set a target list on a > widget until you've called gtk_drag_dest_set() to make the widget into a > drag destination > > Only with TextArea , TextBox does not give the warning. > Happens if Drop is set to false via code or by the IDE designer. > ps, it is otherwise working as expected , drop is not working if set to false. pps, I get the warning message when closing the application not when it runs or during use. just when exiting. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Wed Mar 22 15:31:40 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 22 Mar 2023 14:31:40 +0000 Subject: [Gambas-user] Drag and drop on GTK+2 In-Reply-To: References: <46f9e1d4-7594-8957-8de1-ce34be20b5eb@gambas-basic.org> <20230319111623.M97365@455.co.il> <8f117217-961e-61e1-201b-4f86338594fc@gambas-basic.org> <2a76655f-9391-bd09-acf6-00b37d62e4bb@gambas-basic.org> Message-ID: On Wed, 22 Mar 2023 at 14:22, Bruce Steers wrote: > > > On Wed, 22 Mar 2023 at 14:17, Bruce Steers wrote: > >> >> >> On Sun, 19 Mar 2023 at 19:45, Benoit Minisini < >> benoit.minisini at gambas-basic.org> wrote: >> >>> Le 19/03/2023 ? 20:36, Benoit Minisini a ?crit : >>> > >>> > Mmm... All controls ignore drops by default, except editing controls >>> > like TextBox and TextArea, both in Qt and GTK+ by the way. And I >>> ignored >>> > that fact, hence the incoherent behaviour you noticed. >>> > >>> > I will make the Drop property True by default for TextBox and TextArea >>> > and see if it raises some other problems. >>> > >>> > Regards, >>> > >>> >>> Done in last commit. Let's see now what happens, if some things break... >>> >> >> I wouldn't say broken but i am now getting this warning if I have set >> Drop to False on a TextArea.. >> >> (_aa:947938): Gtk-WARNING **: 14:10:53.667: Can't set a target list on a >> widget until you've called gtk_drag_dest_set() to make the widget into a >> drag destination >> >> Only with TextArea , TextBox does not give the warning. >> Happens if Drop is set to false via code or by the IDE designer. >> > > ps, it is otherwise working as expected , drop is not working if set to > false. > pps, I get the warning message when closing the application not when it > runs or during use. just when exiting. > One slight bug.. Setting Drop to true of false in the IDE "DOES" toggle the ability to Drop on the object but... if you use the following code... Print TextBox1.Drop It prints False regardless of what it is set to until you explicitly set Drop = True via Code. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Mar 22 16:01:38 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 22 Mar 2023 08:01:38 -0700 (PDT) Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: <1679459746.985562664@f8.my.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> <1679459746.985562664@f8.my.com> Message-ID: <1083385618.23125.1679497298357.JavaMail.zimbra@westwoodsvcs.com> Attached is clip of running in ide "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 21, 2023, at 9:35 PM, Brian G wrote: > Are you using 3.18.1 > -- > Thanks > Brian G > Tuesday, 21 March 2023, 03:02PM -07:00 from T Lee Davidson [ > mailto:t.lee.davidson at gmail.com | t.lee.davidson at gmail.com ] : >> On 3/21/23 15:57, Brian G wrote: >> > When a structure containing a string is written the first byte is the length >>> But when it is read back as the structure it does not use the length byte but >> > does include the len byte into the string field. >> > I am not sure if this is correct or not. >>> p.s. is it possible to have varptr return the memory address of the structure as >> > you can assign a pointer to a structure object. >>> Is this correct or is it a bug, not sure? But I would like to send structured >> > data to another client and recieve it on that side >> > the follow script demonstrates: >> [code snipped] >> > "Failure is the key to success; >> > each mistake teaches us something" .. Morihei Ueshiba >> > Brian G >> When I try to run that code in the IDE, I get a SegFault at: >> Write #f, a As Variant >> -- >> Lee >> ----[ [ 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: structfun-2023-03-22_07.58.44.mp4 Type: video/mp4 Size: 285734 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed Mar 22 16:41:38 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 22 Mar 2023 11:41:38 -0400 Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: <1679459746.985562664@f8.my.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> <1679459746.985562664@f8.my.com> Message-ID: <3a60c44c-6cd2-6ddb-be09-c6cb4dd949d0@gmail.com> On 3/22/23 00:35, Brian G wrote: > Are you using 3.18.1 > > -- > Thanks > Brian G > > Tuesday, 21 March 2023, 03:02PM -07:00 from T Lee Davidson t.lee.davidson at gmail.com : > [snip] > > When I try to run that code in the IDE, I get a SegFault at: > ???Write #f, a As Variant Yes, I am using v3.18.1. Sorry for neglecting to include that info. I also get a SegFault trying to run it as a script: "gbs3 Error : Script had Segmentation fault, Code=11" Perhaps a segment of my RAM is faulty. -- Lee From brian at westwoodsvcs.com Wed Mar 22 16:47:38 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 22 Mar 2023 08:47:38 -0700 (PDT) Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: <3a60c44c-6cd2-6ddb-be09-c6cb4dd949d0@gmail.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> <1679459746.985562664@f8.my.com> <3a60c44c-6cd2-6ddb-be09-c6cb4dd949d0@gmail.com> Message-ID: <1336142295.23260.1679500058844.JavaMail.zimbra@westwoodsvcs.com> Which os are you running it on? "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 22, 2023, at 8:41 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 3/22/23 00:35, Brian G wrote: >> Are you using 3.18.1 >> >> -- >> Thanks >> Brian G >> >> Tuesday, 21 March 2023, 03:02PM -07:00 from T Lee Davidson >> t.lee.davidson at gmail.com : >> > [snip] >> >> When I try to run that code in the IDE, I get a SegFault at: >> ???Write #f, a As Variant > > Yes, I am using v3.18.1. Sorry for neglecting to include that info. I also get a > SegFault trying to run it as a script: > "gbs3 Error : Script had Segmentation fault, Code=11" > > Perhaps a segment of my RAM is faulty. > > > -- > Lee > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Wed Mar 22 17:53:58 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 22 Mar 2023 09:53:58 -0700 (PDT) Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: <1336142295.23260.1679500058844.JavaMail.zimbra@westwoodsvcs.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> <1679459746.985562664@f8.my.com> <3a60c44c-6cd2-6ddb-be09-c6cb4dd949d0@gmail.com> <1336142295.23260.1679500058844.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1158074459.23440.1679504038587.JavaMail.zimbra@westwoodsvcs.com> I am getting the same segfault at the same place when running on debian 11 with gambas 3.18. I am rebuilding gambas on the platfrom now to see if latest has the same issue. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 22, 2023, at 8:47 AM, Brian G brian at westwoodsvcs.com wrote: > Which os are you running it on? > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Mar 22, 2023, at 8:41 AM, T Lee Davidson t.lee.davidson at gmail.com > wrote: > >> On 3/22/23 00:35, Brian G wrote: >>> Are you using 3.18.1 >>> >>> -- >>> Thanks >>> Brian G >>> >>> Tuesday, 21 March 2023, 03:02PM -07:00 from T Lee Davidson >>> t.lee.davidson at gmail.com : >>> >> [snip] >>> >>> When I try to run that code in the IDE, I get a SegFault at: >>> ???Write #f, a As Variant >> >> Yes, I am using v3.18.1. Sorry for neglecting to include that info. I also get a >> SegFault trying to run it as a script: >> "gbs3 Error : Script had Segmentation fault, Code=11" >> >> Perhaps a segment of my RAM is faulty. >> >> >> -- >> Lee >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Wed Mar 22 18:26:17 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 22 Mar 2023 10:26:17 -0700 (PDT) Subject: [Gambas-user] I think this page needs updated on wiki Message-ID: <2116133885.23450.1679505977883.JavaMail.zimbra@westwoodsvcs.com> How To Open, Debug & Compile The IDE The Gambas IDE is written in Gambas. It comes with the Gambas source .tar.bz2 file. * Download Gambas, e.g. Version from [ http://gambas.sourceforge.net/ | http://gambas.sourceforge.net/ ] * Install and compile it according to "Compiling Gambas" page on same server. * Run Gambas * Assume you have installed it in ~/gambas2-1.9.28 . Open Project ~/gambas2-1.9.28/apps/src/gambas2 . * Press the start [ https://gambaswiki.org/wiki/comp/gb.qt4/button | Button ] * You now see the Gambas IDE running in Gambas. You can open your project ... * Close it * Modify something , the background property of one of the forms. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Mar 22 18:52:12 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 22 Mar 2023 13:52:12 -0400 Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: <1336142295.23260.1679500058844.JavaMail.zimbra@westwoodsvcs.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> <1679459746.985562664@f8.my.com> <3a60c44c-6cd2-6ddb-be09-c6cb4dd949d0@gmail.com> <1336142295.23260.1679500058844.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 3/22/23 11:47, Brian G wrote: > Which os are you running it on? > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G [System] Gambas=3.18.1 OperatingSystem=Linux Distribution=openSUSE Leap 15.4 Kernel=5.14.21-150400.24.49-default Architecture=x86_64 Cores=6 Memory=15921M Language=en_US.UTF-8 Desktop=KDE -- Lee From brian at westwoodsvcs.com Wed Mar 22 19:10:44 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 22 Mar 2023 11:10:44 -0700 (PDT) Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> <1679459746.985562664@f8.my.com> <3a60c44c-6cd2-6ddb-be09-c6cb4dd949d0@gmail.com> <1336142295.23260.1679500058844.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <79762255.23463.1679508644275.JavaMail.zimbra@westwoodsvcs.com> I can confirm that it is issue on Debian even with latest version of gambas built on the platform Will rebuild and test with OpenSUSE now "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Mar 22, 2023, at 10:52 AM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 3/22/23 11:47, Brian G wrote: >> Which os are you running it on? >> >> "Failure is the key to success; >> each mistake teaches us something" .. Morihei Ueshiba >> Brian G > > [System] > Gambas=3.18.1 > OperatingSystem=Linux > Distribution=openSUSE Leap 15.4 > Kernel=5.14.21-150400.24.49-default > Architecture=x86_64 > Cores=6 > Memory=15921M > Language=en_US.UTF-8 > Desktop=KDE > > > -- > Lee > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From bsteers4 at gmail.com Wed Mar 22 19:31:18 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 22 Mar 2023 18:31:18 +0000 Subject: [Gambas-user] I think this page needs updated on wiki In-Reply-To: <2116133885.23450.1679505977883.JavaMail.zimbra@westwoodsvcs.com> References: <2116133885.23450.1679505977883.JavaMail.zimbra@westwoodsvcs.com> Message-ID: You're absolutely right .. wow gambas2 , i remember those days ,, I had more hair, etc ;) I have just edited it. How To Open, Debug & Compile The IDE The Gambas IDE is written in Gambas. So the IDE source project can be loaded into the IDE for editing. - Be sure you already have Gambas IDE installed. - Download a Gambas source code version from gitlab... Stable Version https://gitlab.com/gambas/gambas/-/archive/stable/gambas-stable.zip Development Version https://gitlab.com/gambas/gambas/-/archive/master/gambas-master.zip - Run your already installed Gambas IDE. - Lets assume you have un-archived the source into a folder called ~/gambas-source. so Open Project ~/gambas-source/app/src/gambas3 - Now you have the gambas IDE project loaded in the gambas IDE. - Press the Start Button - You now see another Gambas IDE is running through the existing Gambas. You can open projects as normal ... - Close the running projects. - Modify something in the IDE source code. (Maybe add some debugging messages) - Save the project and compile the exe using the "make executable" option. *~/gambas-source/app/src/gambas3/gambas3.gambas* will have been created and you can use this instead of the installed version. Or you can copy the new executable to /usr/bin/gambas3.gambas and overwrite the installed version. [[ warning Warning The IDE is a VERY complicated system and you can break your gambas by modifying code. Be aware of this if you report bugs, make sure the bugs exist in the non modified gambas before reporting them. ]] On Wed, 22 Mar 2023 at 17:33, Brian G wrote: > How To Open, Debug & Compile The IDE > > The Gambas IDE is written in Gambas. It comes with the Gambas source > .tar.bz2 file. > > - > > Download Gambas, e.g. Version from http://gambas.sourceforge.net/ > - > > Install and compile it according to "Compiling Gambas" page on same > server. > - > > Run Gambas > - > > Assume you have installed it in ~/gambas2-1.9.28 . > > Open Project ~/gambas2-1.9.28/apps/src/gambas2 . > > - > > Press the start Button > - > > You now see the Gambas IDE running in Gambas. You can open your > project ... > - > > Close it > - > > Modify something , the background property of one of the forms. > > > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Wed Mar 22 20:01:50 2023 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 22 Mar 2023 12:01:50 -0700 (PDT) Subject: [Gambas-user] Issues when writing and reading structures In-Reply-To: <79762255.23463.1679508644275.JavaMail.zimbra@westwoodsvcs.com> References: <115997257.22899.1679428630780.JavaMail.zimbra@westwoodsvcs.com> <46eb443a-95ba-12ac-0528-202e44c7ccc5@gmail.com> <1679459746.985562664@f8.my.com> <3a60c44c-6cd2-6ddb-be09-c6cb4dd949d0@gmail.com> <1336142295.23260.1679500058844.JavaMail.zimbra@westwoodsvcs.com> <79762255.23463.1679508644275.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <216375830.23489.1679511710262.JavaMail.zimbra@westwoodsvcs.com> I can confirn that on openSUSE 15.4 it also segfaults. In more detail on the platforms where it segfaults, it only happens when writing structure and only when writing the entire structure. Any single field within the structure works fine. Reading an entire structure also works fine. And the issue seems to be on debian and openSUSE not on Ubuntu/mint systems I will investigate a little farther "Failure is the key to success; ?each mistake teaches us something" ?.. Morihei Ueshiba Brian G ----- On Mar 22, 2023, at 11:10 AM, Brian G brian at westwoodsvcs.com wrote: > I can confirm that it is issue on Debian even with latest version of gambas > built on the platform > > Will rebuild and test with OpenSUSE now > > "Failure is the key to success; > each mistake teaches us something" ?.. Morihei Ueshiba > Brian G > > ----- On Mar 22, 2023, at 10:52 AM, T Lee Davidson t.lee.davidson at gmail.com > wrote: > >> On 3/22/23 11:47, Brian G wrote: >>> Which os are you running it on? >>> >>> "Failure is the key to success; >>> ? each mistake teaches us something" ?.. Morihei Ueshiba >>> Brian G >> >> [System] >> Gambas=3.18.1 >> OperatingSystem=Linux >> Distribution=openSUSE Leap 15.4 >> Kernel=5.14.21-150400.24.49-default >> Architecture=x86_64 >> Cores=6 >> Memory=15921M >> Language=en_US.UTF-8 >> Desktop=KDE >> >> >> -- >> Lee >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----