From shordi at gmail.com Sun Sep 2 19:20:57 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 2 Sep 2018 19:20:57 +0200 Subject: [Gambas-user] What exactly does the Clear method in a GridView? Message-ID: The help says that "Clear the grid static contents". What is this static content composed of? Rows and columns size? Cell content? position on screen? Best Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Sep 2 20:33:35 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 2 Sep 2018 20:33:35 +0200 Subject: [Gambas-user] What exactly does the Clear method in a GridView? In-Reply-To: References: Message-ID: Le 02/09/2018 ? 19:20, Jorge Carri?n a ?crit?: > The help says that "Clear the grid static contents". > What is this static content composed of? > Rows and columns size? Cell content? position on screen? > > Best Regards > Wait a minute, I'm looking into the source code... :-) -- Beno?t Minisini From g4mba5 at gmail.com Sun Sep 2 20:35:33 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 2 Sep 2018 20:35:33 +0200 Subject: [Gambas-user] What exactly does the Clear method in a GridView? In-Reply-To: References: Message-ID: <58c61269-d12c-81d4-88bc-bb14f4389b7d@gmail.com> Le 02/09/2018 ? 20:33, Beno?t Minisini a ?crit?: > Le 02/09/2018 ? 19:20, Jorge Carri?n a ?crit?: >> The help says that "Clear the grid static contents". >> What is this static content composed of? >> Rows and columns size? Cell content? position on screen? >> >> Best Regards >> > > Wait a minute, I'm looking into the source code... :-) > It clears the contents that you defined explicitly (not what you draw through the Data event) and that is stored inside the GridView control. And it sets the rows count to zero. But it keeps the columns. Regards, -- Beno?t Minisini From shordi at gmail.com Sun Sep 2 20:38:26 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 2 Sep 2018 20:38:26 +0200 Subject: [Gambas-user] What exactly does the Clear method in a GridView? In-Reply-To: <58c61269-d12c-81d4-88bc-bb14f4389b7d@gmail.com> References: <58c61269-d12c-81d4-88bc-bb14f4389b7d@gmail.com> Message-ID: Ok. That is what I want to know. Thank you very much for the answer Benoit. Best Regards El dom., 2 sept. 2018 a las 20:36, Beno?t Minisini () escribi?: > Le 02/09/2018 ? 20:33, Beno?t Minisini a ?crit : > > Le 02/09/2018 ? 19:20, Jorge Carri?n a ?crit : > >> The help says that "Clear the grid static contents". > >> What is this static content composed of? > >> Rows and columns size? Cell content? position on screen? > >> > >> Best Regards > >> > > > > Wait a minute, I'm looking into the source code... :-) > > > > It clears the contents that you defined explicitly (not what you draw > through the Data event) and that is stored inside the GridView control. > And it sets the rows count to zero. But it keeps the columns. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Sep 3 09:42:44 2018 From: adamnt42 at gmail.com (Me) Date: Mon, 3 Sep 2018 17:12:44 +0930 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory Message-ID: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> In the back of my mind there is a tiny hope that some time ago someone had a way to (approximately) work out whether.. "Will this string fit into the current control width?" Anyone out there with a good memory? tia b From bagonergi at gmail.com Mon Sep 3 11:28:26 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 3 Sep 2018 11:28:26 +0200 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> Message-ID: Il giorno lun 3 set 2018 alle ore 09:43 Me ha scritto: > In the back of my mind there is a tiny hope that some time ago someone had > a way to (approximately) work out whether.. > "Will this string fit into the current control width?" > > Anyone out there with a good memory? > > tia > b > Do you mean something like this? Private $sString As String = "Will this string fit into the current control width?" Public Sub Form_Open() TextBox1.Text = $sString End Public Sub Form_Resize() Dim iWBox As Integer iWBox = TextBox1.W With TextBox1 While .Font.TextWidth($sString) + 16 > iWBox .Font.Size -= 0.1 Wend End With End Regards Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Sep 3 11:35:54 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 3 Sep 2018 11:35:54 +0200 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> Message-ID: Le 03/09/2018 ? 09:42, Me a ?crit?: > In the back of my mind there is a tiny hope that some time ago someone had a way to (approximately) work out whether.. > "Will this string fit into the current control width?" > > Anyone out there with a good memory? > > tia > b > > You can't, because you can't know where a control draws its text, how it draws it, and if it has a border, inner padding, and so on. Some controls have an AutoResize property to deal with that for you. Otherwise you must use the Control.Font.TextWidth() method and add some approximate padding. Regards, -- Beno?t Minisini From bagonergi at gmail.com Mon Sep 3 12:52:36 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 3 Sep 2018 12:52:36 +0200 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> Message-ID: Il giorno lun 3 set 2018 alle ore 11:36 Beno?t Minisini ha scritto: > Le 03/09/2018 ? 09:42, Me a ?crit : > > In the back of my mind there is a tiny hope that some time ago someone > had a way to (approximately) work out whether.. > > "Will this string fit into the current control width?" > > > > Anyone out there with a good memory? > > > > tia > > b > > > > > > You can't, because you can't know where a control draws its text, how it > draws it, and if it has a border, inner padding, and so on. > > Some controls have an AutoResize property to deal with that for you. > > Otherwise you must use the Control.Font.TextWidth() method and add some > approximate padding. > > Regards, > > -- > Beno?t Minisini > > I meant that. See attached file Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TextBoxTest-0.0.1.tar.gz Type: application/gzip Size: 11584 bytes Desc: not available URL: From hans at gambas-buch.de Mon Sep 3 14:57:18 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 3 Sep 2018 14:57:18 +0200 Subject: [Gambas-user] Application.Name In-Reply-To: <0f9de4ea-a33b-09de-c04d-1b4d4128f01b@osnanet.de> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> <27d1d2612bdb76d45f747b35c9c3804e@tiscali.it> <0f9de4ea-a33b-09de-c04d-1b4d4128f01b@osnanet.de> Message-ID: <4d02b753-bbd5-582c-ceb1-472248ab9e78@gambas-buch.de> Hello. (1) I create a project with the project name ?GetAppName?. Code: Public Sub Form_Open() ? Label1.Text = "Application.Name = " & Application.Name End (2) Create executable file. The default name `GetAppName.gambas` is taken over with `OK`. Close IDE. (3) Starting the executable file `GetAppName.gambas` results in the following name for the application: (4) Reopen the project with the project name ?GetAppName? in the IDE. Create executable file. The default name `GetAppName.gambas` will be overwritten with ?get.app.name.gambas` and accepted with `OK`. Close IDE. (5) Starting the executable file ?get.app.name.gambas` results in the following name for the application: I had expected from the definition /Application.Name (gb)// //Static Property Read Name As String// /*/Return the application name, as defined in the IDE project properties dialog./* that the name of the application is `GetAppName` - as in the first picture, because I hadn't changed the name in the properties dialog in the IDE. I noticed this strange, unexpected result when I used the value of the Application.Name property to create a directory ($sDataDirPath = Desktop.DataDir &/"gambas3" &/ Application.Name &/"data") in my home directory to export a database file. With the default executable name, the program worked as expected. After renaming the executable by changing all uppercase letters to lowercase and restarting the program from the project directory, a new directory was created and there was an empty database file. Great! Is there an error in Gambas or is the error on my side? With kind regards Honsek -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: a1.png Type: image/png Size: 10608 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: a2.png Type: image/png Size: 10268 bytes Desc: not available URL: From g4mba5 at gmail.com Mon Sep 3 15:01:57 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 3 Sep 2018 15:01:57 +0200 Subject: [Gambas-user] Application.Name In-Reply-To: <4d02b753-bbd5-582c-ceb1-472248ab9e78@gambas-buch.de> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> <27d1d2612bdb76d45f747b35c9c3804e@tiscali.it> <0f9de4ea-a33b-09de-c04d-1b4d4128f01b@osnanet.de> <4d02b753-bbd5-582c-ceb1-472248ab9e78@gambas-buch.de> Message-ID: <961edcf4-27da-ac49-e081-3c520e803667@gmail.com> Hi, Can you please create a new thread instead of answering an unrelated one? Thanks. -- Beno?t Minisini From hans at gambas-buch.de Mon Sep 3 15:40:43 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 3 Sep 2018 15:40:43 +0200 Subject: [Gambas-user] Application.Name ? Message-ID: Hello. (1) I create a project with the project name ?GetAppName?. Code: Public Sub Form_Open() ? Label1.Text = "Application.Name = " & Application.Name End (2) Create executable file. The default name `GetAppName.gambas` is taken over with `OK`. Close IDE. (3) Starting the executable file `GetAppName.gambas` results in the following name for the application: (4) Reopen the project with the project name ?GetAppName? in the IDE. Create executable file. The default name `GetAppName.gambas` will be overwritten with ?get.app.name.gambas` and accepted with `OK`. Close IDE. (5) Starting the executable file ?get.app.name.gambas` results in the following name for the application: I had expected from the definition /Application.Name (gb)// //Static Property Read Name As String// /*/Return the application name, as defined in the IDE project properties dialog./* that the name of the application is `GetAppName` - as in the first picture, because I hadn't changed the name in the properties dialog in the IDE. I noticed this strange, unexpected result when I used the value of the Application.Name property to create a directory ($sDataDirPath = Desktop.DataDir &/"gambas3" &/ Application.Name &/"data") in my home directory to export a database file. With the default executable name, the program worked as expected. After renaming the executable by changing all uppercase letters to lowercase and restarting the program from the project directory, a new directory was created and there was an empty database file. Great! Is there an error in Gambas or is the error on my side? With kind regards Honsek ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: kmijolbicennhhgh.png Type: image/png Size: 8944 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fioanjdkoakmpahm.png Type: image/png Size: 8746 bytes Desc: not available URL: From mckaygerhard at gmail.com Mon Sep 3 15:42:11 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 3 Sep 2018 09:42:11 -0400 Subject: [Gambas-user] Application.Name In-Reply-To: <961edcf4-27da-ac49-e081-3c520e803667@gmail.com> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> <27d1d2612bdb76d45f747b35c9c3804e@tiscali.it> <0f9de4ea-a33b-09de-c04d-1b4d4128f01b@osnanet.de> <4d02b753-bbd5-582c-ceb1-472248ab9e78@gambas-buch.de> <961edcf4-27da-ac49-e081-3c520e803667@gmail.com> Message-ID: 2018-09-03 9:01 GMT-04:00 Beno?t Minisini : > Can you please create a new thread instead of answering an unrelated one? > umm i think that mail was a new thread, not and answering and HYans, i think your mail has some missing letters/words i canot understan those parts that said: "results in the following name for the application:" and then i not see any words for results until next step > Thanks. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Mon Sep 3 15:26:31 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Mon, 3 Sep 2018 09:26:31 -0400 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> Message-ID: AutoResize affects both the width and the height of a control. This makes it very useful when you are trying to fit a control to match an image.? However, this can mess up the vertical alignment of other controls such as textboxes.? Perhaps we could add an RestrictAutoResize property (restrict to Width, Height, Both, defaulting to both) On 2018-09-03 4:35 a.m., Beno?t Minisini wrote: > Le 03/09/2018 ? 09:42, Me a ?crit?: >> In the back of my mind there is a tiny hope that some time ago >> someone had a way to (approximately) work out whether.. >> "Will this string fit into the current control width?" >> >> Anyone out there with a good memory? >> >> tia >> b >> >> > > You can't, because you can't know where a control draws its text, how > it draws it, and if it has a border, inner padding, and so on. > > Some controls have an AutoResize property to deal with that for you. > > Otherwise you must use the Control.Font.TextWidth() method and add > some approximate padding. > > Regards, > From mckaygerhard at gmail.com Mon Sep 3 15:51:15 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 3 Sep 2018 09:51:15 -0400 Subject: [Gambas-user] Install Gambas from PPA In-Reply-To: References: Message-ID: if you try thatr will crap your debian 9 install dependences.. use property made repos: https://download.opensuse.org/repositories/home:/vegnuli:/gambas/Debian_9.0/ from venenux debian 9 ... cat > /etc/apt/sources.list.d/venenuxgambas.list << EOF deb https://download.opensuse.org/repositories/home:/vegnuli:/gambas/Debian_9.0/ / EOF apt-get update apt-get -y install gambas3 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-08-31 16:46 GMT-04:00 Gianluigi : > Hi Sebastian, > I wanted to ask you a technical question: Who has Debian, can to install > from PPA? For example, can we in Debian 9.5.0 Stretch to install from PPA > Gambas3 3.11.4? If yes, how? > I know that for example to compiling, the libraries to be installed in > Ubuntu 18.04 are not exactly the same as Debian 9.5.0, although for the > majority they are the same. > > Thank you very much > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 3 16:34:16 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 3 Sep 2018 16:34:16 +0200 Subject: [Gambas-user] Install Gambas from PPA In-Reply-To: References: Message-ID: Mine was just a curiosity, one day if I have time I will try to do it personally. If anyone is interested, here [0] I published a pdf file in Italian where it is explained step by step how to compile Gembas3 on Debian 9.5.0 amd64 (desktop Gnome) and Debian 9.5.0 i386 (desktop Xfce). With the translators on the network is accessible to everyone. *Note*: You must be registered to the forum to download it. Regards Gianluigi [0] http://www.gambas-it.org/smf/index.php?topic=6515.msg44259#msg44259 Il giorno lun 3 set 2018 alle ore 15:52 PICCORO McKAY Lenz < mckaygerhard at gmail.com> ha scritto: > if you try thatr will crap your debian 9 install dependences.. use > property made repos: > > > https://download.opensuse.org/repositories/home:/vegnuli:/gambas/Debian_9.0/ > > from venenux debian 9 ... > > cat > /etc/apt/sources.list.d/venenuxgambas.list << EOF > deb > https://download.opensuse.org/repositories/home:/vegnuli:/gambas/Debian_9.0/ > / > EOF > > apt-get update > apt-get -y install gambas3 > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-08-31 16:46 GMT-04:00 Gianluigi : > >> Hi Sebastian, >> I wanted to ask you a technical question: Who has Debian, can to install >> from PPA? For example, can we in Debian 9.5.0 Stretch to install from PPA >> Gambas3 3.11.4? If yes, how? >> I know that for example to compiling, the libraries to be installed in >> Ubuntu 18.04 are not exactly the same as Debian 9.5.0, although for the >> majority they are the same. >> >> Thank you very much >> Gianluigi >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Sep 3 17:00:18 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 4 Sep 2018 00:30:18 +0930 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> Message-ID: <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> Thanks guys, I'm going to muck around with the Control.Font.TextWidth() function for a while to see if I can get what I want, which is I want the control size, layout and font etc to stay the same. What I want to do is manipulate the displayed text from it's original length with ellipses on (possibly) both sides so the salient bit of the original text will fit in the control. We get (text) messages that have a certain "payload" in them, Sometimes they are pre and post appended with random amounts of garbage. The idea was to locate the payload bit, or perhaps I could put that better "the suspected payload bit" in front of the user and have them confirm we are looking at the correct bit or not. (The payload bit is entered by human operators so it's not guaranteed to conform to any standard presentation. Further, the messages come from a number of different sender systems, so we have no control over how much junk is added to the message.) The idea would be to find a chunk in the message that looks like it might be the payload and present that to the user for confirmation, sort of like this if I can make text into a picture: Suspected payload: [ ... Vendor 60234 Lot 34 withdrawn 10:34AEST. message sent 10:42:16 fr ... ] The bit we are after is "Vendor 60234 Lot 34 withdrawn" but it may have come in as "Vendor 60234 has withdrawn lot 34" or any other unimaginable way a person can type the same information, "We have withdrawn lot 34 on behalf of vendor J. Bloggs (60234)" etc etc. When things get busy we get lots of these messages per minute. 80% are automatically handled but we need to speed up the manual handling of the remainder. At the moment the user haas to scroll through the entire message to find the payload info and then reenter that info into a fomatted entry form. This is too slow. I'll get back later on this. thanks bruce From adamnt42 at gmail.com Mon Sep 3 17:14:23 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 4 Sep 2018 00:44:23 +0930 Subject: [Gambas-user] Application.Name ? In-Reply-To: References: Message-ID: <20180904004423.7abe6526cf755b93d40c6773@gmail.com> On Mon, 3 Sep 2018 15:40:43 +0200 Hans Lehmann wrote: > Hello. > 8< etc > Is there an error in Gambas or is the error on my side? > Well Hans, I must admit that your query got me thinking and poking about inside executables etc, In short, what is wrong is the help text. Perhaps, instead of ... "Return the application name, as defined in the IDE project properties dialog." it should say... "Returns the name of the application being executed. This will be either the name of the executable if run outside the IDE or, if run from within the IDE, the name of the project directory as defined in the project creation dialog". The short reason is that Application, as the help says "gives information about the currently running application" that is the executed .gambas archive not the source project information. That "name" is stored nowhere that I can see, other than as the name of the exectable archive. So consider an installed version of the project, it will have no idea of what the original project name was. (By the way, being able to create executable archives with different names is quite handy on many occassions. Say I want a project that can run eiher as a stand alone executable or to be used as a library. Simple. create the standalone, say "MyProg.gambas", change the project type to Library and remake it as "MyLib.gambas". We have several other uses for the feature too.) hth -- b From g4mba5 at gmail.com Mon Sep 3 17:20:25 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 3 Sep 2018 17:20:25 +0200 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> Message-ID: <85f0d23b-70de-a7b4-e92c-899b7e222dc6@gmail.com> Le 03/09/2018 ? 17:00, Me a ?crit?: > Thanks guys, I'm going to muck around with the Control.Font.TextWidth() function for a while to see if I can get what I want, which is > > I want the control size, layout and font etc to stay the same. What I want to do is manipulate the displayed text from it's original length with ellipses on (possibly) > both sides so the salient bit of the original text will fit in the control. We get (text) messages that have a certain "payload" in them, Sometimes they are pre and > post appended with random amounts of garbage. The idea was to locate the payload bit, or perhaps I could put that better "the suspected payload bit" in front > of the user and have them confirm we are looking at the correct bit or not. (The payload bit is entered by human operators so it's not guaranteed to conform to > any standard presentation. Further, the messages come from a number of different sender systems, so we have no control over how much junk is added to the > message.) The idea would be to find a chunk in the message that looks like it might be the payload and present that to the user for confirmation, sort of like > this if I can make text into a picture: > > Suspected payload: [ ... Vendor 60234 Lot 34 withdrawn 10:34AEST. message sent 10:42:16 fr ... ] > > The bit we are after is "Vendor 60234 Lot 34 withdrawn" but it may have come in as "Vendor 60234 has withdrawn lot 34" or any other unimaginable way a person can type the same information, "We have withdrawn lot 34 on behalf of vendor J. Bloggs (60234)" etc etc. > > When things get busy we get lots of these messages per minute. 80% are automatically handled but we need to speed up the manual handling of the remainder. At the moment the user haas to scroll through the entire message to find the payload info and then reenter that info into a fomatted entry form. This is too slow. > > I'll get back later on this. > thanks > bruce > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > If you want to "ellipsize" a text, you can use Paint.TrimText() or Paint.TrimRichText() during a Paint. Regards, -- Beno?t Minisini From charlie at cogier.com Mon Sep 3 17:56:43 2018 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 3 Sep 2018 16:56:43 +0100 Subject: [Gambas-user] Install Gambas from PPA In-Reply-To: References: Message-ID: Hi Gianluigi, The internet says it is worth a go so try the following: - *sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3 * Charlie On 31/08/18 21:46, Gianluigi wrote: > Hi Sebastian, > I wanted to ask you a technical question: Who has Debian, can to > install from PPA? For example, can we in Debian 9.5.0 Stretch to > install from PPA Gambas3 3.11.4? If yes, how? > I know that for example to compiling, the libraries to be installed in > Ubuntu 18.04 are not exactly the same as Debian 9.5.0, although for > the majority they are the same. > > Thank you very much > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 3 19:31:39 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 3 Sep 2018 19:31:39 +0200 Subject: [Gambas-user] Install Gambas from PPA In-Reply-To: References: Message-ID: Hi Charlie, thank you, as soon as I can, I try it. Regards Gianluigi Il giorno lun 3 set 2018 alle ore 18:20 Charlie Ogier ha scritto: > Hi Gianluigi, > > The internet says it is worth a go so try the following: - > > *sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update > && sudo apt-get -y install gambas3 * > > Charlie > > On 31/08/18 21:46, Gianluigi wrote: > > Hi Sebastian, > I wanted to ask you a technical question: Who has Debian, can to install > from PPA? For example, can we in Debian 9.5.0 Stretch to install from PPA > Gambas3 3.11.4? If yes, how? > I know that for example to compiling, the libraries to be installed in > Ubuntu 18.04 are not exactly the same as Debian 9.5.0, although for the > majority they are the same. > > Thank you very much > Gianluigi > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Sep 4 01:33:18 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 4 Sep 2018 02:33:18 +0300 Subject: [Gambas-user] Application.Name In-Reply-To: <4d02b753-bbd5-582c-ceb1-472248ab9e78@gambas-buch.de> References: <5f1af88b-bd29-5221-2ee2-04cf17881220@osnanet.de> <20180827161224.GD3358@highrise.localdomain> <49d60c60b96d495314c1207bc93e0b7a@tiscali.it> <27d1d2612bdb76d45f747b35c9c3804e@tiscali.it> <0f9de4ea-a33b-09de-c04d-1b4d4128f01b@osnanet.de> <4d02b753-bbd5-582c-ceb1-472248ab9e78@gambas-buch.de> Message-ID: You might want to use Application.Title, but I agree that the documentation is misleading. There isn't editable application name property, because it comes from the directory name. Also the executable name is not in the properties dialog. Jussi On Mon, Sep 3, 2018 at 3:58 PM Hans Lehmann wrote: > Hello. > > (1) > I create a project with the project name ?GetAppName?. > > Code: > > Public Sub Form_Open() > Label1.Text = "Application.Name = " & Application.Name > End > > (2) > Create executable file. The default name `GetAppName.gambas` is taken over > with `OK`. > Close IDE. > > (3) > Starting the executable file `GetAppName.gambas` results in the following > name for the application: > > > > (4) > Reopen the project with the project name ?GetAppName? in the IDE. > Create executable file. The default name `GetAppName.gambas` will be > overwritten with ?get.app.name.gambas` and accepted with `OK`. > Close IDE. > > (5) > Starting the executable file ?get.app.name.gambas` results in the > following name for the application: > > > > I had expected from the definition > > *Application.Name (gb)* > *Static Property Read Name As String* > *Return the application name, as defined in the IDE project properties > dialog.* > > that the name of the application is `GetAppName` - as in the first > picture, because I hadn't changed the name in the properties dialog in the > IDE. > > I noticed this strange, unexpected result when I used the value of the > Application.Name property to create a directory ($sDataDirPath = > Desktop.DataDir &/"gambas3" &/ Application.Name &/"data") in my home > directory to export a database file. With the default executable name, the > program worked as expected. After renaming the executable by changing all > uppercase letters to lowercase and restarting the program from the project > directory, a new directory was created and there was an empty database > file. Great! > > Is there an error in Gambas or is the error on my side? > > With kind regards > > Honsek > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: a1.png Type: image/png Size: 10608 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: a2.png Type: image/png Size: 10268 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: a1.png Type: image/png Size: 10608 bytes Desc: not available URL: From g4mba5 at gmail.com Tue Sep 4 11:50:47 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 4 Sep 2018 11:50:47 +0200 Subject: [Gambas-user] Some quotes and rant Message-ID: Linux policy : "Never break the user space API!" GTK+3 policy: "Always try to break the API as much as possible at each minor version so that nobody can write a GTK+ program that behaves correctly during more than one month. And if you can implement a feature with two levels of indirection, do that with ten levels, to make external developers unable to understand how things work, and to avoid any possibility of having a fast GUI". -- Beno?t Minisini From adamnt42 at gmail.com Tue Sep 4 11:52:26 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 4 Sep 2018 19:22:26 +0930 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> Message-ID: <20180904192226.65b2e331908b86cb48b0f131@gmail.com> Well, 12 working hours* later I have found an approximate solution! 1. Get the Control.Font.TextWidth() 2. Divide that by the Len() giving a "magic" number - call it the average character width 3. Calculate a test value being ((Control.Width - Desktop.Scale) / $magic) being the number of average characters that might fit. 4. Subtract a safety margin from the test value (say 6 chars) 5. Truncate the text and add " ..." 6. Bingo! It fits! Seems to work so far for a dozen or so fonts and font sizes I've tried. I built a little calculator while I was working through this. A couple of screen shots are attached. *That 12 hours Included reading a lot of QT documentation! Talk about never use a sentence when a chapter will do. Thanks for all the input. b -- Me -------------- next part -------------- A non-text attachment was scrubbed... Name: controls 5_085.png Type: image/png Size: 48419 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: controls 5_086.png Type: image/png Size: 47644 bytes Desc: not available URL: From tercoide at hotmail.com Tue Sep 4 14:52:44 2018 From: tercoide at hotmail.com (Martin Cristia) Date: Tue, 4 Sep 2018 12:52:44 +0000 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Hi: It is possible to use a .so file located at Application.path instead of usr/lib/ ? How to set that up? -- Saludos Ing. Martin P Cristia From chrisml at deganius.de Tue Sep 4 15:37:06 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 4 Sep 2018 15:37:06 +0200 Subject: [Gambas-user] Some quotes and rant In-Reply-To: References: Message-ID: <3bb55e4b-d4d8-103e-82b3-88ba1b91458c@deganius.de> Am 04.09.2018 um 11:50 schrieb Beno?t Minisini: > Linux policy : "Never break the user space API!" > > GTK+3 policy: "Always try to break the API as much as possible at each > minor version so that nobody can write a GTK+ program that behaves > correctly during more than one month. And if you can implement a feature > with two levels of indirection, do that with ten levels, to make > external developers unable to understand how things work, and to avoid > any possibility of having a fast GUI". Great rant, very funny if it wasn't so disastrous. Is the GTK port of Gambas very important? At the beginning I tried GTK one time and then switched to QT. Never looked back. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Tue Sep 4 15:36:59 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 4 Sep 2018 15:36:59 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Certainly, I don't know how to do it because I don't know C, but here [0] is explained how to do it. Regards Gianluigi [0] http://gambaswiki.org/wiki/howto/extern [1] http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia ha scritto: > Hi: > > It is possible to use a .so file located at Application.path instead of > usr/lib/ ? > > How to set that up? > > -- > Saludos > > Ing. Martin P Cristia > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Sep 4 15:45:53 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 4 Sep 2018 15:45:53 +0200 Subject: [Gambas-user] Some quotes and rant In-Reply-To: <3bb55e4b-d4d8-103e-82b3-88ba1b91458c@deganius.de> References: <3bb55e4b-d4d8-103e-82b3-88ba1b91458c@deganius.de> Message-ID: Il giorno mar 4 set 2018 alle ore 15:38 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 04.09.2018 um 11:50 schrieb Beno?t Minisini: > > Linux policy : "Never break the user space API!" > > > > GTK+3 policy: "Always try to break the API as much as possible at each > > minor version so that nobody can write a GTK+ program that behaves > > correctly during more than one month. And if you can implement a feature > > with two levels of indirection, do that with ten levels, to make > > external developers unable to understand how things work, and to avoid > > any possibility of having a fast GUI". > > Great rant, very funny if it wasn't so disastrous. > > Is the GTK port of Gambas very important? At the beginning I tried GTK > one time and then switched to QT. Never looked back. > > :-) +1 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Sep 4 15:48:57 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 4 Sep 2018 15:48:57 +0200 Subject: [Gambas-user] Some quotes and rant In-Reply-To: <3bb55e4b-d4d8-103e-82b3-88ba1b91458c@deganius.de> References: <3bb55e4b-d4d8-103e-82b3-88ba1b91458c@deganius.de> Message-ID: Le 04/09/2018 ? 15:37, Christof Thalhofer a ?crit?: > Am 04.09.2018 um 11:50 schrieb Beno?t Minisini: >> Linux policy : "Never break the user space API!" >> >> GTK+3 policy: "Always try to break the API as much as possible at each >> minor version so that nobody can write a GTK+ program that behaves >> correctly during more than one month. And if you can implement a feature >> with two levels of indirection, do that with ten levels, to make >> external developers unable to understand how things work, and to avoid >> any possibility of having a fast GUI". > > Great rant, very funny if it wasn't so disastrous. > > Is the GTK port of Gambas very important? At the beginning I tried GTK > one time and then switched to QT. Never looked back. > > > Alles Gute > > Christof Thalhofer > I'm complaining because I just have spent hours to fix the gb.gtk3 component, mainly the hacks that allows controls to have any size. GTK+ developers have decided to change their drawing model. OK, fine. But instead on doing that in a major version (GTK+ 4 for example), they started to do that incrementally in GTK+3, breaking things at almost each minor versions. For example, the widget themes configuration files had to be rewritten between GTK+ 3.18 and GTK+ 3.20. And look at the size of that page: http://wiki.inkscape.org/wiki/index.php/GTK%2B_3_issues I don't say Gambas is perfect about backward-compatibility, but I hope I will keep being polite the day I meet a GTK+ developer... Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Tue Sep 4 17:52:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 4 Sep 2018 11:52:18 -0400 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: err no one of the links answer the question of Martin he ask for path not "how to implement" i research at the two links and the wiki, *and (apart of the very dense redaction without separations pauses or paragraphs) *there's no such related info about path loading of so external libraryes Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-04 9:36 GMT-04:00 Gianluigi : > Certainly, I don't know how to do it because I don't know C, but here [0] > is explained how to do it. > Regards > Gianluigi > [0] http://gambaswiki.org/wiki/howto/extern > [1] http://www.gambas-it.org/wiki/index.php?title=Guide_della_ > comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so > > Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < > tercoide at hotmail.com> ha scritto: > >> Hi: >> >> It is possible to use a .so file located at Application.path instead of >> usr/lib/ ? >> >> How to set that up? >> >> -- >> Saludos >> >> Ing. Martin P Cristia >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Sep 4 17:57:32 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 4 Sep 2018 11:57:32 -0400 Subject: [Gambas-user] Some quotes and rant In-Reply-To: References: <3bb55e4b-d4d8-103e-82b3-88ba1b91458c@deganius.de> Message-ID: Well, one way of doing business is to complicate things to cause dependency, although I don't know what the business would be behind complicating GTK+3, is it that developers are paid not to use the current GTK stuff? (a great way to put garbage in the GNU way of softwre freedom) Maybe it's time to have a version selector and keep two separate codes for GTK3 < 3.18 and > 3.20?, otherwise we'll break backwards compatibility, and it won't be possible to gradually compile it for wheeze/jessie and many embedded linux (using very recent versions severely impacts the performance of these small devices). Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-04 9:48 GMT-04:00 Beno?t Minisini : > Le 04/09/2018 ? 15:37, Christof Thalhofer a ?crit : > >> Am 04.09.2018 um 11:50 schrieb Beno?t Minisini: >> >>> Linux policy : "Never break the user space API!" >>> >>> GTK+3 policy: "Always try to break the API as much as possible at each >>> minor version so that nobody can write a GTK+ program that behaves >>> correctly during more than one month. And if you can implement a feature >>> with two levels of indirection, do that with ten levels, to make >>> external developers unable to understand how things work, and to avoid >>> any possibility of having a fast GUI". >>> >> >> Great rant, very funny if it wasn't so disastrous. >> >> Is the GTK port of Gambas very important? At the beginning I tried GTK >> one time and then switched to QT. Never looked back. >> >> >> Alles Gute >> >> Christof Thalhofer >> >> > I'm complaining because I just have spent hours to fix the gb.gtk3 > component, mainly the hacks that allows controls to have any size. > > GTK+ developers have decided to change their drawing model. > > OK, fine. > > But instead on doing that in a major version (GTK+ 4 for example), they > started to do that incrementally in GTK+3, breaking things at almost each > minor versions. > > For example, the widget themes configuration files had to be rewritten > between GTK+ 3.18 and GTK+ 3.20. > > And look at the size of that page: > > http://wiki.inkscape.org/wiki/index.php/GTK%2B_3_issues > > I don't say Gambas is perfect about backward-compatibility, but I hope I > will keep being polite the day I meet a GTK+ developer... > > Regards, > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Sep 4 18:47:55 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 4 Sep 2018 18:47:55 +0200 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: <20180904192226.65b2e331908b86cb48b0f131@gmail.com> References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> <20180904192226.65b2e331908b86cb48b0f131@gmail.com> Message-ID: well : http://gambaswiki.org/wiki/comp/gb.qt4/paint/trimrichtext Le mar. 4 sept. 2018 ? 11:53, Me a ?crit : > Well, 12 working hours* later I have found an approximate solution! > 1. Get the Control.Font.TextWidth() > 2. Divide that by the Len() giving a "magic" number - call it the > average character width > 3. Calculate a test value being ((Control.Width - Desktop.Scale) / $magic) > being the number of average characters that might fit. > 4. Subtract a safety margin from the test value (say 6 chars) > 5. Truncate the text and add " ..." > 6. Bingo! It fits! > > Seems to work so far for a dozen or so fonts and font sizes I've tried. I > built a little calculator while I was working through this. A > couple of screen shots are attached. > > *That 12 hours Included reading a lot of QT documentation! Talk about > never use a sentence when a chapter will do. > > Thanks for all the input. > b > -- > Me > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Sep 4 19:12:50 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 4 Sep 2018 19:12:50 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: It is actually explained. However if the question is "I can indicate the Data folder with Application.Path" the answer is as always *no*. Copy the library from Data to a real folder such as */tmp* as explained in a lesson. Regards Gianluigi Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < mckaygerhard at gmail.com> ha scritto: > err no one of the links answer the question of Martin > > he ask for path not "how to implement" > > i research at the two links and the wiki, *and (apart of the very dense > redaction without separations pauses or paragraphs) *there's no such > related info about path loading of so external libraryes > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-09-04 9:36 GMT-04:00 Gianluigi : > >> Certainly, I don't know how to do it because I don't know C, but here [0] >> is explained how to do it. >> Regards >> Gianluigi >> [0] http://gambaswiki.org/wiki/howto/extern >> [1] >> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >> >> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >> tercoide at hotmail.com> ha scritto: >> >>> Hi: >>> >>> It is possible to use a .so file located at Application.path instead of >>> usr/lib/ ? >>> >>> How to set that up? >>> >>> -- >>> Saludos >>> >>> Ing. Martin P Cristia >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Sep 4 20:15:53 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 4 Sep 2018 20:15:53 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: A link to what writes vuott, he of these things is master. http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 Regards Gianluigi Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi ha scritto: > It is actually explained. > However if the question is "I can indicate the Data folder with > Application.Path" the answer is as always *no*. > Copy the library from Data to a real folder such as */tmp* as explained > in a lesson. > > Regards > Gianluigi > > Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < > mckaygerhard at gmail.com> ha scritto: > >> err no one of the links answer the question of Martin >> >> he ask for path not "how to implement" >> >> i research at the two links and the wiki, *and (apart of the very dense >> redaction without separations pauses or paragraphs) *there's no such >> related info about path loading of so external libraryes >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-09-04 9:36 GMT-04:00 Gianluigi : >> >>> Certainly, I don't know how to do it because I don't know C, but here >>> [0] is explained how to do it. >>> Regards >>> Gianluigi >>> [0] http://gambaswiki.org/wiki/howto/extern >>> [1] >>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>> >>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>> tercoide at hotmail.com> ha scritto: >>> >>>> Hi: >>>> >>>> It is possible to use a .so file located at Application.path instead of >>>> usr/lib/ ? >>>> >>>> How to set that up? >>>> >>>> -- >>>> Saludos >>>> >>>> Ing. Martin P Cristia >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Sep 4 21:11:11 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 4 Sep 2018 22:11:11 +0300 Subject: [Gambas-user] Some quotes and rant In-Reply-To: References: Message-ID: It's a shame. GTK+ is very widely used and it makes me wonder what kind of policy other developers have taken on it. Maybe there are some "secret" tips how to deal with it GTK+ policy. Jussi On Tue, Sep 4, 2018 at 12:51 PM Beno?t Minisini wrote: > Linux policy : "Never break the user space API!" > > GTK+3 policy: "Always try to break the API as much as possible at each > minor version so that nobody can write a GTK+ program that behaves > correctly during more than one month. And if you can implement a feature > with two levels of indirection, do that with ten levels, to make > external developers unable to understand how things work, and to avoid > any possibility of having a fast GUI". > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Sep 4 21:17:16 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 4 Sep 2018 22:17:16 +0300 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Using library keyword is good idea, but using /tmp is not, because in some systems it doesn't have executing permissions. "/home//.local/" is better option. Jussi On Tue, Sep 4, 2018 at 9:17 PM Gianluigi wrote: > A link to what writes vuott, he of these things is master. > http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 > > Regards > Gianluigi > > Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi > ha scritto: > >> It is actually explained. >> However if the question is "I can indicate the Data folder with >> Application.Path" the answer is as always *no*. >> Copy the library from Data to a real folder such as */tmp* as explained >> in a lesson. >> >> Regards >> Gianluigi >> >> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> ha scritto: >> >>> err no one of the links answer the question of Martin >>> >>> he ask for path not "how to implement" >>> >>> i research at the two links and the wiki, *and (apart of the very dense >>> redaction without separations pauses or paragraphs) *there's no such >>> related info about path loading of so external libraryes >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>> >>>> Certainly, I don't know how to do it because I don't know C, but here >>>> [0] is explained how to do it. >>>> Regards >>>> Gianluigi >>>> [0] http://gambaswiki.org/wiki/howto/extern >>>> [1] >>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>> >>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>> tercoide at hotmail.com> ha scritto: >>>> >>>>> Hi: >>>>> >>>>> It is possible to use a .so file located at Application.path instead >>>>> of >>>>> usr/lib/ ? >>>>> >>>>> How to set that up? >>>>> >>>>> -- >>>>> Saludos >>>>> >>>>> Ing. Martin P Cristia >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tercoide at hotmail.com Tue Sep 4 21:49:38 2018 From: tercoide at hotmail.com (Martin Cristia) Date: Tue, 4 Sep 2018 19:49:38 +0000 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Tnx all, I wanted a permanent folder created at the first start so it was solved like... Library "~/.myapp/Lib/libmatrix8-0.0.2" with points to User.Home &/ the working folder on every PC -- Saludos Ing. Martin P Cristia From adamnt42 at gmail.com Tue Sep 4 21:57:07 2018 From: adamnt42 at gmail.com (Me) Date: Wed, 5 Sep 2018 05:27:07 +0930 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> <20180904192226.65b2e331908b86cb48b0f131@gmail.com> Message-ID: <20180905052707.372c89603fade24e4494a462@gmail.com> On Tue, 4 Sep 2018 18:47:55 +0200 Fabien Bodard wrote: > well : > > http://gambaswiki.org/wiki/comp/gb.qt4/paint/trimrichtext > > Can't Paint into "raw" QT controls like a TextBox. -- Me From mckaygerhard at gmail.com Tue Sep 4 22:07:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 4 Sep 2018 16:07:01 -0400 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: so then try now then: Library User.Home &/ ".myapp/Lib/libmatrix8-0.0.2" its better i think Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-04 15:49 GMT-04:00 Martin Cristia : > Tnx all, I wanted a permanent folder created at the first start so it > was solved like... > > Library "~/.myapp/Lib/libmatrix8-0.0.2" > > with points to User.Home &/ the working folder on every PC > > -- > Saludos > > Ing. Martin P Cristia > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Sep 4 22:11:32 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 4 Sep 2018 16:11:32 -0400 Subject: [Gambas-user] Some quotes and rant In-Reply-To: References: Message-ID: i think here we are enought people to make something at the GTK+ mailing developers i think if we explain, I believe we are enough here, if we all try to explain and bring others to claim on the basis that the current policy of constant change harms many other projects! also and that this may close the doors to them as well as weaken the strength of the project they carry out. we all togetter we can make some changes.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-04 15:11 GMT-04:00 Jussi Lahtinen : > It's a shame. GTK+ is very widely used and it makes me wonder what kind of > policy other developers have taken on it. Maybe there are some "secret" > tips how to deal with it GTK+ policy. > > > Jussi > > On Tue, Sep 4, 2018 at 12:51 PM Beno?t Minisini wrote: > >> Linux policy : "Never break the user space API!" >> >> GTK+3 policy: "Always try to break the API as much as possible at each >> minor version so that nobody can write a GTK+ program that behaves >> correctly during more than one month. And if you can implement a feature >> with two levels of indirection, do that with ten levels, to make >> external developers unable to understand how things work, and to avoid >> any possibility of having a fast GUI". >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Sep 4 22:13:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 4 Sep 2018 22:13:42 +0200 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: <20180905052707.372c89603fade24e4494a462@gmail.com> References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> <20180904192226.65b2e331908b86cb48b0f131@gmail.com> <20180905052707.372c89603fade24e4494a462@gmail.com> Message-ID: Le 04/09/2018 ? 21:57, Me a ?crit?: > On Tue, 4 Sep 2018 18:47:55 +0200 > Fabien Bodard wrote: > >> well : >> >> http://gambaswiki.org/wiki/comp/gb.qt4/paint/trimrichtext >> >> > > Can't Paint into "raw" QT controls like a TextBox. > Paint.TrimRichText() does not actually paint anything, it trims the text for you. It's in the class Paint because it need the current font size and the paint device resolution. If I add the font as an argument, you will be able to use the function anywhere. -- Beno?t Minisini From bagonergi at gmail.com Tue Sep 4 22:34:47 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 4 Sep 2018 22:34:47 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Hi Jussi, what you say about /tmp doesn't convince me and I don't know. I think it's normal to use /tmp for examples, so it doesn't get dirty on the filesystem. There are many programs that "park" their temporary files in tmp. Regards Gianluigi Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > Using library keyword is good idea, but using /tmp is not, because in some > systems it doesn't have executing permissions. > "/home//.local/" is better option. > > Jussi > > > On Tue, Sep 4, 2018 at 9:17 PM Gianluigi wrote: > >> A link to what writes vuott, he of these things is master. >> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 >> >> Regards >> Gianluigi >> >> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi >> ha scritto: >> >>> It is actually explained. >>> However if the question is "I can indicate the Data folder with >>> Application.Path" the answer is as always *no*. >>> Copy the library from Data to a real folder such as */tmp* as explained >>> in a lesson. >>> >>> Regards >>> Gianluigi >>> >>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >>> mckaygerhard at gmail.com> ha scritto: >>> >>>> err no one of the links answer the question of Martin >>>> >>>> he ask for path not "how to implement" >>>> >>>> i research at the two links and the wiki, *and (apart of the very >>>> dense redaction without separations pauses or paragraphs) *there's no >>>> such related info about path loading of so external libraryes >>>> >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>>> >>>>> Certainly, I don't know how to do it because I don't know C, but here >>>>> [0] is explained how to do it. >>>>> Regards >>>>> Gianluigi >>>>> [0] http://gambaswiki.org/wiki/howto/extern >>>>> [1] >>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>>> >>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>>> tercoide at hotmail.com> ha scritto: >>>>> >>>>>> Hi: >>>>>> >>>>>> It is possible to use a .so file located at Application.path instead >>>>>> of >>>>>> usr/lib/ ? >>>>>> >>>>>> How to set that up? >>>>>> >>>>>> -- >>>>>> Saludos >>>>>> >>>>>> Ing. Martin P Cristia >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Sep 4 23:07:51 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 5 Sep 2018 00:07:51 +0300 Subject: [Gambas-user] Control widths, fonts, desktop scales, strings and a bad memory In-Reply-To: References: <20180903171244.9014c737f598b0e9ee3cbc54@gmail.com> <20180904003018.dc5f6eb8baaa1e68ecbb3927@gmail.com> <20180904192226.65b2e331908b86cb48b0f131@gmail.com> <20180905052707.372c89603fade24e4494a462@gmail.com> Message-ID: Why width and height are as float? Aren't they in pixels? Jussi On Tue, Sep 4, 2018 at 11:14 PM Beno?t Minisini wrote: > Le 04/09/2018 ? 21:57, Me a ?crit : > > On Tue, 4 Sep 2018 18:47:55 +0200 > > Fabien Bodard wrote: > > > >> well : > >> > >> http://gambaswiki.org/wiki/comp/gb.qt4/paint/trimrichtext > >> > >> > > > > Can't Paint into "raw" QT controls like a TextBox. > > > > Paint.TrimRichText() does not actually paint anything, it trims the text > for you. It's in the class Paint because it need the current font size > and the paint device resolution. > > If I add the font as an argument, you will be able to use the function > anywhere. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Sep 4 23:10:06 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 5 Sep 2018 00:10:06 +0300 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Yes, tmp is short for temporary, but as I said, it doesn't necessarily have execution permissions. Thus it should be used only for temporary data, not for executables. Jussi On Tue, Sep 4, 2018 at 11:36 PM Gianluigi wrote: > Hi Jussi, > what you say about /tmp doesn't convince me and I don't know. > I think it's normal to use /tmp for examples, so it doesn't get dirty on > the filesystem. > There are many programs that "park" their temporary files in tmp. > > Regards > Gianluigi > > Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> Using library keyword is good idea, but using /tmp is not, because in >> some systems it doesn't have executing permissions. >> "/home//.local/" is better option. >> >> Jussi >> >> >> On Tue, Sep 4, 2018 at 9:17 PM Gianluigi wrote: >> >>> A link to what writes vuott, he of these things is master. >>> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 >>> >>> Regards >>> Gianluigi >>> >>> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi >>> ha scritto: >>> >>>> It is actually explained. >>>> However if the question is "I can indicate the Data folder with >>>> Application.Path" the answer is as always *no*. >>>> Copy the library from Data to a real folder such as */tmp* as >>>> explained in a lesson. >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >>>> mckaygerhard at gmail.com> ha scritto: >>>> >>>>> err no one of the links answer the question of Martin >>>>> >>>>> he ask for path not "how to implement" >>>>> >>>>> i research at the two links and the wiki, *and (apart of the very >>>>> dense redaction without separations pauses or paragraphs) *there's >>>>> no such related info about path loading of so external libraryes >>>>> >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>>>> >>>>>> Certainly, I don't know how to do it because I don't know C, but here >>>>>> [0] is explained how to do it. >>>>>> Regards >>>>>> Gianluigi >>>>>> [0] http://gambaswiki.org/wiki/howto/extern >>>>>> [1] >>>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>>>> >>>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>>>> tercoide at hotmail.com> ha scritto: >>>>>> >>>>>>> Hi: >>>>>>> >>>>>>> It is possible to use a .so file located at Application.path instead >>>>>>> of >>>>>>> usr/lib/ ? >>>>>>> >>>>>>> How to set that up? >>>>>>> >>>>>>> -- >>>>>>> Saludos >>>>>>> >>>>>>> Ing. Martin P Cristia >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Sep 4 23:38:20 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 4 Sep 2018 23:38:20 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: As far as I know tmp is a directory open to the world. In all unix filesystems, this is the default setting: drwxrwxrwt. That said, the administrator is free to do what he wants. Regards & Goodnight Gianluigi Il giorno mar 4 set 2018 alle ore 23:12 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > Yes, tmp is short for temporary, but as I said, it doesn't necessarily > have execution permissions. Thus it should be used only for temporary data, > not for executables. > > Jussi > > On Tue, Sep 4, 2018 at 11:36 PM Gianluigi wrote: > >> Hi Jussi, >> what you say about /tmp doesn't convince me and I don't know. >> I think it's normal to use /tmp for examples, so it doesn't get dirty on >> the filesystem. >> There are many programs that "park" their temporary files in tmp. >> >> Regards >> Gianluigi >> >> Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen < >> jussi.lahtinen at gmail.com> ha scritto: >> >>> Using library keyword is good idea, but using /tmp is not, because in >>> some systems it doesn't have executing permissions. >>> "/home//.local/" is better option. >>> >>> Jussi >>> >>> >>> On Tue, Sep 4, 2018 at 9:17 PM Gianluigi wrote: >>> >>>> A link to what writes vuott, he of these things is master. >>>> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi >>>> ha scritto: >>>> >>>>> It is actually explained. >>>>> However if the question is "I can indicate the Data folder with >>>>> Application.Path" the answer is as always *no*. >>>>> Copy the library from Data to a real folder such as */tmp* as >>>>> explained in a lesson. >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >>>>> mckaygerhard at gmail.com> ha scritto: >>>>> >>>>>> err no one of the links answer the question of Martin >>>>>> >>>>>> he ask for path not "how to implement" >>>>>> >>>>>> i research at the two links and the wiki, *and (apart of the very >>>>>> dense redaction without separations pauses or paragraphs) *there's >>>>>> no such related info about path loading of so external libraryes >>>>>> >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>>>>> >>>>>>> Certainly, I don't know how to do it because I don't know C, but >>>>>>> here [0] is explained how to do it. >>>>>>> Regards >>>>>>> Gianluigi >>>>>>> [0] http://gambaswiki.org/wiki/howto/extern >>>>>>> [1] >>>>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>>>>> >>>>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>>>>> tercoide at hotmail.com> ha scritto: >>>>>>> >>>>>>>> Hi: >>>>>>>> >>>>>>>> It is possible to use a .so file located at Application.path >>>>>>>> instead of >>>>>>>> usr/lib/ ? >>>>>>>> >>>>>>>> How to set that up? >>>>>>>> >>>>>>>> -- >>>>>>>> Saludos >>>>>>>> >>>>>>>> Ing. Martin P Cristia >>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Sep 4 23:53:29 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 5 Sep 2018 00:53:29 +0300 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Of course, but example Debian manual recommends mounting /tmp with noexec. Jussi On Wed, Sep 5, 2018 at 12:39 AM Gianluigi wrote: > As far as I know tmp is a directory open to the world. > In all unix filesystems, this is the default setting: drwxrwxrwt. > That said, the administrator is free to do what he wants. > > Regards & Goodnight > Gianluigi > > Il giorno mar 4 set 2018 alle ore 23:12 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> Yes, tmp is short for temporary, but as I said, it doesn't necessarily >> have execution permissions. Thus it should be used only for temporary data, >> not for executables. >> >> Jussi >> >> On Tue, Sep 4, 2018 at 11:36 PM Gianluigi wrote: >> >>> Hi Jussi, >>> what you say about /tmp doesn't convince me and I don't know. >>> I think it's normal to use /tmp for examples, so it doesn't get dirty on >>> the filesystem. >>> There are many programs that "park" their temporary files in tmp. >>> >>> Regards >>> Gianluigi >>> >>> Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen < >>> jussi.lahtinen at gmail.com> ha scritto: >>> >>>> Using library keyword is good idea, but using /tmp is not, because in >>>> some systems it doesn't have executing permissions. >>>> "/home//.local/" is better option. >>>> >>>> Jussi >>>> >>>> >>>> On Tue, Sep 4, 2018 at 9:17 PM Gianluigi wrote: >>>> >>>>> A link to what writes vuott, he of these things is master. >>>>> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi >>>>> ha scritto: >>>>> >>>>>> It is actually explained. >>>>>> However if the question is "I can indicate the Data folder with >>>>>> Application.Path" the answer is as always *no*. >>>>>> Copy the library from Data to a real folder such as */tmp* as >>>>>> explained in a lesson. >>>>>> >>>>>> Regards >>>>>> Gianluigi >>>>>> >>>>>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >>>>>> mckaygerhard at gmail.com> ha scritto: >>>>>> >>>>>>> err no one of the links answer the question of Martin >>>>>>> >>>>>>> he ask for path not "how to implement" >>>>>>> >>>>>>> i research at the two links and the wiki, *and (apart of the very >>>>>>> dense redaction without separations pauses or paragraphs) *there's >>>>>>> no such related info about path loading of so external libraryes >>>>>>> >>>>>>> >>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>> http://qgqlochekone.blogspot.com >>>>>>> >>>>>>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>>>>>> >>>>>>>> Certainly, I don't know how to do it because I don't know C, but >>>>>>>> here [0] is explained how to do it. >>>>>>>> Regards >>>>>>>> Gianluigi >>>>>>>> [0] http://gambaswiki.org/wiki/howto/extern >>>>>>>> [1] >>>>>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>>>>>> >>>>>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>>>>>> tercoide at hotmail.com> ha scritto: >>>>>>>> >>>>>>>>> Hi: >>>>>>>>> >>>>>>>>> It is possible to use a .so file located at Application.path >>>>>>>>> instead of >>>>>>>>> usr/lib/ ? >>>>>>>>> >>>>>>>>> How to set that up? >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Saludos >>>>>>>>> >>>>>>>>> Ing. Martin P Cristia >>>>>>>>> >>>>>>>>> >>>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>>> ]---- >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Sep 5 07:57:51 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 5 Sep 2018 07:57:51 +0200 Subject: [Gambas-user] Some quotes and rant In-Reply-To: References: Message-ID: <530dbb89-b680-51a6-46ae-021461aaf91b@deganius.de> Am 04.09.2018 um 22:11 schrieb PICCORO McKAY Lenz: > i think here we are enought people to make something at the GTK+ mailing > developers I think that Beno?t's authority as the inventor of Gamabas should be enough. But I also think, that the GTK people are not subscribed to our mailinglist so it would be cool to post the rant to theirs so that they can discuss that issue. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed Sep 5 09:55:32 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 5 Sep 2018 09:55:32 +0200 Subject: [Gambas-user] Some quotes and rant In-Reply-To: <530dbb89-b680-51a6-46ae-021461aaf91b@deganius.de> References: <530dbb89-b680-51a6-46ae-021461aaf91b@deganius.de> Message-ID: <51f67ce6-d2a3-32eb-8b84-666e78ea9b2b@gmail.com> Le 05/09/2018 ? 07:57, Christof Thalhofer a ?crit?: > Am 04.09.2018 um 22:11 schrieb PICCORO McKAY Lenz: > >> i think here we are enought people to make something at the GTK+ mailing >> developers > > I think that Beno?t's authority as the inventor of Gamabas should be > enough. But I also think, that the GTK people are not subscribed to our > mailinglist so it would be cool to post the rant to theirs so that they > can discuss that issue. > > > Alles Gute > > Christof Thalhofer > Mmm, it's too late guys, I'm talking about versions that are already released. People can just hope that GTK+4 will be stable. Moreover I think they don't care. Otherwise they would have been careful with backard-compatibility, as any other people developing libraries anywhere usually are. -- Beno?t Minisini From bagonergi at gmail.com Wed Sep 5 10:23:24 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 5 Sep 2018 10:23:24 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: I would like to clarify my thinking in this absurd "querelle" about the tmp folder. We are (+/-) programmers and we do a lot of testing. If the folders created by our tests all end up in the home folder, maybe hidden, after a while the folder would be a delirium. I think it's a good suggestion to send our tests to a folder that really exists in all filesystems and where the code can be tested (by everyone, except those who have an administrator who has read the Debian manual :-) ) and that after while is cleaned up, I would recommend everyone to adopt this system. I don't think anyone can use this folder instead of User.Home &/ "." & Application.Name. I also add this, when, for help, we send our code to other programmers, if the code provides for the creation of a folder, it is good education to create it in tmp. Regards Gianluigi Il giorno mar 4 set 2018 alle ore 23:54 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > Of course, but example Debian manual recommends mounting /tmp with noexec. > > Jussi > > On Wed, Sep 5, 2018 at 12:39 AM Gianluigi wrote: > >> As far as I know tmp is a directory open to the world. >> In all unix filesystems, this is the default setting: drwxrwxrwt. >> That said, the administrator is free to do what he wants. >> >> Regards & Goodnight >> Gianluigi >> >> Il giorno mar 4 set 2018 alle ore 23:12 Jussi Lahtinen < >> jussi.lahtinen at gmail.com> ha scritto: >> >>> Yes, tmp is short for temporary, but as I said, it doesn't necessarily >>> have execution permissions. Thus it should be used only for temporary data, >>> not for executables. >>> >>> Jussi >>> >>> On Tue, Sep 4, 2018 at 11:36 PM Gianluigi wrote: >>> >>>> Hi Jussi, >>>> what you say about /tmp doesn't convince me and I don't know. >>>> I think it's normal to use /tmp for examples, so it doesn't get dirty >>>> on the filesystem. >>>> There are many programs that "park" their temporary files in tmp. >>>> >>>> Regards >>>> Gianluigi >>>> >>>> Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen < >>>> jussi.lahtinen at gmail.com> ha scritto: >>>> >>>>> Using library keyword is good idea, but using /tmp is not, because in >>>>> some systems it doesn't have executing permissions. >>>>> "/home//.local/" is better option. >>>>> >>>>> Jussi >>>>> >>>>> >>>>> On Tue, Sep 4, 2018 at 9:17 PM Gianluigi wrote: >>>>> >>>>>> A link to what writes vuott, he of these things is master. >>>>>> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 >>>>>> >>>>>> Regards >>>>>> Gianluigi >>>>>> >>>>>> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi < >>>>>> bagonergi at gmail.com> ha scritto: >>>>>> >>>>>>> It is actually explained. >>>>>>> However if the question is "I can indicate the Data folder with >>>>>>> Application.Path" the answer is as always *no*. >>>>>>> Copy the library from Data to a real folder such as */tmp* as >>>>>>> explained in a lesson. >>>>>>> >>>>>>> Regards >>>>>>> Gianluigi >>>>>>> >>>>>>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >>>>>>> mckaygerhard at gmail.com> ha scritto: >>>>>>> >>>>>>>> err no one of the links answer the question of Martin >>>>>>>> >>>>>>>> he ask for path not "how to implement" >>>>>>>> >>>>>>>> i research at the two links and the wiki, *and (apart of the very >>>>>>>> dense redaction without separations pauses or paragraphs) *there's >>>>>>>> no such related info about path loading of so external libraryes >>>>>>>> >>>>>>>> >>>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>>> http://qgqlochekone.blogspot.com >>>>>>>> >>>>>>>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>>>>>>> >>>>>>>>> Certainly, I don't know how to do it because I don't know C, but >>>>>>>>> here [0] is explained how to do it. >>>>>>>>> Regards >>>>>>>>> Gianluigi >>>>>>>>> [0] http://gambaswiki.org/wiki/howto/extern >>>>>>>>> [1] >>>>>>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>>>>>>> >>>>>>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>>>>>>> tercoide at hotmail.com> ha scritto: >>>>>>>>> >>>>>>>>>> Hi: >>>>>>>>>> >>>>>>>>>> It is possible to use a .so file located at Application.path >>>>>>>>>> instead of >>>>>>>>>> usr/lib/ ? >>>>>>>>>> >>>>>>>>>> How to set that up? >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Saludos >>>>>>>>>> >>>>>>>>>> Ing. Martin P Cristia >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>>>> https://www.hostsharing.net ]---- >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>>> ]---- >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Wed Sep 5 11:48:44 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 5 Sep 2018 11:48:44 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: <0dc5dc3a-7a4a-9a13-f6ba-f4f7cd24a353@gambas-buch.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rs.png Type: image/png Size: 24481 bytes Desc: not available URL: From bagonergi at gmail.com Wed Sep 5 12:47:41 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 5 Sep 2018 12:47:41 +0200 Subject: [Gambas-user] External library location In-Reply-To: <0dc5dc3a-7a4a-9a13-f6ba-f4f7cd24a353@gambas-buch.de> References: <0dc5dc3a-7a4a-9a13-f6ba-f4f7cd24a353@gambas-buch.de> Message-ID: Il giorno mer 5 set 2018 alle ore 11:49 Hans Lehmann ha scritto: > Hello, > > that's exactly how it is. For example, if you want to run a bash script > after starting the runscript.gambas executable, you will get an error > because all files in the project archive are read-only. > > > > That would be a proven way out: > > ' Gambas class file > > Public sScriptPath As String > Public sTempScriptPath As String > > Public Sub Form_Open() > > sScriptPath = "./data/test_script.sh" > sTempScriptPath = Temp(File.BaseName(sScriptPath)) > > Copy sScriptPath To sTempScriptPath > Chmod sTempScriptPath To "r-xr-xr-x" > > End > > Public Sub btnRunScript_Click() > > Dim sStore As String > > txaResult.Clear() > Shell sTempScriptPath To sStore > txaResult.Text = sStore > > End > > This way might also be the right one for a library. > > Regards, > > Hans > www.gambas-book.net > > > Hi Hans, the attached code, it works well for me. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rs.png Type: image/png Size: 24481 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rs.png Type: image/png Size: 24481 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: LibC-Test-1-0.0.1.tar.gz Type: application/gzip Size: 13377 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Wed Sep 5 14:39:08 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 5 Sep 2018 15:39:08 +0300 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Sure, for temporary tests /tmp is OK. My point was, if you cannot install executables in lib folder, then it's the .local folder. Btw it's not only Debian manual, but with quick googling also ArchWiki and Red Hat STIG (Security Technical Implementation Guide). There are also a lot of bug reports from putting executables in /tmp. Jussi On Wed, Sep 5, 2018 at 11:24 AM Gianluigi wrote: > I would like to clarify my thinking in this absurd "querelle" about the > tmp folder. > We are (+/-) programmers and we do a lot of testing. > If the folders created by our tests all end up in the home folder, maybe > hidden, after a while the folder would be a delirium. > I think it's a good suggestion to send our tests to a folder that really > exists in all filesystems and where the code can be tested (by everyone, > except those who have an administrator who has read the Debian manual :-) ) > and that after while is cleaned up, I would recommend everyone to adopt > this system. > I don't think anyone can use this folder instead of User.Home &/ "." & > Application.Name. > I also add this, when, for help, we send our code to other programmers, if > the code provides for the creation of a folder, it is good education to > create it in tmp. > > Regards > Gianluigi > > Il giorno mar 4 set 2018 alle ore 23:54 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> Of course, but example Debian manual recommends mounting /tmp with noexec. >> >> Jussi >> >> On Wed, Sep 5, 2018 at 12:39 AM Gianluigi wrote: >> >>> As far as I know tmp is a directory open to the world. >>> In all unix filesystems, this is the default setting: drwxrwxrwt. >>> That said, the administrator is free to do what he wants. >>> >>> Regards & Goodnight >>> Gianluigi >>> >>> Il giorno mar 4 set 2018 alle ore 23:12 Jussi Lahtinen < >>> jussi.lahtinen at gmail.com> ha scritto: >>> >>>> Yes, tmp is short for temporary, but as I said, it doesn't necessarily >>>> have execution permissions. Thus it should be used only for temporary data, >>>> not for executables. >>>> >>>> Jussi >>>> >>>> On Tue, Sep 4, 2018 at 11:36 PM Gianluigi wrote: >>>> >>>>> Hi Jussi, >>>>> what you say about /tmp doesn't convince me and I don't know. >>>>> I think it's normal to use /tmp for examples, so it doesn't get dirty >>>>> on the filesystem. >>>>> There are many programs that "park" their temporary files in tmp. >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen < >>>>> jussi.lahtinen at gmail.com> ha scritto: >>>>> >>>>>> Using library keyword is good idea, but using /tmp is not, because in >>>>>> some systems it doesn't have executing permissions. >>>>>> "/home//.local/" is better option. >>>>>> >>>>>> Jussi >>>>>> >>>>>> >>>>>> On Tue, Sep 4, 2018 at 9:17 PM Gianluigi wrote: >>>>>> >>>>>>> A link to what writes vuott, he of these things is master. >>>>>>> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 >>>>>>> >>>>>>> Regards >>>>>>> Gianluigi >>>>>>> >>>>>>> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi < >>>>>>> bagonergi at gmail.com> ha scritto: >>>>>>> >>>>>>>> It is actually explained. >>>>>>>> However if the question is "I can indicate the Data folder with >>>>>>>> Application.Path" the answer is as always *no*. >>>>>>>> Copy the library from Data to a real folder such as */tmp* as >>>>>>>> explained in a lesson. >>>>>>>> >>>>>>>> Regards >>>>>>>> Gianluigi >>>>>>>> >>>>>>>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >>>>>>>> mckaygerhard at gmail.com> ha scritto: >>>>>>>> >>>>>>>>> err no one of the links answer the question of Martin >>>>>>>>> >>>>>>>>> he ask for path not "how to implement" >>>>>>>>> >>>>>>>>> i research at the two links and the wiki, *and (apart of the very >>>>>>>>> dense redaction without separations pauses or paragraphs) *there's >>>>>>>>> no such related info about path loading of so external libraryes >>>>>>>>> >>>>>>>>> >>>>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>>>> http://qgqlochekone.blogspot.com >>>>>>>>> >>>>>>>>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>>>>>>>> >>>>>>>>>> Certainly, I don't know how to do it because I don't know C, but >>>>>>>>>> here [0] is explained how to do it. >>>>>>>>>> Regards >>>>>>>>>> Gianluigi >>>>>>>>>> [0] http://gambaswiki.org/wiki/howto/extern >>>>>>>>>> [1] >>>>>>>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>>>>>>>> >>>>>>>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>>>>>>>> tercoide at hotmail.com> ha scritto: >>>>>>>>>> >>>>>>>>>>> Hi: >>>>>>>>>>> >>>>>>>>>>> It is possible to use a .so file located at Application.path >>>>>>>>>>> instead of >>>>>>>>>>> usr/lib/ ? >>>>>>>>>>> >>>>>>>>>>> How to set that up? >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Saludos >>>>>>>>>>> >>>>>>>>>>> Ing. Martin P Cristia >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>>>>> https://www.hostsharing.net ]---- >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>>>> https://www.hostsharing.net ]---- >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>>> ]---- >>>>>>>>> >>>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Sep 5 15:24:29 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 5 Sep 2018 09:24:29 -0400 Subject: [Gambas-user] Some quotes and rant In-Reply-To: <51f67ce6-d2a3-32eb-8b84-666e78ea9b2b@gmail.com> References: <530dbb89-b680-51a6-46ae-021461aaf91b@deganius.de> <51f67ce6-d2a3-32eb-8b84-666e78ea9b2b@gmail.com> Message-ID: 2018-09-05 3:55 GMT-04:00 Beno?t Minisini : > Mmm, it's too late guys, I'm talking about versions that are already > released. People can just hope that GTK+4 will be stable. > I am very sad and dismayed to read what you mention. yeah we hope GTK+4 will be more stable but as we noted will be obviously more heavy and will comes with unnecesary things > Moreover I think they don't care. Otherwise they would have been careful > with backard-compatibility, as any other people developing libraries > anywhere usually are. *I really want to thank you, really give you a big hug and express a big appreciation to Benoit.* I know that although it is not the same but in my case I use old things and you allow old things to still work with "Gambas", *we have had differences with the ODBC module but really thanks to Gambas all my machines and projects go no matter how old the linux is where I deploy it or how old the machine is.* *I'm going to give to all of you an real case, the Brazilian Daruma are simple and small computers, theres no modern linux that install here fine... but installing an old linux, some patches and "Gambas" compiled against those old libraries everything is marvelous!* > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Sep 5 15:53:13 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 5 Sep 2018 15:53:13 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: <0dc5dc3a-7a4a-9a13-f6ba-f4f7cd24a353@gambas-buch.de> Message-ID: Il giorno mer 5 set 2018 alle ore 13:38 Hans Lehmann ha scritto: > Am 05.09.2018 um 12:47 schrieb Gianluigi: > > the attached code, it works well for me. > > Hello Gianluigi, > > the code: > > Try Copy "./libenoit.so" To "/tmp/libenoit.so" > Wait > If Error Then Return > > only works once in the IDE. > > Better would be: > > Public Sub Main() > > Dim s As String > > If Not Exist("/tmp/libenoit.so") Then > Try Copy "./libenoit.so" To "/tmp/libenoit.so" > Wait > If Error Then Return > Endif > > s = "\n\e[31mBenoit know well the C language !\e[0m" > DecMinisini(s) > > End > > Yours sincerely > > Hans > Hi Hans, thank you. I'll tell you why I forgot your red code. Because when I do the tests with tmp I am used to having the tmp folder open and delete directly from there. In any case, one must go in tmp folder to check the operation. In this case that the output is for the console, the only way to see if the program also works as executable you get it from the copy of the library .so and the fact that you do not get error. Should always be clear that these are just small demonstration examples, not working programs. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Sep 5 15:59:22 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 5 Sep 2018 15:59:22 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Hi Jussi, your motivations are clear and mine are also clear. I think we are free to do as we please. And, like I just told Hans, should always be clear that these are just small demonstration examples, not working programs. Regards Gianluigi Il giorno mer 5 set 2018 alle ore 14:40 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > Sure, for temporary tests /tmp is OK. My point was, if you cannot install > executables in lib folder, then it's the .local folder. > Btw it's not only Debian manual, but with quick googling also ArchWiki and > Red Hat STIG (Security Technical Implementation Guide). > There are also a lot of bug reports from putting executables in /tmp. > > Jussi > > > On Wed, Sep 5, 2018 at 11:24 AM Gianluigi wrote: > >> I would like to clarify my thinking in this absurd "querelle" about the >> tmp folder. >> We are (+/-) programmers and we do a lot of testing. >> If the folders created by our tests all end up in the home folder, maybe >> hidden, after a while the folder would be a delirium. >> I think it's a good suggestion to send our tests to a folder that really >> exists in all filesystems and where the code can be tested (by everyone, >> except those who have an administrator who has read the Debian manual :-) ) >> and that after while is cleaned up, I would recommend everyone to adopt >> this system. >> I don't think anyone can use this folder instead of User.Home &/ "." & >> Application.Name. >> I also add this, when, for help, we send our code to other programmers, >> if the code provides for the creation of a folder, it is good education to >> create it in tmp. >> >> Regards >> Gianluigi >> >> Il giorno mar 4 set 2018 alle ore 23:54 Jussi Lahtinen < >> jussi.lahtinen at gmail.com> ha scritto: >> >>> Of course, but example Debian manual recommends mounting /tmp with >>> noexec. >>> >>> Jussi >>> >>> On Wed, Sep 5, 2018 at 12:39 AM Gianluigi wrote: >>> >>>> As far as I know tmp is a directory open to the world. >>>> In all unix filesystems, this is the default setting: drwxrwxrwt. >>>> That said, the administrator is free to do what he wants. >>>> >>>> Regards & Goodnight >>>> Gianluigi >>>> >>>> Il giorno mar 4 set 2018 alle ore 23:12 Jussi Lahtinen < >>>> jussi.lahtinen at gmail.com> ha scritto: >>>> >>>>> Yes, tmp is short for temporary, but as I said, it doesn't necessarily >>>>> have execution permissions. Thus it should be used only for temporary data, >>>>> not for executables. >>>>> >>>>> Jussi >>>>> >>>>> On Tue, Sep 4, 2018 at 11:36 PM Gianluigi wrote: >>>>> >>>>>> Hi Jussi, >>>>>> what you say about /tmp doesn't convince me and I don't know. >>>>>> I think it's normal to use /tmp for examples, so it doesn't get dirty >>>>>> on the filesystem. >>>>>> There are many programs that "park" their temporary files in tmp. >>>>>> >>>>>> Regards >>>>>> Gianluigi >>>>>> >>>>>> Il giorno mar 4 set 2018 alle ore 21:18 Jussi Lahtinen < >>>>>> jussi.lahtinen at gmail.com> ha scritto: >>>>>> >>>>>>> Using library keyword is good idea, but using /tmp is not, because >>>>>>> in some systems it doesn't have executing permissions. >>>>>>> "/home//.local/" is better option. >>>>>>> >>>>>>> Jussi >>>>>>> >>>>>>> >>>>>>> On Tue, Sep 4, 2018 at 9:17 PM Gianluigi >>>>>>> wrote: >>>>>>> >>>>>>>> A link to what writes vuott, he of these things is master. >>>>>>>> http://www.gambas-it.org/smf/index.php?topic=6543.msg44330#msg44330 >>>>>>>> >>>>>>>> Regards >>>>>>>> Gianluigi >>>>>>>> >>>>>>>> Il giorno mar 4 set 2018 alle ore 19:12 Gianluigi < >>>>>>>> bagonergi at gmail.com> ha scritto: >>>>>>>> >>>>>>>>> It is actually explained. >>>>>>>>> However if the question is "I can indicate the Data folder with >>>>>>>>> Application.Path" the answer is as always *no*. >>>>>>>>> Copy the library from Data to a real folder such as */tmp* as >>>>>>>>> explained in a lesson. >>>>>>>>> >>>>>>>>> Regards >>>>>>>>> Gianluigi >>>>>>>>> >>>>>>>>> Il giorno mar 4 set 2018 alle ore 17:53 PICCORO McKAY Lenz < >>>>>>>>> mckaygerhard at gmail.com> ha scritto: >>>>>>>>> >>>>>>>>>> err no one of the links answer the question of Martin >>>>>>>>>> >>>>>>>>>> he ask for path not "how to implement" >>>>>>>>>> >>>>>>>>>> i research at the two links and the wiki, *and (apart of the >>>>>>>>>> very dense redaction without separations pauses or paragraphs) *there's >>>>>>>>>> no such related info about path loading of so external libraryes >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>>>>> http://qgqlochekone.blogspot.com >>>>>>>>>> >>>>>>>>>> 2018-09-04 9:36 GMT-04:00 Gianluigi : >>>>>>>>>> >>>>>>>>>>> Certainly, I don't know how to do it because I don't know C, but >>>>>>>>>>> here [0] is explained how to do it. >>>>>>>>>>> Regards >>>>>>>>>>> Gianluigi >>>>>>>>>>> [0] http://gambaswiki.org/wiki/howto/extern >>>>>>>>>>> [1] >>>>>>>>>>> http://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Interfacciare_Gambas_con_librerie_dinamiche_esterne_.so >>>>>>>>>>> >>>>>>>>>>> Il giorno mar 4 set 2018 alle ore 14:53 Martin Cristia < >>>>>>>>>>> tercoide at hotmail.com> ha scritto: >>>>>>>>>>> >>>>>>>>>>>> Hi: >>>>>>>>>>>> >>>>>>>>>>>> It is possible to use a .so file located at Application.path >>>>>>>>>>>> instead of >>>>>>>>>>>> usr/lib/ ? >>>>>>>>>>>> >>>>>>>>>>>> How to set that up? >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Saludos >>>>>>>>>>>> >>>>>>>>>>>> Ing. Martin P Cristia >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>>>>>> https://www.hostsharing.net ]---- >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>>>>> https://www.hostsharing.net ]---- >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>>>> https://www.hostsharing.net ]---- >>>>>>>>>> >>>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Wed Sep 5 18:08:07 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Wed, 05 Sep 2018 18:08:07 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: <185c309eb010caaef6fa33388923ff8b@tiscali.it> Did you try it ? vuott Il 04.09.2018 22:07 PICCORO McKAY Lenz ha scritto: > so then try now then: > > Library User.Home &/ ".myapp/Lib/libmatrix8-0.0.2" > > its better i think > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com [2] > > 2018-09-04 15:49 GMT-04:00 Martin Cristia : > >> Tnx all, I wanted a permanent folder created at the first start so it >> was solved like... >> >> Library "~/.myapp/Lib/libmatrix8-0.0.2" >> >> with points to User.Home &/ the working folder on every PC >> >> -- >> Saludos >> >> Ing. Martin P Cristia >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [1] ]---- Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! SCOPRI DI PIU? http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Wed Sep 5 20:24:30 2018 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Wed, 5 Sep 2018 20:24:30 +0200 Subject: [Gambas-user] Global GUI-Scale ? (Control-size & -Pos varies in different HW) In-Reply-To: References: Message-ID: Dear Gambas cracks Already struggling quite a while in vain with code, preferences and in the internet, I'd like to ask for some good ideas here. I'm using Gambas programs on different Hardware: HW-1) on a Notebook with ext. Monitor: Gambas=3.11.4, Distribution=Ubuntu 16.04.5 LTS, Desktop=XFCE Resolution:1920x1080 + 1920x1200 HW-2) on a Raspberry 3B with an ext. Monitor: Gambas=3.9.1, Distribution=debian 9.4, Desktop=LXDE Resolution:1680x1050 HW-3) on a Nexus4 with UBPorts, OTA-4, Libertine ... in work What I do not understand: - Why are Gambas-forms not shown similar* on both platforms? ... not even in the IDE's? *Control-position and size with the same amount of Pixels (see also attached Screenshots) What I'm hoping to find: - Is there a kind of "Global GUI-Scale" in Gambas available? - Would that allow to scale "GUIs" in a simple manner to different Hardware-resolutions ? (eg: Notebook, Pi-Display, Pi-extMon, Smartphone, ...?) Any help (Ideas, links, keywords, ...) would be very appreciated. For "Demo-GUI with 2 Controls" and further System-Details see attached program. (GlobalGuiScale_180905a_Forum.tar.gz) Thanks for your help. (... and for Gambas!) ub2 -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_GUI-on-HW1.png Type: image/png Size: 18748 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_GUI-on-HW2.png Type: image/png Size: 32142 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GlobalGuiScale_180905a_Forum.tar.gz Type: application/gzip Size: 21418 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Sep 5 20:35:18 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 5 Sep 2018 20:35:18 +0200 Subject: [Gambas-user] Global GUI-Scale ? (Control-size & -Pos varies in different HW) In-Reply-To: References: Message-ID: Le 05/09/2018 ? 20:24, ub2 at gmx.ch a ?crit?: > > Dear Gambas cracks > > > Already struggling quite a while in vain with code, preferences and in > the internet, I'd like to ask for some good ideas here. > > > I'm using Gambas programs on different Hardware: > HW-1) on a Notebook with ext. Monitor: > Gambas=3.11.4, > Distribution=Ubuntu 16.04.5 LTS, > Desktop=XFCE > Resolution:1920x1080 + 1920x1200 > HW-2) on a Raspberry 3B with an ext. Monitor: > Gambas=3.9.1, > Distribution=debian 9.4, > Desktop=LXDE > Resolution:1680x1050 > HW-3) on a Nexus4 with UBPorts, OTA-4, Libertine > ... in work > > > What I do not understand: > - Why are Gambas-forms not shown similar* on both platforms? > ... not even in the IDE's? > > *Control-position and size with the same amount of Pixels > (see also attached Screenshots) > > > What I'm hoping to find: > - Is there a kind of "Global GUI-Scale" in Gambas available? > - Would that allow to scale "GUIs" in a simple manner to different > Hardware-resolutions ? > (eg: Notebook, Pi-Display, Pi-extMon, Smartphone, ...?) > > > Any help (Ideas, links, keywords, ...) would be very appreciated. > > > For "Demo-GUI with 2 Controls" and further System-Details see attached > program. (GlobalGuiScale_180905a_Forum.tar.gz) > > > Thanks for your help. > (... and for Gambas!) > > > ub2 > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > The GUI defined from the form editor scales proportionnaly to the default font height (the scale is the Desktop.Scale property). The idea behind is that the user usally choose a default font size according to its screen and the resolution of that screen. If the default font height on two different systems have the same height in pixels, then the dimensions of the controls will be the same in pixels too. If you don't want a form to follow that behaviour, use the 'Scaled' IDE property (it is not a real property actually). I strongly discourage using that property! Otherwise your GUI won't adapt to the font used by the user of your application. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed Sep 5 20:36:04 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 5 Sep 2018 20:36:04 +0200 Subject: [Gambas-user] Global GUI-Scale ? (Control-size & -Pos varies in different HW) In-Reply-To: References: Message-ID: <59cc9035-68e1-74ff-4bb1-2edc8e0311f8@gmail.com> Le 05/09/2018 ? 20:35, Beno?t Minisini a ?crit?: > > The GUI defined from the form editor scales proportionnaly to the > default font height (the scale is the Desktop.Scale property). > > The idea behind is that the user usally choose a default font size > according to its screen and the resolution of that screen. > > If the default font height on two different systems have the same height > in pixels, then the dimensions of the controls will be the same in > pixels too. --> The dimensions *and* the positions. They both scale. -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Sep 5 21:18:57 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 5 Sep 2018 22:18:57 +0300 Subject: [Gambas-user] Global GUI-Scale ? (Control-size & -Pos varies in different HW) In-Reply-To: References: Message-ID: Perhaps your different Desktops also have different themes? Thus the forms shouldn't be exactly the same. Jussi On Wed, Sep 5, 2018 at 9:25 PM ub2 at gmx.ch wrote: > > Dear Gambas cracks > > > Already struggling quite a while in vain with code, preferences and in > the internet, I'd like to ask for some good ideas here. > > > I'm using Gambas programs on different Hardware: > HW-1) on a Notebook with ext. Monitor: > Gambas=3.11.4, > Distribution=Ubuntu 16.04.5 LTS, > Desktop=XFCE > Resolution:1920x1080 + 1920x1200 > HW-2) on a Raspberry 3B with an ext. Monitor: > Gambas=3.9.1, > Distribution=debian 9.4, > Desktop=LXDE > Resolution:1680x1050 > HW-3) on a Nexus4 with UBPorts, OTA-4, Libertine > ... in work > > > What I do not understand: > - Why are Gambas-forms not shown similar* on both platforms? > ... not even in the IDE's? > > *Control-position and size with the same amount of Pixels > (see also attached Screenshots) > > > What I'm hoping to find: > - Is there a kind of "Global GUI-Scale" in Gambas available? > - Would that allow to scale "GUIs" in a simple manner to different > Hardware-resolutions ? > (eg: Notebook, Pi-Display, Pi-extMon, Smartphone, ...?) > > > Any help (Ideas, links, keywords, ...) would be very appreciated. > > > For "Demo-GUI with 2 Controls" and further System-Details see attached > program. (GlobalGuiScale_180905a_Forum.tar.gz) > > > Thanks for your help. > (... and for Gambas!) > > > ub2 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Wed Sep 5 21:46:01 2018 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Wed, 5 Sep 2018 21:46:01 +0200 Subject: [Gambas-user] Global GUI-Scale ? (Control-size & -Pos varies in different HW) In-Reply-To: References: Message-ID: Dear Jussi Another good point, I'll check that too. Beno?t's hint already brought me back to "lisible forms": > The GUI defined from the form editor scales proportionnaly to the default font height (the scale is the Desktop.Scale property). > > The idea behind is that the user usally choose a default font size according to its screen and the resolution of that screen. > > If the default font height on two different systems have the same height in pixels, then the dimensions of the controls will be the same in pixels too. > --> The dimensions *and* the positions. They both scale. Thank you both for your help. ub2 Am 05.09.2018 um 21:18 schrieb Jussi Lahtinen: > Perhaps your different Desktops also have different themes? Thus the > forms shouldn't be exactly the same. > > Jussi > > On Wed, Sep 5, 2018 at 9:25 PM ub2 at gmx.ch > > wrote: > > > Dear Gambas cracks > > > Already struggling quite a while in vain with code, preferences and in > the internet, I'd like to ask for some good ideas here. > > > I'm using Gambas programs on different Hardware: > HW-1) on a Notebook with ext. Monitor: > ? ? ? ? Gambas=3.11.4, > ? ? ? ? Distribution=Ubuntu 16.04.5 LTS, > ? ? ? ? Desktop=XFCE > ? ? ? ? Resolution:1920x1080 + 1920x1200 > HW-2) on a Raspberry 3B with an ext. Monitor: > ? ? ? ? Gambas=3.9.1, > ? ? ? ? Distribution=debian 9.4, > ? ? ? ? Desktop=LXDE > ? ? ? ? Resolution:1680x1050 > HW-3) on a Nexus4 with UBPorts, OTA-4, Libertine > ? ? ? ? ... in work > > > What I do not understand: > - Why are Gambas-forms not shown similar* on both platforms? > ? ? ? ? ... not even in the IDE's? > > *Control-position and size with the same amount of Pixels > ? ? ? ? (see also attached Screenshots) > > > What I'm hoping to find: > - Is there a kind of "Global GUI-Scale" in Gambas available? > - Would that allow to scale "GUIs" in a simple manner to different > Hardware-resolutions ?? > (eg: Notebook, Pi-Display, Pi-extMon, Smartphone, ...?) > > > Any help (Ideas, links, keywords, ...) would be very appreciated. > > > For "Demo-GUI with 2 Controls" and further System-Details see attached > program.? ? ? ? (GlobalGuiScale_180905a_Forum.tar.gz) > > > Thanks for your help. > (... and for Gambas!) > > > ub2 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From bagonergi at gmail.com Wed Sep 5 22:33:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 5 Sep 2018 22:33:33 +0200 Subject: [Gambas-user] Global GUI-Scale ? (Control-size & -Pos varies in different HW) In-Reply-To: References: Message-ID: How do you see this (see attachment) with different desktops and themes? Regards Gianluigi Il giorno mer 5 set 2018 alle ore 20:25 ub2 at gmx.ch ha scritto: > > Dear Gambas cracks > > > Already struggling quite a while in vain with code, preferences and in > the internet, I'd like to ask for some good ideas here. > > > I'm using Gambas programs on different Hardware: > HW-1) on a Notebook with ext. Monitor: > Gambas=3.11.4, > Distribution=Ubuntu 16.04.5 LTS, > Desktop=XFCE > Resolution:1920x1080 + 1920x1200 > HW-2) on a Raspberry 3B with an ext. Monitor: > Gambas=3.9.1, > Distribution=debian 9.4, > Desktop=LXDE > Resolution:1680x1050 > HW-3) on a Nexus4 with UBPorts, OTA-4, Libertine > ... in work > > > What I do not understand: > - Why are Gambas-forms not shown similar* on both platforms? > ... not even in the IDE's? > > *Control-position and size with the same amount of Pixels > (see also attached Screenshots) > > > What I'm hoping to find: > - Is there a kind of "Global GUI-Scale" in Gambas available? > - Would that allow to scale "GUIs" in a simple manner to different > Hardware-resolutions ? > (eg: Notebook, Pi-Display, Pi-extMon, Smartphone, ...?) > > > Any help (Ideas, links, keywords, ...) would be very appreciated. > > > For "Demo-GUI with 2 Controls" and further System-Details see attached > program. (GlobalGuiScale_180905a_Forum.tar.gz) > > > Thanks for your help. > (... and for Gambas!) > > > ub2 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NewGlobalGui-0.0.1.tar.gz Type: application/gzip Size: 13066 bytes Desc: not available URL: From chrisml at deganius.de Thu Sep 6 07:46:53 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 6 Sep 2018 07:46:53 +0200 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: <3c8fadf3-c297-cf49-4cde-ea711167b359@deganius.de> Am 05.09.2018 um 14:39 schrieb Jussi Lahtinen: > Sure, for temporary tests /tmp is OK. My point was, if you cannot > install executables in lib folder, then it's the .local folder. > Btw it's not only Debian manual, but with quick googling also ArchWiki > and Red Hat STIG (Security Technical Implementation Guide). > There are also a lot of bug reports from putting executables in /tmp. ACK. /tmp is a bad place for libs. Its name alone says it. It is temporary, and can be even used from other programs as well and in secure environments there should be no executables allowed. For a system-wide installation aside of the distribution I would prefer /usr/local/(share|lib)/$vendorname/ or /usr/(share|lib)/$vendorname/ (this is what I use for my programs) For a installation in the homedir I use ~/.local/(share|lib)/$vendorname/ Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Thu Sep 6 08:35:27 2018 From: adamnt42 at gmail.com (Adam Ant) Date: Thu, 6 Sep 2018 16:05:27 +0930 Subject: [Gambas-user] Switching gui component from user's config file Message-ID: Is there a way to select the gui component at runtime from a setting in the user's config file? This is for an installed gambas executable archive. It uses the gb.gui.qt component but... I prefer qt4, "she" prefers qt5. So rather than have to set up specific scripts in each login I'd like to be able to set a "Preferred GUI" in the .config file. N.B. We cannot use a permanent env setting for her login as she does a lot of testing and needs to swap between the different components. This is just for one of our utility programs that would always use her preferred GUI. tia b -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Sep 6 08:39:45 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 6 Sep 2018 08:39:45 +0200 Subject: [Gambas-user] Switching gui component from user's config file In-Reply-To: References: Message-ID: <2d04c26b-c7c3-9696-6cb3-a9b78b939626@gmail.com> Le 06/09/2018 ? 08:35, Adam Ant a ?crit?: > Is there a way to select the gui component at runtime from a setting in > the user's config file? > > This is for an installed gambas executable archive. It uses the > gb.gui.qt component but... > I prefer qt4, "she" prefers qt5. So rather than have to set up specific > scripts in each login I'd > like to be able to set a "Preferred GUI" in the .config file. > > N.B. We cannot use a permanent env setting for her login as she does a > lot of testing and needs > to swap between the different components. This is just for one of our > utility programs that would > always use her preferred GUI. > > tia > b > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > At the moment the GUI can be set in an environment variable only. -- Beno?t Minisini From ub2 at gmx.ch Thu Sep 6 08:54:28 2018 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Thu, 6 Sep 2018 08:54:28 +0200 Subject: [Gambas-user] Global GUI-Scale ? Solved, Thanks to all. In-Reply-To: References: Message-ID: <0c626f38-caca-d7c4-bab6-74e02f0cf508@gmx.ch> Dear Gianluigi Thanks to the hint of Beno?t and Jussi this issue is already solved. - Benoit: default font height of system scales ctrl-size and -position - Jussi: themes But answering your question, the control in your form shows up in the IDE with the Standard-Gambas-Theme like this: X=21 Y=105 W=84 H=224 Again, thanks all for very quick support and for Gambas in general. ub2 Am 05.09.2018 um 22:33 schrieb Gianluigi: > How do you see this (see attachment) with different desktops and themes? > > Regards > Gianluigi > > Il giorno mer 5 set 2018 alle ore 20:25 ub2 at gmx.ch > > ha scritto: > > > Dear Gambas cracks > > > Already struggling quite a while in vain with code, preferences and in > the internet, I'd like to ask for some good ideas here. > > > I'm using Gambas programs on different Hardware: > HW-1) on a Notebook with ext. Monitor: > ? ? ? ? Gambas=3.11.4, > ? ? ? ? Distribution=Ubuntu 16.04.5 LTS, > ? ? ? ? Desktop=XFCE > ? ? ? ? Resolution:1920x1080 + 1920x1200 > HW-2) on a Raspberry 3B with an ext. Monitor: > ? ? ? ? Gambas=3.9.1, > ? ? ? ? Distribution=debian 9.4, > ? ? ? ? Desktop=LXDE > ? ? ? ? Resolution:1680x1050 > HW-3) on a Nexus4 with UBPorts, OTA-4, Libertine > ? ? ? ? ... in work > > > What I do not understand: > - Why are Gambas-forms not shown similar* on both platforms? > ? ? ? ? ... not even in the IDE's? > > *Control-position and size with the same amount of Pixels > ? ? ? ? (see also attached Screenshots) > > > What I'm hoping to find: > - Is there a kind of "Global GUI-Scale" in Gambas available? > - Would that allow to scale "GUIs" in a simple manner to different > Hardware-resolutions ?? > (eg: Notebook, Pi-Display, Pi-extMon, Smartphone, ...?) > > > Any help (Ideas, links, keywords, ...) would be very appreciated. > > > For "Demo-GUI with 2 Controls" and further System-Details see attached > program.? ? ? ? (GlobalGuiScale_180905a_Forum.tar.gz) > > > Thanks for your help. > (... and for Gambas!) > > > ub2 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From rwe-sse at osnanet.de Thu Sep 6 09:33:57 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 6 Sep 2018 09:33:57 +0200 Subject: [Gambas-user] Issue with a Bains line Message-ID: <1feb3c34-7fd7-c3c6-dd67-b82887f0458f@osnanet.de> There is a strange behaviour in calculating the position of a Bains line over a timetable. Long time ago, I came across this problem in my calendar program, but thanks to a tip by Benoit I came easily over it. To make clear what I mean, here is the code which runs well. The timetable is a GridView called "wo": wo.Row = Hour(Now) baines.Y = wo.Current.Y - wo.ScrollY + wo.ClientY + ((wo.Current.Height / 60) * Minute(Now)) The GridView just begins with 0 and runs up to 23, so it's easy: every hour has a cell. Now I have a timetable for our school. Every cell has 45 minutes, and there are breaks between them, so you cannot compute directly from time to position. Instead, there is a list of starting times for each lesson. First the current cell is set to the lesson according to the list (a small function does this and delivers "zeile") then: .Row = zeile Up to here it runs flawlessly, but then computing doesn't find a proper position for the Bains line: bains1.Y = .Current.Y - .ScrollY + .ClientY + ((.Current.Height / 45) * Abs(CInt(DateDiff(Now, Date(Year(Now), Month(Now), Day(Now), st, mn, 0, 0), gb.Minute)))) This long Abs(CInt... thing runs well, I checked for it. The correct number of minutes from the beginning of the lesson until Now is delivered. Everything boils down to bains1.Y = .CurrentY - .ScrollY + .ClientY + ((.Current.Height / 45) * References: <1feb3c34-7fd7-c3c6-dd67-b82887f0458f@osnanet.de> Message-ID: <86754174-45cb-32c8-b084-3254e31c09e3@osnanet.de> Am 06.09.2018 um 09:33 schrieb Rolf-Werner Eilert: > There is a strange behaviour in calculating the position of a Bains line > over a timetable. > > Long time ago, I came across this problem in my calendar program, but > thanks to a tip by Benoit I came easily over it. To make clear what I > mean, here is the code which runs well. > > The timetable is a GridView called "wo": > > wo.Row = Hour(Now) > > baines.Y = wo.Current.Y - wo.ScrollY + wo.ClientY + ((wo.Current.Height > / 60) * Minute(Now)) > > The GridView just begins with 0 and runs up to 23, so it's easy: every > hour has a cell. > > Now I have a timetable for our school. Every cell has 45 minutes, and > there are breaks between them, so you cannot compute directly from time > to position. Instead, there is a list of starting times for each lesson. > > First the current cell is set to the lesson according to the list (a > small function does this and delivers "zeile") then: > > .Row = zeile > > Up to here it runs flawlessly, but then computing doesn't find a proper > position for the Bains line: > > ????? bains1.Y = .Current.Y - .ScrollY + .ClientY + ((.Current.Height / > 45) * Abs(CInt(DateDiff(Now, Date(Year(Now), Month(Now), Day(Now), st, > mn, 0, 0), gb.Minute)))) > > This long Abs(CInt... thing runs well, I checked for it. The correct > number of minutes from the beginning of the lesson until Now is > delivered. Everything boils down to > > bains1.Y = .CurrentY - .ScrollY + .ClientY + ((.Current.Height / 45) * > > At this time of the day, the Bains line lands far behind (above) the > cells it should be in, and later it lands too far beyond (below) them. > It never really hits the cell or a proper position. > > In the program, there are 6 GridViews with a Bains line, and the > deviation is the same for all of them. > > So where is the problem? Thank you for any hint! > > Rolf > I have to answer myself because I found a possible reason for the trouble. There is a Panel in the program up at the top of the form. When I calculate its height into the position, the result seems to be ok: bains1.Y = Panel1.H + .CurrentY... How does a Panel's height fail to be counted? There are Labels above the GridViews which do not fail, the GridViews and there cells are found correctly. It seems as if the GridViews are shown correctly themselves but actually do not get correct values from the form (maybe an error in the Form class?). Regards Rolf From tercoide at hotmail.com Thu Sep 6 13:09:11 2018 From: tercoide at hotmail.com (Martin Cristia) Date: Thu, 6 Sep 2018 11:09:11 +0000 Subject: [Gambas-user] External library location In-Reply-To: References: Message-ID: Agreed I like the ~/.vendor better than /usr/... because It can be operated without SUDO or installing software. Usefull when you distribute only the source code of a Gambas program, but it contains a private .so lib > ACK. /tmp is a bad place for libs. Its name alone says it. It is > temporary, and can be even used from other programs as well and in > secure environments there should be no executables allowed. > > For a system-wide installation aside of the distribution I would prefer > > /usr/local/(share|lib)/$vendorname/ > > or > > /usr/(share|lib)/$vendorname/ > (this is what I use for my programs) > > For a installation in the homedir I use > ~/.local/(share|lib)/$vendorname/ > > > Alles Gute > > Christof Thalhofer > -- Saludos Ing. Martin P Cristia From g4mba5 at gmail.com Thu Sep 6 22:53:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 6 Sep 2018 22:53:48 +0200 Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 Message-ID: <23d41a03-600f-2f1f-1569-25144699090e@gmail.com> Hi, I'm looking for someone who has an old Ubuntu 12.04 and who could try to compile the last development version on it. Apparently there is gcc syntax incompatibility I do not understand. The gcc compiler error message does not help a lot... Thanks in advance! -- Beno?t Minisini From the_watchmann at yahoo.com Fri Sep 7 15:17:45 2018 From: the_watchmann at yahoo.com (David Silverwood) Date: Fri, 7 Sep 2018 13:17:45 +0000 (UTC) Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 In-Reply-To: <23d41a03-600f-2f1f-1569-25144699090e@gmail.com> References: <23d41a03-600f-2f1f-1569-25144699090e@gmail.com> Message-ID: <1540306909.1072931.1536326265635@mail.yahoo.com> Hi BenoitI still have an image of both Ubuntu server and desktop u can use on a virtualbox if that may help. I can place it on google drive for downloading... it is 707mb and 32 bit. Would that help ?Regards David Sent from Yahoo Mail on Android On Thu, 6 Sep 2018 at 22:54, Beno?t Minisini wrote: Hi, I'm looking for someone who has an old Ubuntu 12.04 and who could try to compile the last development version on it. Apparently there is gcc syntax incompatibility I do not understand. The gcc compiler error message does not help a lot... Thanks in advance! -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Sep 7 17:14:04 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 7 Sep 2018 17:14:04 +0200 Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 Message-ID: Hi Benoit, I have mistakenly deleted your e-mail. In a Vbox with Ubuntu 12.04.05 i386 I tried to install Gambas3 Master. After this command: sudo apt-get install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.1 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev sane-utils libdumb1-dev libssl-dev The terminal told me that gcc was already at the latest version and advised me to give this command: sudo apt-get -f install Then I gave back the command with all the libraries and it installed me. I downloaded the deb packages for the gb.gsl gb.media gb.qt5 gb.qt5.ext gb.qt5.opengl gb.qt5.webkit gb.sdl2 gb.sdl2.audio components, but the terminal did not. I enclose the terminal's response to the command sudo dpkg -i *.deb and the log file of ./reconf-all && ./configure -C If you can tell me how to install the missing packages, I'd appreciate it. Regards Gianluigi P.S. I can not attach the log file because it exceeds the limit of 200 Kb -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- gian5 at gian5:~$ cd Librerie gian5 at gian5:~/Librerie$ sudo dpkg -i *.deb (Lettura del database... 187895 file e directory attualmente installati.) Preparativi per sostituire esound-common v.0.2.41-10build3 (utilizzando esound-common_0.2.41-11_all.deb)... Estrazione del sostituto di esound-common... Preparativi per sostituire libgsl0-dev v.1.15+dfsg-1build1 (utilizzando libgsl0-dev_1.16+dfsg-1ubuntu1_i386.deb)... Estrazione del sostituto di libgsl0-dev... Selezionato il pacchetto libqt5opengl5 non precedentemente selezionato. Estrazione di libqt5opengl5 (da libqt5opengl5_5.2.1+dfsg-1ubuntu14.3_i386.deb)... dpkg-deb: errore: l'archivio "libqt5opengl5_5.9.5+dfsg-0ubuntu1_i386.deb" contiene un elemento dati incomprensibile control.tar.xz, operazione annullata dpkg: errore nell'elaborare libqt5opengl5_5.9.5+dfsg-0ubuntu1_i386.deb (--install): il sottoprocesso dpkg-deb --control ha restituito lo stato di errore 2 Selezionato il pacchetto libqt5svg5-dev non precedentemente selezionato. Estrazione di libqt5svg5-dev (da libqt5svg5-dev_5.2.1-1_i386.deb)... Selezionato il pacchetto libqt5webkit5-dev non precedentemente selezionato. Estrazione di libqt5webkit5-dev (da libqt5webkit5-dev_5.1.1-1ubuntu8_i386.deb)... Selezionato il pacchetto libqt5x11extras5-dev non precedentemente selezionato. Estrazione di libqt5x11extras5-dev (da libqt5x11extras5-dev_5.2.1-1_i386.deb)... Preparativi per sostituire libsage2 v.0.2.0-4.1 (utilizzando libsage2_0.2.0-4.1ubuntu1_i386.deb)... Estrazione del sostituto di libsage2... Selezionato il pacchetto libsdl2-image-dev non precedentemente selezionato. Estrazione di libsdl2-image-dev (da libsdl2-image-dev_2.0.0+dfsg-3+deb8u1build0.14.04.1_i386.deb)... Selezionato il pacchetto libsdl2-mixer-dev non precedentemente selezionato. Estrazione di libsdl2-mixer-dev (da libsdl2-mixer-dev_2.0.0+dfsg1-3_i386.deb)... Selezionato il pacchetto libsdl2-ttf-dev non precedentemente selezionato. Estrazione di libsdl2-ttf-dev (da libsdl2-ttf-dev_2.0.12+dfsg1-2_i386.deb)... Selezionato il pacchetto qtbase5-dev non precedentemente selezionato. Estrazione di qtbase5-dev (da qtbase5-dev_5.2.1+dfsg-1ubuntu14.3_i386.deb)... Configurazione di esound-common (0.2.41-11)... dpkg: problemi con le dipendenze impediscono la configurazione di libgsl0-dev: libgsl0-dev dipende da libgsl0ldbl (= 1.16+dfsg-1ubuntu1), ma: La versione di libgsl0ldbl nel sistema ? 1.15+dfsg-1build1. dpkg: errore nell'elaborare libgsl0-dev (--install): problemi con le dipendenze - lasciato non configurato dpkg: problemi con le dipendenze impediscono la configurazione di libqt5opengl5: libqt5opengl5 dipende da libqt5core5a (>= 5.0.2), ma: Il pacchetto libqt5core5a non ? installato. libqt5opengl5 dipende da libqt5gui5 (>= 5.2.0) | libqt5gui5-gles (>= 5.2.0), ma: Il pacchetto libqt5gui5 non ? installato. Il pacchetto libqt5gui5-gles non ? installato. libqt5opengl5 dipende da libqt5widgets5 (>= 5.0.2), ma: Il pacchetto libqt5widgets5 non ? installato. libqt5opengl5 dipende da qtbase-abi-5-2-1, ma: Il pacchetto qtbase-abi-5-2-1 non ? installato. dpkg: errore nell'elaborare libqt5opengl5 (--install): problemi con le dipendenze - lasciato non configurato dpkg: problemi con le dipendenze impediscono la configurazione di libqt5svg5-dev: libqt5svg5-dev dipende da libqt5svg5 (= 5.2.1-1), ma: Il pacchetto libqt5svg5 non ? installato. dpkg: errore nell'elaborare libqt5svg5-dev (--install): problemi con le dipendenze - lasciato non configurato dpkg: problemi con le dipendenze impediscono la configurazione di libqt5webkit5-dev: libqt5webkit5-dev dipende da libqt5webkit5 (= 5.1.1-1ubuntu8), ma: Il pacchetto libqt5webkit5 non ? installato. libqt5webkit5-dev dipende da libgstreamer-plugins-base1.0-dev, ma: Il pacchetto libgstreamer-plugins-base1.0-dev non ? installato. libqt5webkit5-dev dipende da libqt5opengl5-dev, ma: Il pacchetto libqt5opengl5-dev non ? installato. libqt5webkit5-dev dipende da qtlocation5-dev, ma: Il pacchetto qtlocation5-dev non ? installato. libqt5webkit5-dev dipende da qtsensors5-dev, ma: Il pacchetto qtsensors5-dev non ? installato. dpkg: errore nell'elaborare libqt5webkit5-dev (--install): problemi con le dipendenze - lasciato non configurato dpkg: problemi con le dipendenze impediscono la configurazione di libqt5x11extras5-dev: libqt5x11extras5-dev dipende da libqt5x11extras5 (= 5.2.1-1), ma: Il pacchetto libqt5x11extras5 non ? installato. dpkg: errore nell'elaborare libqt5x11extras5-dev (--install): problemi con le dipendenze - lasciato non configurato Configurazione di libsage2 (0.2.0-4.1ubuntu1)... dpkg: problemi con le dipendenze impediscono la configurazione di libsdl2-image-dev: libsdl2-image-dev dipende da libsdl2-image-2.0-0 (= 2.0.0+dfsg-3+deb8u1build0.14.04.1), ma: Il pacchetto libsdl2-image-2.0-0 non ? installato. libsdl2-image-dev dipende da libsdl2-dev (>= 2.0.0), ma: Il pacchetto libsdl2-dev non ? installato. dpkg: errore nell'elaborare libsdl2-image-dev (--install): problemi con le dipendenze - lasciato non configurato dpkg: problemi con le dipendenze impediscono la configurazione di libsdl2-mixer-dev: libsdl2-mixer-dev dipende da libsdl2-mixer-2.0-0 (= 2.0.0+dfsg1-3), ma: Il pacchetto libsdl2-mixer-2.0-0 non ? installato. libsdl2-mixer-dev dipende da libsdl2-dev (>= 2.0.0), ma: Il pacchetto libsdl2-dev non ? installato. dpkg: errore nell'elaborare libsdl2-mixer-dev (--install): problemi con le dipendenze - lasciato non configurato dpkg: problemi con le dipendenze impediscono la configurazione di libsdl2-ttf-dev: libsdl2-ttf-dev dipende da libsdl2-ttf-2.0-0 (= 2.0.12+dfsg1-2), ma: Il pacchetto libsdl2-ttf-2.0-0 non ? installato. libsdl2-ttf-dev dipende da libsdl2-dev (>= 2.0.0), ma: Il pacchetto libsdl2-dev non ? installato. dpkg: errore nell'elaborare libsdl2-ttf-dev (--install): problemi con le dipendenze - lasciato non configurato dpkg: problemi con le dipendenze impediscono la configurazione di qtbase5-dev: qtbase5-dev dipende da libgles2-mesa-dev | libgles2-dev, ma: Il pacchetto libgles2-mesa-dev non ? installato. Il pacchetto libgles2-dev non ? installato. qtbase5-dev dipende da libqt5concurrent5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5concurrent5 non ? installato. qtbase5-dev dipende da libqt5core5a (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5core5a non ? installato. qtbase5-dev dipende da libqt5dbus5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5dbus5 non ? installato. qtbase5-dev dipende da libqt5gui5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5gui5 non ? installato. qtbase5-dev dipende da libqt5network5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5network5 non ? installato. qtbase5-dev dipende da libqt5printsupport5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5printsupport5 non ? installato. qtbase5-dev dipende da libqt5sql5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5sql5 non ? installato. qtbase5-dev dipende da libqt5test5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5test5 non ? installato. qtbase5-dev dipende da libqt5widgets5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5widgets5 non ? installato. qtbase5-dev dipende da libqt5xml5 (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto libqt5xml5 non ? installato. qtbase5-dev dipende da qt5-qmake (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto qt5-qmake non ? installato. qtbase5-dev dipende da qtbase5-dev-tools (= 5.2.1+dfsg-1ubuntu14.3), ma: Il pacchetto qtbase5-dev-tools non ? installato. qtbase5-dev dipende da qtchooser, ma: Il pacchetto qtchooser non ? installato. dpkg: errore nell'elaborare qtbase5-dev (--install): problemi con le dipendenze - lasciato non configurato Elaborazione dei trigger per man-db... Elaborazione dei trigger per libc-bin... ldconfig deferred processing now taking place Si sono verificati degli errori nell'elaborazione: libqt5opengl5_5.9.5+dfsg-0ubuntu1_i386.deb libgsl0-dev libqt5opengl5 libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev qtbase5-dev gian5 at gian5:~/Librerie$ From g4mba5 at gmail.com Fri Sep 7 17:21:01 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 7 Sep 2018 17:21:01 +0200 Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 In-Reply-To: References: Message-ID: Le 07/09/2018 ? 17:14, Gianluigi a ?crit?: > Hi Benoit, > I have mistakenly deleted your e-mail. > In a Vbox with Ubuntu 12.04.05 i386 I tried to install Gambas3 Master. > After this command: > > sudo apt-get install build-essential g++ automake autoconf libtool > libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev > postgresql-server-dev-9.1 libsqlite0-dev libsqlite3-dev libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev > libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev > libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev > libgtk-3-dev sane-utils libdumb1-dev libssl-dev > > The terminal told me that gcc was already at the latest version and > advised me to give this command: > > sudo apt-get -f install > > Then I gave back the command with all the libraries and it installed me. > > I downloaded the deb packages for the gb.gsl gb.media gb.qt5 gb.qt5.ext > gb.qt5.opengl gb.qt5.webkit gb.sdl2 gb.sdl2.audio components, but the > terminal did not. > > I enclose the terminal's response to the command sudo dpkg -i *.deb and > the log file of ./reconf-all && ./configure -C > > If you can tell me how to install the missing packages, I'd appreciate it. > > Regards > Gianluigi > > P.S. I can not attach the log file because it exceeds the limit of 200 Kb > No, you must not installa any Gambas binary package: you must compile it from sources: the problem is with the compilation. Maybe it has been fixed with the latest commit, I didn't receive any error from the Ubuntu PPA automatic compilation service yet. Let's wait a bit. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Fri Sep 7 19:45:42 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 7 Sep 2018 13:45:42 -0400 Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 In-Reply-To: References: Message-ID: quite interesting, those older winbuntu it's like build gambas in wheeze/queeze so must compile without problems, i already made compilation for the lenny, squeeze regulary.. the 3 only modules not posible to build are those related to qt5, gtk3 and media/gstreamer1.0 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-07 11:21 GMT-04:00 Beno?t Minisini : > Le 07/09/2018 ? 17:14, Gianluigi a ?crit : > >> Hi Benoit, >> I have mistakenly deleted your e-mail. >> In a Vbox with Ubuntu 12.04.05 i386 I tried to install Gambas3 Master. >> After this command: >> >> sudo apt-get install build-essential g++ automake autoconf libtool >> libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev >> postgresql-server-dev-9.1 libsqlite0-dev libsqlite3-dev libglib2.0-dev >> libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev >> libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev >> libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev >> libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev >> libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev >> libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev >> libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev >> libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libcairo2-dev >> libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev >> libgtk-3-dev sane-utils libdumb1-dev libssl-dev >> >> The terminal told me that gcc was already at the latest version and >> advised me to give this command: >> >> sudo apt-get -f install >> >> Then I gave back the command with all the libraries and it installed me. >> >> I downloaded the deb packages for the gb.gsl gb.media gb.qt5 gb.qt5.ext >> gb.qt5.opengl gb.qt5.webkit gb.sdl2 gb.sdl2.audio components, but the >> terminal did not. >> >> I enclose the terminal's response to the command sudo dpkg -i *.deb and >> the log file of ./reconf-all && ./configure -C >> >> If you can tell me how to install the missing packages, I'd appreciate it. >> >> Regards >> Gianluigi >> >> P.S. I can not attach the log file because it exceeds the limit of 200 Kb >> >> > No, you must not installa any Gambas binary package: you must compile it > from sources: the problem is with the compilation. > > Maybe it has been fixed with the latest commit, I didn't receive any error > from the Ubuntu PPA automatic compilation service yet. Let's wait a bit. > > Regards, > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Sep 7 19:56:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 7 Sep 2018 19:56:43 +0200 Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 In-Reply-To: References: Message-ID: Le 07/09/2018 ? 19:45, PICCORO McKAY Lenz a ?crit?: > quite interesting, those older winbuntu it's like build gambas in > wheeze/queeze > > so must compile without problems, i already made compilation > for the lenny, squeeze regulary.. the 3 only modules not posible > to build are those related to qt5, gtk3 and media/gstreamer1.0 > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > The problem is in the compilation of gb.gtk3. -- Beno?t Minisini From dickson.tim at googlemail.com Sun Sep 9 23:33:32 2018 From: dickson.tim at googlemail.com (Tim Dickson) Date: Sun, 9 Sep 2018 22:33:32 +0100 Subject: [Gambas-user] gbh3 Message-ID: <3d3678cc-b724-b13e-f28f-b15221805ca2@googlemail.com> I have just recently taken over the package creation script of gambas3 for Slackware from Fredrich and noticed the following error message (tailed output) Making install in . make[2]: Entering directory '/tmp/SBo/gambas-3.11.4' make[3]: Entering directory '/tmp/SBo/gambas-3.11.4' || || Unable to compile gbh3 || make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/tmp/SBo/gambas-3.11.4' make[2]: Leaving directory '/tmp/SBo/gambas-3.11.4' make[1]: Leaving directory '/tmp/SBo/gambas-3.11.4' ?when doing a make -j1 install-strip DESTDIR=$PKG XDG_UTILS="" (the last make in the packageing script) After creating a slackware package and installing it, I can run the gambas3 gui and create a project and run/compile it so i'm not sure if the error is significant. I noticed a reference to this error message in the mailing list a few years ago which said to ignore the message. Is that still the case? what is gbh3 ?? is it needed? I also noticed that? on the website under help-compilation it encourages you to get more configuration info by reading the INSTALL file in the source root. However, that file just points you to the URL of the html previously read. Is there any more info apart from running ./configure --help or going through the configure.ac file (which is a bit hard going).? many thanks, Tim From g4mba5 at gmail.com Mon Sep 10 00:02:32 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 10 Sep 2018 00:02:32 +0200 Subject: [Gambas-user] gbh3 In-Reply-To: <3d3678cc-b724-b13e-f28f-b15221805ca2@googlemail.com> References: <3d3678cc-b724-b13e-f28f-b15221805ca2@googlemail.com> Message-ID: Le 09/09/2018 ? 23:33, Tim Dickson via User a ?crit?: > I have just recently taken over the package creation script of gambas3 > for Slackware from Fredrich > and noticed the following error message (tailed output) > > Making install in . > make[2]: Entering directory '/tmp/SBo/gambas-3.11.4' > make[3]: Entering directory '/tmp/SBo/gambas-3.11.4' > > || > || Unable to compile gbh3 > || > > make[3]: Nothing to be done for 'install-data-am'. > make[3]: Leaving directory '/tmp/SBo/gambas-3.11.4' > make[2]: Leaving directory '/tmp/SBo/gambas-3.11.4' > make[1]: Leaving directory '/tmp/SBo/gambas-3.11.4' > > ?when doing a > make -j1 install-strip DESTDIR=$PKG XDG_UTILS="" > (the last make in the packageing script) > > After creating a slackware package and installing it, I can run the > gambas3 gui and create a project and run/compile it so i'm not sure if > the error is significant. > > I noticed a reference to this error message in the mailing list a few > years ago which said to ignore the message. > Is that still the case? what is gbh3 ?? is it needed? > > I also noticed that? on the website under help-compilation it encourages > you to get more configuration info by reading the INSTALL file in the > source root. However, that file just points you to the URL of the html > previously read. Is there any more info apart from running ./configure > --help or going through the configure.ac file (which is a bit hard going).? > many thanks, Tim > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Please send the full output of the configuration process. -- Beno?t Minisini From adamnt42 at gmail.com Mon Sep 10 02:28:09 2018 From: adamnt42 at gmail.com (Me) Date: Mon, 10 Sep 2018 09:58:09 +0930 Subject: [Gambas-user] #If Exec ? Message-ID: <20180910095809.608909f0f7aab1b78a977e4c@gmail.com> The conditional compile construct does not seem to work anymore (v3.11.4)? We use it quite widely to "hide/excise" development code that only has meaning inside the IDE (such as a "Debug" menu item). Anyone else noticed this? Or is it something on our system? tia -- Me From g4mba5 at gmail.com Mon Sep 10 11:42:10 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 10 Sep 2018 11:42:10 +0200 Subject: [Gambas-user] #If Exec ? In-Reply-To: <20180910095809.608909f0f7aab1b78a977e4c@gmail.com> References: <20180910095809.608909f0f7aab1b78a977e4c@gmail.com> Message-ID: <84ada319-7177-c428-b70d-079902cc1f0b@gmail.com> Le 10/09/2018 ? 02:28, Me a ?crit?: > The conditional compile construct does not seem to work anymore (v3.11.4)? > > We use it quite widely to "hide/excise" development code that only has meaning inside the IDE (such as a "Debug" menu item). > > Anyone else noticed this? Or is it something on our system? > > tia > I didn't touch that. Do you have a little project that reproduces the problem? -- Beno?t Minisini From adamnt42 at gmail.com Mon Sep 10 12:32:39 2018 From: adamnt42 at gmail.com (Me) Date: Mon, 10 Sep 2018 20:02:39 +0930 Subject: [Gambas-user] #If Exec ? In-Reply-To: <84ada319-7177-c428-b70d-079902cc1f0b@gmail.com> References: <20180910095809.608909f0f7aab1b78a977e4c@gmail.com> <84ada319-7177-c428-b70d-079902cc1f0b@gmail.com> Message-ID: <20180910200239.83f4e1f6f950e9a5bf9a8a1b@gmail.com> On Mon, 10 Sep 2018 11:42:10 +0200 Beno?t Minisini wrote: > Le 10/09/2018 ? 02:28, Me a ?crit?: > > The conditional compile construct does not seem to work anymore (v3.11.4)? > > > > We use it quite widely to "hide/excise" development code that only has meaning inside the IDE (such as a "Debug" menu item). > > > > Anyone else noticed this? Or is it something on our system? > > > > tia > > > > I didn't touch that. Do you have a little project that reproduces the > problem? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Weird. I found this. With a newly created user, it works fine. For my existing login or Fj's login it works unless I have been using gdmflexiserver to swap between the two logins. I have no idea what is causing it. But its obviously local. If I find it I'll let you know. The shell? QT4 vs 5? Kitchen fairies? tx b -- Me From jussi.lahtinen at gmail.com Mon Sep 10 14:28:42 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 10 Sep 2018 15:28:42 +0300 Subject: [Gambas-user] #If Exec ? In-Reply-To: <20180910200239.83f4e1f6f950e9a5bf9a8a1b@gmail.com> References: <20180910095809.608909f0f7aab1b78a977e4c@gmail.com> <84ada319-7177-c428-b70d-079902cc1f0b@gmail.com> <20180910200239.83f4e1f6f950e9a5bf9a8a1b@gmail.com> Message-ID: I guess you are some how compiling without the -x switch? Jussi On Mon, Sep 10, 2018 at 1:33 PM Me wrote: > On Mon, 10 Sep 2018 11:42:10 +0200 > Beno?t Minisini wrote: > > > Le 10/09/2018 ? 02:28, Me a ?crit : > > > The conditional compile construct does not seem to work anymore > (v3.11.4)? > > > > > > We use it quite widely to "hide/excise" development code that only has > meaning inside the IDE (such as a "Debug" menu item). > > > > > > Anyone else noticed this? Or is it something on our system? > > > > > > tia > > > > > > > I didn't touch that. Do you have a little project that reproduces the > > problem? > > > > -- > > Beno?t Minisini > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Weird. I found this. > > With a newly created user, it works fine. > > For my existing login or Fj's login it works unless I have been using > gdmflexiserver to swap between the two logins. I have no idea what is > causing it. > But its obviously local. If I find it I'll let you know. The shell? QT4 vs > 5? Kitchen fairies? > > tx > b > > -- > Me > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Sep 10 17:12:58 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 10 Sep 2018 11:12:58 -0400 Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 In-Reply-To: References: Message-ID: hi the more older version for gtk3 to compile (as in wheeze) are 3.4.2 so for you dpkg -s libgtk-3-dev | grep '^Version:' must return something more recent rather than 3.4.2 so as in my case the gcc in lenny are 4.2 and with backport are 4.3, that's means gcc on winbuntu must be enought recent so in conclusion, i dont think are a gcc problem in fact, maybe a gcc restriction more thatn problem.. please can you output the complete log? or at least a portion related to gtk3 compilation log!? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-07 13:56 GMT-04:00 Beno?t Minisini : > Le 07/09/2018 ? 19:45, PICCORO McKAY Lenz a ?crit : > >> quite interesting, those older winbuntu it's like build gambas in >> wheeze/queeze >> >> so must compile without problems, i already made compilation >> for the lenny, squeeze regulary.. the 3 only modules not posible >> to build are those related to qt5, gtk3 and media/gstreamer1.0 >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > The problem is in the compilation of gb.gtk3. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Sep 10 17:21:32 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 10 Sep 2018 17:21:32 +0200 Subject: [Gambas-user] Compilation of Gambas on Ubuntu 12.04 In-Reply-To: <1540306909.1072931.1536326265635@mail.yahoo.com> References: <23d41a03-600f-2f1f-1569-25144699090e@gmail.com> <1540306909.1072931.1536326265635@mail.yahoo.com> Message-ID: Le 07/09/2018 ? 15:17, David Silverwood via User a ?crit?: > Hi Benoit > I still have an image of both Ubuntu server and desktop u can use on a > virtualbox if that may help. I can place it on google drive for > downloading... it is 707mb and 32 bit. Would that help ? > Regards > David > Sent from Yahoo Mail on Android > > Apparently the problem is fixed, I receive no more errors from the Ubuntu PPA automatic compilation servers. Thanks anyway! -- Beno?t Minisini From adamnt42 at gmail.com Tue Sep 11 01:24:13 2018 From: adamnt42 at gmail.com (Me) Date: Tue, 11 Sep 2018 08:54:13 +0930 Subject: [Gambas-user] #If Exec ? In-Reply-To: References: <20180910095809.608909f0f7aab1b78a977e4c@gmail.com> <84ada319-7177-c428-b70d-079902cc1f0b@gmail.com> <20180910200239.83f4e1f6f950e9a5bf9a8a1b@gmail.com> Message-ID: <20180911085413.39d3a14cfbc01ecc643c1534@gmail.com> Thanks Jussi, That was exactly it. I couldn't see why it happened with some applications and not others. (The ones where it did happen were compiled some time ago on a different machine. Grrrr) b On Mon, 10 Sep 2018 15:28:42 +0300 Jussi Lahtinen wrote: > I guess you are some how compiling without the -x switch? > > > Jussi > > On Mon, Sep 10, 2018 at 1:33 PM Me wrote: > > > On Mon, 10 Sep 2018 11:42:10 +0200 > > Beno?t Minisini wrote: > > > > > Le 10/09/2018 ? 02:28, Me a ?crit : > > > > The conditional compile construct does not seem to work anymore > > (v3.11.4)? > > > > > > > > We use it quite widely to "hide/excise" development code that only has > > meaning inside the IDE (such as a "Debug" menu item). > > > > > > > > Anyone else noticed this? Or is it something on our system? > > > > > > > > tia > > > > > > > > > > I didn't touch that. Do you have a little project that reproduces the > > > problem? > > > > > > -- > > > Beno?t Minisini > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > Weird. I found this. > > > > With a newly created user, it works fine. > > > > For my existing login or Fj's login it works unless I have been using > > gdmflexiserver to swap between the two logins. I have no idea what is > > causing it. > > But its obviously local. If I find it I'll let you know. The shell? QT4 vs > > 5? Kitchen fairies? > > > > tx > > b > > > > -- > > Me > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -- Me From dmontaine at gmail.com Tue Sep 11 13:21:18 2018 From: dmontaine at gmail.com (don) Date: Tue, 11 Sep 2018 04:21:18 -0700 Subject: [Gambas-user] Linux Mint 19 XFCE install Message-ID: For your information; I tried using the stable PPA to install and it failed because of missing dependencies.? However, the daily PPA worked correctly and I have the development version running without problems on my computer running Linux Mint 19 XFCE. From adamnt42 at gmail.com Thu Sep 13 03:13:19 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 13 Sep 2018 10:43:19 +0930 Subject: [Gambas-user] How can I instantiate a virtual class? Message-ID: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> Dumb question, I know but... Specifically I want to get a copy of MyMenu.Children into an array of Menu[] so I can re-order it. However, Menu.Children is virtual (.Menu.Children). (I have a request to make the order of (a particular menu) user configureable.) I figured that if I can get a copy of the array, I could re-order it, clear the actual menu and re-add the menus in the required order. tia b p.s. I just noticed that Menu.Children is a collection not an array, but that doen't change my problem. -- Me From adamnt42 at gmail.com Thu Sep 13 07:16:55 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 13 Sep 2018 14:46:55 +0930 Subject: [Gambas-user] A little change for the IDE Version Control (git) popup Message-ID: <20180913144655.0fa9cfd5d3c1abdd8d96bd0c@gmail.com> The following seems to work as far as I can see. It adds a "Status" line to the Project Properties popup Version control tab and just shows whther the current git branch is up to date or not. It goes at the end of CVersionControlGit.Info method just above the Return cInfo line at the end of the method. It does no harm AFAICS and I find it quite handy. It may need transaltion. Sorry I can't produce a patch for it. I am still not really on top of this git stuff. So here's the actual source: aResult = Split(VersionControl.Shell("cd " & Shell(Project.Dir) & "&& git status -s"), "\n") If aResult.Count > 0 Then cInfo[("Status")] = (aResult.Count - 1) & " uncommitted changes: " & Trim(aResult.Join("; ")) Else cInfo[("Status")] = "Up to date" Endif Hope you find it worthwhile and include it in the base code sometime. b -- Me From g4mba5 at gmail.com Thu Sep 13 11:03:37 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 Sep 2018 11:03:37 +0200 Subject: [Gambas-user] A little change for the IDE Version Control (git) popup In-Reply-To: <20180913144655.0fa9cfd5d3c1abdd8d96bd0c@gmail.com> References: <20180913144655.0fa9cfd5d3c1abdd8d96bd0c@gmail.com> Message-ID: Le 13/09/2018 ? 07:16, Me a ?crit?: > The following seems to work as far as I can see. It adds a "Status" line to the Project Properties popup Version control tab > and just shows whther the current git branch is up to date or not. It goes at the end of CVersionControlGit.Info method just > above the Return cInfo line at the end of the method. It does no harm AFAICS and I find it quite handy. It may need transaltion. > > Sorry I can't produce a patch for it. I am still not really on top of this git stuff. So here's the actual source: > > aResult = Split(VersionControl.Shell("cd " & Shell(Project.Dir) & "&& git status -s"), "\n") > If aResult.Count > 0 Then > cInfo[("Status")] = (aResult.Count - 1) & " uncommitted changes: " & Trim(aResult.Join("; ")) > Else > cInfo[("Status")] = "Up to date" > Endif > > Hope you find it worthwhile and include it in the base code sometime. > > b > Why do you need that? Normally, each modified file has a green circle checked on its name, so you know there is something to commit. -- Beno?t Minisini From g4mba5 at gmail.com Thu Sep 13 12:02:06 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 Sep 2018 12:02:06 +0200 Subject: [Gambas-user] A little change for the IDE Version Control (git) popup In-Reply-To: References: <20180913144655.0fa9cfd5d3c1abdd8d96bd0c@gmail.com> Message-ID: <9bb67ac4-dee0-69e5-3718-53a190ed485a@gmail.com> Le 13/09/2018 ? 11:03, Beno?t Minisini a ?crit?: > Le 13/09/2018 ? 07:16, Me a ?crit?: >> The following seems to work as far as I can see. It adds a "Status" >> line to the Project Properties popup Version control tab >> and just shows whther the current git branch is up to date or not. It >> goes at the end of CVersionControlGit.Info method just >> above the Return cInfo line at the end of the method. It does no harm >> AFAICS and I find it quite handy. It may need transaltion. >> >> Sorry I can't produce a patch for it. I am still not really on top of >> this git stuff. So here's the actual source: >> >> ?? aResult = Split(VersionControl.Shell("cd " & Shell(Project.Dir) & >> "&& git status -s"), "\n") >> ?? If aResult.Count > 0 Then >> ???? cInfo[("Status")] = (aResult.Count - 1) & " uncommitted changes: >> " & Trim(aResult.Join("; ")) >> ?? Else >> ???? cInfo[("Status")] = "Up to date" >> ?? Endif >> >> Hope you find it worthwhile and include it in the base code sometime. >> >> b >> > > Why do you need that? Normally, each modified file has a green circle > checked on its name, so you know there is something to commit. > I did something like that in commit https://gitlab.com/gambas/gambas/commit/db8c500f959206dd7fc125ef7f5a774d82e4317e. -- Beno?t Minisini From adamnt42 at gmail.com Thu Sep 13 12:49:37 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 13 Sep 2018 20:19:37 +0930 Subject: [Gambas-user] A little change for the IDE Version Control (git) popup In-Reply-To: References: <20180913144655.0fa9cfd5d3c1abdd8d96bd0c@gmail.com> Message-ID: <20180913201937.ce58f51d6bcefaa8d482dfdd@gmail.com> hmmm., nope, not seeing any green circles, 3.11.4 release On Thu, 13 Sep 2018 11:03:37 +0200 Beno?t Minisini wrote: > Le 13/09/2018 ? 07:16, Me a ?crit?: > > The following seems to work as far as I can see. It adds a "Status" line to the Project Properties popup Version control tab > > and just shows whther the current git branch is up to date or not. It goes at the end of CVersionControlGit.Info method just > > above the Return cInfo line at the end of the method. It does no harm AFAICS and I find it quite handy. It may need transaltion. > > > > Sorry I can't produce a patch for it. I am still not really on top of this git stuff. So here's the actual source: > > > > aResult = Split(VersionControl.Shell("cd " & Shell(Project.Dir) & "&& git status -s"), "\n") > > If aResult.Count > 0 Then > > cInfo[("Status")] = (aResult.Count - 1) & " uncommitted changes: " & Trim(aResult.Join("; ")) > > Else > > cInfo[("Status")] = "Up to date" > > Endif > > > > Hope you find it worthwhile and include it in the base code sometime. > > > > b > > > > Why do you need that? Normally, each modified file has a green circle > checked on its name, so you know there is something to commit. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -- Me From t.lee.davidson at gmail.com Thu Sep 13 15:52:30 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 13 Sep 2018 09:52:30 -0400 Subject: [Gambas-user] How can I instantiate a virtual class? In-Reply-To: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> References: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> Message-ID: <1e3339c5-c3ad-1002-30ae-1008d68b7fd4@gmail.com> It seems, by what you have said, that you have already solved your own problem. So, I am unclear exactly what you are asking. I may be missing something, and therefore this may be a dumb response. But, as a test of your concept, have you tried similar to the following? [code] Dim myMenu As New Menu[] Dim theMenu As Menu For Each theMenu In Menu1.Children myMenu.Add(theMenu) Next For Each theMenu In myMenu Print theMenu.Name Next [/code] ___ Lee On 9/12/18 9:13 PM, Me wrote: > Dumb question, I know but... > > Specifically I want to get a copy of MyMenu.Children into an array of Menu[] so I can re-order it. However, > Menu.Children is virtual (.Menu.Children). > (I have a request to make the order of (a particular menu) user configureable.) > I figured that if I can get a copy of the array, I could re-order it, clear the actual menu and re-add the menus in > the required order. > > tia > b > p.s. I just noticed that Menu.Children is a collection not an array, but that doen't change my problem. > From taboege at gmail.com Thu Sep 13 19:48:01 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 13 Sep 2018 19:48:01 +0200 Subject: [Gambas-user] How can I instantiate a virtual class? In-Reply-To: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> References: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> Message-ID: <20180913174325.GA1166@highrise.localdomain> On Thu, 13 Sep 2018, Me wrote: > Dumb question, I know but... > > Specifically I want to get a copy of MyMenu.Children into an array of Menu[] so I can re-order it. However, > Menu.Children is virtual (.Menu.Children). > (I have a request to make the order of (a particular menu) user configureable.) > I figured that if I can get a copy of the array, I could re-order it, clear the actual menu and re-add the menus in > the required order. > > tia > b > p.s. I just noticed that Menu.Children is a collection not an array, but that doen't change my problem. > TL;DR: You can't do that *in-place* with a virtual object. You have to make a completely new menu with the desired order and "plug that in", though I'm not sure how to do that, see last paragraph. (Alternatively: bug Benoit to implement Move* methods on .Menu.Children like we have in TreeView, a Sort event like GridView or at least a Reparent method.) There are two types of virtual classes: native and Gambas virtual classes. You can distinguish them roughly by the component they are coming from, or by the first character in their name: * a leading dot means native, e.g. .Menu.Children from the native gb.qt4 component or .Watch.Events in gb.inotify, vs. * a leading underscore which means it's written in Gambas, e.g. _MapTile in gb.map. This naming is not a requirement but a convention. [*] A virtual class is meant to provide an alternate interface to some part of an object. In native components, a virtual property is oftentimes implemented by returning the exact same object but telling the interpreter to "cast" it to some other class, so that you have a more specialised set of methods available. The property accessor usually sets some sort of flag or records some access parameter like the settings slot in _Settings_Keys._get() so that the more specialised methods know where you wanted them to operate. [#] You can see that with the way native virtual classes are named: .Menu.Children is a virtual class for managing the .Children property of a Menu object and .Watch.Events does the same for the .Events of a Watch. [~] You may see the problem now: virtual objects don't actually exist. They are just a volatile view on a specific part of an object. So you can't put them in an array. As soon as the line where you accessed MyMenu.Children finished executing, the virtual object is destroyed; the hidden state used by the Menu object to tell that you are accessing .Children now might have been overwritten already. Virtual classes can be declared in native components but they aren't creatable and always have size zero <-- also answering your Subject line. You can of course re-use the menu items that the virtual Menu.Children shows you, like so: Dim hMenu As Menu, aSubMenus As New Menu[] For Each hMenu In MyMenu.Children aSubMenus.Push(hMenu) Next But even then, I'm stuck. You can reorder the submenus, put them into a new parent menu but how do you get the new parent menu into your existing menu hierarchy? I'm missing a Menu.Reparent() method (why does Menu not inherit Control?) to plug just the changed menu into what you already have. The only way I see right now is to rebuild your entire menu -- even the remote parts that didn't change -- every time you have to reorder some submenu. I've never been a menu user in Gambas. Maybe others found a recipe? Regards, Tobi PS: I moved into a new apartment and was absent from the internet for two weeks. In my case, it went quite a way to show how much of my social life happens over the cable. Anyway, this was a nice question to find on my first day back. I may have written too much again, but that's because I missed it :-) [*] An outlier is _GridView_Cell in gb.qt4 which seems like it's both or neither. The truth is that by now GridView is implemented in Gambas, in a hidden gb.gui.base component and only *documented* in gb.qt4. So the leading underscore tells the truth and the docs, as usual, lie. [#] BTW, this is one of the obstacles of making Gambas thread-safe. Lots of (all?) components rely on the assumption that they can just put some data into a field in the object's underlying data structure and return themselves to implement a virtual property and that the data won't be touched until the virtual object is done. This is a very cheap way of decluttering the interface of a class but also very wrong in a multi-threaded environment. [~] Actually, Gambas virtual classes (the ones which are non-native) are just normal classes. The "casting part of an object to a different class" is a strictly native feature. They probably shouldn't even be called "virtual" but they are often used for the same purpose. The leading underscore is generally used to make classes hidden, e.g. to the IDE autocompletion popup. You could theoretically store these objects into an array (and I remember doing that once) but that isn't safe either, depending on what assumptions the class makes on its lifetime. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Thu Sep 13 22:43:54 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 13 Sep 2018 22:43:54 +0200 Subject: [Gambas-user] How can I instantiate a virtual class? In-Reply-To: <20180913174325.GA1166@highrise.localdomain> References: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> <20180913174325.GA1166@highrise.localdomain> Message-ID: <732dd32d-99f3-2f7a-d756-543bdab7f966@gmail.com> Le 13/09/2018 ? 19:48, Tobias Boege a ?crit?: > On Thu, 13 Sep 2018, Me wrote: >> Dumb question, I know but... >> >> Specifically I want to get a copy of MyMenu.Children into an array of Menu[] so I can re-order it. However, >> Menu.Children is virtual (.Menu.Children). >> (I have a request to make the order of (a particular menu) user configureable.) >> I figured that if I can get a copy of the array, I could re-order it, clear the actual menu and re-add the menus in >> the required order. >> >> tia >> b >> p.s. I just noticed that Menu.Children is a collection not an array, but that doen't change my problem. >> > > TL;DR: You can't do that *in-place* with a virtual object. You have to > make a completely new menu with the desired order and "plug that in", > though I'm not sure how to do that, see last paragraph. (Alternatively: > bug Benoit to implement Move* methods on .Menu.Children like we have > in TreeView, a Sort event like GridView or at least a Reparent method.) > > There are two types of virtual classes: native and Gambas virtual classes. > You can distinguish them roughly by the component they are coming from, > or by the first character in their name: > > * a leading dot means native, e.g. .Menu.Children from the native gb.qt4 > component or .Watch.Events in gb.inotify, vs. > * a leading underscore which means it's written in Gambas, e.g. _MapTile > in gb.map. > > This naming is not a requirement but a convention. [*] > > A virtual class is meant to provide an alternate interface to some part of > an object. In native components, a virtual property is oftentimes implemented > by returning the exact same object but telling the interpreter to "cast" it > to some other class, so that you have a more specialised set of methods > available. The property accessor usually sets some sort of flag or records > some access parameter like the settings slot in _Settings_Keys._get() so > that the more specialised methods know where you wanted them to operate. [#] > You can see that with the way native virtual classes are named: .Menu.Children > is a virtual class for managing the .Children property of a Menu object and > .Watch.Events does the same for the .Events of a Watch. [~] > > You may see the problem now: virtual objects don't actually exist. They are > just a volatile view on a specific part of an object. So you can't put them > in an array. As soon as the line where you accessed MyMenu.Children finished > executing, the virtual object is destroyed; the hidden state used by the > Menu object to tell that you are accessing .Children now might have been > overwritten already. Virtual classes can be declared in native components > but they aren't creatable and always have size zero <-- also answering your > Subject line. > > You can of course re-use the menu items that the virtual Menu.Children shows > you, like so: > > Dim hMenu As Menu, aSubMenus As New Menu[] > > For Each hMenu In MyMenu.Children > aSubMenus.Push(hMenu) > Next > > But even then, I'm stuck. You can reorder the submenus, put them into a new > parent menu but how do you get the new parent menu into your existing menu > hierarchy? I'm missing a Menu.Reparent() method (why does Menu not inherit > Control?) to plug just the changed menu into what you already have. > The only way I see right now is to rebuild your entire menu -- even the > remote parts that didn't change -- every time you have to reorder some > submenu. I've never been a menu user in Gambas. Maybe others found a recipe? > > Regards, > Tobi > > PS: I moved into a new apartment and was absent from the internet for two > weeks. In my case, it went quite a way to show how much of my social life > happens over the cable. Anyway, this was a nice question to find on my > first day back. I may have written too much again, but that's because > I missed it :-) > > [*] An outlier is _GridView_Cell in gb.qt4 which seems like it's both or > neither. The truth is that by now GridView is implemented in Gambas, in a > hidden gb.gui.base component and only *documented* in gb.qt4. So the leading > underscore tells the truth and the docs, as usual, lie. > > [#] BTW, this is one of the obstacles of making Gambas thread-safe. > Lots of (all?) components rely on the assumption that they can just > put some data into a field in the object's underlying data structure > and return themselves to implement a virtual property and that the > data won't be touched until the virtual object is done. This is a > very cheap way of decluttering the interface of a class but also > very wrong in a multi-threaded environment. > > [~] Actually, Gambas virtual classes (the ones which are non-native) are > just normal classes. The "casting part of an object to a different class" > is a strictly native feature. They probably shouldn't even be called > "virtual" but they are often used for the same purpose. The leading > underscore is generally used to make classes hidden, e.g. to the IDE > autocompletion popup. You could theoretically store these objects into > an array (and I remember doing that once) but that isn't safe either, > depending on what assumptions the class makes on its lifetime. > The problem is that Menus are not implemented in the underlying toolkits as a tree of objects that I can reorder easily and freely. So I had to make a minimal interface that allows to add menus only on the end of a hierarchy, delete menus, and browse them. Hence the lack of power of the Menus virtual class. As for GridView reimplemented in Gambas, I had to mimic the old API. And yes, it's not multithreading at all, but the toolkit GUI are usually single-thread (the other threads can't do GUI stuff), except maybe the new multithreaded CSS-based layout engines of Mozilla. And I agree that "virtual" was badly chosen. It's right in its primary sense, but it has too many associated meaning in computing language that does not relate to what it means in Gambas. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Fri Sep 14 04:16:25 2018 From: adamnt42 at gmail.com (Me) Date: Fri, 14 Sep 2018 11:46:25 +0930 Subject: [Gambas-user] How can I instantiate a virtual class? In-Reply-To: <732dd32d-99f3-2f7a-d756-543bdab7f966@gmail.com> References: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> <20180913174325.GA1166@highrise.localdomain> <732dd32d-99f3-2f7a-d756-543bdab7f966@gmail.com> Message-ID: <20180914114625.877bd04b64067eb0b65f6009@gmail.com> On Thu, 13 Sep 2018 22:43:54 +0200 Beno?t Minisini wrote: > Le 13/09/2018 ? 19:48, Tobias Boege a ?crit?: > > On Thu, 13 Sep 2018, Me wrote: > >> Dumb question, I know but... > >> > >> Specifically I want to get a copy of MyMenu.Children into an array of Menu[] so I can re-order it. However, > >> Menu.Children is virtual (.Menu.Children). > >> (I have a request to make the order of (a particular menu) user configureable.) > >> I figured that if I can get a copy of the array, I could re-order it, clear the actual menu and re-add the menus in > >> the required order. > >> > >> tia > >> b > >> p.s. I just noticed that Menu.Children is a collection not an array, but that doen't change my problem. > >> > > > > TL;DR: You can't do that *in-place* with a virtual object. You have to > > make a completely new menu with the desired order and "plug that in", > > though I'm not sure how to do that, see last paragraph. (Alternatively: > > bug Benoit to implement Move* methods on .Menu.Children like we have > > in TreeView, a Sort event like GridView or at least a Reparent method.) > > > > There are two types of virtual classes: native and Gambas virtual classes. > > You can distinguish them roughly by the component they are coming from, > > or by the first character in their name: > > > > * a leading dot means native, e.g. .Menu.Children from the native gb.qt4 > > component or .Watch.Events in gb.inotify, vs. > > * a leading underscore which means it's written in Gambas, e.g. _MapTile > > in gb.map. > > > > This naming is not a requirement but a convention. [*] > > > > A virtual class is meant to provide an alternate interface to some part of > > an object. In native components, a virtual property is oftentimes implemented > > by returning the exact same object but telling the interpreter to "cast" it > > to some other class, so that you have a more specialised set of methods > > available. The property accessor usually sets some sort of flag or records > > some access parameter like the settings slot in _Settings_Keys._get() so > > that the more specialised methods know where you wanted them to operate. [#] > > You can see that with the way native virtual classes are named: .Menu.Children > > is a virtual class for managing the .Children property of a Menu object and > > .Watch.Events does the same for the .Events of a Watch. [~] > > > > You may see the problem now: virtual objects don't actually exist. They are > > just a volatile view on a specific part of an object. So you can't put them > > in an array. As soon as the line where you accessed MyMenu.Children finished > > executing, the virtual object is destroyed; the hidden state used by the > > Menu object to tell that you are accessing .Children now might have been > > overwritten already. Virtual classes can be declared in native components > > but they aren't creatable and always have size zero <-- also answering your > > Subject line. > > > > You can of course re-use the menu items that the virtual Menu.Children shows > > you, like so: > > > > Dim hMenu As Menu, aSubMenus As New Menu[] > > > > For Each hMenu In MyMenu.Children > > aSubMenus.Push(hMenu) > > Next > > > > But even then, I'm stuck. You can reorder the submenus, put them into a new > > parent menu but how do you get the new parent menu into your existing menu > > hierarchy? I'm missing a Menu.Reparent() method (why does Menu not inherit > > Control?) to plug just the changed menu into what you already have. > > The only way I see right now is to rebuild your entire menu -- even the > > remote parts that didn't change -- every time you have to reorder some > > submenu. I've never been a menu user in Gambas. Maybe others found a recipe? > > > > Regards, > > Tobi > > > > PS: I moved into a new apartment and was absent from the internet for two > > weeks. In my case, it went quite a way to show how much of my social life > > happens over the cable. Anyway, this was a nice question to find on my > > first day back. I may have written too much again, but that's because > > I missed it :-) > > > > [*] An outlier is _GridView_Cell in gb.qt4 which seems like it's both or > > neither. The truth is that by now GridView is implemented in Gambas, in a > > hidden gb.gui.base component and only *documented* in gb.qt4. So the leading > > underscore tells the truth and the docs, as usual, lie. > > > > [#] BTW, this is one of the obstacles of making Gambas thread-safe. > > Lots of (all?) components rely on the assumption that they can just > > put some data into a field in the object's underlying data structure > > and return themselves to implement a virtual property and that the > > data won't be touched until the virtual object is done. This is a > > very cheap way of decluttering the interface of a class but also > > very wrong in a multi-threaded environment. > > > > [~] Actually, Gambas virtual classes (the ones which are non-native) are > > just normal classes. The "casting part of an object to a different class" > > is a strictly native feature. They probably shouldn't even be called > > "virtual" but they are often used for the same purpose. The leading > > underscore is generally used to make classes hidden, e.g. to the IDE > > autocompletion popup. You could theoretically store these objects into > > an array (and I remember doing that once) but that isn't safe either, > > depending on what assumptions the class makes on its lifetime. > > > > The problem is that Menus are not implemented in the underlying toolkits > as a tree of objects that I can reorder easily and freely. > > So I had to make a minimal interface that allows to add menus only on > the end of a hierarchy, delete menus, and browse them. Hence the lack of > power of the Menus virtual class. > > As for GridView reimplemented in Gambas, I had to mimic the old API. > > And yes, it's not multithreading at all, but the toolkit GUI are usually > single-thread (the other threads can't do GUI stuff), except maybe the > new multithreaded CSS-based layout engines of Mozilla. > > And I agree that "virtual" was badly chosen. It's right in its primary > sense, but it has too many associated meaning in computing language that > does not relate to what it means in Gambas. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Well, I have gotten soooooo close, but. :-( With everyones' input (and a lot of QT doc searching), here's what I have found, noting that the final step fails so the whole thing is moot really. 1. I can't re-order an existing menu but it is possible to insert a new menu at a specific position by copying all the subsequent menu items from the insertion point in the parent menu out to an array, creating the target menu item in the parent and then re-adding the copied out items. This got around the virtual class problem with .Menu.Children as I can use Me.Children[index]. 2. I can't just "copy" those subsequent menu items, I have to unmarshall all their properties into a Variant[] and then create new menu items in the parent. This has the drawback that the copied items cannot have children, but that is outside the scope of my immediate goal. The reason they have to be unmarshalled is that when I delete the original menu items it renders any "copy" of the menu invalid. 3. To do the above I created a MenuManager class that knows about the current form's menus and can manipulate them. It also knows about a "Position" property for the specific menus I am looking at. 4. The whole idea falls over because the menu manager does its stuff when the menu is created. Unfortunately, this seems to be too early in the form loading/startup when the .form file has not been read. I have had that problem before with some custom controls and solved that by deferring the mechanism until the control_Activate event fired, Menus don't have such an event, nor any other suitably delayed event I could leverage. Such is life. Anyway I have used up the client's budget for this so I'll be puttting it away for now. One thing I have noticed though. The QT4/5 QWidget classes both have an "insertAction(QAction * before, QAction * action)" function. My shallow reading of the docs leads me to ask the question, "If the CMenu.cpp class used that instead of addAction() in Menu_new, with an optional Position parameter could that get rid of the need to rebuild the whole menu?" (or does &^*%E$$ gtk preclude that as an alternative?). Note the only thing I can do with C++ is spell it. regards b -- Me From g4mba5 at gmail.com Fri Sep 14 09:44:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 14 Sep 2018 09:44:48 +0200 Subject: [Gambas-user] How can I instantiate a virtual class? In-Reply-To: <20180914114625.877bd04b64067eb0b65f6009@gmail.com> References: <20180913104319.adf204a86e02d7b98288dc43@gmail.com> <20180913174325.GA1166@highrise.localdomain> <732dd32d-99f3-2f7a-d756-543bdab7f966@gmail.com> <20180914114625.877bd04b64067eb0b65f6009@gmail.com> Message-ID: Le 14/09/2018 ? 04:16, Me a ?crit?: > > Well, I have gotten soooooo close, but. :-( > With everyones' input (and a lot of QT doc searching), here's what I have found, noting > that the final step fails so the whole thing is moot really. > > 1. I can't re-order an existing menu but it is possible to insert a new menu at a > specific position by copying all the subsequent menu items from the insertion point > in the parent menu out to an array, creating the target menu item in the parent and then > re-adding the copied out items. This got around the virtual class problem with .Menu.Children > as I can use Me.Children[index]. > > 2. I can't just "copy" those subsequent menu items, I have to unmarshall all their properties > into a Variant[] and then create new menu items in the parent. This has the drawback that > the copied items cannot have children, but that is outside the scope of my immediate goal. > The reason they have to be unmarshalled is that when I delete the original menu items it renders > any "copy" of the menu invalid. > > 3. To do the above I created a MenuManager class that knows about the current form's > menus and can manipulate them. It also knows about a "Position" property for the specific > menus I am looking at. > > 4. The whole idea falls over because the menu manager does its stuff when the menu is created. > Unfortunately, this seems to be too early in the form loading/startup when the .form file has not been > read. I have had that problem before with some custom controls and solved that by deferring the > mechanism until the control_Activate event fired, Menus don't have such an event, nor any other > suitably delayed event I could leverage. > > Such is life. Anyway I have used up the client's budget for this so I'll be puttting it away for now. > > One thing I have noticed though. The QT4/5 QWidget classes both have an > "insertAction(QAction * before, QAction * action)" function. My shallow reading of the docs leads me > to ask the question, "If the CMenu.cpp class used that instead > of addAction() in Menu_new, with an optional Position parameter could that get rid of the need to > rebuild the whole menu?" (or does &^*%E$$ gtk preclude that as an alternative?). Note the only thing > I can do with C++ is spell it. > > regards > b > AFAIK, GTK+ allows to insert a menu at a specific position, and to move them. But QT only allows to insert a menu at a specific position. You can't move them after they have been inserted. -- Beno?t Minisini From markus.schatten at foi.hr Fri Sep 14 18:15:07 2018 From: markus.schatten at foi.hr (Markus Schatten) Date: Fri, 14 Sep 2018 18:15:07 +0200 Subject: [Gambas-user] PhD position - Database forensics in Gambas Message-ID: Dear Gambas users, Please excuse me for advertising, but this job might be interesting to some of you. We are looking for a candidate for a PhD in database forensics for a tool (implemented in Gambas) we are working on. In case you are interested or know someone who might be, please do not hesitate to contact me. I'm forwarding the whole listing below: ------ As part of the Erasmus+ project ISSES (Information Security Services Education in Serbia), the Croatian Science Foundation (HRZZ) sponsors a 4-year PhD position, which should be recruited at the Artificial Intelligence Laboratory and the Centre for Biometrics, Computer Forensics and Privacy at the University of Zagreb. The contest has been announced in the national gazette (in Croatian, under no. 1) here https://narodne-novine.nn.hr/clanci/oglasi/o8256553.html. The deadline for application is October 5th, 2018, but please inquire earlier since appropriate documentation has to be submitted. The subject of the doctoral dissertation is related to the field of database forensics, and the selected candidate will enroll in the doctoral study "Information Science" at the Faculty of Organization and Informatics. Terms & Conditions - Completed graduate university or integral studies (master level) of information technology or related disciplines. - The total average of grades at the previous levels of study (undergraduate, graduate or integrated study) sufficient for enrollment in doctoral studies. Desirable knowledge and skills: - Enthusiasm in the field of databases, data science and open-source, and the desire for learning and research. - Basics of computer forensics and forensic analysis. - Basics of relational database management systems (e.g. PostgreSQL, MySQL, SQLite, Oracle, MS SQL and / or others). - Basics of the so-called management system. NoSQL databases (e.g. MongoDB, CouchDB, Redis, Teradata, ZODB and / or others). - Good knowledge of programming languages for data processing (e.g. SQL, Datalog, map / reduction techniques, XQuery and / or other), programming languages for graphical interfaces (Visual Basic and / or Gambas etc.) and scripting languages for working with data (Python, NodeJS and / or R). - Programming Code Versions Management Tool (Git). Interested candidates can contact markus.schatten at foi.hr for further information on the project and work place. ------ All the best, M.S. -- Markus Schatten, PhD Associate professor and head of Artificial Intelligence Lab University of Zagreb Faculty of Organization and Informatics Pavlinska 2, 42000 Varazdin, Croatia http://www.foi.hr/nastavnici/schatten.markus/index.html http://www.researchgate.net/profile/Markus_Schatten1 http://ai.foi.hr -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Sep 21 04:19:32 2018 From: adamnt42 at gmail.com (Me) Date: Fri, 21 Sep 2018 11:49:32 +0930 Subject: [Gambas-user] Creating Actions at runtime Message-ID: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> I am trying to add a new menu at runtime. That works fine and it gets added into the Action.List. However, the menu has a shortcut and that doesn't get added into the shortcuts managed by Action.Configure. The code is pretty straightforward: Dim TestMenu as Menu TestMenu = New Menu(mnuFile) With TestMenu .Name="mnuTest" .Caption="Test Action" .ShortCut="CTRL+T" Action="MENU.Test" End With Any clues? b -- Me From bagonergi at gmail.com Fri Sep 21 09:49:27 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 21 Sep 2018 09:49:27 +0200 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> Message-ID: Il giorno ven 21 set 2018 alle ore 04:20 Me ha scritto: > I am trying to add a new menu at runtime. That works fine and it gets > added into the Action.List. However, the menu has a shortcut and that > doesn't get added into the shortcuts managed by Action.Configure. > The code is pretty straightforward: > Dim TestMenu as Menu > > TestMenu = New Menu(mnuFile) > With TestMenu > .Name="mnuTest" > .Caption="Test Action" > .ShortCut="CTRL+T" > Action="MENU.Test" > End With > > Any clues? > b > -- > Me > > Maybe by writing it this way: Public Sub Form_Open() Dim TestMenu As Menu TestMenu = New Menu(mnuFile) With TestMenu .Name = "mnuTest" .Caption = "Test Action" '.ShortCut = "CTRL+T" .Action = "menu-test" End With Action["menu-test"].Shortcut = "CTRL+T" End Public Sub Action_Activate(sKey As String) As Boolean Select Case sKey Case "menu-test" Print "menu test" End Select End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Fri Sep 21 10:54:28 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 21 Sep 2018 10:54:28 +0200 Subject: [Gambas-user] Size of a directory Message-ID: Hello, how do I determine the size (ilDirSize As Long) of a directory using Gambas? With kind regards Hans From g4mba5 at gmail.com Fri Sep 21 11:26:18 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 21 Sep 2018 11:26:18 +0200 Subject: [Gambas-user] Size of a directory In-Reply-To: References: Message-ID: Le 21/09/2018 ? 10:54, Hans Lehmann a ?crit?: > Hello, > > how do I determine the size (ilDirSize As Long) of a directory using > Gambas? > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > You can't, because on Unix there is no system call to get the size of a directory. And I never understood the reason why they didn't implement that. You have to browse the directory, and add the size of each file one by one. Very slow... -- Beno?t Minisini From rwe-sse at osnanet.de Fri Sep 21 11:52:30 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 21 Sep 2018 11:52:30 +0200 Subject: [Gambas-user] Size of a directory In-Reply-To: References: Message-ID: Am 21.09.2018 um 11:26 schrieb Beno?t Minisini: > Le 21/09/2018 ? 10:54, Hans Lehmann a ?crit?: >> Hello, >> >> how do I determine the size (ilDirSize As Long) of a directory using >> Gambas? >> >> With kind regards >> >> Hans >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > You can't, because on Unix there is no system call to get the size of a > directory. And I never understood the reason why they didn't implement > that. > > You have to browse the directory, and add the size of each file one by > one. Very slow... > The reason is, what do want to know: only the size of the directory itself, or recursively all subdirectories too, and do you want files from links being included or excluded, and if so, only softlinks or hardlinks, and do you want a size in bytes or clusters...??? A ready-made function by the filesystem would not do anything else than a function you code for yourself in, say, C, and it could not be any faster. And it would have to cope with all exceptions and special wishes, so a decent one made for yourself would be almost faster anyway. As far as I heard, the most advanced file systems like Btrfs (though I don't like it) offer such fancies. From Gambas this would mean to shell out and call the commandline function for it. Whereas - when we speak of Btrfs - the size left on the media is only a rough guess, so they recommend to keep at least 20 % as a security buffer. You will know why once you crossed the limit... But when you stay whithin one directory and leave out any linked files and do not go recursive, then it can be rather fast. I know that from midnight commander. Regards Rolf From pierrehenri.giraud at gmail.com Fri Sep 21 13:13:58 2018 From: pierrehenri.giraud at gmail.com (Pierre Henri) Date: Fri, 21 Sep 2018 13:13:58 +0200 Subject: [Gambas-user] Probleme Creation page Web insertion scripts et css Message-ID: Bonjour Dans un app .html qui contient css, javascript je souhaite extraire les css et le javascript. GB3 me permet de creer ces fichiers vides dans le dossier DATA, dans lesquels je transf?re le code javascript dans un fichier .js, le code css dans un fichier.css. Ensuite je remplace les css de la page principale par le link adequate et le nom du fichier css. Meme chose pour le javascript o? je met un . Au lancement je constate que les css ne sont pas chargees et bien entendu le fichier javascript. Ma question: dois-je preciser un repertoire? Tant pour le css que js? J'ai tout essaye. Rien ne fonctionne! Merci de votre aide. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Sep 21 13:30:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 21 Sep 2018 13:30:40 +0200 Subject: [Gambas-user] Probleme Creation page Web insertion scripts et css In-Reply-To: References: Message-ID: Le 21/09/2018 ? 13:13, Pierre Henri a ?crit?: > Bonjour > > Dans un app .html qui contient css, javascript je souhaite extraire les > css et le javascript. > GB3 me permet de creer ces fichiers vides dans le dossier DATA, dans > lesquels je transf?re le code javascript dans un fichier .js, le code > css dans un fichier.css. > Ensuite je remplace les css de la page principale par le link adequate > et le nom du fichier css. Meme chose pour le javascript o? je met un > . > Au lancement je constate que les css ne sont pas chargees et bien > entendu le fichier javascript. > Ma question: dois-je preciser un repertoire? Tant pour le css que js? > J'ai tout essaye. Rien ne fonctionne! > Merci de votre aide. > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > This is an english mailing-list. Please post in english! -- Beno?t Minisini From adamnt42 at gmail.com Fri Sep 21 14:20:28 2018 From: adamnt42 at gmail.com (Me) Date: Fri, 21 Sep 2018 21:50:28 +0930 Subject: [Gambas-user] Size of a directory In-Reply-To: References: Message-ID: <20180921215028.6844a2f1c3373e6a79b4d0f1@gmail.com> On Fri, 21 Sep 2018 11:52:30 +0200 Rolf-Werner Eilert wrote: > Am 21.09.2018 um 11:26 schrieb Beno?t Minisini: > > Le 21/09/2018 ? 10:54, Hans Lehmann a ?crit?: > >> Hello, > >> > >> how do I determine the size (ilDirSize As Long) of a directory using > >> Gambas? > >> > >> With kind regards > >> > >> Hans > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > >> > > > > You can't, because on Unix there is no system call to get the size of a > > directory. And I never understood the reason why they didn't implement > > that. > > > > You have to browse the directory, and add the size of each file one by > > one. Very slow... > > > > The reason is, what do want to know: only the size of the directory > itself, or recursively all subdirectories too, and do you want files > from links being included or excluded, and if so, only softlinks or > hardlinks, and do you want a size in bytes or clusters...??? > > A ready-made function by the filesystem would not do anything else than > a function you code for yourself in, say, C, and it could not be any > faster. And it would have to cope with all exceptions and special > wishes, so a decent one made for yourself would be almost faster anyway. > > As far as I heard, the most advanced file systems like Btrfs (though I > don't like it) offer such fancies. From Gambas this would mean to shell > out and call the commandline function for it. Whereas - when we speak of > Btrfs - the size left on the media is only a rough guess, so they > recommend to keep at least 20 % as a security buffer. You will know why > once you crossed the limit... > > But when you stay whithin one directory and leave out any linked files > and do not go recursive, then it can be rather fast. I know that from > midnight commander. > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- du Don't know. Is that still around? Back in the good old days of limited disk space that was the goto to find out who/where the disk hogs were. Lots of command line options and you have to parse the output, But it beats the hell out of writing recursive ... du -shu ..nope ... du -sh * ... nope man du ...nope info du ? ...no i dont have info any more. ah to hell with it... https://www.google.com/search?q=linux+du+command&ie=utf-8&oe=utf-8&client=firefox-b-ab hth b -- Me From sebikul at gmail.com Fri Sep 21 14:24:32 2018 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Fri, 21 Sep 2018 09:24:32 -0300 Subject: [Gambas-user] Size of a directory In-Reply-To: <20180921215028.6844a2f1c3373e6a79b4d0f1@gmail.com> References: <20180921215028.6844a2f1c3373e6a79b4d0f1@gmail.com> Message-ID: ? already implemented that solution in a module here: https://github.com/sebikul/mundus/blob/master/.src/PathHelper.module You are free to use it if it suits your needs! Regards On Fri, Sep 21, 2018, 09:21 Me wrote: > On Fri, 21 Sep 2018 11:52:30 +0200 > Rolf-Werner Eilert wrote: > > > Am 21.09.2018 um 11:26 schrieb Beno?t Minisini: > > > Le 21/09/2018 ? 10:54, Hans Lehmann a ?crit : > > >> Hello, > > >> > > >> how do I determine the size (ilDirSize As Long) of a directory using > > >> Gambas? > > >> > > >> With kind regards > > >> > > >> Hans > > >> > > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > >> > > > > > > You can't, because on Unix there is no system call to get the size of > a > > > directory. And I never understood the reason why they didn't implement > > > that. > > > > > > You have to browse the directory, and add the size of each file one by > > > one. Very slow... > > > > > > > The reason is, what do want to know: only the size of the directory > > itself, or recursively all subdirectories too, and do you want files > > from links being included or excluded, and if so, only softlinks or > > hardlinks, and do you want a size in bytes or clusters...??? > > > > A ready-made function by the filesystem would not do anything else than > > a function you code for yourself in, say, C, and it could not be any > > faster. And it would have to cope with all exceptions and special > > wishes, so a decent one made for yourself would be almost faster anyway. > > > > As far as I heard, the most advanced file systems like Btrfs (though I > > don't like it) offer such fancies. From Gambas this would mean to shell > > out and call the commandline function for it. Whereas - when we speak of > > Btrfs - the size left on the media is only a rough guess, so they > > recommend to keep at least 20 % as a security buffer. You will know why > > once you crossed the limit... > > > > But when you stay whithin one directory and leave out any linked files > > and do not go recursive, then it can be rather fast. I know that from > > midnight commander. > > > > Regards > > Rolf > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > du > > Don't know. Is that still around? Back in the good old days of limited > disk space that was the goto > to find out who/where the disk hogs were. Lots of command line options and > you have to parse > the output, But it beats the hell out of writing recursive ... > > du -shu ..nope ... > du -sh * ... nope > man du ...nope > info du ? ...no i dont have info any more. > > ah to hell with it... > https://www.google.com/search?q=linux+du+command&ie=utf-8&oe=utf-8&client=firefox-b-ab > > hth > b > -- > Me > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Sep 21 16:46:40 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 21 Sep 2018 10:46:40 -0400 Subject: [Gambas-user] Size of a directory In-Reply-To: References: <20180921215028.6844a2f1c3373e6a79b4d0f1@gmail.com> Message-ID: pathhelper get's dir size or dirsize+recursive ? i can see implement by the du commandline.. if root access? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-09-21 8:24 GMT-04:00 Sebasti?n Kulesz : > ? already implemented that solution in a module here: https://github.com/ > sebikul/mundus/blob/master/.src/PathHelper.module > > You are free to use it if it suits your needs! > > Regards > > > On Fri, Sep 21, 2018, 09:21 Me wrote: > >> On Fri, 21 Sep 2018 11:52:30 +0200 >> Rolf-Werner Eilert wrote: >> >> > Am 21.09.2018 um 11:26 schrieb Beno?t Minisini: >> > > Le 21/09/2018 ? 10:54, Hans Lehmann a ?crit : >> > >> Hello, >> > >> >> > >> how do I determine the size (ilDirSize As Long) of a directory using >> > >> Gambas? >> > >> >> > >> With kind regards >> > >> >> > >> Hans >> > >> >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > >> >> > > >> > > You can't, because on Unix there is no system call to get the size of >> a >> > > directory. And I never understood the reason why they didn't >> implement >> > > that. >> > > >> > > You have to browse the directory, and add the size of each file one >> by >> > > one. Very slow... >> > > >> > >> > The reason is, what do want to know: only the size of the directory >> > itself, or recursively all subdirectories too, and do you want files >> > from links being included or excluded, and if so, only softlinks or >> > hardlinks, and do you want a size in bytes or clusters...??? >> > >> > A ready-made function by the filesystem would not do anything else than >> > a function you code for yourself in, say, C, and it could not be any >> > faster. And it would have to cope with all exceptions and special >> > wishes, so a decent one made for yourself would be almost faster anyway. >> > >> > As far as I heard, the most advanced file systems like Btrfs (though I >> > don't like it) offer such fancies. From Gambas this would mean to shell >> > out and call the commandline function for it. Whereas - when we speak >> of >> > Btrfs - the size left on the media is only a rough guess, so they >> > recommend to keep at least 20 % as a security buffer. You will know why >> > once you crossed the limit... >> > >> > But when you stay whithin one directory and leave out any linked files >> > and do not go recursive, then it can be rather fast. I know that from >> > midnight commander. >> > >> > Regards >> > Rolf >> > >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> >> du >> >> Don't know. Is that still around? Back in the good old days of limited >> disk space that was the goto >> to find out who/where the disk hogs were. Lots of command line options >> and you have to parse >> the output, But it beats the hell out of writing recursive ... >> >> du -shu ..nope ... >> du -sh * ... nope >> man du ...nope >> info du ? ...no i dont have info any more. >> >> ah to hell with it... https://www.google.com/search? >> q=linux+du+command&ie=utf-8&oe=utf-8&client=firefox-b-ab >> >> hth >> b >> -- >> Me >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Fri Sep 21 17:30:14 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Fri, 21 Sep 2018 11:30:14 -0400 Subject: [Gambas-user] Size of a directory In-Reply-To: References: Message-ID: <904c7b58-e132-633f-2585-bc1eb35dc27e@ajm-software.com> Here's an all Gambas function.? It's recursive and includes the size of the original directory.? It's comparable in speed to du. Public Function ScanDir(sDir As String) As Long ? Dim sFile As String ? Dim sPath As String ? Dim hStat As Stat ? Dim aDir As String[] ? Dim iSize As Long ? Try hStat = Stat(sDir) ? If Error Then Return -1 ? iSize = hStat.Size ? If hStat.Type <> gb.Directory Then Return iSize ? Try aDir = Dir(sDir) ? For Each sFile In aDir ??? sPath = sDir &/ sFile ??? Try hStat = Stat(sPath) ??? If Error Then Continue ??? With hStat ????? If .Type = gb.Directory Then ??????? Try iSize += ScanDir(sPath) ????? Endif ????? Try iSize += .Size ??? End With ? Next ? Return iSize End On 2018-09-21 3:54 a.m., Hans Lehmann wrote: > Hello, > > how do I determine the size (ilDirSize As Long) of a directory using > Gambas? > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From gambas.fr at gmail.com Sat Sep 22 09:04:10 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 22 Sep 2018 09:04:10 +0200 Subject: [Gambas-user] Size of a directory In-Reply-To: <904c7b58-e132-633f-2585-bc1eb35dc27e@ajm-software.com> References: <904c7b58-e132-633f-2585-bc1eb35dc27e@ajm-software.com> Message-ID: Le ven. 21 sept. 2018 17:47, Tony Morehen a ?crit : > Here's an all Gambas function. It's recursive and includes the size of > the original directory. It's comparable in speed to du. > > Public Function ScanDir(sDir As String) As Long > > Dim sFile As String > Dim sPath As String > Dim hStat As Stat > Dim aDir As String[] > Dim iSize As Long > > Try hStat = Stat(sDir) > If Error Then Return -1 > iSize = hStat.Size > If hStat.Type <> gb.Directory Then Return iSize > Try aDir = Dir(sDir) > > For Each sFile In aDir > > sPath = sDir &/ sFile > Try hStat = Stat(sPath) > If Error Then Continue > > With hStat > If .Type = gb.Directory Then > Try iSize += ScanDir(sPath) > Endif > Try iSize += .Size > End With > Next > Return iSize > > End > This is not a bad function but there is some little things illogical. You must not manage errors is the function as it return in this case a false value not managed. It is better if you let Gambas propagate an error you manage then on the initial call. Public Function ScanDir(sDir As String) As Long Dim sFile As String Dim sPath As String Dim hStat As Stat Dim iSize As Long 'Generate an error if it is not a dir For Each sFile In Dir (sDir) sPath = sDir &/ sFile hStat = Stat(sPath) With hStat If .Type = gb.Directory Then iSize += ScanDir(sPath) Endif iSize += .Size End With Next Return iSize End Use will be Try ISize =Scandir (sDir) If error then... it is not possible to get the dir size. In this function we can (need) add management for links -- Fabien > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Sep 23 09:27:13 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 23 Sep 2018 09:27:13 +0200 Subject: [Gambas-user] Using strings like objects Message-ID: <96c17671-d74f-841f-1eab-22f17c84410b@gmail.com> Hi, Since last commit, I allowed strings to be used like objects. This is not syntactic sugar, as it is entirely implemented in the interpreter. So now, if S is a string, you can do the following: S[N] to get the N-th character of the string. Beware! Contrary to string subroutines, the first character position is zero. It's like using the string as a character array. S[N, L] is an equivalent of Mid$(S, N + 1, L). S.Len returns the length of the string. S[] only deals with byte position, it can't handle UTF-8. That new syntax is slower than calling directly Mid$() and Len(), but I don't think we will notice the difference. Maybe I will add a S.Max property to returns the length minus one, but I don't think I will implement all the string routines as object methods. Tell me what you think about that. -- Beno?t Minisini From hans at gambas-buch.de Sun Sep 23 09:57:25 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 23 Sep 2018 09:57:25 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) Message-ID: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> Hello, I don't understand the documentation for the Move ... Kill function (File & Directory Functions), nor do I recognize a typical application of this function. Can anyone help me with a good explanation and an example? Yours sincerely Hans From gambas.fr at gmail.com Sun Sep 23 10:36:23 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 23 Sep 2018 10:36:23 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> Message-ID: Kill path-to-file Delete a file Move path-of-source To path-of-target move and/or rename a file Le dim. 23 sept. 2018 09:58, Hans Lehmann a ?crit : > Hello, > > I don't understand the documentation for the Move ... Kill function > (File & Directory Functions), nor do I recognize a typical application > of this function. Can anyone help me with a good explanation and an > example? > > Yours sincerely > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Sep 23 11:07:48 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 23 Sep 2018 11:07:48 +0200 Subject: [Gambas-user] Using strings like objects In-Reply-To: <96c17671-d74f-841f-1eab-22f17c84410b@gmail.com> References: <96c17671-d74f-841f-1eab-22f17c84410b@gmail.com> Message-ID: Le dim. 23 sept. 2018 09:28, Beno?t Minisini a ?crit : > Hi, > > Since last commit, I allowed strings to be used like objects. > > This is not syntactic sugar, as it is entirely implemented in the > interpreter. > > So now, if S is a string, you can do the following: > > S[N] to get the N-th character of the string. Beware! Contrary to string > subroutines, the first character position is zero. It's like using the > string as a character array. > > S[N, L] is an equivalent of Mid$(S, N + 1, L). > > S.Len returns the length of the string. > > S[] only deals with byte position, it can't handle UTF-8. > > That new syntax is slower than calling directly Mid$() and Len(), but I > don't think we will notice the difference. > > Maybe I will add a S.Max property to returns the length minus one, but I > don't think I will implement all the string routines as object methods. > > Tell me what you think about that. > I think it's coool but I want all the string functions ? > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Sep 23 11:26:52 2018 From: adamnt42 at gmail.com (Me) Date: Sun, 23 Sep 2018 18:56:52 +0930 Subject: [Gambas-user] Using strings like objects In-Reply-To: <96c17671-d74f-841f-1eab-22f17c84410b@gmail.com> References: <96c17671-d74f-841f-1eab-22f17c84410b@gmail.com> Message-ID: <20180923185652.4d4eff31d65b6e08dd12536e@gmail.com> On Sun, 23 Sep 2018 09:27:13 +0200 Beno?t Minisini wrote: > Hi, > > Since last commit, I allowed strings to be used like objects. > > This is not syntactic sugar, as it is entirely implemented in the > interpreter. > > So now, if S is a string, you can do the following: > > S[N] to get the N-th character of the string. Beware! Contrary to string > subroutines, the first character position is zero. It's like using the > string as a character array. > > S[N, L] is an equivalent of Mid$(S, N + 1, L). > > S.Len returns the length of the string. > > S[] only deals with byte position, it can't handle UTF-8. > > That new syntax is slower than calling directly Mid$() and Len(), but I > don't think we will notice the difference. > > Maybe I will add a S.Max property to returns the length minus one, but I > don't think I will implement all the string routines as object methods. > > Tell me what you think about that. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- I think that is wonderful! Only one thing, we often have to search backwards in strings for various reasons, so S.Reverse would be a great help. regards b -- Me From hans at gambas-buch.de Sun Sep 23 11:35:48 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 23 Sep 2018 11:35:48 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> Message-ID: <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> Hello, I'm sorry, but I meant this: MOVE OldName KILL NewName Yours sincerely Hans From gambas.fr at gmail.com Sun Sep 23 11:40:10 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 23 Sep 2018 11:40:10 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> Message-ID: Normally a move to an existing file will raise an error 'file already exist' In this case kill act like an option that erase the dest file first and then move can do the job Le dim. 23 sept. 2018 11:36, Hans Lehmann a ?crit : > Hello, > > I'm sorry, but I meant this: MOVE OldName KILL NewName > > Yours sincerely > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Sep 23 15:42:19 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 23 Sep 2018 15:42:19 +0200 Subject: [Gambas-user] Using strings like objects In-Reply-To: <20180923185652.4d4eff31d65b6e08dd12536e@gmail.com> References: <96c17671-d74f-841f-1eab-22f17c84410b@gmail.com> <20180923185652.4d4eff31d65b6e08dd12536e@gmail.com> Message-ID: And sugards ;-) S[5,3] = "toto" s.replace("&1", "toto") i = s.left(3) etc. s[s.instr("test"), s.len] = Mid(s, instr(s, "test"),len(s)) Le dim. 23 sept. 2018 ? 11:27, Me a ?crit : > On Sun, 23 Sep 2018 09:27:13 +0200 > Beno?t Minisini wrote: > > > Hi, > > > > Since last commit, I allowed strings to be used like objects. > > > > This is not syntactic sugar, as it is entirely implemented in the > > interpreter. > > > > So now, if S is a string, you can do the following: > > > > S[N] to get the N-th character of the string. Beware! Contrary to string > > subroutines, the first character position is zero. It's like using the > > string as a character array. > > > > S[N, L] is an equivalent of Mid$(S, N + 1, L). > > > > S.Len returns the length of the string. > > > > S[] only deals with byte position, it can't handle UTF-8. > > > > That new syntax is slower than calling directly Mid$() and Len(), but I > > don't think we will notice the difference. > > > > Maybe I will add a S.Max property to returns the length minus one, but I > > don't think I will implement all the string routines as object methods. > > > > Tell me what you think about that. > > > > -- > > Beno?t Minisini > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > I think that is wonderful! Only one thing, we often have to search > backwards in strings for various reasons, so > S.Reverse would be a great help. > > regards > b > > > -- > Me > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sun Sep 23 16:01:58 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 23 Sep 2018 16:01:58 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> Message-ID: <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> Hello Fabien, thank you very much for the short explanation - fits. The function chain 'MOVE OldName KILL NewName' obviously replaces the following source code: If Not (Exist(sDestinationPath & sFileName)) Then ?? Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName Else ?? Kill sDestinationPath &/ sFileName ?? Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName ?? If Error Then ????? Message.Error("Error! " & Error.Text) ????? Return ?? Endif Endif Is this correct? Yours sincerely Hans From gambas.fr at gmail.com Sun Sep 23 16:03:50 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 23 Sep 2018 16:03:50 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> Message-ID: The second part yes Le dim. 23 sept. 2018 16:02, Hans Lehmann a ?crit : > Hello Fabien, > > thank you very much for the short explanation - fits. > The function chain 'MOVE OldName KILL NewName' obviously replaces the > following source code: > > If Not (Exist(sDestinationPath & sFileName)) Then > Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName > Else > Kill sDestinationPath &/ sFileName > Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName > If Error Then > Message.Error("Error! " & Error.Text) > Return > Endif > Endif > > Is this correct? > > Yours sincerely > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sun Sep 23 16:34:51 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 23 Sep 2018 16:34:51 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> Message-ID: Hello Fabien, thank you so much for your answer. Here is the modified and verified source code: Public Sub btnMoveKill_Click() ? Dim sSourcePath, sDestinationPath, sFilename As String ? sSourcePath = User.Home &/ "DW" ? sDestinationPath = User.Home &/ "GB3BUCH" ? sFileName = "dokuwiki_syntax.txt" ' Check whether the file to be moved exists. ? If Exist(sSourcePath &/ sFileName) Then ?? ' Now check if moveto directory exists ???? If Not Exist(sDestinationPath) Then ??????? Try Mkdir sDestinationPath ??????? If Error Then ?????????? Message.Error("Error! " & Error.Text) ?????????? Return ??????? Endif ???? Endif ? ' Now the file is moved ??? Move sSourcePath &/ sFileName Kill sDestinationPath &/ sFileName ? Else ???? Message.Error("File not exist: " & sFileName) ???? Return ? Endif ? Message.Info("File '" & sFileName & "' successfully moved!") End Hans From gambas.fr at gmail.com Sun Sep 23 16:48:03 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 23 Sep 2018 16:48:03 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> Message-ID: Public Sub btnMoveKill_Click() Dim sSourcePath, sDestinationPath, sFilename As String sSourcePath = User.Home &/ "DW" sDestinationPath = User.Home &/ "GB3BUCH" sFileName = "dokuwiki_syntax.txt" ' Check whether the file to be moved exists. If Exist(sSourcePath &/ sFileName) Then Message.Error("File not exist: " & sFileName) Return Endif Move sSourcePath &/ sFileName Kill sDestinationPath &/ sFileName Message.Info("File '" & sFileName & "' successfully moved!") End Public Sub btnMoveKill_Click() Dim sSourcePath, sDestinationPath, sFilename As String sSourcePath = User.Home &/ "DW" sDestinationPath = User.Home &/ "GB3BUCH" sFileName = "dokuwiki_syntax.txt" ' Check whether the file to be moved exists. Move sSourcePath &/ sFileName Kill sDestinationPath &/ sFileName Message.Info("File '" & sFileName & "' successfully moved!") Catch Message.Error(Error.Text) End i think the second way can do the job too but i've not tested it yet Le dim. 23 sept. 2018 16:35, Hans Lehmann a ?crit : > Hello Fabien, > > thank you so much for your answer. > Here is the modified and verified source code: > > Public Sub btnMoveKill_Click() > > Dim sSourcePath, sDestinationPath, sFilename As String > > sSourcePath = User.Home &/ "DW" > sDestinationPath = User.Home &/ "GB3BUCH" > sFileName = "dokuwiki_syntax.txt" > > ' Check whether the file to be moved exists. > If Exist(sSourcePath &/ sFileName) Then > ' Now check if moveto directory exists > If Not Exist(sDestinationPath) Then > Try Mkdir sDestinationPath > If Error Then > Message.Error("Error! " & Error.Text) > Return > Endif > Endif > ' Now the file is moved > Move sSourcePath &/ sFileName Kill sDestinationPath &/ sFileName > Else > Message.Error("File not exist: " & sFileName) > Return > Endif > > Message.Info("File '" & sFileName & "' successfully moved!") > > End > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Sep 23 17:06:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 23 Sep 2018 17:06:40 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> Message-ID: <2665abcd-7d95-d8bd-e151-f7e6317a74d0@gmail.com> Le 23/09/2018 ? 16:01, Hans Lehmann a ?crit?: > Hello Fabien, > > thank you very much for the short explanation - fits. > The function chain 'MOVE OldName KILL NewName' obviously replaces the > following source code: > > If Not (Exist(sDestinationPath & sFileName)) Then > ?? Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName > Else > ?? Kill sDestinationPath &/ sFileName > ?? Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName > ?? If Error Then > ????? Message.Error("Error! " & Error.Text) > ????? Return > ?? Endif > Endif > > Is this correct? > > Yours sincerely > > Hans > Not really: the important word in the command description is "atomic". Killing and then moving the file does the same thing, but not atomically, i.e. there is a time interval during which the target file does not exist. Which is not the case with the MOVE ... KILL ... variant. Linux guarantees that the target file always exist (being the older or the newer). This is very important if you need to save a file, being able to rollback if there is a problem, and always have a correct version existing on the disk. Regards, -- Beno?t Minisini From tmorehen at ajm-software.com Sun Sep 23 16:53:02 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sun, 23 Sep 2018 10:53:02 -0400 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> Message-ID: A note of caution: Move cannot move a file between drives.? It fails with error code 38 System error #18: Invalid cross-device link. In such a case, you must copy the file then delete the source. I'm not sure what happens in such a case with Move...Kill.? Does the Kill destination happen before the error?? Is that a problem? On 2018-09-23 9:34 a.m., Hans Lehmann wrote: > Hello Fabien, > > thank you so much for your answer. > Here is the modified and verified source code: > > Public Sub btnMoveKill_Click() > > ? Dim sSourcePath, sDestinationPath, sFilename As String > > ? sSourcePath = User.Home &/ "DW" > ? sDestinationPath = User.Home &/ "GB3BUCH" > ? sFileName = "dokuwiki_syntax.txt" > > ' Check whether the file to be moved exists. > ? If Exist(sSourcePath &/ sFileName) Then > ?? ' Now check if moveto directory exists > ???? If Not Exist(sDestinationPath) Then > ??????? Try Mkdir sDestinationPath > ??????? If Error Then > ?????????? Message.Error("Error! " & Error.Text) > ?????????? Return > ??????? Endif > ???? Endif > ? ' Now the file is moved > ??? Move sSourcePath &/ sFileName Kill sDestinationPath &/ sFileName > ? Else > ???? Message.Error("File not exist: " & sFileName) > ???? Return > ? Endif > > ? Message.Info("File '" & sFileName & "' successfully moved!") > > End > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From tmorehen at ajm-software.com Sun Sep 23 17:17:51 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sun, 23 Sep 2018 11:17:51 -0400 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: <2665abcd-7d95-d8bd-e151-f7e6317a74d0@gmail.com> References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> <2665abcd-7d95-d8bd-e151-f7e6317a74d0@gmail.com> Message-ID: <85cf5fa9-f11e-83ff-3f90-9c5566321514@ajm-software.com> This answers my concern. On 2018-09-23 10:06 a.m., Beno?t Minisini wrote: > Le 23/09/2018 ? 16:01, Hans Lehmann a ?crit?: >> Hello Fabien, >> >> thank you very much for the short explanation - fits. >> The function chain 'MOVE OldName KILL NewName' obviously replaces the >> following source code: >> >> If Not (Exist(sDestinationPath & sFileName)) Then >> ??? Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName >> Else >> ??? Kill sDestinationPath &/ sFileName >> ??? Try Copy sSourcePath &/ sFileName To sDestinationPath &/ sFileName >> ??? If Error Then >> ?????? Message.Error("Error! " & Error.Text) >> ?????? Return >> ??? Endif >> Endif >> >> Is this correct? >> >> Yours sincerely >> >> Hans >> > > Not really: the important word in the command description is "atomic". > > Killing and then moving the file does the same thing, but not > atomically, i.e. there is a time interval during which the target file > does not exist. > > Which is not the case with the MOVE ... KILL ... variant. Linux > guarantees that the target file always exist (being the older or the > newer). > > This is very important if you need to save a file, being able to > rollback if there is a problem, and always have a correct version > existing on the disk. > > Regards, > From hans at gambas-buch.de Sun Sep 23 18:04:51 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 23 Sep 2018 18:04:51 +0200 Subject: [Gambas-user] Move ... Kill function (File & Directory Functions) In-Reply-To: References: <82f9fd87-920a-a4d0-32eb-32d73124b229@gambas-buch.de> <91aada27-81d1-4321-9a58-42a26c90dd09@gambas-buch.de> <231280b3-def6-b6be-435e-c12c7faf3ac8@gambas-buch.de> Message-ID: <63d736b8-e828-8403-fb09-0669ef1bff8f@gambas-buch.de> Am 23.09.2018 um 16:48 schrieb Fabien Bodard: > Public Sub btnMoveKill_Click() > Dim sSourcePath, sDestinationPath, sFilename As String > > ? ?sSourcePath = User.Home &/ "DW" > ? ?sDestinationPath = User.Home &/ "GB3BUCH" > ? ?sFileName = "dokuwiki_syntax.txt" > > ' Check whether the file to be moved exists. > ? Move sSourcePath &/ sFileName Kill sDestinationPath &/ sFileName > ? Message.Info("File '" & sFileName & "' successfully moved!") > Catch > ? Message.Error(Error.Text) > End > > > i think the second way can do the job too but i've not tested it yet Hello Fabien, the shortened variant also works well.Thanks! Greetings Hans From charlie at cogier.com Sun Sep 23 22:49:25 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 23 Sep 2018 21:49:25 +0100 Subject: [Gambas-user] Children Clear problem Message-ID: Hi, Can you please test the attached and confirm that this is a bug. All I want to do is clear a Frame or Panel with *Frame1**.Children.Clear* but the program crashes if using *gb.gui* or *gb.gtk3* but not if running *gb.gui.qt* however using that causes other issues. The *System Information* is in the program. This came to light when installing my program *Four2Nine* which is on the Farm. Thanks for any help. Charlie Ogier -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ChildrenTest-0.0.1.tar.gz Type: application/gzip Size: 13122 bytes Desc: not available URL: From bagonergi at gmail.com Mon Sep 24 09:28:21 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 24 Sep 2018 09:28:21 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: Message-ID: Hi Charlie, the Clear property is for TextBox, TextArea and ComboBox only. Regards Gianluigi Il giorno dom 23 set 2018 alle ore 23:12 Charlie Ogier ha scritto: > Hi, > > Can you please test the attached and confirm that this is a bug. All I > want to do is clear a Frame or Panel with *Frame1**.Children.Clear* but > the program crashes if using *gb.gui* or *gb.gtk3* but not if running > *gb.gui.qt* however using that causes other issues. The *System > Information* is in the program. This came to light when installing my > program *Four2Nine* which is on the Farm. > > Thanks for any help. > > Charlie Ogier > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 24 09:40:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 24 Sep 2018 09:40:33 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: Message-ID: Hi Charlie, I wrote property, but meant Method. Sorry Gianluigi Il giorno lun 24 set 2018 alle ore 09:28 Gianluigi ha scritto: > Hi Charlie, > the Clear property is for TextBox, TextArea and ComboBox only. > > Regards > Gianluigi > > Il giorno dom 23 set 2018 alle ore 23:12 Charlie Ogier > ha scritto: > >> Hi, >> >> Can you please test the attached and confirm that this is a bug. All I >> want to do is clear a Frame or Panel with *Frame1**.Children.Clear* but >> the program crashes if using *gb.gui* or *gb.gtk3* but not if running >> *gb.gui.qt* however using that causes other issues. The *System >> Information* is in the program. This came to light when installing my >> program *Four2Nine* which is on the Farm. >> >> Thanks for any help. >> >> Charlie Ogier >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Sep 24 10:04:21 2018 From: adamnt42 at gmail.com (Me) Date: Mon, 24 Sep 2018 17:34:21 +0930 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: Message-ID: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> On Mon, 24 Sep 2018 09:28:21 +0200 Gianluigi wrote: > Hi Charlie, > the Clear property is for TextBox, TextArea and ComboBox only. > > Regards > Gianluigi > He is asking about .Container.Children.Clear() NOT somecontrol.Clear please read the questions/ b -- Me From bagonergi at gmail.com Mon Sep 24 10:50:46 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 24 Sep 2018 10:50:46 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> References: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> Message-ID: Il giorno lun 24 set 2018 alle ore 10:05 Me ha scritto: > On Mon, 24 Sep 2018 09:28:21 +0200 > Gianluigi wrote: > > > Hi Charlie, > > the Clear property is for TextBox, TextArea and ComboBox only. > > > > Regards > > Gianluigi > > > He is asking about .Container.Children.Clear() NOT somecontrol.Clear > please read the questions/ > b > > -- > Me > > In fact. Childrens containers are: TextBox1 TextLabel1 TextArea1 ComboBox1 LCDLabel1 Spinner1 SwitchButton1 Slider1 SpinBox1 And of these only TextBox1, TextArea1 and ComboBox1 have the clear method. I thought that the malfunction is caused by this. Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Sep 24 11:05:50 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 24 Sep 2018 11:05:50 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> Message-ID: > > in fact he call the true method to destroy children : > http://gambaswiki.org/wiki/comp/gb.qt4/.container.children/clear this is a bug . it crash for me in all gtk libs -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Sep 24 11:15:19 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 24 Sep 2018 11:15:19 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> Message-ID: Can you add a ticket in the bugtracker ? Le lun. 24 sept. 2018 11:05, Fabien Bodard a ?crit : > in fact he call the true method to destroy children : >> > > http://gambaswiki.org/wiki/comp/gb.qt4/.container.children/clear > > this is a bug . > > it crash for me in all gtk libs > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 24 11:20:04 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 24 Sep 2018 11:20:04 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> Message-ID: Il giorno lun 24 set 2018 alle ore 11:07 Fabien Bodard ha scritto: > in fact he call the true method to destroy children : >> > > http://gambaswiki.org/wiki/comp/gb.qt4/.container.children/clear > > this is a bug . > > it crash for me in all gtk libs > > I'm sorry, I didn't know the method. Whoever misunderstands, the worse he replies :-( I confirm the malfunction with gtk Regards Gianluigi P.S. Charlie's a friend. I hope he'll excuse me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Sep 24 11:34:46 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 24 Sep 2018 11:34:46 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: Message-ID: <9a9c17a7-f537-5dd7-7b0d-3bf29b706aec@gmail.com> Le 23/09/2018 ? 22:49, Charlie Ogier a ?crit?: > Hi, > > Can you please test the attached and confirm that this is a bug. All I > want to do is clear a Frame or Panel with *Frame1**.Children.Clear* but > the program crashes if using *gb.gui* or *gb.gtk3* but not if running > *gb.gui.qt* however using that causes other issues. The *System > Information* is in the program. This came to light when installing my > program *Four2Nine* which is on the Farm. > > Thanks for any help. > > Charlie Ogier > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > It should be fixed in commit https://gitlab.com/gambas/gambas/commit/1fa73046549d07f380c8a89afd279317f9aee91e. Regards, -- Beno?t Minisini From gambas.fr at gmail.com Mon Sep 24 11:36:08 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 24 Sep 2018 11:36:08 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> Message-ID: Gianluigi just a little remember : to call an object property it will be : Panel.Children[n].Clear But this can't work as Children return Control class objects. This class have not Clear method. so to clear all object that need to be cleared in a container: Dim o as object for each o in Children try o.Clear next Object allow unknown function to be called and try avoid the error if the object returned by children have not this property. ... Well it was not the subject ... ;-) Le lun. 24 sept. 2018 ? 11:21, Gianluigi a ?crit : > > > Il giorno lun 24 set 2018 alle ore 11:07 Fabien Bodard < > gambas.fr at gmail.com> ha scritto: > >> in fact he call the true method to destroy children : >>> >> >> http://gambaswiki.org/wiki/comp/gb.qt4/.container.children/clear >> >> this is a bug . >> >> it crash for me in all gtk libs >> >> > I'm sorry, > I didn't know the method. > Whoever misunderstands, the worse he replies :-( > I confirm the malfunction with gtk > > Regards > Gianluigi > > P.S. Charlie's a friend. I hope he'll excuse me. > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Sep 24 11:41:02 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 24 Sep 2018 11:41:02 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: <9a9c17a7-f537-5dd7-7b0d-3bf29b706aec@gmail.com> References: <9a9c17a7-f537-5dd7-7b0d-3bf29b706aec@gmail.com> Message-ID: Le 24/09/2018 ? 11:34, Beno?t Minisini a ?crit?: > Le 23/09/2018 ? 22:49, Charlie Ogier a ?crit?: >> Hi, >> >> Can you please test the attached and confirm that this is a bug. All I >> want to do is clear a Frame or Panel with *Frame1**.Children.Clear* >> but the program crashes if using *gb.gui* or *gb.gtk3* but not if >> running *gb.gui.qt* however using that causes other issues. The >> *System Information* is in the program. This came to light when >> installing my program *Four2Nine* which is on the Farm. >> >> Thanks for any help. >> >> Charlie Ogier >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > It should be fixed in commit > https://gitlab.com/gambas/gambas/commit/1fa73046549d07f380c8a89afd279317f9aee91e. > > > Regards, > ...But there is a little problem: it is incompatible with another fix. -- Beno?t Minisini From gambas.fr at gmail.com Mon Sep 24 11:46:25 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 24 Sep 2018 11:46:25 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: <9a9c17a7-f537-5dd7-7b0d-3bf29b706aec@gmail.com> Message-ID: Le lun. 24 sept. 2018 ? 11:42, Beno?t Minisini a ?crit : > Le 24/09/2018 ? 11:34, Beno?t Minisini a ?crit : > > Le 23/09/2018 ? 22:49, Charlie Ogier a ?crit : > >> Hi, > >> > >> Can you please test the attached and confirm that this is a bug. All I > >> want to do is clear a Frame or Panel with *Frame1**.Children.Clear* > >> but the program crashes if using *gb.gui* or *gb.gtk3* but not if > >> running *gb.gui.qt* however using that causes other issues. The > >> *System Information* is in the program. This came to light when > >> installing my program *Four2Nine* which is on the Farm. > >> > >> Thanks for any help. > >> > >> Charlie Ogier > >> > >> > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > >> > > > > It should be fixed in commit > > > https://gitlab.com/gambas/gambas/commit/1fa73046549d07f380c8a89afd279317f9aee91e. > > > > > > > Regards, > > > > ...But there is a little problem: it is incompatible with another fix. > GTK... > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 24 12:09:52 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 24 Sep 2018 12:09:52 +0200 Subject: [Gambas-user] Children Clear problem In-Reply-To: References: <20180924173421.dcfd392755ac4a206c501be7@gmail.com> Message-ID: > ... Well it was not the subject ... ;-) Yes, but thank you anyway :-) > Gianluigi just a little remember: This is very useful for elderly people like me, you have no idea of the things that are known and that no longer come to mind, or that come back occasionally and then disappear. :-( With best regards Gianluigi Il giorno lun 24 set 2018 alle ore 11:37 Fabien Bodard ha scritto: > Gianluigi just a little remember : > > to call an object property it will be : > > Panel.Children[n].Clear > > But this can't work as Children return Control class objects. > > This class have not Clear method. > > so to clear all object that need to be cleared in a container: > > Dim o as object > > for each o in Children > try o.Clear > next > > Object allow unknown function to be called and try avoid the error if the > object returned by children have not this property. > > > ... Well it was not the subject ... ;-) > > > Le lun. 24 sept. 2018 ? 11:21, Gianluigi a ?crit : > >> >> >> Il giorno lun 24 set 2018 alle ore 11:07 Fabien Bodard < >> gambas.fr at gmail.com> ha scritto: >> >>> in fact he call the true method to destroy children : >>>> >>> >>> http://gambaswiki.org/wiki/comp/gb.qt4/.container.children/clear >>> >>> this is a bug . >>> >>> it crash for me in all gtk libs >>> >>> >> I'm sorry, >> I didn't know the method. >> Whoever misunderstands, the worse he replies :-( >> I confirm the malfunction with gtk >> >> Regards >> Gianluigi >> >> P.S. Charlie's a friend. I hope he'll excuse me. >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Mon Sep 24 17:01:32 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Mon, 24 Sep 2018 17:01:32 +0200 Subject: [Gambas-user] Socket.Timeout property Message-ID: <96165abd-7a1a-aaa4-0d7e-c2dde885d6de@gambas-buch.de> Hello, both a socket and a server_socket have the Socket.Timeout property. How to use this property successfully? Yours sincerely Hans From rwe-sse at osnanet.de Tue Sep 25 15:48:41 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 25 Sep 2018 15:48:41 +0200 Subject: [Gambas-user] Gambas on Ubuntu Message-ID: <0ecb29e6-fde3-257d-1b49-8a0f283b584c@osnanet.de> Hi folks, As I am new to Ubuntu, what will I have to do to install a complete Gambas? Will "apt install Gambas" do? Thanks for any help! Regards Rolf From rwe-sse at osnanet.de Tue Sep 25 15:50:08 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 25 Sep 2018 15:50:08 +0200 Subject: [Gambas-user] Gambas on Ubuntu Message-ID: <8569a50c-11b4-4fad-d975-f1b224ef55b6@osnanet.de> Forgot to mention it is Ubuntu Mate, if that plays any role... Hi folks, As I am new to Ubuntu, what will I have to do to install a complete Gambas? Will "apt install Gambas" do? Thanks for any help! Regards Rolf From olivier.cruilles at yahoo.fr Tue Sep 25 15:55:38 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Tue, 25 Sep 2018 09:55:38 -0400 Subject: [Gambas-user] Gambas on Ubuntu In-Reply-To: <8569a50c-11b4-4fad-d975-f1b224ef55b6@osnanet.de> References: <8569a50c-11b4-4fad-d975-f1b224ef55b6@osnanet.de> Message-ID: Hi, You can install stable version from PPA or daily build (version following dev sources) STABLE: First add the PPA to your sources.list. Open a terminal and do: $ sudo add-apt-repository ppa:gambas-team/gambas3 Next update the sources and install Gambas: $ sudo apt-get update $ sudo apt-get install gambas3 DAILY: First add the PPA to your sources.list. Open a terminal and do: $ sudo add-apt-repository ppa:gambas-team/gambas-daily Next update the sources and install Gambas: $ sudo apt-get update $ sudo apt-get install gambas3 Olivier Le September 25, 2018 ? 09:51:03, Rolf-Werner Eilert (rwe-sse at osnanet.de) a ?crit: Forgot to mention it is Ubuntu Mate, if that plays any role... Hi folks, As I am new to Ubuntu, what will I have to do to install a complete Gambas? Will "apt install Gambas" do? Thanks for any help! Regards Rolf ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Tue Sep 25 15:51:50 2018 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 25 Sep 2018 14:51:50 +0100 Subject: [Gambas-user] Gambas on Ubuntu In-Reply-To: <0ecb29e6-fde3-257d-1b49-8a0f283b584c@osnanet.de> References: <0ecb29e6-fde3-257d-1b49-8a0f283b584c@osnanet.de> Message-ID: <278104dd-c092-250f-c687-c595c6207c15@cogier.com> Hi Rolf, Run the following in terminal for the stable version of Gambas: - *sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3* For the daily version: - *sudo add-apt-repository -y ppa:gambas-team/gambas-daily && sudo apt-get update && sudo apt-get -y install gambas3*** Charlie On 25/09/18 14:48, Rolf-Werner Eilert wrote: > Hi folks, > > As I am new to Ubuntu, what will I have to do to install a complete > Gambas? > > Will "apt install Gambas" do? > > Thanks for any help! > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Wed Sep 26 15:02:57 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 26 Sep 2018 16:02:57 +0300 Subject: [Gambas-user] Gambas in Fedora Message-ID: <20180926130119.M86489@455.co.il> Hello Do you know why there are no more updates to GAMBAS in Fedora Gambas latest version is: 3.10.0 From mb at code-it.com Thu Sep 27 03:08:12 2018 From: mb at code-it.com (mikeB) Date: Wed, 26 Sep 2018 19:08:12 -0600 Subject: [Gambas-user] get HTML from Webbrowser example? Message-ID: How can I display the HTML code (of a page loaded within WebKit component)? Sample code or reference link would be greatly appreciated;-) mikeB From adamnt42 at gmail.com Thu Sep 27 05:33:22 2018 From: adamnt42 at gmail.com (Me) Date: Thu, 27 Sep 2018 13:03:22 +0930 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> Message-ID: <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> On Fri, 21 Sep 2018 09:49:27 +0200 Gianluigi wrote: > Thanks Gianluigi. (I missed your post somehow the other day). Well, it looks like what I wanted to do is not possible. Some observations. (Mainly for my own interest as I will probably need to refer to this later in time.) 1) The Action.Configure() function uses the form defined in the gb.gui.mdi component. Which is interesting! At least I was able to redefine the size of the pop-up to something more reasonable. 1a) That shortcut editor only looks at the files in the .action sub-directory (or the executable archive version thereof) of the active project to build its' list of "editable" actions. In addition, it will only add actions that have a defined shortcut already. This then, means that all user configurable shortcuts must be defined statically in the project design as that is the only way they will get into the .action files. 2) Really bewildering! Creating a menu item at runtime, works. Further, the Action and Shortcut defined in the code operate as expected. I can evidence this by creating a couple of menus in the code, one of which hides or shows the other using the Action defined for the other. However, these items do not appear in the Action,List array? I thought I might be able to use the Action.List array and build my own shortcut editor. No joy. -- Me From bagonergi at gmail.com Thu Sep 27 09:57:14 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 27 Sep 2018 09:57:14 +0200 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> Message-ID: Il giorno gio 27 set 2018 alle ore 05:34 Me ha scritto: > On Fri, 21 Sep 2018 09:49:27 +0200 > Gianluigi wrote: > > > Thanks Gianluigi. (I missed your post somehow the other day). > > Well, it looks like what I wanted to do is not possible. > > Some observations. (Mainly for my own interest as I will probably need to > refer to this later in time.) > 1) The Action.Configure() function uses the form defined in the gb.gui.mdi > component. > Which is interesting! At least I was able to redefine the size of the > pop-up to something more > reasonable. > 1a) That shortcut editor only looks at the files in the .action > sub-directory (or the executable archive > version thereof) of the active project to build its' list of "editable" > actions. In addition, it will only add > actions that have a defined shortcut already. > This then, means that all user configurable shortcuts must be defined > statically in the project design as > that is the only way they will get into the .action files. > 2) Really bewildering! Creating a menu item at runtime, works. Further, > the Action and Shortcut defined > in the code operate as expected. I can evidence this by creating a couple > of menus in the code, one of > which hides or shows the other using the Action defined for the other. > However, these items do not > appear in the Action,List array? > I thought I might be able to use the Action.List array and build my own > shortcut editor. No joy. > > > -- > Me > > I think that to take advantage of Action and make the menus appear as needed the only way is to create hidden menus (only the Name without Caption) and command them at runtime. I enclose a small project (not yet finished) that I'm creating to be able to ask a question to Benoit (I apologize for the name :-) ). One of the features of Gambas is the simplicity and speed with which we can create the windows. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GPW-1-0.0.1.tar.gz Type: application/gzip Size: 57850 bytes Desc: not available URL: From bagonergi at gmail.com Thu Sep 27 10:13:13 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 27 Sep 2018 10:13:13 +0200 Subject: [Gambas-user] get HTML from Webbrowser example? In-Reply-To: References: Message-ID: Il giorno gio 27 set 2018 alle ore 03:57 mikeB ha scritto: > How can I display the HTML code (of a page loaded within WebKit component)? > > Sample code or reference link would be greatly appreciated;-) > > mikeB > > There are at least three examples in the Farm: WebBowser htEditor seHelpBuilder (it's a bit heavy you need patience to download it but it's the most complete on the subject) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Sep 27 14:40:02 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 Sep 2018 14:40:02 +0200 Subject: [Gambas-user] Socket.Timeout property In-Reply-To: <96165abd-7a1a-aaa4-0d7e-c2dde885d6de@gambas-buch.de> References: <96165abd-7a1a-aaa4-0d7e-c2dde885d6de@gambas-buch.de> Message-ID: <69e50fc6-edd1-d2c0-9764-9443142e7eb2@gmail.com> Le 24/09/2018 ? 17:01, Hans Lehmann a ?crit?: > Hello, > > both a socket and a server_socket have the Socket.Timeout property. How > to use this property successfully? > > Yours sincerely > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > What do you mean exactly? -- Beno?t Minisini From g4mba5 at gmail.com Thu Sep 27 14:48:47 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 Sep 2018 14:48:47 +0200 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> Message-ID: Le 27/09/2018 ? 05:33, Me a ?crit?: > On Fri, 21 Sep 2018 09:49:27 +0200 > Gianluigi wrote: > >> Thanks Gianluigi. (I missed your post somehow the other day). > > Well, it looks like what I wanted to do is not possible. > > Some observations. (Mainly for my own interest as I will probably need to refer to this later in time.) > 1) The Action.Configure() function uses the form defined in the gb.gui.mdi component. > Which is interesting! At least I was able to redefine the size of the pop-up to something more > reasonable. > 1a) That shortcut editor only looks at the files in the .action sub-directory (or the executable archive > version thereof) of the active project to build its' list of "editable" actions. In addition, it will only add > actions that have a defined shortcut already. > This then, means that all user configurable shortcuts must be defined statically in the project design as > that is the only way they will get into the .action files. > 2) Really bewildering! Creating a menu item at runtime, works. Further, the Action and Shortcut defined > in the code operate as expected. I can evidence this by creating a couple of menus in the code, one of > which hides or shows the other using the Action defined for the other. However, these items do not > appear in the Action,List array? > I thought I might be able to use the Action.List array and build my own shortcut editor. No joy. > > Maybe creating an Action.Add() method is the solution? Better would be doing that automatically, when the control is created. But it is harder, because how to know that the newly created control was not already part of the actions defined in the ".action" directory? -- Beno?t Minisini From t.lee.davidson at gmail.com Thu Sep 27 15:24:24 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 27 Sep 2018 09:24:24 -0400 Subject: [Gambas-user] get HTML from Webbrowser example? In-Reply-To: References: Message-ID: <4939a54e-1da1-8eba-ef19-66ec27a983bf@gmail.com> http://gambaswiki.org/wiki/comp/gb.qt4.webkit/webview/html ___ Lee On 9/26/18 9:08 PM, mikeB wrote: > How can I display the HTML code (of a page loaded within WebKit component)? > > Sample code or reference link would be greatly appreciated;-) > > mikeB > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From rwe-sse at osnanet.de Thu Sep 27 15:44:13 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 27 Sep 2018 15:44:13 +0200 Subject: [Gambas-user] Problem with Paint.Rectangle() and docu Message-ID: In the documentation to Paint.Rectangle there is This function is logically equivalent to: Paint.MoveTo(X, Y) Paint.LineTo(X + Width, Y) Paint.LineTo(X + Width, Y + Height) Paint.LineTo(X, Y + Height) Paint.ClosePath() The thing is, Paint.Rectangle will always fill the area, and I simply need a box (unfilled). The example from the documentation will not produce 4 lines and an empty space, but a filled rectangle as well. By the way, it does NOT play a roll if you use ClosePath or not. But if you forget Fill, there comes an error with Pending Path. So the example is a bit misleading here. And does Rectangle really have to produce a filled area? Is there no way to have a simple line drawn around? Regards Rolf From gambas.fr at gmail.com Thu Sep 27 16:11:31 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 27 Sep 2018 16:11:31 +0200 Subject: [Gambas-user] Problem with Paint.Rectangle() and docu In-Reply-To: References: Message-ID: You need to use stroke insteed of fill If you need to have a border with filld rect First use the fill (true) Then change brush And finish with stroke This will draw the back and then the border Le jeu. 27 sept. 2018 15:45, Rolf-Werner Eilert a ?crit : > In the documentation to Paint.Rectangle there is > > This function is logically equivalent to: > Paint.MoveTo(X, Y) > Paint.LineTo(X + Width, Y) > Paint.LineTo(X + Width, Y + Height) > Paint.LineTo(X, Y + Height) > Paint.ClosePath() > > The thing is, Paint.Rectangle will always fill the area, and I simply > need a box (unfilled). > > The example from the documentation will not produce 4 lines and an empty > space, but a filled rectangle as well. > > By the way, it does NOT play a roll if you use ClosePath or not. But if > you forget Fill, there comes an error with Pending Path. So the example > is a bit misleading here. > > And does Rectangle really have to produce a filled area? Is there no way > to have a simple line drawn around? > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Thu Sep 27 16:12:20 2018 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 27 Sep 2018 15:12:20 +0100 Subject: [Gambas-user] get HTML from Webbrowser example? In-Reply-To: References: Message-ID: Hi mikeB, Have a look at the attached code, I think this is what you are looking for . Charlie Ogier On 27/09/18 02:08, mikeB wrote: > How can I display the HTML code (of a page loaded within WebKit > component)? > > Sample code or reference link would be greatly appreciated;-) > > mikeB > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GUITest.tar.gz Type: application/gzip Size: 13288 bytes Desc: not available URL: From t.lee.davidson at gmail.com Thu Sep 27 16:15:23 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 27 Sep 2018 10:15:23 -0400 Subject: [Gambas-user] Problem with Paint.Rectangle() and docu In-Reply-To: References: Message-ID: <3401945c-343b-4abc-ed6d-5fa5c7534421@gmail.com> Perhaps setting the Background to a fully translucent color would be a workable solution for you. ___ Lee On 9/27/18 9:44 AM, Rolf-Werner Eilert wrote: > In the documentation to Paint.Rectangle there is > > This function is logically equivalent to: > Paint.MoveTo(X, Y) > Paint.LineTo(X + Width, Y) > Paint.LineTo(X + Width, Y + Height) > Paint.LineTo(X, Y + Height) > Paint.ClosePath() > > The thing is, Paint.Rectangle will always fill the area, and I simply need a box (unfilled). > > The example from the documentation will not produce 4 lines and an empty space, but a filled rectangle as well. > > By the way, it does NOT play a roll if you use ClosePath or not. But if you forget Fill, there comes an error with Pending Path. > So the example is a bit misleading here. > > And does Rectangle really have to produce a filled area? Is there no way to have a simple line drawn around? > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From mb at code-it.com Thu Sep 27 16:28:51 2018 From: mb at code-it.com (mikeB) Date: Thu, 27 Sep 2018 08:28:51 -0600 Subject: [Gambas-user] get HTML from Webbrowser example? In-Reply-To: References: Message-ID: <949a8044-eb15-b61f-9832-a45c0e6753a7@code-it.com> Exactly what I needed - thanks alot! Solution solved;-) mikeB On 09/27/2018 08:12 AM, Charlie Ogier wrote: > Hi mikeB, > > Have a look at the attached code, I think this is what you are looking > for . > > Charlie Ogier > > > On 27/09/18 02:08, mikeB wrote: >> How can I display the HTML code (of a page loaded within WebKit >> component)? >> >> Sample code or reference link would be greatly appreciated;-) >> >> mikeB >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Thu Sep 27 16:44:46 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Thu, 27 Sep 2018 15:44:46 +0100 Subject: [Gambas-user] open-ssl Message-ID: Hi everyone, Does anyone worked with open-ssl in gambas? Any chance to post an example about how to encrypt and decrypt a string? I looked everywhere and i didnt find any info about that. Thanks in advance. Rregards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Sep 27 16:49:13 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 27 Sep 2018 16:49:13 +0200 Subject: [Gambas-user] Problem with Paint.Rectangle() and docu In-Reply-To: References: Message-ID: <73da9112-8602-d63c-eb0d-f9bb0ee29f9b@osnanet.de> Am 27.09.2018 um 16:11 schrieb Fabien Bodard: > You need to use stroke insteed of fill Aaaaah, ok, thanks so much! > > If you need to have a border with filld rect > > First use the fill (true) > Then change brush > And finish with stroke Change brush? Wouldn't setting the colors do? Rolf > > This will draw the back and then the border > Le jeu. 27 sept. 2018 15:45, Rolf-Werner Eilert > a ?crit?: > > In the documentation to Paint.Rectangle there is > > This function is logically equivalent to: > Paint.MoveTo(X, Y) > Paint.LineTo(X + Width, Y) > Paint.LineTo(X + Width, Y + Height) > Paint.LineTo(X, Y + Height) > Paint.ClosePath() > > The thing is, Paint.Rectangle will always fill the area, and I simply > need a box (unfilled). > > The example from the documentation will not produce 4 lines and an > empty > space, but a filled rectangle as well. > > By the way, it does NOT play a roll if you use ClosePath or not. But if > you forget Fill, there comes an error with Pending Path. So the example > is a bit misleading here. > > And does Rectangle really have to produce a filled area? Is there no > way > to have a simple line drawn around? > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From g4mba5 at gmail.com Thu Sep 27 16:55:01 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 27 Sep 2018 16:55:01 +0200 Subject: [Gambas-user] Problem with Paint.Rectangle() and docu In-Reply-To: References: Message-ID: <7acdcb01-26f8-3647-d7aa-39f537ad2840@gmail.com> Le 27/09/2018 ? 15:44, Rolf-Werner Eilert a ?crit?: > In the documentation to Paint.Rectangle there is > > This function is logically equivalent to: > Paint.MoveTo(X, Y) > Paint.LineTo(X + Width, Y) > Paint.LineTo(X + Width, Y + Height) > Paint.LineTo(X, Y + Height) > Paint.ClosePath() > > The thing is, Paint.Rectangle will always fill the area, and I simply > need a box (unfilled). > No, Paint.Rectangle() draws nothing, it defines a drawing path. The drawing is done by the Paint.Fill() and Paint.Stroke() commands, depending on whether you want to fill the shape or outline it. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Thu Sep 27 17:04:25 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 27 Sep 2018 17:04:25 +0200 Subject: [Gambas-user] Problem with Paint.Rectangle() and docu In-Reply-To: <7acdcb01-26f8-3647-d7aa-39f537ad2840@gmail.com> References: <7acdcb01-26f8-3647-d7aa-39f537ad2840@gmail.com> Message-ID: Am 27.09.2018 um 16:55 schrieb Beno?t Minisini: > Le 27/09/2018 ? 15:44, Rolf-Werner Eilert a ?crit?: >> In the documentation to Paint.Rectangle there is >> >> This function is logically equivalent to: >> Paint.MoveTo(X, Y) >> Paint.LineTo(X + Width, Y) >> Paint.LineTo(X + Width, Y + Height) >> Paint.LineTo(X, Y + Height) >> Paint.ClosePath() >> >> The thing is, Paint.Rectangle will always fill the area, and I simply >> need a box (unfilled). >> > > No, Paint.Rectangle() draws nothing, it defines a drawing path. > > The drawing is done by the Paint.Fill() and Paint.Stroke() commands, > depending on whether you want to fill the shape or outline it. > > Regards, > Yes :) got it, I just forgot there is Stroke Thank you! Rolf From taboege at gmail.com Thu Sep 27 17:16:30 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 27 Sep 2018 17:16:30 +0200 Subject: [Gambas-user] open-ssl In-Reply-To: References: Message-ID: <20180927151630.GA30725@highrise.localdomain> On Thu, 27 Sep 2018, Antonio Teixeira wrote: > Hi everyone, > > Does anyone worked with open-ssl in gambas? Any chance to post an example > about how to encrypt and decrypt a string? > I looked everywhere and i didnt find any info about that. > En- and decryption is done using the Cipher class. First, you have to settle on a cipher, say AES256 in CBC mode. You can get a list of ciphers that your local openssl supports from Cipher.List. You'll see that "AES-256-CBC" is a supported method (I suppose virtually everywhere). You use this string as an index into the Cipher class to get a .Cipher.Method object which can do en- and decryption, see [1]. For example: Public Sub Main() Dim sCipher, sData As String sCipher = Cipher["AES-256-CBC"].EncryptSalted("Hello there", "secret") Print "Cipher text (base64):";; Base64$(sCipher) sData = Cipher["AES-256-CBC"].DecryptSalted(sCipher, "secret") Print "Decrypted:";; sData Try Cipher["AES-256-CBC"].DecryptSalted(sCipher, "wrong") If Error Then Print "ERROR:";; Error.Text End produces the following output: Cipher text (base64): U2FsdGVkX1+j36HLTJVWjG2ciDw2ZOk/dhbdB7aiTOg= Decrypted: Hello there ERROR: Decryption failed Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.openssl/.cipher.method -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at gmail.com Thu Sep 27 17:17:47 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 27 Sep 2018 17:17:47 +0200 Subject: [Gambas-user] Problem with Paint.Rectangle() and docu In-Reply-To: References: <7acdcb01-26f8-3647-d7aa-39f537ad2840@gmail.com> Message-ID: and the brush is this : Paint.Brush = Paint.Color(Color.Red) This define the brush type and the color Brush type can be : Color LinearGradient RadialGradient Image http://gambaswiki.org/wiki/comp/gb.qt4/paintbrush -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Thu Sep 27 16:32:09 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Thu, 27 Sep 2018 16:32:09 +0200 Subject: [Gambas-user] =?utf-8?q?get_HTML_from_Webbrowser_example=3F?= In-Reply-To: References: Message-ID: <59c7c8e4685f521112060553580baac7@tiscali.it> Quickly: ******************************************************* Public Sub Form_Open() WebView1.Url = "https://lists.gambas-basic.org/pipermail/user/2018-September/065550.html" End Public Sub WebView1_Load() Print WebView1.HTML End ********************************************************* Il 27.09.2018 03:08 mikeB ha scritto: > How can I display the HTML code (of a page loaded within WebKit component)? > > Sample code or reference link would be greatly appreciated;-) > > mikeB > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [1] ]---- Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! SCOPRI DI PIU? http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From buster6seven at gmail.com Fri Sep 28 00:40:24 2018 From: buster6seven at gmail.com (Shane) Date: Fri, 28 Sep 2018 08:40:24 +1000 Subject: [Gambas-user] drawing pictures Message-ID: <5639a563-80e1-8703-43b1-bad4f988165e@gmail.com> Hi i'm trying to draw a part of an image to a picture like this Public Backimg As Image image loaded with file in form show i do this Picturebox1.Picture = New Picture(Picturebox1.Width, Picturebox1.Height) then Paint.Begin(Picturebox1.Picture) Paint.DrawPicture(Backimg.Picture, 20, 20, 40, 40, Rect(40, 40, 40, 40)) Paint.End but it will not display what am i doing wrong From g4mba5 at gmail.com Fri Sep 28 01:47:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 28 Sep 2018 01:47:20 +0200 Subject: [Gambas-user] drawing pictures In-Reply-To: <5639a563-80e1-8703-43b1-bad4f988165e@gmail.com> References: <5639a563-80e1-8703-43b1-bad4f988165e@gmail.com> Message-ID: Le 28/09/2018 ? 00:40, Shane a ?crit?: > Hi i'm trying to draw a part of an image to a picture like this > > > Public Backimg As Image > > image loaded with file > > in form show i do this > > Picturebox1.Picture = New Picture(Picturebox1.Width, Picturebox1.Height) > > then > > Paint.Begin(Picturebox1.Picture) > Paint.DrawPicture(Backimg.Picture, 20, 20, 40, 40, Rect(40, 40, 40, 40)) > Paint.End > > but it will not display what am i doing wrong > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > First draw on the picture, and then assign it to the PictureBox1.Picture property. Regards, -- Beno?t Minisini From brailateo at gmail.com Fri Sep 28 12:41:12 2018 From: brailateo at gmail.com (Constantin Teodorescu) Date: Fri, 28 Sep 2018 13:41:12 +0300 Subject: [Gambas-user] PostgreSQL column type numeric(N, M) segfaults DataBrowser Message-ID: Hi everyone, I just discovered that using numeric(10,2) in PostgreSQL crashes Gambas DataBrowser! When type changed to double precision everything is OK! Would it be fixed that in a future version or should I avoid using numeric in tables? Thanks for Gambas3, in my opinion the best R.A.D. choice for any Linux GUI application with databases Constantin Teodorescu -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Fri Sep 28 12:57:16 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 28 Sep 2018 12:57:16 +0200 Subject: [Gambas-user] PostgreSQL column type numeric(N, M) segfaults DataBrowser In-Reply-To: References: Message-ID: I confirm that IDE crash when trying to see proprties of a connection. Both sqlite and Mysql types. I did not reported before because I can't isolate the bug... El vie., 28 sept. 2018 a las 12:42, Constantin Teodorescu (< brailateo at gmail.com>) escribi?: > Hi everyone, > > I just discovered that using numeric(10,2) in PostgreSQL crashes Gambas > DataBrowser! > When type changed to double precision everything is OK! > > Would it be fixed that in a future version or should I avoid using numeric > in tables? > > Thanks for Gambas3, in my opinion the best R.A.D. choice for any Linux GUI > application with databases > Constantin Teodorescu > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From franka at iway.na Fri Sep 28 14:22:53 2018 From: franka at iway.na (Frank H Aldridge) Date: Fri, 28 Sep 2018 14:22:53 +0200 Subject: [Gambas-user] Database example query Message-ID: <0802024d-2f8d-5518-7f83-44e144ab3581@iway.na> I am an absolutely new user of Gambas, 76 years old and only using it to write simple self-use programs. I bought the e-book Beginners Guide to Gambas, Revised edition from Amazon and as a consequence it does not have the cd that would have been included with the hard copy. I am using Ubuntu 18.4 and Gambas 3.11.90 together with SQLite. Because I don't have the cd I decided to "create" the Database1 program described in the book under "The Database Example Program". I have created the main form as well as the FRequest form, both with their various controls. On FMain (I noticed that you cannot change the name of the Main form) I placed a Textbox at the bottom in a Frame called SQL request. During the instructions detailing how the program "works" there is the following quote: "we set the enabled properties for both program forms to TRUE and place some default text in the SQL request box at the bottom of the FMain form: frmDatabase.Enabled = TRUE frmRequest.Enabled = TRUE txtRequest.Text ="Show Tables" 1. At this point my problem is that there are no forms called frmDatabase or frmRequest. 2. My next problem is that the Textbox does not accept multi-lines. The code for the "RUN Button" (next to the SQL Request text box is: Public Sub btnRun_Click() Dim rData As Result Dim hForm As FRequest rData = $hConn.Exec(txtRequest.Text) hForm = New FRequest($hConn, rData) hForm.Show Catch Message.Error(Error.text) End 3. When I click on the "Run" button a message comes up stating: Query failed: near "Show Tables"; syntax error. (I have only entered this oneline due to 2 above. If I blank the Textbox for the SQL query and insert a SQL query directly into the line: rData = $hConn.Exec("Select * from Test") instead of (txtRequest.Text)then I get the message: Cannot exec request Unknown symbol 'Width' in Class 'Font' OK Clicking OK brings the message: 'Not enough arguments' I believe that the above two messages come from the following code under the FRequest form. Private Sub ReadData() Dim hTable As Table Dim hField As ResultField Dim iInd As Integer Inc Application.Busy tbvData.Rows.count = 0 tbvData.Columns.Count = $rData.Fields.Count For Each hField In $rData.Fields With hField tbvData.Columns[iInd].Text = .Name tbvData.Columns[iInd].Width = WidthFromType(tbvData, .Type,.Length,.Name) End With Inc iInd Next tbvData.Rows.Count = $rData.Count Finally Dec Application.Busy Catch Message.Error("Cannot exec request" & "\n\n" & Error.Text) End Can anybody who may have this book and the CD perhaps throw some light on what may be causing the problems? -- Frank H Aldridge P.O. Box 3696 c/o Kiaat & Bottle Tree Streets Ext. 15 Swakopmund +264(0)811248922 From adamnt42 at gmail.com Sat Sep 29 03:41:32 2018 From: adamnt42 at gmail.com (Me) Date: Sat, 29 Sep 2018 11:11:32 +0930 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> Message-ID: <20180929111132.fc3b11d82deb11483230fcad@gmail.com> On Thu, 27 Sep 2018 14:48:47 +0200 Beno?t Minisini wrote: > Le 27/09/2018 ? 05:33, Me a ?crit?: > > On Fri, 21 Sep 2018 09:49:27 +0200 > > Gianluigi wrote: > > > >> Thanks Gianluigi. (I missed your post somehow the other day). > > > > Well, it looks like what I wanted to do is not possible. > > > > Some observations. (Mainly for my own interest as I will probably need to refer to this later in time.) > > 1) The Action.Configure() function uses the form defined in the gb.gui.mdi component. > > Which is interesting! At least I was able to redefine the size of the pop-up to something more > > reasonable. > > 1a) That shortcut editor only looks at the files in the .action sub-directory (or the executable archive > > version thereof) of the active project to build its' list of "editable" actions. In addition, it will only add > > actions that have a defined shortcut already. > > This then, means that all user configurable shortcuts must be defined statically in the project design as > > that is the only way they will get into the .action files. > > 2) Really bewildering! Creating a menu item at runtime, works. Further, the Action and Shortcut defined > > in the code operate as expected. I can evidence this by creating a couple of menus in the code, one of > > which hides or shows the other using the Action defined for the other. However, these items do not > > appear in the Action,List array? > > I thought I might be able to use the Action.List array and build my own shortcut editor. No joy. > > > > > > Maybe creating an Action.Add() method is the solution? > > Better would be doing that automatically, when the control is created. > > But it is harder, because how to know that the newly created control was > not already part of the actions defined in the ".action" directory? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- I don't think that the latter would work as the code defining the control action could be anywhere. Not necessarily when and where the control is created? An explicit Action.Add() would be beneficial, The thing I don't understand is why the new action doesn't appear in Action.List but the Action works? In other words, where does the new action string get registered? Is it somewhere down low in the UI library itself? I have searched myself silly through the gambas source code but I cannot find it. regards Bruce -- adamant42 at gmail.com From adamnt42 at gmail.com Sat Sep 29 03:58:00 2018 From: adamnt42 at gmail.com (Me) Date: Sat, 29 Sep 2018 11:28:00 +0930 Subject: [Gambas-user] Generic event handler - is it possible? Message-ID: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> I was wondering if it were possible for Gambas to have a generic event handler like the Appication_Error? This theoretical beast would handle "any" event not handled at a lower level. This came up because somewhere down a set of heirachical classes an (exception) event get raised that is not handled by the owning class. In this case the proper handler is the main code of the application anyway so having to handle and reraise a new events all the way up the chain is a pain. Example : cAuction has a collection of cVendor items, each of which has a collection of cLot items. If a CLot object has data which is an exception (note, exception not an error) then (stuff happens) but the matter needs to be reported to the user, which is the job of the main code to handle the reporting. Obviously, I don't wish to trap every event raised everywhere or we would get thousands of notices. So, the explicit event would need to be defined with a Propogate property or somesuch. Anyway, just a thinky or a wishlist item. regards Bruce -- adamant42 at gmail.com From gambas.fr at gmail.com Sat Sep 29 08:04:30 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 29 Sep 2018 08:04:30 +0200 Subject: [Gambas-user] Generic event handler - is it possible? In-Reply-To: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> References: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> Message-ID: Just redirect it to the main class Public sub _new (parent as object) Object.attach (myvendor,Parent,"Vendor") End In the vendor class And hVendor = new Vendor (me) In the main class at the object creation time This will link the class vendor to a generic event handler "Vendor_" automagiqualy Le sam. 29 sept. 2018 03:58, Me a ?crit : > I was wondering if it were possible for Gambas to have a generic event > handler like the Appication_Error? > This theoretical beast would handle "any" event not handled at a lower > level. > > This came up because somewhere down a set of heirachical classes an > (exception) event get raised that is > not handled by the owning class. In this case the proper handler is the > main code of the application > anyway so having to handle and reraise a new events all the way up the > chain is a pain. > > Example : cAuction has a collection of cVendor items, each of which has a > collection of cLot items. If a CLot > object has data which is an exception (note, exception not an error) then > (stuff happens) but the matter needs > to be reported to the user, which is the job of the main code to handle > the reporting. > > Obviously, I don't wish to trap every event raised everywhere or we would > get thousands of notices. So, the > explicit event would need to be defined with a Propogate property or > somesuch. > > Anyway, just a thinky or a wishlist item. > > regards > Bruce > > -- > adamant42 at gmail.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Sep 29 08:07:26 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 29 Sep 2018 08:07:26 +0200 Subject: [Gambas-user] Generic event handler - is it possible? In-Reply-To: References: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> Message-ID: > > Sorry Bruce... bad read... forget the last post > >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Sep 29 09:35:46 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 29 Sep 2018 09:35:46 +0200 Subject: [Gambas-user] open-ssl In-Reply-To: <20180927151630.GA30725@highrise.localdomain> References: <20180927151630.GA30725@highrise.localdomain> Message-ID: <9e877ebe-d6a5-7233-bb74-3e4fa060c631@deganius.de> Am 27.09.2018 um 17:16 schrieb Tobias Boege: > En- and decryption is done using the Cipher class. First, you have to settle > on a cipher, say AES256 in CBC mode. You can get a list of ciphers that your > local openssl supports from Cipher.List. You'll see that "AES-256-CBC" is a > supported method (I suppose virtually everywhere). You use this string as an > index into the Cipher class to get a .Cipher.Method object which can do en- > and decryption, see [1]. For example: > > Public Sub Main() > Dim sCipher, sData As String > > sCipher = Cipher["AES-256-CBC"].EncryptSalted("Hello there", "secret") > Print "Cipher text (base64):";; Base64$(sCipher) > sData = Cipher["AES-256-CBC"].DecryptSalted(sCipher, "secret") > Print "Decrypted:";; sData > > Try Cipher["AES-256-CBC"].DecryptSalted(sCipher, "wrong") > If Error Then Print "ERROR:";; Error.Text > End > > produces the following output: > > Cipher text (base64): U2FsdGVkX1+j36HLTJVWjG2ciDw2ZOk/dhbdB7aiTOg= > Decrypted: Hello there > ERROR: Decryption failed This was concise. I pasted it into the doc: http://gambaswiki.org/wiki/comp/gb.openssl/cipher Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Sat Sep 29 11:43:47 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 29 Sep 2018 11:43:47 +0200 Subject: [Gambas-user] Database example query In-Reply-To: <0802024d-2f8d-5518-7f83-44e144ab3581@iway.na> References: <0802024d-2f8d-5518-7f83-44e144ab3581@iway.na> Message-ID: Your mail ended up in gmail spam (when the programs are too smart they end up being stupid). I'll enclose what I promised. Regards Gianluigi Il giorno ven 28 set 2018 alle ore 15:14 Frank H Aldridge ha scritto: > I am an absolutely new user of Gambas, 76 years old and only using it to > write simple self-use programs. I bought the e-book Beginners Guide to > Gambas, Revised edition from Amazon and as a consequence it does not have > the cd that would have been included with the hard copy. > > I am using Ubuntu 18.4 and Gambas 3.11.90 together with SQLite. > > Because I don't have the cd I decided to "create" the Database1 program > described in the book under "The Database Example Program". I have created > the main form as well as the FRequest form, both with their various > controls. > > On FMain (I noticed that you cannot change the name of the Main form) I > placed a Textbox at the bottom in a Frame called SQL request. > > During the instructions detailing how the program "works" there is the > following quote: > > "we set the enabled properties for both program forms to TRUE and place > some default text in the SQL request box at the bottom of the FMain form: > > frmDatabase.Enabled = TRUE > frmRequest.Enabled = TRUE > txtRequest.Text ="Show Tables" > > 1. At this point my problem is that there are no forms called > frmDatabase or frmRequest. > > 2. My next problem is that the Textbox does not accept multi-lines. > > The code for the "RUN Button" (next to the SQL Request text box is: > > Public Sub btnRun_Click() > > Dim rData As Result > > Dim hForm As FRequest > > rData = $hConn.Exec(txtRequest.Text) > hForm = New FRequest($hConn, rData) > hForm.Show > > Catch > Message.Error(Error.text) > > End > > 3. When I click on the "Run" button a message comes up stating: Query > failed: near "Show Tables"; syntax error. (I have only entered this > oneline due to 2 above. > > If I blank the Textbox for the SQL query and insert a SQL query directly > into the line: > rData = $hConn.Exec("Select * from Test") instead of (txtRequest.Text)then > I get the message: > > Cannot exec request > Unknown symbol 'Width' in Class 'Font' > OK > > Clicking OK brings the message: > 'Not enough arguments' > > I believe that the above two messages come from the following code under > the FRequest form. > > Private Sub ReadData() > > > Dim hTable As Table > Dim hField As ResultField > Dim iInd As Integer > > Inc Application.Busy > > tbvData.Rows.count = 0 > tbvData.Columns.Count = $rData.Fields.Count > > For Each hField In $rData.Fields > With hField > > tbvData.Columns[iInd].Text = .Name > > tbvData.Columns[iInd].Width = WidthFromType(tbvData, > .Type,.Length,.Name) > > End With > > Inc iInd > > Next > > tbvData.Rows.Count = $rData.Count > > Finally > > Dec Application.Busy > > Catch > Message.Error("Cannot exec request" & "\n\n" & Error.Text) > End > > Can anybody who may have this book and the CD perhaps throw some light on > what may be causing the problems? > > -- > Frank H Aldridge > P.O. Box 3696 > c/o Kiaat & Bottle Tree Streets > Ext. 15 > Swakopmund > +264(0)811248922 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Database-3.11.90.tar.gz Type: application/gzip Size: 15582 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Sep 29 11:56:06 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 Sep 2018 11:56:06 +0200 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <20180929111132.fc3b11d82deb11483230fcad@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> <20180929111132.fc3b11d82deb11483230fcad@gmail.com> Message-ID: <393e8107-fd74-df3b-cf1f-b3e029132cec@gmail.com> Le 29/09/2018 ? 03:41, Me a ?crit?: > > I don't think that the latter would work as the code defining the control action could > be anywhere. Not necessarily when and where the control is created? > > An explicit Action.Add() would be beneficial, > > The thing I don't understand is why the new action doesn't appear in Action.List but the > Action works? In other words, where does the new action string get registered? Is it > somewhere down low in the UI library itself? I have searched myself silly through the > gambas source code but I cannot find it. > > regards > Bruce > -- > adamant42 at gmail.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > The Action._Register() method is called each time the Action property of a control changes. -- Beno?t Minisini From adamnt42 at gmail.com Sat Sep 29 12:37:19 2018 From: adamnt42 at gmail.com (Me) Date: Sat, 29 Sep 2018 20:07:19 +0930 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <393e8107-fd74-df3b-cf1f-b3e029132cec@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> <20180929111132.fc3b11d82deb11483230fcad@gmail.com> <393e8107-fd74-df3b-cf1f-b3e029132cec@gmail.com> Message-ID: <20180929200719.c1684242cbe9db8ec5560c97@gmail.com> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > The Action._Register() method is called each time the Action property of > a control changes. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Aha! Does that happen for menus as well? More tomorrow, I'll have a look-see. b -- adamant42 at gmail.com From g4mba5 at gmail.com Sat Sep 29 13:31:07 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 29 Sep 2018 13:31:07 +0200 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <20180929200719.c1684242cbe9db8ec5560c97@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> <20180929111132.fc3b11d82deb11483230fcad@gmail.com> <393e8107-fd74-df3b-cf1f-b3e029132cec@gmail.com> <20180929200719.c1684242cbe9db8ec5560c97@gmail.com> Message-ID: <07a9a2ac-dff6-d644-81f4-15feae919819@gmail.com> Le 29/09/2018 ? 12:37, Me a ?crit?: >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> The Action._Register() method is called each time the Action property of >> a control changes. >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Aha! Does that happen for menus as well? > More tomorrow, I'll have a look-see. > b > In the last commit, I have added two new methods to the Action class defined in gb.form.mdi: Action.Add() declares a new action. You have to give all the action properties: the action name, the text, the icon url, if the action can have a shortcut, and the default shortcut. Action.AddFrom() does the same thing, but from a control. Beware that as a Picture object never knows that it has been created from the stock, Action.AddFrom() cannot guess the icon url associated with a control. I decided not to add actions automatically through the Action._Register() method I told you previously, because it's too hard to handle. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Sat Sep 29 14:43:26 2018 From: adamnt42 at gmail.com (Me) Date: Sat, 29 Sep 2018 22:13:26 +0930 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <07a9a2ac-dff6-d644-81f4-15feae919819@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> <20180929111132.fc3b11d82deb11483230fcad@gmail.com> <393e8107-fd74-df3b-cf1f-b3e029132cec@gmail.com> <20180929200719.c1684242cbe9db8ec5560c97@gmail.com> <07a9a2ac-dff6-d644-81f4-15feae919819@gmail.com> Message-ID: <20180929221326.8f9aa2884c53de258e1ac211@gmail.com> On Sat, 29 Sep 2018 13:31:07 +0200 Beno?t Minisini wrote: > Le 29/09/2018 ? 12:37, Me a ?crit?: > >>> > >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > >>> > >> > >> The Action._Register() method is called each time the Action property of > >> a control changes. > >> > >> -- > >> Beno?t Minisini > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > Aha! Does that happen for menus as well? > > More tomorrow, I'll have a look-see. > > b > > > > In the last commit, I have added two new methods to the Action class > defined in gb.form.mdi: > > Action.Add() declares a new action. You have to give all the action > properties: the action name, the text, the icon url, if the action can > have a shortcut, and the default shortcut. > > Action.AddFrom() does the same thing, but from a control. > > Beware that as a Picture object never knows that it has been created > from the stock, Action.AddFrom() cannot guess the icon url associated > with a control. > > I decided not to add actions automatically through the > Action._Register() method I told you previously, because it's too hard > to handle. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Thanks Beno?t, will check it out tomorrow. regards Bruce -- adamant42 at gmail.com From bagonergi at gmail.com Sat Sep 29 23:01:04 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 29 Sep 2018 23:01:04 +0200 Subject: [Gambas-user] Error compiling on Fedora Message-ID: By compiling Gambas Master on Fedora after successfully configuring the libraries (|| ALL COMPONENTS WILL BE COMPILED) on make/configure I get error, attach the final part of the log file. Any suggestions? Regards & good night Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Fedora-make.log Type: text/x-log Size: 98420 bytes Desc: not available URL: From tmorehen at ajm-software.com Sat Sep 29 23:15:31 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 29 Sep 2018 17:15:31 -0400 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: References: Message-ID: <356ad15b-2901-5136-f337-3f7b620b3d1d@ajm-software.com> On 2018-09-29 4:01 p.m., Gianluigi wrote: > By compiling Gambas Master on Fedora after successfully configuring > the libraries (|| ALL COMPONENTS WILL BE COMPILED) on make/configure I > get error, attach the final part of the log file. > Any suggestions? > > Regards & good night > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Sat Sep 29 23:21:29 2018 From: tmorehen at ajm-software.com (Tony Morehen) Date: Sat, 29 Sep 2018 17:21:29 -0400 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: References: Message-ID: <3bc982f4-52f7-8542-5870-72d4d299ea34@ajm-software.com> ltdl.h is usually installed as part of libtool, you can install with yum: *yum install libtool* On 2018-09-29 4:01 p.m., Gianluigi wrote: > By compiling Gambas Master on Fedora after successfully configuring > the libraries (|| ALL COMPONENTS WILL BE COMPILED) on make/configure I > get error, attach the final part of the log file. > Any suggestions? > > Regards & good night > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sat Sep 29 23:27:07 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 29 Sep 2018 23:27:07 +0200 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: References: Message-ID: <20180929212707.GA1811@highrise.localdomain> On Sat, 29 Sep 2018, Gianluigi wrote: > By compiling Gambas Master on Fedora after successfully configuring the > libraries (|| ALL COMPONENTS WILL BE COMPILED) on make/configure I get > error, attach the final part of the log file. > Any suggestions? > > [...] > > Making all in gb.openssl > make[2]: ingresso nella directory "/home/gian/gambasdevel/gb.openssl" > make all-recursive > make[3]: ingresso nella directory "/home/gian/gambasdevel/gb.openssl" > Making all in src > make[4]: ingresso nella directory "/home/gian/gambasdevel/gb.openssl/src" > CC gb_openssl_la-main.lo > In file included from ../../main/gbx/gbx_component.h:31, > from ../../main/gbx/gbx_class.h:31, > from ../../main/gbx/gbx_value.h:30, > from ../../main/gbx/gbx_string.h:27, > from ../../main/gbx/gbx_variant.h:28, > from ../../main/gbx/gbx_compare.h:29, > from main.c:27: > ../../main/gbx/gbx_library.h:34:12: fatal error: ltdl.h: No such file or directory > #include > ^~~~~~~~ > compilation terminated. > make[4]: *** [Makefile:489: gb_openssl_la-main.lo] Error 1 > make[4]: uscita dalla directory "/home/gian/gambasdevel/gb.openssl/src" > make[3]: *** [Makefile:435: all-recursive] Error 1 > make[3]: uscita dalla directory "/home/gian/gambasdevel/gb.openssl" > make[2]: *** [Makefile:367: all] Error 2 > make[2]: uscita dalla directory "/home/gian/gambasdevel/gb.openssl" > make[1]: *** [Makefile:436: all-recursive] Error 1 > make[1]: uscita dalla directory "/home/gian/gambasdevel" > make: *** [Makefile:377: all] Error 2 That's a strange error to happen at this late stage, but main.c in gb.openssl does include some unusual gambas headers. Do you have installed whatever provides ltdl.h on Fedora? I looked a bit and it's probably called libtool-ltdl-devel, but information on the web outdates now and then... It compiles fine over here, on an (almost) freshly updated Arch Linux. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at gmail.com Sun Sep 30 06:05:48 2018 From: adamnt42 at gmail.com (Me) Date: Sun, 30 Sep 2018 13:35:48 +0930 Subject: [Gambas-user] Creating Actions at runtime In-Reply-To: <07a9a2ac-dff6-d644-81f4-15feae919819@gmail.com> References: <20180921114932.fb77e4a200e1c0c783af1e1a@gmail.com> <20180927130322.0a89123117a2ae5667e9afa4@gmail.com> <20180929111132.fc3b11d82deb11483230fcad@gmail.com> <393e8107-fd74-df3b-cf1f-b3e029132cec@gmail.com> <20180929200719.c1684242cbe9db8ec5560c97@gmail.com> <07a9a2ac-dff6-d644-81f4-15feae919819@gmail.com> Message-ID: <20180930133548.eae61a474b9d1ca1e2cfcc7b@gmail.com> On Sat, 29 Sep 2018 13:31:07 +0200 Beno?t Minisini wrote: > Le 29/09/2018 ? 12:37, Me a ?crit?: > >>> > >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > >>> > >> > >> The Action._Register() method is called each time the Action property of > >> a control changes. > >> > >> -- > >> Beno?t Minisini > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > Aha! Does that happen for menus as well? > > More tomorrow, I'll have a look-see. > > b > > > > In the last commit, I have added two new methods to the Action class > defined in gb.form.mdi: > > Action.Add() declares a new action. You have to give all the action > properties: the action name, the text, the icon url, if the action can > have a shortcut, and the default shortcut. > > Action.AddFrom() does the same thing, but from a control. > > Beware that as a Picture object never knows that it has been created > from the stock, Action.AddFrom() cannot guess the icon url associated > with a control. > > I decided not to add actions automatically through the > Action._Register() method I told you previously, because it's too hard > to handle. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Works well! But ... :-) Something strange happened. Some of the normal menus i.e. the ones configured via the form designer no longer appear in the shortcut editor, some do?? To make them re-appear I had to delete them and re-add them, then everything works. (I am looking at the .actions files and see some strange things like menus with "no text" even though they actually do have text/caption. Maybe this is not related? I'll do some more checking.) regards Bruce -- adamant42 at gmail.com From adamnt42 at gmail.com Sun Sep 30 06:06:41 2018 From: adamnt42 at gmail.com (Me) Date: Sun, 30 Sep 2018 13:36:41 +0930 Subject: [Gambas-user] Generic event handler - is it possible? In-Reply-To: References: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> Message-ID: <20180930133641.8312b71fe1ace427bdabd9a1@gmail.com> On Sat, 29 Sep 2018 08:07:26 +0200 Fabien Bodard wrote: > > > > Sorry Bruce... bad read... forget the last post > > > > >> Rats! You got me all excited there. regards Bruce -- adamant42 at gmail.com From gambas.fr at gmail.com Sun Sep 30 10:20:03 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 30 Sep 2018 10:20:03 +0200 Subject: [Gambas-user] Generic event handler - is it possible? In-Reply-To: <20180930133641.8312b71fe1ace427bdabd9a1@gmail.com> References: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> <20180930133641.8312b71fe1ace427bdabd9a1@gmail.com> Message-ID: And by using an observer ? This observer can be created in the last object and maybe redirected to your main class ? The only things you have to do is to have a way to get acces to the main object handle. Maybe via a static property. So then the observer will duplicate the events and raise it to the main class. So you can indicate to the observer to raise after the diplicate one an lock the raising from the children class before the main class catch. If the error is managed in the far child then lock the raising else let the main manage it. Hobs = new observer (me) as "Satellite " Object.attach (hobs, CMain.Current,"Satellite") Maybe a way.... Le dim. 30 sept. 2018 06:07, Me a ?crit : > On Sat, 29 Sep 2018 08:07:26 +0200 > Fabien Bodard wrote: > > > > > > > Sorry Bruce... bad read... forget the last post > > > > > > > >> > > Rats! You got me all excited there. > > regards > Bruce > -- > adamant42 at gmail.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Sep 30 12:07:27 2018 From: adamnt42 at gmail.com (Me) Date: Sun, 30 Sep 2018 19:37:27 +0930 Subject: [Gambas-user] Generic event handler - is it possible? In-Reply-To: References: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> <20180930133641.8312b71fe1ace427bdabd9a1@gmail.com> Message-ID: <20180930193727.42c9224d267250d9139eae4a@gmail.com> On Sun, 30 Sep 2018 10:20:03 +0200 Fabien Bodard wrote: > And by using an observer ? > > This observer can be created in the last object and maybe redirected to > your main class ? > > The only things you have to do is to have a way to get acces to the main > object handle. Maybe via a static property. > > So then the observer will duplicate the events and raise it to the main > class. > > So you can indicate to the observer to raise after the diplicate one an > lock the raising from the children class before the main class catch. > > If the error is managed in the far child then lock the raising else let the > main manage it. > > Hobs = new observer (me) as "Satellite " > > Object.attach (hobs, CMain.Current,"Satellite") > > Maybe a way.... > > > Le dim. 30 sept. 2018 06:07, Me a ?crit : > > > On Sat, 29 Sep 2018 08:07:26 +0200 > > Fabien Bodard wrote: > > > > > > > > > > Sorry Bruce... bad read... forget the last post > > > > > > > > > > >> > > > > Rats! You got me all excited there. > > > > regards > > Bruce > > -- > > adamant42 at gmail.com > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Sounds promising, I'll give it a go tomoorow. I'll give a bit more explanantion though. Every day we process between 80 and 2000 auction lots (thouroughbred horses) from 1 to 20ish auction houses. This involves (say about) 12 messages we receive in several (23) different ways. Well over 80% of the messages we get in the morning (and during the day) go through the system with no "problem". However, some times there is an exception that, well, happens. An example would be - a horse is registered as a lot at a particular auction a few days before the actual sale, on the morning of the sale the horse is delivered to the auction yard. On inspection it is founf to be lame, or the wrong color or it's a cow not a horse, or any one of a gazillion other things that render the proposed lot disadvantageous for sale. While we are processing large batches of messages from the auction houses we encounter some exception that we cannot handle automatically, the most common being the delivered horse is not the same color as the registered sale horse. The problem is that someone, somewhere entered the wrong data: the vendor, the handlers at the yard, the clerical staff etc. It can only be rectified by a human (we, anywhere up to 400km away, have no idea what color the actual horse is) and a phone call or a few phone calls. Meanwhile the incoming message process really needs to continue with handling the next messages. Due the nature of the parsers the message that has the problem can be anywhere up to 6 or 7 levels deep in collections of collections of collections. So the Error.Raise mechanism doesn't work as it would unravel the execution stream and probably lose its place. The general idea of what I'm looking to achieve is that the main code could catch an event, say "WrongColor" and write it out to a queue file of messages thet need manual handling. Trying to manage it from the top down would be a coding nightmare. So youre idea looks good so far. (Decades ago, I could have written this in a dozen lines or so in PL1 using conditions and an OnAny$ condition handler! Such is life.) cheers Bruce -- adamant42 at gmail.com From gambas.fr at gmail.com Sun Sep 30 12:12:25 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 30 Sep 2018 12:12:25 +0200 Subject: [Gambas-user] Generic event handler - is it possible? In-Reply-To: <20180930193727.42c9224d267250d9139eae4a@gmail.com> References: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> <20180930133641.8312b71fe1ace427bdabd9a1@gmail.com> <20180930193727.42c9224d267250d9139eae4a@gmail.com> Message-ID: The other way can be a direct call to a static function in the main class. This static function just add the log in a queued file. Le dim. 30 sept. 2018 12:08, Me a ?crit : > On Sun, 30 Sep 2018 10:20:03 +0200 > Fabien Bodard wrote: > > > And by using an observer ? > > > > This observer can be created in the last object and maybe redirected to > > your main class ? > > > > The only things you have to do is to have a way to get acces to the main > > object handle. Maybe via a static property. > > > > So then the observer will duplicate the events and raise it to the main > > class. > > > > So you can indicate to the observer to raise after the diplicate one an > > lock the raising from the children class before the main class catch. > > > > If the error is managed in the far child then lock the raising else let > the > > main manage it. > > > > Hobs = new observer (me) as "Satellite " > > > > Object.attach (hobs, CMain.Current,"Satellite") > > > > Maybe a way.... > > > > > > Le dim. 30 sept. 2018 06:07, Me a ?crit : > > > > > On Sat, 29 Sep 2018 08:07:26 +0200 > > > Fabien Bodard wrote: > > > > > > > > > > > > > Sorry Bruce... bad read... forget the last post > > > > > > > > > > > > > >> > > > > > > Rats! You got me all excited there. > > > > > > regards > > > Bruce > > > -- > > > adamant42 at gmail.com > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > Sounds promising, I'll give it a go tomoorow. > > I'll give a bit more explanantion though. > Every day we process between 80 and 2000 auction lots (thouroughbred > horses) from > 1 to 20ish auction houses. This involves (say about) 12 messages we > receive in > several (23) different ways. Well over 80% of the messages we get in the > morning (and > during the day) go through the system with no "problem". However, some > times there > is an exception that, well, happens. An example would be - a horse is > registered as a > lot at a particular auction a few days before the actual sale, on the > morning of the sale > the horse is delivered to the auction yard. On inspection it is founf to > be lame, or the > wrong color or it's a cow not a horse, or any one of a gazillion other > things that > render the proposed lot disadvantageous for sale. While we are processing > large > batches of messages from the auction houses we encounter some exception > that > we cannot handle automatically, the most common being the delivered horse > is not > the same color as the registered sale horse. The problem is that someone, > somewhere > entered the wrong data: the vendor, the handlers at the yard, the clerical > staff etc. > It can only be rectified by a human (we, anywhere up to 400km away, have > no idea what > color the actual horse is) and a phone call or a few phone calls. > Meanwhile the incoming message process really needs to continue with > handling the > next messages. Due the nature of the parsers the message that has the > problem can > be anywhere up to 6 or 7 levels deep in collections of collections of > collections. > So the Error.Raise mechanism doesn't work as it would unravel the > execution stream > and probably lose its place. The general idea of what I'm looking to > achieve is that the > main code could catch an event, say "WrongColor" and write it out to a > queue file of > messages thet need manual handling. Trying to manage it from the top down > would be > a coding nightmare. So youre idea looks good so far. (Decades ago, I > could have > written this in a dozen lines or so in PL1 using conditions and an OnAny$ > condition > handler! Such is life.) > > cheers > Bruce > > -- > adamant42 at gmail.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Sep 30 12:24:07 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 30 Sep 2018 12:24:07 +0200 Subject: [Gambas-user] Generic event handler - is it possible? In-Reply-To: References: <20180929112800.dca8ad8a9447612a0d501a5e@gmail.com> <20180930133641.8312b71fe1ace427bdabd9a1@gmail.com> <20180930193727.42c9224d267250d9139eae4a@gmail.com> Message-ID: For getting the main class if there is different one you can use a loop you put in the collect class Private Sub GetMainClass () Dim hParent as Object hParent = me Do hParent =Object.Parent (hParent) If Not (hParent is MyCollect) then break Loop Return hParent End The child class must have an event and the parent an handle to get object.parent setting Le dim. 30 sept. 2018 12:12, Fabien Bodard a ?crit : > The other way can be a direct call to a static function in the main class. > > This static function just add the log in a queued file. > > Le dim. 30 sept. 2018 12:08, Me a ?crit : > >> On Sun, 30 Sep 2018 10:20:03 +0200 >> Fabien Bodard wrote: >> >> > And by using an observer ? >> > >> > This observer can be created in the last object and maybe redirected to >> > your main class ? >> > >> > The only things you have to do is to have a way to get acces to the main >> > object handle. Maybe via a static property. >> > >> > So then the observer will duplicate the events and raise it to the main >> > class. >> > >> > So you can indicate to the observer to raise after the diplicate one an >> > lock the raising from the children class before the main class catch. >> > >> > If the error is managed in the far child then lock the raising else let >> the >> > main manage it. >> > >> > Hobs = new observer (me) as "Satellite " >> > >> > Object.attach (hobs, CMain.Current,"Satellite") >> > >> > Maybe a way.... >> > >> > >> > Le dim. 30 sept. 2018 06:07, Me a ?crit : >> > >> > > On Sat, 29 Sep 2018 08:07:26 +0200 >> > > Fabien Bodard wrote: >> > > >> > > > > >> > > > > Sorry Bruce... bad read... forget the last post >> > > > >> > > > > >> > > > >> >> > > >> > > Rats! You got me all excited there. >> > > >> > > regards >> > > Bruce >> > > -- >> > > adamant42 at gmail.com >> > > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > > >> >> Sounds promising, I'll give it a go tomoorow. >> >> I'll give a bit more explanantion though. >> Every day we process between 80 and 2000 auction lots (thouroughbred >> horses) from >> 1 to 20ish auction houses. This involves (say about) 12 messages we >> receive in >> several (23) different ways. Well over 80% of the messages we get in >> the morning (and >> during the day) go through the system with no "problem". However, some >> times there >> is an exception that, well, happens. An example would be - a horse is >> registered as a >> lot at a particular auction a few days before the actual sale, on the >> morning of the sale >> the horse is delivered to the auction yard. On inspection it is founf to >> be lame, or the >> wrong color or it's a cow not a horse, or any one of a gazillion other >> things that >> render the proposed lot disadvantageous for sale. While we are processing >> large >> batches of messages from the auction houses we encounter some exception >> that >> we cannot handle automatically, the most common being the delivered horse >> is not >> the same color as the registered sale horse. The problem is that someone, >> somewhere >> entered the wrong data: the vendor, the handlers at the yard, the >> clerical staff etc. >> It can only be rectified by a human (we, anywhere up to 400km away, have >> no idea what >> color the actual horse is) and a phone call or a few phone calls. >> Meanwhile the incoming message process really needs to continue with >> handling the >> next messages. Due the nature of the parsers the message that has the >> problem can >> be anywhere up to 6 or 7 levels deep in collections of collections of >> collections. >> So the Error.Raise mechanism doesn't work as it would unravel the >> execution stream >> and probably lose its place. The general idea of what I'm looking to >> achieve is that the >> main code could catch an event, say "WrongColor" and write it out to a >> queue file of >> messages thet need manual handling. Trying to manage it from the top down >> would be >> a coding nightmare. So youre idea looks good so far. (Decades ago, I >> could have >> written this in a dozen lines or so in PL1 using conditions and an OnAny$ >> condition >> handler! Such is life.) >> >> cheers >> Bruce >> >> -- >> adamant42 at gmail.com >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Sep 30 14:37:58 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Sep 2018 14:37:58 +0200 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: <20180929212707.GA1811@highrise.localdomain> References: <20180929212707.GA1811@highrise.localdomain> Message-ID: Il giorno sab 29 set 2018 alle ore 23:26 Tobias Boege ha scritto: > On Sat, 29 Sep 2018, Gianluigi wrote: > > By compiling Gambas Master on Fedora after successfully configuring the > > libraries (|| ALL COMPONENTS WILL BE COMPILED) on make/configure I get > > error, attach the final part of the log file. > > Any suggestions? > > > > [...] > > > > Making all in gb.openssl > > make[2]: ingresso nella directory "/home/gian/gambasdevel/gb.openssl" > > make all-recursive > > make[3]: ingresso nella directory "/home/gian/gambasdevel/gb.openssl" > > Making all in src > > make[4]: ingresso nella directory "/home/gian/gambasdevel/gb.openssl/src" > > CC gb_openssl_la-main.lo > > In file included from ../../main/gbx/gbx_component.h:31, > > from ../../main/gbx/gbx_class.h:31, > > from ../../main/gbx/gbx_value.h:30, > > from ../../main/gbx/gbx_string.h:27, > > from ../../main/gbx/gbx_variant.h:28, > > from ../../main/gbx/gbx_compare.h:29, > > from main.c:27: > > ../../main/gbx/gbx_library.h:34:12: fatal error: ltdl.h: No such file or > directory > > #include > > ^~~~~~~~ > > compilation terminated. > > make[4]: *** [Makefile:489: gb_openssl_la-main.lo] Error 1 > > make[4]: uscita dalla directory "/home/gian/gambasdevel/gb.openssl/src" > > make[3]: *** [Makefile:435: all-recursive] Error 1 > > make[3]: uscita dalla directory "/home/gian/gambasdevel/gb.openssl" > > make[2]: *** [Makefile:367: all] Error 2 > > make[2]: uscita dalla directory "/home/gian/gambasdevel/gb.openssl" > > make[1]: *** [Makefile:436: all-recursive] Error 1 > > make[1]: uscita dalla directory "/home/gian/gambasdevel" > > make: *** [Makefile:377: all] Error 2 > > That's a strange error to happen at this late stage, but main.c > in gb.openssl does include some unusual gambas headers. > > Do you have installed whatever provides ltdl.h on Fedora? I looked > a bit and it's probably called libtool-ltdl-devel, but information > on the web outdates now and then... It compiles fine over here, on > an (almost) freshly updated Arch Linux. > > Regards, > Tobi > @Tony, thanks for the answer, but libtool was already installed. @Tobias, yes, libtool-ltdl-devel was missing, thank you. Now I can install Gambas3 (working) but it doesn't compile gbh3. I tried to install am-utils but without success, which library still do I miss? I enclose the final part of the log file TIA Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: install.log Type: text/x-log Size: 873 bytes Desc: not available URL: From taboege at gmail.com Sun Sep 30 17:20:22 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 30 Sep 2018 17:20:22 +0200 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: References: <20180929212707.GA1811@highrise.localdomain> Message-ID: <20180930152022.GA12450@highrise.localdomain> On Sun, 30 Sep 2018, Gianluigi wrote: > Now I can install Gambas3 (working) but it doesn't compile gbh3. > I tried to install am-utils but without success, which library still do I > miss? > > I enclose the final part of the log file > > TIA > > Regards > Gianluigi > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > Installing the scripter... > Registering Gambas script mimetype > Registering Gambas server page mimetype > Installing the Gambas appdata file > Installing the Gambas template projects > /usr/bin/install -c -d /usr/share/gambas3/template; > cp -R ./template/* /usr/share/gambas3/template; > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/gian/gambasdevel/app" > make[1]: uscita dalla directory "/home/gian/gambasdevel/app" > Making install in . > make[1]: ingresso nella directory "/home/gian/gambasdevel" > make[2]: ingresso nella directory "/home/gian/gambasdevel" > > || > || Unable to compile gbh3 > || > > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/gian/gambasdevel" > make[1]: uscita dalla directory "/home/gian/gambasdevel" Hmm, gbh3 doesn't really need anything. Can you do $ cd your/gambas/sources $ cd main/tools/gbh3 $ gbc3 -ga and see what it says? In any case, gbh3 is more of a development tool IIRC. It is intended to extract documentation from source code comments in C/C++ components, similar to the '' and ''' comments in Gambas sources. You won't miss anything even if it doesn't compile. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Sep 30 19:49:29 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Sep 2018 19:49:29 +0200 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: <20180930152022.GA12450@highrise.localdomain> References: <20180929212707.GA1811@highrise.localdomain> <20180930152022.GA12450@highrise.localdomain> Message-ID: Il giorno dom 30 set 2018 alle ore 17:19 Tobias Boege ha scritto: > On Sun, 30 Sep 2018, Gianluigi wrote: > > Now I can install Gambas3 (working) but it doesn't compile gbh3. > > I tried to install am-utils but without success, which library still do I > > miss? > > > > I enclose the final part of the log file > > > > TIA > > > > Regards > > Gianluigi > > > Installing gambas3... > > Compiling gbs3... > > OK > > Installing gbs3... > > Installing the scripter... > > Registering Gambas script mimetype > > Registering Gambas server page mimetype > > Installing the Gambas appdata file > > Installing the Gambas template projects > > /usr/bin/install -c -d /usr/share/gambas3/template; > > cp -R ./template/* /usr/share/gambas3/template; > > make[2]: Nessuna operazione da eseguire per "install-data-am". > > make[2]: uscita dalla directory "/home/gian/gambasdevel/app" > > make[1]: uscita dalla directory "/home/gian/gambasdevel/app" > > Making install in . > > make[1]: ingresso nella directory "/home/gian/gambasdevel" > > make[2]: ingresso nella directory "/home/gian/gambasdevel" > > > > || > > || Unable to compile gbh3 > > || > > > > make[2]: Nessuna operazione da eseguire per "install-data-am". > > make[2]: uscita dalla directory "/home/gian/gambasdevel" > > make[1]: uscita dalla directory "/home/gian/gambasdevel" > > Hmm, gbh3 doesn't really need anything. Can you do > > $ cd your/gambas/sources > $ cd main/tools/gbh3 > $ gbc3 -ga > > and see what it says? > > In any case, gbh3 is more of a development tool IIRC. It is intended > to extract documentation from source code comments in C/C++ components, > similar to the '' and ''' comments in Gambas sources. You won't miss > anything even if it doesn't compile. > > Regards, > Tobi > Hi Tobias, thank you, the 'gbc3 -ga' command returns 'OK' Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Sep 30 20:31:38 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 30 Sep 2018 20:31:38 +0200 Subject: [Gambas-user] Error compiling on Fedora In-Reply-To: References: <20180929212707.GA1811@highrise.localdomain> <20180930152022.GA12450@highrise.localdomain> Message-ID: Just for your information I have compiled Gambas3 Master on Fedora 28 Workstation following this step by step procedure: Note: Every time the terminal asks for confirmation we answer with y (yes). sudo dnf groupupdate "Development Tools" "Development Libraries" (this command can also be given in our language) Download the latest rpmfusion-free-release-stable rpm from: http://download1.rpmfusion.org/free/fedora/ Install with: sudo rpm -Uvh rpmfusion-free-release-stable.noarch.rpm sudo dnf install medialibrary-devel Note: The next command, if copied, must be rebuilt in a text editor like gedit. We need to remove the wrap and the libraries must be separated by a space. sudo dnf install gcc-c++-x86_64-linux-gnu libtool libtool-ltdl-devel libffi-devel libzip libzip-devel cairo-devel libcryptui-devel community-mysql-devel unixODBC-devel postgresql-devel sqlite2-devel imlib2-devel librsvg2-devel libsqlite3x-devel libXtst-devel libgnome-keyring-devel gtk2-devel gtk3-devel gtkglext-devel gdk-pixbuf2-devel libxml-devel gsl-devel imlib-devel gstreamer1-devel gmime-devel ghc-OpenGL-devel glslang-devel glusterfs-devel poppler-devel poppler-qt-devel qt-devel poppler-qt5-devel PackageKit-Qt5-devel SDL-devel SDL2-devel SDL_sound-devel SDL_ttf-devel SDL_net-devel SDL_mixer-devel SDL_image-devel SDL_gfx-devel SDL_Pango-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libGL-devel glew-devel qtwebkit-devel qt5-devel.noarch openal-soft-devel qt5-qtwebkit-devel alure-devel freealut-devel SDL2_image-devel SDL2_net-devel SDL2_ttf-devel SDL2_mixer-devel libjpeg-turbo-devel libv4l-devel gstreamer-devel gstreamer-plugins-base-devel libxslt-devel pulseaudio-libs-devel audiofile-devel sage-devel esound-devel qt5-qtmultimedia-devel qt5-gstreamer-devel Since git is already installed on Fedora 28: git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel cd gambasdevel ./reconf-all && ./configure -C If response = || ALL COMPONENTS WILL BE COMPILED: make sudo make install Done. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: