From chriseana at ...626... Thu Jan 1 05:43:15 2015 From: chriseana at ...626... (Christian e Ana Luiza Britto) Date: Thu, 1 Jan 2015 02:43:15 -0200 Subject: [Gambas-user] DataSource Before Save Message-ID: Hi Folks, Happy New Year for everyone! I would like to know if it's possible to use DataSource BeforeSave event to check data before it gets saved and cancel that if necessary (using Stop Event or something like that). It's possible to check data validation through database triggers, but I would like to make it in Gambas just to have the possibility check data and translate the messages presented to the users. If there's a way please let me know. I'm using Gambas 3.6.2 Best regards, Christian From gambas at ...1... Thu Jan 1 10:02:28 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 01 Jan 2015 10:02:28 +0100 Subject: [Gambas-user] Gambas translator behaviour (expected or bug?) In-Reply-To: <1419978869.7545.3.camel@...3024...> References: <1419947830.5494.6.camel@...3024...> <54A3215C.2010201@...1...> <1419978869.7545.3.camel@...3024...> Message-ID: <54A50D24.2030609@...1...> Le 30/12/2014 23:34, Willy Raets a ?crit : > On di, 2014-12-30 at 23:04 +0100, Beno?t Minisini wrote: >> Le 30/12/2014 14:57, Willy Raets a ?crit : >>> Hi all, >>> >>> I was wondering next about the Gambas translator: >>> When importing .po files send to me by a translator, only the empty >>> strings get imported. >>> If a translator has changed a earlier translated string to a more >>> correct translation these modified strings do NOT get imported because >>> there is already an earlier translated string present that needs the >>> corrected string instead. >>> >>> Is this expected behaviour or a bug? >>> >>> For now I work around this by deleting the entire translation for the >>> specific language and next importing the .po file. >>> >>> Note that I am using Gambas 3.5.4 and didn't test this for Gambas 3.6.x >>> So maybe this behaviour is no longer. >>> >>> >> >> It is the expected behaviour, because the import feature was done just >> to get not yet translated strings from other translation files. Not for >> importing a new translation. >> >> Maybe I should add a "replace existing translations" option? >> > > That would be a great feature. > It has been added in revision #6786. I didn't really test it, so please report any problem! Regards, -- Beno?t Minisini From gambas at ...1... Thu Jan 1 10:12:06 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 01 Jan 2015 10:12:06 +0100 Subject: [Gambas-user] Happy new year... Message-ID: <54A50F66.9040001@...1...> ...to all Gambas users and developers! I'd like to release Gambas 3.7 as soon as possible, because I won't be able to create a Gambas 3.6.3 release. Too much work to backport some important fixes. Please tell me if you have something blocking that release: Fabien, Tobias, Adrien, anyone needing a forgotten bug fix. The most important feature for me is the software farm. I think it is now usable, at least since the very last development version. Not beautiful, not perfect, but usable. I think I will just add a global software heading to the client interface: games, examples, development, education, multimedia, networking... So... If you have a project to publish, don't hesitate to push it on the current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, but it does not point to the farm server at the moment. It needs some tests, it needs some love, it needs your projects! Best wishes, -- Beno?t Minisini From shordi at ...626... Thu Jan 1 11:20:21 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 1 Jan 2015 11:20:21 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A50F66.9040001@...1...> References: <54A50F66.9040001@...1...> Message-ID: Best wishes for you and for Gambas this new year. And for all Gambas users in the world! 2015-01-01 10:12 GMT+01:00 Beno?t Minisini : > ...to all Gambas users and developers! > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > able to create a Gambas 3.6.3 release. Too much work to backport some > important fixes. > > Please tell me if you have something blocking that release: Fabien, > Tobias, Adrien, anyone needing a forgotten bug fix. > > The most important feature for me is the software farm. I think it is > now usable, at least since the very last development version. Not > beautiful, not perfect, but usable. > > I think I will just add a global software heading to the client > interface: games, examples, development, education, multimedia, > networking... > > So... If you have a project to publish, don't hesitate to push it on the > current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > but it does not point to the farm server at the moment. > > It needs some tests, it needs some love, it needs your projects! > > Best wishes, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Thu Jan 1 12:59:51 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 01 Jan 2015 12:59:51 +0100 Subject: [Gambas-user] Software Farm : Authentication failed. In-Reply-To: <1418664186.3778.28.camel@...40...> References: <1418664186.3778.28.camel@...40...> Message-ID: <1420113591.3823.3.camel@...40...> Salut Beno?t, I wrote this, but in 6771 , no change. Ah. GSF stays for "gambas software farm" thanks for all and a happy new year Charlie Am Montag, den 15.12.2014, 18:23 +0100 schrieb Charlie Reinl: > Salut Beno?t, > > version r6741, I'm logged in to the GSF and open the Configuration by > pushing the button Configure... > > No way back (maybe with register, I didn't try), I can't leave the > Configuration. A messagebox with Authentication failed.stops me. > > > [System] > Gambas=3.6.90 > OperatingSystem=Linux > Kernel=3.2.0-74-generic > Architecture=x86 > Distribution=Ubuntu 12.04.5 LTS > Desktop=GNOME > Theme=QPlastique > Language=de_DE.UTF-8 > Memory=3025M > [Libraries] > Cairo=libcairo.so.2.11000.2 > Curl=libcurl.so.4.2.0 > DBus=libdbus-1.so.3.5.8 > GStreamer=libgstreamer-0.10.so.0.30.0 > GTK+3=libgtk-3.so.0.400.2 > GTK+=libgtk-x11-2.0.so.0.2400.10 > Poppler=libpoppler.so.19.0.0 > Qt4=libQtCore.so.4.8.1 > SDL=libSDL-1.2.so.0.11.3 From jussi.lahtinen at ...626... Thu Jan 1 15:08:43 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 1 Jan 2015 16:08:43 +0200 Subject: [Gambas-user] Search/Replace issue with IDE In-Reply-To: <5496694B.8090109@...3413...> References: <5496694B.8090109@...3413...> Message-ID: I tested this with latest revision and it seems to be fixed already. Jussi On Sun, Dec 21, 2014 at 8:31 AM, Francis Payne wrote: > > I seem to have found a search/replace problem with the IDE in 3.5.2 > > If you search for a string and replace it with a zero length string > (basically remove the search string) the results are unpredictable. > > I found this out while converting a VB program = a mass replace of CASE > IS = val to CASE val produced some interesting results. > > I've reproduced it and offer the following: > > > multiple repetitions of CASE IS = 3 when told to replace 'Is =' with > nothing produces: > > Case 3 > > Case 3 > > Case I3 > > Case Is > > Case Is > > Case Is > > Case Is > > > ( of course this might have been reported and fixed already - 3.5.2 is > not quite up to date ) > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Jan 1 15:15:50 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 1 Jan 2015 16:15:50 +0200 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A50F66.9040001@...1...> References: <54A50F66.9040001@...1...> Message-ID: I reported about failure of "Read Watch" test (ERROR 259). I expect watch to call read event because of line: Shell "echo test > " & sTemp Wait But it doesn't. Is my method flawed or what is going on? See attachment. Jussi On Thu, Jan 1, 2015 at 11:12 AM, Beno?t Minisini < gambas at ...1...> wrote: > ...to all Gambas users and developers! > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > able to create a Gambas 3.6.3 release. Too much work to backport some > important fixes. > > Please tell me if you have something blocking that release: Fabien, > Tobias, Adrien, anyone needing a forgotten bug fix. > > The most important feature for me is the software farm. I think it is > now usable, at least since the very last development version. Not > beautiful, not perfect, but usable. > > I think I will just add a global software heading to the client > interface: games, examples, development, education, multimedia, > networking... > > So... If you have a project to publish, don't hesitate to push it on the > current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > but it does not point to the farm server at the moment. > > It needs some tests, it needs some love, it needs your projects! > > Best wishes, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.9.45.tar.gz Type: application/x-gzip Size: 17686 bytes Desc: not available URL: From willy at ...2734... Thu Jan 1 15:50:32 2015 From: willy at ...2734... (Willy Raets) Date: Thu, 01 Jan 2015 15:50:32 +0100 Subject: [Gambas-user] Gambas translator behaviour (expected or bug?) In-Reply-To: <54A50D24.2030609@...1...> References: <1419947830.5494.6.camel@...3024...> <54A3215C.2010201@...1...> <1419978869.7545.3.camel@...3024...> <54A50D24.2030609@...1...> Message-ID: <1420123832.12984.0.camel@...3024...> On do, 2015-01-01 at 10:02 +0100, Beno?t Minisini wrote: > Le 30/12/2014 23:34, Willy Raets a ?crit : > > On di, 2014-12-30 at 23:04 +0100, Beno?t Minisini wrote: > >> Le 30/12/2014 14:57, Willy Raets a ?crit : > >>> Hi all, > >>> > >>> I was wondering next about the Gambas translator: > >>> When importing .po files send to me by a translator, only the empty > >>> strings get imported. > >>> If a translator has changed a earlier translated string to a more > >>> correct translation these modified strings do NOT get imported because > >>> there is already an earlier translated string present that needs the > >>> corrected string instead. > >>> > >>> Is this expected behaviour or a bug? > >>> > >>> For now I work around this by deleting the entire translation for the > >>> specific language and next importing the .po file. > >>> > >>> Note that I am using Gambas 3.5.4 and didn't test this for Gambas 3.6.x > >>> So maybe this behaviour is no longer. > >>> > >>> > >> > >> It is the expected behaviour, because the import feature was done just > >> to get not yet translated strings from other translation files. Not for > >> importing a new translation. > >> > >> Maybe I should add a "replace existing translations" option? > >> > > > > That would be a great feature. > > > > It has been added in revision #6786. I didn't really test it, so please > report any problem! > > Regards, > I'll report back as soon as I have tested it. First need to update a system to the latest revision. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas at ...1... Thu Jan 1 17:47:39 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 01 Jan 2015 17:47:39 +0100 Subject: [Gambas-user] Software Farm : Authentication failed. In-Reply-To: <1420113591.3823.3.camel@...40...> References: <1418664186.3778.28.camel@...40...> <1420113591.3823.3.camel@...40...> Message-ID: <54A57A2B.8080805@...1...> Le 01/01/2015 12:59, Charlie Reinl a ?crit : > Salut Beno?t, > I wrote this, but in 6771 , no change. > Ah. GSF stays for "gambas software farm" > > thanks for all and a happy new year > Charlie > > Am Montag, den 15.12.2014, 18:23 +0100 schrieb Charlie Reinl: >> Salut Beno?t, >> >> version r6741, I'm logged in to the GSF and open the Configuration by >> pushing the button Configure... >> >> No way back (maybe with register, I didn't try), I can't leave the >> Configuration. A messagebox with Authentication failed.stops me. >> Normally you can leave the dialog if you clear the identifier (meaning that you don't want to be identified). Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Thu Jan 1 19:15:25 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 01 Jan 2015 19:15:25 +0100 Subject: [Gambas-user] Software Farm : Authentication failed. In-Reply-To: <54A57A2B.8080805@...1...> References: <1418664186.3778.28.camel@...40...> <1420113591.3823.3.camel@...40...> <54A57A2B.8080805@...1...> Message-ID: <1420136125.3071.15.camel@...40...> Am Donnerstag, den 01.01.2015, 17:47 +0100 schrieb Beno?t Minisini: > Le 01/01/2015 12:59, Charlie Reinl a ?crit : > > Salut Beno?t, > > I wrote this, but in 6771 , no change. > > Ah. GSF stays for "gambas software farm" > > > > thanks for all and a happy new year > > Charlie > > > > Am Montag, den 15.12.2014, 18:23 +0100 schrieb Charlie Reinl: > >> Salut Beno?t, > >> > >> version r6741, I'm logged in to the GSF and open the Configuration by > >> pushing the button Configure... > >> > >> No way back (maybe with register, I didn't try), I can't leave the > >> Configuration. A messagebox with Authentication failed.stops me. > >> > > Normally you can leave the dialog if you clear the identifier (meaning > that you don't want to be identified). > > Regards, Salut Beno?t, when I open the "gambas software farm" from the IDE, I automatically logged in. And when I open now the configuration, this all happens. If I clear the identifier, ok I can leave, but I have to register again, the whole procedure with Login,Pw, email and Pw, answer to noreply at ...3416... . Strange, while it failed this noon (see attachment) now after re-registration the close button works. -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto vom 2015-01-01 13:38:16.png Type: image/png Size: 66241 bytes Desc: not available URL: From sbungay at ...3301... Thu Jan 1 21:41:25 2015 From: sbungay at ...3301... (Stephen) Date: Thu, 01 Jan 2015 15:41:25 -0500 Subject: [Gambas-user] Communicating to hosted forms... In-Reply-To: <1419958430.3482.19.camel@...40...> References: <54A29A1C.201@...3301...> <1419954255.3482.10.camel@...40...> <20141230154554.GB545@...2774...> <1419958430.3482.19.camel@...40...> Message-ID: <54A5B0F5.3080602@...3301...> I just extracted the archive from the email, loaded it and of course it works perfectly. I had this; mhform1.textbox2.text = value and mgform2.textbox2.text = value in my original code but I kept getting "null object" every time it tried execute the line. Thanks for putting up with my stupidity and taking the time to help out. Steve. On 12/30/2014 11:53 AM, Charlie Reinl wrote: > Am Dienstag, den 30.12.2014, 16:45 +0100 schrieb Tobias Boege: >> On Tue, 30 Dec 2014, Charlie Reinl wrote: >>> Am Dienstag, den 30.12.2014, 07:27 -0500 schrieb Stephen: >>>> Attached is a test harness that tries to implement the following. >>>> >>>> FormMain hosts two other forms (Form1 and Form2) within two frames >>>> (Frame1 and Frame2). On each of these hosted forms there are two text >>>> boxes and a button. Pressing the button on either of the hosted forms >>>> raises an event that pushes the value in TextBox1 up to the forms >>>> parent. The object of the exercise is to push the value received in the >>>> event to TextBox2 of the other hosted form. >>>> >>>> Have a look at the project example, I can't seem to get a handle >>>> (sic) on how to communicate to the child forms from the parent. >>>> >>> Salut Stephen, >>> >>> now its to you to find all my changes >>> >> You can still send a patch :-P >> > Salut Tobi, > > while never used, I jump to the occasion and made one. > Q: I would like choose the files but couldn't uncheck > > And if you are on the listview with the checkbuttons and every time > you step back to the source archive and the forward again the file list > is added one more time to the listview. > > einen Guten Rutsch -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site Information Systems From taboege at ...626... Thu Jan 1 21:57:42 2015 From: taboege at ...626... (Tobias Boege) Date: Thu, 1 Jan 2015 21:57:42 +0100 Subject: [Gambas-user] Communicating to hosted forms... In-Reply-To: <54A5B0F5.3080602@...3301...> References: <54A29A1C.201@...3301...> <1419954255.3482.10.camel@...40...> <20141230154554.GB545@...2774...> <1419958430.3482.19.camel@...40...> <54A5B0F5.3080602@...3301...> Message-ID: <20150101205742.GA556@...2774...> On Thu, 01 Jan 2015, Stephen wrote: > I just extracted the archive from the email, loaded it and of course it > works perfectly. > > I had this; > > mhform1.textbox2.text = value > > and > > mgform2.textbox2.text = value > > in my original code but I kept getting "null object" every time it tried > execute the line. > > Thanks for putting up with my stupidity and taking the time to help out. > That's why I found it better to send a patch in this case (I attach the one with Charlie's changes). You will see that he switched a setting in the project properties: +ControlPublic=1 which makes all controls on all forms public variables (they're private by default for reasons of sanity). With this setting enabled, your problem is trivial as you see. I think Charlie wanted you to find that setting by yourself. I think this is a bit unfair as the setting is well hidden in the project options dialog :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: MercuryFramework-0.0.1~MercuryFramework-0.0.1.patch Type: text/x-diff Size: 3310 bytes Desc: not available URL: From adamnt42 at ...626... Thu Jan 1 22:43:36 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 2 Jan 2015 08:13:36 +1030 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A50F66.9040001@...1...> References: <54A50F66.9040001@...1...> Message-ID: <20150102081336.12539c2da015568aee471f72@...626...> On Thu, 01 Jan 2015 10:12:06 +0100 Beno?t Minisini wrote: > ...to all Gambas users and developers! > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > able to create a Gambas 3.6.3 release. Too much work to backport some > important fixes. > > Please tell me if you have something blocking that release: Fabien, > Tobias, Adrien, anyone needing a forgotten bug fix. > > The most important feature for me is the software farm. I think it is > now usable, at least since the very last development version. Not > beautiful, not perfect, but usable. > > I think I will just add a global software heading to the client > interface: games, examples, development, education, multimedia, > networking... > > So... If you have a project to publish, don't hesitate to push it on the > current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > but it does not point to the farm server at the moment. > > It needs some tests, it needs some love, it needs your projects! > > Best wishes, > > -- > Beno?t Minisini > > OK I tried uploading vrecentfilesd. Seems to go alright but I have the following questions: 1) How do I set up a screenshot? 2) The upload wizard is a bit confusing at the end, it says it published OK but then I have to click on the cancel button to exit the wizard. This seems a bit confusing? regards Bruce -- B Bruen From Karl.Reinl at ...2345... Thu Jan 1 22:55:33 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 01 Jan 2015 22:55:33 +0100 Subject: [Gambas-user] Communicating to hosted forms... In-Reply-To: <20150101205742.GA556@...2774...> References: <54A29A1C.201@...3301...> <1419954255.3482.10.camel@...40...> <20141230154554.GB545@...2774...> <1419958430.3482.19.camel@...40...> <54A5B0F5.3080602@...3301...> <20150101205742.GA556@...2774...> Message-ID: <1420149333.3071.57.camel@...40...> Am Donnerstag, den 01.01.2015, 21:57 +0100 schrieb Tobias Boege: > On Thu, 01 Jan 2015, Stephen wrote: > > I just extracted the archive from the email, loaded it and of course it > > works perfectly. > > > > I had this; > > > > mhform1.textbox2.text = value > > > > and > > > > mgform2.textbox2.text = value > > > > in my original code but I kept getting "null object" every time it tried > > execute the line. > > > > Thanks for putting up with my stupidity and taking the time to help out. > > > > That's why I found it better to send a patch in this case (I attach the one > with Charlie's changes). You will see that he switched a setting in the > project properties: > > +ControlPublic=1 > > which makes all controls on all forms public variables (they're private by > default for reasons of sanity). With this setting enabled, your problem is > trivial as you see. > > I think Charlie wanted you to find that setting by yourself. I think this is > a bit unfair as the setting is well hidden in the project options dialog :-) > > Regards, > Tobi > Salut Tobi, but that was not the main problem, +ControlPublic=1 was just a first change to see, and that was not turned back. Stephen problem was here Private Sub InitializeControls() - mhForm1 = New Form1(Frame1) As "Form1" - mhForm2 = New Form2(Frame2) As "Form2" + mhForm1 = New Form1(Frame1) As "myForm1" + mhForm2 = New Form2(Frame2) As "myForm2" End and that made it work easier ' Gambas class file -Public mhForm1 As Form -Public mhForm2 As Form +Public mhForm1 As Form1 +Public mhForm2 As Form2 But thanks to fix the patch function in the IDE Gesundes neues Jahr -- Amicalement Charlie From taboege at ...626... Thu Jan 1 22:52:43 2015 From: taboege at ...626... (Tobias Boege) Date: Thu, 1 Jan 2015 22:52:43 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: <20150102081336.12539c2da015568aee471f72@...626...> References: <54A50F66.9040001@...1...> <20150102081336.12539c2da015568aee471f72@...626...> Message-ID: <20150101215243.GB556@...2774...> On Fri, 02 Jan 2015, adamnt42 at ...626... wrote: > On Thu, 01 Jan 2015 10:12:06 +0100 > Beno?t Minisini wrote: > > > ...to all Gambas users and developers! > > > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > > able to create a Gambas 3.6.3 release. Too much work to backport some > > important fixes. > > > > Please tell me if you have something blocking that release: Fabien, > > Tobias, Adrien, anyone needing a forgotten bug fix. > > > > The most important feature for me is the software farm. I think it is > > now usable, at least since the very last development version. Not > > beautiful, not perfect, but usable. > > > > I think I will just add a global software heading to the client > > interface: games, examples, development, education, multimedia, > > networking... > > > > So... If you have a project to publish, don't hesitate to push it on the > > current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > > but it does not point to the farm server at the moment. > > > > It needs some tests, it needs some love, it needs your projects! > > > > Best wishes, > > > > -- > > Beno?t Minisini > > > > > OK I tried uploading vrecentfilesd. Seems to go alright but I have the following questions: > 1) How do I set up a screenshot? The IDE seems to have gotten a screenshot feature (see Tools). If you take a screenshot from there, project/.hidden/screenshots is created and the file is placed there. From this directory you can select screenshots in the publish ComboBox. [ I must say that I'm not a fan of this. I'd like my screenshots to show only the application window (if there is only one window), so until now I created that directory manually and inserted a screenshot from outside the IDE. My normal desktop screenshot program offers me to take screenshots from a specific window (the one under the cursor after some adjustable delay) only. Maybe Benoit can implement this in the IDE's screenshot module, too? That or a new popup menu entry for the project TreeView, "Paste screenshot", which would paste a file (path) from the clipboard and create the necessary directories automatically. ] Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From lewis at ...3412... Thu Jan 1 23:07:10 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 01 Jan 2015 16:07:10 -0600 Subject: [Gambas-user] IF Not (any boolean) then Message-ID: <54A5C50E.6010504@...3412...> If I use "NOT" in an "IF" statement with any boolean (function or value) then I get an error. example: If NOT (BooleanFuntion) then Do this unknown identifier: NOT Am I mistaken in thinking that one should be able to use the NOT operator in this manner ? I can get around this by changing the syntax to. example: If BooleanFuntion = False then Do this Regards, Lewis From adamnt42 at ...626... Thu Jan 1 23:11:31 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 2 Jan 2015 08:41:31 +1030 Subject: [Gambas-user] Happy new year... In-Reply-To: <20150101215243.GB556@...2774...> References: <54A50F66.9040001@...1...> <20150102081336.12539c2da015568aee471f72@...626...> <20150101215243.GB556@...2774...> Message-ID: <20150102084131.db7e81c462d3af132dd8504e@...626...> On Thu, 1 Jan 2015 22:52:43 +0100 Tobias Boege wrote: > On Fri, 02 Jan 2015, adamnt42 at ...626... wrote: > > On Thu, 01 Jan 2015 10:12:06 +0100 > > Beno?t Minisini wrote: > > > > > ...to all Gambas users and developers! > > > > > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > > > able to create a Gambas 3.6.3 release. Too much work to backport some > > > important fixes. > > > > > > Please tell me if you have something blocking that release: Fabien, > > > Tobias, Adrien, anyone needing a forgotten bug fix. > > > > > > The most important feature for me is the software farm. I think it is > > > now usable, at least since the very last development version. Not > > > beautiful, not perfect, but usable. > > > > > > I think I will just add a global software heading to the client > > > interface: games, examples, development, education, multimedia, > > > networking... > > > > > > So... If you have a project to publish, don't hesitate to push it on the > > > current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > > > but it does not point to the farm server at the moment. > > > > > > It needs some tests, it needs some love, it needs your projects! > > > > > > Best wishes, > > > > > > -- > > > Beno?t Minisini > > > > > > > > OK I tried uploading vrecentfilesd. Seems to go alright but I have the following questions: > > 1) How do I set up a screenshot? > > The IDE seems to have gotten a screenshot feature (see Tools). If you take a > screenshot from there, project/.hidden/screenshots is created and the file > is placed there. From this directory you can select screenshots in the > publish ComboBox. > > [ I must say that I'm not a fan of this. I'd like my screenshots to show > only the application window (if there is only one window), so until now > I created that directory manually and inserted a screenshot from outside > the IDE. My normal desktop screenshot program offers me to take > screenshots from a specific window (the one under the cursor after some > adjustable delay) only. > > Maybe Benoit can implement this in the IDE's screenshot module, too? That > or a new popup menu entry for the project TreeView, "Paste screenshot", > which would paste a file (path) from the clipboard and create the necessary > directories automatically. ] > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > Ah, I see. Yes that seems a bit clunky. I use Shutter, Which allows a fair bit of creativity with the screenshot. The one I just uploaded shows the menu (faked, but it only took a few seconds) that is created by the component. Yes, I think there is enough screenshot/screenshot+enhancer utilities available to encourage your idea of pasting one into the project. cheers Bruce -- B Bruen From taboege at ...626... Thu Jan 1 23:13:20 2015 From: taboege at ...626... (Tobias Boege) Date: Thu, 1 Jan 2015 23:13:20 +0100 Subject: [Gambas-user] IF Not (any boolean) then In-Reply-To: <54A5C50E.6010504@...3412...> References: <54A5C50E.6010504@...3412...> Message-ID: <20150101221320.GC556@...2774...> On Thu, 01 Jan 2015, Lewis Balentine wrote: > If I use "NOT" in an "IF" statement with any boolean (function or value) > then I get an error. example: > > If NOT (BooleanFuntion) then Do this > unknown identifier: NOT > > Am I mistaken in thinking that one should be able to use the NOT > operator in this manner ? > > I can get around this by changing the syntax to. example: > If BooleanFuntion = False then Do this > Attached is a script which works over here. If you use Not in the same way, there must be an error in your Gambas or the parts of your code which you didn't show us. (The latter being a common outcome of not sending the whole script/project ;-)) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- #!/usr/bin/gbs3 Private Function OddSeconds() As Boolean Return CBool(Second(Now()) Mod 2) End Public Sub Main() If Not OddSeconds() Then Print "Even seconds!" End From adamnt42 at ...626... Thu Jan 1 23:27:14 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 2 Jan 2015 08:57:14 +1030 Subject: [Gambas-user] IF Not (any boolean) then In-Reply-To: <54A5C50E.6010504@...3412...> References: <54A5C50E.6010504@...3412...> Message-ID: <20150102085714.d8c6aade35843b70f59ef200@...626...> On Thu, 01 Jan 2015 16:07:10 -0600 Lewis Balentine wrote: > If I use "NOT" in an "IF" statement with any boolean (function or value) > then I get an error. example: > > If NOT (BooleanFuntion) then Do this > unknown identifier: NOT > > Am I mistaken in thinking that one should be able to use the NOT > operator in this manner ? > > I can get around this by changing the syntax to. example: > If BooleanFuntion = False then Do this > > Regards, > > Lewis > Hmm, I just tried the following bit of silliness in a form_Open method and it seems to work "ok"? If Not (Not (Me.Close(1))) Then Error " This cannot be true " Else Error " or what???" Endif -- B Bruen From adamnt42 at ...626... Thu Jan 1 23:31:07 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 2 Jan 2015 09:01:07 +1030 Subject: [Gambas-user] IF Not (any boolean) then In-Reply-To: <20150101221320.GC556@...2774...> References: <54A5C50E.6010504@...3412...> <20150101221320.GC556@...2774...> Message-ID: <20150102090107.19922c7567c597b65d884cef@...626...> On Thu, 1 Jan 2015 23:13:20 +0100 Tobias Boege wrote: > On Thu, 01 Jan 2015, Lewis Balentine wrote: > > If I use "NOT" in an "IF" statement with any boolean (function or value) > > then I get an error. example: > > > > If NOT (BooleanFuntion) then Do this > > unknown identifier: NOT > > > > Am I mistaken in thinking that one should be able to use the NOT > > operator in this manner ? > > > > I can get around this by changing the syntax to. example: > > If BooleanFuntion = False then Do this > > > > Attached is a script which works over here. If you use Not in the same way, > there must be an error in your Gambas or the parts of your code which you > didn't show us. (The latter being a common outcome of not sending the whole > script/project ;-)) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk Hey Tobi! Didn't we do this one a few weeks ago? The error is not the NOT it's the missing () .... b :-) -- B Bruen From taboege at ...626... Thu Jan 1 23:39:46 2015 From: taboege at ...626... (Tobias Boege) Date: Thu, 1 Jan 2015 23:39:46 +0100 Subject: [Gambas-user] IF Not (any boolean) then In-Reply-To: <20150102090107.19922c7567c597b65d884cef@...626...> References: <54A5C50E.6010504@...3412...> <20150101221320.GC556@...2774...> <20150102090107.19922c7567c597b65d884cef@...626...> Message-ID: <20150101223946.GD556@...2774...> On Fri, 02 Jan 2015, adamnt42 at ...626... wrote: > On Thu, 1 Jan 2015 23:13:20 +0100 > Tobias Boege wrote: > > > On Thu, 01 Jan 2015, Lewis Balentine wrote: > > > If I use "NOT" in an "IF" statement with any boolean (function or value) > > > then I get an error. example: > > > > > > If NOT (BooleanFuntion) then Do this > > > unknown identifier: NOT > > > > > > Am I mistaken in thinking that one should be able to use the NOT > > > operator in this manner ? > > > > > > I can get around this by changing the syntax to. example: > > > If BooleanFuntion = False then Do this > > > > > > > Attached is a script which works over here. If you use Not in the same way, > > there must be an error in your Gambas or the parts of your code which you > > didn't show us. (The latter being a common outcome of not sending the whole > > script/project ;-)) > > > > Regards, > > Tobi > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Hey Tobi! > > Didn't we do this one a few weeks ago? > > The error is not the NOT it's the missing () .... > > b :-) And I insist that it would be easier to spot if there was a whole concrete (yet minimal) script to look at, not abstracting from important syntactical details like parentheses or whether BooleanFunction above was actually a Function returning a Boolean or an expression producing a Boolean. Well whatever, see you next time, I guess :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sbungay at ...3301... Thu Jan 1 23:39:36 2015 From: sbungay at ...3301... (Stephen) Date: Thu, 01 Jan 2015 17:39:36 -0500 Subject: [Gambas-user] Communicating to hosted forms... In-Reply-To: <20150101205742.GA556@...2774...> References: <54A29A1C.201@...3301...> <1419954255.3482.10.camel@...40...> <20141230154554.GB545@...2774...> <1419958430.3482.19.camel@...40...> <54A5B0F5.3080602@...3301...> <20150101205742.GA556@...2774...> Message-ID: <54A5CCA8.2040507@...3301...> When, at the project level, all controls on all forms are set to be public, the 'Public' property for each control on each form continues to indicate that it is NOT Public. This is misleading. The 'Public' property of all controls should reflect the reality, that it is publicly visible, and that property should then be made uneditable. A tool-tip might have to be put in to explain why it is uneditable, i.e. that the property was set at the project level. The only way that I can see out of my conundrum is to create a property in in each form to which updated information is to be pushed. The property write will process the received data and put it where it needs to go. It promises to be a pain in the neck to implement but will give more granular control, it may also make maintenance a nightmare, so I'll have to give this more thought. Once again, thanks for the assistance. On 01/01/2015 03:57 PM, Tobias Boege wrote: > On Thu, 01 Jan 2015, Stephen wrote: >> I just extracted the archive from the email, loaded it and of course it >> works perfectly. >> >> I had this; >> >> mhform1.textbox2.text = value >> >> and >> >> mgform2.textbox2.text = value >> >> in my original code but I kept getting "null object" every time it tried >> execute the line. >> >> Thanks for putting up with my stupidity and taking the time to help out. >> > That's why I found it better to send a patch in this case (I attach the one > with Charlie's changes). You will see that he switched a setting in the > project properties: > > +ControlPublic=1 > > which makes all controls on all forms public variables (they're private by > default for reasons of sanity). With this setting enabled, your problem is > trivial as you see. > > I think Charlie wanted you to find that setting by yourself. I think this is > a bit unfair as the setting is well hidden in the project options dialog :-) > > Regards, > Tobi > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site Information Systems From vuott at ...325... Thu Jan 1 23:50:16 2015 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Jan 2015 22:50:16 +0000 Subject: [Gambas-user] SDL2 : "Channel" Class has not property nor metods... Message-ID: <1420152616.88844.YahooMailBasic@...3275...> Hello Beno?t, SDL2 "Channel" Class doesn't seems at present to have active property nor metods. Doesn't it ? Regards vuott From taboege at ...626... Thu Jan 1 23:59:31 2015 From: taboege at ...626... (Tobias Boege) Date: Thu, 1 Jan 2015 23:59:31 +0100 Subject: [Gambas-user] Communicating to hosted forms... In-Reply-To: <54A5CCA8.2040507@...3301...> References: <54A29A1C.201@...3301...> <1419954255.3482.10.camel@...40...> <20141230154554.GB545@...2774...> <1419958430.3482.19.camel@...40...> <54A5B0F5.3080602@...3301...> <20150101205742.GA556@...2774...> <54A5CCA8.2040507@...3301...> Message-ID: <20150101225931.GE556@...2774...> On Thu, 01 Jan 2015, Stephen wrote: > The only way that I can see out of my conundrum is to create a > property in in each form to which updated information is to be pushed. > The property write will process the received data and put it where it > needs to go. > Sounds suspiciously like you just want a method (or multiple) in your embedded forms. No need for a property and to "process" its data. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Fri Jan 2 01:01:33 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 01:01:33 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: <20150102084131.db7e81c462d3af132dd8504e@...626...> References: <54A50F66.9040001@...1...> <20150102081336.12539c2da015568aee471f72@...626...> <20150101215243.GB556@...2774...> <20150102084131.db7e81c462d3af132dd8504e@...626...> Message-ID: <54A5DFDD.5010709@...1...> Le 01/01/2015 23:11, adamnt42 at ...626... a ?crit : > On Thu, 1 Jan 2015 22:52:43 +0100 > Tobias Boege wrote: > >> On Fri, 02 Jan 2015, adamnt42 at ...626... wrote: >>> On Thu, 01 Jan 2015 10:12:06 +0100 >>> Beno?t Minisini wrote: >>> >>>> ...to all Gambas users and developers! >>>> >>>> I'd like to release Gambas 3.7 as soon as possible, because I won't be >>>> able to create a Gambas 3.6.3 release. Too much work to backport some >>>> important fixes. >>>> >>>> Please tell me if you have something blocking that release: Fabien, >>>> Tobias, Adrien, anyone needing a forgotten bug fix. >>>> >>>> The most important feature for me is the software farm. I think it is >>>> now usable, at least since the very last development version. Not >>>> beautiful, not perfect, but usable. >>>> >>>> I think I will just add a global software heading to the client >>>> interface: games, examples, development, education, multimedia, >>>> networking... >>>> >>>> So... If you have a project to publish, don't hesitate to push it on the >>>> current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, >>>> but it does not point to the farm server at the moment. >>>> >>>> It needs some tests, it needs some love, it needs your projects! >>>> >>>> Best wishes, >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> >>> OK I tried uploading vrecentfilesd. Seems to go alright but I have the following questions: >>> 1) How do I set up a screenshot? >> >> The IDE seems to have gotten a screenshot feature (see Tools). If you take a >> screenshot from there, project/.hidden/screenshots is created and the file >> is placed there. From this directory you can select screenshots in the >> publish ComboBox. >> >> [ I must say that I'm not a fan of this. I'd like my screenshots to show >> only the application window (if there is only one window), so until now >> I created that directory manually and inserted a screenshot from outside >> the IDE. My normal desktop screenshot program offers me to take >> screenshots from a specific window (the one under the cursor after some >> adjustable delay) only. >> >> Maybe Benoit can implement this in the IDE's screenshot module, too? That >> or a new popup menu entry for the project TreeView, "Paste screenshot", >> which would paste a file (path) from the clipboard and create the necessary >> directories automatically. ] >> >> Regards, >> Tobi >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> > > Ah, I see. Yes that seems a bit clunky. > I use Shutter, Which allows a fair bit of creativity with the screenshot. The one I just uploaded shows the menu (faked, but it only took a few seconds) that is created by the component. > Yes, I think there is enough screenshot/screenshot+enhancer utilities available to encourage your idea of pasting one into the project. > > cheers > Bruce > You were right guys, all that was clumsy. I tried to fix that in revision #6789. I removed the screenshot tool, and now the publish dialog have four options: 1) Keep the screenshot stored on the server. 2) Delete it. 3) Upload a new screenshot from the clipboard. 4) Upload a new screenshot from any file. The screenshot is now automatically reduced and degraded to a jpeg file so that it does not take too much space. Regards, -- Beno?t Minisini From gambas at ...1... Fri Jan 2 01:08:52 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 01:08:52 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: References: <54A50F66.9040001@...1...> Message-ID: <54A5E194.3010200@...1...> Le 01/01/2015 15:15, Jussi Lahtinen a ?crit : > I reported about failure of "Read Watch" test (ERROR 259). > I expect watch to call read event because of line: > Shell "echo test > " & sTemp Wait > > But it doesn't. > Is my method flawed or what is going on? > See attachment. > > > Jussi > Shell "echo test > " & sTemp Wait does not emit any event, as its underlying Process object has no event name. -- Beno?t Minisini From taboege at ...626... Fri Jan 2 01:10:34 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 2 Jan 2015 01:10:34 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A50F66.9040001@...1...> References: <54A50F66.9040001@...1...> Message-ID: <20150102001034.GF556@...2774...> On Thu, 01 Jan 2015, Beno??t Minisini wrote: > ...to all Gambas users and developers! > > I'd like to release Gambas 3.7 as soon as possible, because I won't be > able to create a Gambas 3.6.3 release. Too much work to backport some > important fixes. > > Please tell me if you have something blocking that release: Fabien, > Tobias, Adrien, anyone needing a forgotten bug fix. > Nothing from my side. [ As always I'm trying to get some search trees and a general k-ary tree class in before the next major release but that's nothing to wait for. ] -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From lewis at ...3412... Fri Jan 2 01:38:26 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 01 Jan 2015 18:38:26 -0600 Subject: [Gambas-user] IF Not (any boolean) then In-Reply-To: <20150101223946.GD556@...2774...> References: <54A5C50E.6010504@...3412...> <20150101221320.GC556@...2774...> <20150102090107.19922c7567c597b65d884cef@...626...> <20150101223946.GD556@...2774...> Message-ID: <54A5E882.3000708@...3412...> My Apologies, I was trying to keep the message short and to the point: ' Gambas module file ' Project IfNot Public Sub Main() ' The following line Prints "False" If TestFunk() Then Print "True" Else Print "False" ' The following line prints "False" If TestFunk() = False Then Print "False" Else Print "True" '*** The following line produces the error "unknown identifier: NOT" *** 'If Not(TestFunk()) Then Print "False" Else Print "True" ' The following line prints "True" If True Then Print "True" Else Print "False" '*** The following line produces the error "unknown identifier: NOT" *** 'If Not(True) Then Print "False" Else Print "True" End Private Function TestFunk() As Boolean Return False End ' [System] ' *** Gambas = 3.6.2 *** ' OperatingSystem = Linux ' Kernel = 3.13.0 - 24 - generic ' Architecture = x86_64 ' Distribution = Linux Mint 17 Qiana ' Desktop = MATE ' Theme = QGtk ' Language = en_US.UTF - 8 ' Memory = 15994 M ' [Libraries] ' Cairo = libcairo.so.2.11301.0 ' Curl = libcurl.so.4.3.0 ' DBus = libdbus - 1. so.3.7.6 ' GStreamer = libgstreamer - 0.10.so.0.30.0 ' GStreamer = libgstreamer - 1.0.so.0.204.0 ' GTK + 3 = libgtk - 3. so.0.1000.8 ' GTK += libgtk - x11 - 2.0.so.0.2400.23 ' OpenGL = libGL.so.1.2.0 ' Poppler = libpoppler.so.44.0.0 ' Qt4 = libQtCore.so.4.8.6 ' SDL = libSDL - 1.2.so.0.11.4 '==================================== ' [System] ' *** Gambas = 3.6.90 *** ' OperatingSystem = Linux ' Kernel = 3.13.0 - 24 - generic ' Architecture = x86_64 ' Distribution = Linux Mint 17 Qiana ' Desktop = MATE ' Theme = QGtk ' Language = en_US.UTF - 8 ' Memory = 3944 M ' [Libraries] ' Cairo = libcairo.so.2.11301.0 ' Curl = libcurl.so.4.3.0 ' DBus = libdbus - 1. so.3.7.6 ' GStreamer = libgstreamer - 0.10.so.0.30.0 ' GStreamer = libgstreamer - 1.0.so.0.204.0 ' GTK + 3 = libgtk - 3. so.0.1000.8 ' GTK += libgtk - x11 - 2.0.so.0.2400.23 ' OpenGL = libGL.so.1.2.0 ' Poppler = libpoppler.so.44.0.0 ' Qt4 = libQtCore.so.4.8.6 ' SDL = libSDL - 1.2.so.0.11.4 cheers, Lewis On 01/01/2015 04:39 PM, Tobias Boege wrote: > On Fri, 02 Jan 2015, adamnt42 at ...626... wrote: >> On Thu, 1 Jan 2015 23:13:20 +0100 >> Tobias Boege wrote: >> >>> On Thu, 01 Jan 2015, Lewis Balentine wrote: >>>> If I use "NOT" in an "IF" statement with any boolean (function or value) >>>> then I get an error. example: >>>> >>>> If NOT (BooleanFuntion) then Do this >>>> unknown identifier: NOT >>>> >>>> Am I mistaken in thinking that one should be able to use the NOT >>>> operator in this manner ? >>>> >>>> I can get around this by changing the syntax to. example: >>>> If BooleanFuntion = False then Do this >>>> >>> Attached is a script which works over here. If you use Not in the same way, >>> there must be an error in your Gambas or the parts of your code which you >>> didn't show us. (The latter being a common outcome of not sending the whole >>> script/project ;-)) >>> >>> Regards, >>> Tobi >>> >>> -- >>> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> Hey Tobi! >> >> Didn't we do this one a few weeks ago? >> >> The error is not the NOT it's the missing () .... >> >> b :-) > And I insist that it would be easier to spot if there was a whole concrete > (yet minimal) script to look at, not abstracting from important syntactical > details like parentheses or whether BooleanFunction above was actually a > Function returning a Boolean or an expression producing a Boolean. Well > whatever, see you next time, I guess :-) > > Regards, > Tobi > From jussi.lahtinen at ...626... Fri Jan 2 01:49:01 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 2 Jan 2015 02:49:01 +0200 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A5E194.3010200@...1...> References: <54A50F66.9040001@...1...> <54A5E194.3010200@...1...> Message-ID: > Shell "echo test > " & sTemp Wait > > does not emit any event, as its underlying Process object has no event > name. > I still don't get it. I re-read the documentation and it says: If the WATCH keyword is specified, the file is watched by the interpreter via the select(2) system call : If at least one byte can be read from the file, then the event handler File_Read() is called. If at least one byte can be written into the file, then the event handler File_Write() is called. So, line: hWatchFile = Open sTemp For Read Watch Means file sTemp is watched for bytes to be read. And this writes "test" to the watched file: Shell "echo test > " & sTemp Wait And there is File_Read() event handler declared. Also this works as expected (/dev/zero has always zeroes for reading): hWatchFile = Open "/dev/zero" For Read Watch So, what exactly is missing the event name? Jussi From lewis at ...3412... Fri Jan 2 01:56:59 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 01 Jan 2015 18:56:59 -0600 Subject: [Gambas-user] IF Not (any boolean) then In-Reply-To: <54A5E882.3000708@...3412...> References: <54A5C50E.6010504@...3412...> <20150101221320.GC556@...2774...> <20150102090107.19922c7567c597b65d884cef@...626...> <20150101223946.GD556@...2774...> <54A5E882.3000708@...3412...> Message-ID: <54A5ECDB.4010707@...3412...> >> The error is not the NOT it's the missing () .... << Actually the error turns out to be "EXTRA" (Parenthesis). The following two lines do not produce the error: If Not True Then Print "False" Else Print "True" If Not TestFunk() Then Print "False" Else Print "True" It was my mistaken impresion that the parameters of an operator(s) could ALWAYS be enclosed within Parenthesis as in: X = 1 + 1 X = (1) + (1) X = (1 + 1) * 1 Lewis Balentine From jussi.lahtinen at ...626... Fri Jan 2 01:56:45 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 2 Jan 2015 02:56:45 +0200 Subject: [Gambas-user] IF Not (any boolean) then In-Reply-To: <54A5E882.3000708@...3412...> References: <54A5C50E.6010504@...3412...> <20150101221320.GC556@...2774...> <20150102090107.19922c7567c597b65d884cef@...626...> <20150101223946.GD556@...2774...> <54A5E882.3000708@...3412...> Message-ID: I think this is handled like function named Not: If Not(True) Then And this is what you are trying to do: If Not (True) Then Or just: If Not True Then Jussi On Fri, Jan 2, 2015 at 2:38 AM, Lewis Balentine wrote: > My Apologies, I was trying to keep the message short and to the point: > > ' Gambas module file > ' Project IfNot > > Public Sub Main() > ' The following line Prints "False" > If TestFunk() Then Print "True" Else Print "False" > ' The following line prints "False" > If TestFunk() = False Then Print "False" Else Print "True" > '*** The following line produces the error "unknown identifier: NOT" *** > 'If Not(TestFunk()) Then Print "False" Else Print "True" > ' The following line prints "True" > If True Then Print "True" Else Print "False" > '*** The following line produces the error "unknown identifier: NOT" *** > 'If Not(True) Then Print "False" Else Print "True" > > End > > Private Function TestFunk() As Boolean > Return False > End > > ' [System] > ' *** Gambas = 3.6.2 *** > ' OperatingSystem = Linux > ' Kernel = 3.13.0 - 24 - generic > ' Architecture = x86_64 > ' Distribution = Linux Mint 17 Qiana > ' Desktop = MATE > ' Theme = QGtk > ' Language = en_US.UTF - 8 > ' Memory = 15994 M > ' [Libraries] > ' Cairo = libcairo.so.2.11301.0 > ' Curl = libcurl.so.4.3.0 > ' DBus = libdbus - 1. so.3.7.6 > ' GStreamer = libgstreamer - 0.10.so.0.30.0 > ' GStreamer = libgstreamer - 1.0.so.0.204.0 > ' GTK + 3 = libgtk - 3. so.0.1000.8 > ' GTK += libgtk - x11 - 2.0.so.0.2400.23 > ' OpenGL = libGL.so.1.2.0 > ' Poppler = libpoppler.so.44.0.0 > ' Qt4 = libQtCore.so.4.8.6 > ' SDL = libSDL - 1.2.so.0.11.4 > '==================================== > ' [System] > ' *** Gambas = 3.6.90 *** > ' OperatingSystem = Linux > ' Kernel = 3.13.0 - 24 - generic > ' Architecture = x86_64 > ' Distribution = Linux Mint 17 Qiana > ' Desktop = MATE > ' Theme = QGtk > ' Language = en_US.UTF - 8 > ' Memory = 3944 M > ' [Libraries] > ' Cairo = libcairo.so.2.11301.0 > ' Curl = libcurl.so.4.3.0 > ' DBus = libdbus - 1. so.3.7.6 > ' GStreamer = libgstreamer - 0.10.so.0.30.0 > ' GStreamer = libgstreamer - 1.0.so.0.204.0 > ' GTK + 3 = libgtk - 3. so.0.1000.8 > ' GTK += libgtk - x11 - 2.0.so.0.2400.23 > ' OpenGL = libGL.so.1.2.0 > ' Poppler = libpoppler.so.44.0.0 > ' Qt4 = libQtCore.so.4.8.6 > ' SDL = libSDL - 1.2.so.0.11.4 > > cheers, > > Lewis > > > > On 01/01/2015 04:39 PM, Tobias Boege wrote: > > On Fri, 02 Jan 2015, adamnt42 at ...626... wrote: > >> On Thu, 1 Jan 2015 23:13:20 +0100 > >> Tobias Boege wrote: > >> > >>> On Thu, 01 Jan 2015, Lewis Balentine wrote: > >>>> If I use "NOT" in an "IF" statement with any boolean (function or > value) > >>>> then I get an error. example: > >>>> > >>>> If NOT (BooleanFuntion) then Do this > >>>> unknown identifier: NOT > >>>> > >>>> Am I mistaken in thinking that one should be able to use the NOT > >>>> operator in this manner ? > >>>> > >>>> I can get around this by changing the syntax to. example: > >>>> If BooleanFuntion = False then Do this > >>>> > >>> Attached is a script which works over here. If you use Not in the same > way, > >>> there must be an error in your Gambas or the parts of your code which > you > >>> didn't show us. (The latter being a common outcome of not sending the > whole > >>> script/project ;-)) > >>> > >>> Regards, > >>> Tobi > >>> > >>> -- > >>> "There's an old saying: Don't change anything... ever!" -- Mr. Monk > >> Hey Tobi! > >> > >> Didn't we do this one a few weeks ago? > >> > >> The error is not the NOT it's the missing () .... > >> > >> b :-) > > And I insist that it would be easier to spot if there was a whole > concrete > > (yet minimal) script to look at, not abstracting from important > syntactical > > details like parentheses or whether BooleanFunction above was actually a > > Function returning a Boolean or an expression producing a Boolean. Well > > whatever, see you next time, I guess :-) > > > > Regards, > > Tobi > > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jan 2 02:05:27 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 02:05:27 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: References: <54A50F66.9040001@...1...> <54A5E194.3010200@...1...> Message-ID: <54A5EED7.3010201@...1...> Le 02/01/2015 01:49, Jussi Lahtinen a ?crit : >> Shell "echo test > " & sTemp Wait >> >> does not emit any event, as its underlying Process object has no event >> name. >> > > I still don't get it. I re-read the documentation and it says: > > If the WATCH keyword is specified, the file is watched by the interpreter > via the select(2) system call : > If at least one byte can be read from the file, then the event handler > File_Read() is called. > If at least one byte can be written into the file, then the event handler > File_Write() is called. > > > So, line: > hWatchFile = Open sTemp For Read Watch > > Means file sTemp is watched for bytes to be read. > > And this writes "test" to the watched file: > Shell "echo test > " & sTemp Wait > > And there is File_Read() event handler declared. > > Also this works as expected (/dev/zero has always zeroes for reading): > hWatchFile = Open "/dev/zero" For Read Watch > > So, what exactly is missing the event name? > > > Jussi Sorry I didn't get the point. I will look at it. By the way, it's a pity that you didn't separate all your tests so that we could only run one of them. Regards, -- Beno?t Minisini From vuott at ...325... Fri Jan 2 02:14:05 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 01:14:05 +0000 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <1420152616.88844.YahooMailBasic@...3275...> Message-ID: <1420161245.37222.YahooMailBasic@...3275...> ...in short, SDL2 "Channel" Class seems to be useless at present. Regards vuott -------------------------------------------- Gio 1/1/15, Ru Vuott ha scritto: Oggetto: [Gambas-user] SDL2 : "Channel" Class has not property nor metods... A: gambas-user at lists.sourceforge.net Data: Gioved? 1 gennaio 2015, 23:50 Hello Beno?t, SDL2? "Channel"? Class doesn't seems at present to have active property nor metods. Doesn't it ? Regards vuott ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Jan 2 02:16:57 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 2 Jan 2015 03:16:57 +0200 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A5EED7.3010201@...1...> References: <54A50F66.9040001@...1...> <54A5E194.3010200@...1...> <54A5EED7.3010201@...1...> Message-ID: > By the way, it's a pity that you didn't separate all your tests so that > we could only run one of them. > I will think about that. The test run pretty quickly on my system, but maybe the inconvenience is in debugging... Meanwhile here is the problem isolated. Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: isolation-0.0.1.tar.gz Type: application/x-gzip Size: 4000 bytes Desc: not available URL: From gambas at ...1... Fri Jan 2 02:42:32 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 02:42:32 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: References: <54A50F66.9040001@...1...> <54A5E194.3010200@...1...> <54A5EED7.3010201@...1...> Message-ID: <54A5F788.6060803@...1...> Le 02/01/2015 02:16, Jussi Lahtinen a ?crit : >> By the way, it's a pity that you didn't separate all your tests so that >> we could only run one of them. >> > > I will think about that. The test run pretty quickly on my system, but > maybe the inconvenience is in debugging... > Meanwhile here is the problem isolated. > > > Jussi > There are actually two problems in your test: 1) What is watched is not a file path, but a file descriptor. The command "echo test > XXX" replace the "XXX" file by a new file with the same name, and that file is not opened nor watched by the test. 2) Once the end of file is reached, Gambas automatically stops the watch, even if new data is added to the file later. This behaviour is not a good idea, and I think I did it because sometimes file descritor keep being ready to read even if there is no data anymore. Regards, -- Beno?t Minisini From chriseana at ...626... Fri Jan 2 02:44:09 2015 From: chriseana at ...626... (Christian e Ana Luiza Britto) Date: Thu, 1 Jan 2015 23:44:09 -0200 Subject: [Gambas-user] DataSource Before Save In-Reply-To: References: Message-ID: Hi Folks, Happy New Year for everyone! I would like to know if it's possible to use DataSource BeforeSave event to check data before it gets saved and cancel that if necessary (using Stop Event or something like that). It's possible to check data validation through database triggers, but I would like to make it in Gambas just to have the possibility check data and translate the messages presented to the users. If there's a way please let me know. I'm using Gambas 3.6.2 Best regards, Christian From jussi.lahtinen at ...626... Fri Jan 2 02:53:36 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 2 Jan 2015 03:53:36 +0200 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A5F788.6060803@...1...> References: <54A50F66.9040001@...1...> <54A5E194.3010200@...1...> <54A5EED7.3010201@...1...> <54A5F788.6060803@...1...> Message-ID: > There are actually two problems in your test: > > 1) What is watched is not a file path, but a file descriptor. The > command "echo test > XXX" replace the "XXX" file by a new file with the > same name, and that file is not opened nor watched by the test. > Oh, I see... however the problem persist if I change to to appending: Shell "echo test > " & sTemp Wait --> Shell "echo test >> " & sTemp Wait 2) Once the end of file is reached, Gambas automatically stops the > watch, even if new data is added to the file later. This behaviour is > not a good idea, and I think I did it because sometimes file descritor > keep being ready to read even if there is no data anymore. > Yeah, think it breaks the example given in the documentation (watching a serial port). Jussi From gambas at ...1... Fri Jan 2 02:54:05 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 02:54:05 +0100 Subject: [Gambas-user] DataSource Before Save In-Reply-To: References: Message-ID: <54A5FA3D.403@...1...> Le 02/01/2015 02:44, Christian e Ana Luiza Britto a ?crit : > Hi Folks, > Happy New Year for everyone! > I would like to know if it's possible to use DataSource BeforeSave > event to check data before it gets saved and cancel that if necessary > (using Stop Event or something like that). It's possible to check data > validation through database triggers, but I would like to make it in > Gambas just to have the possibility check data and translate the > messages presented to the users. If there's a way please let me know. > I'm using Gambas 3.6.2 > > Best regards, > Christian > No, but I can add that easily for Gambas 3.7. I.e., using STOP EVENT during the BeforeSave event handler will cancel the save. Regards, -- Beno?t Minisini From gambas at ...1... Fri Jan 2 03:05:03 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 03:05:03 +0100 Subject: [Gambas-user] Happy new year... In-Reply-To: References: <54A50F66.9040001@...1...> <54A5E194.3010200@...1...> <54A5EED7.3010201@...1...> <54A5F788.6060803@...1...> Message-ID: <54A5FCCF.9000807@...1...> Le 02/01/2015 02:53, Jussi Lahtinen a ?crit : >> There are actually two problems in your test: >> >> 1) What is watched is not a file path, but a file descriptor. The >> command "echo test > XXX" replace the "XXX" file by a new file with the >> same name, and that file is not opened nor watched by the test. >> > > Oh, I see... however the problem persist if I change to to appending: > Shell "echo test > " & sTemp Wait > --> > Shell "echo test >> " & sTemp Wait > This is because of the point 2) > > > 2) Once the end of file is reached, Gambas automatically stops the >> watch, even if new data is added to the file later. This behaviour is >> not a good idea, and I think I did it because sometimes file descritor >> keep being ready to read even if there is no data anymore. >> > > Yeah, think it breaks the example given in the documentation (watching a > serial port). > > > > Jussi If I don't stop watching a file descriptor when end of file is reached, I get 100% CPU use when watching a file, as they are always "ready to read". But If I stop watching, you can't write code that waits for data on a file descriptor that does not receive it. I may have a solution... I hope it won't break everything! -- Beno?t Minisini From gambas at ...1... Fri Jan 2 03:28:56 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 02 Jan 2015 03:28:56 +0100 Subject: [Gambas-user] File watching behaviour Message-ID: <54A60268.9060304@...1...> @Jussi : I introduce a new thread for the problem. Now for the new year people will always create a new thread for a new topic. :-) In revision #6791 I made the following changes: - If a watched file descriptor is ready to read, but has no data, then the watch is not automatically stopped anymore. - If the event loop is called too often (because of the last change), I make the interpreter sleep a bit (up to 10 ms), so that the CPU is not eaten. Now the expected problems: - This is not backward compatible. Maybe I should introduce a new syntax. For example adding the "CONTINUE" keyword after the "WATCH" keyword to keep watching. - Only the interpreter event loop has the little sleep. Not gb.qt4, gb.sdl, gb.gtk and gb.gtk3. So you may eat 100% CPU with these components. I will try to find a solution for that. People, please tell me what you think about that. Especially Ron that has the program that watch the biggest number of file descriptors. :-) Regards, -- Beno?t Minisini From adamnt42 at ...626... Fri Jan 2 04:02:13 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 2 Jan 2015 13:32:13 +1030 Subject: [Gambas-user] Happy new year... In-Reply-To: <54A5DFDD.5010709@...1...> References: <54A50F66.9040001@...1...> <20150102081336.12539c2da015568aee471f72@...626...> <20150101215243.GB556@...2774...> <20150102084131.db7e81c462d3af132dd8504e@...626...> <54A5DFDD.5010709@...1...> Message-ID: <20150102133213.94b7919a5777b509f98c7949@...626...> On Fri, 02 Jan 2015 01:01:33 +0100 Beno?t Minisini wrote: > Le 01/01/2015 23:11, adamnt42 at ...626... a ?crit : > > On Thu, 1 Jan 2015 22:52:43 +0100 > > Tobias Boege wrote: > > > >> On Fri, 02 Jan 2015, adamnt42 at ...626... wrote: > >>> On Thu, 01 Jan 2015 10:12:06 +0100 > >>> Beno?t Minisini wrote: > >>> > >>>> ...to all Gambas users and developers! > >>>> > >>>> I'd like to release Gambas 3.7 as soon as possible, because I won't be > >>>> able to create a Gambas 3.6.3 release. Too much work to backport some > >>>> important fixes. > >>>> > >>>> Please tell me if you have something blocking that release: Fabien, > >>>> Tobias, Adrien, anyone needing a forgotten bug fix. > >>>> > >>>> The most important feature for me is the software farm. I think it is > >>>> now usable, at least since the very last development version. Not > >>>> beautiful, not perfect, but usable. > >>>> > >>>> I think I will just add a global software heading to the client > >>>> interface: games, examples, development, education, multimedia, > >>>> networking... > >>>> > >>>> So... If you have a project to publish, don't hesitate to push it on the > >>>> current 'gambaswiki.org' farm server. 'gambasfarm.org' has been bought, > >>>> but it does not point to the farm server at the moment. > >>>> > >>>> It needs some tests, it needs some love, it needs your projects! > >>>> > >>>> Best wishes, > >>>> > >>>> -- > >>>> Beno?t Minisini > >>>> > >>>> > >>> OK I tried uploading vrecentfilesd. Seems to go alright but I have the following questions: > >>> 1) How do I set up a screenshot? > >> > >> The IDE seems to have gotten a screenshot feature (see Tools). If you take a > >> screenshot from there, project/.hidden/screenshots is created and the file > >> is placed there. From this directory you can select screenshots in the > >> publish ComboBox. > >> > >> [ I must say that I'm not a fan of this. I'd like my screenshots to show > >> only the application window (if there is only one window), so until now > >> I created that directory manually and inserted a screenshot from outside > >> the IDE. My normal desktop screenshot program offers me to take > >> screenshots from a specific window (the one under the cursor after some > >> adjustable delay) only. > >> > >> Maybe Benoit can implement this in the IDE's screenshot module, too? That > >> or a new popup menu entry for the project TreeView, "Paste screenshot", > >> which would paste a file (path) from the clipboard and create the necessary > >> directories automatically. ] > >> > >> Regards, > >> Tobi > >> > >> -- > >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk > >> > > > > Ah, I see. Yes that seems a bit clunky. > > I use Shutter, Which allows a fair bit of creativity with the screenshot. The one I just uploaded shows the menu (faked, but it only took a few seconds) that is created by the component. > > Yes, I think there is enough screenshot/screenshot+enhancer utilities available to encourage your idea of pasting one into the project. > > > > cheers > > Bruce > > > > You were right guys, all that was clumsy. I tried to fix that in > revision #6789. > > I removed the screenshot tool, and now the publish dialog have four options: > > 1) Keep the screenshot stored on the server. > > 2) Delete it. > > 3) Upload a new screenshot from the clipboard. > > 4) Upload a new screenshot from any file. > > The screenshot is now automatically reduced and degraded to a jpeg file > so that it does not take too much space. > > Regards, > > -- > Beno?t Minisini > That all sounds a lot better. But... It is now 41C here... Yes, I am not joking... I'll have to take a look later. -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: bugger_047.png Type: image/png Size: 31323 bytes Desc: not available URL: From gambas at ...1... Fri Jan 2 04:46:37 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 04:46:37 +0100 Subject: [Gambas-user] SerialPort: RS232 DTR problem In-Reply-To: <20141216145206.GA547@...2774...> References: <20141216145206.GA547@...2774...> Message-ID: <54A6149D.6090205@...1...> Le 16/12/2014 15:52, Tobias Boege a ?crit : > Hi, > > [ this is a forwarded bug report -- and this time I'm only translating. I > don't understand any of these hardware things. If there are questions > left, don't hesitate; ] > > a user complains that SerialPort.DTR is buggy on his system: after > initialisation, this property is False and the voltage is -12V. > > Setting it to True works and the voltage raises to +12V. But setting it to > False afterwards does nothing: the property continues to return True the > voltage remains on +12V. The needed hardware is an RS232 or an RS232-USB > adapter. > > He says it worked with Gambas2 and he first noticed that it didn't with > Gambas 3.1.1 (from the Ubuntu repositories). I urged him to update and the > error still happens with 3.6.2. > > Attached is the project we came up with to reproduce the issue. He also > mentioned that behaviour changed slightly when he left out the graphical > component he initially used his project with: with a graphical component, > the hardware didn't react and the property remained True and without a > graphical component, the hardware reacts correctly, only the property gives > the wrong value -- if I got him right. > > Regards, > Tobi > Does the last revision (#6792) change anything? -- Beno?t Minisini From gambas at ...1... Fri Jan 2 04:47:15 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 04:47:15 +0100 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <1420161245.37222.YahooMailBasic@...3275...> References: <1420161245.37222.YahooMailBasic@...3275...> Message-ID: <54A614C3.7050703@...1...> Le 02/01/2015 02:14, Ru Vuott a ?crit : > ...in short, SDL2 "Channel" Class seems to be useless at present. > > Regards > vuott > Channel has only dynamic methods and properties. Do you know how to use it? -- Beno?t Minisini From chriseana at ...626... Fri Jan 2 04:59:46 2015 From: chriseana at ...626... (Christian e Ana Luiza Britto) Date: Fri, 2 Jan 2015 01:59:46 -0200 Subject: [Gambas-user] DataSource Before Save (Beno?t Minisini) Message-ID: Hi Beno?t Minisini, Thank you so much! I'll wait for Gambas 3.7 Best Regards From adamnt42 at ...626... Fri Jan 2 05:20:09 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 2 Jan 2015 14:50:09 +1030 Subject: [Gambas-user] Not good Message-ID: <20150102145009.c1b85944d773025624be1f2e@...626...> http://www.weatherzone.com.au/news/dangerous-fire-weather-flaring-through-sa-and-vic/215583 Not good at all. Hope to see you all mater -- B Bruen From ron at ...1740... Fri Jan 2 08:03:00 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 08:03:00 +0100 Subject: [Gambas-user] File watching behaviour In-Reply-To: <54A60268.9060304@...1...> References: <54A60268.9060304@...1...> Message-ID: New year, new keywords ;-) I was just about to install latest revision to test the trunk -soon to be 3.7 version-, so I will let you know. Regards, Ron. 2015-01-02 3:28 GMT+01:00 Beno?t Minisini : > @Jussi : I introduce a new thread for the problem. Now for the new year > people will always create a new thread for a new topic. :-) > > In revision #6791 I made the following changes: > > - If a watched file descriptor is ready to read, but has no data, then > the watch is not automatically stopped anymore. > > - If the event loop is called too often (because of the last change), I > make the interpreter sleep a bit (up to 10 ms), so that the CPU is not > eaten. > > Now the expected problems: > > - This is not backward compatible. Maybe I should introduce a new > syntax. For example adding the "CONTINUE" keyword after the "WATCH" > keyword to keep watching. > > - Only the interpreter event loop has the little sleep. Not gb.qt4, > gb.sdl, gb.gtk and gb.gtk3. So you may eat 100% CPU with these > components. I will try to find a solution for that. > > People, please tell me what you think about that. Especially Ron that > has the program that watch the biggest number of file descriptors. :-) > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Fri Jan 2 08:22:55 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 02 Jan 2015 01:22:55 -0600 Subject: [Gambas-user] Wiki Observation, SQL syntax Message-ID: <54A6474F.5070904@...3412...> For some reason I do not seem to be able to log into the Gambas Wiki. That is probably a good thing considering my level of ignorance (which has proven to be immense). Thus I pass these observations along for consideration: I have dealt with various SQL Data Bases for some two decades (primarily Oracle but also MS SQL, Access, etc.). When I started looking at some of the Gambas functions I found a syntax pattern that I was unfamiliar with. Ref: http://gambaswiki.org/wiki/comp/gb.db/_connection/find Function *Find* ( _Table_ As String *[* , _Request_ As String, _Arguments_ As , ... *]* ) As Result * _Table_ * _Request_ * _Arguments_ I assume that this form comes from a language that I am unfamiliar with (or perhaps an implementation of stored procedures) and thus goggled: SQL Request Arguments I found a few references to MS Excel but no suitable explanation. I finally found the answer in the "obsolete" Gambas Wiki that is still online: Ref: http://gambasdoc.org/help/comp/gb.db/connection/subst?v3 Creates a SQL sentence by substituting its arguments into a format string. * _Format_is the SQL sentence. * _Arguments_are the arguments to substitute. The&1,&2... patterns inside the_Format_string are replaced by the SQL representation of the 1st, 2nd..._Arguments_. These arguments are quoted according to the underlying database SQL syntax. I also note from an example in the "obsolete" Gambas Wiki that an explanation mark "!" is used to delimit field names in a result. http://gambasdoc.org/help/comp/gb.db/connection/edit?v3 I do not find any similar example in the current Gambas Wiki but perhaps I missed it. Regards, Lewis From vuott at ...325... Fri Jan 2 09:55:18 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 08:55:18 +0000 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <54A614C3.7050703@...1...> Message-ID: <1420188918.84064.YahooMailBasic@...3268...> Hello Beno?t, gb.sdl2.audio, like gb.sdl.sound, has these Classes (named channel): - Channel - Channels " At present " by using "gb.sdl2.audio" I can play a file .wav with "Sound" and "Channels" Class: For example we'll play simultaneously 2 file wav: ***************************************************** Public Sub Main() Dim sn1, sn2 As Sound ' We set how many channels we want to use: Channels.Count = 2 ' We set the volume for each channel: Channels[0].Volume = 110 Channels[1].Volume = 90 ' We set for each channel a file WAV: sn1 = Sound.Load("/path/of/first/.wav") sn2 = Sound.Load("/path/of/second/file.wav") ' We play simultaneously those two files wav: Channels[0].Play(sn1) Channels[1].Play(sn2) ' We need a loop: While True Wait 0.01 Wend End ******************************************************* Well, with that example I used " Channels " in gb.sdl2.audio, and I did not need "Channel" Class. === By using "Channel" class in gb.sdl.sound === In old "gb.sdl.sound" a " Channel " Class also is active. I used it like that: Public Sub Button1_Click() Dim s As Sound Channels[0].Volume = 0.03 s = New Sound("/path/of/file.wav") Channel(Channels[0]).Play(s) End ==================== ...If I want to use " Channel " Class in new "gb.sdl2.audio" component, it seems its properties and methods aren't active. ....but, perhaps, in new "gb.sdl2.audio" component we do not need "Channel" Class, because we can use efficiently the " Channels " Class. Regards vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 04:47 Le 02/01/2015 02:14, Ru Vuott a ?crit : > ...in short, SDL2 "Channel" Class seems to be useless at present. > > Regards > vuott > Channel has only dynamic methods and properties. Do you know how to use it? -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Jan 2 10:15:26 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 2 Jan 2015 10:15:26 +0100 Subject: [Gambas-user] Happy new year Message-ID: ... To all Gambasians ? I wish you a lot of fun Code for this new year ! From vuott at ...325... Fri Jan 2 10:35:23 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 09:35:23 +0000 Subject: [Gambas-user] R: Happy new year In-Reply-To: Message-ID: <1420191323.41200.YahooMailBasic@...3273...> Thanks -------------------------------------------- Ven 2/1/15, Fabien Bodard ha scritto: Oggetto: [Gambas-user] Happy new year A: gambas-user at lists.sourceforge.net Data: Venerd? 2 gennaio 2015, 10:15 ... To all Gambasians ? I wish you a lot of fun Code for this new year? ! ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Fri Jan 2 10:39:06 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 09:39:06 +0000 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <54A614C3.7050703@...1...> Message-ID: <1420191546.84064.YahooMailBasic@...3268...> Uhmmm.... another question/problem: With old "gb.sdl.sound" we can use also graphic components. Now, the new "gb.sdl2.audio" is not compatible with gb.gui, gb.gtk, gb.gtk3 and gb.qt4 ! Regards vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 04:47 Le 02/01/2015 02:14, Ru Vuott a ?crit : > ...in short, SDL2 "Channel" Class seems to be useless at present. > > Regards > vuott > Channel has only dynamic methods and properties. Do you know how to use it? -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Fri Jan 2 10:45:21 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 10:45:21 +0100 Subject: [Gambas-user] Wiki Observation, SQL syntax In-Reply-To: <54A6474F.5070904@...3412...> References: <54A6474F.5070904@...3412...> Message-ID: <54A668B1.5010407@...1...> Le 02/01/2015 08:22, Lewis Balentine a ?crit : > For some reason I do not seem to be able to log into the Gambas Wiki. > That is probably a good thing considering my level of ignorance (which > has proven to be immense). Thus I pass these observations along for > consideration: > > I have dealt with various SQL Data Bases for some two decades (primarily > Oracle but also MS SQL, Access, etc.). When I started looking at some of > the Gambas functions I found a syntax pattern that I was unfamiliar with. > > Ref: http://gambaswiki.org/wiki/comp/gb.db/_connection/find > > > Function *Find* ( _Table_ As String *[* , _Request_ As String, > _Arguments_ As , ... *]* ) As Result > > > > * > > _Table_ > > * > > _Request_ > > * > > _Arguments_ > > > I assume that this form comes from a language that I am unfamiliar with > (or perhaps an implementation of stored procedures) and thus goggled: > SQL Request Arguments > I found a few references to MS Excel but no suitable explanation. I > finally found the answer in the "obsolete" Gambas Wiki that is still online: > > Ref: http://gambasdoc.org/help/comp/gb.db/connection/subst?v3 > Creates a SQL sentence by substituting its arguments into a format string. > > * _Format_is the SQL sentence. > * _Arguments_are the arguments to substitute. > > The&1,&2... patterns inside the_Format_string are replaced by the SQL > representation of the 1st, 2nd..._Arguments_. > > These arguments are quoted according to the underlying database SQL syntax. > > > I also note from an example in the "obsolete" Gambas Wiki that an > explanation mark "!" is used to delimit field names in a result. > http://gambasdoc.org/help/comp/gb.db/connection/edit?v3 > > I do not find any similar example in the current Gambas Wiki but perhaps > I missed it. > > Regards, > > Lewis > > The documentation of the Connection has to be fixed, because of recent changes. The Find, Edit, Delete, Exec methods of the Connection classes work a bit like the Subst$() function : it allows you to separate the SQL query from its argument to prevent SQL injection attacks. Instead of writing: MyConnection.Exec("SELECT * FROM MyTable WHERE MyField = '" & MyValue & "'") you have to write: MyConnection.Exec("SELECT * FROM MyTable WHERE MyField = &1", MyValue) Gambas will make the substitution for you, and will take care of all the necessary quoting that will avoid any SQL injection risk. Regards, -- Beno?t Minisini From gambas at ...1... Fri Jan 2 10:49:04 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 10:49:04 +0100 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <1420191546.84064.YahooMailBasic@...3268...> References: <1420191546.84064.YahooMailBasic@...3268...> Message-ID: <54A66990.1050600@...1...> Le 02/01/2015 10:39, Ru Vuott a ?crit : > Uhmmm.... another question/problem: > > With old "gb.sdl.sound" we can use also graphic components. > > Now, the new "gb.sdl2.audio" is not compatible with gb.gui, gb.gtk, gb.gtk3 and gb.qt4 ! > > Regards > vuott > I'm not sure it's a good idea to use SDL with GUI toolkits. SDL seems to be designed to be run alone between the system and a game program. If really needed, I will re-enable it, because as it seems to work. But I'm not sure that it will always work in the future. Otherwise there is the gb.media component. But it's more complicated to play several sounds at the same time with gstreamer. Maybe I should create some sort of MediaMixer control that would allow to play sounds like SDL. Regards, -- Beno?t Minisini From ron at ...1740... Fri Jan 2 11:03:30 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 11:03:30 +0100 Subject: [Gambas-user] Make Ubuntu tooltips readable again Message-ID: This onliner fixes this issue: $ sudo sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' /usr/share/themes/Ambiance/gtk-2.0/gtkrc Regards, Ron. From ron at ...1740... Fri Jan 2 11:14:13 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 11:14:13 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: References: Message-ID: I have the same issue, trying to get it isolated, but didn't succeed yet, will let you know when. In 3.6.2 no issue, but with trunk (some revisions ago already) $ ./DomotiGa3.gambas gbx3: warning: circular references detected: gbx3: 1 FMusic gbx3: 1 FLogfiles gbx3: 2 FToolBar gbx3: 2 ToolBar gbx3: 1 FBalloon gbx3: 2 TableView gbx3: 1 TabPanel gbx3: 5 LCDLabel gbx3: 4 GridViewSelection gbx3: 1 _TreeView_Item gbx3: 4 _GridView_Rows gbx3: 4 _GridView_Columns gbx3: 4 ScrollArea gbx3: 1 ListView gbx3: 2 GridView gbx3: warning: 873 allocation(s) non freed. from inside ide: gbx3: warning: circular references detected: gbx3: 1 FMusic gbx3: 1 FLogfiles gbx3: 2 FToolBar gbx3: 2 ToolBar gbx3: 1 FBalloon gbx3: 2 TableView gbx3: 1 TabPanel gbx3: 5 LCDLabel gbx3: 4 GridViewSelection gbx3: 1 _TreeView_Item gbx3: 4 _GridView_Rows gbx3: 4 _GridView_Columns gbx3: 4 ScrollArea gbx3: 1 ListView gbx3: 2 GridView *** Error in `DomotiGa3': free(): invalid pointer: 0x00007fc84ee139b8 *** gbx3 even crashes sometimes with sig aborted, see screenshot. I also had this with command line project but only when I use gb.signal component to catch these Signal[Signal.SIGINT].Catch ' ' Catch default kill signal Signal[Signal.SIGTERM].Catch I personally would like to have this fixed in 3.7, maybe this info helps.. Regards, Ron. [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-43-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=3849M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 3.6.2: 2015/01/02 07:44:06 [Main] It's dark outside. 2015/01/02 07:44:06 [Main] DomotiGa is running for 0 days, 0 hrs, 0 mins, and 0 secs. 2015/01/02 07:44:06 [Main] The current tagline is 'Prune: A plum that has seen better days.' ^CReceived signal SIGINT, exit DomotiGaServer3 2015/01/02 07:44:07 [Main] Received signal SIGINT, exit DomotiGaServer3 2015/01/02 07:44:07 [Main] Stopping running timers. 2015/01/02 07:44:07 [Main] ---- Program End ---- trunk: 2015/01/02 09:12:08 [Main] DomotiGa is running for 0 days, 0 hrs, 0 mins, and 0 secs. 2015/01/02 09:12:08 [Main] The current tagline is 'I want to live with a synonym girl... ' ^CReceived signal SIGINT, exit DomotiGaServer3 2015/01/02 09:12:10 [Main] Received signal SIGINT, exit DomotiGaServer3 2015/01/02 09:12:10 [Main] Stopping running timers. 2015/01/02 09:12:10 [Main] ---- Program End ---- gbx3: warning: -6 allocation(s) non freed. [image: Inline afbeelding 1][image: Inline afbeelding 2] 2014-12-31 14:57 GMT+01:00 Jussi Lahtinen : > One of my projects reports circular references when shutdown, but it works > perfectly. > I haven't get these messages with earlier revisions (not sure from what > revision this started exactly). > > Part of the messages: > gbx3: 1 GridViewSelection > gbx3: 1 _TreeView_Item > gbx3: 1 _GridView_Rows > gbx3: 1 _GridView_Columns > gbx3: 1 VSplit > gbx3: 1 ScrollArea > gbx3: 1 ListView > gbx3: 1 GridView > > I have not isolated the problem, but I will try later. > Any clues about this, my error or something in Gambas? > > > Jussi > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 1.png Type: image/png Size: 28087 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot 2.png Type: image/png Size: 47793 bytes Desc: not available URL: From ron at ...1740... Fri Jan 2 11:20:47 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 11:20:47 +0100 Subject: [Gambas-user] Make Ubuntu tooltips readable again In-Reply-To: References: Message-ID: It's a two liner to make balloons and tooltips in ide readable: sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' /usr/share/themes/Ambiance/gtk-2.0/gtkrc sed -i 's/tooltip_bg_color:#000000/tooltip_bg_color:#ffffff/g' /usr/share/themes/Ambiance/gtk-2.0/gtkrc Ron. 2015-01-02 11:03 GMT+01:00 Ron : > This onliner fixes this issue: > > $ sudo sed -i 's/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g' > /usr/share/themes/Ambiance/gtk-2.0/gtkrc > > > Regards, > Ron. > From gambas at ...1... Fri Jan 2 11:32:54 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 11:32:54 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: References: Message-ID: <54A673D6.1010009@...1...> Le 02/01/2015 11:14, Ron a ?crit : > I have the same issue, trying to get it isolated, but didn't succeed yet, > will let you know when. > > In 3.6.2 no issue, but with trunk (some revisions ago already) > > $ ./DomotiGa3.gambas > gbx3: warning: circular references detected: > gbx3: 1 FMusic > gbx3: 1 FLogfiles > gbx3: 2 FToolBar > gbx3: 2 ToolBar > gbx3: 1 FBalloon > gbx3: 2 TableView > gbx3: 1 TabPanel > gbx3: 5 LCDLabel > gbx3: 4 GridViewSelection > gbx3: 1 _TreeView_Item > gbx3: 4 _GridView_Rows > gbx3: 4 _GridView_Columns > gbx3: 4 ScrollArea > gbx3: 1 ListView > gbx3: 2 GridView > gbx3: warning: 873 allocation(s) non freed. > > from inside ide: > > gbx3: warning: circular references detected: > gbx3: 1 FMusic > gbx3: 1 FLogfiles > gbx3: 2 FToolBar > gbx3: 2 ToolBar > gbx3: 1 FBalloon > gbx3: 2 TableView > gbx3: 1 TabPanel > gbx3: 5 LCDLabel > gbx3: 4 GridViewSelection > gbx3: 1 _TreeView_Item > gbx3: 4 _GridView_Rows > gbx3: 4 _GridView_Columns > gbx3: 4 ScrollArea > gbx3: 1 ListView > gbx3: 2 GridView > *** Error in `DomotiGa3': free(): invalid pointer: 0x00007fc84ee139b8 *** > > gbx3 even crashes sometimes with sig aborted, see screenshot. > > I also had this with command line project but only when I use gb.signal > component to catch these > Signal[Signal.SIGINT].Catch > ' ' Catch default kill signal > Signal[Signal.SIGTERM].Catch > > > I personally would like to have this fixed in 3.7, maybe this info helps.. > > Regards, > Ron. > > [System] > Gambas=3.6.90 > OperatingSystem=Linux > Kernel=3.13.0-43-generic > Architecture=x86_64 > Distribution=Ubuntu 14.04.1 LTS > Desktop=GNOME > Theme=QGtk > Language=en_US.UTF-8 > Memory=3849M > [Libraries] > Cairo=libcairo.so.2.11301.0 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.204.0 > GTK+3=libgtk-3.so.0.1000.8 > GTK+=libgtk-x11-2.0.so.0.2400.23 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.44.0.0 > Qt4=libQtCore.so.4.8.6 > SDL=libSDL-1.2.so.0.11.4 > > > 3.6.2: > > 2015/01/02 07:44:06 [Main] It's dark outside. > 2015/01/02 07:44:06 [Main] DomotiGa is running for 0 days, 0 hrs, 0 mins, > and 0 secs. > 2015/01/02 07:44:06 [Main] The current tagline is 'Prune: A plum that has > seen better days.' > ^CReceived signal SIGINT, exit DomotiGaServer3 > 2015/01/02 07:44:07 [Main] Received signal SIGINT, exit DomotiGaServer3 > 2015/01/02 07:44:07 [Main] Stopping running timers. > 2015/01/02 07:44:07 [Main] ---- Program End ---- > > trunk: > > 2015/01/02 09:12:08 [Main] DomotiGa is running for 0 days, 0 hrs, 0 mins, > and 0 secs. > 2015/01/02 09:12:08 [Main] The current tagline is 'I want to live with a > synonym girl... ' > ^CReceived signal SIGINT, exit DomotiGaServer3 > 2015/01/02 09:12:10 [Main] Received signal SIGINT, exit DomotiGaServer3 > 2015/01/02 09:12:10 [Main] Stopping running timers. > 2015/01/02 09:12:10 [Main] ---- Program End ---- > gbx3: warning: -6 allocation(s) non freed. > > [image: Inline afbeelding 1][image: Inline afbeelding 2] > > > 2014-12-31 14:57 GMT+01:00 Jussi Lahtinen : > >> One of my projects reports circular references when shutdown, but it works >> perfectly. >> I haven't get these messages with earlier revisions (not sure from what >> revision this started exactly). >> >> Part of the messages: >> gbx3: 1 GridViewSelection >> gbx3: 1 _TreeView_Item >> gbx3: 1 _GridView_Rows >> gbx3: 1 _GridView_Columns >> gbx3: 1 VSplit >> gbx3: 1 ScrollArea >> gbx3: 1 ListView >> gbx3: 1 GridView >> >> I have not isolated the problem, but I will try later. >> Any clues about this, my error or something in Gambas? >> >> >> Jussi >> It's hard for me to fix bugs without being able to reproduce it. But you can help me by compiling older development version to try to find the revision number where it starts to fail. $ svn checkout -r REVISION ... I know it's very long to recompile older version, but I don't have better at the moment... The revision number I'd like you to test are (in that order): 6754, 6693, 6681. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Jan 2 11:35:08 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 10:35:08 +0000 Subject: [Gambas-user] Issue 592 in gambas: Circular crash invalid pointer segfault 11 Message-ID: <0-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 592 by r... at ...1740...: Circular crash invalid pointer segfault 11 https://code.google.com/p/gambas/issues/detail?id=592 ____________________________________________________________ 1) Describe the problem. When stopping a project the gbx3 crashes, created an invalid pointer, on full project this also leads to circular references found. 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-43-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=3849M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 3) Indicate the Gambas version in the issue labels, and if it is a bug, a crash, or an enhancement request. Last Changed Author: gambas Last Changed Rev: 6792 Last Changed Date: 2015-01-02 04:44:30 +0100 (vr, 02 jan 2015) trunk (revision 4) Provide a little project that reproduces the bug or the crash. Attached, also some screenshots, out put from other project having the same issue. $ ./DomotiGa3.gambas gbx3: warning: circular references detected: gbx3: 1 FMusic gbx3: 1 FLogfiles gbx3: 2 FToolBar gbx3: 2 ToolBar gbx3: 1 FBalloon gbx3: 2 TableView gbx3: 1 TabPanel gbx3: 5 LCDLabel gbx3: 4 GridViewSelection gbx3: 1 _TreeView_Item gbx3: 4 _GridView_Rows gbx3: 4 _GridView_Columns gbx3: 4 ScrollArea gbx3: 1 ListView gbx3: 2 GridView gbx3: warning: 873 allocation(s) non freed. gbx3: warning: circular references detected: gbx3: 1 FMusic gbx3: 1 FLogfiles gbx3: 2 FToolBar gbx3: 2 ToolBar gbx3: 1 FBalloon gbx3: 2 TableView gbx3: 1 TabPanel gbx3: 5 LCDLabel gbx3: 4 GridViewSelection gbx3: 1 _TreeView_Item gbx3: 4 _GridView_Rows gbx3: 4 _GridView_Columns gbx3: 4 ScrollArea gbx3: 1 ListView gbx3: 2 GridView *** Error in `DomotiGa3': free(): invalid pointer: 0x00007fc84ee139b8 *** 5) If your project needs a database, try to provide it, or part of it. N/A 6) Explain clearly how to reproduce the bug or the crash. Open project, run it, and close with window close button, repeat if not crashed at first try. Attachments: Screenshot 1.png 27.4 KB Screenshot 2.png 46.7 KB Circular-0.0.1.tar.gz 4.0 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 11:36:08 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 10:36:08 +0000 Subject: [Gambas-user] Issue 592 in gambas: Circular crash invalid pointer segfault 11 In-Reply-To: <0-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Comment #1 on issue 592 by r... at ...1740...: Circular crash invalid pointer segfault 11 https://code.google.com/p/gambas/issues/detail?id=592 It has to do with a certain component or combination. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ron at ...1740... Fri Jan 2 11:39:10 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 11:39:10 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: <54A673D6.1010009@...1...> References: <54A673D6.1010009@...1...> Message-ID: It's in gb.net.smtp, I think! See bug report I just filled, if you de-select gb.net.smtp crash stops.. Ron. 2015-01-02 11:32 GMT+01:00 Beno?t Minisini : > Le 02/01/2015 11:14, Ron a ?crit : > > I have the same issue, trying to get it isolated, but didn't succeed yet, > > will let you know when. > > > > In 3.6.2 no issue, but with trunk (some revisions ago already) > > > > $ ./DomotiGa3.gambas > > gbx3: warning: circular references detected: > > gbx3: 1 FMusic > > gbx3: 1 FLogfiles > > gbx3: 2 FToolBar > > gbx3: 2 ToolBar > > gbx3: 1 FBalloon > > gbx3: 2 TableView > > gbx3: 1 TabPanel > > gbx3: 5 LCDLabel > > gbx3: 4 GridViewSelection > > gbx3: 1 _TreeView_Item > > gbx3: 4 _GridView_Rows > > gbx3: 4 _GridView_Columns > > gbx3: 4 ScrollArea > > gbx3: 1 ListView > > gbx3: 2 GridView > > gbx3: warning: 873 allocation(s) non freed. > > > > from inside ide: > > > > gbx3: warning: circular references detected: > > gbx3: 1 FMusic > > gbx3: 1 FLogfiles > > gbx3: 2 FToolBar > > gbx3: 2 ToolBar > > gbx3: 1 FBalloon > > gbx3: 2 TableView > > gbx3: 1 TabPanel > > gbx3: 5 LCDLabel > > gbx3: 4 GridViewSelection > > gbx3: 1 _TreeView_Item > > gbx3: 4 _GridView_Rows > > gbx3: 4 _GridView_Columns > > gbx3: 4 ScrollArea > > gbx3: 1 ListView > > gbx3: 2 GridView > > *** Error in `DomotiGa3': free(): invalid pointer: 0x00007fc84ee139b8 *** > > > > gbx3 even crashes sometimes with sig aborted, see screenshot. > > > > I also had this with command line project but only when I use gb.signal > > component to catch these > > Signal[Signal.SIGINT].Catch > > ' ' Catch default kill signal > > Signal[Signal.SIGTERM].Catch > > > > > > I personally would like to have this fixed in 3.7, maybe this info > helps.. > > > > Regards, > > Ron. > > > > [System] > > Gambas=3.6.90 > > OperatingSystem=Linux > > Kernel=3.13.0-43-generic > > Architecture=x86_64 > > Distribution=Ubuntu 14.04.1 LTS > > Desktop=GNOME > > Theme=QGtk > > Language=en_US.UTF-8 > > Memory=3849M > > [Libraries] > > Cairo=libcairo.so.2.11301.0 > > Curl=libcurl.so.4.3.0 > > DBus=libdbus-1.so.3.7.6 > > GStreamer=libgstreamer-0.10.so.0.30.0 > > GStreamer=libgstreamer-1.0.so.0.204.0 > > GTK+3=libgtk-3.so.0.1000.8 > > GTK+=libgtk-x11-2.0.so.0.2400.23 > > OpenGL=libGL.so.1.2.0 > > Poppler=libpoppler.so.44.0.0 > > Qt4=libQtCore.so.4.8.6 > > SDL=libSDL-1.2.so.0.11.4 > > > > > > 3.6.2: > > > > 2015/01/02 07:44:06 [Main] It's dark outside. > > 2015/01/02 07:44:06 [Main] DomotiGa is running for 0 days, 0 hrs, 0 mins, > > and 0 secs. > > 2015/01/02 07:44:06 [Main] The current tagline is 'Prune: A plum that has > > seen better days.' > > ^CReceived signal SIGINT, exit DomotiGaServer3 > > 2015/01/02 07:44:07 [Main] Received signal SIGINT, exit DomotiGaServer3 > > 2015/01/02 07:44:07 [Main] Stopping running timers. > > 2015/01/02 07:44:07 [Main] ---- Program End ---- > > > > trunk: > > > > 2015/01/02 09:12:08 [Main] DomotiGa is running for 0 days, 0 hrs, 0 mins, > > and 0 secs. > > 2015/01/02 09:12:08 [Main] The current tagline is 'I want to live with a > > synonym girl... ' > > ^CReceived signal SIGINT, exit DomotiGaServer3 > > 2015/01/02 09:12:10 [Main] Received signal SIGINT, exit DomotiGaServer3 > > 2015/01/02 09:12:10 [Main] Stopping running timers. > > 2015/01/02 09:12:10 [Main] ---- Program End ---- > > gbx3: warning: -6 allocation(s) non freed. > > > > [image: Inline afbeelding 1][image: Inline afbeelding 2] > > > > > > 2014-12-31 14:57 GMT+01:00 Jussi Lahtinen : > > > >> One of my projects reports circular references when shutdown, but it > works > >> perfectly. > >> I haven't get these messages with earlier revisions (not sure from what > >> revision this started exactly). > >> > >> Part of the messages: > >> gbx3: 1 GridViewSelection > >> gbx3: 1 _TreeView_Item > >> gbx3: 1 _GridView_Rows > >> gbx3: 1 _GridView_Columns > >> gbx3: 1 VSplit > >> gbx3: 1 ScrollArea > >> gbx3: 1 ListView > >> gbx3: 1 GridView > >> > >> I have not isolated the problem, but I will try later. > >> Any clues about this, my error or something in Gambas? > >> > >> > >> Jussi > >> > > It's hard for me to fix bugs without being able to reproduce it. > > But you can help me by compiling older development version to try to > find the revision number where it starts to fail. > > $ svn checkout -r REVISION ... > > I know it's very long to recompile older version, but I don't have > better at the moment... > > The revision number I'd like you to test are (in that order): 6754, > 6693, 6681. > > Regards, > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Fri Jan 2 11:39:49 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 10:39:49 +0000 Subject: [Gambas-user] Issue 592 in gambas: Circular crash invalid pointer segfault 11 In-Reply-To: <1-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> <0-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Comment #2 on issue 592 by r... at ...1740...: Circular crash invalid pointer segfault 11 https://code.google.com/p/gambas/issues/detail?id=592 gb.net.smtp seem to be causing it. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Fri Jan 2 11:42:04 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 02 Jan 2015 11:42:04 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: References: <54A673D6.1010009@...1...> Message-ID: <54A675FC.6010705@...1...> Le 02/01/2015 11:39, Ron a ?crit : > It's in gb.net.smtp, I think! > See bug report I just filled, if you de-select gb.net.smtp crash stops.. > > Ron. > Did you carefully uninstall Gambas 3.6.2 before compiling the development version? Because gb.net.smtp is now written entirely in Gambas. So if you keep the old gb.net.smtp.so shared library on your system, the interpreter will try to load it and you will get crashes. -- Beno?t Minisini From ron at ...1740... Fri Jan 2 11:56:42 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 11:56:42 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: <54A675FC.6010705@...1...> References: <54A673D6.1010009@...1...> <54A675FC.6010705@...1...> Message-ID: No I didn't de-install it, thinking it will overwrite everything.. like it did in the past ;P There was indeed an older gb.net.smtp.so* set under /usr/lib/gambas3 After delete and sudo make install of trunk it works ok. The sudo install was needed otherwise the project couldn't find the component. The Circular project doesn't crash anymore, but my project still has the circular reference issue, so two bugs, one to go! I will try to create another project for that one. Can't you overrule trunk compile steps to not include the smtp.so like it did? Just deleting it was not enough so there is something linked somewhere. A lot of users are going to have problems when they don't read wiki/docs. Ron. 2015-01-02 11:42 GMT+01:00 Beno?t Minisini : > Le 02/01/2015 11:39, Ron a ?crit : > > It's in gb.net.smtp, I think! > > See bug report I just filled, if you de-select gb.net.smtp crash stops.. > > > > Ron. > > > > Did you carefully uninstall Gambas 3.6.2 before compiling the > development version? > > Because gb.net.smtp is now written entirely in Gambas. So if you keep > the old gb.net.smtp.so shared library on your system, the interpreter > will try to load it and you will get crashes. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Fri Jan 2 12:24:05 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 12:24:05 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: References: <54A673D6.1010009@...1...> <54A675FC.6010705@...1...> Message-ID: Btw, my cli DomotiGaServer3 project doesn't display any circular refrences issues anymore with this smtp lib deleted. So it seems circular references are caused (or can be) by crashing of other components? (in this case smtp) The GUI version still has them, maybe cause by another component having an issue, but that's over 102000 lines of code and many forms. Does Gambas has an order in which it free's stuff upon closure? At least then I can try to shrink it to one area.. Is there a debug mode in which you can see what it does (without using gdb) Ron. 2015-01-02 11:56 GMT+01:00 Ron : > No I didn't de-install it, thinking it will overwrite everything.. like it > did in the past ;P > > There was indeed an older gb.net.smtp.so* set under /usr/lib/gambas3 > After delete and sudo make install of trunk it works ok. > The sudo install was needed otherwise the project couldn't find the > component. > > The Circular project doesn't crash anymore, but my project still has the > circular reference issue, so two bugs, one to go! > > I will try to create another project for that one. > > Can't you overrule trunk compile steps to not include the smtp.so like it > did? > Just deleting it was not enough so there is something linked somewhere. > > A lot of users are going to have problems when they don't read wiki/docs. > > Ron. > > > > > 2015-01-02 11:42 GMT+01:00 Beno?t Minisini : > >> Le 02/01/2015 11:39, Ron a ?crit : >> > It's in gb.net.smtp, I think! >> > See bug report I just filled, if you de-select gb.net.smtp crash stops.. >> > >> > Ron. >> > >> >> Did you carefully uninstall Gambas 3.6.2 before compiling the >> development version? >> >> Because gb.net.smtp is now written entirely in Gambas. So if you keep >> the old gb.net.smtp.so shared library on your system, the interpreter >> will try to load it and you will get crashes. >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Fri Jan 2 12:31:32 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 02 Jan 2015 12:31:32 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: References: <54A673D6.1010009@...1...> <54A675FC.6010705@...1...> Message-ID: <54A68194.5070708@...1...> Le 02/01/2015 11:56, Ron a ?crit : > No I didn't de-install it, thinking it will overwrite everything.. like it > did in the past ;P > > There was indeed an older gb.net.smtp.so* set under /usr/lib/gambas3 > After delete and sudo make install of trunk it works ok. > The sudo install was needed otherwise the project couldn't find the > component. > > The Circular project doesn't crash anymore, but my project still has the > circular reference issue, so two bugs, one to go! > > I will try to create another project for that one. > > Can't you overrule trunk compile steps to not include the smtp.so like it > did? > Just deleting it was not enough so there is something linked somewhere. > > A lot of users are going to have problems when they don't read wiki/docs. > > Ron. > I will automatically remove *.so file and its links when installing a component entirely written in Gambas. Regards, -- Beno?t Minisini From gambas at ...1... Fri Jan 2 12:55:32 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 12:55:32 +0100 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <54A66990.1050600@...1...> References: <1420191546.84064.YahooMailBasic@...3268...> <54A66990.1050600@...1...> Message-ID: <54A68734.5040803@...1...> Le 02/01/2015 10:49, Beno?t Minisini a ?crit : > Le 02/01/2015 10:39, Ru Vuott a ?crit : >> Uhmmm.... another question/problem: >> >> With old "gb.sdl.sound" we can use also graphic components. >> >> Now, the new "gb.sdl2.audio" is not compatible with gb.gui, gb.gtk, >> gb.gtk3 and gb.qt4 ! >> >> Regards >> vuott >> > > I'm not sure it's a good idea to use SDL with GUI toolkits. SDL seems to > be designed to be run alone between the system and a game program. > > If really needed, I will re-enable it, because as it seems to work. But > I'm not sure that it will always work in the future. > > Otherwise there is the gb.media component. But it's more complicated to > play several sounds at the same time with gstreamer. Maybe I should > create some sort of MediaMixer control that would allow to play sounds > like SDL. > > Regards, > gb.sdl2.audio does not require gb.sdl2 anymore. Regards, -- Beno?t Minisini From vuott at ...325... Fri Jan 2 12:55:47 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 11:55:47 +0000 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <54A66990.1050600@...1...> Message-ID: <1420199747.6149.YahooMailBasic@...3273...> Ok, I understand, but my problem is: with the old "gb.sdl.sound" component if I wanted to use .Stop() method to stop the playing, i can put on the Form a Button and in Button_Click() event i can write .Stop() method. Now, with SDL2 how can I create a Button and its active _Click() event ? Regards vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 10:49 Le 02/01/2015 10:39, Ru Vuott a ?crit : > Uhmmm.... another question/problem: > > With old? "gb.sdl.sound" we can use also graphic components. > > Now, the new "gb.sdl2.audio" is not compatible with gb.gui, gb.gtk, gb.gtk3 and gb.qt4 ! > > Regards > vuott > I'm not sure it's a good idea to use SDL with GUI toolkits. SDL seems to be designed to be run alone between the system and a game program. If really needed, I will re-enable it, because as it seems to work. But I'm not sure that it will always work in the future. Otherwise there is the gb.media component. But it's more complicated to play several sounds at the same time with gstreamer. Maybe I should create some sort of MediaMixer control that would allow to play sounds like SDL. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Fri Jan 2 13:17:17 2015 From: ron at ...1740... (Ron) Date: Fri, 2 Jan 2015 13:17:17 +0100 Subject: [Gambas-user] Circular references with latest revision In-Reply-To: <54A68194.5070708@...1...> References: <54A673D6.1010009@...1...> <54A675FC.6010705@...1...> <54A68194.5070708@...1...> Message-ID: The issue is already present in this revision: $ gbx3 --version 3.6.90 r6754 We do need to go back further in revisions, any suggestions? Is seems to occur when I'm writing some text (log) to an textarea on another form than FMain while closing The very last command in Form_Close Not isolated. Ron. 2015-01-02 12:31 GMT+01:00 Beno?t Minisini : > Le 02/01/2015 11:56, Ron a ?crit : > > No I didn't de-install it, thinking it will overwrite everything.. like > it > > did in the past ;P > > > > There was indeed an older gb.net.smtp.so* set under /usr/lib/gambas3 > > After delete and sudo make install of trunk it works ok. > > The sudo install was needed otherwise the project couldn't find the > > component. > > > > The Circular project doesn't crash anymore, but my project still has the > > circular reference issue, so two bugs, one to go! > > > > I will try to create another project for that one. > > > > Can't you overrule trunk compile steps to not include the smtp.so like it > > did? > > Just deleting it was not enough so there is something linked somewhere. > > > > A lot of users are going to have problems when they don't read wiki/docs. > > > > Ron. > > > > I will automatically remove *.so file and its links when installing a > component entirely written in Gambas. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jan 2 13:29:38 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 13:29:38 +0100 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <1420199747.6149.YahooMailBasic@...3273...> References: <1420199747.6149.YahooMailBasic@...3273...> Message-ID: <54A68F32.3030202@...1...> Le 02/01/2015 12:55, Ru Vuott a ?crit : > Ok, I understand, but my problem is: > > with the old "gb.sdl.sound" component if I wanted to use .Stop() method to stop the playing, i can put on the Form a Button and in Button_Click() event i can write .Stop() method. > > Now, with SDL2 how can I create a Button and its active _Click() event ? > > Regards > vuott > I don't understand your problem at all. I have just took the LCDLabel example, uncheck 'gb.sdl.sound', check 'gb.sdl2.audio', and it works. (Note: except that now you must specify Sound.Frequency = 48000, because the SDL music player cannot resample the sound. But this is not related to your problem) -- Beno?t Minisini From gambas at ...2524... Fri Jan 2 13:34:06 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 12:34:06 +0000 Subject: [Gambas-user] Issue 592 in gambas: Circular crash invalid pointer segfault 11 In-Reply-To: <2-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> <0-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Comment #3 on issue 592 by r... at ...1740...: Circular crash invalid pointer segfault 11 https://code.google.com/p/gambas/issues/detail?id=592 I have deleted everything from my project except the parts which cause the issue. Like written before, this issue isn't present in 3.6.2. Just open Test-0.0.1.tar.gz project, run and close it. Writing in textarea just before closing seem to cause it. gbx3: warning: circular references detected: gbx3: 1 FLogfiles gbx3: 1 FToolBar gbx3: 1 ToolBar gbx3: warning: 57 allocation(s) non freed. If you have the full blown project you get more allocations failed. Attachments: Test-0.0.1.tar.gz 366 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 13:44:28 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 12:44:28 +0000 Subject: [Gambas-user] Issue 592 in gambas: Circular crash invalid pointer segfault 11 In-Reply-To: <3-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> <0-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Updates: Labels: -Version Version-TRUNK Comment #4 on issue 592 by benoit.m... at ...626...: Circular crash invalid pointer segfault 11 https://code.google.com/p/gambas/issues/detail?id=592 The crash is due to the old gb.net.smtp component not begin uninstall. Can you create a new issue? Because the circular reference is not related to the crash. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 13:49:48 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 12:49:48 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed Message-ID: <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 593 by r... at ...1740...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 _ 1) Describe the problem. When GUI project is close, console reports circular references non-freed. 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-43-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=3849M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 3) Indicate the Gambas version in the issue labels, and if it is a bug, a crash, or an enhancement request. latest trunk and r6754 4) Provide a little project that reproduces the bug or the crash. See attached Test-0.0.1.tar.gz 5) If your project needs a database, try to provide it, or part of it. N/A 6) Explain clearly how to reproduce the bug or the crash. Run project and close it via close button. Writing in textarea just before closing seem to cause it. gbx3: warning: circular references detected: gbx3: 1 FLogfiles gbx3: 1 FToolBar gbx3: 1 ToolBar gbx3: warning: 57 allocation(s) non freed. If you have the full blown project you get more allocations failed. Attachments: Test-0.0.1.tar.gz 366 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 13:52:39 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 12:52:39 +0000 Subject: [Gambas-user] Issue 592 in gambas: Circular crash invalid pointer segfault 11 In-Reply-To: <4-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> <0-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-10857873887684517698-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #5 on issue 592 by benoit.m... at ...626...: Circular crash invalid pointer segfault 11 https://code.google.com/p/gambas/issues/detail?id=592 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 13:53:39 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 12:53:39 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed In-Reply-To: <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 593 by benoit.m... at ...626...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 13:56:10 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 12:56:10 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed In-Reply-To: <1-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Comment #2 on issue 593 by benoit.m... at ...626...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 OK, this is related to gb.qt4 only. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Fri Jan 2 14:25:59 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 2 Jan 2015 14:25:59 +0100 Subject: [Gambas-user] Wiki Observation, SQL syntax In-Reply-To: <54A6474F.5070904@...3412...> References: <54A6474F.5070904@...3412...> Message-ID: <20150102132559.GA552@...2774...> On Fri, 02 Jan 2015, Lewis Balentine wrote: > I also note from an example in the "obsolete" Gambas Wiki that an > explanation mark "!" is used to delimit field names in a result. > http://gambasdoc.org/help/comp/gb.db/connection/edit?v3 > > I do not find any similar example in the current Gambas Wiki but perhaps > I missed it. > And about this: the ! operator is an array accessor. You know that Gambas classes can implement the array operator [], so that e.g. myObject["stringkey"] = vValue ' or myObject[fFloatKey] = vValue ' or any other datatype as index! can be written where myObject is an object of myClass which I wrote by myself in Gambas. The special methods[0] _get() and _put() do that. Now, the ! operator is a special case applicable to string keys. object!key is defined to be object["key"] where the key behind the ! is put as-is inside quotation marks and used as a key. So you would use it if you already know the (fixed) key, as for databases: rResult["surname"] ' can also be rResult!surname but cCollection[sArgument] ' can NOT be, obviously, cCollection!sArgument In any case, it is important to know that ! is a special case of []. Sometimes you have fixed keys which contain parts that have special meaning in Gambas, like in the Graphviz project in the software farm (yes, I'm trying to increase its number of downloads :-)). There is a line Graphviz.VertexStyle["/"].Color = "red" which obviously cannot be written as Graphviz.VertexStyle!/.Color = "red" so we have to fall back to the [] notation, but a line like Graphviz.VertexStyle["test"].Color = "red" could become Graphviz.VertexStyle!test.Color = "red" Alas, I can't quote the wiki here because I haven't found any explicit mention of !. I know through experimentation that it works this way (but perhaps, I missed it, too). Regards, Tobi [0] http://gambaswiki.org/wiki/cat/special -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Fri Jan 2 14:46:23 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 14:46:23 +0100 Subject: [Gambas-user] Wiki Observation, SQL syntax In-Reply-To: <20150102132559.GA552@...2774...> References: <54A6474F.5070904@...3412...> <20150102132559.GA552@...2774...> Message-ID: <54A6A12F.4020102@...1...> Le 02/01/2015 14:25, Tobias Boege a ?crit : > On Fri, 02 Jan 2015, Lewis Balentine wrote: >> I also note from an example in the "obsolete" Gambas Wiki that an >> explanation mark "!" is used to delimit field names in a result. >> http://gambasdoc.org/help/comp/gb.db/connection/edit?v3 >> >> I do not find any similar example in the current Gambas Wiki but perhaps >> I missed it. >> > > And about this: the ! operator is an array accessor. You know that Gambas > classes can implement the array operator [], so that e.g. > > myObject["stringkey"] = vValue ' or > myObject[fFloatKey] = vValue ' or any other datatype as index! > > can be written where myObject is an object of myClass which I wrote by > myself in Gambas. The special methods[0] _get() and _put() do that. > > Now, the ! operator is a special case applicable to string keys. object!key > is defined to be object["key"] where the key behind the ! is put as-is > inside quotation marks and used as a key. So you would use it if you already > know the (fixed) key, as for databases: > > rResult["surname"] ' can also be > rResult!surname > > but > > cCollection[sArgument] ' can NOT be, obviously, > cCollection!sArgument > > In any case, it is important to know that ! is a special case of []. > Sometimes you have fixed keys which contain parts that have special meaning > in Gambas, like in the Graphviz project in the software farm (yes, I'm > trying to increase its number of downloads :-)). There is a line > > Graphviz.VertexStyle["/"].Color = "red" > > which obviously cannot be written as > > Graphviz.VertexStyle!/.Color = "red" > > so we have to fall back to the [] notation, but a line like > > Graphviz.VertexStyle["test"].Color = "red" > > could become > > Graphviz.VertexStyle!test.Color = "red" > > Alas, I can't quote the wiki here because I haven't found any explicit > mention of !. I know through experimentation that it works this way (but > perhaps, I missed it, too). > > Regards, > Tobi > > [0] http://gambaswiki.org/wiki/cat/special > Maybe it is not documented. That syntax comes directly from Visual Basic, and is there for easing the transition. -- Beno?t Minisini From gambas at ...2524... Fri Jan 2 15:32:03 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 14:32:03 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed In-Reply-To: <2-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 593 by benoit.m... at ...626...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 It should be fixed in revision #6797. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 15:36:43 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 14:36:43 +0000 Subject: [Gambas-user] Issue 589 in gambas: Interpreter Crash Gambas3 - Calling a library function - BananaPi In-Reply-To: <0-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 589 by benoit.m... at ...626...: Interpreter Crash Gambas3 - Calling a library function - BananaPi https://code.google.com/p/gambas/issues/detail?id=589 You are calling PMD_Find_Interface() with a NULL pointer as first argument, whereas PMD_Find_Interface apparently requires a pointer to a pointer, surely to store its result. Pass VarPtr(hid_p) as first argument, it should work. And check that you understand what is a 'void **' in C. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 15:38:23 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 14:38:23 +0000 Subject: [Gambas-user] Issue 591 in gambas: Togglebutton component background doesn't work in QT4 In-Reply-To: <0-6813199134517018827-16593499022052364835-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16593499022052364835-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16593499022052364835-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-3.6.0 Comment #1 on issue 591 by benoit.m... at ...626...: Togglebutton component background doesn't work in QT4 https://code.google.com/p/gambas/issues/detail?id=591 The visual behaviour of native controls depends on the underlying toolkit and the widget theme, so I usually can't do anything against that. And as you don't provide the requested information on your system, I can't tell you more. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 15:40:24 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 14:40:24 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed In-Reply-To: <3-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Comment #4 on issue 593 by r... at ...1740...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 It fixes the test project indeed, but when I test my full project I get this upon closure: ASSERT failure in QList::at: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 469 And an aborted (6) window. Don't tell me we arrived at found bug #3 in a row? :( -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Fri Jan 2 15:45:53 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 14:45:53 +0000 Subject: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... In-Reply-To: <54A68F32.3030202@...1...> Message-ID: <1420209953.20766.YahooMailBasic@...3274...> When I wrote this my message, I didn't update the last version, where gb.sdl2.audio do not needs gb.sdl2 anymore. vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] R: SDL2 : "Channel" Class has not property nor metods... A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 13:29 Le 02/01/2015 12:55, Ru Vuott a ?crit : > Ok, I understand,? but my problem is: > > with the old "gb.sdl.sound" component if I wanted to use .Stop() method to stop the playing, i can put on the Form a Button and in Button_Click() event i can write .Stop() method. > > Now, with SDL2 how can I create a Button and its active _Click() event ? > > Regards > vuott > I don't understand your problem at all. I have just took the LCDLabel example, uncheck 'gb.sdl.sound', check 'gb.sdl2.audio', and it works. (Note: except that now you must specify Sound.Frequency = 48000, because the SDL music player cannot resample the sound. But this is not related to your problem) -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Jan 2 15:51:26 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 2 Jan 2015 15:51:26 +0100 Subject: [Gambas-user] Communicating to hosted forms... In-Reply-To: <54A5CCA8.2040507@...3301...> References: <54A29A1C.201@...3301...> <1419954255.3482.10.camel@...40...> <20141230154554.GB545@...2774...> <1419958430.3482.19.camel@...40...> <54A5B0F5.3080602@...3301...> <20150101205742.GA556@...2774...> <54A5CCA8.2040507@...3301...> Message-ID: this is the good POO way ! 2015-01-01 23:39 GMT+01:00 Stephen : > When, at the project level, all controls on all forms are set to be > public, the 'Public' property for each control on each form continues to > indicate that it is NOT Public. This is misleading. > > The 'Public' property of all controls should reflect the reality, > that it is publicly visible, and that property should then be made > uneditable. A tool-tip might have to be put in to explain why it is > uneditable, i.e. that the property was set at the project level. > > The only way that I can see out of my conundrum is to create a > property in in each form to which updated information is to be pushed. > The property write will process the received data and put it where it > needs to go. It promises to be a pain in the neck to implement but will > give more granular control, it may also make maintenance a nightmare, so > I'll have to give this more thought. > > Once again, thanks for the assistance. > > On 01/01/2015 03:57 PM, Tobias Boege wrote: >> On Thu, 01 Jan 2015, Stephen wrote: >>> I just extracted the archive from the email, loaded it and of course it >>> works perfectly. >>> >>> I had this; >>> >>> mhform1.textbox2.text = value >>> >>> and >>> >>> mgform2.textbox2.text = value >>> >>> in my original code but I kept getting "null object" every time it tried >>> execute the line. >>> >>> Thanks for putting up with my stupidity and taking the time to help out. >>> >> That's why I found it better to send a patch in this case (I attach the one >> with Charlie's changes). You will see that he switched a setting in the >> project properties: >> >> +ControlPublic=1 >> >> which makes all controls on all forms public variables (they're private by >> default for reasons of sanity). With this setting enabled, your problem is >> trivial as you see. >> >> I think Charlie wanted you to find that setting by yourself. I think this is >> a bit unfair as the setting is well hidden in the project options dialog :-) >> >> Regards, >> Tobi >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > -- > Kindest Regards > Stephen A. Bungay, Prop. > Smarts On Site Information Systems > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From lewis at ...3412... Fri Jan 2 16:05:28 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 02 Jan 2015 09:05:28 -0600 Subject: [Gambas-user] Wiki Observation, SQL syntax In-Reply-To: <20150102132559.GA552@...2774...> References: <54A6474F.5070904@...3412...> <20150102132559.GA552@...2774...> Message-ID: <54A6B3B8.1050106@...3412...> Thank you to both Benoit and Tobias for the explanations. I did figure it out but did not realize that a "Result" could be treated as an array. I tend to think of DB data as structures. ... but my real point was that when the syntax can be considered a bit unusual then the Wiki needs to document the use of the syntax. Otherwise potential new users are left without a clue. I observed this case and thought that it was perhaps worth mentioning so someone might at sometime update the information. Cheers, Lewis From taboege at ...626... Fri Jan 2 16:10:46 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 2 Jan 2015 16:10:46 +0100 Subject: [Gambas-user] Wiki Observation, SQL syntax In-Reply-To: <54A6B3B8.1050106@...3412...> References: <54A6474F.5070904@...3412...> <20150102132559.GA552@...2774...> <54A6B3B8.1050106@...3412...> Message-ID: <20150102151046.GB552@...2774...> On Fri, 02 Jan 2015, Lewis Balentine wrote: > Thank you to both Benoit and Tobias for the explanations. I did figure > it out but did not realize that a "Result" could be treated as an array. > I tend to think of DB data as structures. > > ... but my real point was that when the syntax can be considered a bit > unusual then the Wiki needs to document the use of the syntax. Otherwise > potential new users are left without a clue. I observed this case and > thought that it was perhaps worth mentioning so someone might at > sometime update the information. > Yes and I am willing to update the documentation in these cases. However, there is this one question whenever such a point is found: where to put the missing information? If it's OK with you and Benoit doesn't know a better place, I will put notes on the ! operator into the _put special method documentation and link to it from the Collection and Result classes which are the most popular ones who use String-based indexing, so that a newbie may stumble upon them. Not ideal but I think we don't have a dedicated page for array accessors (because there are just these two -- AFAIK). Or should I create a new "Array operators" page in the language index? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...2524... Fri Jan 2 16:18:19 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 15:18:19 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed In-Reply-To: <4-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #5 on issue 593 by benoit.m... at ...626...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 Is it better with revision #6798? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 16:27:11 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 15:27:11 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed In-Reply-To: <5-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Comment #6 on issue 593 by r... at ...1740...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 Yes issue is solved, no more errors or crashes, thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 2 16:31:51 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Jan 2015 15:31:51 +0000 Subject: [Gambas-user] Issue 593 in gambas: Circular reference non-free when project closed In-Reply-To: <6-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> <0-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-829785058123942754-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #7 on issue 593 by benoit.m... at ...626...: Circular reference non-free when project closed https://code.google.com/p/gambas/issues/detail?id=593 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Fri Jan 2 18:37:30 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 17:37:30 +0000 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components Message-ID: <1420220250.53505.YahooMailBasic@...3275...> Hello Beno?t, I noticed " Music.SoundFontPath " property doesn't work, if I use any graphic component. So, for example, this works: Public Sub Main() With Music .SoundFontPath = "/path/of/soundbank/file.sf2" .Load("/path/of/my/file.mid") .Play End With While Music.State = Music.Playing Print CStr(Date(0, 0, 0, 0, 0, 0, Music.Pos * 1000)) Wend End - - - - -- - --- -- - - - - - - - - - This does NOT work: it doesn't find the soundbank file.sf2 : Public Sub Button1_Click() With Music .SoundFontPath = "/path/of/soundbank/file.sf2" .Load("/path/of/my/file.mid") .Play End With End I don't understand why. Regards vuott From bill-lancaster at ...2231... Fri Jan 2 18:48:39 2015 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 2 Jan 2015 10:48:39 -0700 (MST) Subject: [Gambas-user] Gridview cell coordinates Message-ID: <1420220919758-50069.post@...3046...> I want to position a balloon by the gridview cell that was right clicked. It is necessary to scroll down to the lower rows. I'm struggling with this so any suggestion as to the best way to do this would be welcome. -- View this message in context: http://gambas.8142.n7.nabble.com/Gridview-cell-coordinates-tp50069.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Jan 2 19:10:24 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 19:10:24 +0100 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components In-Reply-To: <1420220250.53505.YahooMailBasic@...3275...> References: <1420220250.53505.YahooMailBasic@...3275...> Message-ID: <54A6DF10.8090500@...1...> Le 02/01/2015 18:37, Ru Vuott a ?crit : > Hello Beno?t, > > I noticed " Music.SoundFontPath " property doesn't work, if I use any graphic component. > > So, for example, this works: > > Public Sub Main() > > With Music > .SoundFontPath = "/path/of/soundbank/file.sf2" > .Load("/path/of/my/file.mid") > .Play > End With > > While Music.State = Music.Playing > Print CStr(Date(0, 0, 0, 0, 0, 0, Music.Pos * 1000)) > Wend > > End > > > - - - - -- - --- -- - - - - - - - - - > > This does NOT work: it doesn't find the soundbank file.sf2 : > > Public Sub Button1_Click() > > With Music > .SoundFontPath = "/path/of/soundbank/file.sf2" > .Load("/path/of/my/file.mid") > .Play > End With > > End > > I don't understand why. > > > > Regards > vuott > So am I, but please post a little project so that I can test. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Fri Jan 2 19:25:11 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 02 Jan 2015 19:25:11 +0100 Subject: [Gambas-user] Gridview cell coordinates In-Reply-To: <1420220919758-50069.post@...3046...> References: <1420220919758-50069.post@...3046...> Message-ID: <1420223111.3592.11.camel@...40...> Am Freitag, den 02.01.2015, 10:48 -0700 schrieb bill-lancaster: > I want to position a balloon by the gridview cell that was right clicked. > It is necessary to scroll down to the lower rows. > I'm struggling with this so any suggestion as to the best way to do this > would be welcome. > Salut Bill, as far as I remember, the balloon is attached to a Control. like that (Message as String, Control as Control [ , X as Integer, Y as Integer ]) I would try to place a Control h=1,w=1 in the middle of the cell (known by the click) and then call the balloon attached to that Control. While I describe this out of running example, I do not know how and when destroy this Control -- Amicalement Charlie From vuott at ...325... Fri Jan 2 20:07:12 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 19:07:12 +0000 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components In-Reply-To: <54A6DF10.8090500@...1...> Message-ID: <1420225632.69707.YahooMailBasic@...3274...> What a strange... I generated a new little project to send you, and now it works. Bah... perhaps I had some conflict... I don't know. Well, ok, I suppose no problems anymore on "Music.SoundFontPath". Otherwise, I'll keep you informed. Thanks and bye. vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 19:10 Le 02/01/2015 18:37, Ru Vuott a ?crit : > Hello Beno?t, > > I noticed " Music.SoundFontPath " property doesn't work, if I use any graphic component. > > So, for example, this works: > > Public Sub Main() > >? ???With Music >? ? ???.SoundFontPath = "/path/of/soundbank/file.sf2" >? ? ???.Load("/path/of/my/file.mid") >? ? ???.Play >? ???End With > >? ???While Music.State = Music.Playing >? ? ? ? Print CStr(Date(0, 0, 0, 0, 0, 0, Music.Pos * 1000)) >? ???Wend > > End > > > - - - - -- - --- -- - - - - - - - - - > > This does NOT work: it doesn't find the soundbank file.sf2 : > > Public Sub Button1_Click() > >? ???With Music >? ? ???.SoundFontPath = "/path/of/soundbank/file.sf2" >? ? ???.Load("/path/of/my/file.mid") >? ? ???.Play >? ???End With > > End > > I don't understand why. > > > > Regards > vuott > So am I, but please post a little project so that I can test. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Fri Jan 2 20:35:07 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 19:35:07 +0000 Subject: [Gambas-user] R: Gridview cell coordinates In-Reply-To: <1420220919758-50069.post@...3046...> Message-ID: <1420227307.90756.YahooMailBasic@...3268...> Hi, maybe, something like this example ? Public Sub Form_Open() GridView1.Columns.Count = 2 GridView1.Rows.Count = 2 End Public Sub GridView1_Menu() ' If right click... Balloon.Info("Cell " & GridView1.Row & "," & GridView1.Column, GridView1, (GridView1.Columns[GridView1.Column].X + GridView1.Columns[GridView1.Column].W) / 2, GridView1.Rows[GridView1.Row].Y + GridView1.Rows[GridView1.Row].H) End -------------------------------------------- Ven 2/1/15, bill-lancaster ha scritto: Oggetto: [Gambas-user] Gridview cell coordinates A: gambas-user at lists.sourceforge.net Data: Venerd? 2 gennaio 2015, 18:48 I want to position a balloon by the gridview cell that was right clicked. It is necessary to scroll down to the lower rows. I'm struggling with this so any suggestion as to the best way to do this would be welcome. -- View this message in context: http://gambas.8142.n7.nabble.com/Gridview-cell-coordinates-tp50069.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Fri Jan 2 20:58:46 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 19:58:46 +0000 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components Message-ID: <1420228726.7839.YahooMailBasic@...3268...> Hello Beno?t, I come back on this question, because I suppose I found the problem. Well, "Music.SoundFontPath" doesn't work, if I set the "Volume". So, if I comment Volume setting, it works. However, I send you a little and simple project, here attached. ( Try to activate and deactivate Volume setting in " Public Sub Slider1_Change() " routine. ) Regards. vuott -------------------------------------------- Ven 2/1/15, Ru Vuott ha scritto: Oggetto: Re: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 20:07 What a strange... I generated a new little project to send you, and now it works. Bah... perhaps I had some conflict... I don't know. Well, ok, I suppose no problems anymore on "Music.SoundFontPath". Otherwise, I'll keep you informed. Thanks and bye. vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 19:10 Le 02/01/2015 18:37, Ru Vuott a ?crit : > Hello Beno?t, > > I noticed " Music.SoundFontPath " property doesn't work, if I use any graphic component. > > So, for example, this works: > > Public Sub Main() > >? ???With Music >? ? ???.SoundFontPath = "/path/of/soundbank/file.sf2" >? ? ???.Load("/path/of/my/file.mid") >? ? ???.Play >? ???End With > >? ???While Music.State = Music.Playing >? ? ? ? Print CStr(Date(0, 0, 0, 0, 0, 0, Music.Pos * 1000)) >? ???Wend > > End > > > - - - - -- - --- -- - - - - - - - - - > > This does NOT work: it doesn't find the soundbank file.sf2 : > > Public Sub Button1_Click() > >? ???With Music >? ? ???.SoundFontPath = "/path/of/soundbank/file.sf2" >? ? ???.Load("/path/of/my/file.mid") >? ? ???.Play >? ???End With > > End > > I don't understand why. > > > > Regards > vuott > So am I, but please post a little project so that I can test. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: SDL2_Midi-0.0.1.tar.gz Type: application/gzipped-tar Size: 4365 bytes Desc: not available URL: From vuott at ...325... Fri Jan 2 21:28:11 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 20:28:11 +0000 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components Message-ID: <1420230491.96506.YahooMailBasic@...3274...> ...well, I managed to run the Midi project with Volume setting. At present, we have to change Volume value only after we have started the playing. So, I had to put a conditional and a Boolean variable (bleah !) to avoid interference on the Slider when you open the form. Here the second project. Regards vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 19:10 Le 02/01/2015 18:37, Ru Vuott a ?crit : > Hello Beno?t, > > I noticed " Music.SoundFontPath " property doesn't work, if I use any graphic component. > > So, for example, this works: > > Public Sub Main() > >? ???With Music >? ? ???.SoundFontPath = "/path/of/soundbank/file.sf2" >? ? ???.Load("/path/of/my/file.mid") >? ? ???.Play >? ???End With > >? ???While Music.State = Music.Playing >? ? ? ? Print CStr(Date(0, 0, 0, 0, 0, 0, Music.Pos * 1000)) >? ???Wend > > End > > > - - - - -- - --- -- - - - - - - - - - > > This does NOT work: it doesn't find the soundbank file.sf2 : > > Public Sub Button1_Click() > >? ???With Music >? ? ???.SoundFontPath = "/path/of/soundbank/file.sf2" >? ? ???.Load("/path/of/my/file.mid") >? ? ???.Play >? ???End With > > End > > I don't understand why. > > > > Regards > vuott > So am I, but please post a little project so that I can test. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: SDL2_Midi-0.0.2.tar.gz Type: application/gzipped-tar Size: 4379 bytes Desc: not available URL: From gambas at ...1... Fri Jan 2 21:37:16 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 21:37:16 +0100 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components In-Reply-To: <1420228726.7839.YahooMailBasic@...3268...> References: <1420228726.7839.YahooMailBasic@...3268...> Message-ID: <54A7017C.8000804@...1...> Le 02/01/2015 20:58, Ru Vuott a ?crit : > Hello Beno?t, > > I come back on this question, because I suppose I found the problem. > > Well, "Music.SoundFontPath" doesn't work, if I set the "Volume". > So, if I comment Volume setting, it works. > > However, I send you a little and simple project, here attached. > > ( Try to activate and deactivate Volume setting in " Public Sub Slider1_Change() " routine. ) > > > Regards. > vuott > I try different random midi files, and it works. There are problems, but only in the fluidsynth rendering. -- Beno?t Minisini From gambas at ...1... Fri Jan 2 21:47:25 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Jan 2015 21:47:25 +0100 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components In-Reply-To: <1420230491.96506.YahooMailBasic@...3274...> References: <1420230491.96506.YahooMailBasic@...3274...> Message-ID: <54A703DD.1010704@...1...> Le 02/01/2015 21:28, Ru Vuott a ?crit : > ...well, > > I managed to run the Midi project with Volume setting. > > At present, we have to change Volume value only after we have started the playing. > > So, I had to put a conditional and a Boolean variable (bleah !) to avoid interference on the Slider when you open the form. > > Here the second project. > > Regards > vuott > I can prevent that... -- Beno?t Minisini From taboege at ...626... Fri Jan 2 22:55:14 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 2 Jan 2015 22:55:14 +0100 Subject: [Gambas-user] Gridview cell coordinates In-Reply-To: <1420220919758-50069.post@...3046...> References: <1420220919758-50069.post@...3046...> Message-ID: <20150102215514.GC552@...2774...> On Fri, 02 Jan 2015, bill-lancaster wrote: > I want to position a balloon by the gridview cell that was right clicked. > It is necessary to scroll down to the lower rows. > I'm struggling with this so any suggestion as to the best way to do this > would be welcome. > I think you can use GridView[Row, Column].EnsureVisible() to have the GridView scroll down to your row. Then it's a matter of placing the Balloon correctly: Balloon("Text", GridView, Gridview[Row, Column].X, GridView[Row, Column].Y) should do it. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From vuott at ...325... Fri Jan 2 23:24:02 2015 From: vuott at ...325... (Ru Vuott) Date: Fri, 2 Jan 2015 22:24:02 +0000 Subject: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components In-Reply-To: <54A703DD.1010704@...1...> Message-ID: <1420237442.44696.YahooMailBasic@...3274...> The alternative is to write "Music.SoundFontPath" in Form_Open() routine: Public Sub Form_Open() Music.SoundFontPath = "/path/of/sounbank/file.sf2" ..... ..... End In this way it works without boolean variable and without IF. Regards vuott -------------------------------------------- Ven 2/1/15, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] SDL2 : "Music.SoundFontPath" doesn't work with graphic components A: "mailing list for gambas users" Data: Venerd? 2 gennaio 2015, 21:47 Le 02/01/2015 21:28, Ru Vuott a ?crit : > ...well, > > I managed to run the Midi project with Volume setting. > > At present, we have to change Volume value only after we have started the playing. > > So, I had to put a conditional and a Boolean variable (bleah !) to avoid interference on the Slider when you open the form. > > Here the second project. > > Regards > vuott > I can prevent that... -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Fri Jan 2 23:36:43 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 3 Jan 2015 00:36:43 +0200 Subject: [Gambas-user] File watching behaviour In-Reply-To: <54A60268.9060304@...1...> References: <54A60268.9060304@...1...> Message-ID: With latest revision everything work now as expected (watch issue is fixed and no more circular reference messages)! Jussi On Fri, Jan 2, 2015 at 4:28 AM, Beno?t Minisini < gambas at ...1...> wrote: > @Jussi : I introduce a new thread for the problem. Now for the new year > people will always create a new thread for a new topic. :-) > > In revision #6791 I made the following changes: > > - If a watched file descriptor is ready to read, but has no data, then > the watch is not automatically stopped anymore. > > - If the event loop is called too often (because of the last change), I > make the interpreter sleep a bit (up to 10 ms), so that the CPU is not > eaten. > > Now the expected problems: > > - This is not backward compatible. Maybe I should introduce a new > syntax. For example adding the "CONTINUE" keyword after the "WATCH" > keyword to keep watching. > > - Only the interpreter event loop has the little sleep. Not gb.qt4, > gb.sdl, gb.gtk and gb.gtk3. So you may eat 100% CPU with these > components. I will try to find a solution for that. > > People, please tell me what you think about that. Especially Ron that > has the program that watch the biggest number of file descriptors. :-) > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Fri Jan 2 23:41:02 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 02 Jan 2015 16:41:02 -0600 Subject: [Gambas-user] Wiki Observation, SQL syntax In-Reply-To: <20150102151046.GB552@...2774...> References: <54A6474F.5070904@...3412...> <20150102132559.GA552@...2774...> <54A6B3B8.1050106@...3412...> <20150102151046.GB552@...2774...> Message-ID: <54A71E7E.3090204@...3412...> >> where to put the missing information? << Did I mention before that my ignorance is eminence ? :>) Well I am also a senile old goat: There is a mention of how syntax for arrays is a bit different in Gambas, but I do not seem to be finding it today .... oh there it is under Array Declaration (ref: http://gambaswiki.org/wiki/cat/arraydecl). I thought perhaps a link on this page would be good as well but perhaps not as it is more oriented toward numeric indexed arrays. I really thing that there needs to be a good section on using the GD.DB components (someone started this with "How to create and use MySQL connection"). I think that I should refrain from making a suggestion in this regard as I am still working at understanding the general Lexicon and Syntax conventions used in Gambas. One of the things that made VB5 so popular was its excellent help system. In VB6 MS dumped in everything else from their array of languages and tools (that did more damage than good). Gambas is well on its way to having a good help system (I would like to see a Gambas Wiki search function, but there is always Google). I hope to be able to contribute to this effort in the future --- perhaps by adding examples. Regards, Lewis Balentine From taboege at ...626... Fri Jan 2 23:57:33 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 2 Jan 2015 23:57:33 +0100 Subject: [Gambas-user] Wiki Observation, SQL syntax In-Reply-To: <54A71E7E.3090204@...3412...> References: <54A6474F.5070904@...3412...> <20150102132559.GA552@...2774...> <54A6B3B8.1050106@...3412...> <20150102151046.GB552@...2774...> <54A71E7E.3090204@...3412...> Message-ID: <20150102225733.GD552@...2774...> On Fri, 02 Jan 2015, Lewis Balentine wrote: > >> where to put the missing information? << > > Did I mention before that my ignorance is eminence ? :>) > Well I am also a senile old goat: There is a mention of how syntax for > arrays is a bit different in Gambas, but I do not seem to be finding it > today .... oh there it is under Array Declaration (ref: > http://gambaswiki.org/wiki/cat/arraydecl). I thought perhaps a link on > this page would be good as well but perhaps not as it is more oriented > toward numeric indexed arrays. > Indeed, this page is about array declaration, not about indexing... > I really thing that there needs to be a good section on using the GD.DB > components (someone started this with "How to create and use MySQL > connection"). > *cough* Gambas magazine *cough* (would be a good place to install such an article for permanent view, not necessarily the documentation which is more of a dry technical reference). > I think that I should refrain from making a suggestion in this regard as > I am still working at understanding the general Lexicon and Syntax > conventions used in Gambas. One of the things that made VB5 so popular > was its excellent help system. In VB6 MS dumped in everything else from > their array of languages and tools (that did more damage than good). > Gambas is well on its way to having a good help system (I would like to > see a Gambas Wiki search function, but there is always Google). I hope > to be able to contribute to this effort in the future --- perhaps by > adding examples. > There are never enough examples[*], especially now that we have the software farm. I'm surprised. I can't believe that there is something such as an "excellent help system". From my limited experience, it seems *necessary* that a help is, from some point on, an utterly convoluted jungle of cross references and "hidden" information, in the sense that it is not where someone new to the system may expect it to be...? Regards, Tobi [*] I hope I'll not regret saying this :-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at ...626... Sat Jan 3 00:11:21 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sat, 3 Jan 2015 09:41:21 +1030 Subject: [Gambas-user] Not happy! Message-ID: <20150103094121.a393f3b7a846a54fce2532f4@...626...> The "Show only components used in this project" button has gone missing in the new project properties form. :-( Bruce -- B Bruen From gambas at ...1... Sat Jan 3 02:06:11 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 03 Jan 2015 02:06:11 +0100 Subject: [Gambas-user] Not happy! In-Reply-To: <20150103094121.a393f3b7a846a54fce2532f4@...626...> References: <20150103094121.a393f3b7a846a54fce2532f4@...626...> Message-ID: <54A74083.7010408@...1...> Le 03/01/2015 00:11, adamnt42 at ...626... a ?crit : > The "Show only components used in this project" button has gone missing in the new project properties form. > > :-( > Bruce > You must click on the magnifer icon in the component filter to open a menu where you can check that. -- Beno?t Minisini From gambas at ...1... Sat Jan 3 02:10:47 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 03 Jan 2015 02:10:47 +0100 Subject: [Gambas-user] DataSource Before Save In-Reply-To: <54A5FA3D.403@...1...> References: <54A5FA3D.403@...1...> Message-ID: <54A74197.7090107@...1...> Le 02/01/2015 02:54, Beno?t Minisini a ?crit : > Le 02/01/2015 02:44, Christian e Ana Luiza Britto a ?crit : >> Hi Folks, >> Happy New Year for everyone! >> I would like to know if it's possible to use DataSource BeforeSave >> event to check data before it gets saved and cancel that if necessary >> (using Stop Event or something like that). It's possible to check data >> validation through database triggers, but I would like to make it in >> Gambas just to have the possibility check data and translate the >> messages presented to the users. If there's a way please let me know. >> I'm using Gambas 3.6.2 >> >> Best regards, >> Christian >> > > No, but I can add that easily for Gambas 3.7. I.e., using STOP EVENT > during the BeforeSave event handler will cancel the save. > > Regards, > Done in revision #6800. Regards, -- Beno?t Minisini From gambas at ...1... Sat Jan 3 02:16:44 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 03 Jan 2015 02:16:44 +0100 Subject: [Gambas-user] Databowser-Buttons, How to "click" them by code ? In-Reply-To: <54A22E59.9010806@...36...> References: <54A22E59.9010806@...36...> Message-ID: <54A742FC.9050702@...1...> Le 30/12/2014 05:47, ub2 at ...36... a ?crit : > (My last mail got lost somewhere in another thread. > I don't know why but try again.) > > > Dear Gambas Cracks > > > Sorry for this question. I'm sure the answer will be simple, > but I'm searching for it since weeks... > A short hint would be very appreciated. > > > My question: > Is there a way to "click" the Databowser-Buttons (Save, NewRec, GotoLast) > by a script? Something like Databrowser.SaveRec or .NewRec or .ShowLast? > > My Situation: > Migrating thousands of records from a csv into a Sql-DB I use a databrowser. > On a form I have different buttons with scripts which: > - repair/modify most common csv-syntax-errors and then > - import each record into datacontrols connected to the databrowser/datasource > - if everything is fine > -- script then shall "click" save, show last record, open new record, > and then start next "record-migration-loop" > -- if not, user needs to resolve "advanced errors" manually and then > continue the "semi-auto-migration-script" again. This is also the reason why > I do not work with an "invisible" 2-connection-2-result-comparison > (as discussed in this mailing list some weeks ago). > > > Thanks for Gambas, > thanks for your support, > and a good start into 2015 to all Gambas! > > > Hubi > ub2 at ...36... > What you want is not possible at the moment, but this is very easy to add. If you can't use the development version, you can search the DataBrowser children recursively until you find the buttons you need (look at the DataBrowser source code to know their name). Once you get a reference on a button, just set its Value to True to trigger it. And note that you have a CsvFile class in the gb.util component in the development version that allows to browse a CsvFile line by line, taking into account the separator character, and the quoting character. Regards, -- Beno?t Minisini From adamnt42 at ...626... Sat Jan 3 03:30:21 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sat, 3 Jan 2015 13:00:21 +1030 Subject: [Gambas-user] Not happy! In-Reply-To: <54A74083.7010408@...1...> References: <20150103094121.a393f3b7a846a54fce2532f4@...626...> <54A74083.7010408@...1...> Message-ID: <20150103130021.afb2455c670d5867770e4731@...626...> On Sat, 03 Jan 2015 02:06:11 +0100 Beno?t Minisini wrote: > Le 03/01/2015 00:11, adamnt42 at ...626... a ?crit : > > The "Show only components used in this project" button has gone missing in the new project properties form. > > > > :-( > > Bruce > > > > You must click on the magnifer icon in the component filter to open a > menu where you can check that. > > -- > Beno?t Minisini > Hmm. To coin a phrase from 20 years of software testing.. "Now, that is not exactly intuitive to most casual observers" b -- B Bruen From kevinfishburne at ...1887... Sat Jan 3 03:54:28 2015 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Fri, 02 Jan 2015 21:54:28 -0500 Subject: [Gambas-user] Not happy! In-Reply-To: <20150103130021.afb2455c670d5867770e4731@...626...> References: <20150103094121.a393f3b7a846a54fce2532f4@...626...> <54A74083.7010408@...1...> <20150103130021.afb2455c670d5867770e4731@...626...> Message-ID: <54A759E4.3010706@...1887...> On 01/02/2015 09:30 PM, adamnt42 at ...626... wrote: > On Sat, 03 Jan 2015 02:06:11 +0100 > Beno?t Minisini wrote: > >> Le 03/01/2015 00:11, adamnt42 at ...626... a ?crit : >>> The "Show only components used in this project" button has gone missing in the new project properties form. >>> >>> :-( >>> Bruce >>> >> You must click on the magnifer icon in the component filter to open a >> menu where you can check that. >> >> -- >> Beno?t Minisini >> > Hmm. To coin a phrase from 20 years of software testing.. > "Now, that is not exactly intuitive to most casual observers" > b It's a "hidden feature"...literally. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From sbungay at ...3301... Sat Jan 3 05:51:42 2015 From: sbungay at ...3301... (Stephen) Date: Fri, 02 Jan 2015 23:51:42 -0500 Subject: [Gambas-user] Communicating to hosted forms... In-Reply-To: <20150101225931.GE556@...2774...> References: <54A29A1C.201@...3301...> <1419954255.3482.10.camel@...40...> <20141230154554.GB545@...2774...> <1419958430.3482.19.camel@...40...> <54A5B0F5.3080602@...3301...> <20150101205742.GA556@...2774...> <54A5CCA8.2040507@...3301...> <20150101225931.GE556@...2774...> Message-ID: <54A7755E.5020409@...3301...> On 01/01/2015 05:59 PM, Tobias Boege wrote: > On Thu, 01 Jan 2015, Stephen wrote: >> The only way that I can see out of my conundrum is to create a >> property in in each form to which updated information is to be pushed. >> The property write will process the received data and put it where it >> needs to go. >> > Sounds suspiciously like you just want a method (or multiple) in your > embedded forms. No need for a property and to "process" its data. > Actually it's all about messaging within the app, I just got focused on setting control values because no matter what I did I failed at it; but I learned something! The controls had to be set to public at the project level; which is something I would try my best never to do. -- Kindest Regards Stephen A. Bungay, Prop. Smarts On Site Information Systems From bill-lancaster at ...2231... Sat Jan 3 09:46:46 2015 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 3 Jan 2015 01:46:46 -0700 (MST) Subject: [Gambas-user] Gridview cell coordinates In-Reply-To: <20150102215514.GC552@...2774...> References: <1420220919758-50069.post@...3046...> <20150102215514.GC552@...2774...> Message-ID: <1420274806715-50090.post@...3046...> Thanks for the several ideas. The example from Ru works except when the user scrolls down, then the balloon is placed well below the gridview control because the cell position has moved relative to the control. Using the GridView[Row, Column].EnsureVisible() has the same problem. BTW the control is destroyed after Balloon.Delay I've attached a simple example. Gridview2-0.gz -- View this message in context: http://gambas.8142.n7.nabble.com/Gridview-cell-coordinates-tp50069p50090.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Sat Jan 3 15:14:37 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Jan 2015 14:14:37 +0000 Subject: [Gambas-user] Issue 591 in gambas: Togglebutton component background doesn't work in QT4 In-Reply-To: <1-6813199134517018827-16593499022052364835-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16593499022052364835-gambas=googlecode.com@...2524...> <0-6813199134517018827-16593499022052364835-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16593499022052364835-gambas=googlecode.com@...2524...> Comment #2 on issue 591 by uAle... at ...626...: Togglebutton component background doesn't work in QT4 https://code.google.com/p/gambas/issues/detail?id=591 Here you go: [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.13.0-39-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=980M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sat Jan 3 15:20:47 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 3 Jan 2015 15:20:47 +0100 Subject: [Gambas-user] Gridview cell coordinates In-Reply-To: <1420274806715-50090.post@...3046...> References: <1420220919758-50069.post@...3046...> <20150102215514.GC552@...2774...> <1420274806715-50090.post@...3046...> Message-ID: Hi randall, Is the balloon can be in the gridview control ? Like balloon in googlemap ? Le 3 janv. 2015 09:49, "bill-lancaster" a ?crit : > Thanks for the several ideas. > The example from Ru works except when the user scrolls down, then the > balloon is placed well below the gridview control because the cell position > has moved relative to the control. > > Using the GridView[Row, Column].EnsureVisible() has the same problem. > > BTW the control is destroyed after Balloon.Delay > > I've attached a simple example. > > Gridview2-0.gz < > http://gambas.8142.n7.nabble.com/file/n50090/Gridview2-0.gz> > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/Gridview-cell-coordinates-tp50069p50090.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Sat Jan 3 15:40:58 2015 From: taboege at ...626... (Tobias Boege) Date: Sat, 3 Jan 2015 15:40:58 +0100 Subject: [Gambas-user] SerialPort: RS232 DTR problem In-Reply-To: <54A6149D.6090205@...1...> References: <20141216145206.GA547@...2774...> <54A6149D.6090205@...1...> Message-ID: <20150103144057.GA574@...2774...> On Fri, 02 Jan 2015, Beno?t Minisini wrote: > Le 16/12/2014 15:52, Tobias Boege a ?crit : > > Hi, > > > > [ this is a forwarded bug report -- and this time I'm only translating. I > > don't understand any of these hardware things. If there are questions > > left, don't hesitate; ] > > > > a user complains that SerialPort.DTR is buggy on his system: after > > initialisation, this property is False and the voltage is -12V. > > > > Setting it to True works and the voltage raises to +12V. But setting it to > > False afterwards does nothing: the property continues to return True the > > voltage remains on +12V. The needed hardware is an RS232 or an RS232-USB > > adapter. > > > > He says it worked with Gambas2 and he first noticed that it didn't with > > Gambas 3.1.1 (from the Ubuntu repositories). I urged him to update and the > > error still happens with 3.6.2. > > > > Attached is the project we came up with to reproduce the issue. He also > > mentioned that behaviour changed slightly when he left out the graphical > > component he initially used his project with: with a graphical component, > > the hardware didn't react and the property remained True and without a > > graphical component, the hardware reacts correctly, only the property gives > > the wrong value -- if I got him right. > > > > Regards, > > Tobi > > > > Does the last revision (#6792) change anything? > He says no. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bill-lancaster at ...2231... Sat Jan 3 17:54:13 2015 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 3 Jan 2015 09:54:13 -0700 (MST) Subject: [Gambas-user] Gridview cell coordinates In-Reply-To: <1420220919758-50069.post@...3046...> References: <1420220919758-50069.post@...3046...> Message-ID: <1420304053038-50094.post@...3046...> Sorry about this, I thought I'd tried this already - it works fine Public Sub GridView1_MouseDown() Balloon.Info(GridView1[GridView1.Row, GridView1.Column].Text, GridView1, Mouse.X, Mouse.Y) End -- View this message in context: http://gambas.8142.n7.nabble.com/Gridview-cell-coordinates-tp50069p50094.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sat Jan 3 22:25:51 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 3 Jan 2015 22:25:51 +0100 Subject: [Gambas-user] Gridview cell coordinates In-Reply-To: <1420304053038-50094.post@...3046...> References: <1420220919758-50069.post@...3046...> <1420304053038-50094.post@...3046...> Message-ID: You can play with that too. In this example, i show how to make an internal balloon directly in the gridview 2015-01-03 17:54 GMT+01:00 bill-lancaster : > Sorry about this, > I thought I'd tried this already - it works fine > Public Sub GridView1_MouseDown() > Balloon.Info(GridView1[GridView1.Row, GridView1.Column].Text, > GridView1, Mouse.X, Mouse.Y) > End > > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Gridview-cell-coordinates-tp50069p50094.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: bubblegrid-0.0.1.tar.gz Type: application/x-gzip Size: 4269 bytes Desc: not available URL: From gambas at ...1... Sat Jan 3 23:01:04 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 03 Jan 2015 23:01:04 +0100 Subject: [Gambas-user] Not happy! In-Reply-To: <54A759E4.3010706@...1887...> References: <20150103094121.a393f3b7a846a54fce2532f4@...626...> <54A74083.7010408@...1...> <20150103130021.afb2455c670d5867770e4731@...626...> <54A759E4.3010706@...1887...> Message-ID: <54A866A0.40308@...1...> Le 03/01/2015 03:54, Kevin Fishburne a ?crit : > On 01/02/2015 09:30 PM, adamnt42 at ...626... wrote: >> On Sat, 03 Jan 2015 02:06:11 +0100 >> Beno?t Minisini wrote: >> >>> Le 03/01/2015 00:11, adamnt42 at ...626... a ?crit : >>>> The "Show only components used in this project" button has gone missing in the new project properties form. >>>> >>>> :-( >>>> Bruce >>>> >>> You must click on the magnifer icon in the component filter to open a >>> menu where you can check that. >>> >>> -- >>> Beno?t Minisini >>> >> Hmm. To coin a phrase from 20 years of software testing.. >> "Now, that is not exactly intuitive to most casual observers" >> b > > It's a "hidden feature"...literally. :) > OK, OK, the checkboxes came back in revision #6803. -- Beno?t Minisini From adamnt42 at ...626... Sun Jan 4 01:05:39 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sun, 4 Jan 2015 10:35:39 +1030 Subject: [Gambas-user] Removing an argument from the project properties form Message-ID: <20150104103539.f6dfbcd7af279707a7b6814c@...626...> crashes the IDE. regards Bruce -- B Bruen From taboege at ...626... Sun Jan 4 02:09:08 2015 From: taboege at ...626... (Tobias Boege) Date: Sun, 4 Jan 2015 02:09:08 +0100 Subject: [Gambas-user] How to query your package manager for dependencies? Message-ID: <20150104010908.GC574@...2774...> Hi list, given a package name x, I would like you to write me the line(s) which list the (first-order, that is immediate) dependencies of the package x (by calling your package manager appropriately). For example, under Arch Linux, the package manager is called "pacman": $ x="gambas3-runtime" --> $ pacman -Si $x | egrep "Depends On|Optional Deps" Depends On : libffi xdg-utils Optional Deps : None If you can grep the output a little, like I did above, it would be nice and if you can separate optional dependencies from mandatory ones, that would be even better. While I could google these things for foreign-to-me distributions, I would rather ask you to actually confirm that the lines you give me do work. Please use only english locales. Thanks for any contribution. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sun Jan 4 02:32:22 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 04 Jan 2015 02:32:22 +0100 Subject: [Gambas-user] Removing an argument from the project properties form In-Reply-To: <20150104103539.f6dfbcd7af279707a7b6814c@...626...> References: <20150104103539.f6dfbcd7af279707a7b6814c@...626...> Message-ID: <54A89826.309@...1...> Le 04/01/2015 01:05, adamnt42 at ...626... a ?crit : > crashes the IDE. > > regards > Bruce > Can you elaborate? I have no problem there. -- Beno?t Minisini From gambas at ...1... Sun Jan 4 03:20:24 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 04 Jan 2015 03:20:24 +0100 Subject: [Gambas-user] SerialPort: RS232 DTR problem In-Reply-To: <20150103144057.GA574@...2774...> References: <20141216145206.GA547@...2774...> <54A6149D.6090205@...1...> <20150103144057.GA574@...2774...> Message-ID: <54A8A368.5000407@...1...> Le 03/01/2015 15:40, Tobias Boege a ?crit : > On Fri, 02 Jan 2015, Beno?t Minisini wrote: >> Le 16/12/2014 15:52, Tobias Boege a ?crit : >>> Hi, >>> >>> [ this is a forwarded bug report -- and this time I'm only translating. I >>> don't understand any of these hardware things. If there are questions >>> left, don't hesitate; ] >>> >>> a user complains that SerialPort.DTR is buggy on his system: after >>> initialisation, this property is False and the voltage is -12V. >>> >>> Setting it to True works and the voltage raises to +12V. But setting it to >>> False afterwards does nothing: the property continues to return True the >>> voltage remains on +12V. The needed hardware is an RS232 or an RS232-USB >>> adapter. >>> >>> He says it worked with Gambas2 and he first noticed that it didn't with >>> Gambas 3.1.1 (from the Ubuntu repositories). I urged him to update and the >>> error still happens with 3.6.2. >>> >>> Attached is the project we came up with to reproduce the issue. He also >>> mentioned that behaviour changed slightly when he left out the graphical >>> component he initially used his project with: with a graphical component, >>> the hardware didn't react and the property remained True and without a >>> graphical component, the hardware reacts correctly, only the property gives >>> the wrong value -- if I got him right. >>> >>> Regards, >>> Tobi >>> >> >> Does the last revision (#6792) change anything? >> > > He says no. > A stupid bug in the DTR property implementation... It should be fixed in revision #6804. Please ask him to confirm. Regards, -- Beno?t Minisini From chriseana at ...626... Sun Jan 4 04:37:28 2015 From: chriseana at ...626... (Christian e Ana Luiza Britto) Date: Sun, 4 Jan 2015 01:37:28 -0200 Subject: [Gambas-user] ComboBox with RichText and Index Message-ID: Hi, I have two questions: 1) Is it possible to put rich text content in a ComboBox? 2) Is it possible to define user defined keys for every ComboBox content? Best Regards, Christian From adamnt42 at ...626... Sun Jan 4 06:29:42 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sun, 4 Jan 2015 15:59:42 +1030 Subject: [Gambas-user] Removing an argument from the project properties form In-Reply-To: <54A89826.309@...1...> References: <20150104103539.f6dfbcd7af279707a7b6814c@...626...> <54A89826.309@...1...> Message-ID: <20150104155942.2048330e1aff8e3906167b61@...626...> On Sun, 04 Jan 2015 02:32:22 +0100 Beno?t Minisini wrote: > Le 04/01/2015 01:05, adamnt42 at ...626... a ?crit : > > crashes the IDE. > > > > regards > > Bruce > > > > Can you elaborate? I have no problem there. > > -- > Beno?t Minisini > Hmm. Maybe I've done something silly to the local IDE. No matter what I do in the project properties popup as soon as I click on the save button I get an error 13 at FProjectProperty.WriteComponent .1512 which is: $aNeed.Clear ... Aha! It only happens with projects that are components. Try (say) 1) open gb.markdown 2) open project properties 3) click OK (no need to worry about the arguments tab - it appears to be a furphy) here I get when running the IDE from the IDE a null object for $aNeed ??? Bruce -- B Bruen From mike.crean at ...2897... Sun Jan 4 09:59:45 2015 From: mike.crean at ...2897... (Mike Crean) Date: Sun, 4 Jan 2015 08:59:45 +0000 (UTC) Subject: [Gambas-user] SerialPort: RS232 DTR problem In-Reply-To: <54A8A368.5000407@...1...> References: <54A8A368.5000407@...1...> Message-ID: <201168999.987193.1420361985542.JavaMail.yahoo@...3418...> Have you tried a standard loop back cable. Also have a look at the most excepted RS323 standards. This may help. Over the past couple of decades the serial "standard" has evolved. Current accepted practice says that DSR and DTR should be used for "Equipment Status" and that hardware flow control be done using CTS and RTS. Since the signaling is identical you can plug any device that uses DSR/DTR flow control into any device that uses CTS/RTS flow control as long as the cable is wired correctly. All currently available Lantronix multi-port servers with RJ45 serial ports use this RS232 pinout: 1 RTS 2 DTR 3 TXD 4?SGD 5?SGD 6 RXD 7 DSR 8 CTSRegardsMike On Sunday, 4 January 2015, 10:20, Beno?t Minisini wrote: Le 03/01/2015 15:40, Tobias Boege a ?crit : > On Fri, 02 Jan 2015, Beno?t Minisini wrote: >> Le 16/12/2014 15:52, Tobias Boege a ?crit : >>> Hi, >>> >>> [ this is a forwarded bug report -- and this time I'm only translating. I >>>? ? don't understand any of these hardware things. If there are questions >>>? ? left, don't hesitate; ] >>> >>> a user complains that SerialPort.DTR is buggy on his system: after >>> initialisation, this property is False and the voltage is -12V. >>> >>> Setting it to True works and the voltage raises to +12V. But setting it to >>> False afterwards does nothing: the property continues to return True the >>> voltage remains on +12V. The needed hardware is an RS232 or an RS232-USB >>> adapter. >>> >>> He says it worked with Gambas2 and he first noticed that it didn't with >>> Gambas 3.1.1 (from the Ubuntu repositories). I urged him to update and the >>> error still happens with 3.6.2. >>> >>> Attached is the project we came up with to reproduce the issue. He also >>> mentioned that behaviour changed slightly when he left out the graphical >>> component he initially used his project with: with a graphical component, >>> the hardware didn't react and the property remained True and without a >>> graphical component, the hardware reacts correctly, only the property gives >>> the wrong value -- if I got him right. >>> >>> Regards, >>> Tobi >>> >> >> Does the last revision (#6792) change anything? >> > > He says no. > A stupid bug in the DTR property implementation... It should be fixed in revision #6804. Please ask him to confirm. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Sun Jan 4 23:26:24 2015 From: taboege at ...626... (Tobias Boege) Date: Sun, 4 Jan 2015 23:26:24 +0100 Subject: [Gambas-user] Create Static and _call Message-ID: <20150104222624.GA540@...2774...> Hi Benoit, there is a behaviour which bothers me for some time. If I create a class MyClass, make it Create Static and define a (non-static) Public Sub _call, I cannot use MyClass() The interpreter throws "MyClass._call is not static". I can still use MyClass._call() but that doesn't look cool enough. Can the interpreter be made more clever about this (or am I doing a forbidden thing)? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: create-static-call-0.0.1.tar.gz Type: application/octet-stream Size: 3760 bytes Desc: not available URL: From gambas at ...1... Mon Jan 5 00:02:41 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 05 Jan 2015 00:02:41 +0100 Subject: [Gambas-user] Create Static and _call In-Reply-To: <20150104222624.GA540@...2774...> References: <20150104222624.GA540@...2774...> Message-ID: <54A9C691.4090007@...1...> Le 04/01/2015 23:26, Tobias Boege a ?crit : > Hi Benoit, > > there is a behaviour which bothers me for some time. If I create a class > MyClass, make it Create Static and define a (non-static) Public Sub _call, > I cannot use > > MyClass() > > The interpreter throws "MyClass._call is not static". I can still use > > MyClass._call() > > but that doesn't look cool enough. Can the interpreter be made more clever > about this (or am I doing a forbidden thing)? > > Regards, > Tobi > It's a bug. It's fixed in revision #6809. Regards, -- Beno?t Minisini From taboege at ...626... Mon Jan 5 00:05:55 2015 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Jan 2015 00:05:55 +0100 Subject: [Gambas-user] Create Static and _call In-Reply-To: <54A9C691.4090007@...1...> References: <20150104222624.GA540@...2774...> <54A9C691.4090007@...1...> Message-ID: <20150104230555.GB540@...2774...> On Mon, 05 Jan 2015, Beno?t Minisini wrote: > Le 04/01/2015 23:26, Tobias Boege a ?crit : > > Hi Benoit, > > > > there is a behaviour which bothers me for some time. If I create a class > > MyClass, make it Create Static and define a (non-static) Public Sub _call, > > I cannot use > > > > MyClass() > > > > The interpreter throws "MyClass._call is not static". I can still use > > > > MyClass._call() > > > > but that doesn't look cool enough. Can the interpreter be made more clever > > about this (or am I doing a forbidden thing)? > > > > Regards, > > Tobi > > > > It's a bug. It's fixed in revision #6809. > Works as far as the project I attached last time is concerned. Attached now is a new version of the test project in which _call() has a parameter. It fails here saying "wanted MyClass got Integer instead". Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: create-static-call-0.0.2.tar.gz Type: application/octet-stream Size: 3926 bytes Desc: not available URL: From gambas at ...1... Mon Jan 5 00:41:29 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 05 Jan 2015 00:41:29 +0100 Subject: [Gambas-user] Create Static and _call In-Reply-To: <20150104230555.GB540@...2774...> References: <20150104222624.GA540@...2774...> <54A9C691.4090007@...1...> <20150104230555.GB540@...2774...> Message-ID: <54A9CFA9.70501@...1...> Le 05/01/2015 00:05, Tobias Boege a ?crit : > > Works as far as the project I attached last time is concerned. > > Attached now is a new version of the test project in which _call() has a > parameter. It fails here saying "wanted MyClass got Integer instead". > > Regards, > Tobi > It should be better in revision #6810. Regards, -- Beno?t Minisini From taboege at ...626... Mon Jan 5 00:47:46 2015 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Jan 2015 00:47:46 +0100 Subject: [Gambas-user] Create Static and _call In-Reply-To: <54A9CFA9.70501@...1...> References: <20150104222624.GA540@...2774...> <54A9C691.4090007@...1...> <20150104230555.GB540@...2774...> <54A9CFA9.70501@...1...> Message-ID: <20150104234746.GC540@...2774...> On Mon, 05 Jan 2015, Beno?t Minisini wrote: > Le 05/01/2015 00:05, Tobias Boege a ?crit : > > > > Works as far as the project I attached last time is concerned. > > > > Attached now is a new version of the test project in which _call() has a > > parameter. It fails here saying "wanted MyClass got Integer instead". > > > > Regards, > > Tobi > > > > It should be better in revision #6810. > Now it works in my projects. Thanks. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Mon Jan 5 01:30:14 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 05 Jan 2015 01:30:14 +0100 Subject: [Gambas-user] The new Border class Message-ID: <54A9DB16.3000105@...1...> Since the last revisions, I have implemented a creatable Border class that allows to associate many properties with a Border object, and draw a border from these properties. For example: hBorder = new Border("color:blue;width:8;radius:16;margin:4;top-style:dotted") hBorder.Paint Moreover, you can associate a Border to each cell of a GridView. That allows you what you can see in the joined screenshot. Enjoy! -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: borders.png Type: image/png Size: 52400 bytes Desc: not available URL: From taboege at ...626... Mon Jan 5 13:03:18 2015 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Jan 2015 13:03:18 +0100 Subject: [Gambas-user] SerialPort: RS232 DTR problem In-Reply-To: <54A8A368.5000407@...1...> References: <20141216145206.GA547@...2774...> <54A6149D.6090205@...1...> <20150103144057.GA574@...2774...> <54A8A368.5000407@...1...> Message-ID: <20150105120318.GA1470@...2774...> On Sun, 04 Jan 2015, Beno?t Minisini wrote: > Le 03/01/2015 15:40, Tobias Boege a ?crit : > > On Fri, 02 Jan 2015, Beno?t Minisini wrote: > >> Le 16/12/2014 15:52, Tobias Boege a ?crit : > >>> Hi, > >>> > >>> [ this is a forwarded bug report -- and this time I'm only translating. I > >>> don't understand any of these hardware things. If there are questions > >>> left, don't hesitate; ] > >>> > >>> a user complains that SerialPort.DTR is buggy on his system: after > >>> initialisation, this property is False and the voltage is -12V. > >>> > >>> Setting it to True works and the voltage raises to +12V. But setting it to > >>> False afterwards does nothing: the property continues to return True the > >>> voltage remains on +12V. The needed hardware is an RS232 or an RS232-USB > >>> adapter. > >>> > >>> He says it worked with Gambas2 and he first noticed that it didn't with > >>> Gambas 3.1.1 (from the Ubuntu repositories). I urged him to update and the > >>> error still happens with 3.6.2. > >>> > >>> Attached is the project we came up with to reproduce the issue. He also > >>> mentioned that behaviour changed slightly when he left out the graphical > >>> component he initially used his project with: with a graphical component, > >>> the hardware didn't react and the property remained True and without a > >>> graphical component, the hardware reacts correctly, only the property gives > >>> the wrong value -- if I got him right. > >>> > >>> Regards, > >>> Tobi > >>> > >> > >> Does the last revision (#6792) change anything? > >> > > > > He says no. > > > > A stupid bug in the DTR property implementation... It should be fixed in > revision #6804. Please ask him to confirm. > Confirmed. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From reiner.goerlach at ...3419... Mon Jan 5 14:21:24 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 14:21:24 +0100 Subject: [Gambas-user] fullscreen Message-ID: <54AA8FD4.5000305@...3419...> After switching from Form1 to Form2 and back to Form1, Form1 is still in Fullscreen-Mode. If I do it scond time, Form1 shows still Fullscreen-Mode, but in reality it has turned to maximized mode. Ubuntu 10.04, GAMBAS2, QT, Has somebody experience how to improve ? Best regards Reiner From ualex73 at ...626... Mon Jan 5 14:42:03 2015 From: ualex73 at ...626... (Alexie) Date: Mon, 5 Jan 2015 14:42:03 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AA8FD4.5000305@...3419...> References: <54AA8FD4.5000305@...3419...> Message-ID: Can you retest it with Gambas3? Gambas2 isn't supported anymore. 2015-01-05 14:21 GMT+01:00 Reiner Goerlach : > After switching from Form1 to Form2 and back to Form1, Form1 is still in > Fullscreen-Mode. If I do it scond time, Form1 shows still > Fullscreen-Mode, but in reality it has turned to maximized mode. > Ubuntu 10.04, GAMBAS2, QT, > > Has somebody experience how to improve ? > > Best regards > Reiner > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tercoide at ...67... Mon Jan 5 15:23:22 2015 From: tercoide at ...67... (martin p cristia) Date: Mon, 5 Jan 2015 11:23:22 -0300 Subject: [Gambas-user] Send Mouse events to a given window In-Reply-To: References: Message-ID: Hi: Hope everyone have a good 2015. It is possible to send mouse events (clicks) to a non-gambas (external) window? -- Saludos Ing. Martin P Cristia From Karl.Reinl at ...2345... Mon Jan 5 15:30:47 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 05 Jan 2015 15:30:47 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AA8FD4.5000305@...3419...> References: <54AA8FD4.5000305@...3419...> Message-ID: <1420468247.3507.16.camel@...40...> Am Montag, den 05.01.2015, 14:21 +0100 schrieb Reiner Goerlach: > After switching from Form1 to Form2 and back to Form1, Form1 is still in > Fullscreen-Mode. If I do it scond time, Form1 shows still > Fullscreen-Mode, but in reality it has turned to maximized mode. > Ubuntu 10.04, GAMBAS2, QT, > > Has somebody experience how to improve ? > > Best regards > Reiner Salut Reiner, I'v still a gambas2 2.24 running, if you send me the project, I can have a look at it. -- Amicalement Charlie From reiner.goerlach at ...3419... Mon Jan 5 16:05:10 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 16:05:10 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> Message-ID: <54AAA826.8060804@...3419...> Nice answer, unfortunately not to my question. I am very happy to have the GAMBAS2 running. Very happy. And I cannot install GAMBAS3, because in Installation description is stated, that the best way to install is just to type ./configure, make, make install. Unfortunately I get the message: There is no such file "configure", and the installation procedure is already finished. It is also a nice description in the installation description, unfortunately not for the GAMBAS3 set of files, which I have downloded. As I already stated, "I am very happy to have the GAMBAS2 running ...... Rweiner On 01/05/2015 02:42 PM, Alexie wrote: > Can you retest it with Gambas3? Gambas2 isn't supported anymore. > > 2015-01-05 14:21 GMT+01:00 Reiner Goerlach : > >> After switching from Form1 to Form2 and back to Form1, Form1 is still in >> Fullscreen-Mode. If I do it scond time, Form1 shows still >> Fullscreen-Mode, but in reality it has turned to maximized mode. >> Ubuntu 10.04, GAMBAS2, QT, >> >> Has somebody experience how to improve ? >> >> Best regards >> Reiner >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ron at ...1740... Mon Jan 5 16:13:44 2015 From: ron at ...1740... (Ron) Date: Mon, 5 Jan 2015 16:13:44 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAA826.8060804@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> Message-ID: Did you skip the step ./reconf-all on purpose? It creates the files needed for the ./configure step. ;P I don't know how big your projects are and what they do, but gambas3 runs faster than gambas2. Ron. 2015-01-05 16:05 GMT+01:00 Reiner Goerlach : > Nice answer, unfortunately not to my question. > > I am very happy to have the GAMBAS2 running. Very happy. And I cannot > install GAMBAS3, because in Installation description is stated, that the > best way to install is just to type ./configure, make, make install. > Unfortunately I get the message: There is no such file "configure", and > the installation procedure is already finished. It is also a nice > description in the installation description, unfortunately not for the > GAMBAS3 set of files, which I have downloded. > As I already stated, "I am very happy to have the GAMBAS2 running ...... > > > Rweiner > > > > > > On 01/05/2015 02:42 PM, Alexie wrote: > > Can you retest it with Gambas3? Gambas2 isn't supported anymore. > > > > 2015-01-05 14:21 GMT+01:00 Reiner Goerlach : > > > >> After switching from Form1 to Form2 and back to Form1, Form1 is still in > >> Fullscreen-Mode. If I do it scond time, Form1 shows still > >> Fullscreen-Mode, but in reality it has turned to maximized mode. > >> Ubuntu 10.04, GAMBAS2, QT, > >> > >> Has somebody experience how to improve ? > >> > >> Best regards > >> Reiner > >> > >> > >> > ------------------------------------------------------------------------------ > >> Dive into the World of Parallel Programming! The Go Parallel Website, > >> sponsored by Intel and developed in partnership with Slashdot Media, is > >> your > >> hub for all things parallel software development, from weekly thought > >> leadership blogs to news, videos, case studies, tutorials and more. > Take a > >> look and join the conversation now. http://goparallel.sourceforge.net > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming! The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is > your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take > a > > look and join the conversation now. http://goparallel.sourceforge.net > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Mon Jan 5 16:25:06 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Jan 2015 15:25:06 +0000 Subject: [Gambas-user] Issue 589 in gambas: Interpreter Crash Gambas3 - Calling a library function - BananaPi In-Reply-To: <1-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> <0-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Comment #2 on issue 589 by ScrCarl... at ...626...: Interpreter Crash Gambas3 - Calling a library function - BananaPi https://code.google.com/p/gambas/issues/detail?id=589 Dear Benoit, in the firstplace i used VarPtr(hid_p) but i received the same result. When I did the same with Gambas 3.6.2 under Ubuntu 12.04 on my EeePC (IntelAtom processor) i didn't deliver a system crash. So I think it has to do with passing parameters to a ARM7 processor(banana pi) and may be there is aproblem with libffi.so.6. But i am not so familiar with c programming and debugging,but i know what a pointer or a pointer to a pointer is. So I believe that it doesn't matter if i pass it to pointer or to a pointer to a pointer. I just have to handle correctly at procesing time of returned data. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From reiner.goerlach at ...3419... Mon Jan 5 16:37:43 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 16:37:43 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> Message-ID: <54AAAFC7.8020804@...3419...> I will try, and somebody should insert such clause into Installation description ! I hope it works. (The first helpful hint) GAMBAS3 ist faster ? What about number of bugs ? How can I trust GAMBAS3, when in GAMBAS2 are still bugs ? Best regards Reiner On 01/05/2015 04:13 PM, Ron wrote: > Did you skip the step ./reconf-all on purpose? > > It creates the files needed for the ./configure step. ;P > > I don't know how big your projects are and what they do, but gambas3 runs > faster than gambas2. > > Ron. > > 2015-01-05 16:05 GMT+01:00 Reiner Goerlach : > >> Nice answer, unfortunately not to my question. >> >> I am very happy to have the GAMBAS2 running. Very happy. And I cannot >> install GAMBAS3, because in Installation description is stated, that the >> best way to install is just to type ./configure, make, make install. >> Unfortunately I get the message: There is no such file "configure", and >> the installation procedure is already finished. It is also a nice >> description in the installation description, unfortunately not for the >> GAMBAS3 set of files, which I have downloded. >> As I already stated, "I am very happy to have the GAMBAS2 running ...... >> >> >> Rweiner >> >> >> >> >> >> On 01/05/2015 02:42 PM, Alexie wrote: >>> Can you retest it with Gambas3? Gambas2 isn't supported anymore. >>> >>> 2015-01-05 14:21 GMT+01:00 Reiner Goerlach : >>> >>>> After switching from Form1 to Form2 and back to Form1, Form1 is still in >>>> Fullscreen-Mode. If I do it scond time, Form1 shows still >>>> Fullscreen-Mode, but in reality it has turned to maximized mode. >>>> Ubuntu 10.04, GAMBAS2, QT, >>>> >>>> Has somebody experience how to improve ? >>>> >>>> Best regards >>>> Reiner >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel Programming! The Go Parallel Website, >>>> sponsored by Intel and developed in partnership with Slashdot Media, is >>>> your >>>> hub for all things parallel software development, from weekly thought >>>> leadership blogs to news, videos, case studies, tutorials and more. >> Take a >>>> look and join the conversation now. http://goparallel.sourceforge.net >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming! The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take >> a >>> look and join the conversation now. http://goparallel.sourceforge.net >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From reiner.goerlach at ...3419... Mon Jan 5 16:41:20 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 16:41:20 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> Message-ID: <54AAB0A0.5050507@...3419...> Hallo Ron, here is the interesting response ! root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all ./reconf-all: 7: libtoolize: not found Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 189. Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 189. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC autoreconf: /usr/bin/autoconf failed with exit status: 1 root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure bash: ./configure: No such file or directory root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ????????????????????????????????????????????????????? Reiner On 01/05/2015 04:13 PM, Ron wrote: > Did you skip the step ./reconf-all on purpose? > > It creates the files needed for the ./configure step. ;P > > I don't know how big your projects are and what they do, but gambas3 runs > faster than gambas2. > > Ron. > > 2015-01-05 16:05 GMT+01:00 Reiner Goerlach : > >> Nice answer, unfortunately not to my question. >> >> I am very happy to have the GAMBAS2 running. Very happy. And I cannot >> install GAMBAS3, because in Installation description is stated, that the >> best way to install is just to type ./configure, make, make install. >> Unfortunately I get the message: There is no such file "configure", and >> the installation procedure is already finished. It is also a nice >> description in the installation description, unfortunately not for the >> GAMBAS3 set of files, which I have downloded. >> As I already stated, "I am very happy to have the GAMBAS2 running ...... >> >> >> Rweiner >> >> >> >> >> >> On 01/05/2015 02:42 PM, Alexie wrote: >>> Can you retest it with Gambas3? Gambas2 isn't supported anymore. >>> >>> 2015-01-05 14:21 GMT+01:00 Reiner Goerlach : >>> >>>> After switching from Form1 to Form2 and back to Form1, Form1 is still in >>>> Fullscreen-Mode. If I do it scond time, Form1 shows still >>>> Fullscreen-Mode, but in reality it has turned to maximized mode. >>>> Ubuntu 10.04, GAMBAS2, QT, >>>> >>>> Has somebody experience how to improve ? >>>> >>>> Best regards >>>> Reiner >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel Programming! The Go Parallel Website, >>>> sponsored by Intel and developed in partnership with Slashdot Media, is >>>> your >>>> hub for all things parallel software development, from weekly thought >>>> leadership blogs to news, videos, case studies, tutorials and more. >> Take a >>>> look and join the conversation now. http://goparallel.sourceforge.net >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming! The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take >> a >>> look and join the conversation now. http://goparallel.sourceforge.net >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Jan 5 16:57:24 2015 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Jan 2015 16:57:24 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAAFC7.8020804@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAAFC7.8020804@...3419...> Message-ID: <20150105155724.GB1470@...2774...> On Mon, 05 Jan 2015, Reiner Goerlach wrote: > I will try, and somebody should insert such clause into Installation > description ! I hope it works. (The first helpful hint) > I will if you tell me where you found this incomplete installation description. > GAMBAS3 ist faster ? What about number of bugs ? How can I trust > GAMBAS3, when in GAMBAS2 are still bugs ? > I wish we could determine the number. Since the release of Gambas 2.24, there were roughly 2100 commit items marked as bugfixes. On the other side, there were as many new features which potentially introduced new bugs. In any case, if you indeed found a bug here, wouldn't it be good to run a version which developers still care about to fix the bug? ;-) As for "trust": you can't and shouldn't, as the GPL says: This program is distributed [...] WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From reiner.goerlach at ...3419... Mon Jan 5 17:07:54 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 17:07:54 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <20150105155724.GB1470@...2774...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAAFC7.8020804@...3419...> <20150105155724.GB1470@...2774...> Message-ID: <54AAB6DA.3090702@...3419...> It is the INSTALL - file in latest download GAMBAS 3.5.4., I attach that file hereto Reiner On 01/05/2015 04:57 PM, Tobias Boege wrote: > On Mon, 05 Jan 2015, Reiner Goerlach wrote: >> I will try, and somebody should insert such clause into Installation >> description ! I hope it works. (The first helpful hint) >> > > I will if you tell me where you found this incomplete installation > description. > >> GAMBAS3 ist faster ? What about number of bugs ? How can I trust >> GAMBAS3, when in GAMBAS2 are still bugs ? >> > > I wish we could determine the number. Since the release of Gambas 2.24, > there were roughly 2100 commit items marked as bugfixes. On the other side, > there were as many new features which potentially introduced new bugs. > > In any case, if you indeed found a bug here, wouldn't it be good to run > a version which developers still care about to fix the bug? ;-) > > As for "trust": you can't and shouldn't, as the GPL says: > > This program is distributed [...] WITHOUT ANY WARRANTY; without even > the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > Regards, > Tobi > -------------- next part -------------- Installation Instructions ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PREFIX', the package will use PREFIX as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the `--target=TYPE' option to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc will cause the specified gcc to be used as the C compiler (unless it is overridden in the site shell script). `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. From epost at ...3323... Mon Jan 5 17:13:18 2015 From: epost at ...3323... (=?windows-1252?Q?J=F8rn_Erik_M=F8rne?=) Date: Mon, 05 Jan 2015 17:13:18 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAB0A0.5050507@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAB0A0.5050507@...3419...> Message-ID: <54AAB81E.80400@...3323...> Den 05. jan. 2015 16:41, skrev Reiner Goerlach: > Hallo Ron, > > here is the interesting response ! > > > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all > ./reconf-all: 7: libtoolize: not found > Can't exec "libtoolize": No such file or directory at > /usr/bin/autoreconf line 189. > Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf > line 189. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal > autoreconf: configure.ac: tracing > autoreconf: configure.ac: adding subdirectory main to autoreconf > autoreconf: Entering directory `main' > autoreconf: running: aclocal -I m4 --install > autoreconf: configure.ac: not using Libtool > autoreconf: running: /usr/bin/autoconf > configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE > configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL > configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC > autoreconf: /usr/bin/autoconf failed with exit status: 1 > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure > bash: ./configure: No such file or directory > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# > > ????????????????????????????????????????????????????? > > Reiner > Have you read/seen this: http://gambaswiki.org/wiki/install ? Do also check out this section of that page: http://gambaswiki.org/wiki/install#t9 From gambas at ...2524... Mon Jan 5 17:20:24 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Jan 2015 16:20:24 +0000 Subject: [Gambas-user] Issue 589 in gambas: Interpreter Crash Gambas3 - Calling a library function - BananaPi In-Reply-To: <2-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> <0-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Comment #3 on issue 589 by benoit.m... at ...626...: Interpreter Crash Gambas3 - Calling a library function - BananaPi https://code.google.com/p/gambas/issues/detail?id=589 Of course it matters! Apparently PMD_Find_Interface() uses its first argument to store its result. So if you send it a NULL pointer, it will try to write at the null address, and trigger a segmentation fault. Please provide a working C code using that library. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From reiner.goerlach at ...3419... Mon Jan 5 17:29:56 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 17:29:56 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAB81E.80400@...3323...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAB0A0.5050507@...3419...> <54AAB81E.80400@...3323...> Message-ID: <54AABC04.7040507@...3419...> Never never never never !!!!! I haqd a small Problem. Loss of Fullscreen property of Form in GAMBAS2. Now I have work for 3 people all their life ! Minimum ! Than k you very much !!!!!!!!!!!! Reiner On 01/05/2015 05:13 PM, J?rn Erik M?rne wrote: > > Den 05. jan. 2015 16:41, skrev Reiner Goerlach: >> Hallo Ron, >> >> here is the interesting response ! >> >> >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all >> ./reconf-all: 7: libtoolize: not found >> Can't exec "libtoolize": No such file or directory at >> /usr/bin/autoreconf line 189. >> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf >> line 189. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> autoreconf: running: aclocal >> autoreconf: configure.ac: tracing >> autoreconf: configure.ac: adding subdirectory main to autoreconf >> autoreconf: Entering directory `main' >> autoreconf: running: aclocal -I m4 --install >> autoreconf: configure.ac: not using Libtool >> autoreconf: running: /usr/bin/autoconf >> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN >> If this token and others are legitimate, please use m4_pattern_allow. >> See the Autoconf documentation. >> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE >> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL >> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC >> autoreconf: /usr/bin/autoconf failed with exit status: 1 >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure >> bash: ./configure: No such file or directory >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# >> >> ????????????????????????????????????????????????????? >> >> Reiner >> > Have you read/seen this: http://gambaswiki.org/wiki/install ? Do also > check out this section of that page: http://gambaswiki.org/wiki/install#t9 > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Mon Jan 5 17:51:03 2015 From: willy at ...2734... (Willy Raets) Date: Mon, 05 Jan 2015 17:51:03 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AABC04.7040507@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAB0A0.5050507@...3419...> <54AAB81E.80400@...3323...> <54AABC04.7040507@...3419...> Message-ID: <1420476663.7476.7.camel@...3024...> On ma, 2015-01-05 at 17:29 +0100, Reiner Goerlach wrote: > Never never never never !!!!! > > I haqd a small Problem. Loss of Fullscreen property of Form in GAMBAS2. > Now I have work for 3 people all their life ! Minimum ! Than k you very > much !!!!!!!!!!!! > Reiner For Ubuntu you don even need to compile, you can install latest Gambas3 from binaries (just don't use the official Ubuntu repository as it has an outdated Gambas3 version). All you need to do is open a terminal and do: $ sudo add-apt-repository ppa:gambas-team/gambas3 $ sudo apt-get update $ sudo apt-get install gambas3 Note that: Gambas2 and Gambas3 can coexist on one and the same system. Gambas2 is no longer maintained, so bugs will NOT get fixed. Gambas3 is maintained and bugs should get fixed (if reported). You can import your Gambas2 project into Gambas3 and with little or no extra effort (in my experience) run it as is. Make sure to backup your source before doing so. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From epost at ...3323... Mon Jan 5 17:53:01 2015 From: epost at ...3323... (=?windows-1252?Q?J=F8rn_Erik_M=F8rne?=) Date: Mon, 05 Jan 2015 17:53:01 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AABC04.7040507@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAB0A0.5050507@...3419...> <54AAB81E.80400@...3323...> <54AABC04.7040507@...3419...> Message-ID: <54AAC16D.5060300@...3323...> > Never never never never !!!!! > > I haqd a small Problem. Loss of Fullscreen property of Form in GAMBAS2. > Now I have work for 3 people all their life ! Minimum ! Than k you very > much !!!!!!!!!!!! > Reiner > > Normally it takes one person ten minutes, not three people a life time :) But, as with most things - there is a learning curve :) Happy new year Reiner, don't stress :) From gambas.fr at ...626... Mon Jan 5 18:10:35 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Jan 2015 18:10:35 +0100 Subject: [Gambas-user] The new Border class In-Reply-To: <54A9DB16.3000105@...1...> References: <54A9DB16.3000105@...1...> Message-ID: Le 5 janv. 2015 01:31, "Beno?t Minisini" a ?crit : > > Since the last revisions, I have implemented a creatable Border class that allows to associate many properties with a Border object, and draw a border from these properties. > > For example: > > hBorder = new Border("color:blue;width:8;radius:16;margin:4;top-style:dotted") > > hBorder.Paint > > Moreover, you can associate a Border to each cell of a GridView. That allows you what you can see in the joined screenshot. > > Enjoy! > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ Next step.. a flexible interpreter class and we can make a spreedsheet component. From gambas at ...1... Mon Jan 5 18:13:48 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 05 Jan 2015 18:13:48 +0100 Subject: [Gambas-user] The new Border class In-Reply-To: References: <54A9DB16.3000105@...1...> Message-ID: <54AAC64C.8020805@...1...> Le 05/01/2015 18:10, Fabien Bodard a ?crit : > Next step.. a flexible interpreter class and we can make a spreedsheet component. What do you mean? -- Beno?t Minisini From shordi at ...626... Mon Jan 5 18:16:04 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 5 Jan 2015 18:16:04 +0100 Subject: [Gambas-user] The new Border class In-Reply-To: <54A9DB16.3000105@...1...> References: <54A9DB16.3000105@...1...> Message-ID: It looks fine!!. Good work, as always. Thanks Benoit. Regards 2015-01-05 1:30 GMT+01:00 Beno?t Minisini : > Since the last revisions, I have implemented a creatable Border class that > allows to associate many properties with a Border object, and draw a border > from these properties. > > For example: > > hBorder = new Border("color:blue;width:8;radius:16;margin:4;top-style: > dotted") > > hBorder.Paint > > Moreover, you can associate a Border to each cell of a GridView. That > allows you what you can see in the joined screenshot. > > Enjoy! > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Mon Jan 5 18:49:48 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 5 Jan 2015 19:49:48 +0200 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAAFC7.8020804@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAAFC7.8020804@...3419...> Message-ID: > GAMBAS3 ist faster ? What about number of bugs ? How can I trust > GAMBAS3, when in GAMBAS2 are still bugs ? > Gambas 3 is stable. Just try it. Jussi From taboege at ...626... Mon Jan 5 18:56:48 2015 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Jan 2015 18:56:48 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAB6DA.3090702@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAAFC7.8020804@...3419...> <20150105155724.GB1470@...2774...> <54AAB6DA.3090702@...3419...> Message-ID: <20150105175648.GC1470@...2774...> On Mon, 05 Jan 2015, Reiner Goerlach wrote: > It is the INSTALL - file in latest download GAMBAS 3.5.4., I attach that > file hereto > Seems like someone has been lazy with this file :-) It contained an excerpt from the GNU autoconf manual and hasn't been applicable to Gambas for a long time. In the latest revision, it will just redirect to the wiki. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From Karl.Reinl at ...2345... Mon Jan 5 19:29:27 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 05 Jan 2015 19:29:27 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AA8FD4.5000305@...3419...> References: <54AA8FD4.5000305@...3419...> Message-ID: <1420482567.3895.9.camel@...40...> Am Montag, den 05.01.2015, 14:21 +0100 schrieb Reiner Goerlach: > Ubuntu 10.04 Salut Reiner, I saw you are still using Ubuntu 10.04, while that is an LTS, it is longer supported as normal releases, but also not for a eternity. see here https://wiki.ubuntu.com/Releases I made this once with Ubuntu 8.04 and at the end of 2011 I remarked, that all worked well, BUT my Firefox and the flashplayer has been too old, and I didn't see the things I looked for on a web-site, while I talked with a friend about. >From this time on I tried to upgrade as soon as possible to the next LTS release. -- Amicalement Charlie From reiner.goerlach at ...3419... Mon Jan 5 21:18:07 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 21:18:07 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <20150105175648.GC1470@...2774...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAAFC7.8020804@...3419...> <20150105155724.GB1470@...2774...> <54AAB6DA.3090702@...3419...> <20150105175648.GC1470@...2774...> Message-ID: <54AAF17F.2010301@...3419...> Wgat doesw it mean ? Will there be a new version for GAMBAS soon ? Reiner On 01/05/2015 06:56 PM, Tobias Boege wrote: > On Mon, 05 Jan 2015, Reiner Goerlach wrote: >> It is the INSTALL - file in latest download GAMBAS 3.5.4., I attach that >> file hereto >> > > Seems like someone has been lazy with this file :-) It contained an excerpt > from the GNU autoconf manual and hasn't been applicable to Gambas for a long > time. In the latest revision, it will just redirect to the wiki. > > Regards, > Tobi > From reiner.goerlach at ...3419... Mon Jan 5 21:27:23 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Mon, 05 Jan 2015 21:27:23 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <1420482567.3895.9.camel@...40...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> Message-ID: <54AAF3AB.60906@...3419...> Salut Karl, if I solve your croaaword puzzzle, the result could be, that you are recommending me to go to e newer ubuntu version ????? Is it so ? You wanted to tell me: You should go to a newer ubun tu versiom ? ??????? I cantell you also somethinmg, without crossword puzzle. I have tested Ubuntu 12.04, 14.04 and some other in between. Everything is rubbish. I think amateurs have designed the newer versions. And may be I leave LINUX at all, because LINUX doesn't fullfill my expectations. In spite of many years have passed, Ubuntu has too many problems, and the protagonists of LINUX forget always, that many people doesn't want to study an operating system with all its details, but they want to write some letters, call their friends, make bank business, save some fotos. Therefote I think LINUX will loos the competition with Windows, the protagonists of LINUX are too bad, are too much programmers, too less users. Reiner On 01/05/2015 07:29 PM, Charlie Reinl wrote: > Am Montag, den 05.01.2015, 14:21 +0100 schrieb Reiner Goerlach: >> Ubuntu 10.04 > > Salut Reiner, > > I saw you are still using Ubuntu 10.04, while that is an LTS, it is > longer supported as normal releases, but also not for a eternity. > > see here https://wiki.ubuntu.com/Releases > > I made this once with Ubuntu 8.04 and at the end of 2011 I remarked, > that all worked well, BUT my Firefox and the flashplayer has been too > old, and I didn't see the things I looked for on a web-site, while I > talked with a friend about. >>From this time on I tried to upgrade as soon as possible to the next LTS > release. > > From gambas.fr at ...626... Mon Jan 5 21:46:28 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Jan 2015 21:46:28 +0100 Subject: [Gambas-user] The new Border class In-Reply-To: <54AAC64C.8020805@...1...> References: <54A9DB16.3000105@...1...> <54AAC64C.8020805@...1...> Message-ID: > What do you mean? > > -- > Beno?t Minisini I think about a tool that will be able to interpret inline formulas like in a spreedsheet. i have done something like that for playing myself but i'm not a specialist of interpreters like you. for example : =Myvar1 + 3 *(3*myvar2) =MYFUNCTION(myvar1; myvar2) + MyVar3 the function can be initialised for example like Interpret.Function.Add("MYFunction", nbreArgs, typeRetVal) And will call Public Sub Interpret_MyFunction(Arg1 as variant, arg2 as variant,...) as variant A Special Event will query the vars values : Public Sub Interpret_GetVar(sVarName as string) as Variant All the stuff of the interpreter will be to manage conditionnal requirement and calculate values or concatenate strings. So this tool will be usefull for user level programmation. Like in spreadsheet or in reports formulas. It can be extended near to unlimited. Some functions can be hardcoded like mathematical ones. Others are depend of the context so must be implemented for each widget or component. It's not the fastest way to make compute but the most flexible. I hope my english is not inapprehensible From gambas.fr at ...626... Mon Jan 5 21:56:18 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Jan 2015 21:56:18 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAF3AB.60906@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> Message-ID: 2015-01-05 21:27 GMT+01:00 Reiner Goerlach : > Salut Karl, > > if I solve your croaaword puzzzle, the result could be, that you are > recommending me to go to e newer ubuntu version ????? Is it so ? You > wanted to tell me: You should go to a newer ubun tu versiom ? > > ??????? > > I cantell you also somethinmg, without crossword puzzle. > > I have tested Ubuntu 12.04, 14.04 and some other in between. Everything > is rubbish. I think amateurs have designed the newer versions. And may > be I leave LINUX at all, because LINUX doesn't fullfill my expectations. > > In spite of many years have passed, Ubuntu has too many problems, and > the protagonists of LINUX forget always, that many people doesn't want > to study an operating system with all its details, but they want to > write some letters, call their friends, make bank business, save some fotos. > > Therefote I think LINUX will loos the competition with Windows, the > protagonists of LINUX are too bad, are too much programmers, too less users. > > Reiner Well we can talk about Windows changes too if you want ... And yes linux is for advanced users that want to take theire future in hand. I want to be able to manage my system myself. And yes it's not the case of the majority. Some distribution are more stable than other. WIth linux you can keep you computer near to 10 years... with windows you can change every 2 years if you want to use up to date tools. But this ability have a cost in term of involvement of the user. So linux is good in industrial desktop for low users were you lock things. > > > > > On 01/05/2015 07:29 PM, Charlie Reinl wrote: >> Am Montag, den 05.01.2015, 14:21 +0100 schrieb Reiner Goerlach: >>> Ubuntu 10.04 >> >> Salut Reiner, >> >> I saw you are still using Ubuntu 10.04, while that is an LTS, it is >> longer supported as normal releases, but also not for a eternity. >> >> see here https://wiki.ubuntu.com/Releases >> >> I made this once with Ubuntu 8.04 and at the end of 2011 I remarked, >> that all worked well, BUT my Firefox and the flashplayer has been too >> old, and I didn't see the things I looked for on a web-site, while I >> talked with a friend about. >>>From this time on I tried to upgrade as soon as possible to the next LTS >> release. >> >> > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From taboege at ...626... Mon Jan 5 21:58:13 2015 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Jan 2015 21:58:13 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAF17F.2010301@...3419...> References: <54AA8FD4.5000305@...3419...> <54AAA826.8060804@...3419...> <54AAAFC7.8020804@...3419...> <20150105155724.GB1470@...2774...> <54AAB6DA.3090702@...3419...> <20150105175648.GC1470@...2774...> <54AAF17F.2010301@...3419...> Message-ID: <20150105205813.GD8599@...2774...> On Mon, 05 Jan 2015, Reiner Goerlach wrote: > On 01/05/2015 06:56 PM, Tobias Boege wrote: > > On Mon, 05 Jan 2015, Reiner Goerlach wrote: > >> It is the INSTALL - file in latest download GAMBAS 3.5.4., I attach that > >> file hereto > >> > > > > Seems like someone has been lazy with this file :-) It contained an excerpt > > from the GNU autoconf manual and hasn't been applicable to Gambas for a long > > time. In the latest revision, it will just redirect to the wiki. > > > > Regards, > > Tobi > > > > Wgat doesw it mean ? Will there be a new version for GAMBAS soon ? > I talked about the latest revision in the svn repository. But apart from what I said, Benoit recently stated that he wanted to release 3.7 soon. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Mon Jan 5 22:02:43 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Mon, 05 Jan 2015 22:02:43 +0100 Subject: [Gambas-user] Custom Eval (was Re: The new Border class) In-Reply-To: References: <54A9DB16.3000105@...1...> <54AAC64C.8020805@...1...> Message-ID: <54AAFBF3.3090105@...1...> Le 05/01/2015 21:46, Fabien Bodard a ?crit : >> What do you mean? >> >> -- >> Beno?t Minisini > > I think about a tool that will be able to interpret inline formulas > like in a spreedsheet. > > i have done something like that for playing myself but i'm not a > specialist of interpreters like you. > > for example : > > =Myvar1 + 3 *(3*myvar2) > =MYFUNCTION(myvar1; myvar2) + MyVar3 > > the function can be initialised for example like > > Interpret.Function.Add("MYFunction", nbreArgs, typeRetVal) > > And will call Public Sub Interpret_MyFunction(Arg1 as variant, arg2 as > variant,...) as variant > > A Special Event will query the vars values : Public Sub > Interpret_GetVar(sVarName as string) as Variant > > All the stuff of the interpreter will be to manage conditionnal > requirement and calculate values or concatenate strings. So this tool > will be usefull for user level programmation. > Like in spreadsheet or in reports formulas. It can be extended near to > unlimited. Some functions can be hardcoded like mathematical ones. > Others are depend of the context so must be implemented for each > widget or component. It's not the fastest way to make compute but the > most flexible. > > I hope my english is not inapprehensible > If I understand well, you need some sort of custom Eval(). More precisely, I think what you need is a Gambas hook inside the reader part of Eval() (the first part of its internal compiler) where you tell how to translate any symbol into a Gambas function or a call to a method into one of your classes, everything else being forbidden. That way, you keep the Gambas syntax, except that all function names are redefined, and every interpreter class is forbidden except the one you allow explicitly. Just an idea... -- Beno?t Minisini From gambas.fr at ...626... Mon Jan 5 22:16:11 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 5 Jan 2015 22:16:11 +0100 Subject: [Gambas-user] Custom Eval (was Re: The new Border class) In-Reply-To: <54AAFBF3.3090105@...1...> References: <54A9DB16.3000105@...1...> <54AAC64C.8020805@...1...> <54AAFBF3.3090105@...1...> Message-ID: 2015-01-05 22:02 GMT+01:00 Beno?t Minisini : > Le 05/01/2015 21:46, Fabien Bodard a ?crit : >>> What do you mean? >>> >>> -- >>> Beno?t Minisini >> >> I think about a tool that will be able to interpret inline formulas >> like in a spreedsheet. >> >> i have done something like that for playing myself but i'm not a >> specialist of interpreters like you. >> >> for example : >> >> =Myvar1 + 3 *(3*myvar2) >> =MYFUNCTION(myvar1; myvar2) + MyVar3 >> >> the function can be initialised for example like >> >> Interpret.Function.Add("MYFunction", nbreArgs, typeRetVal) >> >> And will call Public Sub Interpret_MyFunction(Arg1 as variant, arg2 as >> variant,...) as variant >> >> A Special Event will query the vars values : Public Sub >> Interpret_GetVar(sVarName as string) as Variant >> >> All the stuff of the interpreter will be to manage conditionnal >> requirement and calculate values or concatenate strings. So this tool >> will be usefull for user level programmation. >> Like in spreadsheet or in reports formulas. It can be extended near to >> unlimited. Some functions can be hardcoded like mathematical ones. >> Others are depend of the context so must be implemented for each >> widget or component. It's not the fastest way to make compute but the >> most flexible. >> >> I hope my english is not inapprehensible >> > > If I understand well, you need some sort of custom Eval(). > > More precisely, I think what you need is a Gambas hook inside the reader > part of Eval() (the first part of its internal compiler) where you tell > how to translate any symbol into a Gambas function or a call to a method > into one of your classes, everything else being forbidden. > > That way, you keep the Gambas syntax, except that all function names are > redefined, and every interpreter class is forbidden except the one you > allow explicitly. Yes it can be the idea. But can it be compatible with 'STANDARD' formulas style too ? were separtors are ';'... But your idea will be a great step too and i think you have understand the back of my mind. > > Just an idea... > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From lewis at ...3412... Mon Jan 5 22:35:43 2015 From: lewis at ...3412... (Lewis Balentine) Date: Mon, 05 Jan 2015 15:35:43 -0600 Subject: [Gambas-user] Connecting DataControl to DataSource Message-ID: <54AB03AF.9000108@...3412...> I must be missing something very basic in the use of form database controls. I can not seem to get a data control populated ... It appears to me that the data control is not linked to the DataSource. What am I missing ??? Two additional questions: Is there a way to access the "Result" object of a DataSource ? Is there a way to change the "DataSource" for a DataControl ? Regards, Lewis Balentine '---------------------------------------------------------------- Public Sub Form_Open() Dim I As Integer ' This is A SIMPLE form: ' It has Two controls: ' gb.db.form: DataSource named DataSource1 ' gb.db.form: DataView named DataView1 ' pvr.FindDB() finds the SQLite3 DB file and opens a connection to it named "pvr.PvrDb" pvr.FindDB() ' DataSource is a container that provides data from a database to all its children and grand-children recursively: ' It uses its Table And Filter properties And an Open Connection To make a Result object. ' From this Result, it fills its children controls. ' The database Is Defined by the Connection property. DataSource1.Connection = pvr.PvrDb DataSource1.Table = "Select StartDateTime, ChannelDigital, Status, ShowDuration, ShowTitle from TitanTVSchedule Order by StartDateTime, ChannelDigital" DataSource1.Filter = "" Debug DataSource1.Connection.Type ' Debug DataSource1.Connection.Host Debug DataSource1.Connection.Name Debug DataSource1.Connection.Type Debug DataSource1.Connection.Opened Debug "DataSource1 Record Count: "; DataSource1.Count Debug "----------------------------------------------" ' This control Implements a TableView that shows the contents Of a database table And allows To edit it. ' The data Is Provided by the the first DataSource parent control. ' The Columns Property controls the list Of fields To display Or edit. DataView1.Enabled = True DataView1.Columns = ["StartDateTime", "ChannelDigital", "Status", "ShowDuration", "ShowTitle"] DataView1.Update Debug "DataView1 Parent: "; DataView1.Parent.Name Debug "DataView1 Column Count: "; DataView1.View.Columns.Count Debug "DataView1 Row Count: "; DataView1.View.Rows.Count End ' Console Window Output: ' pvr.FindDB.409: Open: True /home/lewis/Documents/KWPVR.DB3 ' FMain.Form_Open.22: sqlite ' FMain.Form_Open.23: /home/lewis/Documents ' FMain.Form_Open.24: KWPVR.DB3 ' FMain.Form_Open.25: sqlite ' FMain.Form_Open.26: True ' FMain.Form_Open.27: DataSource1 Record Count: 31 ' FMain.Form_Open.28: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' FMain.Form_Open.37: DataView1 Parent: FMain ' FMain.Form_Open.38: DataView1 Column Count: 0 ' FMain.Form_Open.39: DataView1 Row Count: 0 ' [System] ' Gambas = 3.6.2 ' OperatingSystem = Linux ' Kernel = 3.13.0 - 24 - generic ' Architecture = x86_64 ' Distribution = Linux Mint 17 Qiana ' Desktop = MATE ' Theme = QGtk ' Language = en_US.UTF - 8 ' Memory = 15994 M ' [Libraries] ' Cairo = libcairo.so.2.11301.0 ' Curl = libcurl.so.4.3.0 ' DBus = libdbus - 1. so.3.7.6 ' GStreamer = libgstreamer - 0.10.so.0.30.0 ' GStreamer = libgstreamer - 1.0.so.0.204.0 ' GTK + 3 = libgtk - 3. so.0.1000.8 ' GTK += libgtk - x11 - 2.0.so.0.2400.23 ' OpenGL = libGL.so.1.2.0 ' Poppler = libpoppler.so.44.0.0 ' Qt4 = libQtCore.so.4.8.6 ' SDL = libSDL - 1.2.so.0.11.4 From karl.reinl at ...9... Mon Jan 5 23:13:35 2015 From: karl.reinl at ...9... (Karl Reinl) Date: Mon, 05 Jan 2015 23:13:35 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AAF3AB.60906@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> Message-ID: <1420496015.5077.27.camel@...40...> Am Montag, den 05.01.2015, 21:27 +0100 schrieb Reiner Goerlach: > Salut Karl, > > if I solve your croaaword puzzzle, the result could be, that you are > recommending me to go to e newer ubuntu version ????? Is it so ? You > wanted to tell me: You should go to a newer ubun tu versiom ? > > ??????? > > I cantell you also somethinmg, without crossword puzzle. > > I have tested Ubuntu 12.04, 14.04 and some other in between. Everything > is rubbish. I think amateurs have designed the newer versions. And may > be I leave LINUX at all, because LINUX doesn't fullfill my expectations. > > In spite of many years have passed, Ubuntu has too many problems, and > the protagonists of LINUX forget always, that many people doesn't want > to study an operating system with all its details, but they want to > write some letters, call their friends, make bank business, save some fotos. > > Therefote I think LINUX will loos the competition with Windows, the > protagonists of LINUX are too bad, are too much programmers, too less users. > > Reiner Salut Reiner, Unity is not the great throw, there I understand you well. But 'Ubuntu' exists in many variations. I use a pure Gnome2 desktop since 12.04 But you talked about users and Windows. Have you had the opportunity to teach an XP user, after 11 years of XP, the new Windows 8.1, or worst Windows 8.0 . No fun, really not. And they always cried after the previous version. 3.11 at 95, 95 at 98, 98 at 2000, and so on, and why... everything has changed, nothing was like before. But the OS was more powerful then before. If you have seen a Windows 10, you can say, they go back, looks like a "strange" Windows 7 with a new START button and everything is square, simple, unadorned ... colorless(!). Soon the green/black screen comes back? -- Amicalement Charlie From gambas at ...1... Tue Jan 6 00:45:50 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 06 Jan 2015 00:45:50 +0100 Subject: [Gambas-user] Farm software categories Message-ID: <54AB222E.7090901@...1...> Hi, In revision #6813 I added an initial category search to the farm software window. I put some arbitrary categories in it, each one just corresponding to a filter tag. If you need another category, just tell me its name and its filter tag: if I find a good icon for it, I will add it. Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: farm.png Type: image/png Size: 62658 bytes Desc: not available URL: From t.lee.davidson at ...626... Tue Jan 6 02:58:28 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Mon, 05 Jan 2015 20:58:28 -0500 Subject: [Gambas-user] Connecting DataControl to DataSource In-Reply-To: <54AB03AF.9000108@...3412...> References: <54AB03AF.9000108@...3412...> Message-ID: <54AB4144.9050409@...626...> On 01/05/2015 04:35 PM, Lewis Balentine wrote: > I must be missing something very basic in the use of form database controls. > I can not seem to get a data control populated ... > It appears to me that the data control is not linked to the DataSource. > What am I missing ??? > > Two additional questions: > Is there a way to access the "Result" object of a DataSource ? > Is there a way to change the "DataSource" for a DataControl ? > > Regards, > > Lewis Balentine Hi Lewis, You didn't provide your project, so I can only guess at how you've designed the DataSource and DataControl(s). But, I think I can answer your first and third questions with one answer. Your third question gives me a hint that you are doing the same thing I first did. One thing that I missed at first is that the data control needs to be a child of the data source, and, conversely the data source must be the parent of the data control. In other words, when you place the DataSource on the form, you then expand it so it can contain (ie. be the parent of) the data controls. Lee __________ "Artificial Intelligence is no match for natural stupidity." From lewis at ...3412... Tue Jan 6 07:28:07 2015 From: lewis at ...3412... (Lewis Balentine) Date: Tue, 06 Jan 2015 00:28:07 -0600 Subject: [Gambas-user] Connecting DataControl to DataSource In-Reply-To: <54AB4144.9050409@...626...> References: <54AB03AF.9000108@...3412...> <54AB4144.9050409@...626...> Message-ID: <54AB8077.2010300@...3412...> YEP --- that was the problem. I completely missed "is a container". In MS VB5/6 you only needed to place the Datasources on the same form .... actually not even that: you could build a connection or selection set and reference that. One thing I would like to see is the ability to return the SQL Query actually used to obtain the "Result". This would be very helpful when trying to figure out why something did not work like one expected it to. I have used the "Subst" function to build such a string but there is always the nagging doubt that it is not exactly the same via some way Gambas handles substitutions or (more likely) I made a typo in duplicating the process. Thanks for you help LEE. Regards, Lewis On 01/05/2015 07:58 PM, T Lee Davidson wrote: > On 01/05/2015 04:35 PM, Lewis Balentine wrote: >> I must be missing something very basic in the use of form database controls. >> I can not seem to get a data control populated ... >> It appears to me that the data control is not linked to the DataSource. >> What am I missing ??? >> >> Two additional questions: >> Is there a way to access the "Result" object of a DataSource ? >> Is there a way to change the "DataSource" for a DataControl ? >> >> Regards, >> >> Lewis Balentine > Hi Lewis, > > You didn't provide your project, so I can only guess at how you've designed the DataSource and DataControl(s). > > But, I think I can answer your first and third questions with one answer. Your third question gives me a hint that you are doing the same thing > I first did. > > One thing that I missed at first is that the data control needs to be a child of the data source, and, conversely the data source must be the > parent of the data control. > > In other words, when you place the DataSource on the form, you then expand it so it can contain (ie. be the parent of) the data controls. > > > Lee > __________ > > "Artificial Intelligence is no match for natural stupidity." > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From t.lee.davidson at ...626... Tue Jan 6 07:38:46 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 06 Jan 2015 01:38:46 -0500 Subject: [Gambas-user] Connecting DataControl to DataSource In-Reply-To: <54AB03AF.9000108@...3412...> References: <54AB03AF.9000108@...3412...> Message-ID: <54AB82F6.6090509@...626...> On 01/05/2015 04:35 PM, Lewis Balentine wrote: > ' Console Window Output: [snip] > - - - - - - - - - - - - - - - - - - - - - > ' FMain.Form_Open.37: DataView1 Parent: FMain Lewis, This is why you are not getting the results you expect. DataView1.Parent.Name should be "DataSource1". [Sorry for the extra post folks. I was a bit pressed for time earlier.] Lee __________ "Artificial Intelligence is no match for natural stupidity." From t.lee.davidson at ...626... Tue Jan 6 07:51:52 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 06 Jan 2015 01:51:52 -0500 Subject: [Gambas-user] Connecting DataControl to DataSource In-Reply-To: <54AB8077.2010300@...3412...> References: <54AB03AF.9000108@...3412...> <54AB4144.9050409@...626...> <54AB8077.2010300@...3412...> Message-ID: <54AB8608.4030609@...626...> I think our mails crossed in transit. Anyway... The SQL query used to obtain the Result should essentially be: "SELECT * FROM " & DataSource.Table & " WHERE " & DataSource.Filter So, it can actually be determined by calculation, or maybe more correctly stated, by concatenation. The data control would then determine which of all columns are actually displayed. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/06/2015 01:28 AM, Lewis Balentine wrote: > YEP --- that was the problem. I completely missed "is a container". In > MS VB5/6 you only needed to place the Datasources on the same form .... > actually not even that: you could build a connection or selection set > and reference that. > > One thing I would like to see is the ability to return the SQL Query > actually used to obtain the "Result". This would be very helpful when > trying to figure out why something did not work like one expected it to. > I have used the "Subst" function to build such a string but there is > always the nagging doubt that it is not exactly the same via some way > Gambas handles substitutions or (more likely) I made a typo in > duplicating the process. > > Thanks for you help LEE. > > Regards, > > Lewis From reiner.goerlach at ...3419... Tue Jan 6 09:41:27 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 09:41:27 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <1420496015.5077.27.camel@...40...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> Message-ID: <54AB9FB7.7000203@...3419...> 3. Reporting a Gambas compilation problem If you cannot compile and install Gambas(3) successfully, please provide the output of the four commands: ./reconf-all, Response in terminal: ***************************************** root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all ./reconf-all: 7: libtoolize: not found Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 189. Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 189. autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC autoreconf: /usr/bin/autoconf failed with exit status: 1 root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure bash: ./configure: No such file or directory root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ************************************************** Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) Best regards Reiner From gambas.fr at ...626... Tue Jan 6 09:43:46 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Jan 2015 09:43:46 +0100 Subject: [Gambas-user] Farm Message-ID: Hi Benoit, Why there is no checkbox to filter installed software ? regards, -- Fabien Bodard From gambas.fr at ...626... Tue Jan 6 09:50:50 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Jan 2015 09:50:50 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AB9FB7.7000203@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> Message-ID: 2010.... it's old. really old. You have to make a mixed system by upgrading just some libs. Like autoreconf, automake, make, well it's the package named buit essential. mabe to a 11.04 will be enougth. But you can't always expect to read a cd in your tape player you know. then gambas3 use qt4 and if i remember well 10.04 is on qt3. There is many chances that you must stay to gb2. 2015-01-06 9:41 GMT+01:00 Reiner Goerlach : > 3. Reporting a Gambas compilation problem > > If you cannot compile and install Gambas(3) successfully, please provide > the output of the four commands: ./reconf-all, > > Response in terminal: > ***************************************** > > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all > ./reconf-all: 7: libtoolize: not found > Can't exec "libtoolize": No such file or directory at > /usr/bin/autoreconf line 189. > Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf > line 189. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal > autoreconf: configure.ac: tracing > autoreconf: configure.ac: adding subdirectory main to autoreconf > autoreconf: Entering directory `main' > autoreconf: running: aclocal -I m4 --install > autoreconf: configure.ac: not using Libtool > autoreconf: running: /usr/bin/autoconf > configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE > configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL > configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC > autoreconf: /usr/bin/autoconf failed with exit status: 1 > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure > bash: ./configure: No such file or directory > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# > ************************************************** > Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 > > What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) > > Best regards > > Reiner > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From reiner.goerlach at ...3419... Tue Jan 6 10:01:21 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 10:01:21 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> Message-ID: <54ABA461.8060001@...3419...> Why there is no remark for installation of GAMBAS3: Minimum Ubuntu 11.04 required ? Or QT4 required (is in 10.04) I could have saves much time. By the way: I tried 11.04, and I went back to 10.04. Throw your 11.04 to the waste. Then I will not install GAMBAs3 !!!!! I think GAMBAS has the same problem as KBASIC. The developers are thinking of a universal programming language, having bugs, but universal. And the users are suffering from bugs, not needing the 3421. feature, not even thinken about that. And it will have the same result. Users will leave GAMBAS as soon as possible. It is a pity ! I liked GAMBAS 2 as it is, found some bugs or improvment requests, but the programmers are flying above the clouds !!!! best regards Reiner On 01/06/2015 09:50 AM, Fabien Bodard wrote: > 2010.... it's old. really old. You have to make a mixed system by > upgrading just some libs. > Like autoreconf, automake, make, well it's the package named buit > essential. mabe to a 11.04 will be enougth. > > But you can't always expect to read a cd in your tape player you know. > > then gambas3 use qt4 and if i remember well 10.04 is on qt3. There is > many chances that you must stay to gb2. > > 2015-01-06 9:41 GMT+01:00 Reiner Goerlach : >> 3. Reporting a Gambas compilation problem >> >> If you cannot compile and install Gambas(3) successfully, please provide >> the output of the four commands: ./reconf-all, >> >> Response in terminal: >> ***************************************** >> >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all >> ./reconf-all: 7: libtoolize: not found >> Can't exec "libtoolize": No such file or directory at >> /usr/bin/autoreconf line 189. >> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf >> line 189. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> autoreconf: running: aclocal >> autoreconf: configure.ac: tracing >> autoreconf: configure.ac: adding subdirectory main to autoreconf >> autoreconf: Entering directory `main' >> autoreconf: running: aclocal -I m4 --install >> autoreconf: configure.ac: not using Libtool >> autoreconf: running: /usr/bin/autoconf >> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN >> If this token and others are legitimate, please use m4_pattern_allow. >> See the Autoconf documentation. >> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE >> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL >> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC >> autoreconf: /usr/bin/autoconf failed with exit status: 1 >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure >> bash: ./configure: No such file or directory >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# >> ************************************************** >> Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 >> >> What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) >> >> Best regards >> >> Reiner >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From reiner.goerlach at ...3419... Tue Jan 6 10:06:52 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 10:06:52 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> Message-ID: <54ABA5AC.6010108@...3419...> Also your user setting site is buggy. I can tell the list that I want to reciweve partiucular topics only, but where to set the topics ? ?????????????????????????????? Reiner On 01/06/2015 09:50 AM, Fabien Bodard wrote: > 2010.... it's old. really old. You have to make a mixed system by > upgrading just some libs. > Like autoreconf, automake, make, well it's the package named buit > essential. mabe to a 11.04 will be enougth. > > But you can't always expect to read a cd in your tape player you know. > > then gambas3 use qt4 and if i remember well 10.04 is on qt3. There is > many chances that you must stay to gb2. > > 2015-01-06 9:41 GMT+01:00 Reiner Goerlach : >> 3. Reporting a Gambas compilation problem >> >> If you cannot compile and install Gambas(3) successfully, please provide >> the output of the four commands: ./reconf-all, >> >> Response in terminal: >> ***************************************** >> >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all >> ./reconf-all: 7: libtoolize: not found >> Can't exec "libtoolize": No such file or directory at >> /usr/bin/autoreconf line 189. >> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf >> line 189. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> autoreconf: running: aclocal >> autoreconf: configure.ac: tracing >> autoreconf: configure.ac: adding subdirectory main to autoreconf >> autoreconf: Entering directory `main' >> autoreconf: running: aclocal -I m4 --install >> autoreconf: configure.ac: not using Libtool >> autoreconf: running: /usr/bin/autoconf >> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN >> If this token and others are legitimate, please use m4_pattern_allow. >> See the Autoconf documentation. >> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE >> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL >> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC >> autoreconf: /usr/bin/autoconf failed with exit status: 1 >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure >> bash: ./configure: No such file or directory >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# >> ************************************************** >> Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 >> >> What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) >> >> Best regards >> >> Reiner >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From reiner.goerlach at ...3419... Tue Jan 6 10:19:46 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 10:19:46 +0100 Subject: [Gambas-user] image handling In-Reply-To: References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> Message-ID: <54ABA8B2.9070303@...3419...> In GAMBAS2 image handling is possible via streching. But this is not what I want to do. The ration will be modified, this is not comfortable. In TV we have same problem. They have solved it with the versions "letterbox" and "pan & scan" Can you please update GAMBAS2 with those features ? Reiner From gambas at ...2524... Tue Jan 6 10:27:24 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 06 Jan 2015 09:27:24 +0000 Subject: [Gambas-user] Issue 589 in gambas: Interpreter Crash Gambas3 - Calling a library function - BananaPi In-Reply-To: <3-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> <0-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Comment #4 on issue 589 by ScrCarl... at ...626...: Interpreter Crash Gambas3 - Calling a library function - BananaPi https://code.google.com/p/gambas/issues/detail?id=589 Dear Benoit, attached you will find the tar-file of the third party software. "test-usb1608FS.c" contains the call to PMD_Find_Interface().This software is running perfectly on the target system. Additionally I attached libhid-0.2.16.tar.gz if necessary. In advance thanks for your kind support. Attachments: MCCLIBHID.1.62.tgz 1.0 MB libhid-0.2.16.tar.gz 674 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From reiner.goerlach at ...3419... Tue Jan 6 10:27:24 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 10:27:24 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> Message-ID: <54ABAA7C.3090708@...3419...> Ubuntu 2010 is old ? It is the best UBUNTU which they have submitted ! I have tested almost all other versions. They make all old bugs, they make new bugs, they make new features which nobody want, they delete features which everybody likes, it is an impossible situation. And new programmers do not understand what old programmers have developped, etc etc etc.Did you really test newer versions ? And make use of those ? Are you really ready to start a discussion about that ? I think you just compare the numbers of the names, nothing else. The same situation you can see also with Windows. It is not a phenomena of UBUNTU. Reiner On 01/06/2015 09:50 AM, Fabien Bodard wrote: > 2010.... it's old. really old. You have to make a mixed system by > upgrading just some libs. > Like autoreconf, automake, make, well it's the package named buit > essential. mabe to a 11.04 will be enougth. > > But you can't always expect to read a cd in your tape player you know. > > then gambas3 use qt4 and if i remember well 10.04 is on qt3. There is > many chances that you must stay to gb2. > > 2015-01-06 9:41 GMT+01:00 Reiner Goerlach : >> 3. Reporting a Gambas compilation problem >> >> If you cannot compile and install Gambas(3) successfully, please provide >> the output of the four commands: ./reconf-all, >> >> Response in terminal: >> ***************************************** >> >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all >> ./reconf-all: 7: libtoolize: not found >> Can't exec "libtoolize": No such file or directory at >> /usr/bin/autoreconf line 189. >> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf >> line 189. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> autoreconf: running: aclocal >> autoreconf: configure.ac: tracing >> autoreconf: configure.ac: adding subdirectory main to autoreconf >> autoreconf: Entering directory `main' >> autoreconf: running: aclocal -I m4 --install >> autoreconf: configure.ac: not using Libtool >> autoreconf: running: /usr/bin/autoconf >> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN >> If this token and others are legitimate, please use m4_pattern_allow. >> See the Autoconf documentation. >> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE >> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL >> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC >> autoreconf: /usr/bin/autoconf failed with exit status: 1 >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure >> bash: ./configure: No such file or directory >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# >> ************************************************** >> Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 >> >> What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) >> >> Best regards >> >> Reiner >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From taboege at ...626... Tue Jan 6 11:48:21 2015 From: taboege at ...626... (Tobias Boege) Date: Tue, 6 Jan 2015 11:48:21 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54AB9FB7.7000203@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> Message-ID: <20150106104821.GA5752@...2774...> On Tue, 06 Jan 2015, Reiner Goerlach wrote: > 3. Reporting a Gambas compilation problem > > If you cannot compile and install Gambas(3) successfully, please provide > the output of the four commands: ./reconf-all, > > Response in terminal: > ***************************************** > > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all > ./reconf-all: 7: libtoolize: not found > Can't exec "libtoolize": No such file or directory at > /usr/bin/autoreconf line 189. > Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf > line 189. > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal > autoreconf: configure.ac: tracing > autoreconf: configure.ac: adding subdirectory main to autoreconf > autoreconf: Entering directory `main' > autoreconf: running: aclocal -I m4 --install > autoreconf: configure.ac: not using Libtool > autoreconf: running: /usr/bin/autoconf > configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE > configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL > configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC > autoreconf: /usr/bin/autoconf failed with exit status: 1 > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure > bash: ./configure: No such file or directory > root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# > ************************************************** > Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 > > What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) > Install the required build tool versions, which are listed prominently on the wiki page[0] people showed you yesterday. As you can see above, there "libtoolize" cannot be found -- among the possible reasons are that it is not installed, not in your PATH or its naming is different in an older package (unlikely, but I didn't do any research). The other errors *could* mean that your configure is too old, but I'm not sure on this. If so, you can probably find their older equivalents (or just circumvent them -- it's just a configuration script after all) and patch configure.ac accordingly. Also, you should not compile as root. Regards, Tobi [0] http://gambaswiki.org/wiki/install -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Tue Jan 6 12:20:32 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Jan 2015 12:20:32 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54ABAA7C.3090708@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABAA7C.3090708@...3419...> Message-ID: Gambas2 programmers are always here at 95 % and the same for Gambas1. But after many years on gb3 devel we need to choose to jump to this version. A a time we have to make a choice ... we can't continue to use a steam locomotive ;-) even if it doing it's job well. We have the need (at a lower level than windows) to follow the technologies. Logically the gambas core (Main directory) will compile even on old systems. You need just to have an up to date libtool, autoreconf, automake and make and gcc. All this package do not depend on other things than kernel. So you will be able to compile the gambas3 compiler. Now why using qt4 ? Because LTS systems do not maintain qt3... (and in some month/ year qt4 as qt5 is out for many time now) 2015-01-06 10:27 GMT+01:00 Reiner Goerlach : > Ubuntu 2010 is old ? It is the best UBUNTU which they have submitted ! I > have tested almost all other versions. They make all old bugs, they make > new bugs, they make new features which nobody want, they delete features > which everybody likes, it is an impossible situation. And new > programmers do not understand what old programmers have developped, etc > etc etc.Did you really test newer versions ? And make use of those ? Are > you really ready to start a discussion about that ? > I think you just compare the numbers of the names, nothing else. > > The same situation you can see also with Windows. It is not a phenomena > of UBUNTU. > > Reiner > > > > > > On 01/06/2015 09:50 AM, Fabien Bodard wrote: >> 2010.... it's old. really old. You have to make a mixed system by >> upgrading just some libs. >> Like autoreconf, automake, make, well it's the package named buit >> essential. mabe to a 11.04 will be enougth. >> >> But you can't always expect to read a cd in your tape player you know. >> >> then gambas3 use qt4 and if i remember well 10.04 is on qt3. There is >> many chances that you must stay to gb2. >> >> 2015-01-06 9:41 GMT+01:00 Reiner Goerlach : >>> 3. Reporting a Gambas compilation problem >>> >>> If you cannot compile and install Gambas(3) successfully, please provide >>> the output of the four commands: ./reconf-all, >>> >>> Response in terminal: >>> ***************************************** >>> >>> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all >>> ./reconf-all: 7: libtoolize: not found >>> Can't exec "libtoolize": No such file or directory at >>> /usr/bin/autoreconf line 189. >>> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf >>> line 189. >>> autoreconf: Entering directory `.' >>> autoreconf: configure.ac: not using Gettext >>> autoreconf: running: aclocal >>> autoreconf: configure.ac: tracing >>> autoreconf: configure.ac: adding subdirectory main to autoreconf >>> autoreconf: Entering directory `main' >>> autoreconf: running: aclocal -I m4 --install >>> autoreconf: configure.ac: not using Libtool >>> autoreconf: running: /usr/bin/autoconf >>> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN >>> If this token and others are legitimate, please use m4_pattern_allow. >>> See the Autoconf documentation. >>> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE >>> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL >>> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC >>> autoreconf: /usr/bin/autoconf failed with exit status: 1 >>> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure >>> bash: ./configure: No such file or directory >>> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# >>> ************************************************** >>> Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 >>> >>> What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) >>> >>> Best regards >>> >>> Reiner >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming! The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> look and join the conversation now. http://goparallel.sourceforge.net >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From reiner.goerlach at ...3419... Tue Jan 6 12:47:43 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 12:47:43 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <20150106104821.GA5752@...2774...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <20150106104821.GA5752@...2774...> Message-ID: <54ABCB5F.1030506@...3419...> I have followed wikigambas. pkg-config, gcc, g++ automake, autoconf, was installed libtool 2.2... was not installes, authentication warning, installed libffi5 was installed libbz2.so is missing ******************* libz.so is missing ******************** cairo >= 1.6.0 cairo-ft >= 1.6.0 is missing, several other files installed ***************** etc etc etc I think I should forget GAMBAS3 best regards Reiner On 01/06/2015 11:48 AM, Tobias Boege wrote: > On Tue, 06 Jan 2015, Reiner Goerlach wrote: >> 3. Reporting a Gambas compilation problem >> >> If you cannot compile and install Gambas(3) successfully, please provide >> the output of the four commands: ./reconf-all, >> >> Response in terminal: >> ***************************************** >> >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all >> ./reconf-all: 7: libtoolize: not found >> Can't exec "libtoolize": No such file or directory at >> /usr/bin/autoreconf line 189. >> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf >> line 189. >> autoreconf: Entering directory `.' >> autoreconf: configure.ac: not using Gettext >> autoreconf: running: aclocal >> autoreconf: configure.ac: tracing >> autoreconf: configure.ac: adding subdirectory main to autoreconf >> autoreconf: Entering directory `main' >> autoreconf: running: aclocal -I m4 --install >> autoreconf: configure.ac: not using Libtool >> autoreconf: running: /usr/bin/autoconf >> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN >> If this token and others are legitimate, please use m4_pattern_allow. >> See the Autoconf documentation. >> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE >> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL >> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC >> autoreconf: /usr/bin/autoconf failed with exit status: 1 >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure >> bash: ./configure: No such file or directory >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# >> ************************************************** >> Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 >> >> What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) >> > > Install the required build tool versions, which are listed prominently on > the wiki page[0] people showed you yesterday. As you can see above, there > "libtoolize" cannot be found -- among the possible reasons are that it is > not installed, not in your PATH or its naming is different in an older > package (unlikely, but I didn't do any research). > > The other errors *could* mean that your configure is too old, but I'm not > sure on this. If so, you can probably find their older equivalents (or just > circumvent them -- it's just a configuration script after all) and patch > configure.ac accordingly. > > Also, you should not compile as root. > > Regards, > Tobi > > [0] http://gambaswiki.org/wiki/install > From ron at ...1740... Tue Jan 6 12:50:09 2015 From: ron at ...1740... (Ron) Date: Tue, 6 Jan 2015 12:50:09 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54ABCB5F.1030506@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <20150106104821.GA5752@...2774...> <54ABCB5F.1030506@...3419...> Message-ID: Yes please. 2015-01-06 12:47 GMT+01:00 Reiner Goerlach : > I have followed wikigambas. > > pkg-config, gcc, g++ automake, autoconf, was installed > libtool 2.2... was not installes, authentication warning, installed > libffi5 was installed > libbz2.so is missing ******************* > libz.so is missing ******************** > cairo >= 1.6.0 cairo-ft >= 1.6.0 is missing, several other files > installed ***************** > etc etc etc > > I think I should forget GAMBAS3 > > best regards > > Reiner > > > > > On 01/06/2015 11:48 AM, Tobias Boege wrote: > > On Tue, 06 Jan 2015, Reiner Goerlach wrote: > >> 3. Reporting a Gambas compilation problem > >> > >> If you cannot compile and install Gambas(3) successfully, please provide > >> the output of the four commands: ./reconf-all, > >> > >> Response in terminal: > >> ***************************************** > >> > >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all > >> ./reconf-all: 7: libtoolize: not found > >> Can't exec "libtoolize": No such file or directory at > >> /usr/bin/autoreconf line 189. > >> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf > >> line 189. > >> autoreconf: Entering directory `.' > >> autoreconf: configure.ac: not using Gettext > >> autoreconf: running: aclocal > >> autoreconf: configure.ac: tracing > >> autoreconf: configure.ac: adding subdirectory main to autoreconf > >> autoreconf: Entering directory `main' > >> autoreconf: running: aclocal -I m4 --install > >> autoreconf: configure.ac: not using Libtool > >> autoreconf: running: /usr/bin/autoconf > >> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN > >> If this token and others are legitimate, please use > m4_pattern_allow. > >> See the Autoconf documentation. > >> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE > >> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL > >> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC > >> autoreconf: /usr/bin/autoconf failed with exit status: 1 > >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure > >> bash: ./configure: No such file or directory > >> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# > >> ************************************************** > >> Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 > >> > >> What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase > !) > >> > > > > Install the required build tool versions, which are listed prominently on > > the wiki page[0] people showed you yesterday. As you can see above, there > > "libtoolize" cannot be found -- among the possible reasons are that it is > > not installed, not in your PATH or its naming is different in an older > > package (unlikely, but I didn't do any research). > > > > The other errors *could* mean that your configure is too old, but I'm not > > sure on this. If so, you can probably find their older equivalents (or > just > > circumvent them -- it's just a configuration script after all) and patch > > configure.ac accordingly. > > > > Also, you should not compile as root. > > > > Regards, > > Tobi > > > > [0] http://gambaswiki.org/wiki/install > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From reiner.goerlach at ...3419... Tue Jan 6 13:06:35 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 13:06:35 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABAA7C.3090708@...3419...> Message-ID: <54ABCFCB.6050509@...3419...> I didn't understand all points. 1. ... we need to choose to jump ..... I do not agree. Even UBUNTU 10.04 is still supported, in spite of final date 4/2014, and in spite of having 11.04, 12.04, 13.03, 14.04 nd several other in betqween. That is not mandatory not to support GAMBAS2 2.You have tgo follow technology (you mean technique, because we do not make new physical procedures for building chips). You can. But you leave the users alone without support ? They also need to follow the technique ? This is not logical. This is rubbish. And you will loose the users 3. Are you really recommanding libtool, which is not authorized for ubuntu ??? Which kind of policy is that ? 4. qt4 is supported by Ubuntu 10.04. I have no question about that. best regards, and good luck for GAMBAS2 Reiner On 01/06/2015 12:20 PM, Fabien Bodard wrote: > Gambas2 programmers are always here at 95 % and the same for Gambas1. > But after many years on gb3 devel we need to choose to jump to this > version. > A a time we have to make a choice ... we can't continue to use a steam > locomotive ;-) even if it doing it's job well. > > We have the need (at a lower level than windows) to follow the > technologies. Logically the gambas core (Main directory) will compile > even on old > systems. You need just to have an up to date libtool, autoreconf, > automake and make and gcc. All this package do not depend on other > things than kernel. So you will be able to compile the gambas3 > compiler. > > Now why using qt4 ? Because LTS systems do not maintain qt3... (and in > some month/ year qt4 as qt5 is out for many time now) > > 2015-01-06 10:27 GMT+01:00 Reiner Goerlach : >> Ubuntu 2010 is old ? It is the best UBUNTU which they have submitted ! I >> have tested almost all other versions. They make all old bugs, they make >> new bugs, they make new features which nobody want, they delete features >> which everybody likes, it is an impossible situation. And new >> programmers do not understand what old programmers have developped, etc >> etc etc.Did you really test newer versions ? And make use of those ? Are >> you really ready to start a discussion about that ? >> I think you just compare the numbers of the names, nothing else. >> >> The same situation you can see also with Windows. It is not a phenomena >> of UBUNTU. >> >> Reiner >> >> >> >> >> >> On 01/06/2015 09:50 AM, Fabien Bodard wrote: >>> 2010.... it's old. really old. You have to make a mixed system by >>> upgrading just some libs. >>> Like autoreconf, automake, make, well it's the package named buit >>> essential. mabe to a 11.04 will be enougth. >>> >>> But you can't always expect to read a cd in your tape player you know. >>> >>> then gambas3 use qt4 and if i remember well 10.04 is on qt3. There is >>> many chances that you must stay to gb2. >>> >>> 2015-01-06 9:41 GMT+01:00 Reiner Goerlach : >>>> 3. Reporting a Gambas compilation problem >>>> >>>> If you cannot compile and install Gambas(3) successfully, please provide >>>> the output of the four commands: ./reconf-all, >>>> >>>> Response in terminal: >>>> ***************************************** >>>> >>>> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./reconf-all >>>> ./reconf-all: 7: libtoolize: not found >>>> Can't exec "libtoolize": No such file or directory at >>>> /usr/bin/autoreconf line 189. >>>> Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf >>>> line 189. >>>> autoreconf: Entering directory `.' >>>> autoreconf: configure.ac: not using Gettext >>>> autoreconf: running: aclocal >>>> autoreconf: configure.ac: tracing >>>> autoreconf: configure.ac: adding subdirectory main to autoreconf >>>> autoreconf: Entering directory `main' >>>> autoreconf: running: aclocal -I m4 --install >>>> autoreconf: configure.ac: not using Libtool >>>> autoreconf: running: /usr/bin/autoconf >>>> configure:3860: error: possibly undefined macro: AC_LIBTOOL_DLOPEN >>>> If this token and others are legitimate, please use m4_pattern_allow. >>>> See the Autoconf documentation. >>>> configure:3861: error: possibly undefined macro: AC_LIBLTDL_CONVENIENCE >>>> configure:3862: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL >>>> configure:3863: error: possibly undefined macro: AC_DISABLE_STATIC >>>> autoreconf: /usr/bin/autoconf failed with exit status: 1 >>>> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# ./configure >>>> bash: ./configure: No such file or directory >>>> root at ...3420...:/home/reiner/GAMBAS3/gambas3-3.5.4# >>>> ************************************************** >>>> Ubuntu 10.04, qt, Kernel 70, CPU 2xN455 >>>> >>>> What can I do ? (Do not recommend other Ubuntu, or other LINUX, pleaase !) >>>> >>>> Best regards >>>> >>>> Reiner >>>> >>>> ------------------------------------------------------------------------------ >>>> Dive into the World of Parallel Programming! The Go Parallel Website, >>>> sponsored by Intel and developed in partnership with Slashdot Media, is your >>>> hub for all things parallel software development, from weekly thought >>>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>>> look and join the conversation now. http://goparallel.sourceforge.net >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From reiner.goerlach at ...3419... Tue Jan 6 13:09:37 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 13:09:37 +0100 Subject: [Gambas-user] Fwd: GAMBAS2, fullscreen In-Reply-To: <54AA8FD4.5000305@...3419...> References: <54AA8FD4.5000305@...3419...> Message-ID: <54ABD081.6090808@...3419...> -------- Original Message -------- Subject: fullscreen Date: Mon, 05 Jan 2015 14:21:24 +0100 From: Reiner Goerlach To: gambas users CC: reiner.goerlach at ...3419... After switching from Form1 to Form2 and back to Form1, Form1 is still in Fullscreen-Mode. If I do it scond time, Form1 shows still Fullscreen-Mode, but in reality it has turned to maximized mode. Ubuntu 10.04, GAMBAS2, QT, Has somebody experience how to improve ? Please do not recommand to jump to GAMBAS3. Best regards Reiner From gambas at ...1... Tue Jan 6 13:29:39 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Tue, 06 Jan 2015 13:29:39 +0100 Subject: [Gambas-user] Farm In-Reply-To: References: Message-ID: <54ABD533.7030105@...1...> Le 06/01/2015 09:43, Fabien Bodard a ?crit : > Hi Benoit, > > Why there is no checkbox to filter installed software ? > > regards, > It's in the filter list. -- Beno?t Minisini From Karl.Reinl at ...2345... Tue Jan 6 13:30:59 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 06 Jan 2015 13:30:59 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54ABA461.8060001@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABA461.8060001@...3419...> Message-ID: <1420547459.3758.11.camel@...40...> Am Dienstag, den 06.01.2015, 10:01 +0100 schrieb Reiner Goerlach: > Why there is no remark for installation of GAMBAS3: Minimum Ubuntu 11.04 > required ? Or QT4 required (is in 10.04) > I could have saves much time. > Salut Reiner, because it's not like that. I have on a VM Box a backup from my 10.04.4 LTS (which I left in 08.2013 for 12.04.2 LTS) and on it I have a running gambas3 3.4.90 r5771. An update to rev 6813 fails (will send the logs to Beno?t) But I saw a new mail where you re-ask for help, please send me your project (or a demo which produce the behave) -- Amicalement Charlie From karl.reinl at ...9... Tue Jan 6 13:41:01 2015 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 06 Jan 2015 13:41:01 +0100 Subject: [Gambas-user] gambas3 3.6.90 rev 6813 Message-ID: <1420548061.3758.17.camel@...40...> Salut Beno?t, attached the build scripts made on a full updated Ubuntu 10.04.5 LTS. I also attached a home made sysinfo.log, because I can't start the IDE (made an uninstall and made from scratch. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: sysInfo.log Type: text/x-log Size: 1181 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3on10.04.tar.bz2 Type: application/x-bzip-compressed-tar Size: 14528 bytes Desc: not available URL: From ualex73 at ...626... Tue Jan 6 13:57:05 2015 From: ualex73 at ...626... (Alexie) Date: Tue, 6 Jan 2015 13:57:05 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <1420547459.3758.11.camel@...40...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABA461.8060001@...3419...> <1420547459.3758.11.camel@...40...> Message-ID: Hi Reiner, When i look at the supported Ubuntu releases, only 10.04 SERVER is still supported. The desktop is already out of support for 2 years: https://wiki.ubuntu.com/Releases The 2.24.0 has been released on 9-Apr-2012, almost 3 years ago now ... Unless a Gambas developer is willing to fix the problem on your gambas2 or you do it yourself, it won't be fixed (it wasn't a problem for the last few years, so should be ok to live with it?). If you don't want to upgrade Ubuntu/Gambas, it is your choice ... Also you can switch to any other programming environment, all up to you. Please bare in mind Gambas is open source and we are doing our test in our OWN SPARE TIME to help other people with gambas with coding, compiling and fixes. Lets keep it friendly and (semi) professional. Regards, Alex 2015-01-06 13:30 GMT+01:00 Charlie Reinl : > Am Dienstag, den 06.01.2015, 10:01 +0100 schrieb Reiner Goerlach: > > Why there is no remark for installation of GAMBAS3: Minimum Ubuntu 11.04 > > required ? Or QT4 required (is in 10.04) > > I could have saves much time. > > > > Salut Reiner, > > because it's not like that. I have on a VM Box a backup from my 10.04.4 > LTS (which I left in 08.2013 for 12.04.2 LTS) and on it I have a running > gambas3 3.4.90 r5771. > > An update to rev 6813 fails (will send the logs to Beno?t) > > But I saw a new mail where you re-ask for help, please send me your > project (or a demo which produce the behave) > > -- > Amicalement > Charlie > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From reiner.goerlach at ...3419... Tue Jan 6 13:59:03 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 13:59:03 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <1420547459.3758.11.camel@...40...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABA461.8060001@...3419...> <1420547459.3758.11.camel@...40...> Message-ID: <54ABDC17.2050609@...3419...> Here is my Demo. It behaves a little bit different from my project, but in principle it has the same problem. There are 2 Forms, both with Fullscreen mode. I switch from Fmain to Form1, and back, and forth, and back, and forth and back. Finally FMain doesn't have Fullscreen mode, even if it shows fullscreen true in edit mode. Reiner On 01/06/2015 01:30 PM, Charlie Reinl wrote: > Am Dienstag, den 06.01.2015, 10:01 +0100 schrieb Reiner Goerlach: >> Why there is no remark for installation of GAMBAS3: Minimum Ubuntu 11.04 >> required ? Or QT4 required (is in 10.04) >> I could have saves much time. >> > > Salut Reiner, > > because it's not like that. I have on a VM Box a backup from my 10.04.4 > LTS (which I left in 08.2013 for 12.04.2 LTS) and on it I have a running > gambas3 3.4.90 r5771. > > An update to rev 6813 fails (will send the logs to Beno?t) > > But I saw a new mail where you re-ask for help, please send me your > project (or a demo which produce the behave) > -------------- next part -------------- A non-text attachment was scrubbed... Name: FMain.class Type: application/java-vm Size: 200 bytes Desc: not available URL: -------------- next part -------------- # Gambas Form File 2.0 { Form Form MoveScaled(0,0,146.2857,85.7143) Text = ("") FullScreen = True { Button1 Button MoveScaled(6,21,17,7) Text = ("OS") } { Button2 Button MoveScaled(14,8,16,8) Text = ("to Form1") } } -------------- next part -------------- A non-text attachment was scrubbed... Name: Form1.class Type: application/java-vm Size: 116 bytes Desc: not available URL: -------------- next part -------------- # Gambas Form File 2.0 { Form Form MoveScaled(0,0,146.2857,85.7143) Text = ("") FullScreen = True { Button1 Button MoveScaled(16,14,16,9) Text = ("ESC, BACK") } } From shordi at ...626... Tue Jan 6 14:20:53 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 6 Jan 2015 14:20:53 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more Message-ID: Hi I used to use this sentence in SQLite databases in order to obtain fields information rs = hc.exec("PRAGMA table_info(`" & mytablename & "`)") It worked fine. I used it because the slow of gambas database objects when are used in loops. I haven't used it since a don't-know-how-much time and now I've seen that it doesn't work any more. It's a bug or simply PRAGMA sentences are not longer supported? Regards From gambas at ...1... Tue Jan 6 14:43:59 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Tue, 06 Jan 2015 14:43:59 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: References: Message-ID: <54ABE69F.9080005@...1...> Le 06/01/2015 14:20, Jorge Carri?n a ?crit : > Hi > I used to use this sentence in SQLite databases in order to obtain fields > information > > > rs = hc.exec("PRAGMA table_info(`" & mytablename & "`)") > > It worked fine. I used it because the slow of gambas database objects when > are used in loops. I'm curious about how you wrote your loop... > > I haven't used it since a don't-know-how-much time and now I've seen that > it doesn't work any more. > > It's a bug or simply PRAGMA sentences are not longer supported? > > Regards No idea. When you use "Exec", the request is directly sent to the database client library. What does not work? -- Beno?t Minisini From reiner.goerlach at ...3419... Tue Jan 6 14:50:58 2015 From: reiner.goerlach at ...3419... (Reiner Goerlach) Date: Tue, 06 Jan 2015 14:50:58 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABA461.8060001@...3419...> <1420547459.3758.11.camel@...40...> Message-ID: <54ABE842.2010300@...3419...> Hi Alex, I agree with friendly and (semi)professional. But you should add also a keeping of certain amount of will to help. I do not understand your argument about wiki.ubuntu.com I make use of UBUNTU 10.04 every day, and every second day I get an Update with security bug fixes and also other modifications. Is that no support ???? What is 2.24 ????? It wasn't a problem for the last 10 years, that is a killing argument "we did it always so". I can take that upside down, and say : Which kind of childish programs did you work on, if you didn't realize that bug ? I agree, if nobody will fix the (small or large) problem, I have to live with it, or I have to leave GAMBAS as I have left KBASIC. (KBASIC after very much efforts, discussions, but finally and with no return, left, including Q4Basic, because these are the same developers) In principle, it is also my 2nd or 3rd attempt with GAMBAS. May be I will spend another 2 manweeks for investigation. And I hope for serious cooperation with the people here. And this forum is for such a cooperation ? I thought so. best regards Reiner On 01/06/2015 01:57 PM, Alexie wrote: > Hi Reiner, > > When i look at the supported Ubuntu releases, only 10.04 SERVER is still > supported. The desktop is already out of support for 2 years: > https://wiki.ubuntu.com/Releases > > The 2.24.0 has been released on 9-Apr-2012, almost 3 years ago now ... > > Unless a Gambas developer is willing to fix the problem on your gambas2 or > you do it yourself, it won't be fixed (it wasn't a problem for the last few > years, so should be ok to live with it?). > > If you don't want to upgrade Ubuntu/Gambas, it is your choice ... Also you > can switch to any other programming environment, all up to you. > > Please bare in mind Gambas is open source and we are doing our test in our > OWN SPARE TIME to help other people with gambas with coding, compiling and > fixes. Lets keep it friendly and (semi) professional. > > Regards, > Alex > > 2015-01-06 13:30 GMT+01:00 Charlie Reinl : > >> Am Dienstag, den 06.01.2015, 10:01 +0100 schrieb Reiner Goerlach: >>> Why there is no remark for installation of GAMBAS3: Minimum Ubuntu 11.04 >>> required ? Or QT4 required (is in 10.04) >>> I could have saves much time. >>> >> >> Salut Reiner, >> >> because it's not like that. I have on a VM Box a backup from my 10.04.4 >> LTS (which I left in 08.2013 for 12.04.2 LTS) and on it I have a running >> gambas3 3.4.90 r5771. >> >> An update to rev 6813 fails (will send the logs to Beno?t) >> >> But I saw a new mail where you re-ask for help, please send me your >> project (or a demo which produce the behave) >> >> -- >> Amicalement >> Charlie >> >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Jan 6 15:20:39 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Jan 2015 15:20:39 +0100 Subject: [Gambas-user] Farm In-Reply-To: <54ABD533.7030105@...1...> References: <54ABD533.7030105@...1...> Message-ID: oups sorry... 2015-01-06 13:29 GMT+01:00 Beno?t Minisini : > Le 06/01/2015 09:43, Fabien Bodard a ?crit : >> Hi Benoit, >> >> Why there is no checkbox to filter installed software ? >> >> regards, >> > > It's in the filter list. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From ron at ...1740... Tue Jan 6 15:25:37 2015 From: ron at ...1740... (Ron) Date: Tue, 6 Jan 2015 15:25:37 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54ABE842.2010300@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABA461.8060001@...3419...> <1420547459.3758.11.camel@...40...> <54ABE842.2010300@...3419...> Message-ID: You get the updates until April 2015, better start taking advises seriously. It's April before you know it. ;P 2015-01-06 14:50 GMT+01:00 Reiner Goerlach : > Hi Alex, > > I agree with friendly and (semi)professional. But you should add also a > keeping of certain amount of will to help. > I do not understand your argument about wiki.ubuntu.com > I make use of UBUNTU 10.04 every day, and every second day I get an > Update with security bug fixes and also other modifications. Is that no > support ???? > What is 2.24 ????? > It wasn't a problem for the last 10 years, that is a killing argument > "we did it always so". I can take that upside down, and say : Which kind > of childish programs did you work on, if you didn't realize that bug ? > I agree, if nobody will fix the (small or large) problem, I have to live > with it, or I have to leave GAMBAS as I have left KBASIC. (KBASIC after > very much efforts, discussions, but finally and with no return, left, > including Q4Basic, because these are the same developers) > In principle, it is also my 2nd or 3rd attempt with GAMBAS. May be I > will spend another 2 manweeks for investigation. > > And I hope for serious cooperation with the people here. And this forum > is for such a cooperation ? I thought so. > > best regards > > Reiner > > > > On 01/06/2015 01:57 PM, Alexie wrote: > > Hi Reiner, > > > > When i look at the supported Ubuntu releases, only 10.04 SERVER is still > > supported. The desktop is already out of support for 2 years: > > https://wiki.ubuntu.com/Releases > > > > The 2.24.0 has been released on 9-Apr-2012, almost 3 years ago now ... > > > > Unless a Gambas developer is willing to fix the problem on your gambas2 > or > > you do it yourself, it won't be fixed (it wasn't a problem for the last > few > > years, so should be ok to live with it?). > > > > If you don't want to upgrade Ubuntu/Gambas, it is your choice ... Also > you > > can switch to any other programming environment, all up to you. > > > > Please bare in mind Gambas is open source and we are doing our test in > our > > OWN SPARE TIME to help other people with gambas with coding, compiling > and > > fixes. Lets keep it friendly and (semi) professional. > > > > Regards, > > Alex > > > > 2015-01-06 13:30 GMT+01:00 Charlie Reinl : > > > >> Am Dienstag, den 06.01.2015, 10:01 +0100 schrieb Reiner Goerlach: > >>> Why there is no remark for installation of GAMBAS3: Minimum Ubuntu > 11.04 > >>> required ? Or QT4 required (is in 10.04) > >>> I could have saves much time. > >>> > >> > >> Salut Reiner, > >> > >> because it's not like that. I have on a VM Box a backup from my 10.04.4 > >> LTS (which I left in 08.2013 for 12.04.2 LTS) and on it I have a running > >> gambas3 3.4.90 r5771. > >> > >> An update to rev 6813 fails (will send the logs to Beno?t) > >> > >> But I saw a new mail where you re-ask for help, please send me your > >> project (or a demo which produce the behave) > >> > >> -- > >> Amicalement > >> Charlie > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Dive into the World of Parallel Programming! The Go Parallel Website, > >> sponsored by Intel and developed in partnership with Slashdot Media, is > >> your > >> hub for all things parallel software development, from weekly thought > >> leadership blogs to news, videos, case studies, tutorials and more. > Take a > >> look and join the conversation now. http://goparallel.sourceforge.net > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming! The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is > your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take > a > > look and join the conversation now. http://goparallel.sourceforge.net > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Jan 6 15:27:49 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Jan 2015 15:27:49 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54ABE842.2010300@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABA461.8060001@...3419...> <1420547459.3758.11.camel@...40...> <54ABE842.2010300@...3419...> Message-ID: sometime bugs comme with system updates... 2015-01-06 14:50 GMT+01:00 Reiner Goerlach : > Hi Alex, > > I agree with friendly and (semi)professional. But you should add also a > keeping of certain amount of will to help. > I do not understand your argument about wiki.ubuntu.com > I make use of UBUNTU 10.04 every day, and every second day I get an > Update with security bug fixes and also other modifications. Is that no > support ???? > What is 2.24 ????? > It wasn't a problem for the last 10 years, that is a killing argument > "we did it always so". I can take that upside down, and say : Which kind > of childish programs did you work on, if you didn't realize that bug ? > I agree, if nobody will fix the (small or large) problem, I have to live > with it, or I have to leave GAMBAS as I have left KBASIC. (KBASIC after > very much efforts, discussions, but finally and with no return, left, > including Q4Basic, because these are the same developers) > In principle, it is also my 2nd or 3rd attempt with GAMBAS. May be I > will spend another 2 manweeks for investigation. > > And I hope for serious cooperation with the people here. And this forum > is for such a cooperation ? I thought so. > > best regards > > Reiner > > > > On 01/06/2015 01:57 PM, Alexie wrote: >> Hi Reiner, >> >> When i look at the supported Ubuntu releases, only 10.04 SERVER is still >> supported. The desktop is already out of support for 2 years: >> https://wiki.ubuntu.com/Releases >> >> The 2.24.0 has been released on 9-Apr-2012, almost 3 years ago now ... >> >> Unless a Gambas developer is willing to fix the problem on your gambas2 or >> you do it yourself, it won't be fixed (it wasn't a problem for the last few >> years, so should be ok to live with it?). >> >> If you don't want to upgrade Ubuntu/Gambas, it is your choice ... Also you >> can switch to any other programming environment, all up to you. >> >> Please bare in mind Gambas is open source and we are doing our test in our >> OWN SPARE TIME to help other people with gambas with coding, compiling and >> fixes. Lets keep it friendly and (semi) professional. >> >> Regards, >> Alex >> >> 2015-01-06 13:30 GMT+01:00 Charlie Reinl : >> >>> Am Dienstag, den 06.01.2015, 10:01 +0100 schrieb Reiner Goerlach: >>>> Why there is no remark for installation of GAMBAS3: Minimum Ubuntu 11.04 >>>> required ? Or QT4 required (is in 10.04) >>>> I could have saves much time. >>>> >>> >>> Salut Reiner, >>> >>> because it's not like that. I have on a VM Box a backup from my 10.04.4 >>> LTS (which I left in 08.2013 for 12.04.2 LTS) and on it I have a running >>> gambas3 3.4.90 r5771. >>> >>> An update to rev 6813 fails (will send the logs to Beno?t) >>> >>> But I saw a new mail where you re-ask for help, please send me your >>> project (or a demo which produce the behave) >>> >>> -- >>> Amicalement >>> Charlie >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Dive into the World of Parallel Programming! The Go Parallel Website, >>> sponsored by Intel and developed in partnership with Slashdot Media, is >>> your >>> hub for all things parallel software development, from weekly thought >>> leadership blogs to news, videos, case studies, tutorials and more. Take a >>> look and join the conversation now. http://goparallel.sourceforge.net >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Tue Jan 6 15:32:34 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 6 Jan 2015 15:32:34 +0100 Subject: [Gambas-user] gambas3 3.6.90 rev 6813 In-Reply-To: <1420548061.3758.17.camel@...40...> References: <1420548061.3758.17.camel@...40...> Message-ID: /usr/bin/moc-qt4 -o cprinter_moc.cpp cprinter.h cprinter.h:0: Warning: No relevant classes found. No output generated. CXX gb_qt4_la-cprinter.lo /usr/bin/moc-qt4 -o csvgimage_moc.cpp csvgimage.h csvgimage.h:0: Warning: No relevant classes found. No output generated. CXX gb_qt4_la-csvgimage.lo cprinter.cpp: In function ?void Printer_NumCopies(void*, void*)?: cprinter.cpp:367: error: ?class QPrinter? has no member named ?supportsMultipleCopies? cprinter.cpp:370: error: ?class QPrinter? has no member named ?copyCount? cprinter.cpp:372: error: ?class QPrinter? has no member named ?setCopyCount? make[5]: *** [gb_qt4_la-cprinter.lo] Fehler 1 make[5]: *** Warte auf noch nicht beendete Prozesse... make[5]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4/src' make[4]: *** [all-recursive] Fehler 1 make[4]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4/src' make[3]: *** [all-recursive] Fehler 1 make[3]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4' make[2]: *** [all] Fehler 2 make[2]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4' make[1]: *** [all-recursive] Fehler 1 make[1]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30' make: *** [all] Fehler 2 qt4 is out of date ? 2015-01-06 13:41 GMT+01:00 Karl Reinl : > Salut Beno?t, > > attached the build scripts made on a full updated Ubuntu 10.04.5 LTS. > I also attached a home made sysinfo.log, because I can't start the IDE > (made an uninstall and made from scratch. > > > -- > Amicalement > Charlie > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From gambas at ...1... Tue Jan 6 16:06:53 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Tue, 06 Jan 2015 16:06:53 +0100 Subject: [Gambas-user] gambas3 3.6.90 rev 6813 In-Reply-To: References: <1420548061.3758.17.camel@...40...> Message-ID: <54ABFA0D.1040100@...1...> Le 06/01/2015 15:32, Fabien Bodard a ?crit : > /usr/bin/moc-qt4 -o cprinter_moc.cpp cprinter.h > cprinter.h:0: Warning: No relevant classes found. No output generated. > CXX gb_qt4_la-cprinter.lo > /usr/bin/moc-qt4 -o csvgimage_moc.cpp csvgimage.h > csvgimage.h:0: Warning: No relevant classes found. No output generated. > CXX gb_qt4_la-csvgimage.lo > cprinter.cpp: In function ?void Printer_NumCopies(void*, void*)?: > cprinter.cpp:367: error: ?class QPrinter? has no member named > ?supportsMultipleCopies? > cprinter.cpp:370: error: ?class QPrinter? has no member named ?copyCount? > cprinter.cpp:372: error: ?class QPrinter? has no member named ?setCopyCount? > make[5]: *** [gb_qt4_la-cprinter.lo] Fehler 1 > make[5]: *** Warte auf noch nicht beendete Prozesse... > make[5]: Verlasse Verzeichnis > '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4/src' > make[4]: *** [all-recursive] Fehler 1 > make[4]: Verlasse Verzeichnis > '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4/src' > make[3]: *** [all-recursive] Fehler 1 > make[3]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4' > make[2]: *** [all] Fehler 2 > make[2]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30/gb.qt4' > make[1]: *** [all-recursive] Fehler 1 > make[1]: Verlasse Verzeichnis '/home/charlie/src/gambas/3/gambas-svn30' > make: *** [all] Fehler 2 > > qt4 is out of date ? > It's a Qt4 method they didn't implement in earlier versions. -- Beno?t Minisini From gambas at ...1... Tue Jan 6 16:07:22 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Tue, 06 Jan 2015 16:07:22 +0100 Subject: [Gambas-user] gambas3 3.6.90 rev 6813 In-Reply-To: <1420548061.3758.17.camel@...40...> References: <1420548061.3758.17.camel@...40...> Message-ID: <54ABFA2A.2020807@...1...> Le 06/01/2015 13:41, Karl Reinl a ?crit : > Salut Beno?t, > > attached the build scripts made on a full updated Ubuntu 10.04.5 LTS. > I also attached a home made sysinfo.log, because I can't start the IDE > (made an uninstall and made from scratch. > Can you test with revision #6814? -- Beno?t Minisini From shordi at ...626... Tue Jan 6 16:27:01 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 6 Jan 2015 16:27:01 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: <54ABE69F.9080005@...1...> References: <54ABE69F.9080005@...1...> Message-ID: >I'm curious about how you wrote your loop... I'll try to find the old code where I did those loops. I think I should have a sample in some old backup. >No idea. When you use "Exec", the request is directly sent to the >database client library. What does not work? That instruction exctact from database a info fields result, similar to Mysql's "show columns from tablename" sentence. The result has a line for each Field with information, but now the result is not available and the fields.count is 0. Other software like sqliteman application show the result without problems... like Gambas used to did. Attach image of sqliteman screen -------------- next part -------------- A non-text attachment was scrubbed... Name: pragmatableinfo.png Type: image/png Size: 96012 bytes Desc: not available URL: From karl.reinl at ...9... Tue Jan 6 16:58:37 2015 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 06 Jan 2015 16:58:37 +0100 Subject: [Gambas-user] gambas3 3.6.90 rev 6813 In-Reply-To: <54ABFA2A.2020807@...1...> References: <1420548061.3758.17.camel@...40...> <54ABFA2A.2020807@...1...> Message-ID: <1420559917.3758.18.camel@...40...> Am Dienstag, den 06.01.2015, 16:07 +0100 schrieb Beno?t Minisini: > Le 06/01/2015 13:41, Karl Reinl a ?crit : > > Salut Beno?t, > > > > attached the build scripts made on a full updated Ubuntu 10.04.5 LTS. > > I also attached a home made sysinfo.log, because I can't start the IDE > > (made an uninstall and made from scratch. > > > > Can you test with revision #6814? > Yes, now it work again. -- Amicalement Charlie From shordi at ...626... Tue Jan 6 17:29:11 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 6 Jan 2015 17:29:11 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: References: <54ABE69F.9080005@...1...> Message-ID: I find the old code that shows the slowly of database objects in loops. Just trying to get de length of all fields of all tables in a database: For Each tbl In hc.Tables Print tbl.Name For Each fld In tbl.fields awidths.Add(fld.Length) Next Next I try it with two databases: A SQLite database with 16 tables and 127 fields. A MySQL database with 6 tab?es amd 82 fields. The result is attahed in two images. With SQLite is not a bad result, but in MySQL is a disaster... It seems like gambas has to "travel thru the web" in order to get the information of each field of each table... I use, then, the "show columns for tablename" instruction in MySQL... and the PRAGMA fields_info in SQLite that does the work at once... but PRAGMA doesn't work any more. Looking this test is not a big issue: I can use different way to each database type, but PRAGMA is a must-work on SQLite, I think. Regards 2015-01-06 16:27 GMT+01:00 Jorge Carri?n : > >I'm curious about how you wrote your loop... > > I'll try to find the old code where I did those loops. I think I should > have a sample in some old backup. > > >No idea. When you use "Exec", the request is directly sent to the > >database client library. What does not work? > > That instruction exctact from database a info fields result, similar to > Mysql's "show columns from tablename" sentence. > > The result has a line for each Field with information, but now the result > is not available and the fields.count is 0. > > Other software like sqliteman application show the result without > problems... like Gambas used to did. > > Attach image of sqliteman screen > > -------------- next part -------------- A non-text attachment was scrubbed... Name: mysql.png Type: image/png Size: 107793 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sqlite.png Type: image/png Size: 104950 bytes Desc: not available URL: From gambas at ...1... Tue Jan 6 17:43:38 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Tue, 06 Jan 2015 17:43:38 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: References: <54ABE69F.9080005@...1...> Message-ID: <54AC10BA.5090801@...1...> Le 06/01/2015 17:29, Jorge Carri?n a ?crit : > I find the old code that shows the slowly of database objects in loops. > Just trying to get de length of all fields of all tables in a database: > > For Each tbl In hc.Tables > Print tbl.Name > For Each fld In tbl.fields > awidths.Add(fld.Length) > Next > Next > > I try it with two databases: > > A SQLite database with 16 tables and 127 fields. > A MySQL database with 6 tab?es amd 82 fields. > > The result is attahed in two images. > > With SQLite is not a bad result, but in MySQL is a disaster... > It seems like gambas has to "travel thru the web" in order to get the > information of each field of each table... > I use, then, the "show columns for tablename" instruction in MySQL... and > the PRAGMA fields_info in SQLite that does the work at once... but PRAGMA > doesn't work any more. > Looking this test is not a big issue: I can use different way to each > database type, but PRAGMA is a must-work on SQLite, I think. > > Regards > Metadata information is not part of the SQL "standard", so each database behaves differently. As for the use of PRAGMA, it never worked before. It's a more global change that you will get in the next revision. Regards, -- Beno?t Minisini From t.lee.davidson at ...626... Tue Jan 6 18:23:26 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 06 Jan 2015 12:23:26 -0500 Subject: [Gambas-user] Cannot log in to the Wiki Message-ID: <54AC1A0E.5020801@...626...> Submitting the login form only clears the fields and does not log me in. Knowing that Opera sometimes has issues with cookies, I tried also with Firefox -- same result. An attempt to re-register shows that my login, 'tldavidson', is already in use. Have Wiki passwords been reset? -- Lee __________ "Artificial Intelligence is no match for natural stupidity." From taboege at ...626... Tue Jan 6 18:24:42 2015 From: taboege at ...626... (Tobias Boege) Date: Tue, 6 Jan 2015 18:24:42 +0100 Subject: [Gambas-user] Cannot log in to the Wiki In-Reply-To: <54AC1A0E.5020801@...626...> References: <54AC1A0E.5020801@...626...> Message-ID: <20150106172442.GF5752@...2774...> On Tue, 06 Jan 2015, T Lee Davidson wrote: > Submitting the login form only clears the fields and does not log me in. > > Knowing that Opera sometimes has issues with cookies, I tried also with Firefox -- same result. > > An attempt to re-register shows that my login, 'tldavidson', is already in use. Have Wiki passwords been reset? > Same problem here but try clicking the OK button instead of hitting Return in the textbox. That got me logged in. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From Karl.Reinl at ...2345... Tue Jan 6 18:48:10 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 06 Jan 2015 18:48:10 +0100 Subject: [Gambas-user] fullscreen In-Reply-To: <54ABDC17.2050609@...3419...> References: <54AA8FD4.5000305@...3419...> <1420482567.3895.9.camel@...40...> <54AAF3AB.60906@...3419...> <1420496015.5077.27.camel@...40...> <54AB9FB7.7000203@...3419...> <54ABA461.8060001@...3419...> <1420547459.3758.11.camel@...40...> <54ABDC17.2050609@...3419...> Message-ID: <1420566490.3758.40.camel@...40...> Am Dienstag, den 06.01.2015, 13:59 +0100 schrieb Reiner Goerlach: > Here is my Demo. It behaves a little bit different from my project, but > in principle it has the same problem. There are 2 Forms, both with > Fullscreen mode. > I switch from Fmain to Form1, and back, and forth, and back, and forth > and back. Finally FMain doesn't have Fullscreen mode, even if it shows > fullscreen true in edit mode. > > Reiner > > On 01/06/2015 01:30 PM, Charlie Reinl wrote: > > Am Dienstag, den 06.01.2015, 10:01 +0100 schrieb Reiner Goerlach: > >> Why there is no remark for installation of GAMBAS3: Minimum Ubuntu 11.04 > >> required ? Or QT4 required (is in 10.04) > >> I could have saves much time. > >> > > > > Salut Reiner, > > > > because it's not like that. I have on a VM Box a backup from my 10.04.4 > > LTS (which I left in 08.2013 for 12.04.2 LTS) and on it I have a running > > gambas3 3.4.90 r5771. > > > > An update to rev 6813 fails (will send the logs to Beno?t) > > > > But I saw a new mail where you re-ask for help, please send me your > > project (or a demo which produce the behave) > > Salut Reiner, first, the svn version with rev 6814 can be compiled on a 10.04.4 LTS. And here your demo project back. And it is that the main window looses its FullScreen settings after hide, BUT remembers 1* after return, don't do it after the second call. FMain.Button2_Click.24: ----------------------------------------- FMain.Button2_Click.25: before Hide FMain.FullScreen=True FMain.Button2_Click.27: after Hide FMain.FullScreen=True Form1.Button1_Click.6: ################################### Form1.Button1_Click.7: before Raise FMain.FullScreen=False Form1.Button1_Click.9: after Raise FMain.FullScreen=False FMain.Button2_Click.24: ----------------------------------------- FMain.Button2_Click.25: before Hide FMain.FullScreen=True FMain.Button2_Click.27: after Hide FMain.FullScreen=True Form1.Button1_Click.6: ################################### Form1.Button1_Click.7: before Raise FMain.FullScreen=False Form1.Button1_Click.9: after Raise FMain.FullScreen=False FMain.Button2_Click.24: ----------------------------------------- FMain.Button2_Click.25: before Hide FMain.FullScreen=False FMain.Button2_Click.27: after Hide FMain.FullScreen=False Form1.Button1_Click.6: ################################### Form1.Button1_Click.7: before Raise FMain.FullScreen=False Form1.Button1_Click.9: after Raise FMain.FullScreen=False I made you a workaround, perhaps you can live with it. In the IDE, Ctrl+Alt+A created a project copy so you can start after unpack. I made some remarks. My gambas2 is 2.24 rev.5049 -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Reiners_Project-0.0.1.tar.gz Type: application/x-compressed-tar Size: 8320 bytes Desc: not available URL: From t.lee.davidson at ...626... Tue Jan 6 18:51:39 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 06 Jan 2015 12:51:39 -0500 Subject: [Gambas-user] Cannot log in to the Wiki In-Reply-To: <20150106172442.GF5752@...2774...> References: <54AC1A0E.5020801@...626...> <20150106172442.GF5752@...2774...> Message-ID: <54AC20AB.3050606@...626...> On 01/06/2015 12:24 PM, Tobias Boege wrote: > On Tue, 06 Jan 2015, T Lee Davidson wrote: >> Submitting the login form only clears the fields and does not log me in. >> >> Knowing that Opera sometimes has issues with cookies, I tried also with Firefox -- same result. >> >> An attempt to re-register shows that my login, 'tldavidson', is already in use. Have Wiki passwords been reset? >> > > Same problem here but try clicking the OK button instead of hitting Return > in the textbox. That got me logged in. > > Regards, > Tobi > Yep, that works. Thanks Tobi. Lee __________ "Artificial Intelligence is no match for natural stupidity." From shordi at ...626... Tue Jan 6 19:16:37 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 6 Jan 2015 19:16:37 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: <54AC10BA.5090801@...1...> References: <54ABE69F.9080005@...1...> <54AC10BA.5090801@...1...> Message-ID: >As for the use of PRAGMA, it never worked before. But it did! I had a application that uses to PRAGMA sentences: the PRAGMA table_info and the PRAGMA Foreign_keys = ON. I tested it time ago, don't know how much time or wich version of gambas or SQLite, sorry, but it worked... (perhaps Gambas2...) >It's a more global change that you will get in the next revision. Fine! Thanks Benoit. Regards 2015-01-06 17:43 GMT+01:00 Beno?t Minisini : > Le 06/01/2015 17:29, Jorge Carri?n a ?crit : > > I find the old code that shows the slowly of database objects in loops. > > Just trying to get de length of all fields of all tables in a database: > > > > For Each tbl In hc.Tables > > Print tbl.Name > > For Each fld In tbl.fields > > awidths.Add(fld.Length) > > Next > > Next > > > > I try it with two databases: > > > > A SQLite database with 16 tables and 127 fields. > > A MySQL database with 6 tab?es amd 82 fields. > > > > The result is attahed in two images. > > > > With SQLite is not a bad result, but in MySQL is a disaster... > > It seems like gambas has to "travel thru the web" in order to get the > > information of each field of each table... > > I use, then, the "show columns for tablename" instruction in MySQL... and > > the PRAGMA fields_info in SQLite that does the work at once... but PRAGMA > > doesn't work any more. > > Looking this test is not a big issue: I can use different way to each > > database type, but PRAGMA is a must-work on SQLite, I think. > > > > Regards > > > > Metadata information is not part of the SQL "standard", so each database > behaves differently. > > As for the use of PRAGMA, it never worked before. It's a more global > change that you will get in the next revision. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Tue Jan 6 19:20:40 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Tue, 06 Jan 2015 19:20:40 +0100 Subject: [Gambas-user] Cannot log in to the Wiki In-Reply-To: <54AC20AB.3050606@...626...> References: <54AC1A0E.5020801@...626...> <20150106172442.GF5752@...2774...> <54AC20AB.3050606@...626...> Message-ID: <54AC2778.7040805@...1...> Le 06/01/2015 18:51, T Lee Davidson a ?crit : > On 01/06/2015 12:24 PM, Tobias Boege wrote: >> On Tue, 06 Jan 2015, T Lee Davidson wrote: >>> Submitting the login form only clears the fields and does not log me in. >>> >>> Knowing that Opera sometimes has issues with cookies, I tried also with Firefox -- same result. >>> >>> An attempt to re-register shows that my login, 'tldavidson', is already in use. Have Wiki passwords been reset? >>> >> >> Same problem here but try clicking the OK button instead of hitting Return >> in the textbox. That got me logged in. >> >> Regards, >> Tobi >> > > Yep, that works. Thanks Tobi. > > > Lee > __________ > It should be fixed now. I had to find a trick to choose the default submit button of a form without using javascript... -- Beno?t Minisini From shordi at ...626... Tue Jan 6 19:28:49 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 6 Jan 2015 19:28:49 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: References: <54ABE69F.9080005@...1...> <54AC10BA.5090801@...1...> Message-ID: I've tested "PRAGMA foreign_keys=ON" and it works fine... I can live without "PRAGMA fields_info". Gambas rules!! Regards 2015-01-06 19:16 GMT+01:00 Jorge Carri?n : > >As for the use of PRAGMA, it never worked before. > > But it did! I had a application that uses to PRAGMA sentences: the PRAGMA > table_info and the PRAGMA Foreign_keys = ON. I tested it time ago, don't > know how much time or wich version of gambas or SQLite, sorry, but it > worked... (perhaps Gambas2...) > > >It's a more global change that you will get in the next revision. > > Fine! Thanks Benoit. > > Regards > > > > 2015-01-06 17:43 GMT+01:00 Beno?t Minisini : > >> Le 06/01/2015 17:29, Jorge Carri?n a ?crit : >> > I find the old code that shows the slowly of database objects in loops. >> > Just trying to get de length of all fields of all tables in a database: >> > >> > For Each tbl In hc.Tables >> > Print tbl.Name >> > For Each fld In tbl.fields >> > awidths.Add(fld.Length) >> > Next >> > Next >> > >> > I try it with two databases: >> > >> > A SQLite database with 16 tables and 127 fields. >> > A MySQL database with 6 tab?es amd 82 fields. >> > >> > The result is attahed in two images. >> > >> > With SQLite is not a bad result, but in MySQL is a disaster... >> > It seems like gambas has to "travel thru the web" in order to get the >> > information of each field of each table... >> > I use, then, the "show columns for tablename" instruction in MySQL... >> and >> > the PRAGMA fields_info in SQLite that does the work at once... but >> PRAGMA >> > doesn't work any more. >> > Looking this test is not a big issue: I can use different way to each >> > database type, but PRAGMA is a must-work on SQLite, I think. >> > >> > Regards >> > >> >> Metadata information is not part of the SQL "standard", so each database >> behaves differently. >> >> As for the use of PRAGMA, it never worked before. It's a more global >> change that you will get in the next revision. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From t.lee.davidson at ...626... Tue Jan 6 23:18:02 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 06 Jan 2015 17:18:02 -0500 Subject: [Gambas-user] Cannot log in to the Wiki In-Reply-To: <54AC2778.7040805@...1...> References: <54AC1A0E.5020801@...626...> <20150106172442.GF5752@...2774...> <54AC20AB.3050606@...626...> <54AC2778.7040805@...1...> Message-ID: <54AC5F1A.9070401@...626...> On 01/06/2015 01:20 PM, Beno?t Minisini wrote: > Le 06/01/2015 18:51, T Lee Davidson a ?crit : >> >On 01/06/2015 12:24 PM, Tobias Boege wrote: >>> >>On Tue, 06 Jan 2015, T Lee Davidson wrote: >>>> >>>Submitting the login form only clears the fields and does not log me in. >>>> >>> >>>> >>>Knowing that Opera sometimes has issues with cookies, I tried also with Firefox -- same result. >>>> >>> >>>> >>>An attempt to re-register shows that my login, 'tldavidson', is already in use. Have Wiki passwords been reset? >>>> >>> >>> >> >>> >>Same problem here but try clicking the OK button instead of hitting Return >>> >>in the textbox. That got me logged in. >>> >> >>> >>Regards, >>> >>Tobi >>> >> >> > >> >Yep, that works. Thanks Tobi. >> > >> > >> >Lee >> >__________ >> > > It should be fixed now. I had to find a trick to choose the default > submit button of a form without using javascript... It works perfectly now. Thank you, Beno?t. Lee __________ "Artificial Intelligence is no match for natural stupidity." From gambas at ...1... Wed Jan 7 00:07:57 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 07 Jan 2015 00:07:57 +0100 Subject: [Gambas-user] Qt4 "native" graphics system will not be supported anymore Message-ID: <54AC6ACD.3080101@...1...> Hi, Qt4 has three graphics system: "native" (i.e. X11 + XRender), "raster" and "opengl". (1) The "opengl" system makes resizable windows slow as hell on my system. (2) The "native" system cannot make an anti-aliased clipping. I have found a workaround for (2) in revision #2558 (yes it's old), that relies on the QPainterPath::intersected() method. But it appears now that this method is buggy, making cumulative calls to Paint.Clip() somewhat unpredictable. So in revision #6815 I decided to remove that workaround. Consequently, now, only the "raster" graphics system will be supported. Regards, -- Beno?t Minisini From gambas at ...1... Wed Jan 7 00:11:16 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 07 Jan 2015 00:11:16 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: References: <54ABE69F.9080005@...1...> <54AC10BA.5090801@...1...> Message-ID: <54AC6B94.5080904@...1...> Le 06/01/2015 19:28, Jorge Carri?n a ?crit : > I've tested "PRAGMA foreign_keys=ON" and it works fine... > > I can live without "PRAGMA fields_info". > Gambas rules!! > > Regards > "PRAGMA" and "WITH" are now supported in the gb.db.sqlite3 component, as well as in the IDE database editor. Check revision #6815. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Jan 7 00:22:39 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 7 Jan 2015 01:22:39 +0200 Subject: [Gambas-user] Qt4 "native" graphics system will not be supported anymore In-Reply-To: <54AC6ACD.3080101@...1...> References: <54AC6ACD.3080101@...1...> Message-ID: I'm not sure what this mean in practice. Can you elaborate bit? Jussi On Wed, Jan 7, 2015 at 1:07 AM, Beno?t Minisini < gambas at ...1...> wrote: > Hi, > > Qt4 has three graphics system: "native" (i.e. X11 + XRender), "raster" > and "opengl". > > (1) The "opengl" system makes resizable windows slow as hell on my system. > > (2) The "native" system cannot make an anti-aliased clipping. > > I have found a workaround for (2) in revision #2558 (yes it's old), that > relies on the QPainterPath::intersected() method. > > But it appears now that this method is buggy, making cumulative calls to > Paint.Clip() somewhat unpredictable. > > So in revision #6815 I decided to remove that workaround. > > Consequently, now, only the "raster" graphics system will be supported. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...2345... Wed Jan 7 00:25:37 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 07 Jan 2015 00:25:37 +0100 Subject: [Gambas-user] Qt4 "native" graphics system will not be supported anymore In-Reply-To: <54AC6ACD.3080101@...1...> References: <54AC6ACD.3080101@...1...> Message-ID: <1420586737.3758.94.camel@...40...> Am Mittwoch, den 07.01.2015, 00:07 +0100 schrieb Beno?t Minisini: > Hi, > > Qt4 has three graphics system: "native" (i.e. X11 + XRender), "raster" > and "opengl". > > (1) The "opengl" system makes resizable windows slow as hell on my system. > > (2) The "native" system cannot make an anti-aliased clipping. > > I have found a workaround for (2) in revision #2558 (yes it's old), that > relies on the QPainterPath::intersected() method. > > But it appears now that this method is buggy, making cumulative calls to > Paint.Clip() somewhat unpredictable. > > So in revision #6815 I decided to remove that workaround. > > Consequently, now, only the "raster" graphics system will be supported. > > Regards, > Salut Beno?t, what does that mean for me and my projects ? -- Amicalement Charlie From gambas at ...1... Wed Jan 7 00:30:29 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 07 Jan 2015 00:30:29 +0100 Subject: [Gambas-user] Qt4 "native" graphics system will not be supported anymore In-Reply-To: <1420586737.3758.94.camel@...40...> References: <54AC6ACD.3080101@...1...> <1420586737.3758.94.camel@...40...> Message-ID: <54AC7015.6040503@...1...> Le 07/01/2015 00:25, Charlie Reinl a ?crit : > Am Mittwoch, den 07.01.2015, 00:07 +0100 schrieb Beno?t Minisini: >> Hi, >> >> Qt4 has three graphics system: "native" (i.e. X11 + XRender), "raster" >> and "opengl". >> >> (1) The "opengl" system makes resizable windows slow as hell on my system. >> >> (2) The "native" system cannot make an anti-aliased clipping. >> >> I have found a workaround for (2) in revision #2558 (yes it's old), that >> relies on the QPainterPath::intersected() method. >> >> But it appears now that this method is buggy, making cumulative calls to >> Paint.Clip() somewhat unpredictable. >> >> So in revision #6815 I decided to remove that workaround. >> >> Consequently, now, only the "raster" graphics system will be supported. >> >> Regards, >> > > Salut Beno?t, > > what does that mean for me and my projects ? > > It means: Use the QT4 raster graphics system or you will have problems. "opengl" seems to not be very stable, and "native" cannot have an anti-aliased clipping. -- Beno?t Minisini From jussi.lahtinen at ...626... Wed Jan 7 01:08:17 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 7 Jan 2015 02:08:17 +0200 Subject: [Gambas-user] Qt4 "native" graphics system will not be supported anymore In-Reply-To: <54AC7015.6040503@...1...> References: <54AC6ACD.3080101@...1...> <1420586737.3758.94.camel@...40...> <54AC7015.6040503@...1...> Message-ID: > It means: Use the QT4 raster graphics system or you will have problems. > "opengl" seems to not be very stable, and "native" cannot have an > anti-aliased clipping. > As I understand this (or misunderstand) Qt4 rendering engine (raster/opengl/native) is chose by the user running the program (or the default value by distribution developers), not the one who wrote Gambas program, right? Can we make the choose for the user and force using "raster" to avoid incompatibility issues? Jussi From adamnt42 at ...626... Wed Jan 7 02:56:46 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 7 Jan 2015 12:26:46 +1030 Subject: [Gambas-user] Just as a matter of interest... Message-ID: <20150107122646.933194a88fd45fb1d2ebbf15@...626...> with the cursor in the IDE Console tab, I just pressed Ctrl+Enter. This had a strange effect of sort of collapsing the visible console text to a single line. Repeating that, all the original text reappears. Is this intentional or is it something weird that only happens to me in LXDE? If it is intentional, what was the intent? ??? Bruce -- B Bruen From adamnt42 at ...626... Wed Jan 7 05:09:19 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 7 Jan 2015 14:39:19 +1030 Subject: [Gambas-user] (hard?) Testing for a treeview key with Like Message-ID: <20150107143919.75ce60087eee3998775dc689@...626...> Something new? I have a treeview (actually a columnview) whose Item keys are a concatenated string of filename and version via Subst("&1-&2", hItem.Name, hItem.Version) When loading the view and I encounter an item with the same filename but a different version I'd like to add the new version as a child node under the existing original. Short of processing the key of every node in the view I can't see a way to detect the parent node I am looking for. What I am looking for is a partial key recognition of the following ilk: If ColumnView1.Exists(Like NewItem.FileName&"-*") Then ' add a child node Else ' add a parent (root) node EndIf Any clues? tia Bruce -- B Bruen From shordi at ...626... Wed Jan 7 09:42:31 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 7 Jan 2015 09:42:31 +0100 Subject: [Gambas-user] SQLite PRAGMA don't seem works any more In-Reply-To: <54AC6B94.5080904@...1...> References: <54ABE69F.9080005@...1...> <54AC10BA.5090801@...1...> <54AC6B94.5080904@...1...> Message-ID: Fine Benoit! That's efficiency Regards 2015-01-07 0:11 GMT+01:00 Beno?t Minisini : > Le 06/01/2015 19:28, Jorge Carri?n a ?crit : > > I've tested "PRAGMA foreign_keys=ON" and it works fine... > > > > I can live without "PRAGMA fields_info". > > Gambas rules!! > > > > Regards > > > > "PRAGMA" and "WITH" are now supported in the gb.db.sqlite3 component, as > well as in the IDE database editor. Check revision #6815. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Jan 7 12:24:00 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 7 Jan 2015 12:24:00 +0100 Subject: [Gambas-user] Just as a matter of interest... In-Reply-To: <20150107122646.933194a88fd45fb1d2ebbf15@...626...> References: <20150107122646.933194a88fd45fb1d2ebbf15@...626...> Message-ID: Le 7 janv. 2015 02:57, "adamnt42 at ...626..." a ?crit : > > with the cursor in the IDE Console tab, I just pressed Ctrl+Enter. > This had a strange effect of sort of collapsing the visible console text to a single line. > Repeating that, all the original text reappears. > Is this intentional or is it something weird that only happens to me in LXDE? > If it is intentional, what was the intent? Small bug ... Not from lxde > > ??? > Bruce > > -- > B Bruen > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Wed Jan 7 12:25:04 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 7 Jan 2015 12:25:04 +0100 Subject: [Gambas-user] (hard?) Testing for a treeview key with Like In-Reply-To: <20150107143919.75ce60087eee3998775dc689@...626...> References: <20150107143919.75ce60087eee3998775dc689@...626...> Message-ID: .Find ? Le 7 janv. 2015 05:10, "adamnt42 at ...626..." a ?crit : > Something new? > > I have a treeview (actually a columnview) whose Item keys are a > concatenated string of filename and > version via > Subst("&1-&2", hItem.Name, hItem.Version) > > When loading the view and I encounter an item with the same filename but a > different version I'd like to add the new version as a child node under the > existing original. > > Short of processing the key of every node in the view I can't see a way to > detect the parent node I am looking for. > > What I am looking for is a partial key recognition of the following ilk: > If ColumnView1.Exists(Like NewItem.FileName&"-*") Then > ' add a child node > Else > ' add a parent (root) node > EndIf > > Any clues? > > tia > Bruce > > -- > B Bruen > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Wed Jan 7 23:55:26 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 07 Jan 2015 16:55:26 -0600 Subject: [Gambas-user] Array.Sort Message-ID: <54ADB95E.4030602@...3412...> I was playing around trying to learn how to pass string arrays back and forth. I then looked at the array.sort function. The prototype in the Wiki indicates that it returns an "string[]". Function Sort([Mode As Integer]) As String[] However it seems that I can not use the returned values(s) where I would normally use an array. It appears to to me to operate more as a SUB than a FUNCTION in that it resorts the array but does not return something that I can use in another function or procedure. Is my interpretation of the prototype wrong-headed ? Regards, Lewis Balentine '================================================ Private Function TestFunction() As String[] Return ["TEST:abcdefghij", "TEST:1234567890", "TEST:ABCDEFGHIJ"] End Private Sub DoPrint(XXX As String[]) Dim S As String For Each S In XXX Print S Next Print "------" End Public Sub Main() ' From Gambas Wiki: ' Function Sort([Mode As Integer]) As String[] ' Sort the array. ' Dim XXX As String[] = ["XXX:abcdefghij", "XXX:1234567890", "XXX:ABCDEFGHIJ"] Dim S As String ' All of the following work as expected DoPrint(XXX) DoPrint(TestFunction()) XXX.Sort DoPrint(XXX) XXX = TestFunction() XXX.Sort DoPrint(XXX) ' None of the following works: Type Mismatch, wanted string[] got function instead ' xxx = TestFunction().sort ' DoPrint(XXX.sort) ' DoPrint(TestFunction().sort) ' For Each S In XXX.Sort ' not an object ' Print S ' Next ' Print "-------" ' For Each S In TestFunction().sort ' not an object ' Print S ' Next Quit End ' [System] ' Gambas = 3.6.2 ' OperatingSystem = Linux ' Kernel = 3.13.0 - 24 - generic ' Architecture = x86_64 ' Distribution = Linux Mint 17 Qiana ' Desktop = MATE ' Theme = QGtk ' Language = en_US.UTF - 8 ' Memory = 15994 M ' [Libraries] ' Cairo = libcairo.so.2.11301.0 ' Curl = libcurl.so.4.3.0 ' DBus = libdbus - 1. so.3.7.6 ' GStreamer = libgstreamer - 0.10.so.0.30.0 ' GStreamer = libgstreamer - 1.0.so.0.204.0 ' GTK + 3 = libgtk - 3. so.0.1000.8 ' GTK += libgtk - x11 - 2.0.so.0.2400.23 ' OpenGL = libGL.so.1.2.0 ' Poppler = libpoppler.so.44.0.0 ' Qt4 = libQtCore.so.4.8.6 ' SDL = libSDL - 1.2.so.0.11.4 From jussi.lahtinen at ...626... Thu Jan 8 01:07:48 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 8 Jan 2015 02:07:48 +0200 Subject: [Gambas-user] Array.Sort In-Reply-To: <54ADB95E.4030602@...3412...> References: <54ADB95E.4030602@...3412...> Message-ID: Test with parenthesis. XXX.Sort() Jussi On Thu, Jan 8, 2015 at 12:55 AM, Lewis Balentine wrote: > I was playing around trying to learn how to pass string arrays back and > forth. > I then looked at the array.sort function. The prototype in the Wiki > indicates that it returns an "string[]". > > Function Sort([Mode As Integer]) As String[] > > However it seems that I can not use the returned values(s) where I would > normally use an array. It appears to to me to operate more as a SUB than > a FUNCTION in that it resorts the array but does not return something > that I can use in another function or procedure. Is my interpretation of > the prototype wrong-headed ? > > Regards, > > Lewis Balentine > > '================================================ > Private Function TestFunction() As String[] > Return ["TEST:abcdefghij", "TEST:1234567890", "TEST:ABCDEFGHIJ"] > End > > Private Sub DoPrint(XXX As String[]) > Dim S As String > For Each S In XXX > Print S > Next > Print "------" > End > > > Public Sub Main() > ' From Gambas Wiki: > ' Function Sort([Mode As Integer]) As String[] > ' Sort the array. > ' > Dim XXX As String[] = ["XXX:abcdefghij", "XXX:1234567890", > "XXX:ABCDEFGHIJ"] > Dim S As String > > ' All of the following work as expected > DoPrint(XXX) > DoPrint(TestFunction()) > XXX.Sort > DoPrint(XXX) > XXX = TestFunction() > XXX.Sort > DoPrint(XXX) > > ' None of the following works: Type Mismatch, wanted string[] got > function instead > ' xxx = TestFunction().sort > ' DoPrint(XXX.sort) > ' DoPrint(TestFunction().sort) > > ' For Each S In XXX.Sort ' not an object > ' Print S > ' Next > ' Print "-------" > > ' For Each S In TestFunction().sort ' not an object > ' Print S > ' Next > > Quit > End > > ' [System] > ' Gambas = 3.6.2 > ' OperatingSystem = Linux > ' Kernel = 3.13.0 - 24 - generic > ' Architecture = x86_64 > ' Distribution = Linux Mint 17 Qiana > ' Desktop = MATE > ' Theme = QGtk > ' Language = en_US.UTF - 8 > ' Memory = 15994 M > ' [Libraries] > ' Cairo = libcairo.so.2.11301.0 > ' Curl = libcurl.so.4.3.0 > ' DBus = libdbus - 1. so.3.7.6 > ' GStreamer = libgstreamer - 0.10.so.0.30.0 > ' GStreamer = libgstreamer - 1.0.so.0.204.0 > ' GTK + 3 = libgtk - 3. so.0.1000.8 > ' GTK += libgtk - x11 - 2.0.so.0.2400.23 > ' OpenGL = libGL.so.1.2.0 > ' Poppler = libpoppler.so.44.0.0 > ' Qt4 = libQtCore.so.4.8.6 > ' SDL = libSDL - 1.2.so.0.11.4 > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From t.lee.davidson at ...626... Thu Jan 8 01:09:05 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 07 Jan 2015 19:09:05 -0500 Subject: [Gambas-user] Array.Sort In-Reply-To: <54ADB95E.4030602@...3412...> References: <54ADB95E.4030602@...3412...> Message-ID: <54ADCAA1.2010305@...626...> Hi Lewis, You're forgetting, like I often do, the parentheses for the method [.Sort()]. ... XXX = TestFunction().Sort() DoPrint(XXX.Sort()) DoPrint(TestFunction().Sort()) For Each S In XXX.Sort() Print S Next Print "-------" For Each S In TestFunction().Sort() Print S Next ... Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/07/2015 05:55 PM, Lewis Balentine wrote: > I was playing around trying to learn how to pass string arrays back and > forth. > I then looked at the array.sort function. The prototype in the Wiki > indicates that it returns an "string[]". > > Function Sort([Mode As Integer]) As String[] > > However it seems that I can not use the returned values(s) where I would > normally use an array. It appears to to me to operate more as a SUB than > a FUNCTION in that it resorts the array but does not return something > that I can use in another function or procedure. Is my interpretation of > the prototype wrong-headed ? > > Regards, > > Lewis Balentine > > '================================================ > Private Function TestFunction() As String[] > Return ["TEST:abcdefghij", "TEST:1234567890", "TEST:ABCDEFGHIJ"] > End > > Private Sub DoPrint(XXX As String[]) > Dim S As String > For Each S In XXX > Print S > Next > Print "------" > End > > > Public Sub Main() > ' From Gambas Wiki: > ' Function Sort([Mode As Integer]) As String[] > ' Sort the array. > ' > Dim XXX As String[] = ["XXX:abcdefghij", "XXX:1234567890", > "XXX:ABCDEFGHIJ"] > Dim S As String > > ' All of the following work as expected > DoPrint(XXX) > DoPrint(TestFunction()) > XXX.Sort > DoPrint(XXX) > XXX = TestFunction() > XXX.Sort > DoPrint(XXX) > > ' None of the following works: Type Mismatch, wanted string[] got > function instead > ' xxx = TestFunction().sort > ' DoPrint(XXX.sort) > ' DoPrint(TestFunction().sort) > > ' For Each S In XXX.Sort ' not an object > ' Print S > ' Next > ' Print "-------" > > ' For Each S In TestFunction().sort ' not an object > ' Print S > ' Next > > Quit > End > > ' [System] > ' Gambas = 3.6.2 > ' OperatingSystem = Linux > ' Kernel = 3.13.0 - 24 - generic > ' Architecture = x86_64 > ' Distribution = Linux Mint 17 Qiana > ' Desktop = MATE > ' Theme = QGtk > ' Language = en_US.UTF - 8 > ' Memory = 15994 M > ' [Libraries] > ' Cairo = libcairo.so.2.11301.0 > ' Curl = libcurl.so.4.3.0 > ' DBus = libdbus - 1. so.3.7.6 > ' GStreamer = libgstreamer - 0.10.so.0.30.0 > ' GStreamer = libgstreamer - 1.0.so.0.204.0 > ' GTK + 3 = libgtk - 3. so.0.1000.8 > ' GTK += libgtk - x11 - 2.0.so.0.2400.23 > ' OpenGL = libGL.so.1.2.0 > ' Poppler = libpoppler.so.44.0.0 > ' Qt4 = libQtCore.so.4.8.6 > ' SDL = libSDL - 1.2.so.0.11.4 > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Thu Jan 8 05:32:05 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 07 Jan 2015 22:32:05 -0600 Subject: [Gambas-user] Array.Sort In-Reply-To: <54ADCAA1.2010305@...626...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> Message-ID: <54AE0845.2030405@...3412...> No ... I was not forgetting. I have not yet learned they are required ... ... but this old dog 'will' learn the new tricks. Thank thee again. Lewis On 01/07/2015 06:09 PM, T Lee Davidson wrote: > Hi Lewis, > > You're forgetting, like I often do, the parentheses for the method [.Sort()]. > > From lewis at ...3412... Thu Jan 8 06:59:04 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 07 Jan 2015 23:59:04 -0600 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AE0845.2030405@...3412...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> Message-ID: <54AE1CA8.8010901@...3412...> Do I have it correct now ?? The program runs and operates as expected. My concern is more to the proper nomenclature than function. Regards, Lewis Balentine '--- --- (project archive attached to message) --- --- Private Function TestFunction() As String[] Return ["abcdefghij", "1234567890", "ABCDEFGHIJ"] End Private Sub DoPrint(XXX As String[]) Dim S As String For Each S In XXX Print S Next Print "------" End Public Sub Main() Dim XXX As New String[] ' NOTE: ' The empty set of parentheses is REQUIRED when ' sort is used as a function to return an array. ' array=array.sort() will work ' array=array.sort will not work DoPrint(TestFunction()) DoPrint(TestFunction().sort()) ' XXX = TestFunction() DoPrint(XXX) DoPrint(XXX.Sort()) ' XXX = TestFunction().sort() DoPrint(XXX) ' ' NOTE: ' The empty set of parentheses is NOT required when ' sort is used as a procedure call to simply sort ' array without returning anything. ' array.sort() will work ' array.sort will work XXX = TestFunction() XXX.Sort DoPrint(XXX) ' ' array.reverse and array.pop work similarly. DoPrint(XXX.Reverse()) XXX.Reverse DoPrint(XXX) XXX.Pop Print XXX.Pop() ' parentheses are not used for an array's properties Print "======" XXX = TestFunction() Print "'array.dim' returns the number of dimensions in an array: " & XXX.dim Print "'array.length' returns the number of items in an array: " & XXX.length Print "'array.count' returns the number of items in an array: " & XXX.count Print "'array.max' returns the number of items in an array: " & XXX.max Quit End -------------- next part -------------- A non-text attachment was scrubbed... Name: ArrayExample-0.0.1.tar.gz Type: application/gzip Size: 4406 bytes Desc: not available URL: From lewis at ...3412... Thu Jan 8 07:11:57 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 08 Jan 2015 00:11:57 -0600 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AE1CA8.8010901@...3412...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> Message-ID: <54AE1FAD.80207@...3412...> oops ---- Last line should be: Print "'array.max' returns index of the last item in an array: " & XXX.max On 01/07/2015 11:59 PM, Lewis Balentine wrote: > Print "'array.max' returns the number of items in an array: " > & XXX.max > > Quit > End From taboege at ...626... Thu Jan 8 14:19:28 2015 From: taboege at ...626... (Tobias Boege) Date: Thu, 8 Jan 2015 14:19:28 +0100 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AE1CA8.8010901@...3412...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> Message-ID: <20150108131928.GA1473@...2774...> On Wed, 07 Jan 2015, Lewis Balentine wrote: > Do I have it correct now ?? > The program runs and operates as expected. > My concern is more to the proper nomenclature than function. > Array.Sort() is a *method* :-) It rearranges the elements of the object it is applied to and returns that object afterwards. That is, you will always have aArray == aArray.Sort() where == should be read as "are the same object", despite == not being a Gambas operator (I use it here to distinguish between the same-object relation and an assignment). So, the actual work is done on the object you use to the method on and the return value is just for brevity in certain applications like Print aArray.Sort().Join(",") ' or For Each sElt In aArray.Sort() Print sElt Next ' or With EliminateSuccessiveDuplicates(aArray.Sort()) Print .Count;; "unique elements:" For iInd = 0 To .Max Print .[iInd] Next End With If you want truly function-like semantics, then you can use the idiom aArray.Copy().Sort() Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From karl.reinl at ...9... Thu Jan 8 19:49:59 2015 From: karl.reinl at ...9... (Karl Reinl) Date: Thu, 08 Jan 2015 19:49:59 +0100 Subject: [Gambas-user] [CRASH REPORT] TestApp01 Message-ID: <1420742999.3683.2.camel@...40...> Hello, Damned, my program crashed Gambas that way : after con is declared (pass it with F8), then dblClick con to inspect it. -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp01-0.0.1-crash-150108-194725.tar.bz2 Type: application/x-bzip-compressed-tar Size: 613 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Jan 8 19:57:49 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 8 Jan 2015 20:57:49 +0200 Subject: [Gambas-user] [CRASH REPORT] TestApp01 In-Reply-To: <1420742999.3683.2.camel@...40...> References: <1420742999.3683.2.camel@...40...> Message-ID: The attachment doesn't contain any sources..? Use IDE to package the sources; Project --> Make --> Source archive. Jussi On Thu, Jan 8, 2015 at 8:49 PM, Karl Reinl wrote: > Hello, > > Damned, my program crashed Gambas that way : > > after con is declared (pass it with F8), then dblClick con to inspect it. > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From Karl.Reinl at ...2345... Thu Jan 8 20:33:47 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Thu, 08 Jan 2015 20:33:47 +0100 Subject: [Gambas-user] [CRASH REPORT] TestApp01 In-Reply-To: References: <1420742999.3683.2.camel@...40...> Message-ID: <1420745627.3683.6.camel@...40...> Am Donnerstag, den 08.01.2015, 20:57 +0200 schrieb Jussi Lahtinen: > The attachment doesn't contain any sources..? > Use IDE to package the sources; Project --> Make --> Source archive. > > > Jussi > > On Thu, Jan 8, 2015 at 8:49 PM, Karl Reinl wrote: > > > Hello, > > > > Damned, my program crashed Gambas that way : > > > > after con is declared (pass it with F8), then dblClick con to inspect it. > > Ok, another bug, I checked for sending the source also. But no matters, just declare Dim con As New Connection After passing that line, inspect con by DBLClick -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp01-0.0.1.tar.gz Type: application/x-compressed-tar Size: 41404 bytes Desc: not available URL: From karl.reinl at ...9... Thu Jan 8 21:17:08 2015 From: karl.reinl at ...9... (Karl Reinl) Date: Thu, 08 Jan 2015 21:17:08 +0100 Subject: [Gambas-user] [CRASH REPORT] TestApp01 Message-ID: <1420748228.3683.7.camel@...40...> Hello, Damned, my program crashed Gambas that way : the try con.Open fails when only the con.name is filled Sorry for last CRASH-Report, I checked for not sending source. -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp01-0.0.1-crash-150108-211425.tar.bz2 Type: application/x-bzip-compressed-tar Size: 43203 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Jan 8 22:36:02 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 8 Jan 2015 23:36:02 +0200 Subject: [Gambas-user] [CRASH REPORT] TestApp01 In-Reply-To: <1420748228.3683.7.camel@...40...> References: <1420748228.3683.7.camel@...40...> Message-ID: OK, I can confirm, it crashes with my system too. [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-43-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=XFCE Theme=QGtk Language=en_US.UTF-8 Memory=3953M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 Jussi On Thu, Jan 8, 2015 at 10:17 PM, Karl Reinl wrote: > Hello, > > Damned, my program crashed Gambas that way : > > the try con.Open fails when only the con.name is filled > > Sorry for last CRASH-Report, I checked for not sending source. > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From lewis at ...3412... Fri Jan 9 00:56:03 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 08 Jan 2015 17:56:03 -0600 Subject: [Gambas-user] Array.Sort In-Reply-To: <20150108131928.GA1473@...2774...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> Message-ID: <54AF1913.1000703@...3412...> On 01/08/2015 07:19 AM, Tobias Boege wrote: > Array.Sort() is a *method* :-) The basic (pun intended) elements of all OOP languages are classes constructed of properties and methods. --- you got me on that one In GAMBAS there seem to be several class methods defined that sometimes require parenthesis and sometimes do not. I was trying to determine/define the conditions that delimit when those parenthesis are required using familiar BASIC terms ... as in: Public/Private Function foo () as data type Public/Private Sub foo () both of which I believe are appropriately considered methods in OOP languages. I believe my second formal computer class was MBASIC on a Osborn CPM computer (4 inch green screen). I am trying to recall if the term "Function" was defined in that language but those gray cells are no longer responding reliably. The other option was "Go to" that eventually evolved into "Public/Private Sub". At the time we called those "procedures". I still call them "procedures" to distinguish them from a "function" that by definition is supposed to return something. Take a look at what I put in the WiKi and let me know if I should change it. http://gambaswiki.org/wiki/comp/gb/string[]/sort ... and if someone insists I will go back and change the variables to Hungarian notation but personally I find it more confusing than enlighting. Cheers, Lewis From gambas at ...1... Fri Jan 9 01:05:02 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 09 Jan 2015 01:05:02 +0100 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AF1913.1000703@...3412...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> <54AF1913.1000703@...3412...> Message-ID: <54AF1B2E.5090907@...1...> Le 09/01/2015 00:56, Lewis Balentine a ?crit : > On 01/08/2015 07:19 AM, Tobias Boege wrote: >> Array.Sort() is a *method* :-) > > The basic (pun intended) elements of all OOP languages are classes > constructed of properties and methods. > --- you got me on that one > > In GAMBAS there seem to be several class methods defined that sometimes > require parenthesis and sometimes do not. I was trying to > determine/define the conditions that delimit when those parenthesis are > required using familiar BASIC terms ... as in: > Public/Private Function foo () as data type > Public/Private Sub foo () > both of which I believe are appropriately considered methods in OOP > languages. > > I believe my second formal computer class was MBASIC on a Osborn CPM > computer (4 inch green screen). I am trying to recall if the term > "Function" was defined in that language but those gray cells are no > longer responding reliably. The other option was "Go to" that eventually > evolved into "Public/Private Sub". At the time we called those > "procedures". I still call them "procedures" to distinguish them from a > "function" that by definition is supposed to return something. > > Take a look at what I put in the WiKi and let me know if I should change it. > http://gambaswiki.org/wiki/comp/gb/string[]/sort > ... and if someone insists I will go back and change the variables to > Hungarian notation but personally I find it more confusing than enlighting. > > Cheers, > > Lewis > It's simple: You can omit the "()" at the end of function call statement only. It's a compiler shortcut that comes from Visual Basic. I said "statement", not "procedure", because the interpreter makes no difference between a procedure (that returns nothing) and a function (that returns something) in the sense that it discovers that behaviour at runtime during the execution ; contrary to you, that knows that in advance. Regards, -- Beno?t Minisini From t.lee.davidson at ...626... Fri Jan 9 01:09:02 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Thu, 08 Jan 2015 19:09:02 -0500 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AF1913.1000703@...3412...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> <54AF1913.1000703@...3412...> Message-ID: <54AF1C1E.7030609@...626...> "The empty set of parentheses is REQUIRED when sort is used as a function to return an array without the optional mode parameter" I don't know. Wouldn't it be more accurate to say that the parentheses are required to be able to use the function call as the object which it returns; as opposed to the syntax, without the parentheses, referring to the function itself? Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/08/2015 06:56 PM, Lewis Balentine wrote: > On 01/08/2015 07:19 AM, Tobias Boege wrote: >> Array.Sort() is a *method* :-) > > The basic (pun intended) elements of all OOP languages are classes > constructed of properties and methods. > --- you got me on that one > > In GAMBAS there seem to be several class methods defined that sometimes > require parenthesis and sometimes do not. I was trying to > determine/define the conditions that delimit when those parenthesis are > required using familiar BASIC terms ... as in: > Public/Private Function foo () as data type > Public/Private Sub foo () > both of which I believe are appropriately considered methods in OOP > languages. > > I believe my second formal computer class was MBASIC on a Osborn CPM > computer (4 inch green screen). I am trying to recall if the term > "Function" was defined in that language but those gray cells are no > longer responding reliably. The other option was "Go to" that eventually > evolved into "Public/Private Sub". At the time we called those > "procedures". I still call them "procedures" to distinguish them from a > "function" that by definition is supposed to return something. > > Take a look at what I put in the WiKi and let me know if I should change it. > http://gambaswiki.org/wiki/comp/gb/string[]/sort > ... and if someone insists I will go back and change the variables to > Hungarian notation but personally I find it more confusing than enlighting. > > Cheers, > > Lewis > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Jan 9 01:12:50 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 09 Jan 2015 01:12:50 +0100 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AF1C1E.7030609@...626...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> <54AF1913.1000703@...3412...> <54AF1C1E.7030609@...626...> Message-ID: <54AF1D02.4000204@...1...> Le 09/01/2015 01:09, T Lee Davidson a ?crit : > "The empty set of parentheses is REQUIRED when sort is used as a function to return an array without the optional mode parameter" > > I don't know. Wouldn't it be more accurate to say that the parentheses are required to be able to use the function call as the object which it > returns; as opposed to the syntax, without the parentheses, referring to the function itself? > > > Lee Why not just say that? ? You can omit the "()" at the end of a function or method call statement only. If you don't understand the previous sentence, always use "()" to call a function or a method. ? :-) -- Beno?t Minisini From t.lee.davidson at ...626... Fri Jan 9 01:54:37 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Thu, 08 Jan 2015 19:54:37 -0500 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AF1D02.4000204@...1...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> <54AF1913.1000703@...3412...> <54AF1C1E.7030609@...626...> <54AF1D02.4000204@...1...> Message-ID: <54AF26CD.3050700@...626...> On 01/08/2015 07:12 PM, Beno?t Minisini wrote: > Le 09/01/2015 01:09, T Lee Davidson a ?crit : >> "The empty set of parentheses is REQUIRED when sort is used as a function to return an array without the optional mode parameter" >> >> I don't know. Wouldn't it be more accurate to say that the parentheses are required to be able to use the function call as the object which it >> returns; as opposed to the syntax, without the parentheses, referring to the function itself? >> >> >> Lee > > Why not just say that? > > ? You can omit the "()" at the end of a function or method call > statement only. If you don't understand the previous sentence, always > use "()" to call a function or a method. ? > > :-) > Somehow simple always seems to promote clarity. But, I'll leave it to Lewis to edit his edit. :-) From adamnt42 at ...626... Fri Jan 9 02:43:00 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 9 Jan 2015 12:13:00 +1030 Subject: [Gambas-user] Array.Sort In-Reply-To: <54AF1D02.4000204@...1...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> <54AF1913.1000703@...3412...> <54AF1C1E.7030609@...626...> <54AF1D02.4000204@...1...> Message-ID: <20150109121300.f677eb68f5376182e87a9326@...626...> On Fri, 09 Jan 2015 01:12:50 +0100 Beno?t Minisini wrote: > Le 09/01/2015 01:09, T Lee Davidson a ?crit : > > "The empty set of parentheses is REQUIRED when sort is used as a function to return an array without the optional mode parameter" > > > > I don't know. Wouldn't it be more accurate to say that the parentheses are required to be able to use the function call as the object which it > > returns; as opposed to the syntax, without the parentheses, referring to the function itself? > > > > > > Lee > > Why not just say that? > > ? You can omit the "()" at the end of a function or method call > statement only. If you don't understand the previous sentence, always > use "()" to call a function or a method. ? > > :-) > I would have thought that the issue is "the other way up", viz: If any class method is used as the predicate of an assignment or as the implied object of a command, then the parentheses "()" must be included, even if any or all (optional) method parameters are not specified. The parentheses "()" may be left out if the method is used purely to manipulate the internal state of the object (whether or not that method may return a value). Examples Consider a hypothetical class method "Negate" that inverts the value of some attribute of the object and returns that value. Thus the "()" is required for: SomeLocalVar = MyObject.Negate() Print MyObject.Negate() but MyObject.Negate is perfectly legal. In this case the value is inverted but the result is "thrown away" by the interpreter. I cannot think of any exceptions to this. regards Bruce -- B Bruen From gambas at ...2524... Fri Jan 9 07:56:24 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 09 Jan 2015 06:56:24 +0000 Subject: [Gambas-user] Issue 589 in gambas: Interpreter Crash Gambas3 - Calling a library function - BananaPi In-Reply-To: <4-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> <0-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Comment #5 on issue 589 by ScrCarl... at ...626...: Interpreter Crash Gambas3 - Calling a library function - BananaPi https://code.google.com/p/gambas/issues/detail?id=589 Dear Benoit, to be honest, I have reached a point where I have to make a decision if to continue with Gambas 3 or not. The problem is exactly this function PMD_Find_Interface(). Its function prototype is PMD_Find_Interface (HIDInterface** hid, int interface, int productID). HIDInterface is a structure with a lenght of 52 bytes. The problen is how to code it in Gambas: 1.) HIDInterface* hid(7); how to transscribe this in Gambas 2.) interface = PMD_Find_Inteface ( &hid[i], i, USB1608FS_PID); how to setup this call So I have to establish a construct of 7 memory blocks which are accessed by pointers each. I am not interested in the content of these blocks, I only have to transfer it from one function to an other by hid[]. If this can not be done by Gambas 3 I have to stop all activities and have to look for other IDEs. In the past I have developped many testprograms under VB6, therefore I came to Gambas3. In my test setups I have to adress many test equipment via USB in many cases on low level. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 9 10:47:23 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 09 Jan 2015 09:47:23 +0000 Subject: [Gambas-user] Issue 589 in gambas: Interpreter Crash Gambas3 - Calling a library function - BananaPi In-Reply-To: <5-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> <0-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-7934455320240273547-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #6 on issue 589 by benoit.m... at ...626...: Interpreter Crash Gambas3 - Calling a library function - BananaPi https://code.google.com/p/gambas/issues/detail?id=589 > HIDInterface is a structure with a length of 52 bytes. If you don't access the structure, you don't care. It's just a pointer for you. You don't construct seven memory blocks, it's done by the PMD_Find_Interface function. > 1.) HIDInterface* hid[7]; how to transscribe this in Gambas Private Hid As New Pointer[7] > 2.) interface = PMD_Find_Inteface ( &hid[i], i, USB1608FS_PID); how to > setup this call Const USB1608FS_PID As Integer = &H007D& ' from usb_1608FS.h ... PMD_Find_Interface(VarPtr(Hid[I]), I, USB1608FS_PID) Please use the mailing-list for such things, it's not very practical there. The bug tracker is for... bugs. Moreover maybe you will find other BananaPI users. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From lewis at ...3412... Fri Jan 9 11:11:17 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 09 Jan 2015 04:11:17 -0600 Subject: [Gambas-user] Column Alignment Property Message-ID: <54AFA945.1090308@...3412...> It appears to me that the Column Alignment Property does not work for some types. ---- Sample Code: ---- Public Sub ButtonCenter_Click() Dim I As Integer For I = 0 To DataView1.View.Columns.Max DataView1.View.Columns[I].Alignment = Align.Center Next Me.Caption = Application.Name & ": Center" End --------------------- The results are: Serial, Boolean, Long, Date: Column Alignment as expected Integer, Float: always Align.Right String: always Align.Left Please see that attached project archive for source code and otherwise useless SQLite3 Database. On another note: I wanted to verify these results with a later verions of GAMBAS. I have one machien set up with: deb http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu trusty main. It reported version 3.6.99 available. I did the normal update but it still reported 3.6.90. I then did: $ sudo apt-get purge gambas3 followed by: $ sudo apt-get autoremove followed by: reboot followed by: sudo apt-get install gambas3 It still reports version 3.6.90 although as I watched the install I clearly saw references to 3.6.99 (see below). ... and the results were the same for all three version tests. Regards, Lewis Balentine [System 2 updated] ============ Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=MATE Theme=QGtk Language=en_US.UTF-8 Memory=3944M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 [System 2 not-updated] ============ Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=MATE Theme=QGtk Language=en_US.UTF-8 Memory=3944M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 [System 1] ======== Gambas=3.6.2 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=MATE Theme=QGtk Language=en_US.UTF-8 Memory=15994M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: AlignmentTest-0.0.1.tar.gz Type: application/gzip Size: 5667 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Alignment-Test-Center.jpg Type: image/jpeg Size: 26423 bytes Desc: not available URL: From taboege at ...626... Fri Jan 9 11:34:24 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 9 Jan 2015 11:34:24 +0100 Subject: [Gambas-user] Array.Sort In-Reply-To: <20150109121300.f677eb68f5376182e87a9326@...626...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> <54AF1913.1000703@...3412...> <54AF1C1E.7030609@...626...> <54AF1D02.4000204@...1...> <20150109121300.f677eb68f5376182e87a9326@...626...> Message-ID: <20150109103424.GA653@...2774...> On Fri, 09 Jan 2015, adamnt42 at ...626... wrote: > On Fri, 09 Jan 2015 01:12:50 +0100 > Beno?t Minisini wrote: > > > Le 09/01/2015 01:09, T Lee Davidson a ?crit : > > > "The empty set of parentheses is REQUIRED when sort is used as a function to return an array without the optional mode parameter" > > > > > > I don't know. Wouldn't it be more accurate to say that the parentheses are required to be able to use the function call as the object which it > > > returns; as opposed to the syntax, without the parentheses, referring to the function itself? > > > > > > > > > Lee > > > > Why not just say that? > > > > ? You can omit the "()" at the end of a function or method call > > statement only. If you don't understand the previous sentence, always > > use "()" to call a function or a method. ? > > > > :-) > > > > I would have thought that the issue is "the other way up", viz: > > If any class method is used as the predicate of an assignment or as the implied object of a command, then the parentheses "()" must be included, even if any or all (optional) method parameters are not specified. The parentheses "()" may be left out if the method is used purely to manipulate the internal state of the object (whether or not that method may return a value). > > Examples > Consider a hypothetical class method "Negate" that inverts the value of some attribute of the object and returns that value. Thus the "()" is required for: > SomeLocalVar = MyObject.Negate() > Print MyObject.Negate() > but > MyObject.Negate > is perfectly legal. In this case the value is inverted but the result is "thrown away" by the interpreter. > > I cannot think of any exceptions to this. > Me neither but it should be noted (NOT on the Array.Sort() wiki page but in our brains) that the behaviour is different for intrinsic functions, since Format$(Now) works. Note that I, as a matter of consistency, *always* append parentheses to method calls, or else my internal parser gets confused later when reading the code. (Although sometimes it's cool to pretend that Now is a variable which gets updated through magic.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From lewis at ...3412... Fri Jan 9 12:10:38 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 09 Jan 2015 05:10:38 -0600 Subject: [Gambas-user] Array.Sort In-Reply-To: <20150109103424.GA653@...2774...> References: <54ADB95E.4030602@...3412...> <54ADCAA1.2010305@...626...> <54AE0845.2030405@...3412...> <54AE1CA8.8010901@...3412...> <20150108131928.GA1473@...2774...> <54AF1913.1000703@...3412...> <54AF1C1E.7030609@...626...> <54AF1D02.4000204@...1...> <20150109121300.f677eb68f5376182e87a9326@...626...> <20150109103424.GA653@...2774...> Message-ID: <54AFB72E.3010107@...3412...> I did not expect this many comments. I believe that the KISS principle should apply to the Wiki particularly for the benefit of new users or those whose first language may not be English (my British friends tell me that English is not my first language). I removed references to "procedure" and "function". ' The empty set of parentheses is REQUIRED when sort is called ' without the optional mode parameter and is expected to return ' an array. ' The empty set of parentheses is NOT required to sort the array ' without returning anything. ' all three examples print the following: 1234567890 ABCDEFGHIJ abcdefghij Regards, Lewis From willy at ...2734... Fri Jan 9 13:10:01 2015 From: willy at ...2734... (Willy Raets) Date: Fri, 09 Jan 2015 13:10:01 +0100 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54AFA945.1090308@...3412...> References: <54AFA945.1090308@...3412...> Message-ID: <1420805401.4859.9.camel@...3024...> On vr, 2015-01-09 at 04:11 -0600, Lewis Balentine wrote: > On another note: > I wanted to verify these results with a later verions of GAMBAS. I have > one machien set up with: deb > http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu trusty main. It > reported version 3.6.99 available. I did the normal update but it still > reported 3.6.90. As a matter of fact there is no Gambas 3.6.99. Trunk version is always 3.x.90. So, current stable is 3.6.2 and trunk is 3.6.90 As soon as 3.7.0 will be released the new trunk version will be 3.7.90. The package has been named 3.6.99 by the Gambas team by accident. Restoring the name to 3.6.90 seems to be problematic as far as I understood (-> correct me if I'm wrong Sebstian of the Gambas team PPA) because 3.6.90 is a lower number as 3.6.99. I guess this can be corrected as soon as 3.7.0 is out and 3.6.99 packages can be named correctly to 3.7.90 In short, the packages having 3.6.99 in package name will simply install 3.6.90. > > I then did: $ sudo apt-get purge gambas3 > followed by: $ sudo apt-get autoremove > followed by: reboot > followed by: sudo apt-get install gambas3 A lot of trouble, all for nothing... > > It still reports version 3.6.90 although as I watched the install I > clearly saw references to 3.6.99 (see below). > ... and the results were the same for all three version tests. > Yes it will :) -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From lewis at ...3412... Fri Jan 9 13:17:45 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 09 Jan 2015 06:17:45 -0600 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <1420805401.4859.9.camel@...3024...> References: <54AFA945.1090308@...3412...> <1420805401.4859.9.camel@...3024...> Message-ID: <54AFC6E9.6040102@...3412...> Thanks for the version explanation ... A lot of trouble, all for nothing... It happens sometimes. I just wanted to be certain I tried the latest version before I submitted the email... Cheers, Lewis From tercoide at ...67... Fri Jan 9 16:48:05 2015 From: tercoide at ...67... (martin p cristia) Date: Fri, 9 Jan 2015 12:48:05 -0300 Subject: [Gambas-user] estru3d In-Reply-To: References: Message-ID: Hi all: With the guys @ gambas-es.org forum, Jesus Guardon and Julio Sanchez, I made a port (from VB6) of a structural calculation program I started back in my university days. Now that is in the first beta, and translated to english, I feel the need to put it someplace else so its available for more people. Its open source with lots of room for improovment and I would love that some young guys get interest on it, as I'm getting rusty. Were is the best place to put the code and the executables? googlecode? sourceforge? (I read theres is going to be a Gambas farm??) were are more gambas3 programers? Thanks. This is a short presentation of it (my english is rusty too, sorry about it). Hope you like it. Feel free to leave your comments. http://youtu.be/pHFMEvdw5jM -- Saludos Ing. Martin P Cristia From david.hill.m64 at ...626... Fri Jan 9 18:24:16 2015 From: david.hill.m64 at ...626... (David Hill) Date: Fri, 09 Jan 2015 17:24:16 +0000 Subject: [Gambas-user] DataView Column Widths Message-ID: <54B00EC0.3070706@...626...> Quick question! Since the Columns property of a DataView is used to set the fields displayed, how can I set the columns widths? TIA Dave [System] Gambas=3.5.3 OperatingSystem=Linux Kernel=3.2.0-4-amd64 Architecture=x86_64 Distribution=Crunchbang Waldorf Desktop=? Theme=QGtk Language=en_GB.UTF-8 Memory=3901M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11200.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.2 SDL=libSDL-1.2.so.0.11.4 From gambas at ...1... Fri Jan 9 18:35:15 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 09 Jan 2015 18:35:15 +0100 Subject: [Gambas-user] DataView Column Widths In-Reply-To: <54B00EC0.3070706@...626...> References: <54B00EC0.3070706@...626...> Message-ID: <54B01153.5060800@...1...> Le 09/01/2015 18:24, David Hill a ?crit : > Quick question! > > Since the Columns property of a DataView is used to set the fields > displayed, how can I set the columns widths? > > TIA > > Dave > DataView has a "View" property that returns its internal TableView control: use it to do what you want to the TableView. Regards, -- Beno?t Minisini From david.hill.m64 at ...626... Fri Jan 9 18:37:07 2015 From: david.hill.m64 at ...626... (David Hill) Date: Fri, 09 Jan 2015 17:37:07 +0000 Subject: [Gambas-user] DataView Column Widths In-Reply-To: <54B01153.5060800@...1...> References: <54B00EC0.3070706@...626...> <54B01153.5060800@...1...> Message-ID: <54B011C3.6050802@...626...> Merci Bien! On 09/01/15 17:35, Beno?t Minisini wrote: > Le 09/01/2015 18:24, David Hill a ?crit : >> Quick question! >> >> Since the Columns property of a DataView is used to set the fields >> displayed, how can I set the columns widths? >> >> TIA >> >> Dave >> > DataView has a "View" property that returns its internal TableView > control: use it to do what you want to the TableView. > > Regards, > From charlie at ...2793... Fri Jan 9 19:08:18 2015 From: charlie at ...2793... (Charlie) Date: Fri, 9 Jan 2015 11:08:18 -0700 (MST) Subject: [Gambas-user] estru3d In-Reply-To: References: Message-ID: <1420826898490-50229.post@...3046...> Have a look here http://whiteislandsoftware.com -- View this message in context: http://gambas.8142.n7.nabble.com/estru3d-tp50225p50229.html Sent from the gambas-user mailing list archive at Nabble.com. From roseking at ...3413... Fri Jan 9 21:38:26 2015 From: roseking at ...3413... (Francis Payne) Date: Sat, 10 Jan 2015 07:38:26 +1100 Subject: [Gambas-user] Does anyone have experience with gb.openGL and "Not an object"? Message-ID: <54B03C42.9060501@...3413...> I've got an interesting issue with the OpenGL component. I've been experimenting with OpenGL by going through the NeHe tutorials and the MD2Model example provided. The problem is that I sometimes get an unexpected message of "Not an object" when GL tries to start. The skeleton of the code is: Public Sub GLArea1_open() Gl.ClearDepth(100.0) ' Enables clearing of the depth buffer Glu.ClearColor(&H3398C3) ' This will clear the background color to blue Gl.DepthFunc(Gl.LESS) ' The type of depth test to do Gl.Enable(Gl.DEPTH_TEST) ' Enables depth testing Gl.ShadeModel(Gl.SMOOTH) ' Enables smooth color shading Gl.Viewport(0, 0, GLArea1.Width, GLArea1.Height) Gl.MatrixMode(Gl.PROJECTION) Gl.LoadIdentity() 'Reset The Projection Matrix Glu.Perspective(45.0, GLArea1.w / GLArea1.Height, 0.1, 3000.0) 'Calculate The Aspect Ratio Of The Window Glu.LookAt(0, 100, 120, 0, 0, -300, 0, 100, 0) Gl.MatrixMode(Gl.MODELVIEW) End '< OTHER CODE GOES HERE > Public Sub Button1_Click() GLArea1.visible = True End Let me emphasise that *this skel**eton code works without problems* ! It just opens an opengl window in the Glarea. The problem happens when the 'other code' gets inserted - but the other code makes no reference to opengl or the GlArea and consists solely of operations on unrelated things like manipulating arrays, working on other controls, etc. I won't post the other code here because there's about 300kb of it. But I have gone through it to make sure there are no references that could interfere with openGL. So, fellow Gambas programmers.... I don't expect a specific solution, but as a guide, what **sort** of issues generally cause OpenGl to return "Not an object" when called ? [System] Gambas=3.5.2 OperatingSystem=Linux Kernel=3.2.0-57-generic-pae Architecture=x86 Distribution=Ubuntu 12.04 LTS Desktop=KDE4 Theme=QGtk Language=en_US.UTF-8 Memory=12108M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1.0 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 From gambas at ...1... Fri Jan 9 21:43:03 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 09 Jan 2015 21:43:03 +0100 Subject: [Gambas-user] Does anyone have experience with gb.openGL and "Not an object"? In-Reply-To: <54B03C42.9060501@...3413...> References: <54B03C42.9060501@...3413...> Message-ID: <54B03D57.9020902@...1...> Le 09/01/2015 21:38, Francis Payne a ?crit : > I've got an interesting issue with the OpenGL component. > > I've been experimenting with OpenGL by going through the NeHe tutorials > and the MD2Model example provided. The problem is that I sometimes get > an unexpected message of "Not an object" when GL tries to start. > > The skeleton of the code is: > > > Public Sub GLArea1_open() > > Gl.ClearDepth(100.0) ' Enables clearing of the depth buffer > Glu.ClearColor(&H3398C3) ' This will clear the background color to blue > Gl.DepthFunc(Gl.LESS) ' The type of depth test to do > Gl.Enable(Gl.DEPTH_TEST) ' Enables depth testing > Gl.ShadeModel(Gl.SMOOTH) ' Enables smooth color shading > Gl.Viewport(0, 0, GLArea1.Width, GLArea1.Height) > Gl.MatrixMode(Gl.PROJECTION) > Gl.LoadIdentity() 'Reset The Projection Matrix > Glu.Perspective(45.0, GLArea1.w / GLArea1.Height, 0.1, 3000.0) > 'Calculate The Aspect Ratio Of The Window > Glu.LookAt(0, 100, 120, 0, 0, -300, 0, 100, 0) > Gl.MatrixMode(Gl.MODELVIEW) > > > End > > '< OTHER CODE GOES HERE > > > Public Sub Button1_Click() > > GLArea1.visible = True > > End > > Let me emphasise that *this skel**eton code works without problems* ! It > just opens an opengl window in the Glarea. > > The problem happens when the 'other code' gets inserted - but the other > code makes no reference to opengl or the GlArea and consists solely of > operations on unrelated things like manipulating arrays, working on > other controls, etc. > > I won't post the other code here because there's about 300kb of it. But > I have gone through it to make sure there are no references that could > interfere with openGL. > > So, fellow Gambas programmers.... I don't expect a specific solution, > but as a guide, what **sort** of issues generally cause OpenGl to return > "Not an object" when called ? > I can't help without the source code and a way to reproduce the problem. Regards, -- Beno?t Minisini From roseking at ...3413... Fri Jan 9 23:28:35 2015 From: roseking at ...3413... (Francis Payne) Date: Sat, 10 Jan 2015 09:28:35 +1100 Subject: [Gambas-user] Does anyone have experience with gb.openGL and "Not an object"? In-Reply-To: <54B03D57.9020902@...1...> References: <54B03C42.9060501@...3413...> <54B03D57.9020902@...1...> Message-ID: <54B05613.2090609@...3413...> On 01/10/2015 07:43 AM, Beno?t Minisini wrote: > I can't help without the source code and a way to reproduce the problem. > > Regards, > > You're a brave man to offer to look at it ! My feeling that maybe posting the code was excessive was due to its size. Hence I asked for general guidelines to what sort of problems generally caused this issue. I've created a source archive, and I'm happy to get it to you, but it comes to 57 megabytes. Do you want me to post it to the mailing list ? Regards, Francis Payne From gambas at ...1... Fri Jan 9 23:39:49 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 09 Jan 2015 23:39:49 +0100 Subject: [Gambas-user] Does anyone have experience with gb.openGL and "Not an object"? In-Reply-To: <54B05613.2090609@...3413...> References: <54B03C42.9060501@...3413...> <54B03D57.9020902@...1...> <54B05613.2090609@...3413...> Message-ID: <54B058B5.2010208@...1...> Le 09/01/2015 23:28, Francis Payne a ?crit : > > On 01/10/2015 07:43 AM, Beno?t Minisini wrote: >> I can't help without the source code and a way to reproduce the problem. >> >> Regards, >> >> > You're a brave man to offer to look at it ! > > My feeling that maybe posting the code was excessive was due to its > size. Hence I asked for general guidelines to what sort of problems > generally caused this issue. > > I've created a source archive, and I'm happy to get it to you, but it > comes to 57 megabytes. Do you want me to post it to the mailing list ? > > Regards, Francis Payne > Can you reduce your project to isolate the problem? -- Beno?t Minisini From lewis at ...3412... Fri Jan 9 23:38:31 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 09 Jan 2015 16:38:31 -0600 Subject: [Gambas-user] Does anyone have experience with gb.openGL and "Not an object"? In-Reply-To: <54B05613.2090609@...3413...> References: <54B03C42.9060501@...3413...> <54B03D57.9020902@...1...> <54B05613.2090609@...3413...> Message-ID: <54B05867.3060803@...3412...> >> but it comes to 57 megabytes. Do you want me to post it to the mailing list ? << FYI: My previous experience is that the mailing list would reject it because of size. Lewis From karl.reinl at ...9... Sat Jan 10 01:55:20 2015 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 10 Jan 2015 01:55:20 +0100 Subject: [Gambas-user] Fieldlist output differs (extended) Message-ID: <1420851320.3822.25.camel@...40...> Salut Beno?t, For the Grid no matters, but use the fields with Eval and there the difference matter. !!!!!! finally, my question should also be, 'why EVAL works case sensitive' ???? -- Amicalement Charlie From Karl.Reinl at ...2345... Sat Jan 10 01:38:34 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 10 Jan 2015 01:38:34 +0100 Subject: [Gambas-user] Fieldlist output differs Message-ID: <1420850314.3822.19.camel@...40...> Salut Beno?t, On the screenshot you see Mysql, Postgesql and SQLite3 connections to a DB, all made with the same gambas-code for the 3 DB-Server. You can see, that the Fieldslist from Postgesql differs from the 2 others. For the Grid no matters, but use the fields with Eval and there the difference matter Screenshot and project attached -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto vom 2015-01-10 01:14:24.png Type: image/png Size: 147470 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SQL-Check-0.0.1.tar.gz Type: application/x-compressed-tar Size: 41924 bytes Desc: not available URL: From gambas at ...1... Sat Jan 10 02:51:49 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sat, 10 Jan 2015 02:51:49 +0100 Subject: [Gambas-user] Fieldlist output differs (extended) In-Reply-To: <1420851320.3822.25.camel@...40...> References: <1420851320.3822.25.camel@...40...> Message-ID: <54B085B5.3030909@...1...> Le 10/01/2015 01:55, Karl Reinl a ?crit : > Salut Beno?t, > > For the Grid no matters, but use the fields with Eval and there > the difference matter. > > !!!!!! finally, my question should also be, 'why EVAL works case sensitive' ???? > Alas the field names are decided by the database library or database client, not by Gambas. You can normally specified a field name explicitely with the "AS" keyword in the SQL request, but I'm almost sure it won't work the same in all databases. As for Eval, I don't understand your question. Eval() evaluates Gambas expressions, it has nothing to do with case sensitive by itself. It's the Gambas keyword that are case unsensitive. -- Beno?t Minisini From gambas at ...1... Sat Jan 10 02:55:11 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 10 Jan 2015 02:55:11 +0100 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54AFA945.1090308@...3412...> References: <54AFA945.1090308@...3412...> Message-ID: <54B0867F.6090809@...1...> Le 09/01/2015 11:11, Lewis Balentine a ?crit : > It appears to me that the Column Alignment Property does not work for > some types. > It's the DataView that override column alignments with cell specific alignments for Integer, Float, and unlimited String fields. I'm admit it's not very coherent... At the moment there is no way to know if the user has specified a specific alignment somewhere. Laybe I should create a property that would tell DataView if it should override or not the alignment? -- Beno?t Minisini From lewis at ...3412... Sat Jan 10 03:03:12 2015 From: lewis at ...3412... (Lewis Balentine) Date: Fri, 09 Jan 2015 20:03:12 -0600 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54B0867F.6090809@...1...> References: <54AFA945.1090308@...3412...> <54B0867F.6090809@...1...> Message-ID: <54B08860.4030001@...3412...> Thank you for the clarification. Maybe I should create a property that would tell DataView if it should override or not the alignment? That would be most helpful. :-) I wondered if there was such a property that I missed. regards, Lewis From tercoide at ...67... Sat Jan 10 03:50:43 2015 From: tercoide at ...67... (martin p cristia) Date: Fri, 9 Jan 2015 23:50:43 -0300 Subject: [Gambas-user] estru3D In-Reply-To: References: Message-ID: > Have a look here http://whiteislandsoftware.com I'm in touch with Willy already, tnx anyway From gambas at ...2524... Sat Jan 10 08:01:55 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 10 Jan 2015 07:01:55 +0000 Subject: [Gambas-user] Issue 594 in gambas: Container Panel Alineamiento Message-ID: <0-6813199134517018827-13877938665317246500-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 594 by cojinesr... at ...626...: Container Panel Alineamiento https://code.google.com/p/gambas/issues/detail?id=594 Describir el problema. El componente Panel no responde a los alineamientos (mandar a fondo, Enviar al frente). Perjudica a los otros controles, El panel siempre esta adelante de todos los demas controles 2) Dar informaci?n sobre su sistema. Utilice el men? "Informaci?n del [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.2.0-4-686-pae Architecture=x86 Distribution=debian 7.7 Desktop=? ( Openbox ) Theme=QWindows Language=es_MX.UTF-8 Memory=493M [Libraries] Cairo=libcairo.so.2.11200.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+3=libgtk-3.so.0.400.2 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.2 SDL=libSDL-1.2.so.0.11.4 3) Indique la versi?n de Gambas en las etiquetas de emisi?n, y si es un Gambas trunk Revision 6818 4) Proporcionar un peque?o proyecto que reproduce el error o el accidente. Adjunto 5) Como Reproducirlo Abrir ide gambas vercion trunk 1.- agregar componente container Panel 2.- agregar otro componente cualquiera 3.- selecionar panel boton derecho, en menu que aparece selecionar aliniamiento -> Enviar al fondo Attachments: Bug01Panel.tar.gz 4.6 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From lewis at ...3412... Sat Jan 10 09:52:44 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 10 Jan 2015 02:52:44 -0600 Subject: [Gambas-user] For Each ?WHAT? in Result Message-ID: <54B0E85C.7000507@...3412...> Result (gb.db) This class represents the result of a SQL request. This class is not creatable. This class acts like a read / write array. This class is *enumerable* with the FOR EACH keyword. Guess this should be obvious but not to me .... pray tell what type/class does one use to enumerate it ?? I tried "ResultField[]" I tried "Collection" I tried to try "record" As a last resort I tried String[] Suffice it to say: I have not a clue :-\ ======== Dim MyResult as Result Dim MyRecord as ????? Result = Connection.Find (Something) For Each MyRecord in MyResult Print MyRecord["Field1Name"] Print MyRecord["Field2Name"] Print MyRecord["Field3Name"] Next ============ regards, Lewis From Gambas at ...1950... Sat Jan 10 10:04:14 2015 From: Gambas at ...1950... (Caveat) Date: Sat, 10 Jan 2015 10:04:14 +0100 Subject: [Gambas-user] For Each ?WHAT? in Result In-Reply-To: <54B0E85C.7000507@...3412...> References: <54B0E85C.7000507@...3412...> Message-ID: <54B0EB0E.1060704@...1950...> I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result And then clicked on the big obvious link to FOR EACH, arriving here: http://gambaswiki.org/wiki/lang/foreach And then didn't look at the second example... :-P Kind regards, Caveat On 10/01/15 09:52, Lewis Balentine wrote: > Result (gb.db) > This class represents the result of a SQL request. > This class is not creatable. > This class acts like a read / write array. > This class is *enumerable* with the FOR EACH keyword. > > Guess this should be obvious but not to me .... pray tell what > type/class does one use to enumerate it ?? > I tried "ResultField[]" > I tried "Collection" > I tried to try "record" > As a last resort I tried String[] > Suffice it to say: I have not a clue :-\ > > ======== > Dim MyResult as Result > Dim MyRecord as ????? > > Result = Connection.Find (Something) > > For Each MyRecord in MyResult > Print MyRecord["Field1Name"] > Print MyRecord["Field2Name"] > Print MyRecord["Field3Name"] > Next > ============ > regards, > > Lewis > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Sat Jan 10 10:33:37 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 10 Jan 2015 03:33:37 -0600 Subject: [Gambas-user] For Each ?WHAT? in Result In-Reply-To: <54B0EB0E.1060704@...1950...> References: <54B0E85C.7000507@...3412...> <54B0EB0E.1060704@...1950...> Message-ID: <54B0F1F1.1030301@...3412...> Thank thee ... :-) I did follow that path and I did miss the nuance of the second example. On 01/10/2015 03:04 AM, Caveat wrote: > I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result > And then clicked on the big obvious link to FOR EACH, arriving here: > http://gambaswiki.org/wiki/lang/foreach > And then didn't look at the second example... :-P > > Kind regards, > Caveat > > On 10/01/15 09:52, Lewis Balentine wrote: >> Result (gb.db) >> This class represents the result of a SQL request. >> This class is not creatable. >> This class acts like a read / write array. >> This class is *enumerable* with the FOR EACH keyword. >> >> Guess this should be obvious but not to me .... pray tell what >> type/class does one use to enumerate it ?? >> I tried "ResultField[]" >> I tried "Collection" >> I tried to try "record" >> As a last resort I tried String[] >> Suffice it to say: I have not a clue :-\ >> >> ======== >> Dim MyResult as Result >> Dim MyRecord as ????? >> >> Result = Connection.Find (Something) >> >> For Each MyRecord in MyResult >> Print MyRecord["Field1Name"] >> Print MyRecord["Field2Name"] >> Print MyRecord["Field3Name"] >> Next >> ============ >> regards, >> >> Lewis >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming! The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...2345... Sat Jan 10 11:23:17 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 10 Jan 2015 11:23:17 +0100 Subject: [Gambas-user] Fieldlist output differs (extended) In-Reply-To: <54B085B5.3030909@...1...> References: <1420851320.3822.25.camel@...40...> <54B085B5.3030909@...1...> Message-ID: <1420885397.3472.14.camel@...40...> Am Samstag, den 10.01.2015, 02:51 +0100 schrieb Beno?t Minisini: > As for Eval, I don't understand your question. > > Eval() evaluates Gambas expressions, it has nothing to do with case > sensitive by itself. > > It's the Gambas keyword that are case unsensitive. > Salut Beno?t, I add the . to a collection, where I have to replace the dot by an underscore. This collection I pass to Eval() lets say I pass this expression :iif(Employee_Name,Employee_Name,'unknown') Works well for mysql and sqlite but postgres has only a 'Employee_name'. Upps : understand now, it is not Eval(), Eval just hides the Error message, right. For the "AS" keyword, Name results from an "AS" Thanks anyway From taboege at ...626... Sat Jan 10 11:59:05 2015 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Jan 2015 11:59:05 +0100 Subject: [Gambas-user] For Each ?WHAT? in Result In-Reply-To: <54B0F1F1.1030301@...3412...> References: <54B0E85C.7000507@...3412...> <54B0EB0E.1060704@...1950...> <54B0F1F1.1030301@...3412...> Message-ID: <20150110105905.GA541@...2774...> On Sat, 10 Jan 2015, Lewis Balentine wrote: > On 01/10/2015 03:04 AM, Caveat wrote: > > On 10/01/15 09:52, Lewis Balentine wrote: > >> Result (gb.db) > >> This class represents the result of a SQL request. > >> This class is not creatable. > >> This class acts like a read / write array. > >> This class is *enumerable* with the FOR EACH keyword. > >> > >> Guess this should be obvious but not to me .... pray tell what > >> type/class does one use to enumerate it ?? > >> I tried "ResultField[]" > >> I tried "Collection" > >> I tried to try "record" > >> As a last resort I tried String[] > >> Suffice it to say: I have not a clue :-\ > >> > >> ======== > >> Dim MyResult as Result > >> Dim MyRecord as ????? > >> > >> Result = Connection.Find (Something) > >> > >> For Each MyRecord in MyResult > >> Print MyRecord["Field1Name"] > >> Print MyRecord["Field2Name"] > >> Print MyRecord["Field3Name"] > >> Next > >> ============ > >> regards, > >> > >> Lewis > > > > I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result > > And then clicked on the big obvious link to FOR EACH, arriving here: > > http://gambaswiki.org/wiki/lang/foreach > > And then didn't look at the second example... :-P > > > > Kind regards, > > Caveat > > > > Thank thee ... :-) > I did follow that path and I did miss the nuance of the second example. > Better yet, don't click on the "FOR EACH" link but on the "enumerable" link. This brings you to the Result-specific documentation for enumeration. You want to remember this because not every class is mentioned in the FOR EACH language documentation. As you see, Result has a different way of being enumerated. Instead of returning the objects in the result, a new iteration moves an internal cursor through the rows of the result data. This means, each execution of the loop body For Each hResult Print hResult!onefield Next will yield a different print (unless some rows contain the same value, of course). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From lewis at ...3412... Sat Jan 10 12:54:42 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 10 Jan 2015 05:54:42 -0600 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54B0867F.6090809@...1...> References: <54AFA945.1090308@...3412...> <54B0867F.6090809@...1...> Message-ID: <54B11302.6010102@...3412...> I changed my Integers to Longs and set limits on the length of most of the strings. I do have a suggestion if you get around to working on this: add a property to the columns to hold a format$ examples: Dataview.View.Columns[?].Format="mm/dd/yyyy" Dataview.View.Columns[?].Format="dd mmm yyyy" This would be handy particularly where a date is stored with no real time portion. Dates are displayed as: mm/dd/yyyy hh:nn:ss Example: 21 January 2015 displays as 01/21/2015 00:00:00 There are probably other circumstances where it would be useful. Now someone is going to tell me that capability has already implemented and I have missed reading the proper link again. :-) Cheers, Lewis On 01/09/2015 07:55 PM, Beno?t Minisini wrote: > Le 09/01/2015 11:11, Lewis Balentine a ?crit : >> It appears to me that the Column Alignment Property does not work for >> some types. >> > It's the DataView that override column alignments with cell specific > alignments for Integer, Float, and unlimited String fields. I'm admit > it's not very coherent... > > At the moment there is no way to know if the user has specified a > specific alignment somewhere. > > Laybe I should create a property that would tell DataView if it should > override or not the alignment? > From Gambas at ...1950... Sat Jan 10 13:16:15 2015 From: Gambas at ...1950... (Caveat) Date: Sat, 10 Jan 2015 13:16:15 +0100 Subject: [Gambas-user] For Each ?WHAT? in Result In-Reply-To: <20150110105905.GA541@...2774...> References: <54B0E85C.7000507@...3412...> <54B0EB0E.1060704@...1950...> <54B0F1F1.1030301@...3412...> <20150110105905.GA541@...2774...> Message-ID: <54B1180F.4010503@...1950...> But the documentation arrived at by following the enumerable link doesn't give a fully working code example, and also doesn't document whether the order of the enumeration is predictable, which we'd better hope it is if you ever decide to use an "order by" clause :-D I'll see if have time to sign up and edit the page later, unless someone else can already take care of this? Thanks and kind regards Caveat On 10/01/15 11:59, Tobias Boege wrote: > On Sat, 10 Jan 2015, Lewis Balentine wrote: >> On 01/10/2015 03:04 AM, Caveat wrote: >>> On 10/01/15 09:52, Lewis Balentine wrote: >>>> Result (gb.db) >>>> This class represents the result of a SQL request. >>>> This class is not creatable. >>>> This class acts like a read / write array. >>>> This class is *enumerable* with the FOR EACH keyword. >>>> >>>> Guess this should be obvious but not to me .... pray tell what >>>> type/class does one use to enumerate it ?? >>>> I tried "ResultField[]" >>>> I tried "Collection" >>>> I tried to try "record" >>>> As a last resort I tried String[] >>>> Suffice it to say: I have not a clue :-\ >>>> >>>> ======== >>>> Dim MyResult as Result >>>> Dim MyRecord as ????? >>>> >>>> Result = Connection.Find (Something) >>>> >>>> For Each MyRecord in MyResult >>>> Print MyRecord["Field1Name"] >>>> Print MyRecord["Field2Name"] >>>> Print MyRecord["Field3Name"] >>>> Next >>>> ============ >>>> regards, >>>> >>>> Lewis >>> I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result >>> And then clicked on the big obvious link to FOR EACH, arriving here: >>> http://gambaswiki.org/wiki/lang/foreach >>> And then didn't look at the second example... :-P >>> >>> Kind regards, >>> Caveat >>> >> Thank thee ... :-) >> I did follow that path and I did miss the nuance of the second example. >> > Better yet, don't click on the "FOR EACH" link but on the "enumerable" link. > This brings you to the Result-specific documentation for enumeration. You > want to remember this because not every class is mentioned in the FOR EACH > language documentation. > > As you see, Result has a different way of being enumerated. Instead of > returning the objects in the result, a new iteration moves an internal > cursor through the rows of the result data. This means, each execution of > the loop body > > For Each hResult > Print hResult!onefield > Next > > will yield a different print (unless some rows contain the same value, of > course). > > Regards, > Tobi > From lewis at ...3412... Sat Jan 10 13:24:29 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 10 Jan 2015 06:24:29 -0600 Subject: [Gambas-user] For Each ?WHAT? in Result In-Reply-To: <54B1180F.4010503@...1950...> References: <54B0E85C.7000507@...3412...> <54B0EB0E.1060704@...1950...> <54B0F1F1.1030301@...3412...> <20150110105905.GA541@...2774...> <54B1180F.4010503@...1950...> Message-ID: <54B119FD.7020807@...3412...> I does work as expected with the "order by clause". On 01/10/2015 06:16 AM, Caveat wrote: > But the documentation arrived at by following the enumerable link > doesn't give a fully working code example, and also doesn't document > whether the order of the enumeration is predictable, which we'd better > hope it is if you ever decide to use an "order by" clause :-D > > I'll see if have time to sign up and edit the page later, unless someone > else can already take care of this? > > Thanks and kind regards > Caveat > > From roseking at ...3413... Sat Jan 10 14:00:13 2015 From: roseking at ...3413... (Francis Payne) Date: Sun, 11 Jan 2015 00:00:13 +1100 Subject: [Gambas-user] OpenGl - 'Not an Object' - solved Message-ID: <54B1225D.5000208@...3413...> Sorry, guys. Finally worked out the issue - I'd redefined 'gl' as an integer deep in some old code - the whole project was converted from VB6 when gl had no meaning. I was searching for gl. (with a dot) to avoid other references inside longer expressions. So panic over. From gambas at ...2524... Sat Jan 10 14:04:41 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 10 Jan 2015 13:04:41 +0000 Subject: [Gambas-user] Issue 594 in gambas: Container Panel Alineamiento In-Reply-To: <0-6813199134517018827-13877938665317246500-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-13877938665317246500-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-13877938665317246500-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #1 on issue 594 by benoit.m... at ...626...: Container Panel Alineamiento https://code.google.com/p/gambas/issues/detail?id=594 Sorry, I can't speak spanish. Please write your bug report in english. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Jan 10 14:08:35 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 10 Jan 2015 14:08:35 +0100 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54B11302.6010102@...3412...> References: <54AFA945.1090308@...3412...> <54B0867F.6090809@...1...> <54B11302.6010102@...3412...> Message-ID: <54B12453.8000202@...1...> Le 10/01/2015 12:54, Lewis Balentine a ?crit : > I changed my Integers to Longs and set limits on the length of most of > the strings. > I do have a suggestion if you get around to working on this: > add a property to the columns to hold a format$ > > examples: > Dataview.View.Columns[?].Format="mm/dd/yyyy" > Dataview.View.Columns[?].Format="dd mmm yyyy" > > This would be handy particularly where a date is stored with no real > time portion. > Dates are displayed as: mm/dd/yyyy hh:nn:ss > Example: > 21 January 2015 displays as 01/21/2015 00:00:00 > > There are probably other circumstances where it would be useful. > > Now someone is going to tell me that capability has already implemented > and I have missed reading the proper link again. :-) > > Cheers, > > Lewis > > The DataView control (normally) raises a Data event for each cell it draws. In the event handler, you can use the DataView.Data property to modifiy the contents of the cell just before it is drawn, exactly like the Data event of the TableView control. Then you can change how the cell value is drawn, the alignment, the colors... Regards, -- Beno?t Minisini From lewis at ...3412... Sat Jan 10 14:16:39 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 10 Jan 2015 07:16:39 -0600 Subject: [Gambas-user] Order By Clause Message-ID: <54B12637.4000502@...3412...> Is there any way to sneak an "order by" clause into a Datasource or Dataview. I did try putting a complete SQL statement in place of the Table name but that results in a read-only result regardless of the value of the Datasource.ReadOnly property. I know I can set the Sort poperty true to allow resorting by a particular column but I would like to have control of initial order by a combination of columns (i.e "order by StartDateTime, Channel, Status"). Regards, Lewis Balentine From lewis at ...3412... Sat Jan 10 15:13:48 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 10 Jan 2015 08:13:48 -0600 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54B12453.8000202@...1...> References: <54AFA945.1090308@...3412...> <54B0867F.6090809@...1...> <54B11302.6010102@...3412...> <54B12453.8000202@...1...> Message-ID: <54B1339C.6040103@...3412...> My application is sort of a mini-datamanager where the end user determine which tables/fields they need/want to access. The application generates the datasources and dataviews at run time. Each table is displayed in its own tab of a Tabstrip /(small screen shot attached)/. There are two tables in the DB that hold the parameters for the run-time tabs. My OOP competency level is marginal :-[ I am actually amazed that I have made as much progress with this as I have. *Correct me if I am wrong: * The event handler would have to be created at design time. Thus I would need to create a new control class that inherits dataview. Lewis On 01/10/2015 07:08 AM, Beno?t Minisini wrote: > The DataView control (normally) raises a Data event for each cell it draws. > > In the event handler, you can use the DataView.Data property to modifiy > the contents of the cell just before it is drawn, exactly like the Data > event of the TableView control. > > Then you can change how the cell value is drawn, the alignment, the > colors... > > Regards, > -------------- next part -------------- A non-text attachment was scrubbed... Name: KWPVR2-Gui2.png Type: image/png Size: 62295 bytes Desc: not available URL: From gambas at ...1... Sat Jan 10 15:28:28 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 10 Jan 2015 15:28:28 +0100 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54B1339C.6040103@...3412...> References: <54AFA945.1090308@...3412...> <54B0867F.6090809@...1...> <54B11302.6010102@...3412...> <54B12453.8000202@...1...> <54B1339C.6040103@...3412...> Message-ID: <54B1370C.4090504@...1...> Le 10/01/2015 15:13, Lewis Balentine a ?crit : > My application is sort of a mini-datamanager where the end user > determine which tables/fields they need/want to access. The application > generates the datasources and dataviews at run time. Each table is > displayed in its own tab of a Tabstrip /(small screen shot attached)/. > There are two tables in the DB that hold the parameters for the run-time > tabs. > > My OOP competency level is marginal :-[ > I am actually amazed that I have made as much progress with this as I have. > > *Correct me if I am wrong: * > The event handler would have to be created at design time. > Thus I would need to create a new control class that inherits dataview. > > Lewis > You have three "patterns" in Gambas to solve your problem (extending the behaviour of a control): the Observer class, the Object.Attach() method, and inheritance. If you are new to OOP, then you should read the "Gambas object model" document on the wiki slowly, carefully and many times, until you understand these three "patterns". I have to leave, I can't explain more now. Regards, -- Beno?t Minisini From lewis at ...3412... Sat Jan 10 15:55:54 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 10 Jan 2015 08:55:54 -0600 Subject: [Gambas-user] Column Alignment Property In-Reply-To: <54B1370C.4090504@...1...> References: <54AFA945.1090308@...3412...> <54B0867F.6090809@...1...> <54B11302.6010102@...3412...> <54B12453.8000202@...1...> <54B1339C.6040103@...3412...> <54B1370C.4090504@...1...> Message-ID: <54B13D7A.4090101@...3412...> You and the other members of the mailing list have been very patient, tolerant and helpful. Version 1 is a text file based Gambas console app and is currently serving the immediate need. I am working on version 2 that is database driven with a GUI interface. I think that I shall reserve fine-tuning the Data-Manager for version 3 or 4. Best Regards, Lewis Balentine On 01/10/2015 08:28 AM, Beno?t Minisini wrote: > > You have three "patterns" in Gambas to solve your problem (extending the > behaviour of a control): the Observer class, the Object.Attach() method, > and inheritance. > > If you are new to OOP, then you should read the "Gambas object model" > document on the wiki slowly, carefully and many times, until you > understand these three "patterns". > > I have to leave, I can't explain more now. > > Regards, > From mmcg29440 at ...3163... Sat Jan 10 17:00:56 2015 From: mmcg29440 at ...3163... (Martin McGlensey) Date: Sat, 10 Jan 2015 11:00:56 -0500 Subject: [Gambas-user] How do I directly access the child controls in a panel container. Message-ID: Hello, One can address a control on another form with fMain.txtHello.Text. This syntax also works for other container objects. I have a form with a panel control. There are several controls within the panel. To avoid naming conflicts I want to keep the panel controls separate from the parent form. Something like panel.txtEdit.Text would be great but, it does not work. I can get the "children" collection of the panel and get the control names. That does not help. I need to get to the control and use its properties and events. Is there a way to do this? Thanks From epost at ...3323... Sat Jan 10 17:08:58 2015 From: epost at ...3323... (=?windows-1252?Q?J=F8rn_Erik_M=F8rne?=) Date: Sat, 10 Jan 2015 17:08:58 +0100 Subject: [Gambas-user] How do I directly access the child controls in a panel container. In-Reply-To: References: Message-ID: <54B14E9A.2090205@...3323...> > Hello, > > > > One can address a control on another form with fMain.txtHello.Text. This > syntax also works for other container objects. I have a form with a panel > control. There are several controls within the panel. To avoid naming > conflicts I want to keep the panel controls separate from the parent form. > Something like panel.txtEdit.Text would be great but, it does not work. I > can get the "children" collection of the panel and get the control names. > That does not help. I need to get to the control and use its properties and > events. Is there a way to do this? > > > > Thanks > This is the way: Panel1.Children[1].Text From t.lee.davidson at ...626... Sat Jan 10 18:48:21 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 10 Jan 2015 12:48:21 -0500 Subject: [Gambas-user] For Each ?WHAT? in Result In-Reply-To: <54B1180F.4010503@...1950...> References: <54B0E85C.7000507@...3412...> <54B0EB0E.1060704@...1950...> <54B0F1F1.1030301@...3412...> <20150110105905.GA541@...2774...> <54B1180F.4010503@...1950...> Message-ID: <54B165E5.2060904@...626...> Done. I just copied the example from the 'foreach' page. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/10/2015 07:16 AM, Caveat wrote: > But the documentation arrived at by following the enumerable link > doesn't give a fully working code example, and also doesn't document > whether the order of the enumeration is predictable, which we'd better > hope it is if you ever decide to use an "order by" clause :-D > > I'll see if have time to sign up and edit the page later, unless someone > else can already take care of this? > > Thanks and kind regards > Caveat > > On 10/01/15 11:59, Tobias Boege wrote: >> On Sat, 10 Jan 2015, Lewis Balentine wrote: >>> On 01/10/2015 03:04 AM, Caveat wrote: >>>> On 10/01/15 09:52, Lewis Balentine wrote: >>>>> Result (gb.db) >>>>> This class represents the result of a SQL request. >>>>> This class is not creatable. >>>>> This class acts like a read / write array. >>>>> This class is *enumerable* with the FOR EACH keyword. >>>>> >>>>> Guess this should be obvious but not to me .... pray tell what >>>>> type/class does one use to enumerate it ?? >>>>> I tried "ResultField[]" >>>>> I tried "Collection" >>>>> I tried to try "record" >>>>> As a last resort I tried String[] >>>>> Suffice it to say: I have not a clue :-\ >>>>> >>>>> ======== >>>>> Dim MyResult as Result >>>>> Dim MyRecord as ????? >>>>> >>>>> Result = Connection.Find (Something) >>>>> >>>>> For Each MyRecord in MyResult >>>>> Print MyRecord["Field1Name"] >>>>> Print MyRecord["Field2Name"] >>>>> Print MyRecord["Field3Name"] >>>>> Next >>>>> ============ >>>>> regards, >>>>> >>>>> Lewis >>>> I presume you started here http://gambaswiki.org/wiki/comp/gb.db/result >>>> And then clicked on the big obvious link to FOR EACH, arriving here: >>>> http://gambaswiki.org/wiki/lang/foreach >>>> And then didn't look at the second example... :-P >>>> >>>> Kind regards, >>>> Caveat >>>> >>> Thank thee ... :-) >>> I did follow that path and I did miss the nuance of the second example. >>> >> Better yet, don't click on the "FOR EACH" link but on the "enumerable" link. >> This brings you to the Result-specific documentation for enumeration. You >> want to remember this because not every class is mentioned in the FOR EACH >> language documentation. >> >> As you see, Result has a different way of being enumerated. Instead of >> returning the objects in the result, a new iteration moves an internal >> cursor through the rows of the result data. This means, each execution of >> the loop body >> >> For Each hResult >> Print hResult!onefield >> Next >> >> will yield a different print (unless some rows contain the same value, of >> course). >> >> Regards, >> Tobi >> > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From t.lee.davidson at ...626... Sat Jan 10 19:27:14 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 10 Jan 2015 13:27:14 -0500 Subject: [Gambas-user] How do I directly access the child controls in a panel container. In-Reply-To: <54B14E9A.2090205@...3323...> References: <54B14E9A.2090205@...3323...> Message-ID: <54B16F02.7040606@...626...> On 01/10/2015 11:08 AM, J?rn Erik M?rne wrote: > >> Hello, >> >> >> >> One can address a control on another form with fMain.txtHello.Text. This >> syntax also works for other container objects. I have a form with a panel >> control. There are several controls within the panel. To avoid naming >> conflicts I want to keep the panel controls separate from the parent form. >> Something like panel.txtEdit.Text would be great but, it does not work. I >> can get the "children" collection of the panel and get the control names. >> That does not help. I need to get to the control and use its properties and >> events. Is there a way to do this? >> >> >> >> Thanks >> > This is the way: Panel1.Children[1].Text > The documentation for Container.Children says that it, "Returns a collection [...]" But it does not return a Collection (class). That's too bad. The ability to do Panel1.Children["TextBox1"].Text would be nice. From taboege at ...626... Sat Jan 10 19:37:08 2015 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Jan 2015 19:37:08 +0100 Subject: [Gambas-user] How do I directly access the child controls in a panel container. In-Reply-To: <54B16F02.7040606@...626...> References: <54B14E9A.2090205@...3323...> <54B16F02.7040606@...626...> Message-ID: <20150110183708.GD541@...2774...> On Sat, 10 Jan 2015, T Lee Davidson wrote: > On 01/10/2015 11:08 AM, J?rn Erik M?rne wrote: > > > >> Hello, > >> > >> > >> > >> One can address a control on another form with fMain.txtHello.Text. This > >> syntax also works for other container objects. I have a form with a panel > >> control. There are several controls within the panel. To avoid naming > >> conflicts I want to keep the panel controls separate from the parent form. > >> Something like panel.txtEdit.Text would be great but, it does not work. I > >> can get the "children" collection of the panel and get the control names. > >> That does not help. I need to get to the control and use its properties and > >> events. Is there a way to do this? > >> > >> > >> > >> Thanks > >> > > This is the way: Panel1.Children[1].Text > > > > The documentation for Container.Children says that it, "Returns a collection [...]" But it does not return a Collection (class). > > That's too bad. The ability to do Panel1.Children["TextBox1"].Text would be nice. > If Panel1's containing Form is FForm, then you can do FForm.Controls["TextBox1"] to have this access pattern. Since for every non-Form control, there must be a Form somewhere up in the parent chain, it is always an option to go up Panel.Parent, Panel.Parent.Parent, etc. to find the *first* container which is a Form and then use its Controls property as shown above. Since all controls (recursively[*]) included in a form must have different names, there are no name clashes by design. [*] It is not so easy if your Form embeds other Forms. If you want to, say, list all control names in your form, you descend recursively from the Form through all containers and Print their children's names. In this process, you may not descend into containers which happen to be Forms because another Form is a brand new namespace and you don't want the new names which are in there. To test whether a container is a form, you can use the Is operator[0]. Regards, Tobi [0] http://gambaswiki.org/wiki/lang/is -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From Karl.Reinl at ...2345... Sat Jan 10 19:42:34 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 10 Jan 2015 19:42:34 +0100 Subject: [Gambas-user] How do I directly access the child controls in a panel container. In-Reply-To: <54B16F02.7040606@...626...> References: <54B14E9A.2090205@...3323...> <54B16F02.7040606@...626...> Message-ID: <1420915354.3966.1.camel@...40...> Am Samstag, den 10.01.2015, 13:27 -0500 schrieb T Lee Davidson: > On 01/10/2015 11:08 AM, J?rn Erik M?rne wrote: > > > >> Hello, > >> > >> > >> > >> One can address a control on another form with fMain.txtHello.Text. This > >> syntax also works for other container objects. I have a form with a panel > >> control. There are several controls within the panel. To avoid naming > >> conflicts I want to keep the panel controls separate from the parent form. > >> Something like panel.txtEdit.Text would be great but, it does not work. I > >> can get the "children" collection of the panel and get the control names. > >> That does not help. I need to get to the control and use its properties and > >> events. Is there a way to do this? > >> > >> > >> > >> Thanks > >> > > This is the way: Panel1.Children[1].Text > > > > The documentation for Container.Children says that it, "Returns a collection [...]" But it does not return a Collection (class). > > That's too bad. The ability to do Panel1.Children["TextBox1"].Text would be nice. > Salut, best would be Panel1.TextBox1.Text, he said it , on forms that works. -- Amicalement Charlie From t.lee.davidson at ...626... Sat Jan 10 20:46:32 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 10 Jan 2015 14:46:32 -0500 Subject: [Gambas-user] How do I directly access the child controls in a panel container. In-Reply-To: <20150110183708.GD541@...2774...> References: <54B14E9A.2090205@...3323...> <54B16F02.7040606@...626...> <20150110183708.GD541@...2774...> Message-ID: <54B18198.6040907@...626...> On 01/10/2015 01:37 PM, Tobias Boege wrote: > On Sat, 10 Jan 2015, T Lee Davidson wrote: >> On 01/10/2015 11:08 AM, J?rn Erik M?rne wrote: >>> >>>> Hello, >>>> >>>> >>>> >>>> One can address a control on another form with fMain.txtHello.Text. This >>>> syntax also works for other container objects. I have a form with a panel >>>> control. There are several controls within the panel. To avoid naming >>>> conflicts I want to keep the panel controls separate from the parent form. >>>> Something like panel.txtEdit.Text would be great but, it does not work. I >>>> can get the "children" collection of the panel and get the control names. >>>> That does not help. I need to get to the control and use its properties and >>>> events. Is there a way to do this? >>>> >>>> >>>> >>>> Thanks >>>> >>> This is the way: Panel1.Children[1].Text >>> >> >> The documentation for Container.Children says that it, "Returns a collection [...]" But it does not return a Collection (class). >> >> That's too bad. The ability to do Panel1.Children["TextBox1"].Text would be nice. >> > > If Panel1's containing Form is FForm, then you can do > > FForm.Controls["TextBox1"] > > to have this access pattern. Since for every non-Form control, there must be > a Form somewhere up in the parent chain, it is always an option to go up > Panel.Parent, Panel.Parent.Parent, etc. to find the *first* container which > is a Form and then use its Controls property as shown above. > > Since all controls (recursively[*]) included in a form must have different > names, there are no name clashes by design. > > [*] It is not so easy if your Form embeds other Forms. If you want to, say, > list all control names in your form, you descend recursively from the > Form through all containers and Print their children's names. > > In this process, you may not descend into containers which happen to be > Forms because another Form is a brand new namespace and you don't want > the new names which are in there. > > To test whether a container is a form, you can use the Is operator[0]. > > Regards, > Tobi > > [0] http://gambaswiki.org/wiki/lang/is > Thanks for the elucidation, Tobi. But, I must be missing something. FForm.Controls["TextBox1"] returns a Control which does not have a Text property. .Parent ("Panel1.Parent") returns a Container which also does not have a Text property. If we do something like Dim hForm As Form If Panel1.Parent Is Form Then hForm = Panel1.Parent we would have hForm.Controls["TextBox1"], which returns a Control with no Text property. So, we seem to be right back to needing to know the integer index of the control in the container: J?rn Erik M?rne wrote, "This is the way: Panel1.Children[1].Text" I did not realize that my little comment would elicit a response, and I do not wish to hijack Martin's thread. So, unless there is a better way to access the properties of a Container's children, then it seems his question has been answered. Lee __________ "Artificial Intelligence is no match for natural stupidity." From taboege at ...626... Sat Jan 10 21:33:12 2015 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Jan 2015 21:33:12 +0100 Subject: [Gambas-user] How do I directly access the child controls in a panel container. In-Reply-To: <54B18198.6040907@...626...> References: <54B14E9A.2090205@...3323...> <54B16F02.7040606@...626...> <20150110183708.GD541@...2774...> <54B18198.6040907@...626...> Message-ID: <20150110203312.GF541@...2774...> On Sat, 10 Jan 2015, T Lee Davidson wrote: > > If Panel1's containing Form is FForm, then you can do > > > > FForm.Controls["TextBox1"] > > > > to have this access pattern. Since for every non-Form control, there must be > > a Form somewhere up in the parent chain, it is always an option to go up > > Panel.Parent, Panel.Parent.Parent, etc. to find the *first* container which > > is a Form and then use its Controls property as shown above. > > > > Since all controls (recursively[*]) included in a form must have different > > names, there are no name clashes by design. > > > > [*] It is not so easy if your Form embeds other Forms. If you want to, say, > > list all control names in your form, you descend recursively from the > > Form through all containers and Print their children's names. > > > > In this process, you may not descend into containers which happen to be > > Forms because another Form is a brand new namespace and you don't want > > the new names which are in there. > > > > To test whether a container is a form, you can use the Is operator[0]. > > > > Regards, > > Tobi > > > > [0] http://gambaswiki.org/wiki/lang/is > > > > Thanks for the elucidation, Tobi. But, I must be missing something. > > FForm.Controls["TextBox1"] returns a Control which does not have a Text property. > > .Parent ("Panel1.Parent") returns a Container which also does not have a Text property. > > If we do something like > > Dim hForm As Form > If Panel1.Parent Is Form Then hForm = Panel1.Parent > > we would have hForm.Controls["TextBox1"], which returns a Control with no Text property. > It returns an object *typed* as a Control. But if the object is actually a TextBox, say, you can "cast" that Control to a TextBox, with something like Dim hControl As Control Dim hTextBox As TextBox hControl = FForm.Controls["TextBox1"] If hControl Is TextBox Then hTextBox = hControl ' ... Endif Since now the type of the hTextBox variable says "TextBox", and the object behind it has a Text property, this property can successfully be resolved. Note that for this trick to access non-Control properties, say Text, of an object typed as Control, you need a class which is an ancestor (in the inheritance tree) of the true class of that object and which also has that property. It does not suffice to pick an ancestor without this property or to pick a random class which also happens to have a Text property but is not an ancestor. (Like you cannot cast a Control which is actually a TextBox to a ComboBox in order to access its Text.) As for the hijacking, my bad. But I didn't understand Martin's question either way, so let's pretend I thought this was relevant to the thread :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at ...626... Sat Jan 10 22:27:32 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 10 Jan 2015 16:27:32 -0500 Subject: [Gambas-user] How do I directly access the child controls in a panel container. In-Reply-To: <20150110203312.GF541@...2774...> References: <54B14E9A.2090205@...3323...> <54B16F02.7040606@...626...> <20150110183708.GD541@...2774...> <54B18198.6040907@...626...> <20150110203312.GF541@...2774...> Message-ID: <54B19944.9050102@...626...> On 01/10/2015 03:33 PM, Tobias Boege wrote: > On Sat, 10 Jan 2015, T Lee Davidson wrote: >>> If Panel1's containing Form is FForm, then you can do >>> >>> FForm.Controls["TextBox1"] >>> [snip] >>> >> >> Thanks for the elucidation, Tobi. But, I must be missing something. >> >> FForm.Controls["TextBox1"] returns a Control which does not have a Text property. >> >> .Parent ("Panel1.Parent") returns a Container which also does not have a Text property. >> >> If we do something like >> >> Dim hForm As Form >> If Panel1.Parent Is Form Then hForm = Panel1.Parent >> >> we would have hForm.Controls["TextBox1"], which returns a Control with no Text property. >> > > It returns an object *typed* as a Control. But if the object is actually a > TextBox, say, you can "cast" that Control to a TextBox, with something like > > Dim hControl As Control > Dim hTextBox As TextBox > > hControl = FForm.Controls["TextBox1"] > If hControl Is TextBox Then > hTextBox = hControl > ' ... > Endif > > Since now the type of the hTextBox variable says "TextBox", and the object > behind it has a Text property, this property can successfully be resolved. That's great, Tobi. So then Martin can do something like: Dim hForm As Form Dim hControl As Control Dim hTextBox As TextBox If Panel1.Parent Is Form Then hForm = Panel1.Parent hControl = hForm.Controls["TextBox1"] If hControl Is TextBox Then hTextBox = hControl Print hTextBox.Text Endif Endif I tried it. It works. > As for the hijacking, my bad. But I didn't understand Martin's question > either way, so let's pretend I thought this was relevant to the thread :-) Lol. Okay. :-) Lee __________ "Artificial Intelligence is no match for natural stupidity." From taboege at ...626... Sun Jan 11 12:51:35 2015 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Jan 2015 12:51:35 +0100 Subject: [Gambas-user] [Gambas-devel-svn] SF.net SVN: gambas:[6822] gambas/trunk In-Reply-To: References: Message-ID: <20150111115135.GH541@...2774...> On Sun, 11 Jan 2015, gambas at ...1... wrote: > Revision: 6822 > http://sourceforge.net/p/gambas/code/6822 > Author: gambas > Date: 2015-01-11 03:14:44 +0000 (Sun, 11 Jan 2015) > Log Message: > ----------- > [WIKI CGI SCRIPT] > * NEW: New class list design in component pages. > * NEW: Full description in component pages. > Looks very nice! Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From vuott at ...325... Mon Jan 12 02:47:24 2015 From: vuott at ...325... (Ru Vuott) Date: Mon, 12 Jan 2015 01:47:24 +0000 Subject: [Gambas-user] Rev. #6829 --> Unable to compile gbh3 Message-ID: <1421027244.50098.YahooMailBasic@...3271...> Hello, with rev. 6829 I obtain this notice: Unable to compile gbh3 Well, I suppose I need to install preliminarily a library... what ? Regards vuott From gambas at ...1... Mon Jan 12 03:29:46 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 12 Jan 2015 03:29:46 +0100 Subject: [Gambas-user] Rev. #6829 --> Unable to compile gbh3 In-Reply-To: <1421027244.50098.YahooMailBasic@...3271...> References: <1421027244.50098.YahooMailBasic@...3271...> Message-ID: <54B3319A.6000409@...1...> Le 12/01/2015 02:47, Ru Vuott a ?crit : > Hello, > > with rev. 6829 I obtain this notice: > > Unable to compile gbh3 > > > Well, I suppose I need to install preliminarily a library... what ? > > Regards > vuott > You can safely ignore that for the moment. -- Beno?t Minisini From rolf.frogs at ...221... Mon Jan 12 10:06:40 2015 From: rolf.frogs at ...221... (rolf) Date: Mon, 12 Jan 2015 10:06:40 +0100 Subject: [Gambas-user] is there an example for generating curves Message-ID: <201501121006.41687.rolf.frogs@...221...> Hi, I can manage to draw curves of measured values, when they arrive i.e. the curve has to be extendet up to 50 times. And a second measurement session should be drawn in a second drawarea. The gambas documentation about drawarea is not really helpfull in this case. Is there an example where I can see how to handle two drawing areas and add points or lines in them (I think I have to use the cache, but can't see what is drawn). Many thanks for any help Rolf From gambas.fr at ...626... Mon Jan 12 12:22:33 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 12 Jan 2015 12:22:33 +0100 Subject: [Gambas-user] is there an example for generating curves In-Reply-To: <201501121006.41687.rolf.frogs@...221...> References: <201501121006.41687.rolf.frogs@...221...> Message-ID: Well.. you need two things in fact . first you can use an array of point : Private $aPoints as new Point[] Then you add in real time your points : $apoint.add(point(x,y)) and query the redraw of the drawing area MyDA.refresh Public sub MyDA_Draw() dim i as integer for i=0 to $aPoints.max -1 step 2 draw.line($apoint[i].x$apoint[i].y,$apoint[i+1].x,$apoint[i+1].y) next end You ca doing the same fr the second drawing area and of ourse a second point array. Don't forget that in gambas many of the control don't store datas, they are just viewer. You need some array to store datas and then use them to draw. Each time drawing area is refreshing you need to redraw the full curve .(and all things to draw is the view) Regards, Fabien Bodard 2015-01-12 10:06 GMT+01:00 rolf : > Hi, > > I can manage to draw curves of measured values, when they arrive i.e. the > curve has to be extendet up to 50 times. And a second measurement session > should be drawn in a second drawarea. > > The gambas documentation about drawarea is not really helpfull in this case. > > Is there an example where I can see how to handle two drawing areas and add > points or lines in them (I think I have to use the cache, but can't see what > is drawn). > > Many thanks for any help > Rolf > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > vanity: www.gigenet.com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Mon Jan 12 14:02:16 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 12 Jan 2015 14:02:16 +0100 Subject: [Gambas-user] is there an example for generating curves In-Reply-To: References: <201501121006.41687.rolf.frogs@...221...> Message-ID: Better than words, this is a demo ! 2015-01-12 12:22 GMT+01:00 Fabien Bodard : > Well.. you need two things in fact . first you can use an array of point : > > Private $aPoints as new Point[] > > > Then you add in real time your points : > > $apoint.add(point(x,y)) > and query the redraw of the drawing area > > MyDA.refresh > > > Public sub MyDA_Draw() > > dim i as integer > > for i=0 to $aPoints.max -1 step 2 > > draw.line($apoint[i].x$apoint[i].y,$apoint[i+1].x,$apoint[i+1].y) > > next > > end > > > You ca doing the same fr the second drawing area and of ourse a second > point array. > > Don't forget that in gambas many of the control don't store datas, > they are just viewer. > You need some array to store datas and then use them to draw. > > Each time drawing area is refreshing you need to redraw the full curve > .(and all things to draw is the view) > > Regards, > > Fabien Bodard > > 2015-01-12 10:06 GMT+01:00 rolf : >> Hi, >> >> I can manage to draw curves of measured values, when they arrive i.e. the >> curve has to be extendet up to 50 times. And a second measurement session >> should be drawn in a second drawarea. >> >> The gambas documentation about drawarea is not really helpfull in this case. >> >> Is there an example where I can see how to handle two drawing areas and add >> points or lines in them (I think I have to use the cache, but can't see what >> is drawn). >> >> Many thanks for any help >> Rolf >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> vanity: www.gigenet.com >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: demowaves-0.0.1.tar.gz Type: application/x-gzip Size: 4168 bytes Desc: not available URL: From jusabejusabe at ...626... Mon Jan 12 22:21:49 2015 From: jusabejusabe at ...626... (Julio Sanchez) Date: Mon, 12 Jan 2015 22:21:49 +0100 Subject: [Gambas-user] is there an example for generating curves In-Reply-To: References: <201501121006.41687.rolf.frogs@...221...> Message-ID: rolf: Here's an example of drawing Bezier curves http://jsbsan.blogspot.com.es/2014/07/dibujando-una-curva-bezier-de-mas-de-3.html Regards, Julio 2015-01-12 14:02 GMT+01:00 Fabien Bodard : > Better than words, this is a demo ! > > 2015-01-12 12:22 GMT+01:00 Fabien Bodard : > > Well.. you need two things in fact . first you can use an array of point > : > > > > Private $aPoints as new Point[] > > > > > > Then you add in real time your points : > > > > $apoint.add(point(x,y)) > > and query the redraw of the drawing area > > > > MyDA.refresh > > > > > > Public sub MyDA_Draw() > > > > dim i as integer > > > > for i=0 to $aPoints.max -1 step 2 > > > > draw.line($apoint[i].x$apoint[i].y,$apoint[i+1].x,$apoint[i+1].y) > > > > next > > > > end > > > > > > You ca doing the same fr the second drawing area and of ourse a second > > point array. > > > > Don't forget that in gambas many of the control don't store datas, > > they are just viewer. > > You need some array to store datas and then use them to draw. > > > > Each time drawing area is refreshing you need to redraw the full curve > > .(and all things to draw is the view) > > > > Regards, > > > > Fabien Bodard > > > > 2015-01-12 10:06 GMT+01:00 rolf : > >> Hi, > >> > >> I can manage to draw curves of measured values, when they arrive i.e. > the > >> curve has to be extendet up to 50 times. And a second measurement > session > >> should be drawn in a second drawarea. > >> > >> The gambas documentation about drawarea is not really helpfull in this > case. > >> > >> Is there an example where I can see how to handle two drawing areas and > add > >> points or lines in them (I think I have to use the cache, but can't see > what > >> is drawn). > >> > >> Many thanks for any help > >> Rolf > >> > >> > ------------------------------------------------------------------------------ > >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > >> GigeNET is offering a free month of service with a new server in > Ashburn. > >> Choose from 2 high performing configs, both with 100TB of bandwidth. > >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. > >> vanity: www.gigenet.com > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > Fabien Bodard > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > vanity: www.gigenet.com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Mon Jan 12 22:48:34 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 12 Jan 2015 22:48:34 +0100 Subject: [Gambas-user] is there an example for generating curves In-Reply-To: References: <201501121006.41687.rolf.frogs@...221...> Message-ID: Hi julio : Public Struct PuntoBezier x As Float y As Float End Struct You can use PointF class for that Dim p as PointF 2015-01-12 22:21 GMT+01:00 Julio Sanchez : > rolf: > > Here's an example of drawing Bezier curves > > http://jsbsan.blogspot.com.es/2014/07/dibujando-una-curva-bezier-de-mas-de-3.html > > > Regards, > > Julio > > 2015-01-12 14:02 GMT+01:00 Fabien Bodard : > >> Better than words, this is a demo ! >> >> 2015-01-12 12:22 GMT+01:00 Fabien Bodard : >> > Well.. you need two things in fact . first you can use an array of point >> : >> > >> > Private $aPoints as new Point[] >> > >> > >> > Then you add in real time your points : >> > >> > $apoint.add(point(x,y)) >> > and query the redraw of the drawing area >> > >> > MyDA.refresh >> > >> > >> > Public sub MyDA_Draw() >> > >> > dim i as integer >> > >> > for i=0 to $aPoints.max -1 step 2 >> > >> > draw.line($apoint[i].x$apoint[i].y,$apoint[i+1].x,$apoint[i+1].y) >> > >> > next >> > >> > end >> > >> > >> > You ca doing the same fr the second drawing area and of ourse a second >> > point array. >> > >> > Don't forget that in gambas many of the control don't store datas, >> > they are just viewer. >> > You need some array to store datas and then use them to draw. >> > >> > Each time drawing area is refreshing you need to redraw the full curve >> > .(and all things to draw is the view) >> > >> > Regards, >> > >> > Fabien Bodard >> > >> > 2015-01-12 10:06 GMT+01:00 rolf : >> >> Hi, >> >> >> >> I can manage to draw curves of measured values, when they arrive i.e. >> the >> >> curve has to be extendet up to 50 times. And a second measurement >> session >> >> should be drawn in a second drawarea. >> >> >> >> The gambas documentation about drawarea is not really helpfull in this >> case. >> >> >> >> Is there an example where I can see how to handle two drawing areas and >> add >> >> points or lines in them (I think I have to use the cache, but can't see >> what >> >> is drawn). >> >> >> >> Many thanks for any help >> >> Rolf >> >> >> >> >> ------------------------------------------------------------------------------ >> >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> >> GigeNET is offering a free month of service with a new server in >> Ashburn. >> >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> >> vanity: www.gigenet.com >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> > -- >> > Fabien Bodard >> >> >> >> -- >> Fabien Bodard >> >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> vanity: www.gigenet.com >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > www.gigenet.com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From jusabejusabe at ...626... Tue Jan 13 08:07:13 2015 From: jusabejusabe at ...626... (Julio Sanchez) Date: Tue, 13 Jan 2015 08:07:13 +0100 Subject: [Gambas-user] is there an example for generating curves In-Reply-To: References: <201501121006.41687.rolf.frogs@...221...> Message-ID: Ok Fabien :) Regards, Julio 2015-01-12 22:48 GMT+01:00 Fabien Bodard : > Hi julio : > > Public Struct PuntoBezier > x As Float > y As Float > End Struct > > You can use PointF class for that > > > Dim p as PointF > > 2015-01-12 22:21 GMT+01:00 Julio Sanchez : > > rolf: > > > > Here's an example of drawing Bezier curves > > > > > http://jsbsan.blogspot.com.es/2014/07/dibujando-una-curva-bezier-de-mas-de-3.html > > > > > > Regards, > > > > Julio > > > > 2015-01-12 14:02 GMT+01:00 Fabien Bodard : > > > >> Better than words, this is a demo ! > >> > >> 2015-01-12 12:22 GMT+01:00 Fabien Bodard : > >> > Well.. you need two things in fact . first you can use an array of > point > >> : > >> > > >> > Private $aPoints as new Point[] > >> > > >> > > >> > Then you add in real time your points : > >> > > >> > $apoint.add(point(x,y)) > >> > and query the redraw of the drawing area > >> > > >> > MyDA.refresh > >> > > >> > > >> > Public sub MyDA_Draw() > >> > > >> > dim i as integer > >> > > >> > for i=0 to $aPoints.max -1 step 2 > >> > > >> > draw.line($apoint[i].x$apoint[i].y,$apoint[i+1].x,$apoint[i+1].y) > >> > > >> > next > >> > > >> > end > >> > > >> > > >> > You ca doing the same fr the second drawing area and of ourse a second > >> > point array. > >> > > >> > Don't forget that in gambas many of the control don't store datas, > >> > they are just viewer. > >> > You need some array to store datas and then use them to draw. > >> > > >> > Each time drawing area is refreshing you need to redraw the full curve > >> > .(and all things to draw is the view) > >> > > >> > Regards, > >> > > >> > Fabien Bodard > >> > > >> > 2015-01-12 10:06 GMT+01:00 rolf : > >> >> Hi, > >> >> > >> >> I can manage to draw curves of measured values, when they arrive i.e. > >> the > >> >> curve has to be extendet up to 50 times. And a second measurement > >> session > >> >> should be drawn in a second drawarea. > >> >> > >> >> The gambas documentation about drawarea is not really helpfull in > this > >> case. > >> >> > >> >> Is there an example where I can see how to handle two drawing areas > and > >> add > >> >> points or lines in them (I think I have to use the cache, but can't > see > >> what > >> >> is drawn). > >> >> > >> >> Many thanks for any help > >> >> Rolf > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > >> >> GigeNET is offering a free month of service with a new server in > >> Ashburn. > >> >> Choose from 2 high performing configs, both with 100TB of bandwidth. > >> >> Higher redundancy.Lower latency.Increased capacity.Completely > compliant. > >> >> vanity: www.gigenet.com > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > > >> > -- > >> > Fabien Bodard > >> > >> > >> > >> -- > >> Fabien Bodard > >> > >> > >> > ------------------------------------------------------------------------------ > >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > >> GigeNET is offering a free month of service with a new server in > Ashburn. > >> Choose from 2 high performing configs, both with 100TB of bandwidth. > >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. > >> vanity: www.gigenet.com > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > ------------------------------------------------------------------------------ > > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > > GigeNET is offering a free month of service with a new server in Ashburn. > > Choose from 2 high performing configs, both with 100TB of bandwidth. > > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > > www.gigenet.com > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > www.gigenet.com > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Tue Jan 13 08:59:05 2015 From: lewis at ...3412... (Lewis Balentine) Date: Tue, 13 Jan 2015 01:59:05 -0600 Subject: [Gambas-user] QT Frame, no border Message-ID: <54B4D049.4050909@...3412...> Frame (gb.qt4) "This control is a container with an *etched border* and a label. The actual appearance of the frame depends on the underlying widget theme. Some of them do not even draw any frame at all!" I am getting no border. I see no obvious way to get to the 'underlying widget theme'. So what is it that I need to fix ?? Regards, Lewis -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-BorderProblem.png Type: image/png Size: 16363 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BorderProblem-0.0.1.tar.gz Type: application/gzip Size: 4744 bytes Desc: not available URL: From jscops at ...11... Tue Jan 13 09:10:04 2015 From: jscops at ...11... (Jack) Date: Tue, 13 Jan 2015 09:10:04 +0100 Subject: [Gambas-user] QT Frame, no border In-Reply-To: <54B4D049.4050909@...3412...> References: <54B4D049.4050909@...3412...> Message-ID: <54B4D2DC.9030906@...11...> Le 13/01/2015 08:59, Lewis Balentine a ?crit : > Frame (gb.qt4) > "This control is a container with an *etched border* and a label. The > actual appearance of the frame depends on the underlying widget theme. > Some of them do not even draw any frame at all!" > > I am getting no border. I see no obvious way to get to the 'underlying > widget theme'. > So what is it that I need to fix ?? > You must set the gui style via qt4-config. Plastique for example. jack From lewis at ...3412... Tue Jan 13 09:53:06 2015 From: lewis at ...3412... (Lewis Balentine) Date: Tue, 13 Jan 2015 02:53:06 -0600 Subject: [Gambas-user] QT Frame, no border In-Reply-To: <54B4D2DC.9030906@...11...> References: <54B4D049.4050909@...3412...> <54B4D2DC.9030906@...11...> Message-ID: <54B4DCF2.7040904@...3412...> Thank you ... but just in case someone else find this in a search: I believe that you intended: qtconfig-qt4 (an application that must be installed on the current system) "GTK+" seems to be the only one where the frame border does not show up. On 01/13/2015 02:10 AM, Jack wrote: > > You must set the gui style via qt4-config. Plastique for example. > > > jack > From chriseana at ...626... Tue Jan 13 19:16:50 2015 From: chriseana at ...626... (Christian e Ana Luiza Britto) Date: Tue, 13 Jan 2015 16:16:50 -0200 Subject: [Gambas-user] Uploading Package to Launchpad Message-ID: Hi, I'm trying to upload a package, of my app created with Gambas, to Launchpad and I'm receiving this error: dput ppa:smcube/ppa smcube-zotero_0.0.9-0ubuntu1_amd64.changes Checking signature on .changes gpg: no valid OpenPGP data found. gpg: the signature could not be verified. Please remember that the signature file (.sig or .asc) should be the first file given on the command line. No signature on /home/chriseana/Public/SmCube/Dev/smcube-zotero_0.0.9-0ubuntu1_amd64.changes. Can someone help me handle that? Thank you, Christian From gambas.fr at ...626... Thu Jan 15 10:25:38 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 15 Jan 2015 10:25:38 +0100 Subject: [Gambas-user] Ping Message-ID: Ping ? -- Fabien Bodard From lewis at ...3412... Thu Jan 15 10:26:47 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 15 Jan 2015 03:26:47 -0600 Subject: [Gambas-user] Ping In-Reply-To: References: Message-ID: <54B787D7.4070505@...3412...> Pong ? On 01/15/2015 03:25 AM, Fabien Bodard wrote: > Ping ? > From eilert-sprachen at ...221... Thu Jan 15 11:22:32 2015 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Jan 2015 11:22:32 +0100 Subject: [Gambas-user] Ping In-Reply-To: <54B787D7.4070505@...3412...> References: <54B787D7.4070505@...3412...> Message-ID: <54B794E8.1060904@...221...> The list has had a hick-up for the last 2 days, I sent 2 mails, both got lost. Don't know if anyone else got more mails, but for me the latest mail came on 13/01 19:15 by the Brittos. Rolf Am 15.01.2015 10:26, schrieb Lewis Balentine: > Pong ? > On 01/15/2015 03:25 AM, Fabien Bodard wrote: >> Ping ? >> > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Jan 15 11:22:57 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 15 Jan 2015 11:22:57 +0100 Subject: [Gambas-user] Ping In-Reply-To: <54B787D7.4070505@...3412...> References: <54B787D7.4070505@...3412...> Message-ID: humm... Ping ? 2015-01-15 10:26 GMT+01:00 Lewis Balentine : > Pong ? > On 01/15/2015 03:25 AM, Fabien Bodard wrote: >> Ping ? >> > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From eilert-sprachen at ...221... Thu Jan 15 11:36:17 2015 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Jan 2015 11:36:17 +0100 Subject: [Gambas-user] Downloading files Message-ID: <54B79821.7090306@...221...> Just hope the list is operational again ;) When I want to download files from a remote server, I can choose either FTP or HTTP. I tried the HTTP example (async), it works well for the small text file I downloaded. What about large binary files like photos or program files? Is this method safe enough, or would you choose another one? Thanks for any input! Rolf From eilert-sprachen at ...221... Thu Jan 15 11:37:55 2015 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Jan 2015 11:37:55 +0100 Subject: [Gambas-user] Ping In-Reply-To: References: <54B787D7.4070505@...3412...> <54B794E8.1060904@...221...> Message-ID: <54B79883.7070105@...221...> > Yes that's why i'm doing this Ping game... Two days without Bugs > Report it's really over realistic. > :D Rolf From gambas.fr at ...626... Thu Jan 15 11:45:36 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 15 Jan 2015 11:45:36 +0100 Subject: [Gambas-user] Downloading files In-Reply-To: <54B79821.7090306@...221...> References: <54B79821.7090306@...221...> Message-ID: what do you mean by safe ? I use massive httpclient use in gb.map for download tiles. 4 to 8 by layer. I like http for the simplicity and because my need is only to dowload. Many site use http even for big files. 2015-01-15 11:36 GMT+01:00 Rolf-Werner Eilert : > Just hope the list is operational again ;) > > When I want to download files from a remote server, I can choose either > FTP or HTTP. I tried the HTTP example (async), it works well for the > small text file I downloaded. > > What about large binary files like photos or program files? Is this > method safe enough, or would you choose another one? > > Thanks for any input! > > Rolf > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Thu Jan 15 11:46:10 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 15 Jan 2015 11:46:10 +0100 Subject: [Gambas-user] Downloading files In-Reply-To: References: <54B79821.7090306@...221...> Message-ID: not site but webbrowser 2015-01-15 11:45 GMT+01:00 Fabien Bodard : > what do you mean by safe ? > > I use massive httpclient use in gb.map for download tiles. 4 to 8 by layer. > > I like http for the simplicity and because my need is only to dowload. > Many site use http even for big files. > > 2015-01-15 11:36 GMT+01:00 Rolf-Werner Eilert : >> Just hope the list is operational again ;) >> >> When I want to download files from a remote server, I can choose either >> FTP or HTTP. I tried the HTTP example (async), it works well for the >> small text file I downloaded. >> >> What about large binary files like photos or program files? Is this >> method safe enough, or would you choose another one? >> >> Thanks for any input! >> >> Rolf >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> http://p.sf.net/sfu/gigenet >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From gambas.fr at ...626... Thu Jan 15 14:11:27 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 15 Jan 2015 14:11:27 +0100 Subject: [Gambas-user] Report Rebirth Message-ID: Hi, this is a screenshot of the render of the new report engine. It support now Margins and BoxShadow. The code can be tested in trunk/comp/src/gb.report2 I want to take my time and make the better tool i can. For today my time will be focused on the ReportGridView component which will be the equivalent to GridView. So filling code can be the same between the gridview and this widget. The only difference will be the reportgridview have no scrollbar. So pages are generates on need. In a near future i thing i will add an option to report to allow to way i want an horizontal filling or a vertical one. so pages can be generate in an horizontal way... usefull for calendar for example. But before i will be focused on the group indexation. This have been my baddest bug in the prev version, and i will not be able to simply solve it. The goal of group indexation is to allow user to duplicate a container and then all children are duplicate again in function of new count params. the fields can call the good request. It's a complex recursive problem. But the goal is great... be able to generate complex multilevel arrays. For that i will add a cache in the virtual objects to minimize the databases queries. Then i will rewrite the three last containers (column, row, fill). The reportvpanel will have a column property to fix the number of column. (the same for reporthpanel with row property) Do you think i need to blend reportImage and reportSVGImage ? (with a type detection) Do you think i need to blend ReportLabel and ReportRichLabel ? In these two case gb.report2 will never be compatible with the previous report component ... But maybe it's time to do something better. It is now the time to explain your needs, to give me example of report you want to be able to do (pdf join), Tell me what you hate and what you like in gb.report V1. I need verbose users. Best regards, -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: google1.png Type: image/png Size: 92022 bytes Desc: not available URL: From gambas.fr at ...626... Fri Jan 16 09:54:40 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jan 2015 09:54:40 +0100 Subject: [Gambas-user] Report Rebirth In-Reply-To: References: Message-ID: ---------- Message transf?r? ---------- De : "Fabien Bodard" Date : 15 janv. 2015 14:11 Objet : Report Rebirth ? : Cc : Hi, this is a screenshot of the render of the new report engine. It support now Margins and BoxShadow. The code can be tested in trunk/comp/src/gb.report2 I want to take my time and make the better tool i can. For today my time will be focused on the ReportGridView component which will be the equivalent to GridView. So filling code can be the same between the gridview and this widget. The only difference will be the reportgridview have no scrollbar. So pages are generates on need. In a near future i thing i will add an option to report to allow to way i want an horizontal filling or a vertical one. so pages can be generate in an horizontal way... usefull for calendar for example. But before i will be focused on the group indexation. This have been my baddest bug in the prev version, and i will not be able to simply solve it. The goal of group indexation is to allow user to duplicate a container and then all children are duplicate again in function of new count params. the fields can call the good request. It's a complex recursive problem. But the goal is great... be able to generate complex multilevel arrays. For that i will add a cache in the virtual objects to minimize the databases queries. Then i will rewrite the three last containers (column, row, fill). The reportvpanel will have a column property to fix the number of column. (the same for reporthpanel with row property) Do you think i need to blend reportImage and reportSVGImage ? (with a type detection) Do you think i need to blend ReportLabel and ReportRichLabel ? In these two case gb.report2 will never be compatible with the previous report component ... But maybe it's time to do something better. It is now the time to explain your needs, to give me example of report you want to be able to do (pdf join), Tell me what you hate and what you like in gb.report V1. I need verbose users. Best regards, -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: google1.png Type: image/png Size: 92022 bytes Desc: not available URL: From eilert-sprachen at ...221... Fri Jan 16 12:08:31 2015 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 Jan 2015 12:08:31 +0100 Subject: [Gambas-user] Downloading files In-Reply-To: References: <54B79821.7090306@...221...> Message-ID: <54B8F12F.8020305@...221...> I meant binary files like photos or parts of a program (zipped, maybe), to be used for updates. Can be anything from a few kB to several MB. Is there a reason to choose a certain method for any of these, or does it depend on programming reasons only? Rolf Am 15.01.2015 11:45, schrieb Fabien Bodard: > what do you mean by safe ? > > I use massive httpclient use in gb.map for download tiles. 4 to 8 by layer. > > I like http for the simplicity and because my need is only to dowload. > Many site use http even for big files. > > 2015-01-15 11:36 GMT+01:00 Rolf-Werner Eilert : >> Just hope the list is operational again ;) >> >> When I want to download files from a remote server, I can choose either >> FTP or HTTP. I tried the HTTP example (async), it works well for the >> small text file I downloaded. >> >> What about large binary files like photos or program files? Is this >> method safe enough, or would you choose another one? >> >> Thanks for any input! >> >> Rolf >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> http://p.sf.net/sfu/gigenet >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From taboege at ...626... Fri Jan 16 12:11:53 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 16 Jan 2015 12:11:53 +0100 Subject: [Gambas-user] Liblinphone Message-ID: <20150116111152.GA1055@...2774...> Hi list, there is someone who got interested in Liblinphone[0] and wants to use it in Gambas. As far as I could see (and told him), even basic support would at least be a pain to get working with Externs. A real approach would be a C/C++ component. I must say that this whole telephone thingy does not interest me very much. Nevertheless I would like to see it working in Gambas, but don't have the time to do it. (As far as my package manager tells me, linphone is GPL, so a component is at least an option [ why are websites so bad at stating the license? ].) My first question is: who of you is also interested in a liblinphone component? The second: does someone care enough to work on it? :-) Regards, Tobi (in desperate hopes that this fourth mail will make it to you) [0] http://www.linphone.org/technical-corner/liblinphone/overview -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Fri Jan 16 12:21:45 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jan 2015 12:21:45 +0100 Subject: [Gambas-user] Liblinphone In-Reply-To: <20150116111152.GA1055@...2774...> References: <20150116111152.GA1055@...2774...> Message-ID: (in desperate hopes that this fourth mail will make it to you) -> got it 2015-01-16 12:11 GMT+01:00 Tobias Boege : > Hi list, > > there is someone who got interested in Liblinphone[0] and wants to use it > in Gambas. As far as I could see (and told him), even basic support would > at least be a pain to get working with Externs. > > A real approach would be a C/C++ component. I must say that this whole > telephone thingy does not interest me very much. Nevertheless I would like > to see it working in Gambas, but don't have the time to do it. (As far as > my package manager tells me, linphone is GPL, so a component is at least > an option [ why are websites so bad at stating the license? ].) > > My first question is: who of you is also interested in a liblinphone > component? The second: does someone care enough to work on it? :-) > > Regards, > Tobi (in desperate hopes that this fourth mail will make it to you) > > [0] http://www.linphone.org/technical-corner/liblinphone/overview > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Fri Jan 16 12:23:24 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jan 2015 12:23:24 +0100 Subject: [Gambas-user] Downloading files In-Reply-To: <54B8F12F.8020305@...221...> References: <54B79821.7090306@...221...> <54B8F12F.8020305@...221...> Message-ID: http://daniel.haxx.se/docs/ftp-vs-http.html 2015-01-16 12:08 GMT+01:00 Rolf-Werner Eilert : > I meant binary files like photos or parts of a program (zipped, maybe), > to be used for updates. Can be anything from a few kB to several MB. Is > there a reason to choose a certain method for any of these, or does it > depend on programming reasons only? > > Rolf > > > Am 15.01.2015 11:45, schrieb Fabien Bodard: >> what do you mean by safe ? >> >> I use massive httpclient use in gb.map for download tiles. 4 to 8 by layer. >> >> I like http for the simplicity and because my need is only to dowload. >> Many site use http even for big files. >> >> 2015-01-15 11:36 GMT+01:00 Rolf-Werner Eilert : >>> Just hope the list is operational again ;) >>> >>> When I want to download files from a remote server, I can choose either >>> FTP or HTTP. I tried the HTTP example (async), it works well for the >>> small text file I downloaded. >>> >>> What about large binary files like photos or program files? Is this >>> method safe enough, or would you choose another one? >>> >>> Thanks for any input! >>> >>> Rolf >>> >>> ------------------------------------------------------------------------------ >>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >>> GigeNET is offering a free month of service with a new server in Ashburn. >>> Choose from 2 high performing configs, both with 100TB of bandwidth. >>> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >>> http://p.sf.net/sfu/gigenet >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Fri Jan 16 12:25:29 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jan 2015 12:25:29 +0100 Subject: [Gambas-user] Downloading files In-Reply-To: References: <54B79821.7090306@...221...> <54B8F12F.8020305@...221...> Message-ID: http://stackoverflow.com/questions/717200/comparing-http-and-ftp-for-transferring-files 2015-01-16 12:23 GMT+01:00 Fabien Bodard : > http://daniel.haxx.se/docs/ftp-vs-http.html > > 2015-01-16 12:08 GMT+01:00 Rolf-Werner Eilert : >> I meant binary files like photos or parts of a program (zipped, maybe), >> to be used for updates. Can be anything from a few kB to several MB. Is >> there a reason to choose a certain method for any of these, or does it >> depend on programming reasons only? >> >> Rolf >> >> >> Am 15.01.2015 11:45, schrieb Fabien Bodard: >>> what do you mean by safe ? >>> >>> I use massive httpclient use in gb.map for download tiles. 4 to 8 by layer. >>> >>> I like http for the simplicity and because my need is only to dowload. >>> Many site use http even for big files. >>> >>> 2015-01-15 11:36 GMT+01:00 Rolf-Werner Eilert : >>>> Just hope the list is operational again ;) >>>> >>>> When I want to download files from a remote server, I can choose either >>>> FTP or HTTP. I tried the HTTP example (async), it works well for the >>>> small text file I downloaded. >>>> >>>> What about large binary files like photos or program files? Is this >>>> method safe enough, or would you choose another one? >>>> >>>> Thanks for any input! >>>> >>>> Rolf >>>> >>>> ------------------------------------------------------------------------------ >>>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >>>> GigeNET is offering a free month of service with a new server in Ashburn. >>>> Choose from 2 high performing configs, both with 100TB of bandwidth. >>>> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >>>> http://p.sf.net/sfu/gigenet >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> http://p.sf.net/sfu/gigenet >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From gambas.fr at ...626... Fri Jan 16 12:26:10 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jan 2015 12:26:10 +0100 Subject: [Gambas-user] Downloading files In-Reply-To: References: <54B79821.7090306@...221...> <54B8F12F.8020305@...221...> Message-ID: http://stackoverflow.com/questions/9569342/which-protocol-ftp-or-http-is-better-for-download-upload-small-or-large-files 2015-01-16 12:25 GMT+01:00 Fabien Bodard : > http://stackoverflow.com/questions/717200/comparing-http-and-ftp-for-transferring-files > > 2015-01-16 12:23 GMT+01:00 Fabien Bodard : >> http://daniel.haxx.se/docs/ftp-vs-http.html >> >> 2015-01-16 12:08 GMT+01:00 Rolf-Werner Eilert : >>> I meant binary files like photos or parts of a program (zipped, maybe), >>> to be used for updates. Can be anything from a few kB to several MB. Is >>> there a reason to choose a certain method for any of these, or does it >>> depend on programming reasons only? >>> >>> Rolf >>> >>> >>> Am 15.01.2015 11:45, schrieb Fabien Bodard: >>>> what do you mean by safe ? >>>> >>>> I use massive httpclient use in gb.map for download tiles. 4 to 8 by layer. >>>> >>>> I like http for the simplicity and because my need is only to dowload. >>>> Many site use http even for big files. >>>> >>>> 2015-01-15 11:36 GMT+01:00 Rolf-Werner Eilert : >>>>> Just hope the list is operational again ;) >>>>> >>>>> When I want to download files from a remote server, I can choose either >>>>> FTP or HTTP. I tried the HTTP example (async), it works well for the >>>>> small text file I downloaded. >>>>> >>>>> What about large binary files like photos or program files? Is this >>>>> method safe enough, or would you choose another one? >>>>> >>>>> Thanks for any input! >>>>> >>>>> Rolf >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >>>>> GigeNET is offering a free month of service with a new server in Ashburn. >>>>> Choose from 2 high performing configs, both with 100TB of bandwidth. >>>>> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >>>>> http://p.sf.net/sfu/gigenet >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >>> GigeNET is offering a free month of service with a new server in Ashburn. >>> Choose from 2 high performing configs, both with 100TB of bandwidth. >>> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >>> http://p.sf.net/sfu/gigenet >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> Fabien Bodard > > > > -- > Fabien Bodard -- Fabien Bodard From kokoko3k at ...626... Fri Jan 16 12:58:21 2015 From: kokoko3k at ...626... (Koko) Date: Fri, 16 Jan 2015 12:58:21 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit Message-ID: Hi, among other problems that i did not solved, but at least worked around, there is one i cannot solve by myself, nor i know if it is a bug in gambas or a mistake by myself. libmpv is a library to access mpv mediaplayer, the library header is here: https://raw.githubusercontent.com/mpv-player/mpv/master/libmpv/client.h Basically, what i do is: '============================================ ' Gambas class file Extern mpv_create() As Pointer In "libmpv:1" Extern mpv_initialize(Pmpv_handle As Pointer) As Integer In "libmpv:1" Extern mpv_detach_destroy(Pmpv_handle As Pointer) In "libmpv:1" Extern mpv_terminate_destroy(Pmpv_handle As Pointer) In "libmpv:1" Extern mpv_command_string(Pmpv_handle As Pointer, args As String) As Integer In "libmpv:1" Public Pmpv_handle As Pointer Public Sub Form_Open() Pmpv_handle = mpv_create() mpv_initialize(Pmpv_handle) Pmpv_handle = mpv_create() mpv_initialize(Pmpv_handle) mpv_command_string(Pmpv_handle, "loadfile /path/to/videofile.mkv") End Public Sub Button1_Click() mpv_command_string(Pmpv_handle, "quit") Wait 10 mpv_terminate_destroy(Pmpv_handle) End '============================================ That's it. The program starts and begin playing the file. As i push the button, it stops playing and the player window will close, but as soon as i close the main form, the gambas interpreter shows a window saying the program crashed wuth a segmentation fault. This is the kernel message: traps: gbx3[16400] general protection ip:7f17cdb9c824 sp:7fffff2682a0 error:0 in libpthread-2.20.so[7f17cdb93000+17000] Thanks to anyone who can spot a light on this issue. -- Antonio Orefice From eilert-sprachen at ...221... Fri Jan 16 14:01:20 2015 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 Jan 2015 14:01:20 +0100 Subject: [Gambas-user] Downloading files In-Reply-To: References: <54B79821.7090306@...221...> <54B8F12F.8020305@...221...> Message-ID: <54B90BA0.5000909@...221...> Thanks a lot for the three links, Fabian. They tell me I will do pretty well with HTTP. Have a nice weekend Rolf Am 16.01.2015 12:23, schrieb Fabien Bodard: > http://daniel.haxx.se/docs/ftp-vs-http.html > > 2015-01-16 12:08 GMT+01:00 Rolf-Werner Eilert : >> I meant binary files like photos or parts of a program (zipped, maybe), >> to be used for updates. Can be anything from a few kB to several MB. Is >> there a reason to choose a certain method for any of these, or does it >> depend on programming reasons only? >> >> Rolf >> >> >> Am 15.01.2015 11:45, schrieb Fabien Bodard: >>> what do you mean by safe ? >>> >>> I use massive httpclient use in gb.map for download tiles. 4 to 8 by layer. >>> >>> I like http for the simplicity and because my need is only to dowload. >>> Many site use http even for big files. >>> >>> 2015-01-15 11:36 GMT+01:00 Rolf-Werner Eilert : >>>> Just hope the list is operational again ;) >>>> >>>> When I want to download files from a remote server, I can choose either >>>> FTP or HTTP. I tried the HTTP example (async), it works well for the >>>> small text file I downloaded. >>>> >>>> What about large binary files like photos or program files? Is this >>>> method safe enough, or would you choose another one? >>>> >>>> Thanks for any input! >>>> >>>> Rolf >>>> >>>> ------------------------------------------------------------------------------ >>>> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >>>> GigeNET is offering a free month of service with a new server in Ashburn. >>>> Choose from 2 high performing configs, both with 100TB of bandwidth. >>>> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >>>> http://p.sf.net/sfu/gigenet >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> http://p.sf.net/sfu/gigenet >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From gambas.fr at ...626... Fri Jan 16 14:05:00 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jan 2015 14:05:00 +0100 Subject: [Gambas-user] BIG Crash Message-ID: On the last revision i'm not able to run gb.report2. -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.report2-0.0.1-crash-150116-140259.tar.bz2 Type: application/x-bzip2 Size: 37746 bytes Desc: not available URL: From kokoko3k at ...626... Fri Jan 16 14:35:25 2015 From: kokoko3k at ...626... (Koko) Date: Fri, 16 Jan 2015 14:35:25 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit References: Message-ID: Koko wrote: > That's it. > The program starts and begin playing the file. > As i push the button, it stops playing and the player window will close, > but as soon as i close the main form, the gambas interpreter shows a > window saying the program crashed wuth a segmentation fault. > > This is the kernel message: > traps: gbx3[16400] general protection ip:7f17cdb9c824 sp:7fffff2682a0 > error:0 in libpthread-2.20.so[7f17cdb93000+17000] > > Thanks to anyone who can spot a light on this issue. An update: If i switch from gb.qt4 to gb.gtk the issue is gone. The same if i use it in a new Task (gb.task) From taboege at ...626... Fri Jan 16 14:43:37 2015 From: taboege at ...626... (Tobias Boege) Date: Fri, 16 Jan 2015 14:43:37 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit In-Reply-To: References: Message-ID: <20150116134337.GC1055@...2774...> On Fri, 16 Jan 2015, Koko wrote: > Koko wrote: > > > > That's it. > > The program starts and begin playing the file. > > As i push the button, it stops playing and the player window will close, > > but as soon as i close the main form, the gambas interpreter shows a > > window saying the program crashed wuth a segmentation fault. > > > > This is the kernel message: > > traps: gbx3[16400] general protection ip:7f17cdb9c824 sp:7fffff2682a0 > > error:0 in libpthread-2.20.so[7f17cdb93000+17000] > > > > Thanks to anyone who can spot a light on this issue. > > An update: > If i switch from gb.qt4 to gb.gtk the issue is gone. > The same if i use it in a new Task (gb.task) > Does the library create threads behind your back? Because Gambas is single- threaded and I can imagine that the GUI toolkits don't like being clone'd without a warning either. Just an idea; I haven't tested. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From nigelverity at ...67... Fri Jan 16 15:06:32 2015 From: nigelverity at ...67... (Nigel Verity) Date: Fri, 16 Jan 2015 14:06:32 +0000 Subject: [Gambas-user] JSON Parsing Message-ID: Hi I would be interested to know whether any Gambas users have already created a parser for JSON format data, and would be willing to share the relevant code. I foresee a need to import data from JSON files over the coming months. It would save some time if I could avoid having to "reinvent the wheel". Regards Nige From ualex73 at ...626... Fri Jan 16 15:15:55 2015 From: ualex73 at ...626... (Alexie) Date: Fri, 16 Jan 2015 15:15:55 +0100 Subject: [Gambas-user] JSON Parsing In-Reply-To: References: Message-ID: JSON.Decode is standard in Gambas and works very good. It is in the "gb.web" component. If you read the data as "string", you can do as follows: Dim c As New Collection Dim s As String = "{ "id": 1} c = JSON.Decode(s) Or if you want ""/Null in your JSON collection: Dim c As New JSONCollection Dim s As String = "{ "id": 1} c = JSON.Decode(s, True) 2015-01-16 15:06 GMT+01:00 Nigel Verity : > Hi > > I would be interested to know whether any Gambas users have already > created a parser for JSON format data, and would be willing to share the > relevant code. > > I foresee a need to import data from JSON files over the coming months. It > would save some time if I could avoid having to "reinvent the wheel". > > Regards > > Nige > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kokoko3k at ...626... Fri Jan 16 15:12:22 2015 From: kokoko3k at ...626... (Koko) Date: Fri, 16 Jan 2015 15:12:22 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit References: <20150116134337.GC1055@...2774...> Message-ID: Tobias Boege wrote: > On Fri, 16 Jan 2015, Koko wrote: >> Koko wrote: >> >> >> > That's it. >> > The program starts and begin playing the file. >> > As i push the button, it stops playing and the player window will >> > close, but as soon as i close the main form, the gambas interpreter >> > shows a window saying the program crashed wuth a segmentation fault. >> > >> > This is the kernel message: >> > traps: gbx3[16400] general protection ip:7f17cdb9c824 sp:7fffff2682a0 >> > error:0 in libpthread-2.20.so[7f17cdb93000+17000] >> > >> > Thanks to anyone who can spot a light on this issue. >> >> An update: >> If i switch from gb.qt4 to gb.gtk the issue is gone. >> The same if i use it in a new Task (gb.task) >> > > Does the library create threads behind your back? Because Gambas is > single- threaded and I can imagine that the GUI toolkits don't like being > clone'd without a warning either. Just an idea; I haven't tested. > > Regards, > Tobi > Yes, it does create several threads, pstree output: gbx3 {mpv/ao} {mpv/demux} 3*[{mpv/playback co}] {mpv/vo} As a side note, playing an audio only file doesn't crash on exit (as expected, i suppose) From gambas.fr at ...626... Fri Jan 16 16:52:06 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 16 Jan 2015 16:52:06 +0100 Subject: [Gambas-user] BIG Crash In-Reply-To: References: Message-ID: After a full recompilation of the project ... the problem vanish. 2015-01-16 14:05 GMT+01:00 Fabien Bodard : > On the last revision i'm not able to run gb.report2. > > -- > Fabien Bodard -- Fabien Bodard From gambas at ...2524... Fri Jan 16 17:03:31 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 16 Jan 2015 16:03:31 +0000 Subject: [Gambas-user] Issue 387 in gambas: Gridview crreated by adding rows does not scroll In-Reply-To: <1-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> <0-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> Comment #2 on issue 387 by stefano.... at ...626...: Gridview crreated by adding rows does not scroll https://code.google.com/p/gambas/issues/detail?id=387 I have the same problem with Gambas 3.6.2 on LinuxMint 64 bit. You can reproduce the problem by following steps provided on the page https://kalaharix.wordpress.com/gambas/creating-a-databases-and-tables-from-gambas/ Copy, paste, run the project. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 16 17:30:32 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 16 Jan 2015 16:30:32 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support Message-ID: <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.6.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Other GUI-Any New issue 595 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 Hi developers, what about supporting GNU operating system? --- gambas3.orig/acinclude.m4 2013-09-03 12:20:15.763016116 +0200 +++ gambas3/acinclude.m4 2013-09-03 14:26:38.389881429 +0200 *-*-k*bsd*-gnu ) SYSTEM=GNU AC_DEFINE(OS_GNU, 1, [Target system is of GNU family]) AC_DEFINE(OS_BSD, 1, [Target system is of BSD family]) AC_DEFINE(SYSTEM, "GNU/kFreeBSD", [Operating system]) ;; + *-*-gnu* ) + SYSTEM=GNU + AC_DEFINE(OS_GNU, 1, [Target system is of GNU family]) + AC_DEFINE(SYSTEM, "GNU", [Operating system]) + ;; I don't remember if I already sent you this patch or not... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Fri Jan 16 17:32:44 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 16 Jan 2015 16:32:44 +0000 Subject: [Gambas-user] Issue 596 in gambas: GNU support Message-ID: <0-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.6.0 Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Other GUI-Any New issue 596 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=596 Hi developers, what about supporting GNU operating system? --- gambas3.orig/acinclude.m4 2015-01-16 17:31:37.090045958 +0100 +++ gambas3/acinclude.m4 2015-01-16 17:31:37.090045958 +0100 @@ -542,6 +542,11 @@ AC_DEFINE(ARCH_PPC, 1, [Target architecture is PowerPC]) AC_DEFINE(ARCHITECTURE, "powerpc", [Architecture]) ;; + *-*-gnu* ) + SYSTEM=GNU + AC_DEFINE(OS_GNU, 1, [Target system is of GNU family]) + AC_DEFINE(SYSTEM, "GNU", [Operating system]) + ;; *) ARCH=UNKNOWN AC_DEFINE(ARCHITECTURE, "unknown", [Architecture]) I don't remember if I already sent you this patch or not... -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Fri Jan 16 19:22:50 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 16 Jan 2015 19:22:50 +0100 Subject: [Gambas-user] JSON Parsing In-Reply-To: References: Message-ID: <54B956FA.90602@...1...> Le 16/01/2015 15:15, Alexie a ?crit : > JSON.Decode is standard in Gambas and works very good. It is in the > "gb.web" component. > > If you read the data as "string", you can do as follows: > > Dim c As New Collection > Dim s As String = "{ "id": 1} > > c = JSON.Decode(s) > > Or if you want ""/Null in your JSON collection: > > Dim c As New JSONCollection > Dim s As String = "{ "id": 1} > > c = JSON.Decode(s, True) > > For information, in the next Gambas version, JSON class has been moved to a new 'gb.util.web' component so that it can be used without 'gb.web'. Regards, -- Beno?t Minisini From mx4eva at ...626... Sat Jan 17 02:35:21 2015 From: mx4eva at ...626... (mx4evaNZ .) Date: Sat, 17 Jan 2015 14:35:21 +1300 Subject: [Gambas-user] Getting error running the SmallWiki Sample Message-ID: I get the following error when I try to run the SmallWiki sample included in GB3 If I try to run from within the IDE I get: gb.httpd: bind 0.0.0.0 - Address already in use If I compile the program and try to run it, nothing happens. Running nmap to see what ports are open I get this: -------------------------------------------------------------------------------------------------- $ nmap -v -sT localhost Starting Nmap 6.40 ( http://nmap.org ) at 2015-01-17 08:41 NZDT Initiating Ping Scan at 08:41 Scanning localhost (127.0.0.1) [2 ports] Completed Ping Scan at 08:41, 0.00s elapsed (1 total hosts) Initiating Connect Scan at 08:41 Scanning localhost (127.0.0.1) [1000 ports] Discovered open port 139/tcp on 127.0.0.1 Discovered open port 445/tcp on 127.0.0.1 Discovered open port 631/tcp on 127.0.0.1 Completed Connect Scan at 08:41, 0.02s elapsed (1000 total ports) Nmap scan report for localhost (127.0.0.1) Host is up (0.00029s latency). Not shown: 997 closed ports PORT STATE SERVICE 139/tcp open netbios-ssn 445/tcp open microsoft-ds 631/tcp open ipp Read data files from: /usr/bin/../share/nmap Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds -------------------------------------------------------------------------------------------------- Running GB3.6.2, Linux Mint 17.1 64bit. Any idea how I can change the setting that gb.web uses for this or where I'm going wrong Ta Kim From bespalov.alexey at ...2736... Sat Jan 17 05:52:48 2015 From: bespalov.alexey at ...2736... (=?koi8-r?B?4sXT0MHMz9cg4czFy9PFyg==?=) Date: Sat, 17 Jan 2015 10:52:48 +0600 Subject: [Gambas-user] =?koi8-r?b?5dPU2CDMySDWxczBwN3JxSDJ2iDS1dPTy8/R2tne?= =?koi8-r?b?zs/HzyDTz8/C3cXT1NfBIMTM0SDQz8TExdLWy8kg08HK1MEgZ2Ft?= =?koi8-r?b?YmFzLnBybyAoRG8gUlxydXNzaWFuLXNwZWFraW5nIHZvbHVudGVl?= =?koi8-r?b?cnMgZnJvbSBjb21tdW5pdGllcyBpbiB0aGUgc3VwcG9ydCBzaXRl?= =?koi8-r?b?IGdhbWJhcy5wcm8p?= Message-ID: <8718161421470368@...3421...> ??????????????????????! ?????????????????? ?????? ?? ?????????????????????? ???????? www.gambas.pro, ???? ?????????????? ?????????? ?????????????????????????? ???????????????????? ?? Gambas. ?????????????? ?????????????? ??????????, ?????????????? FAQ ???? ??????????????. ?? ?????????? ???????????????? ???????????????????? gambas, ?? ???????? ???? ??????????????????????. ?????????? ???????? ???????????????? ?????????????? ?????? ????????? ?????????? ?????????? ???????? ???????????????????? ?????????????? ????????????????????. ???????? ???????? ?????????????? ?????????????????? ???? ???????? ???? ??????????. _________ ?? ??????????????????, ???????????????? ??????????????. *********** Greetings! For several years I supported sites www.gambas.pro, where is many russian-language information on Gambas. Examples of solving problems, large FAQ on modules. I have long stopped doing gambas, and the site does not support. Maybe there are willing to pick it up yourself? Be sorry if lose so much information. If you want to contact me by e-mail. _________ Sincerely, Alexey Bespalov. From gambas at ...1... Sat Jan 17 09:33:24 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 17 Jan 2015 09:33:24 +0100 Subject: [Gambas-user] Getting error running the SmallWiki Sample In-Reply-To: References: Message-ID: <54BA1E54.4060103@...1...> Le 17/01/2015 02:35, mx4evaNZ . a ?crit : > I get the following error when I try to run the SmallWiki sample included > in GB3 > > If I try to run from within the IDE I get: > gb.httpd: bind 0.0.0.0 - Address already in use > > If I compile the program and try to run it, nothing happens. > > Running nmap to see what ports are open I get this: > -------------------------------------------------------------------------------------------------- > $ nmap -v -sT localhost > > Starting Nmap 6.40 ( http://nmap.org ) at 2015-01-17 08:41 NZDT > Initiating Ping Scan at 08:41 > Scanning localhost (127.0.0.1) [2 ports] > Completed Ping Scan at 08:41, 0.00s elapsed (1 total hosts) > Initiating Connect Scan at 08:41 > Scanning localhost (127.0.0.1) [1000 ports] > Discovered open port 139/tcp on 127.0.0.1 > Discovered open port 445/tcp on 127.0.0.1 > Discovered open port 631/tcp on 127.0.0.1 > Completed Connect Scan at 08:41, 0.02s elapsed (1000 total ports) > Nmap scan report for localhost (127.0.0.1) > Host is up (0.00029s latency). > Not shown: 997 closed ports > PORT STATE SERVICE > 139/tcp open netbios-ssn > 445/tcp open microsoft-ds > 631/tcp open ipp > > Read data files from: /usr/bin/../share/nmap > Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds > -------------------------------------------------------------------------------------------------- > > Running GB3.6.2, Linux Mint 17.1 64bit. > > Any idea how I can change the setting that gb.web uses for this > or where I'm going wrong > > Ta > Kim Normally, if you run SmallWiki from the IDE, a browser should open pointing at http://localhost:8080 This is the default port. You can change it by defining te GB_HTTPD_PORT environment variable (see the Insert button popup menu in the environment tab of the project property dialog). Regards, -- Beno?t Minisini From gambas at ...2524... Sat Jan 17 09:38:18 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 17 Jan 2015 08:38:18 +0000 Subject: [Gambas-user] Issue 387 in gambas: Gridview crreated by adding rows does not scroll In-Reply-To: <2-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> <0-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-12211422616158881570-gambas=googlecode.com@...2524...> Comment #3 on issue 387 by benoit.m... at ...626...: Gridview crreated by adding rows does not scroll https://code.google.com/p/gambas/issues/detail?id=387 Sorry, I can't reproduce the problem at all. Please provide a full project. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 17 09:39:18 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 17 Jan 2015 08:39:18 +0000 Subject: [Gambas-user] Issue 596 in gambas: GNU support In-Reply-To: <0-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> Updates: Status: Invalid Comment #1 on issue 596 by benoit.m... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=596 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 17 09:42:29 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 17 Jan 2015 08:42:29 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #1 on issue 595 by benoit.m... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 No, but you created the issue twice. And your patch does not make any GNU system magically supported. Which OS do you want to be supported exactly? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Jan 17 10:04:41 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 17 Jan 2015 10:04:41 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit In-Reply-To: References: Message-ID: <54BA25A9.4000106@...1...> Le 16/01/2015 12:58, Koko a ?crit : > Hi, > among other problems that i did not solved, but at least worked around, > there is one i cannot solve by myself, nor i know if it is a bug in gambas > or a mistake by myself. > > libmpv is a library to access mpv mediaplayer, the library header is here: > https://raw.githubusercontent.com/mpv-player/mpv/master/libmpv/client.h > > Basically, what i do is: > > '============================================ > ' Gambas class file > Extern mpv_create() As Pointer In "libmpv:1" > Extern mpv_initialize(Pmpv_handle As Pointer) As Integer In "libmpv:1" > Extern mpv_detach_destroy(Pmpv_handle As Pointer) In "libmpv:1" > Extern mpv_terminate_destroy(Pmpv_handle As Pointer) In "libmpv:1" > Extern mpv_command_string(Pmpv_handle As Pointer, args As String) As Integer > In "libmpv:1" > > Public Pmpv_handle As Pointer > > Public Sub Form_Open() > Pmpv_handle = mpv_create() > mpv_initialize(Pmpv_handle) > Pmpv_handle = mpv_create() > mpv_initialize(Pmpv_handle) > mpv_command_string(Pmpv_handle, "loadfile /path/to/videofile.mkv") > End > > Public Sub Button1_Click() > mpv_command_string(Pmpv_handle, "quit") > Wait 10 > mpv_terminate_destroy(Pmpv_handle) > End > '============================================ > > That's it. > The program starts and begin playing the file. > As i push the button, it stops playing and the player window will close, > but as soon as i close the main form, the gambas interpreter shows a window > saying the program crashed wuth a segmentation fault. > > This is the kernel message: > traps: gbx3[16400] general protection ip:7f17cdb9c824 sp:7fffff2682a0 > error:0 in libpthread-2.20.so[7f17cdb93000+17000] > > Thanks to anyone who can spot a light on this issue. > > -- > Antonio Orefice > Can you provide a project that reproduces the crash? Thanks. -- Beno?t Minisini From gambas at ...2524... Sat Jan 17 11:15:40 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 17 Jan 2015 10:15:40 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <1-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Comment #2 on issue 595 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 I'm talking about GNU/HURD OS. It is a debian OS (not a release OS, but it is under development), and that patch makes at least gambas reconize it. I guess to make it build I have to also define PATH_MAX in some places https://buildd.debian.org/status/fetch.php?pkg=gambas3&arch=hurd-i386&ver=3.5.4-2&stamp=1413217775 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 17 16:46:09 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 17 Jan 2015 15:46:09 +0000 Subject: [Gambas-user] Issue 597 in gambas: Copying a not supported form control from another project gives unlogical result Message-ID: <0-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 597 by r... at ...1740...: Copying a not supported form control from another project gives unlogical result https://code.google.com/p/gambas/issues/detail?id=597 1) Describe the problem. If you copy a GUI object from another project and you haven't enabled the needed component, you get strange results. 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-44-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=7953M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 3) Indicate the Gambas version in the issue labels, and if it is a bug, a crash, or an enhancement request. 4) Provide a little project that reproduces the bug or the crash. NA 5) If your project needs a database, try to provide it, or part of it. NA 6) Explain clearly how to reproduce the bug or the crash. Create a new project with gb.gui enabled. Open FMain.form from opened Gambas IDE project (project Gambas3) in another window. Select and copy the toolbar to you newly created project. You get a message 'Component missing for control 'Toolbar', which is correct, but it still copies the toolbar to your project but it gets the type Drawing Area! And even after enabling gb.form.mdi it stays that way and you cannot change it into toolbar. So prevent the copy of such object, and tell which component is not enabled. Or even better ask the user if it's ok to enable this component, and copy it! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From vuott at ...325... Sat Jan 17 16:59:56 2015 From: vuott at ...325... (Ru Vuott) Date: Sat, 17 Jan 2015 15:59:56 +0000 Subject: [Gambas-user] =?utf-8?b?UjogINCV0YHRgtGMINC70Lgg0LbQtdC70LDRjtGJ?= =?utf-8?b?0LjQtSDQuNC3INGA0YPRgdGB0LrQvtGP0LfRi9GH0L3QvtCz0L4g0YHQvtC+?= =?utf-8?b?0LHRidC10YHRgtCy0LAg0LTQu9GPINC/0L7QtNC00LXRgNC20LrQuCDRgdCw?= =?utf-8?b?0LnRgtCwIGdhbWJhcy5wcm8gKERvIFJccnVzc2lhbi1zcGVha2luZyB2b2x1?= =?utf-8?q?nteers_from_communities_in_the_support_site_gambas=2Epro=29?= In-Reply-To: <8718161421470368@...3421...> Message-ID: <1421510396.87925.YahooMailBasic@...3268...> Hi, I reported russian "gambas.pro" site and its forum in italian Gambas forum: http://www.gambas-it.org/smf/index.php?topic=3883.0 bye vuott -------------------------------------------- Sab 17/1/15, ???????? ??????? ha scritto: Oggetto: [Gambas-user] ???? ?? ???????? ?? ?????????????? ?????????? ??? ????????? ????? gambas.pro (Do R\russian-speaking volunteers from communities in the support site gambas.pro) A: "mailing list for gambas users" Data: Sabato 17 gennaio 2015, 05:52 ?????????????????????????! ?????????????????????? ??????? ??? ??????????????????????? ????????? www.gambas.pro, ???? ?????????????? ?????????? ????????????????????????????? ???????????????????? ?? Gambas. ????????????????? ?????????????? ??????????, ?????????????? FAQ ???? ??????????????. ????? ?????????? ???????????????? ???????????????????? gambas, ?? ???????? ???? ??????????????????????. ????????????? ???????? ???????????????? ?????????????? ?????? ????????? ????????????? ?????????? ???????? ???????????????????? ?????????????? ????????????????????. ??????????? ???????? ?????????????? ?????????????????? ???? ???????? ???? ??????????. ???_________ ????? ??????????????????, ???????????????? ??????????????. ???*********** ???Greetings! ???For? several? years? I? supported? sites www.gambas.pro, where is many ???russian-language information on Gambas. ???Examples of solving problems, large FAQ on modules. ???I have long stopped doing gambas, and the site does not support. ???Maybe there are willing to pick it up yourself? ???Be sorry if lose so much information. ???If you want to contact me by e-mail. ???_________ ???Sincerely, Alexey Bespalov. ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From mohareve at ...626... Sat Jan 17 19:52:58 2015 From: mohareve at ...626... (M. Cs.) Date: Sat, 17 Jan 2015 19:52:58 +0100 Subject: [Gambas-user] GridLayout like component needed Message-ID: Hi! I would like to know whether SWT's GridLayout could be implemented in Gambas. I see VPanel and HPanels but it seems to me that it isn't possible to say how many rows/columns should be inside such a container, and it makes them quite clumsy. E.g if I need 4 radioButtons in 2x2 layout and if I want the container to have ability to expand I don't see the solution. Thanks! Csaba From gambas.fr at ...626... Sat Jan 17 20:06:39 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 17 Jan 2015 20:06:39 +0100 Subject: [Gambas-user] GridLayout like component needed In-Reply-To: References: Message-ID: In my opinion it miss an option in the arrage model of Benoit to enforce the number of Column in Column arrangement and the number of row in row arrangement. With that property and a scrollview you van achieve your goal. You can try to implement it too by yourself in a scrollview too. It's not so difficult. You need to do it in the _Arrange event. 2015-01-17 19:52 GMT+01:00 M. Cs. : > Hi! I would like to know whether SWT's GridLayout could be implemented in > Gambas. I see VPanel and HPanels but it seems to me that it isn't possible > to say how many rows/columns should be inside such a container, and it > makes them quite clumsy. E.g if I need 4 radioButtons in 2x2 layout and if > I want the container to have ability to expand I don't see the solution. > Thanks! > > Csaba > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From lewis at ...3412... Sat Jan 17 20:32:32 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 17 Jan 2015 13:32:32 -0600 Subject: [Gambas-user] need NOWAIT option for Process=Exec Command Message-ID: <54BAB8D0.5090004@...3412...> Well I am almost there and ran into a small hick-up. I am trying to create a program to schedule and record over the air (OTA) television broadcasts via ffmpeg and an IP based NTSC-Tunner (SiliconDust HDHR4-2US). If I use the GAMBAS statement: Exec Command then the ffmpeg command is executed and the recording takes place in the background as desired. My problem is that I need to get the Process ID for each recording session in order to be able to abort/cancel recording session(s). If I use the GAMBAS statement: Process = Exec Command then the program hangs up while it "waits" for the Command to complete (which might be a couple of hours). Now I am hung up. Is there another way to get the process id? cheers, Lewis Balentine From taboege at ...626... Sat Jan 17 20:36:39 2015 From: taboege at ...626... (Tobias Boege) Date: Sat, 17 Jan 2015 20:36:39 +0100 Subject: [Gambas-user] need NOWAIT option for Process=Exec Command In-Reply-To: <54BAB8D0.5090004@...3412...> References: <54BAB8D0.5090004@...3412...> Message-ID: <20150117193639.GD10074@...2774...> On Sat, 17 Jan 2015, Lewis Balentine wrote: > Well I am almost there and ran into a small hick-up. I am trying to > create a program to schedule and record over the air (OTA) television > broadcasts via ffmpeg and an IP based NTSC-Tunner (SiliconDust > HDHR4-2US). If I use the GAMBAS statement: > Exec Command > then the ffmpeg command is executed and the recording takes place in the > background as desired. > > > My problem is that I need to get the Process ID for each recording > session in order to be able to abort/cancel recording session(s). If I > use the GAMBAS statement: > Process = Exec Command > then the program hangs up while it "waits" for the Command to complete > (which might be a couple of hours). > > Now I am hung up. Is there another way to get the process id? > Doesn't happen over here as the attached script shows: $ ./exec-nowait.gbs3 0.00100183486938 The Print line is executed obviously without waiting for the command to complete. Does it work the same on your system? If not, there is a bug in your copy of Gambas. If yes, it must be something deeper in your code. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- #!/usr/bin/gbs3 Public Sub Main() Dim h As Process h = Exec ["sleep", "2"] Print Timer End From lewis at ...3412... Sat Jan 17 21:13:06 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 17 Jan 2015 14:13:06 -0600 Subject: [Gambas-user] need NOWAIT option for Process=Exec Command In-Reply-To: <20150117193639.GD10074@...2774...> References: <54BAB8D0.5090004@...3412...> <20150117193639.GD10074@...2774...> Message-ID: <54BAC252.3050508@...3412...> I inserted the following line before my Exec statement: Debug Format(Now, "hh:mm:ss") MyProcess = Exec ["sleep", "10"] Debug Format(Now, "hh:mm:ss") Debug "PID:" & Trim(Str(MyProcess.Handle)) It worked as you said.... pvr.StartProcess.99: 14:01:57 pvr.StartProcess.101: 14:01:57 pvr.StartProcess.102: PID:17978 Guess that I will have to dig a bit deeper. The ffmpeg application accepts input while recording. I wonder if that has some effect on the matter. Cheers, Lewis From lewis at ...3412... Sun Jan 18 04:37:50 2015 From: lewis at ...3412... (Lewis Balentine) Date: Sat, 17 Jan 2015 21:37:50 -0600 Subject: [Gambas-user] need NOWAIT option for Process=Exec Command In-Reply-To: <20150117193639.GD10074@...2774...> References: <54BAB8D0.5090004@...3412...> <20150117193639.GD10074@...2774...> Message-ID: <54BB2A8E.9070602@...3412...> You were correct (as usual). :-) There was an difference in the dynamically generated ffmpeg command arrays that I was using. The application is now functional so I can start working on the fine tunning and polish. Thank you for your help. Lewis On 01/17/2015 01:36 PM, Tobias Boege wrote: > Doesn't happen over here as the attached script shows: $ > ./exec-nowait.gbs3 0.00100183486938 The Print line is executed > obviously without waiting for the command to complete. Does it work > the same on your system? If not, there is a bug in your copy of > Gambas. If yes, it must be something deeper in your code. From rolf.frogs at ...221... Sun Jan 18 10:54:58 2015 From: rolf.frogs at ...221... (rolf) Date: Sun, 18 Jan 2015 10:54:58 +0100 Subject: [Gambas-user] is there an example for generating curves In-Reply-To: References: <201501121006.41687.rolf.frogs@...221...> Message-ID: <201501181055.00188.rolf.frogs@...221...> Hello Fabien > Better than words, this is a demo ! > > 2015-01-12 12:22 GMT+01:00 Fabien Bodard : > > Well.. you need two things in fact . first you can use an array of point > > : > > > > Private $aPoints as new Point[] > > > > > > Then you add in real time your points : > > > > $apoint.add(point(x,y)) > > and query the redraw of the drawing area > > > > MyDA.refresh > > > > > > Public sub MyDA_Draw() > > > > dim i as integer > > > > for i=0 to $aPoints.max -1 step 2 > > > > draw.line($apoint[i].x$apoint[i].y,$apoint[i+1].x,$apoint[i+1].y) > > > > next > > > > end > > Many thanks for the working example. It's a pitty, that there are so less examples in the documentation, that can help to see the use of the function - I miss some in the mediaplayer area. I found the docs of php or the C++/STL-Online docu very helpful, because there ara usually simple example which can be tested with cut'n paste. Once again, many thanks. From chrisml at ...3340... Sun Jan 18 14:58:13 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Sun, 18 Jan 2015 14:58:13 +0100 Subject: [Gambas-user] Packaging a project with libraries to deb failed Message-ID: <54BBBBF5.1070100@...3340...> Hi, after I wrote my first small app in Gambas, I decided to export some common modules and classes to an external library, which worked well (at design time). But now the original project cannot be packed as .deb. There is an error shown when packaging: > dpkg-buildpackage: Host-Architektur amd64 > dpkg-source --before-build xyz-program-0.4.3 > dpkg-source: Warnung: Abh?ngigkeit (>= 0.0.0) kann nicht ausgewertet werden > dpkg-source: Fehler: Fehler beim Parsen von Build-Depends I try a translation of the error: dpkg-source: Warning: Dependancy (>= 0.0.0) can not be parsed Any idea? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From gambas at ...1... Sun Jan 18 15:06:09 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 18 Jan 2015 15:06:09 +0100 Subject: [Gambas-user] Packaging a project with libraries to deb failed In-Reply-To: <54BBBBF5.1070100@...3340...> References: <54BBBBF5.1070100@...3340...> Message-ID: <54BBBDD1.20207@...1...> Le 18/01/2015 14:58, Christof Thalhofer a ?crit : > Hi, > > after I wrote my first small app in Gambas, I decided to export some > common modules and classes to an external library, which worked well (at > design time). > > But now the original project cannot be packed as .deb. There is an error > shown when packaging: > >> dpkg-buildpackage: Host-Architektur amd64 >> dpkg-source --before-build xyz-program-0.4.3 >> dpkg-source: Warnung: Abh?ngigkeit (>= 0.0.0) kann nicht ausgewertet werden >> dpkg-source: Fehler: Fehler beim Parsen von Build-Depends > > I try a translation of the error: > dpkg-source: Warning: Dependancy (>= 0.0.0) can not be parsed > > Any idea? > > > Alles Gute > > Christof Thalhofer > Apparently there is some version number that dpkg-buildpackage does not like. Please provide your project. -- Beno?t Minisini From chrisml at ...3340... Sun Jan 18 15:26:13 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Sun, 18 Jan 2015 15:26:13 +0100 Subject: [Gambas-user] Packaging a project with libraries to deb failed In-Reply-To: <54BBBDD1.20207@...1...> (sfid-) References: <54BBBBF5.1070100@...3340...> <54BBBDD1.20207@...1...> (sfid-) Message-ID: <54BBC285.3080000@...3340...> Hello Beno?t, Am 18.01.2015 um 15:06 schrieb Beno?t Minisini: > Apparently there is some version number that dpkg-buildpackage does not > like. Please provide your project. I would not like to provide it to an open mailinglist, because it contains private things. Can I send it to you personally? 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 willy at ...2734... Sun Jan 18 15:48:46 2015 From: willy at ...2734... (Willy Raets) Date: Sun, 18 Jan 2015 15:48:46 +0100 Subject: [Gambas-user] Packaging a project with libraries to deb failed In-Reply-To: <54BBBBF5.1070100@...3340...> References: <54BBBBF5.1070100@...3340...> Message-ID: <1421592526.6066.2.camel@...3024...> On zo, 2015-01-18 at 14:58 +0100, Christof Thalhofer wrote: > Hi, > > after I wrote my first small app in Gambas, I decided to export some > common modules and classes to an external library, which worked well (at > design time). > > But now the original project cannot be packed as .deb. There is an error > shown when packaging: > > > dpkg-buildpackage: Host-Architektur amd64 > > dpkg-source --before-build xyz-program-0.4.3 > > dpkg-source: Warnung: Abh?ngigkeit (>= 0.0.0) kann nicht ausgewertet werden > > dpkg-source: Fehler: Fehler beim Parsen von Build-Depends > > I try a translation of the error: > dpkg-source: Warning: Dependancy (>= 0.0.0) can not be parsed > > Any idea? > > > Alles Gute > > Christof Thalhofer I believe I had something likewise when building a library. As far as I can remember it was because my library had version 0.0.0 (or maybe even 0.0.1, can't remeber as it has been a while ago). Try increasing the version of your library and then package again and see what happens. It worked for me. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From chrisml at ...3340... Sun Jan 18 16:07:22 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Sun, 18 Jan 2015 16:07:22 +0100 Subject: [Gambas-user] Solved: Packaging a project with libraries to deb failed In-Reply-To: <1421592526.6066.2.camel@...3024...> (sfid-) References: <54BBBBF5.1070100@...3340...> <1421592526.6066.2.camel@...3024...> (sfid-) Message-ID: <54BBCC2A.9020500@...3340...> Am 18.01.2015 um 15:48 schrieb Willy Raets: >> I try a translation of the error: >> dpkg-source: Warning: Dependancy (>= 0.0.0) can not be parsed > I believe I had something likewise when building a library. > As far as I can remember it was because my library had version 0.0.0 (or > maybe even 0.0.1, can't remeber as it has been a while ago). I read about that when searching for the error. :-) > Try increasing the version of your library and then package again and > see what happens. It worked for me. Yes! It worked for me too. Hmm... difficult, not easy to figure that out. Thank you! 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 gambas at ...1... Sun Jan 18 17:46:50 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 18 Jan 2015 17:46:50 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit In-Reply-To: References: <54BA25A9.4000106@...1...> Message-ID: <54BBE37A.7060808@...1...> Le 17/01/2015 13:19, Antonio a ?crit : > I managed to make the project archive i'm attaching right now. > You need to replace the string "loadfile videofile" with something > existing on your filesystem fo course. > Run the project, hit the button, wait 10 seconds, then close the form > and you'll get the error on exit. > Just replacing gb.qt with gb.gtk make it works. > playing an audio only file will work too. > > thanks for looking into this, > > -- > Antonio Orefice > > Qt crashes because : - The libmpv library calls the X11 library inside threads. - The X11 library can be called from different threads only if it is explicitly initialized by the XInitThreads() method. - Qt4 does not call this method The X11 documentation tells that : - You must call this method before every other X11 function. - You must call this method only if really needed (because it slows down the library I imagine). So there is a problem: I can't know by advance that a shared library used at runtime would need that... -- Beno?t Minisini From gambas at ...1... Sun Jan 18 17:49:52 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sun, 18 Jan 2015 17:49:52 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit In-Reply-To: <54BBE37A.7060808@...1...> References: <54BA25A9.4000106@...1...> <54BBE37A.7060808@...1...> Message-ID: <54BBE430.1020801@...1...> Le 18/01/2015 17:46, Beno?t Minisini a ?crit : > Le 17/01/2015 13:19, Antonio a ?crit : >> I managed to make the project archive i'm attaching right now. >> You need to replace the string "loadfile videofile" with something >> existing on your filesystem fo course. >> Run the project, hit the button, wait 10 seconds, then close the form >> and you'll get the error on exit. >> Just replacing gb.qt with gb.gtk make it works. >> playing an audio only file will work too. >> >> thanks for looking into this, >> >> -- >> Antonio Orefice >> >> > > Qt crashes because : > > - The libmpv library calls the X11 library inside threads. > > - The X11 library can be called from different threads only if it is > explicitly initialized by the XInitThreads() method. > > - Qt4 does not call this method > > The X11 documentation tells that : > > - You must call this method before every other X11 function. > > - You must call this method only if really needed (because it slows down > the library I imagine). > > So there is a problem: I can't know by advance that a shared library > used at runtime would need that... > And note that gb.gtk and gb.gtk3 crash for the same reason. If it does not crash on your machine, it just that you are lucky. Regards, -- Beno?t Minisini From kokoko3k at ...626... Mon Jan 19 08:05:00 2015 From: kokoko3k at ...626... (Koko) Date: Mon, 19 Jan 2015 08:05 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit References: <54BA25A9.4000106@...1...> <54BBE37A.7060808@...1...> <54BBE430.1020801@...1...> Message-ID: Beno?t Minisini wrote: > Le 18/01/2015 17:46, Beno?t Minisini a ?crit : >> Le 17/01/2015 13:19, Antonio a ?crit : >>> I managed to make the project archive i'm attaching right now. >>> You need to replace the string "loadfile videofile" with something >>> existing on your filesystem fo course. >>> Run the project, hit the button, wait 10 seconds, then close the form >>> and you'll get the error on exit. >>> Just replacing gb.qt with gb.gtk make it works. >>> playing an audio only file will work too. >>> >>> thanks for looking into this, >>> >>> -- >>> Antonio Orefice >>> >>> >> >> Qt crashes because : >> >> - The libmpv library calls the X11 library inside threads. >> >> - The X11 library can be called from different threads only if it is >> explicitly initialized by the XInitThreads() method. >> >> - Qt4 does not call this method >> >> The X11 documentation tells that : >> >> - You must call this method before every other X11 function. >> >> - You must call this method only if really needed (because it slows down >> the library I imagine). >> >> So there is a problem: I can't know by advance that a shared library >> used at runtime would need that... >> > > And note that gb.gtk and gb.gtk3 crash for the same reason. If it does > not crash on your machine, it just that you are lucky. > > Regards, > Undesrtood and thank you for explaining that. Any hope this would be possible by a user choice in the future? -- Antonio From mmcg29440 at ...3163... Tue Jan 20 01:11:50 2015 From: mmcg29440 at ...3163... (Martin McGlensey) Date: Mon, 19 Jan 2015 19:11:50 -0500 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols Message-ID: Hello, I have a form containing a datasource linked to a MySQL database table. The datasource contains datacontrols to display the data from the underlying table. There are buttons for add, edit, save, delete and cancel. The add button creates a new record. The save button saves the record. The Edit button allows change to the record. The cancel button cancels the changes. The delete button deletes the entire record. I would like the cancel button to cancel the add and all edits and repopulate the form with the original data from the datasource table. If the user hits the cancel button no change should be made to the table. The delete button asks for confirmation before deleting the record. I'm not so much looking for code so much but for advice on the proper sequence of bd.begin etc. Should add and edit begin a transaction and save commit the transaction? Should cancel rollback the transaction? The syntax is $Con.Begin, $Con.Commit and $Con.Rollback. Is that correct? If my thought is correct how do I get the form to display the original data? Thanks From t.lee.davidson at ...626... Tue Jan 20 02:42:19 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Mon, 19 Jan 2015 20:42:19 -0500 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols In-Reply-To: References: Message-ID: <54BDB27B.6060401@...626...> Hello Martin, If you are working with only one record at a time, you don't need to use transactions. Transactions are used when multiple records need to be modified in an all-or-none scenario, such as when a record, that is the "one" in a one-to-many relationship, needs to be deleted. In such a case, you would start a transaction with .Begin, delete the dependent records followed by the one record. Then, if all modifications are successful, you would .Commit. If there is a failure at any time during the transaction, you would .Rollback. To get the datacontrol to display the original data after a canceled edit, use the .Refresh method. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/19/2015 07:11 PM, Martin McGlensey wrote: > Hello, > > > > I have a form containing a datasource linked to a MySQL database table. The > datasource contains datacontrols to display the data from the underlying > table. There are buttons for add, edit, save, delete and cancel. The add > button creates a new record. The save button saves the record. The Edit > button allows change to the record. The cancel button cancels the changes. > The delete button deletes the entire record. > > > > I would like the cancel button to cancel the add and all edits and > repopulate the form with the original data from the datasource table. If the > user hits the cancel button no change should be made to the table. The > delete button asks for confirmation before deleting the record. > > > > I'm not so much looking for code so much but for advice on the proper > sequence of bd.begin etc. Should add and edit begin a transaction and save > commit the transaction? Should cancel rollback the transaction? The syntax > is $Con.Begin, $Con.Commit and $Con.Rollback. Is that correct? If my thought > is correct how do I get the form to display the original data? > > > > Thanks > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Tue Jan 20 05:24:34 2015 From: lewis at ...3412... (Lewis Balentine) Date: Mon, 19 Jan 2015 22:24:34 -0600 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols In-Reply-To: <54BDB27B.6060401@...626...> References: <54BDB27B.6060401@...626...> Message-ID: <54BDD882.7050102@...3412...> >> use the .Refresh method << That assumes that one is using data linked controls. That is not always the case: examples: a date record is displayed/edited as two separate text boxes (i.e. date and time) a person's name is stored in the fields: given_name, initial, family_name the person's name is displayed/edited in a single text box I have in the past (with VB6) used the control.tag property to hold the original unedited text for the control. I have also been known to use that information to verify another user had not changed the original record prior to processing the update. On 01/19/2015 07:42 PM, T Lee Davidson wrote: > Hello Martin, > > ... > To get the datacontrol to display the original data after a canceled edit, use the .Refresh method. > > From gambas at ...2524... Tue Jan 20 12:01:49 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 20 Jan 2015 11:01:49 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <2-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Comment #3 on issue 595 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 ok this is the patch that makes it build correctly. Index: gambas3/acinclude.m4 =================================================================== --- gambas3.orig/acinclude.m4 2015-01-20 11:08:48.980209046 +0100 +++ gambas3/acinclude.m4 2015-01-20 11:08:48.980209046 +0100 @@ -510,6 +510,11 @@ AC_DEFINE(OS_KFREEBSD, 1, [Target system is kFREEBSD]) AC_DEFINE(SYSTEM, "kFreeBSD", [Operating system]) ;; + *-gnu* ) + SYSTEM=GNU + AC_DEFINE(OS_GNU, 1, [Target system is of GNU family]) + AC_DEFINE(SYSTEM, "Hurd", [Operating system]) + ;; * ) SYSTEM=UNKNOWN AC_DEFINE(SYSTEM, "unknown", [Operating system]) diff --git a/gb.net/src/CSerialPort.c b/gb.net/src/CSerialPort.c index f8ac59d..93b3579 100644 --- a/gb.net/src/CSerialPort.c +++ b/gb.net/src/CSerialPort.c @@ -38,6 +38,10 @@ #define TIOCOUTQ ((unsigned int) -1) #endif /* __CYGWIN__ */ +#ifndef TIOCINQ +#define TIOCINQ FIONREAD +#endif + #include "main.h" #include "tools.h" diff --git a/main/share/gb_common.h b/main/share/gb_common.h index 69c38e2..6ae647c 100644 --- a/main/share/gb_common.h +++ b/main/share/gb_common.h @@ -84,6 +84,13 @@ #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif +#ifndef MAXPATHLEN +#define MAXPATHLEN 4096 +#endif + #ifdef OS_SOLARIS /* PGS: The following #define prevents /usr/include/sys/mman.h on solaris do you think it can be included upstream? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 20 12:02:49 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 20 Jan 2015 11:02:49 +0000 Subject: [Gambas-user] Issue 596 in gambas: GNU support In-Reply-To: <1-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> <0-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15843512726728046906-gambas=googlecode.com@...2524...> Comment #2 on issue 596 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=596 Closed because I opened two issues: https://code.google.com/p/gambas/issues/detail?id=595 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 20 12:10:31 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 20 Jan 2015 11:10:31 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <3-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Comment #4 on issue 595 by benoit.m... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 No problem, but how can "*-gnu* )" necessarily match GNU/Hurd? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 20 12:14:13 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 20 Jan 2015 11:14:13 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <4-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Comment #5 on issue 595 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 http://www.gnu.org/software/hurd/hurd/porting/guidelines.html tells it to you :) quoting some parts: "because else -gnu would catch i386-pc-linux-gnu for instance..." since nothing is HURD specific we can also meld into other stuff like switch "$host_os" in case |k*bsd-gnu*|gnu*) (don't know about the BSD stuff inside the code, they might break the build) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 20 12:16:23 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 20 Jan 2015 11:16:23 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <5-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <5-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <6-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Comment #6 on issue 595 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 sorry I copy-paster the wrong line... http://www.gnu.org/software/hurd/hurd/porting/guidelines.html tells it to you :) "When using GNU autotools to configure a package config.guess and config.sub from autotools-dev are used to find out the build machine identity: CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM. For GNU/Hurd config.guess gives 'i686-unknown-gnu0.3'. Sometimes a quadruple is used adding KERNEL, e.g. for Linux on an amd64: 'x86_64-unknown-linux-gnu'. This is however actually a triple, it just happens that the operating system part unfortunately contains a '-'. config.sub is used to canonicalize on these triplets, e.g. config.sub i686-gnu gives 'i686-pc-gnu'." "If separate case is needed, make sure to put -gnu after -linux: switch "$host" in case *-linux*|*-k*bsd-gnu*) something;; case *-gnu*) something else;; because else -gnu would catch i386-pc-linux-gnu for instance..." so I guess we should be fine there -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From mmcg29440 at ...3163... Tue Jan 20 14:19:42 2015 From: mmcg29440 at ...3163... (Martin McGlensey) Date: Tue, 20 Jan 2015 08:19:42 -0500 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a Message-ID: Lee, Thanks for your response. Yes I'm working with only one record at a time. I'm unclear as to where to use the refresh method. The form is used to input data including name, address , phone and state. There is the possibility that multiple datacontrols may be changed at one time. Must I use the refresh method with each datacontrol or can I apply it to the datasource? I've tried refreshing the datasource, in the cancel function, but that does not seem to work. There is got to be a way of refreshing all datacontrols on a form. One other question - If I create a record intending to add data and then cancel by not updating the datasource is a blank record added to the table? Thanks From lewis at ...3412... Tue Jan 20 19:03:42 2015 From: lewis at ...3412... (Lewis Balentine) Date: Tue, 20 Jan 2015 12:03:42 -0600 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols In-Reply-To: <54BDB27B.6060401@...626...> References: <54BDB27B.6060401@...626...> Message-ID: <54BE987E.2010007@...3412...> Mr. Speaker, I request permission to revise and extend my previous remarks ... Please see the attached sample application and data base. I used a SQlite Database but in theory these function should operate the same. I tried five ways to cancel the edits to a set of data controls. via Control Refresh via Data Source Refresh via Data Source Cancel via Closing the DB and reopening it via Data Control Tags The only one that I found that worked was to restore the content from a copy saved in the data control tags. I note that changing the 'DataControl.Value' (either via software or manually) does not set 'DataSource.Modified' or "DataControl.Modified' properties to true. The operation was the same in version 3.6.2 and 3.6.9. Then again maybe I am doing something(s) wrong .... :-\ Regards, Lewis Balentine On 01/19/2015 07:42 PM, T Lee Davidson wrote: > Hello Martin, > > If you are working with only one record at a time, you don't need to use transactions. > Transactions are used when multiple records need to be modified in an all-or-none scenario, such as when a record, that is the "one" in a > one-to-many relationship, needs to be deleted. > > In such a case, you would start a transaction with .Begin, delete the dependent records followed by the one record. Then, if all modifications > are successful, you would .Commit. If there is a failure at any time during the transaction, you would .Rollback. > > To get the datacontrol to display the original data after a canceled edit, use the .Refresh method. > > > Lee > __________ > -------------- next part -------------- A non-text attachment was scrubbed... Name: DBSample-0.0.1.tar.gz Type: application/gzip Size: 7941 bytes Desc: not available URL: From t.lee.davidson at ...626... Tue Jan 20 19:55:37 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 20 Jan 2015 13:55:37 -0500 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a In-Reply-To: References: Message-ID: <54BEA4A9.2050201@...626...> Martin, I must apologize for slightly misleading you. The .Update method is the more appropriate one to use to reload the data in the event of a canceled edit. The .Update method can be applied to the DataSource and it will update all bound children. And, yes, logically, if you create a record and then do not populate it with data, you would have added a blank record to the DB. But it really depends on how you create the record to begin with. For example, the clicking the "New" button in the Databrowser does not create a new record in the database until the data is "Save"d. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/20/2015 08:19 AM, Martin McGlensey wrote: > Lee, > > > > Thanks for your response. Yes I'm working with only one record at a time. > I'm unclear as to where to use the refresh method. The form is used to > input data including name, address , phone and state. There is the > possibility that multiple datacontrols may be changed at one time. Must I > use the refresh method with each datacontrol or can I apply it to the > datasource? I've tried refreshing the datasource, in the cancel function, > but that does not seem to work. There is got to be a way of refreshing all > datacontrols on a form. One other question - If I create a record intending > to add data and then cancel by not updating the datasource is a blank record > added to the table? > > > > Thanks > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From t.lee.davidson at ...626... Tue Jan 20 20:07:32 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 20 Jan 2015 14:07:32 -0500 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols In-Reply-To: <54BE987E.2010007@...3412...> References: <54BDB27B.6060401@...626...> <54BE987E.2010007@...3412...> Message-ID: <54BEA774.9060609@...626...> I believe I have mislead you too, Lewis. My apologies. Look at DataSource.Update. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/20/2015 01:03 PM, Lewis Balentine wrote: > Mr. Speaker, > I request permission to revise and extend my previous remarks ... > > Please see the attached sample application and data base. I used a SQlite Database but in theory these function should operate the same. I tried > five ways to cancel the edits to a set of data controls. > via Control Refresh > via Data Source Refresh > via Data Source Cancel > via Closing the DB and reopening it > via Data Control Tags > > The only one that I found that worked was to restore the content from a copy saved in the data control tags. I note that changing the > 'DataControl.Value' (either via software or manually) does not set 'DataSource.Modified' or "DataControl.Modified' properties to true. The > operation was the same in version 3.6.2 and 3.6.9. > > Then again maybe I am doing something(s) wrong .... :-\ > > Regards, > > Lewis Balentine > > On 01/19/2015 07:42 PM, T Lee Davidson wrote: >> Hello Martin, >> >> If you are working with only one record at a time, you don't need to use transactions. >> Transactions are used when multiple records need to be modified in an all-or-none scenario, such as when a record, that is the "one" in a >> one-to-many relationship, needs to be deleted. >> >> In such a case, you would start a transaction with .Begin, delete the dependent records followed by the one record. Then, if all modifications >> are successful, you would .Commit. If there is a failure at any time during the transaction, you would .Rollback. >> >> To get the datacontrol to display the original data after a canceled edit, use the .Refresh method. >> >> >> Lee >> __________ >> > > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Tue Jan 20 21:37:00 2015 From: lewis at ...3412... (Lewis Balentine) Date: Tue, 20 Jan 2015 14:37:00 -0600 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a datasource and datacontrols In-Reply-To: <54BEA774.9060609@...626...> References: <54BDB27B.6060401@...626...> <54BE987E.2010007@...3412...> <54BEA774.9060609@...626...> Message-ID: <54BEBC6C.4050907@...3412...> Nope, you did not mislead me .... I was already been looking at these methods, but I had only tried the update function on a dataview control where the data was modified by an external program (that works nicely). I believe that I have tried every combination of: DataSource.Cancel, DataSource1.Update, DataSource1.Refresh BINGO!! Put "DataSource.Connection.begin" just after the DB/Table is opened. Put "DataSource.Connection.commit" and "DataSource.Connection.begin" at the end of each save. Use "DataSource.Connection.Rollback", "DataSource.Update", "DataSource.Connection.Begin" to cancel. Alas I have run out of time and must attend to other matters. I will try update my example tomorrow and upload it. (I also want a bit more testing). Regards, Lewis On 01/20/2015 01:07 PM, T Lee Davidson wrote: > I believe I have mislead you too, Lewis. My apologies. > > Look at DataSource.Update. > > > Lee > __________ > > "Artificial Intelligence is no match for natural stupidity." > > On 01/20/2015 01:03 PM, Lewis Balentine wrote: >> Mr. Speaker, >> I request permission to revise and extend my previous remarks ... >> >> Please see the attached sample application and data base. I used a SQlite Database but in theory these function should operate the same. I tried >> five ways to cancel the edits to a set of data controls. >> via Control Refresh >> via Data Source Refresh >> via Data Source Cancel >> via Closing the DB and reopening it >> via Data Control Tags >> >> The only one that I found that worked was to restore the content from a copy saved in the data control tags. I note that changing the >> 'DataControl.Value' (either via software or manually) does not set 'DataSource.Modified' or "DataControl.Modified' properties to true. The >> operation was the same in version 3.6.2 and 3.6.9. >> >> Then again maybe I am doing something(s) wrong .... :-\ >> >> Regards, >> >> Lewis Balentine >> >> On 01/19/2015 07:42 PM, T Lee Davidson wrote: >>> Hello Martin, >>> >>> If you are working with only one record at a time, you don't need to use transactions. >>> Transactions are used when multiple records need to be modified in an all-or-none scenario, such as when a record, that is the "one" in a >>> one-to-many relationship, needs to be deleted. >>> >>> In such a case, you would start a transaction with .Begin, delete the dependent records followed by the one record. Then, if all modifications >>> are successful, you would .Commit. If there is a failure at any time during the transaction, you would .Rollback. >>> >>> To get the datacontrol to display the original data after a canceled edit, use the .Refresh method. >>> >>> >>> Lee >>> __________ >>> >> >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> http://p.sf.net/sfu/gigenet >> >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From adamnt42 at ...626... Tue Jan 20 23:18:30 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jan 2015 08:48:30 +1030 Subject: [Gambas-user] Getting the "source string" for a picture Message-ID: <20150121084830.d69ee8d35cd5717240d24c94@...626...> I need to get the "source string" for a control's Picture property (specifically a ToolButton control). However, the control's Picture property returns a picture. Is there any way of determining what that source string e.g. "icon:/22/connect.png" or "img/somepic.png" is? tia Bruce -- B Bruen From taboege at ...626... Tue Jan 20 23:24:58 2015 From: taboege at ...626... (Tobias Boege) Date: Tue, 20 Jan 2015 23:24:58 +0100 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: <20150121084830.d69ee8d35cd5717240d24c94@...626...> References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> Message-ID: <20150120222458.GC25373@...2774...> On Wed, 21 Jan 2015, adamnt42 at ...626... wrote: > I need to get the "source string" for a control's Picture property (specifically a ToolButton control). However, the control's Picture property returns a picture. > > Is there any way of determining what that source string e.g. "icon:/22/connect.png" or "img/somepic.png" is? > I don't think that this information is anywhere. When you assign the Picture property, you assign a Picture object which does not contain a path. As usual, the best way to get hold again of lost information is to not lose it in the first place: you can try to extend the Picture class. Add a Path property and override Picture's _get() and Load() methods to set the path of a Picture when its loaded. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at ...626... Wed Jan 21 00:17:30 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 20 Jan 2015 18:17:30 -0500 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a In-Reply-To: <54BEA4A9.2050201@...626...> References: <54BEA4A9.2050201@...626...> Message-ID: <54BEE20A.3000309@...626...> Well, looks like I was wrong again. Despite the documentation for DataSource.Update saying, "Reload the DataSource data and update all bound child controls accordingly," it apparently tries to write to the database. The .Cancel method is the one to use to, uh, cancel any current modifications. DataSource.Cancel: "Cancel any current edition of child controls." Simple sample attached. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/20/2015 01:55 PM, T Lee Davidson wrote: > Martin, > > I must apologize for slightly misleading you. > The .Update method is the more appropriate one to use to reload the data in the event of a canceled edit. > The .Update method can be applied to the DataSource and it will update all bound children. > > And, yes, logically, if you create a record and then do not populate it with data, you would have added a blank record to the DB. > But it really depends on how you create the record to begin with. > > For example, the clicking the "New" button in the Databrowser does not create a new record in the database until the data is "Save"d. > > > Lee > > On 01/20/2015 08:19 AM, Martin McGlensey wrote: >> Lee, >> >> >> >> Thanks for your response. Yes I'm working with only one record at a time. >> I'm unclear as to where to use the refresh method. The form is used to >> input data including name, address , phone and state. There is the >> possibility that multiple datacontrols may be changed at one time. Must I >> use the refresh method with each datacontrol or can I apply it to the >> datasource? I've tried refreshing the datasource, in the cancel function, >> but that does not seem to work. There is got to be a way of refreshing all >> datacontrols on a form. One other question - If I create a record intending >> to add data and then cancel by not updating the datasource is a blank record >> added to the table? >> >> >> >> Thanks >> >> ------------------------------------------------------------------------------ >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA. >> GigeNET is offering a free month of service with a new server in Ashburn. >> Choose from 2 high performing configs, both with 100TB of bandwidth. >> Higher redundancy.Lower latency.Increased capacity.Completely compliant. >> http://p.sf.net/sfu/gigenet >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> -------------- next part -------------- A non-text attachment was scrubbed... Name: DatabaseSample-1.0.1.tar.gz Type: application/x-gzip Size: 12052 bytes Desc: not available URL: From adamnt42 at ...626... Wed Jan 21 01:26:07 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jan 2015 10:56:07 +1030 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: <20150120222458.GC25373@...2774...> References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> <20150120222458.GC25373@...2774...> Message-ID: <20150121105607.ce9644faabcaa55d2b323df1@...626...> On Tue, 20 Jan 2015 23:24:58 +0100 Tobias Boege wrote: > On Wed, 21 Jan 2015, adamnt42 at ...626... wrote: > > I need to get the "source string" for a control's Picture property (specifically a ToolButton control). However, the control's Picture property returns a picture. > > > > Is there any way of determining what that source string e.g. "icon:/22/connect.png" or "img/somepic.png" is? > > > > I don't think that this information is anywhere. When you assign the Picture > property, you assign a Picture object which does not contain a path. > > As usual, the best way to get hold again of lost information is to not lose > it in the first place: you can try to extend the Picture class. Add a Path > property and override Picture's _get() and Load() methods to set the path of > a Picture when its loaded. > > Regards, > Tobi > Hmmm, bugger! I know it is in the form configuration file, but that's of little use to me in this instance. I was trying to implement a "Style" property for toolbars, i.e. {Default}, IconOnly, Icon+Text, TextOnly. I can handle the first three OK, but TextOnly means I need to know that path so I can reload the picture if the user selects one of the others after selecting TextOnly. The way I look at it now, if a toolbutton has both the Picture and Text properties set in the IDE then there is no way for "experienced" users to select a shorter rendition for their use, the picture and text are always displayed. Ce'st la vie! I guess I'll just go for the first three. regards Bruce -- B Bruen From gambas at ...2524... Wed Jan 21 01:53:36 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 21 Jan 2015 00:53:36 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <6-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <6-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <7-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #7 on issue 595 by benoit.m... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 I have merged your patch in revision #6847, except that I defined OS_HURD and OS_GNU for the added test. Next time, please use the mailing-list for such things. It was not really a bug. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Wed Jan 21 01:59:25 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Wed, 21 Jan 2015 01:59:25 +0100 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: <20150121105607.ce9644faabcaa55d2b323df1@...626...> References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> <20150120222458.GC25373@...2774...> <20150121105607.ce9644faabcaa55d2b323df1@...626...> Message-ID: <54BEF9ED.1080705@...1...> Le 21/01/2015 01:26, adamnt42 at ...626... a ?crit : > > Hmmm, bugger! > > I know it is in the form configuration file, but that's of little use > to me in this instance. > > I was trying to implement a "Style" property for toolbars, i.e. > {Default}, IconOnly, Icon+Text, TextOnly. I can handle the first > three OK, but TextOnly means I need to know that path so I can reload > the picture if the user selects one of the others after selecting > TextOnly. The way I look at it now, if a toolbutton has both the > Picture and Text properties set in the IDE then there is no way for > "experienced" users to select a shorter rendition for their use, the > picture and text are always displayed. > > Ce'st la vie! I guess I'll just go for the first three. > > regards Bruce > > This must be implemented in gb.form.mdi. How the toolbar works? At the moment, it just shows or hides its children. If it would modify the text or icon of its children, it would lost the data. So I think something must be added to the ToolButton control: the ability to hide/show text and icon on demand. Usually, the hide/show text/icon is global to the toolbar, but I find that really useless. This is something that should be enabled or disabled individually for each ToolButton. What do you think? -- Beno?t Minisini From gambas at ...1... Wed Jan 21 02:02:41 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Wed, 21 Jan 2015 02:02:41 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit In-Reply-To: References: <54BA25A9.4000106@...1...> <54BBE37A.7060808@...1...> <54BBE430.1020801@...1...> Message-ID: <54BEFAB1.6090701@...1...> Le 19/01/2015 08:05, Koko a ?crit : > > Undesrtood and thank you for explaining that. > Any hope this would be possible by a user choice in the future? > > > -- > Antonio > In revision #6842, the GB_X11_INIT_THREADS environment variable can be defined to "1" to enable thread initialization in gui components. I can't do more, because this initialization must be done before calling any toolkit function. So you will have to define this variable by hand when needed. This can be done in the Main() function of your startup class, provided that you do no GUI thing at all before. Regards, -- Beno?t Minisini From adamnt42 at ...626... Wed Jan 21 03:18:20 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jan 2015 12:48:20 +1030 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: <54BEF9ED.1080705@...1...> References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> <20150120222458.GC25373@...2774...> <20150121105607.ce9644faabcaa55d2b323df1@...626...> <54BEF9ED.1080705@...1...> Message-ID: <20150121124820.541d0ff90080e9b6e18da02b@...626...> On Wed, 21 Jan 2015 01:59:25 +0100 Beno?t Minisini wrote: > Le 21/01/2015 01:26, adamnt42 at ...626... a ?crit : > > > > Hmmm, bugger! > > > > I know it is in the form configuration file, but that's of little use > > to me in this instance. > > > > I was trying to implement a "Style" property for toolbars, i.e. > > {Default}, IconOnly, Icon+Text, TextOnly. I can handle the first > > three OK, but TextOnly means I need to know that path so I can reload > > the picture if the user selects one of the others after selecting > > TextOnly. The way I look at it now, if a toolbutton has both the > > Picture and Text properties set in the IDE then there is no way for > > "experienced" users to select a shorter rendition for their use, the > > picture and text are always displayed. > > > > Ce'st la vie! I guess I'll just go for the first three. > > > > regards Bruce > > > > > > This must be implemented in gb.form.mdi. > > How the toolbar works? At the moment, it just shows or hides its > children. If it would modify the text or icon of its children, it would > lost the data. > > So I think something must be added to the ToolButton control: the > ability to hide/show text and icon on demand. > > Usually, the hide/show text/icon is global to the toolbar, but I find > that really useless. This is something that should be enabled or > disabled individually for each ToolButton. > > What do you think? > > -- > Beno?t Minisini > > If it would modify the text or icon of its children, it would > lost the data. Yes, that is the current problem. I was working around it by modifying the toolbutton .Tag property to save the developer set text so it could be restored within the session. But then ran up against the problem of saving the picture. > Usually, the hide/show text/icon is global to the toolbar, but I find > that really useless. Interesting. We have discussed this with our users and they preferred that the option to show/hide the text be at the toolbar level. Why do you think it's "useless"? The conversation we have had went sort of like this: [THEY] "We generally want pictures and text on every toolbar, but would like to be able to turn off the text when we are familiar with using that toolbar." [ME] (Thinks) OK, we can customise the gb.form.mdi component to implement a Toolbar.Style property that can be changed "on demand" using the FToolbarConfig form ... and also maybe make it a Settings option. "Do you want to be able to select the style at the toolbar level or for each button on the toolbar?" [THEY] No, as long as there are tooltips for each button then it would be preferrable to set it at the toolbar level. The issue we have is that there is a fairly high turnover for our client's staff. To be more correct, they have a floating population of staff that they wish to have access to the system. Sometimes a particular trainer has a high demand for staff, sometimes lower, depending on how many horses they are managing at the time. So people who have to use our training system come and go and come back again and go away again... (and while they are away we may have changes to the system ... ) So those users oscillate between "newbies" and "experts" all the time. Hence the need for a user configurable toolbar style (amongst a million other things :-) as usual!) But, given what you said, I think there is a case for implementing both a toolbutton level style and also an overriding toolbar level style. However, I can't imagine at the moment the user interface required for managing individual toolbuttons. Perhaps you have an idea? So far we have managed to do this in (our version of)) gb.form.mdi: 1) implement the Style property for the Toolbar class (it has the previously mentioned 4 values "{Default}", "IconOnly", "Icon+Text", and "TextOnly". Of these "{Default}" means that if the button has text it will be displayed, otherwise only the icon is shown. (I've also managed to get around a problem of allowing Icon size changes to work properly when the ToolButton.Expand property is nt set to true.); "IconOnly" works fine, the original text is saved in the button .Tag property and can be restored when necessary e.g. by the user selecting "Icon+Text"; the "TextOnly" option is a failure for the original reason. 2) modify the FToolbar Config form to allow the style to be set on the fly (see Pic1 attached) I haven't got to changing the local Settings "save" yet - I think I need to be looking at the FToolbar.SaveConfig and FToolbar.LoadConfig methods but just haven't got to that yet. Finally, now I have your attention .... :-) One other thing "THEY" continue to ask for is a "Huge" option for the icon size. This is related to our low light environment situation. Any chance of this? Best regards Bruce -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: Pic1.png Type: image/png Size: 37451 bytes Desc: not available URL: From kokoko3k at ...626... Wed Jan 21 08:33:09 2015 From: kokoko3k at ...626... (Koko) Date: Wed, 21 Jan 2015 08:33:09 +0100 Subject: [Gambas-user] Trying to use libmpv, but got Segmentation faults on exit References: <54BA25A9.4000106@...1...> <54BBE37A.7060808@...1...> <54BBE430.1020801@...1...> <54BEFAB1.6090701@...1...> Message-ID: Beno?t Minisini wrote: > Le 19/01/2015 08:05, Koko a ?crit : >> >> Undesrtood and thank you for explaining that. >> Any hope this would be possible by a user choice in the future? >> >> >> -- >> Antonio >> > > In revision #6842, the GB_X11_INIT_THREADS environment variable can be > defined to "1" to enable thread initialization in gui components. > > I can't do more, because this initialization must be done before calling > any toolkit function. So you will have to define this variable by hand > when needed. > > This can be done in the Main() function of your startup class, provided > that you do no GUI thing at all before. > > Regards, > This is great, thank you very much! From gambas at ...2524... Wed Jan 21 10:24:44 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 21 Jan 2015 09:24:44 +0000 Subject: [Gambas-user] Issue 595 in gambas: GNU support In-Reply-To: <7-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> References: <7-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> <0-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Message-ID: <8-6813199134517018827-1287704934670638962-gambas=googlecode.com@...2524...> Comment #8 on issue 595 by costamag... at ...626...: GNU support https://code.google.com/p/gambas/issues/detail?id=595 thanks, sorry, but I usually open issues, to better track them down into debian... However I'll try to remember it for the next time :) thanks again, G. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From chrisml at ...3340... Wed Jan 21 01:10:33 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Wed, 21 Jan 2015 01:10:33 +0100 Subject: [Gambas-user] Some things on components Message-ID: <54BEEE79.6050606@...3340...> Hello everybody, since exporting code to components I found some things I do not know whether they are bugs or maybe I'm wrong: 1. If a project once is tagged as component, there is a .component file in the root dir, but if one sets the project to "Normal", it remains there and is not deleted. 2. I tag a project as component and package it to a .deb-file. The file should be named as "gambas3-vendor-name-version.deb" (so it is shown) but the file created is "vendor-name-version.deb". Ok, I push it to our apt-repos. 3. If I package a project as deb relying on components exported like described in 2 (which are installed on the computer I am working on) and then install it, apt claims a broken package, because it needs: gambas3-vendor-name-version.deb with version 3.6 ... 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 gambas.fr at ...626... Wed Jan 21 11:40:47 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 21 Jan 2015 11:40:47 +0100 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: <20150121124820.541d0ff90080e9b6e18da02b@...626...> References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> <20150120222458.GC25373@...2774...> <20150121105607.ce9644faabcaa55d2b323df1@...626...> <54BEF9ED.1080705@...1...> <20150121124820.541d0ff90080e9b6e18da02b@...626...> Message-ID: 2015-01-21 3:18 GMT+01:00 adamnt42 at ...626... : > On Wed, 21 Jan 2015 01:59:25 +0100 > Beno?t Minisini wrote: > >> Le 21/01/2015 01:26, adamnt42 at ...626... a ?crit : >> > >> > Hmmm, bugger! >> > >> > I know it is in the form configuration file, but that's of little use >> > to me in this instance. >> > >> > I was trying to implement a "Style" property for toolbars, i.e. >> > {Default}, IconOnly, Icon+Text, TextOnly. I can handle the first >> > three OK, but TextOnly means I need to know that path so I can reload >> > the picture if the user selects one of the others after selecting >> > TextOnly. The way I look at it now, if a toolbutton has both the >> > Picture and Text properties set in the IDE then there is no way for >> > "experienced" users to select a shorter rendition for their use, the >> > picture and text are always displayed. >> > >> > Ce'st la vie! I guess I'll just go for the first three. >> > >> > regards Bruce >> > >> > >> >> This must be implemented in gb.form.mdi. >> >> How the toolbar works? At the moment, it just shows or hides its >> children. If it would modify the text or icon of its children, it would >> lost the data. >> >> So I think something must be added to the ToolButton control: the >> ability to hide/show text and icon on demand. >> >> Usually, the hide/show text/icon is global to the toolbar, but I find >> that really useless. This is something that should be enabled or >> disabled individually for each ToolButton. >> >> What do you think? >> >> -- >> Beno?t Minisini >> > >> If it would modify the text or icon of its children, it would >> lost the data. > Yes, that is the current problem. I was working around it by modifying the toolbutton .Tag property to save the developer set text so it could be restored within the session. But then ran up against the problem of saving the picture. > >> Usually, the hide/show text/icon is global to the toolbar, but I find >> that really useless. > Interesting. We have discussed this with our users and they preferred that the option to show/hide the text be at the toolbar level. Why do you think it's "useless"? > > The conversation we have had went sort of like this: > [THEY] "We generally want pictures and text on every toolbar, but would like to be able to turn off the text when we are familiar with using that toolbar." > [ME] (Thinks) OK, we can customise the gb.form.mdi component to implement a Toolbar.Style property that can be changed "on demand" using the FToolbarConfig form ... and also maybe make it a Settings option. > "Do you want to be able to select the style at the toolbar level or for each button on the toolbar?" > [THEY] No, as long as there are tooltips for each button then it would be preferrable to set it at the toolbar level. > > The issue we have is that there is a fairly high turnover for our client's staff. To be more correct, they have a floating population of staff that they wish to have access to the system. Sometimes a particular trainer has a high demand for staff, sometimes lower, depending on how many horses they are managing at the time. So people who have to use our training system come and go and come back again and go away again... (and while they are away we may have changes to the system ... ) So those users oscillate between "newbies" and "experts" all the time. Hence the need for a user configurable toolbar style (amongst a million other things :-) as usual!) > > But, given what you said, I think there is a case for implementing both a toolbutton level style and also an overriding toolbar level style. However, I can't imagine at the moment the user interface required for managing individual toolbuttons. Perhaps you have an idea? > > So far we have managed to do this in (our version of)) gb.form.mdi: > 1) implement the Style property for the Toolbar class (it has the previously mentioned 4 values "{Default}", "IconOnly", "Icon+Text", and "TextOnly". Of these "{Default}" means that if the button has text it will be displayed, otherwise only the icon is shown. (I've also managed to get around a problem of allowing Icon size changes to work properly when the ToolButton.Expand property is nt set to true.); "IconOnly" works fine, the original text is saved in the button .Tag property and can be restored when necessary e.g. by the user selecting "Icon+Text"; the "TextOnly" option is a failure for the original reason. > 2) modify the FToolbar Config form to allow the style to be set on the fly (see Pic1 attached) > I haven't got to changing the local Settings "save" yet - I think I need to be looking at the FToolbar.SaveConfig and FToolbar.LoadConfig methods but just haven't got to that yet. > > > Finally, now I have your attention .... :-) > > One other thing "THEY" continue to ask for is a "Huge" option for the icon size. This is related to our low light environment situation. Any chance of this? What is the size of HUGE ? > Best regards > Bruce > > > -- > B Bruen > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From chrisml at ...3340... Wed Jan 21 11:41:18 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Wed, 21 Jan 2015 11:41:18 +0100 Subject: [Gambas-user] Packaging a component failure Message-ID: <54BF824E.6020508@...3340...> Hello, if I tag a project as component and package it to a .deb-file the package should be named as "gambas3-vendor-name-version.deb" (so it is shown in the first form of the dialog) but the file (and package) created is "vendor-name-version.deb". Have I overlooked something? 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 gambas.fr at ...626... Wed Jan 21 11:43:29 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 21 Jan 2015 11:43:29 +0100 Subject: [Gambas-user] Some things on components In-Reply-To: <54BEEE79.6050606@...3340...> References: <54BEEE79.6050606@...3340...> Message-ID: 2015-01-21 1:10 GMT+01:00 Christof Thalhofer : > Hello everybody, > > since exporting code to components I found some things I do not know > whether they are bugs or maybe I'm wrong: > > 1. If a project once is tagged as component, there is a .component file > in the root dir, but if one sets the project to "Normal", it remains > there and is not deleted. It relie to another problem ... we can't change normal project to component too. Even if there is just a single entry in the .project fil to change for that (and to remove the .component file). > 2. I tag a project as component and package it to a .deb-file. The > file should be named as "gambas3-vendor-name-version.deb" (so it is > shown) but the file created is "vendor-name-version.deb". Ok, I push it > to our apt-repos. > > 3. If I package a project as deb relying on components exported like > described in 2 (which are installed on the computer I am working on) and > then install it, apt claims a broken package, because it needs: > > gambas3-vendor-name-version.deb with version 3.6 ... > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From chrisml at ...3340... Wed Jan 21 11:56:33 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Wed, 21 Jan 2015 11:56:33 +0100 Subject: [Gambas-user] Packaging a component failure In-Reply-To: <54BF824E.6020508@...3340...> (sfid-) References: <54BF824E.6020508@...3340...> (sfid-) Message-ID: <54BF85E1.7060708@...3340...> Am 21.01.2015 um 11:41 schrieb Christof Thalhofer: > if I tag a project as component and package it to a .deb-file the > package should be named as "gambas3-vendor-name-version.deb" (so it is > shown in the first form of the dialog) but the file (and package) > created is "vendor-name-version.deb". Sorry, I wrote this again, because I did not see my first mail in the mailinglist ... 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 shordi at ...626... Wed Jan 21 12:14:27 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 21 Jan 2015 12:14:27 +0100 Subject: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock) Message-ID: When you want inspect a connection properties on run time, sometimes IDE rises a signal 11 error and abort the proyect, sometimes IDE Crashes directly. I hadn't be able to isolate the problem so I didn't report it until now. This morning I've suffered some issues I don't undestand. I've tried to inspect a connection properties at run time and IDE Crashes. After that my project was unable to run due a "File already exists" in the line Settings.Read(Me) Even if I tried the Try at begins of line. Each try of call Settings.Read produces that error. Others project works well so I tried: -Delete the .config/gambas3/myproject.conf -Delete the .config/gambas3 directory at all -Delete all compiled files on myproject/.gambas/ directory -Delete the .settings file of the project Nothing works, then tried: -Uninstall Gambas3 from my hard drive and reinstall it from gambas-team repository. After that, the "File Already exists" of gb.settings seems work, but a "Unable to Load Image" on Stock.LoadIcon.445 Rises when my project tries to open a Form. That form uses dirbox controls and buttons with icons from stock ("icon:/22/directory" and so) Others projects seem works fine... The system info: [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.13.0-37-generic Architecture=x86_64 Distribution=Linux Mint 17.1 Rebecca Desktop=GNOME Theme=QCleanlooks Language=es_ES.UTF-8 Memory=7968M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 Attached a little project that crashes trying to open a sqlite database -------------- next part -------------- A non-text attachment was scrubbed... Name: exampleCrash-0.0.1.tar.gz Type: application/x-gzip Size: 7600 bytes Desc: not available URL: From mmcg29440 at ...3163... Wed Jan 21 14:26:36 2015 From: mmcg29440 at ...3163... (Martin McGlensey) Date: Wed, 21 Jan 2015 08:26:36 -0500 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a Message-ID: Hello, Thanks for the replies. Tried the .update method. That does not work. Just returns an empty record. Finally wrote a small procedure to store the datacontrol values in an array sized by the number of controls on the form. (form.Children.Count) Then use a similar procedure to read the array back to the datacontrols. This method seems to work. The procedures are small and execute quickly. I'll try the datasource.cancel method and see if that works. However I'm debugging a large project and cannot spend much more time on this piece. I'll post the result of my test of the .cancel method. Thanks, Marty From lewis at ...3412... Wed Jan 21 18:47:33 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 21 Jan 2015 11:47:33 -0600 Subject: [Gambas-user] gambas-daily,Failed to fetch, 404 error Message-ID: <54BFE635.2000402@...3412...> Is it just me or does anyone else get these errors ??? '------------------------------------ W: Failed to fetch http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3-gb-desktop-gnome-keyring_3.6.99+svn6839+build22~ubuntu14.04.1_amd64.deb 404 Not Found W: Failed to fetch http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3-gb-scanner_3.6.99+svn6839+build22~ubuntu14.04.1_all.deb 404 Not Found W: Failed to fetch http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3-gb-util_3.6.99+svn6839+build22~ubuntu14.04.1_all.deb 404 Not Found W: Failed to fetch http://ppa.launchpad.net/gambas-team/gambas-daily/ubuntu/pool/main/g/gambas3/gambas3_3.6.99+svn6839+build22~ubuntu14.04.1_all.deb 404 Not Found '------------------------------------ Lewis From lewis at ...3412... Wed Jan 21 18:58:52 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 21 Jan 2015 11:58:52 -0600 Subject: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock) In-Reply-To: References: Message-ID: <54BFE8DC.30405@...3412...> I believe that you need to define the connection host (path to Sqlite DB file). hconn.host = Application.Path Otherwise I get the same results. Lewis From lewis at ...3412... Wed Jan 21 19:13:06 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 21 Jan 2015 12:13:06 -0600 Subject: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error Message-ID: <54BFEC32.3020306@...3412...> See attached project for full source and data-base. Public Sub DataControl3_Leave() or Public Sub DataControl3_LostFocus() ' ********************************************************************************************** ' Tab key causess: ' (gbx3: 21680): <<--- varies --- ' Gtk - CRITICAL * *: IA__gtk_widget_get_direction: assertion 'GTK_IS_WIDGET (widget)' failed ' DataControl3 field Type is Date, Next Tab-Stop is DataControl4 (Boolean) ' ********************************************************************************************** ... End Regards, Lewis Balentine [System] Gambas=3.6.2 & 3.6.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=MATE Theme=QGtk Language=en_US.UTF-8 Memory=3944M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 -------------- next part -------------- A non-text attachment was scrubbed... Name: DBSample2-0.0.1.tar.gz Type: application/gzip Size: 7889 bytes Desc: not available URL: From shordi at ...626... Wed Jan 21 19:41:11 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 21 Jan 2015 19:41:11 +0100 Subject: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock) In-Reply-To: <54BFE8DC.30405@...3412...> References: <54BFE8DC.30405@...3412...> Message-ID: It's true... but IDE should not crash... I think. Regards 2015-01-21 18:58 GMT+01:00 Lewis Balentine : > I believe that you need to define the connection host (path to Sqlite DB > file). > hconn.host = Application.Path > > Otherwise I get the same results. > > Lewis > > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From lewis at ...3412... Wed Jan 21 19:50:58 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 21 Jan 2015 12:50:58 -0600 Subject: [Gambas-user] Use of db.Begin, db.Commit and db.Rollback with a In-Reply-To: <54BEE20A.3000309@...626...> References: <54BEA4A9.2050201@...626...> <54BEE20A.3000309@...626...> Message-ID: <54BFF512.8000807@...3412...> Yep that seems to work. I did try that previously (I think) but it seems somewhere along the line I corrupted my database. I started over from scratch ... :-( Overall it has been a very enlightening exercise. Now what was I doing before I started this ....? Lewis On 01/20/2015 05:17 PM, T Lee Davidson wrote: > Well, looks like I was wrong again. > > Despite the documentation for DataSource.Update saying, > "Reload the DataSource data and update all bound child controls > accordingly," > it apparently tries to write to the database. > > The .Cancel method is the one to use to, uh, cancel any current > modifications. > DataSource.Cancel: "Cancel any current edition of child controls." > > > Simple sample attached. > > > Lee From lewis at ...3412... Wed Jan 21 20:06:07 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 21 Jan 2015 13:06:07 -0600 Subject: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock) In-Reply-To: References: <54BFE8DC.30405@...3412...> Message-ID: <54BFF89F.2050804@...3412...> A valid point ... On 01/21/2015 12:41 PM, Jorge Carri?n wrote: > It's true... but IDE should not crash... I think. > > Regards > > From Karl.Reinl at ...2345... Wed Jan 21 21:37:56 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Wed, 21 Jan 2015 21:37:56 +0100 Subject: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock) In-Reply-To: <54BFF89F.2050804@...3412...> References: <54BFE8DC.30405@...3412...> <54BFF89F.2050804@...3412...> Message-ID: <1421872676.3556.3.camel@...40...> Am Mittwoch, den 21.01.2015, 13:06 -0600 schrieb Lewis Balentine: > A valid point ... > > On 01/21/2015 12:41 PM, Jorge Carri?n wrote: > > It's true... but IDE should not crash... I think. > > > > Regards > > Salut, I'v got the attached Messagebox, but not a crash. [System] Gambas=3.6.90 rev.6838 OperatingSystem=Linux Kernel=3.2.0-75-generic Architecture=x86 Distribution=Ubuntu 12.04.5 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3025M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+3=libgtk-3.so.0.400.2 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto vom 2015-01-21 21:31:56.png Type: image/png Size: 18068 bytes Desc: not available URL: From gambas at ...1... Wed Jan 21 22:22:57 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Wed, 21 Jan 2015 22:22:57 +0100 Subject: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock) In-Reply-To: References: Message-ID: <54C018B1.10503@...1...> Le 21/01/2015 12:14, Jorge Carri?n a ?crit : > When you want inspect a connection properties on run time, sometimes IDE > rises a signal 11 error and abort the proyect, sometimes IDE Crashes > directly. > It's fixed in revision #6850. Regards, -- Beno?t Minisini From shordi at ...626... Thu Jan 22 00:17:57 2015 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 22 Jan 2015 00:17:57 +0100 Subject: [Gambas-user] IDE crash and other Issues (gb.settings and icon stock) In-Reply-To: <54C018B1.10503@...1...> References: <54C018B1.10503@...1...> Message-ID: Thanks Benoit. Regards 2015-01-21 22:22 GMT+01:00 Beno?t Minisini : > Le 21/01/2015 12:14, Jorge Carri?n a ?crit : > > When you want inspect a connection properties on run time, sometimes IDE > > rises a signal 11 error and abort the proyect, sometimes IDE Crashes > > directly. > > > > It's fixed in revision #6850. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...2524... Thu Jan 22 00:55:21 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 21 Jan 2015 23:55:21 +0000 Subject: [Gambas-user] Issue 597 in gambas: Copying a not supported form control from another project gives unlogical result In-Reply-To: <0-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.6.0 Comment #1 on issue 597 by benoit.m... at ...626...: Copying a not supported form control from another project gives unlogical result https://code.google.com/p/gambas/issues/detail?id=597 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Thu Jan 22 00:56:21 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 21 Jan 2015 23:56:21 +0000 Subject: [Gambas-user] Issue 597 in gambas: Copying a not supported form control from another project gives unlogical result In-Reply-To: <1-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> <0-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-5987656733414816464-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 597 by benoit.m... at ...626...: Copying a not supported form control from another project gives unlogical result https://code.google.com/p/gambas/issues/detail?id=597 Fixed in revision #6851. Now you get an error message, and nothing is pasted. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From adamnt42 at ...626... Thu Jan 22 01:34:28 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Thu, 22 Jan 2015 11:04:28 +1030 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> <20150120222458.GC25373@...2774...> <20150121105607.ce9644faabcaa55d2b323df1@...626...> <54BEF9ED.1080705@...1...> <20150121124820.541d0ff90080e9b6e18da02b@...626...> Message-ID: <20150122110428.2695e3d06e4410d2e8419e9a@...626...> On Wed, 21 Jan 2015 11:40:47 +0100 Fabien Bodard wrote: > > One other thing "THEY" continue to ask for is a "Huge" option for the icon size. This is related to our low light environment situation. Any chance of this? > > What is the size of HUGE ? I take it to mean the size from Picture["icon:/huge/something"] B -- B Bruen From gambas at ...2524... Thu Jan 22 11:58:25 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 22 Jan 2015 10:58:25 +0000 Subject: [Gambas-user] Issue 598 in gambas: Deploy of components on debian systems fails because of gambas3-prefix Message-ID: <0-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 598 by chr4... at ...1601...: Deploy of components on debian systems fails because of gambas3-prefix https://code.google.com/p/gambas/issues/detail?id=598 1) Describe the problem. If I tag a project as component and package it to a .deb-file, the package should be named as "gambas3-vendor-name-version.deb" (so it is shown in the wizard) but the package created is named "vendor-name-version.deb". If I push that component-package to our apt-repos and install that on my computer, a project relying on that component fails when packaged as .deb, because it needs "gambas3-vendor-name-version.deb" to be installed not "vendor-name-version.deb". 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.11.0-20-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=XFCE Theme=QGtk Language=de_DE.UTF-8 Memory=3848M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 6) Explain clearly how to reproduce the bug or the crash. a) Create a Project "CompProject" as component. b) Create a install-file for Debian. In the wizard the correct name for it is shown: "gambas3-vendor-compproj-version" But on disk the package is "vendor-compproj-version.deb" c) Install that package on an Ubuntu or Debian system. d) There open IDE. Create a new project "TestProject" and define that a component used is the component created and installed in a/b/c. e) Create a install-file (.deb-file) of "TestProject" for Debian. If you want to install it, installation is refused, because it depends on "gambas3-vendor-compproj-version" but installed is "vendor-compproj-version". -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Thu Jan 22 20:58:22 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Thu, 22 Jan 2015 20:58:22 +0100 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: <20150122110428.2695e3d06e4410d2e8419e9a@...626...> References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> <20150120222458.GC25373@...2774...> <20150121105607.ce9644faabcaa55d2b323df1@...626...> <54BEF9ED.1080705@...1...> <20150121124820.541d0ff90080e9b6e18da02b@...626...> <20150122110428.2695e3d06e4410d2e8419e9a@...626...> Message-ID: <54C1565E.80707@...1...> Le 22/01/2015 01:34, adamnt42 at ...626... a ?crit : > On Wed, 21 Jan 2015 11:40:47 +0100 > Fabien Bodard wrote: > >>> One other thing "THEY" continue to ask for is a "Huge" option for the icon size. This is related to our low light environment situation. Any chance of this? >> >> What is the size of HUGE ? > > I take it to mean the size from Picture["icon:/huge/something"] > > B > "Huge" toolbar icons were implemented in revision #6854. Regards, -- Beno?t Minisini From gambas at ...1... Thu Jan 22 21:05:39 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Thu, 22 Jan 2015 21:05:39 +0100 Subject: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error In-Reply-To: <54BFEC32.3020306@...3412...> References: <54BFEC32.3020306@...3412...> Message-ID: <54C15813.1090609@...1...> Le 21/01/2015 19:13, Lewis Balentine a ?crit : > See attached project for full source and data-base. > > Public Sub DataControl3_Leave() > or > Public Sub DataControl3_LostFocus() > ' > ********************************************************************************************** > > ' Tab key causess: > ' (gbx3: 21680): <<--- varies --- > ' Gtk - CRITICAL * *: IA__gtk_widget_get_direction: assertion > 'GTK_IS_WIDGET (widget)' failed > ' DataControl3 field Type is Date, Next Tab-Stop is DataControl4 > (Boolean) > ' > ********************************************************************************************** > > ... > End > > Regards, > > Lewis Balentine > > As you use gb.qt4, it may be a bug in the QGtk theme, or in the underlying GTK+ theme that QGtk tries to display. -- Beno?t Minisini From gambas at ...1... Thu Jan 22 21:08:30 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Thu, 22 Jan 2015 21:08:30 +0100 Subject: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error In-Reply-To: <54C15813.1090609@...1...> References: <54BFEC32.3020306@...3412...> <54C15813.1090609@...1...> Message-ID: <54C158BE.7070605@...1...> Le 22/01/2015 21:05, Beno?t Minisini a ?crit : > Le 21/01/2015 19:13, Lewis Balentine a ?crit : >> See attached project for full source and data-base. >> >> Public Sub DataControl3_Leave() >> or >> Public Sub DataControl3_LostFocus() >> ' >> ********************************************************************************************** >> >> >> ' Tab key causess: >> ' (gbx3: 21680): <<--- varies --- >> ' Gtk - CRITICAL * *: IA__gtk_widget_get_direction: assertion >> 'GTK_IS_WIDGET (widget)' failed >> ' DataControl3 field Type is Date, Next Tab-Stop is DataControl4 >> (Boolean) >> ' >> ********************************************************************************************** >> >> >> ... >> End >> >> Regards, >> >> Lewis Balentine >> >> > > As you use gb.qt4, it may be a bug in the QGtk theme, or in the > underlying GTK+ theme that QGtk tries to display. > Which GTK+ theme do you use? -- Beno?t Minisini From lewis at ...3412... Thu Jan 22 21:30:32 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 22 Jan 2015 14:30:32 -0600 Subject: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error In-Reply-To: <54C158BE.7070605@...1...> References: <54BFEC32.3020306@...3412...> <54C15813.1090609@...1...> <54C158BE.7070605@...1...> Message-ID: <54C15DE8.6060007@...3412...> Note the project is a QT graphical project as opposed to a GTK graphical project (if it makes any difference). As for GTK+ theme .... how would I know ? I am using Linux Mint 17 with the Mate Desktop environment. There are no preferences that refer to 'GTK theme' but my 'appearance' preferences are set to "Mint-X" theme. That is the only reference to a 'theme' that I can find in the OS. I had some previous problems with QT themes (no frame borders). QT GUI style is set to 'GTK+'. The other choices are (how can I say this politely???) unappealing. Regards, Lewis On 01/22/2015 02:08 PM, Beno?t Minisini wrote: > Which GTK+ theme do you use? From lewis at ...3412... Thu Jan 22 21:47:06 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 22 Jan 2015 14:47:06 -0600 Subject: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error In-Reply-To: <54C15DE8.6060007@...3412...> References: <54BFEC32.3020306@...3412...> <54C15813.1090609@...1...> <54C158BE.7070605@...1...> <54C15DE8.6060007@...3412...> Message-ID: <54C161CA.3090104@...3412...> I changed the 'QT GUI style' to "Windows". The problem went away. So the problem is probably in the 'GTK+' style which I believe is the default for Mate. I will post this thread to the Mint forumns and see if there is any response there. Cheers, Lewis On 01/22/2015 02:30 PM, Lewis Balentine wrote: > Note the project is a QT graphical project as opposed to a GTK > graphical project (if it makes any difference). > > As for GTK+ theme .... how would I know ? I am using Linux Mint 17 with > the Mate Desktop environment. There are no preferences that refer to > 'GTK theme' but my 'appearance' preferences are set to "Mint-X" theme. > That is the only reference to a 'theme' that I can find in the OS. > > I had some previous problems with QT themes (no frame borders). QT GUI > style is set to 'GTK+'. The other choices are (how can I say this > politely???) unappealing. > > Regards, > > Lewis > > On 01/22/2015 02:08 PM, Beno?t Minisini wrote: >> Which GTK+ theme do you use? > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Jan 22 22:03:29 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Thu, 22 Jan 2015 22:03:29 +0100 Subject: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error In-Reply-To: <54C161CA.3090104@...3412...> References: <54BFEC32.3020306@...3412...> <54C15813.1090609@...1...> <54C158BE.7070605@...1...> <54C15DE8.6060007@...3412...> <54C161CA.3090104@...3412...> Message-ID: <54C165A1.4050505@...1...> Le 22/01/2015 21:47, Lewis Balentine a ?crit : > I changed the 'QT GUI style' to "Windows". The problem went away. So > the problem is probably in the 'GTK+' style which I believe is the > default for Mate. I will post this thread to the Mint forumns and see > if there is any response there. > > Cheers, > > Lewis > I have tested with QGtk, and I don't any warning message. So I think the problem is the Mint GTK+ style when it is used by QGtk. Can you switch your project to use gb.gtk and/or gb.gtk3 instead of gb.qt4, and see if you get these warning messages? -- Beno?t Minisini From lewis at ...3412... Thu Jan 22 22:44:04 2015 From: lewis at ...3412... (Lewis Balentine) Date: Thu, 22 Jan 2015 15:44:04 -0600 Subject: [Gambas-user] DataControl_Leave, Tab key causes Gtk - CRITICAL Error In-Reply-To: <54C165A1.4050505@...1...> References: <54BFEC32.3020306@...3412...> <54C15813.1090609@...1...> <54C158BE.7070605@...1...> <54C15DE8.6060007@...3412...> <54C161CA.3090104@...3412...> <54C165A1.4050505@...1...> Message-ID: <54C16F24.5050600@...3412...> I switched the desktop QT Style back to 'GTK+' and changed the project to from gb.qt4 to gb.gtk (and gb.gtk3). I get no error but I get no functionality either :-( The Tab keys goes through the next three controls without setting the focus. Those controls are: DataControl3 (date: switch from date string to calendar) DataControl4 (boolean) ButtonNext (standard form button) I closed the project and switch the Desktop back to QT Style back to 'Windows'. There was no change. Then I tried gb.gui .... no change (Both QT Styles). Just to be thourogh I tested it with QT Style 'Plastique' as well. This was the same results as 'Windows'. I think I have gone through most of the possible combinations ... :-) What does work as expected is: QT Style = 'Windows' or 'Plastique' with gb.qt Regards, Lewis On 01/22/2015 03:03 PM, Beno?t Minisini wrote: > Le 22/01/2015 21:47, Lewis Balentine a ?crit : >> I changed the 'QT GUI style' to "Windows". The problem went away. So >> the problem is probably in the 'GTK+' style which I believe is the >> default for Mate. I will post this thread to the Mint forumns and see >> if there is any response there. >> >> Cheers, >> >> Lewis >> > I have tested with QGtk, and I don't any warning message. So I think the > problem is the Mint GTK+ style when it is used by QGtk. > > Can you switch your project to use gb.gtk and/or gb.gtk3 instead of > gb.qt4, and see if you get these warning messages? > From taboege at ...626... Thu Jan 22 23:20:05 2015 From: taboege at ...626... (Tobias Boege) Date: Thu, 22 Jan 2015 23:20:05 +0100 Subject: [Gambas-user] Task.Value vanishes Message-ID: <20150122222005.GB988@...2774...> Hi Benoit, we encountered a problem with Task.Value; at least I think it's a problem. If you have a Task which returns a value and you read it using hTask.Value, you can't read it again. The reason is straight-forward in gbx_c_task.c. Why is that so? I wouldn't expect a property read to have write (erase) consequences. Demonstration project attached. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: eat-task-value-0.0.1.tar.gz Type: application/octet-stream Size: 3870 bytes Desc: not available URL: From adamnt42 at ...626... Thu Jan 22 23:50:21 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 23 Jan 2015 09:20:21 +1030 Subject: [Gambas-user] Getting the "source string" for a picture In-Reply-To: <54C1565E.80707@...1...> References: <20150121084830.d69ee8d35cd5717240d24c94@...626...> <20150120222458.GC25373@...2774...> <20150121105607.ce9644faabcaa55d2b323df1@...626...> <54BEF9ED.1080705@...1...> <20150121124820.541d0ff90080e9b6e18da02b@...626...> <20150122110428.2695e3d06e4410d2e8419e9a@...626...> <54C1565E.80707@...1...> Message-ID: <20150123092021.9fc96af54e2faf5212addf9f@...626...> On Thu, 22 Jan 2015 20:58:22 +0100 Beno?t Minisini wrote: > > "Huge" toolbar icons were implemented in revision #6854. > > Regards, > > -- > Beno?t Minisini > I rigged up a laptop this morning and took it out to the local track where one of our client trainers was working horses. We compared him using the system with large icons for one horse and huge toolbar icons for another. The difference was amazing. This guy is 68 years old and has hands the size of pork legs. It took him about half the time, using the mousepad, to hit the correct tool button with huge as compared to large. So thanks for that quick response. A couple of things emerged though. I haven't thought them through yet ( this getting up at 3:30am has got fur on it and I am going to have a little lie down for a few hours to recover lost beauty sleep) but quickly: * is there a way to change the cursor/pointer size when the mouse is over a toolbar? * there appears to be some oddities that occur with vertical toolbars. (I'll get back with more info on this one later) best regards Bruce -- B Bruen From gambas at ...1... Fri Jan 23 01:54:59 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Fri, 23 Jan 2015 01:54:59 +0100 Subject: [Gambas-user] Task.Value vanishes In-Reply-To: <20150122222005.GB988@...2774...> References: <20150122222005.GB988@...2774...> Message-ID: <54C19BE3.2010204@...1...> Le 22/01/2015 23:20, Tobias Boege a ?crit : > Hi Benoit, > > we encountered a problem with Task.Value; at least I think it's a problem. > If you have a Task which returns a value and you read it using hTask.Value, > you can't read it again. The reason is straight-forward in gbx_c_task.c. > > Why is that so? I wouldn't expect a property read to have write (erase) > consequences. Demonstration project attached. > > Regards, > Tobi > It does not vanish anymore in revision #6857. Regards, -- Beno?t Minisini From bagoneo at ...69... Sat Jan 24 21:34:27 2015 From: bagoneo at ...69... (Gian) Date: Sat, 24 Jan 2015 21:34:27 +0100 Subject: [Gambas-user] Problems with the packaging in Ubuntu 14.04. Message-ID: <54C401D3.6070601@...69...> Hello everyone, I did various tests of packaging with some simple little programs that work well in Gambas3 3.6.2 IDE with QT or GTK. I have installed on VirtualBox with Ubuntu 14.04 clean and updated, proceeding in this manner: In a terminal: ~$ sudo add-apt-repository ppa:gambas-team/gambas3 ~$ sudo apt-get update After have used two methods: Double click on the deb package and installed with Ubuntu Software Center or ~$ sudo dpkg -i ~$ sudo apt-get -f install Whatever the used method, Ubuntu Software Center do not see these programs and not know that are installed. Only once has seen the program, but only appeared in the ?All the software? section and not in the ?Installed?. (In Package group I've tried doc, graphics etc. but I did not understand what it means) If I click on the dash sometimes start the program, sometimes must to drag the icon in the launcher to start it. The programs made with QT employ to charge about 15 seconds, those made in GTK start immediately. Finally I have uninstalled with: ~$ sudo apt-get purge ~$ sudo apt-get autoremove ~$ sudo apt-get clean everything is clean. Something wrong in the procedure, or it is impossible to see the program installed in Ubuntu Software Center? Regards Gianluigi PS: I not understand what I should write in Desktop configuration file, Extra dependencies and Extra files. From epost at ...3323... Sat Jan 24 23:49:37 2015 From: epost at ...3323... (=?UTF-8?B?SsO4cm4gRXJpayBNw7hybmU=?=) Date: Sat, 24 Jan 2015 23:49:37 +0100 Subject: [Gambas-user] Possible bug on offline help In-Reply-To: <5478D11C.6020808@...1...> References: <54788929.90402@...69...> <5478959B.8000807@...1...> <547898EB.8050508@...69...> <5478D11C.6020808@...1...> Message-ID: <54C42181.8020801@...3323...> Den 28. nov. 2014 20:46, skrev Beno?t Minisini: > Le 28/11/2014 16:46, Gian a ?crit : >> Il 28/11/2014 16:32, Beno?t Minisini ha scritto: >>> Mmm... Did you download the offline documentation? >> No Benoit, >> I was online when I downloaded the help according to your instructions >> (http://gambas.8142.n7.nabble.com/Support-for-offline-help-td47438.html). >> I did it because a friend of ours Gambas-it.org reporting the issue. >> Thanks for interest. >> Regards >> Gianluigi >> > Does it change anything if you choose the english language in the help > window? > > The offline help is installed in '~/.local/share/gambas3/wiki'. Can you > check it is present? > Now I get what you meant! I see mine is set to "Default language" and that was the reason why it has not worked all along. Setting it to "English (common)" works! Perhaps, when there is no translation of the documentation in the default language, it should automatically fall back to English? That would be super! Kind regards! From taboege at ...626... Sat Jan 24 23:56:17 2015 From: taboege at ...626... (Tobias Boege) Date: Sat, 24 Jan 2015 23:56:17 +0100 Subject: [Gambas-user] Possible bug on offline help In-Reply-To: <54C42181.8020801@...3323...> References: <54788929.90402@...69...> <5478959B.8000807@...1...> <547898EB.8050508@...69...> <5478D11C.6020808@...1...> <54C42181.8020801@...3323...> Message-ID: <20150124225617.GA587@...2774...> On Sat, 24 Jan 2015, J??rn Erik M??rne wrote: > > Den 28. nov. 2014 20:46, skrev Beno??t Minisini: > > Le 28/11/2014 16:46, Gian a ??crit : > >> Il 28/11/2014 16:32, Beno??t Minisini ha scritto: > >>> Mmm... Did you download the offline documentation? > >> No Benoit, > >> I was online when I downloaded the help according to your instructions > >> (http://gambas.8142.n7.nabble.com/Support-for-offline-help-td47438.html). > >> I did it because a friend of ours Gambas-it.org reporting the issue. > >> Thanks for interest. > >> Regards > >> Gianluigi > >> > > Does it change anything if you choose the english language in the help > > window? > > > > The offline help is installed in '~/.local/share/gambas3/wiki'. Can you > > check it is present? > > > Now I get what you meant! I see mine is set to "Default language" and > that was the reason why it has not worked all along. Setting it to > "English (common)" works! Perhaps, when there is no translation of the > documentation in the default language, it should automatically fall back > to English? That would be super! > I thought this was already fixed on 19th Nov[0]? Maybe it didn't work on your side because the pre-19th-Nov pages are cached? Regards, Tobi [0] http://sourceforge.net/p/gambas/mailman/message/33042310/ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at ...626... Sun Jan 25 00:10:33 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sun, 25 Jan 2015 09:40:33 +1030 Subject: [Gambas-user] Having some issues with columnview Message-ID: <20150125094033.9bb3a5fced78d95ca2037997@...626...> I am trying to build a tool to help us manage all the various versions of packages we have for our stuff as different clients use different versions of our applications and components. The problem I am having is that one of the columns may contain multi-line text. Those rows do not display "properly" in the form (see attached). I have investigated the gui-base columnview classes and it appears that it does try to set the row height. But it appears to me that the actual row height is determined only by the size of the font not the actual text itself. Or have I misunderstood the code? rgrds Bruce -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas Package Manager_052.png Type: image/png Size: 135648 bytes Desc: not available URL: From epost at ...3323... Sun Jan 25 00:51:00 2015 From: epost at ...3323... (=?windows-1252?Q?J=F8rn_Erik_M=F8rne?=) Date: Sun, 25 Jan 2015 00:51:00 +0100 Subject: [Gambas-user] Possible bug on offline help In-Reply-To: <20150124225617.GA587@...2774...> References: <54788929.90402@...69...> <5478959B.8000807@...1...> <547898EB.8050508@...69...> <5478D11C.6020808@...1...> <54C42181.8020801@...3323...> <20150124225617.GA587@...2774...> Message-ID: <54C42FE4.9010607@...3323...> Den 24. jan. 2015 23:56, skrev Tobias Boege: > On Sat, 24 Jan 2015, J??rn Erik M??rne wrote: >> Den 28. nov. 2014 20:46, skrev Beno??t Minisini: >>> Le 28/11/2014 16:46, Gian a ??crit : >>>> Il 28/11/2014 16:32, Beno??t Minisini ha scritto: >>>>> Mmm... Did you download the offline documentation? >>>> No Benoit, >>>> I was online when I downloaded the help according to your instructions >>>> (http://gambas.8142.n7.nabble.com/Support-for-offline-help-td47438.html). >>>> I did it because a friend of ours Gambas-it.org reporting the issue. >>>> Thanks for interest. >>>> Regards >>>> Gianluigi >>>> >>> Does it change anything if you choose the english language in the help >>> window? >>> >>> The offline help is installed in '~/.local/share/gambas3/wiki'. Can you >>> check it is present? >>> >> Now I get what you meant! I see mine is set to "Default language" and >> that was the reason why it has not worked all along. Setting it to >> "English (common)" works! Perhaps, when there is no translation of the >> documentation in the default language, it should automatically fall back >> to English? That would be super! >> > I thought this was already fixed on 19th Nov[0]? Maybe it didn't work on > your side because the pre-19th-Nov pages are cached? > > Regards, > Tobi > > [0] http://sourceforge.net/p/gambas/mailman/message/33042310/ > Clearing the cache did not help... From bagoneo at ...69... Sun Jan 25 20:19:12 2015 From: bagoneo at ...69... (Gian) Date: Sun, 25 Jan 2015 20:19:12 +0100 Subject: [Gambas-user] Problems with the packaging in Ubuntu 14.04. In-Reply-To: <54C401D3.6070601@...69...> References: <54C401D3.6070601@...69...> Message-ID: <54C541B0.6020803@...69...> Il 24/01/2015 21:34, Gian ha scritto: > Hello everyone, > I did various tests of packaging with some simple little programs that > work well in Gambas3 3.6.2 IDE with QT or GTK. > I have installed on VirtualBox with Ubuntu 14.04 clean and updated, > proceeding in this manner: > In a terminal: > ~$ sudo add-apt-repository ppa:gambas-team/gambas3 > ~$ sudo apt-get update > After have used two methods: > Double click on the deb package and installed with Ubuntu Software Center > or > ~$ sudo dpkg -i > ~$ sudo apt-get -f install > Whatever the used method, Ubuntu Software Center do not see these > programs and not know that are installed. Only once has seen the > program, but only appeared in the ?All the software? section and not in > the ?Installed?. > (In Package group I've tried doc, graphics etc. but I did not understand > what it means) > If I click on the dash sometimes start the program, sometimes must to > drag the icon in the launcher to start it. > The programs made with QT employ to charge about 15 seconds, those made > in GTK start immediately. > Finally I have uninstalled with: > ~$ sudo apt-get purge > ~$ sudo apt-get autoremove > ~$ sudo apt-get clean > everything is clean. > Something wrong in the procedure, or it is impossible to see the program > installed in Ubuntu Software Center? > > Regards > Gianluigi > > PS: I not understand what I should write in Desktop configuration file, > Extra dependencies and Extra files. > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > http://p.sf.net/sfu/gigenet > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi all, I apologize for my terrible English, I hope not sound disrespectful. Regards Gianluigi From Karl.Reinl at ...2345... Sun Jan 25 20:59:44 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 25 Jan 2015 20:59:44 +0100 Subject: [Gambas-user] [CRASH REPORT] TestApp01 Message-ID: <1422215984.3354.28.camel@...40...> Hello, Damned, my program crashed Gambas that way : This connection throws a #11 at Try con.Open() Public Sub Form_Open() Dim con As New Connection With con .Host = "" .Name = "myTable" ' .Charset = sCharSet .Type = "" .Login = "" .Password = "" End With Try con.Open() End first reported 08 Jan 2015 21:17:08 +0100 by me [System] Gambas=3.6.90 rev. 6866 OperatingSystem=Linux Kernel=3.2.0-75-generic Architecture=x86 Distribution=Ubuntu 12.04.5 LTS Desktop=GNOME Theme=QPlastique Language=de_DE.UTF-8 Memory=3025M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.5.8 GStreamer=libgstreamer-0.10.so.0.30.0 GTK+3=libgtk-3.so.0.400.2 GTK+=libgtk-x11-2.0.so.0.2400.10 Poppler=libpoppler.so.19.0.0 Qt4=libQtCore.so.4.8.1 SDL=libSDL-1.2.so.0.11.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: TestApp01-0.0.1-crash-150125-205521.tar.bz2 Type: application/x-bzip-compressed-tar Size: 43241 bytes Desc: not available URL: From gambas at ...2524... Sun Jan 25 21:50:01 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 25 Jan 2015 20:50:01 +0000 Subject: [Gambas-user] Issue 598 in gambas: Deploy of components on debian systems fails because of gambas3-prefix In-Reply-To: <0-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-3.6.0 Comment #1 on issue 598 by benoit.m... at ...626...: Deploy of components on debian systems fails because of gambas3-prefix https://code.google.com/p/gambas/issues/detail?id=598 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sun Jan 25 23:06:02 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 25 Jan 2015 22:06:02 +0000 Subject: [Gambas-user] Issue 598 in gambas: Deploy of components on debian systems fails because of gambas3-prefix In-Reply-To: <1-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> <0-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Comment #2 on issue 598 by benoit.m... at ...626...: Deploy of components on debian systems fails because of gambas3-prefix https://code.google.com/p/gambas/issues/detail?id=598 It should be fixed in revision #6869, can you confirm? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sun Jan 25 23:57:04 2015 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Sun, 25 Jan 2015 23:57:04 +0100 Subject: [Gambas-user] Problems with the packaging in Ubuntu 14.04. In-Reply-To: <54C401D3.6070601@...69...> References: <54C401D3.6070601@...69...> Message-ID: <54C574C0.90607@...1...> Le 24/01/2015 21:34, Gian a ?crit : > Hello everyone, > I did various tests of packaging with some simple little programs that > work well in Gambas3 3.6.2 IDE with QT or GTK. > I have installed on VirtualBox with Ubuntu 14.04 clean and updated, > proceeding in this manner: > In a terminal: > ~$ sudo add-apt-repository ppa:gambas-team/gambas3 > ~$ sudo apt-get update > After have used two methods: > Double click on the deb package and installed with Ubuntu Software Center > or > ~$ sudo dpkg -i > ~$ sudo apt-get -f install > Whatever the used method, Ubuntu Software Center do not see these > programs and not know that are installed. Only once has seen the > program, but only appeared in the ?All the software? section and not in > the ?Installed?. > (In Package group I've tried doc, graphics etc. but I did not understand > what it means) I can't tell you if you don't provide the packages or the projects you made packages from. AFAIK, on Ubuntu and Debian, a package has: - A group: it should be used by the package manager to group packages. Try Synaptic instead of Ubuntu Software Center to check if you see a difference. - A menu entry: where it goes in the desktop menu. - Categories: this is also used for deciding where the application menu entry goes in the desktop menu. > If I click on the dash sometimes start the program, sometimes must to > drag the icon in the launcher to start it. What's the "dash"? > The programs made with QT employ to charge about 15 seconds, those made > in GTK start immediately. No idea why. Note that if you use a Gnome desktop, or GTK+ applications, the GTK+ librairies are already loaded. QT libraries may not be loaded, hence the longer startup time (even if 15 seconds is very long! But it depends on what your program does and which components it uses exactly). > Finally I have uninstalled with: > ~$ sudo apt-get purge > ~$ sudo apt-get autoremove > ~$ sudo apt-get clean > everything is clean. > Something wrong in the procedure, or it is impossible to see the program > installed in Ubuntu Software Center? > > Regards > Gianluigi > > PS: I not understand what I should write in Desktop configuration file, > Extra dependencies and Extra files. By default, nothing. But you can avoid finding and reading the documentation of your distribution that explains how to make a package. Everything comes from that. For Ubuntu, read the Debian's documentation. Regards, -- Beno?t Minisini From Karl.Reinl at ...2345... Mon Jan 26 00:42:05 2015 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Mon, 26 Jan 2015 00:42:05 +0100 Subject: [Gambas-user] [CRASH REPORT] TestApp01 In-Reply-To: <54C57314.70903@...1...> References: <1422215984.3354.28.camel@...40...> <54C55292.1010401@...1...> <54C57314.70903@...1...> Message-ID: <1422229325.3354.32.camel@...40...> Am Sonntag, den 25.01.2015, 23:49 +0100 schrieb Beno?t Minisini: > Le 25/01/2015 21:31, Beno?t Minisini a ?crit : > > Le 25/01/2015 20:59, Charlie Reinl a ?crit : > >> Hello, > >> > >> Damned, my program crashed Gambas that way : > >> > >> This connection throws a #11 at Try con.Open() > >> > >> Public Sub Form_Open() > >> Dim con As New Connection > >> With con > >> .Host = "" > >> .Name = "myTable" > >> ' .Charset = sCharSet > >> .Type = "" > >> .Login = "" > >> .Password = "" > >> End With > >> Try con.Open() > >> End > >> > > > > I thought it had been fixed in revision #6850... > > > > Fixed in revison #6870. > > Regards, > Yes, now it is fixed -- Amicalement Charlie From lewis at ...3412... Mon Jan 26 07:29:42 2015 From: lewis at ...3412... (Lewis Balentine) Date: Mon, 26 Jan 2015 00:29:42 -0600 Subject: [Gambas-user] Software Farm, Unable to get password. Message-ID: <54C5DED6.4090303@...3412...> "This application has raised an unexpected error and must abbort. Unable to get password. _Desktop_passwords._get.69" Error raised when selecting "Software Farm" from Gambas 3.6.90 main menu page. This is a fresh update (in the past hour) of the Gambas daily build. Operating system: Linux Mint 17 with Mate desktop environment. Regards, Lewis Balentine [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.13.0-24-generic Architecture=x86_64 Distribution=Linux Mint 17 Qiana Desktop=MATE Theme=QGtk Language=en_US.UTF-8 Memory=3944M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 From t.lee.davidson at ...626... Mon Jan 26 07:48:40 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Mon, 26 Jan 2015 01:48:40 -0500 Subject: [Gambas-user] Software Farm, Unable to get password. In-Reply-To: <54C5DED6.4090303@...3412...> References: <54C5DED6.4090303@...3412...> Message-ID: <54C5E348.2070306@...626...> Could be a problem with the keyring on your desktop. On KDE, the default keyring is 'kwallet'. Not sure what it would be on Linux Mint 17 with Mate. Perhaps 'mate-keyring', or, more likely, 'gnome-keyring'. If you have it disabled or it is having issues, Gambas would/could have difficulty connecting with it. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/26/2015 01:29 AM, Lewis Balentine wrote: > "This application has raised an unexpected error and must abbort. > Unable to get password. > _Desktop_passwords._get.69" > > Error raised when selecting "Software Farm" from Gambas 3.6.90 main menu > page. > This is a fresh update (in the past hour) of the Gambas daily build. > > Operating system: Linux Mint 17 with Mate desktop environment. > > Regards, > > Lewis Balentine From lewis at ...3412... Mon Jan 26 08:17:52 2015 From: lewis at ...3412... (Lewis Balentine) Date: Mon, 26 Jan 2015 01:17:52 -0600 Subject: [Gambas-user] Software Farm, Unable to get password. In-Reply-To: <54C5E348.2070306@...626...> References: <54C5DED6.4090303@...3412...> <54C5E348.2070306@...626...> Message-ID: <54C5EA20.80408@...3412...> It is 'gnome-keyring'. It is installed and as far as I know not disabled. I am not having any trouble with it --- well not until now anyway. I believe Chrome uses it as well. I opened TitanTV web site in Chrome to verify that it was able to use 'saved' credentials for that site. On 01/26/2015 12:48 AM, T Lee Davidson wrote: > Could be a problem with the keyring on your desktop. On KDE, the default keyring > is 'kwallet'. Not sure what it would be on Linux Mint 17 with Mate. Perhaps > 'mate-keyring', or, more likely, 'gnome-keyring'. > > If you have it disabled or it is having issues, Gambas would/could have > difficulty connecting with it. > > > Lee > __________ > > "Artificial Intelligence is no match for natural stupidity." > > On 01/26/2015 01:29 AM, Lewis Balentine wrote: >> "This application has raised an unexpected error and must abbort. >> Unable to get password. >> _Desktop_passwords._get.69" >> >> Error raised when selecting "Software Farm" from Gambas 3.6.90 main menu >> page. >> This is a fresh update (in the past hour) of the Gambas daily build. >> >> Operating system: Linux Mint 17 with Mate desktop environment. >> >> Regards, >> >> Lewis Balentine > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From lewis at ...3412... Mon Jan 26 15:28:07 2015 From: lewis at ...3412... (Lewis Balentine) Date: Mon, 26 Jan 2015 08:28:07 -0600 Subject: [Gambas-user] Data Base Example Message-ID: <54C64EF7.3070407@...3412...> Following a thread from last week regarding refreshing DataControl I have developed a small GUI project to demonstrate the use of DataSource and DataControl items of gb.db.form. It demonstrates how to create the data connection, move between records (first, previous, next, last), save/cancel edits, begin/commit/rollback transactions. There are 299 lines of code with the majority dedicated to enabling/disabling the various buttons. It includes a SQLite data file but should be compatable with any supported Database. I did "try" to publish this to the software farm but I encountered a problem with my credentials. Comments or suggestions for improvement are welcomed. Regards, Lewis Balentine P.S. Many thanks to Lee Davidson for help in working out the cancel process. -------------- next part -------------- A non-text attachment was scrubbed... Name: DataBaseExample-0.0.1.tar.gz Type: application/gzip Size: 10406 bytes Desc: not available URL: From gambas at ...1... Mon Jan 26 16:04:04 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 26 Jan 2015 16:04:04 +0100 Subject: [Gambas-user] Data Base Example In-Reply-To: <54C64EF7.3070407@...3412...> References: <54C64EF7.3070407@...3412...> Message-ID: <54C65764.8000703@...1...> Le 26/01/2015 15:28, Lewis Balentine a ?crit : > Following a thread from last week regarding refreshing DataControl I > have developed a small GUI project to demonstrate the use of DataSource > and DataControl items of gb.db.form. It demonstrates how to create the > data connection, move between records (first, previous, next, last), > save/cancel edits, begin/commit/rollback transactions. There are 299 > lines of code with the majority dedicated to enabling/disabling the > various buttons. It includes a SQLite data file but should be compatable > with any supported Database. > > I did "try" to publish this to the software farm but I encountered a > problem with my credentials. Comments or suggestions for improvement are > welcomed. > > Regards, > > Lewis Balentine > > P.S. > Many thanks to Lee Davidson for help in working out the cancel process. > I'm currently creating a VirtualBox VM with Mint inside it to understand how gnome-keyring works on Mint... -- Beno?t Minisini From lewis at ...3412... Mon Jan 26 16:13:06 2015 From: lewis at ...3412... (Lewis Balentine) Date: Mon, 26 Jan 2015 09:13:06 -0600 Subject: [Gambas-user] Data Base Example In-Reply-To: <54C65764.8000703@...1...> References: <54C64EF7.3070407@...3412...> <54C65764.8000703@...1...> Message-ID: <54C65982.3000501@...3412...> The source of the problem is more likely my incompetence than the software. On 01/26/2015 09:04 AM, Beno?t Minisini wrote: > I'm currently creating a VirtualBox VM with Mint inside it to > understand how gnome-keyring works on Mint... From lewis at ...3412... Mon Jan 26 18:11:50 2015 From: lewis at ...3412... (Lewis Balentine) Date: Mon, 26 Jan 2015 11:11:50 -0600 Subject: [Gambas-user] Data Base Example In-Reply-To: <54C65764.8000703@...1...> References: <54C64EF7.3070407@...3412...> <54C65764.8000703@...1...> Message-ID: <54C67556.4060100@...3412...> Well when you get past that ... I created a new VM as well (Vmware). This time I did not check the box 'save password'. Then when I tried to publish the project I got the following error: "Unable to publish project. Incorrect version Content-type: text/palin;charset=utf-8 10 OK" ... but it seems to have gotten published anyway. :-) The screenshot is 3X larger than the rest of project ... Cheers, Lewis On 01/26/2015 09:04 AM, Beno?t Minisini wrote: > Le 26/01/2015 15:28, Lewis Balentine a ?crit : >> Following a thread from last week regarding refreshing DataControl I >> have developed a small GUI project to demonstrate the use of DataSource >> and DataControl items of gb.db.form. It demonstrates how to create the >> data connection, move between records (first, previous, next, last), >> save/cancel edits, begin/commit/rollback transactions. There are 299 >> lines of code with the majority dedicated to enabling/disabling the >> various buttons. It includes a SQLite data file but should be compatable >> with any supported Database. >> >> I did "try" to publish this to the software farm but I encountered a >> problem with my credentials. Comments or suggestions for improvement are >> welcomed. >> >> Regards, >> >> Lewis Balentine >> >> P.S. >> Many thanks to Lee Davidson for help in working out the cancel process. >> > I'm currently creating a VirtualBox VM with Mint inside it to understand > how gnome-keyring works on Mint... > From t.lee.davidson at ...626... Mon Jan 26 18:48:52 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Mon, 26 Jan 2015 12:48:52 -0500 Subject: [Gambas-user] Data Base Example In-Reply-To: <54C64EF7.3070407@...3412...> References: <54C64EF7.3070407@...3412...> Message-ID: <54C67E04.2030600@...626...> Good work, Lewis. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/26/2015 09:28 AM, Lewis Balentine wrote: > Following a thread from last week regarding refreshing DataControl I have > developed a small GUI project to demonstrate the use of DataSource and > DataControl items of gb.db.form. It demonstrates how to create the data > connection, move between records (first, previous, next, last), save/cancel > edits, begin/commit/rollback transactions. There are 299 lines of code with the > majority dedicated to enabling/disabling the various buttons. It includes a > SQLite data file but should be compatable with any supported Database. > > I did "try" to publish this to the software farm but I encountered a problem > with my credentials. Comments or suggestions for improvement are welcomed. > > Regards, > > Lewis Balentine > > P.S. > Many thanks to Lee Davidson for help in working out the cancel process. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagoneo at ...69... Mon Jan 26 19:47:54 2015 From: bagoneo at ...69... (Gian) Date: Mon, 26 Jan 2015 19:47:54 +0100 Subject: [Gambas-user] Problems with the packaging in Ubuntu 14.04. In-Reply-To: <54C574C0.90607@...1...> References: <54C401D3.6070601@...69...> <54C574C0.90607@...1...> Message-ID: <54C68BDA.2010500@...69...> Il 25/01/2015 23:57, Beno?t Minisini ha scritto: > Le 24/01/2015 21:34, Gian a ?crit : >> Hello everyone, >> I did various tests of packaging with some simple little programs that >> work well in Gambas3 3.6.2 IDE with QT or GTK. >> I have installed on VirtualBox with Ubuntu 14.04 clean and updated, >> proceeding in this manner: >> In a terminal: >> ~$ sudo add-apt-repository ppa:gambas-team/gambas3 >> ~$ sudo apt-get update >> After have used two methods: >> Double click on the deb package and installed with Ubuntu Software Center >> or >> ~$ sudo dpkg -i >> ~$ sudo apt-get -f install >> Whatever the used method, Ubuntu Software Center do not see these >> programs and not know that are installed. Only once has seen the >> program, but only appeared in the ?All the software? section and not in >> the ?Installed?. >> (In Package group I've tried doc, graphics etc. but I did not understand >> what it means) > > I can't tell you if you don't provide the packages or the projects you > made packages from. > > AFAIK, on Ubuntu and Debian, a package has: > > - A group: it should be used by the package manager to group packages. > Try Synaptic instead of Ubuntu Software Center to check if you see a > difference. > > - A menu entry: where it goes in the desktop menu. > > - Categories: this is also used for deciding where the application menu > entry goes in the desktop menu. > >> If I click on the dash sometimes start the program, sometimes must to >> drag the icon in the launcher to start it. > > What's the "dash"? > >> The programs made with QT employ to charge about 15 seconds, those made >> in GTK start immediately. > > No idea why. Note that if you use a Gnome desktop, or GTK+ applications, > the GTK+ librairies are already loaded. QT libraries may not be loaded, > hence the longer startup time (even if 15 seconds is very long! But it > depends on what your program does and which components it uses exactly). > >> Finally I have uninstalled with: >> ~$ sudo apt-get purge >> ~$ sudo apt-get autoremove >> ~$ sudo apt-get clean >> everything is clean. >> Something wrong in the procedure, or it is impossible to see the program >> installed in Ubuntu Software Center? >> >> Regards >> Gianluigi >> >> PS: I not understand what I should write in Desktop configuration file, >> Extra dependencies and Extra files. > > By default, nothing. But you can avoid finding and reading the > documentation of your distribution that explains how to make a package. > Everything comes from that. For Ubuntu, read the Debian's documentation. > > Regards, > Hello Benoit and thank very much for your attention, I send you a compressed file named Minisini containing 6 compilations of packages + 6 sources of my 3 small programs, those of which I am ashamed of less :) Thanks for the explanation. I precise you that 15 second is the load time displayed by the mouse pointer out of the form, but within the form, the program works immediately. Remaking the programs for you, I noted that the program ?Date exchange? in GTK version, the hierarchy tab not work, while QT is ok. I can not believe that you do not know the Dash; it is the system by which Unity find all that is in the computer and online, it is activated from the first button on top the launcher, the one with the Ubuntu icon. Normally from there we launch applications that are not fixed on the launcher. :) Regards Gianluigi -------------- next part -------------- A non-text attachment was scrubbed... Name: Minisini.tar.gz Type: application/gzip Size: 235757 bytes Desc: not available URL: From bagoneo at ...69... Mon Jan 26 20:27:53 2015 From: bagoneo at ...69... (Gian) Date: Mon, 26 Jan 2015 20:27:53 +0100 Subject: [Gambas-user] Problems with the packaging in Ubuntu 14.04. In-Reply-To: <54C68BDA.2010500@...69...> References: <54C401D3.6070601@...69...> <54C574C0.90607@...1...> <54C68BDA.2010500@...69...> Message-ID: <54C69539.7000301@...69...> Il 26/01/2015 19:47, Gian ha scritto: > Il 25/01/2015 23:57, Beno?t Minisini ha scritto: >>... >>... >> What's the "dash"? >>... >>... >>... Hello, I forgot to specify that the e-mail address of the maintainer is fantasy (at least I hope). I attach a picture of the dash showing six small programs :) Regards Gianluigi -------------- next part -------------- A non-text attachment was scrubbed... Name: Dash.png Type: image/png Size: 102805 bytes Desc: not available URL: From bagoneo at ...69... Mon Jan 26 20:42:41 2015 From: bagoneo at ...69... (Gian) Date: Mon, 26 Jan 2015 20:42:41 +0100 Subject: [Gambas-user] Problems with the packaging in Ubuntu 14.04. In-Reply-To: <54C69539.7000301@...69...> References: <54C401D3.6070601@...69...> <54C574C0.90607@...1...> <54C68BDA.2010500@...69...> <54C69539.7000301@...69...> Message-ID: <54C698B1.8090606@...69...> Il 26/01/2015 20:27, Gian ha scritto: > Il 26/01/2015 19:47, Gian ha scritto: >> Il 25/01/2015 23:57, Beno?t Minisini ha scritto: >>> ... > >>... >>> What's the "dash"? > >>... > >>... > >>... > > Hello, > I forgot to specify that the e-mail address of the maintainer is fantasy > (at least I hope). > I attach a picture of the dash showing six small programs :) > Regards > Gianluigi > > Hello, The ?String GTK? program that has the icon with the bee QT is actually a project QT, I apologize for the imprecision. Regards Gianluigi From chrisml at ...3340... Mon Jan 26 22:43:51 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Mon, 26 Jan 2015 22:43:51 +0100 Subject: [Gambas-user] gb.db.postgresql does not compile Message-ID: <54C6B517.8070102@...3340...> Hi, trying to compile Gambas3 #6864 on Ubuntu 14.04 I get: $ configure -C THESE COMPONENTS ARE DISABLED: - gb.db.postgresql But the Ubuntu package libpq-dev is installed. Any hints? 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 taboege at ...626... Mon Jan 26 22:50:50 2015 From: taboege at ...626... (Tobias Boege) Date: Mon, 26 Jan 2015 22:50:50 +0100 Subject: [Gambas-user] gb.db.postgresql does not compile In-Reply-To: <54C6B517.8070102@...3340...> References: <54C6B517.8070102@...3340...> Message-ID: <20150126215050.GA571@...2774...> On Mon, 26 Jan 2015, Christof Thalhofer wrote: > Hi, > > trying to compile Gambas3 #6864 on Ubuntu 14.04 I get: > > $ configure -C > > THESE COMPONENTS ARE DISABLED: > - gb.db.postgresql > > But the Ubuntu package libpq-dev is installed. > > Any hints? > What does the configure script report when it is at gb.db.postgresl? See here[0] for how to report compilation problems. A blind guess would make me ask: when did you install libpq-dev? The -C switch to configure makes it use old, cached information about the system. If you installed libpq-dev after your last non-cached configure run, that out-dated cache might be the problem. In this case, omit the "-C". Regards, Tobi [0] http://gambaswiki.org/wiki/doc/report#t3 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Mon Jan 26 23:12:46 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 26 Jan 2015 23:12:46 +0100 Subject: [Gambas-user] gb.db.postgresql does not compile In-Reply-To: <54C6B517.8070102@...3340...> References: <54C6B517.8070102@...3340...> Message-ID: <54C6BBDE.1070401@...1...> Le 26/01/2015 22:43, Christof Thalhofer a ?crit : > Hi, > > trying to compile Gambas3 #6864 on Ubuntu 14.04 I get: > > $ configure -C > > THESE COMPONENTS ARE DISABLED: > - gb.db.postgresql > > But the Ubuntu package libpq-dev is installed. > > Any hints? > > > Alles Gute > > Christof Thalhofer > You need the 'postgresql-server-dev-9.3' package, the wiki installation instructions are not up to date. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 26 23:53:25 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 26 Jan 2015 23:53:25 +0100 Subject: [Gambas-user] gb.db.postgresql does not compile In-Reply-To: <54C6BBDE.1070401@...1...> References: <54C6B517.8070102@...3340...> <54C6BBDE.1070401@...1...> Message-ID: <54C6C565.4010608@...1...> Le 26/01/2015 23:12, Beno?t Minisini a ?crit : > Le 26/01/2015 22:43, Christof Thalhofer a ?crit : >> Hi, >> >> trying to compile Gambas3 #6864 on Ubuntu 14.04 I get: >> >> $ configure -C >> >> THESE COMPONENTS ARE DISABLED: >> - gb.db.postgresql >> >> But the Ubuntu package libpq-dev is installed. >> >> Any hints? >> >> >> Alles Gute >> >> Christof Thalhofer >> > > You need the 'postgresql-server-dev-9.3' package, the wiki installation > instructions are not up to date. > > Regards, > I have successfully installed Gambas on the last Mint, and have updated the Ubuntu installation instructions (which are the same) on the wiki accordingly. Regards, -- Beno?t Minisini From gambas at ...1... Mon Jan 26 23:54:46 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Mon, 26 Jan 2015 23:54:46 +0100 Subject: [Gambas-user] Software Farm, Unable to get password. In-Reply-To: <54C5DED6.4090303@...3412...> References: <54C5DED6.4090303@...3412...> Message-ID: <54C6C5B6.9060007@...1...> Le 26/01/2015 07:29, Lewis Balentine a ?crit : > > > "This application has raised an unexpected error and must abbort. > Unable to get password. > _Desktop_passwords._get.69" > > Error raised when selecting "Software Farm" from Gambas 3.6.90 main menu > page. > This is a fresh update (in the past hour) of the Gambas daily build. > > Operating system: Linux Mint 17 with Mate desktop environment. > > Regards, > > Lewis Balentine > The problem should have been fixed in revision #6873. It was not related to Mint at all. Regards, -- Beno?t Minisini From chrisml at ...3340... Tue Jan 27 00:04:23 2015 From: chrisml at ...3340... (Christof Thalhofer) Date: Tue, 27 Jan 2015 00:04:23 +0100 Subject: [Gambas-user] gb.db.postgresql does not compile In-Reply-To: <54C6C565.4010608@...1...> (sfid-) References: <54C6B517.8070102@...3340...> <54C6BBDE.1070401@...1...> <54C6C565.4010608@...1...> (sfid-) Message-ID: <54C6C7F7.801@...3340...> Am 26.01.2015 um 23:53 schrieb Beno?t Minisini: >> You need the 'postgresql-server-dev-9.3' package, the wiki installation >> instructions are not up to date. ... > I have successfully installed Gambas on the last Mint, and have updated > the Ubuntu installation instructions (which are the same) on the wiki > accordingly. Yeah, thank you! You both were right. After I installed postgresql-server-dev-9.3 and used configure without "-C" gb.db.postgresql compiled. Ok now I'm going to test ... tomorrow. :-) 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 gambas at ...2524... Tue Jan 27 09:33:42 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Jan 2015 08:33:42 +0000 Subject: [Gambas-user] Issue 598 in gambas: Deploy of components on debian systems fails because of gambas3-prefix In-Reply-To: <2-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> <0-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Comment #3 on issue 598 by chr4... at ...1601...: Deploy of components on debian systems fails because of gambas3-prefix https://code.google.com/p/gambas/issues/detail?id=598 I tested it and the wrong naming of deb-file and project within the .deb-file seems to be fixed, but I cannot really confirm, because if I install the component the exported classes inside seem to be renamed. If I open a project which depends on the component, I get the error "unknown identifier", the icons (in hidden/control) are not found within the IDE. And if I open the generated executable with an editor I see that the names of the classes are written with an exclamation mark (like "NameOfClass!"). If I execute the project which depends on the component within the IDE, I get an interpreter crash. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Jan 27 11:57:56 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 27 Jan 2015 10:57:56 +0000 Subject: [Gambas-user] Issue 598 in gambas: Deploy of components on debian systems fails because of gambas3-prefix In-Reply-To: <3-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> <0-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-16965081183967627166-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 598 by benoit.m... at ...626...: Deploy of components on debian systems fails because of gambas3-prefix https://code.google.com/p/gambas/issues/detail?id=598 Can you send me your project? Can you create another issue for that problem? Thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From adamnt42 at ...626... Wed Jan 28 02:02:31 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 28 Jan 2015 11:32:31 +1030 Subject: [Gambas-user] Explictly sized array parameters in method signatures? Message-ID: <20150128113231.b03b7e3fcd62940ba20abcdb@...626...> Hmm, I've never tried this before. Suppose a function GetCurrent(DateRange as Date[]), now intuitively DateRange is an array of 2 dates. No-one would be silly enough to pass an array with more than two elements would they? My cynical nature says yes they could/would. I could ignore the array length and just use DateRange[0] and DateRange[1] as the limits but that may produce confusing outcomes, or an error if DateRange contains only one element. I would like to define the function as GetCurrent(DateRange as Date[2]) but this is apparently a syntax error. Obviously, in this trivialised example, I could check the bounds of the passed array in the function body, I just expected that the runtime would check an explicitly sized array parameter. The real function is (of course) much more complex. The function requires an array of Dates[3][2] and another 5 parameters, some of which are optional. Any thoughts? Bruce -- B Bruen From t.lee.davidson at ...626... Wed Jan 28 06:43:26 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 28 Jan 2015 00:43:26 -0500 Subject: [Gambas-user] Explictly sized array parameters in method signatures? In-Reply-To: <20150128113231.b03b7e3fcd62940ba20abcdb@...626...> References: <20150128113231.b03b7e3fcd62940ba20abcdb@...626...> Message-ID: <54C876FE.20009@...626...> This may be over-simplified, but couldn't you define a DateRange structure? Or would that not provide the constraints you need? Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/27/2015 08:02 PM, adamnt42 at ...626... wrote: > Hmm, I've never tried this before. > > Suppose a function GetCurrent(DateRange as Date[]), now intuitively DateRange is an array of 2 dates. No-one would be silly enough to pass an array with more than two elements would they? My cynical nature says yes they could/would. > > I could ignore the array length and just use DateRange[0] and DateRange[1] as the limits but that may produce confusing outcomes, or an error if DateRange contains only one element. > > I would like to define the function as GetCurrent(DateRange as Date[2]) but this is apparently a syntax error. > > Obviously, in this trivialised example, I could check the bounds of the passed array in the function body, I just expected that the runtime would check an explicitly sized array parameter. The real function is (of course) much more complex. The function requires an array of Dates[3][2] and another 5 parameters, some of which are optional. > > Any thoughts? > > Bruce > From adamnt42 at ...626... Wed Jan 28 06:56:50 2015 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 28 Jan 2015 16:26:50 +1030 Subject: [Gambas-user] Explictly sized array parameters in method signatures? In-Reply-To: <54C876FE.20009@...626...> References: <20150128113231.b03b7e3fcd62940ba20abcdb@...626...> <54C876FE.20009@...626...> Message-ID: <20150128162650.bf14e510ee5f7c701ff66026@...626...> On Wed, 28 Jan 2015 00:43:26 -0500 T Lee Davidson wrote: > This may be over-simplified, but couldn't you define a DateRange structure? Or > would that not provide the constraints you need? > > > Lee > __________ > > "Artificial Intelligence is no match for natural stupidity." > Aha! That was the clue! It's actually a struct of structs (3x2) Good thinking 99, I'll give that a go. B -- B Bruen From gambas at ...2524... Wed Jan 28 11:09:11 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 28 Jan 2015 10:09:11 +0000 Subject: [Gambas-user] Issue 599 in gambas: deb package of component: icons not found Message-ID: <0-6813199134517018827-11493427735798353513-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 599 by chr4... at ...1601...: deb package of component: icons not found https://code.google.com/p/gambas/issues/detail?id=599 1) Describe the problem. If component has icons defined in .hidden/control these are not found when the component is packaged as .deb by Gambas3 and installed by apt. Because in the generated .deb-file ib the path to the control-icons the package-name is wrong. It is enclosed in single quotes: CONTENTS/usr/share/gambas3/control/'gb.deg.test' 4) Provide a little project that reproduces the bug or the crash. Two small projects are in a zip: gb.deg.test The Component ? Create a .deb-file from that, you get gambas3-deganius-gb-deg-test_3.6.2-3_all.deb testproj After installation of gambas3-deganius-gb-deg-test_3.6.2-3_all.deb open testproj and see that the icons for the components are not found. Attachments: 2testproj.zip 147 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Wed Jan 28 13:19:01 2015 From: taboege at ...626... (Tobias Boege) Date: Wed, 28 Jan 2015 13:19:01 +0100 Subject: [Gambas-user] Explictly sized array parameters in method signatures? In-Reply-To: <20150128113231.b03b7e3fcd62940ba20abcdb@...626...> References: <20150128113231.b03b7e3fcd62940ba20abcdb@...626...> Message-ID: <20150128121901.GA747@...2774...> On Wed, 28 Jan 2015, adamnt42 at ...626... wrote: > Hmm, I've never tried this before. > > Suppose a function GetCurrent(DateRange as Date[]), now intuitively DateRange is an array of 2 dates. No-one would be silly enough to pass an array with more than two elements would they? My cynical nature says yes they could/would. > > I could ignore the array length and just use DateRange[0] and DateRange[1] as the limits but that may produce confusing outcomes, or an error if DateRange contains only one element. > That's how I do it in the Graph class. A vertex is identified via a name String and an edge is a String[2]. I expect the user to provide a String[] with at least 2 elements of which indices 2, 3, ... are ignored. If they don't follow these rules, they can go jump in the lake -- or wherever it is where runtime errors dwell. The thing is, as you implied, that there is (likely) no error recovery strategy which is guaranteed to be natural for everyone. My personal practice in these cases is to let the interpreter raise the appropriate error. Less defined behaviour in a component's interface makes it easier to be backwards-compatible :-) (The otherwise very good suggestion of using a Struct/Class was not applicable to the graph case, IIRC.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagoneo at ...69... Wed Jan 28 19:25:02 2015 From: bagoneo at ...69... (Gian) Date: Wed, 28 Jan 2015 19:25:02 +0100 Subject: [Gambas-user] Problem with UCase$ ? Message-ID: <54C9297E.9080308@...69...> Hello all, I noticed one thing, if I write UCase $ ("perch?") I get PERCH? If I write Print.Ucase ("perch?") I get PERCH? It is correct? ("perch?" is "why" or "because" in italian language) Regards Gianluigi From jussi.lahtinen at ...626... Wed Jan 28 19:32:34 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 28 Jan 2015 20:32:34 +0200 Subject: [Gambas-user] Problem with UCase$ ? In-Reply-To: <54C9297E.9080308@...69...> References: <54C9297E.9080308@...69...> Message-ID: You mean String.Ucase() ? The other function is for unicode and the other is only for ascii. Jussi On Wed, Jan 28, 2015 at 8:25 PM, Gian wrote: > Hello all, > I noticed one thing, if I write UCase $ ("perch?") I get PERCH? > If I write Print.Ucase ("perch?") I get PERCH? > It is correct? > ("perch?" is "why" or "because" in italian language) > Regards > Gianluigi > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagoneo at ...69... Wed Jan 28 19:34:10 2015 From: bagoneo at ...69... (Gian) Date: Wed, 28 Jan 2015 19:34:10 +0100 Subject: [Gambas-user] Problem with UCase$ ? In-Reply-To: <54C9297E.9080308@...69...> References: <54C9297E.9080308@...69...> Message-ID: <54C92BA2.1060802@...69...> Il 28/01/2015 19:25, Gian ha scritto: > Hello all, > I noticed one thing, if I write UCase $ ("perch?") I get PERCH? > If I write Print.Ucase ("perch?") I get PERCH? > It is correct? > ("perch?" is "why" or "because" in italian language) > Regards > Gianluigi > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Sorry :) [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.13.0-45-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=4961M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 From bagoneo at ...69... Wed Jan 28 19:40:16 2015 From: bagoneo at ...69... (Gian) Date: Wed, 28 Jan 2015 19:40:16 +0100 Subject: [Gambas-user] Problem with UCase$ ? In-Reply-To: References: <54C9297E.9080308@...69...> Message-ID: <54C92D10.4070906@...69...> Il 28/01/2015 19:32, Jussi Lahtinen ha scritto: > You mean String.Ucase() ? > The other function is for unicode and the other is only for ascii. > > > Jussi > > On Wed, Jan 28, 2015 at 8:25 PM, Gian wrote: > >> Hello all, >> I noticed one thing, if I write UCase $ ("perch?") I get PERCH? >> If I write Print.Ucase ("perch?") I get PERCH? >> It is correct? >> ("perch?" is "why" or "because" in italian language) >> Regards >> Gianluigi >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is >> your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > sorry I'm a little tired :) Yes String.Ucase() Regards Gianluigi From lewis at ...3412... Wed Jan 28 19:48:43 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 28 Jan 2015 12:48:43 -0600 Subject: [Gambas-user] Problem with UCase$ ? In-Reply-To: <54C9297E.9080308@...69...> References: <54C9297E.9080308@...69...> Message-ID: <54C92F0B.6090000@...3412...> "?" is not an ASCII character. Reference: http://gambaswiki.org/wiki/lang/ucase This function does not work with UTF-8 strings. UseString.UCase instead. Word = "perch?" Print Word, UCase(Word), String.UCase(Word) Word = UCase(Word) Print Word '------------------------------- perch? PERCH? PERCH? PERCH? On 01/28/2015 12:25 PM, Gian wrote: > Hello all, > I noticed one thing, if I write UCase $ ("perch?") I get PERCH? > If I write Print.Ucase ("perch?") I get PERCH? > It is correct? > ("perch?" is "why" or "because" in italian language) > Regards > Gianluigi > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bagoneo at ...69... Wed Jan 28 20:12:54 2015 From: bagoneo at ...69... (Gian) Date: Wed, 28 Jan 2015 20:12:54 +0100 Subject: [Gambas-user] Problem with UCase$ ? In-Reply-To: <54C92F0B.6090000@...3412...> References: <54C9297E.9080308@...69...> <54C92F0B.6090000@...3412...> Message-ID: <54C934B6.8010806@...69...> Il 28/01/2015 19:48, Lewis Balentine ha scritto: > "?" is not an ASCII character. > > Reference: http://gambaswiki.org/wiki/lang/ucase > This function does not work with UTF-8 strings. UseString.UCase > instead. > > Word = "perch?" > Print Word, UCase(Word), String.UCase(Word) > Word = UCase(Word) > Print Word > '------------------------------- > perch? PERCH? PERCH? > PERCH? > > > > On 01/28/2015 12:25 PM, Gian wrote: >> Hello all, >> I noticed one thing, if I write UCase $ ("perch?") I get PERCH? >> If I write Print.Ucase ("perch?") I get PERCH? >> It is correct? >> ("perch?" is "why" or "because" in italian language) >> Regards >> Gianluigi >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, is your >> hub for all things parallel software development, from weekly thought >> leadership blogs to news, videos, case studies, tutorials and more. Take a >> look and join the conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Right, before I only watched an extended table. Only now I did a test with Chr$() Thank You Regards Gianluigi From lewis at ...3412... Wed Jan 28 20:16:49 2015 From: lewis at ...3412... (Lewis Balentine) Date: Wed, 28 Jan 2015 13:16:49 -0600 Subject: [Gambas-user] Problem with UCase$ ? In-Reply-To: <54C934B6.8010806@...69...> References: <54C9297E.9080308@...69...> <54C92F0B.6090000@...3412...> <54C934B6.8010806@...69...> Message-ID: <54C935A1.5020700@...3412...> For a real challenge try 5 bit Baudot :-) From bagoneo at ...69... Wed Jan 28 20:31:46 2015 From: bagoneo at ...69... (Gian) Date: Wed, 28 Jan 2015 20:31:46 +0100 Subject: [Gambas-user] Problem with UCase$ ? In-Reply-To: <54C935A1.5020700@...3412...> References: <54C9297E.9080308@...69...> <54C92F0B.6090000@...3412...> <54C934B6.8010806@...69...> <54C935A1.5020700@...3412...> Message-ID: <54C93922.2040806@...69...> Il 28/01/2015 20:16, Lewis Balentine ha scritto: > For a real challenge try 5 bit Baudot :-) > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Thanks for the information Lewis, really interesting :) Regards Gianluigi From gambas at ...2524... Fri Jan 30 07:56:55 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Jan 2015 06:56:55 +0000 Subject: [Gambas-user] Issue 600 in gambas: IDE: Project Tree popup menu -New|Existing crash Message-ID: <0-6813199134517018827-9231106339631815962-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 600 by brucedot... at ...626...: IDE: Project Tree popup menu -New| Existing crash https://code.google.com/p/gambas/issues/detail?id=600 __________________________________________________________ 1) Describe the problem. Repeated use of the IDE popup menu in the Data subtree to create a new project file from an existing file causes the IDE to crash. See pic. 2) Give information about your system. Use the 'System information' menu in the Gambas IDE, and paste the result there. [System] Gambas=3.6.90 OperatingSystem=Linux Kernel=3.12.18-pclos2 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=QWindows Language=en_AU.UTF-8 Memory=1008M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.3.0.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.8 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.405.0 GTK+3=libgtk-3.so.0.1200.2 GTK+=libgtk-x11-2.0.so.0.2400.22 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.173.14.39 OpenGL=libGL.so.96.43.23 Poppler=libpoppler.so.13.0.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.46.0.0 Qt4=libQtCore.so.4.8.5 SDL=libSDL-1.2.so.0.11.4 3) Indicate the Gambas version in the issue labels, and if it is a bug, a crash, or an enhancement request. 3.6.90 r6860 4) Provide a little project that reproduces the bug or the crash. Use any project. 5) If your project needs a database, try to provide it, or part of it. NA 6) Explain clearly how to reproduce the bug or the crash. 1. Right click on the Data root and select New|Other. 2. Traverse to some directory and select a file. 3. Do some stuff. 4. Repeat 1 & 2 ==> IDE crashes (sweetly) with the attached messagebox. GRRRR. Attachments: gambas3_054.png 15.3 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From herberthguzman at ...626... Fri Jan 30 22:02:18 2015 From: herberthguzman at ...626... (herberth guzman) Date: Fri, 30 Jan 2015 15:02:18 -0600 Subject: [Gambas-user] Problem svn6875 and gb.qt Message-ID: hi Greetings to all I have the following problem with the review svn6875 and gb.qt the following code does not work me TabPanelExplorer.Count + = 1 TabPanelExplorer.Text = sOpen_Spath_XDG Sexplorer = New FileView_New (TabPanelExplorer) As "Sexplorer" TabPanelExplorer.Children [0] .Name = "Sexplorer" & CStr (TabPanelExplorer.Index + 1) sExplorer.expand = True With f_explorer.sExplorer .IconSize = M_Var.iSize_Icons_View .ShowDetailed = M_Var.iShowDetailed .ShowDirectory = M_Var.iShowDirectory .ShowHidden = M_Var.iShowHidden .ShowPreview = M_Var.iShowPreview .Font.Size = M_Var.iSize_Font .Font.Name = M_Var.sName_Font .dir = SOpen_Spath_XDG .background = Color.Transparent End With with gb.gtk3 "Ok" with gb.gtk "Ok" with gb.gui "Ok" with gb.qt "BAD" with the review svn6874 with gb.gtk3 "Ok" with gb.gtk "Ok" with gb.gui "Ok" with gb.qt "Ok" Help please Herberth Guzman From bagoneo at ...69... Fri Jan 30 22:31:26 2015 From: bagoneo at ...69... (Gian) Date: Fri, 30 Jan 2015 22:31:26 +0100 Subject: [Gambas-user] Widget focus Message-ID: <54CBF82E.70808@...69...> Hi all, In Ubuntu 14.04 with Gambas3 3.6.2 with the components QT4 the focus does not work on the following widgets: Button, ToggleButton, MenuButton, SwitchButton. Instead ToolButton is OK. It is the same with the forms nested (eg. hFin1 = New Form1 (FMain)) Instead with GTK nested forms focus does not work at all, while with the normal form everything is OK. Note: RadioButton in opening normal form is checked only in GTK, not in QT4. Regards Gianluigi [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.13.0-45-generic Architecture=x86_64 Distribution=Ubuntu 14.04.1 LTS Desktop=GNOME Theme=QGtk Language=it_IT.UTF-8 Memory=4961M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+3=libgtk-3.so.0.1000.8 GTK+=libgtk-x11-2.0.so.0.2400.23 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 Qt4=libQtCore.so.4.8.6 SDL=libSDL-1.2.so.0.11.4 From gambas at ...2524... Fri Jan 30 20:50:08 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Jan 2015 19:50:08 +0000 Subject: [Gambas-user] Issue 601 in gambas: Database Data Source with Mariadb as mysql Message-ID: <0-6813199134517018827-8509928364694590095-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-3.6.2 Type-Bug Priority-Medium Linux openSuse13.2 64bit KDE GUI-Any New issue 601 by justlost... at ...626...: Database Data Source with Mariadb as mysql https://code.google.com/p/gambas/issues/detail?id=601 When adding a datasource to forms, selecting the connection does not work. I am able to get the correct connection from the drop down in the field but when I leave the field it disappears again. Unable to select the correct table. I am able to use this fine when using a sqlite database. I am also able to access the database and setup a connection and browse the tables etc. Although I get errors if I try to change a table, create etc. I used phpMyAdmin and mysql_workbench to create and manage the tables. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Sat Jan 31 01:21:40 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 31 Jan 2015 00:21:40 +0000 Subject: [Gambas-user] Issue 601 in gambas: Database Data Source with Mariadb as mysql In-Reply-To: <0-6813199134517018827-8509928364694590095-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8509928364694590095-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8509928364694590095-gambas=googlecode.com@...2524...> Comment #1 on issue 601 by justlost... at ...626...: Database Data Source with Mariadb as mysql https://code.google.com/p/gambas/issues/detail?id=601 [System] Gambas=3.6.2 OperatingSystem=Linux Kernel=3.16.7-7-desktop Architecture=x86_64 Distribution= Desktop=KDE4 Theme=Oxygen Language=en_US.UTF-8 Memory=12038M [Libraries] DBus=libdbus-1.so.3.8.10 -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Sat Jan 31 10:48:09 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 31 Jan 2015 10:48:09 +0100 Subject: [Gambas-user] Problem svn6875 and gb.qt In-Reply-To: References: Message-ID: <54CCA4D9.5090305@...1...> Le 30/01/2015 22:02, herberth guzman a ?crit : > hi > Greetings to all > > I have the following problem > with the review svn6875 and gb.qt > > the following code does not work me > > TabPanelExplorer.Count + = 1 > TabPanelExplorer.Text = sOpen_Spath_XDG > Sexplorer = New FileView_New (TabPanelExplorer) As "Sexplorer" > TabPanelExplorer.Children [0] .Name = "Sexplorer" & CStr > (TabPanelExplorer.Index + 1) > sExplorer.expand = True > > With f_explorer.sExplorer > .IconSize = M_Var.iSize_Icons_View > .ShowDetailed = M_Var.iShowDetailed > .ShowDirectory = M_Var.iShowDirectory > .ShowHidden = M_Var.iShowHidden > .ShowPreview = M_Var.iShowPreview > .Font.Size = M_Var.iSize_Font > .Font.Name = M_Var.sName_Font > .dir = SOpen_Spath_XDG > .background = Color.Transparent > End With > > with gb.gtk3 "Ok" > with gb.gtk "Ok" > with gb.gui "Ok" > with gb.qt "BAD" > > with the review svn6874 > with gb.gtk3 "Ok" > with gb.gtk "Ok" > with gb.gui "Ok" > with gb.qt "Ok" > > Help please > > > Herberth Guzman Please provide a project that shows the bug, and explain what does not work for you. Regards, -- Beno?t Minisini From bill-lancaster at ...2231... Sat Jan 31 16:07:21 2015 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 31 Jan 2015 08:07:21 -0700 (MST) Subject: [Gambas-user] How to check a number of textboxes for data Message-ID: <1422716841340-50440.post@...3046...> This must be simple but I can't see it! I have a 5 textboxes on a form and wish to ensure that they all contain data before creating a new record in a database. By setting them all with Tag ="Data" the following code finds the controls. Dim c As Control For Each c In Me.Controls If c.Tag = "Data" Then Print c.Name Endif Next But how to examine the .text value? -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-check-a-number-of-textboxes-for-data-tp50440.html Sent from the gambas-user mailing list archive at Nabble.com. From tercoide at ...67... Sat Jan 31 16:19:57 2015 From: tercoide at ...67... (martin p cristia) Date: Sat, 31 Jan 2015 12:19:57 -0300 Subject: [Gambas-user] How to include a .so library in the .deb package? In-Reply-To: References: Message-ID: Hi: I need to include a .so library in the Installation package , how to do it? it needs to be at /usr/lib or it can reside at program folder? tnx -- Saludos Ing. Martin P Cristia From jussi.lahtinen at ...626... Sat Jan 31 16:20:20 2015 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 31 Jan 2015 17:20:20 +0200 Subject: [Gambas-user] How to check a number of textboxes for data In-Reply-To: <1422716841340-50440.post@...3046...> References: <1422716841340-50440.post@...3046...> Message-ID: Does this work? Dim o As Object For Each o In Me.Controls If o.Tag = "Data" Then ' Optionally If o Is TextBox Then Print o.Name;; o.Text Endif Next Jussi On Sat, Jan 31, 2015 at 5:07 PM, bill-lancaster wrote: > This must be simple but I can't see it! > > I have a 5 textboxes on a form and wish to ensure that they all contain > data > before creating a new record in a database. > By setting them all with Tag ="Data" the following code finds the controls. > > Dim c As Control > For Each c In Me.Controls > If c.Tag = "Data" Then > Print c.Name > Endif > Next > > But how to examine the .text value? > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-check-a-number-of-textboxes-for-data-tp50440.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Sat Jan 31 16:20:09 2015 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 31 Jan 2015 08:20:09 -0700 (MST) Subject: [Gambas-user] How to check a number of textboxes for data In-Reply-To: References: <1422716841340-50440.post@...3046...> Message-ID: <1422717609727-50443.post@...3046...> Thanks Jussi - it works fine -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-check-a-number-of-textboxes-for-data-tp50440p50443.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sat Jan 31 17:29:00 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 31 Jan 2015 17:29:00 +0100 Subject: [Gambas-user] IsPunct Message-ID: IsPunct Tests if a string contains only printable non-alphanumeric characters. Is there a function that return if a string contain only printable characters ? -- Fabien Bodard From vuott at ...325... Sat Jan 31 17:47:19 2015 From: vuott at ...325... (Ru Vuott) Date: Sat, 31 Jan 2015 16:47:19 +0000 Subject: [Gambas-user] R: IsPunct In-Reply-To: Message-ID: <1422722839.47753.YahooMailBasic@...3275...> Hello Fabien, I use function from C : int isprint(int c) Its declaracion in Gambas obviously is: Private Extern isprint(num As Integer) As Integer In "libc:6" :-D Example: ' int isprint(int c) Private Extern isprint(num As Integer) As Integer In "libc:6" Public Sub Main() Print CBool(isprint(10)), CBool(isprint(70)) End Bye vuottttt -------------------------------------------- Sab 31/1/15, Fabien Bodard ha scritto: Oggetto: [Gambas-user] IsPunct A: gambas-user at lists.sourceforge.net Data: Sabato 31 gennaio 2015, 17:29 IsPunct Tests if a string contains only printable non-alphanumeric characters. Is there a function that return if a string contain only printable characters ? -- Fabien Bodard ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Sat Jan 31 17:52:28 2015 From: vuott at ...325... (Ru Vuott) Date: Sat, 31 Jan 2015 16:52:28 +0000 Subject: [Gambas-user] R: IsPunct In-Reply-To: Message-ID: <1422723148.48446.YahooMailBasic@...3275...> Adde exemplum: ' int isprint(int c) Private Extern isprint(num As Integer) As Integer In "libc:6" Public Sub Main() Dim s As String = "Gam\nbas" Dim bb As Byte[] bb = Byte[].FromString(s) For Each s In bb Print CBool(isprint(s)) Next End -------------------------------------------- Sab 31/1/15, Fabien Bodard ha scritto: Oggetto: [Gambas-user] IsPunct A: gambas-user at lists.sourceforge.net Data: Sabato 31 gennaio 2015, 17:29 IsPunct Tests if a string contains only printable non-alphanumeric characters. Is there a function that return if a string contain only printable characters ? -- Fabien Bodard ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Jan 31 18:41:30 2015 From: gambas at ...1... (=?windows-1252?Q?Beno=EEt_Minisini?=) Date: Sat, 31 Jan 2015 18:41:30 +0100 Subject: [Gambas-user] IsPunct In-Reply-To: References: Message-ID: <54CD13CA.1000005@...1...> Le 31/01/2015 17:29, Fabien Bodard a ?crit : > IsPunct Tests if a string contains only printable non-alphanumeric characters. > > > Is there a function that return if a string contain only printable characters ? > Why do you use that? -- Beno?t Minisini From herberthguzman at ...626... Sat Jan 31 18:57:53 2015 From: herberthguzman at ...626... (herberth guzman) Date: Sat, 31 Jan 2015 11:57:53 -0600 Subject: [Gambas-user] Problem svn6875 and gb.qt Message-ID: Hi Benoit thanks for you help i share the link the example https://drive.google.com/file/d/0B2gI4jYOofp0WmQtRzFhcDRhcGs/view?usp=sharing for the moment i work with svn_rev6874 svn_rev6875 and 6876 no working for my with gb.qt4 waiting for your help Herberth Guzman https://plus.google.com/u/0/105457212371116775367/posts From t.lee.davidson at ...626... Sat Jan 31 20:21:41 2015 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 31 Jan 2015 14:21:41 -0500 Subject: [Gambas-user] How to include a .so library in the .deb package? In-Reply-To: References: Message-ID: <54CD2B45.9070506@...626...> I haven't actually done this, so I hope someone will correct me if I am wrong. But, I believe you would list your .so file in the Extra Files (step #8) section of the "Make installation package" process. Lee __________ "Artificial Intelligence is no match for natural stupidity." On 01/31/2015 10:19 AM, martin p cristia wrote: > Hi: > > I need to include a .so library in the Installation package , how to do it? > > it needs to be at /usr/lib or it can reside at program folder? > > tnx > From gambas at ...2524... Sat Jan 31 20:45:37 2015 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 31 Jan 2015 19:45:37 +0000 Subject: [Gambas-user] Issue 599 in gambas: deb package of component: icons not found In-Reply-To: <0-6813199134517018827-11493427735798353513-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11493427735798353513-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11493427735798353513-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 599 by benoit.m... at ...626...: deb package of component: icons not found https://code.google.com/p/gambas/issues/detail?id=599 It should be fixed in revision #6878. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas.fr at ...626... Sat Jan 31 21:53:30 2015 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 31 Jan 2015 21:53:30 +0100 Subject: [Gambas-user] IsPunct In-Reply-To: <54CD13CA.1000005@...1...> References: <54CD13CA.1000005@...1...> Message-ID: For testing an user entry in a personnal project 2015-01-31 18:41 GMT+01:00 Beno?t Minisini : > Le 31/01/2015 17:29, Fabien Bodard a ?crit : >> IsPunct Tests if a string contains only printable non-alphanumeric characters. >> >> >> Is there a function that return if a string contain only printable characters ? >> > > Why do you use that? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard