From shordi at ...626... Thu Oct 1 01:21:26 2009 From: shordi at ...626... (shordi) Date: Wed, 30 Sep 2009 16:21:26 -0700 (PDT) Subject: [Gambas-user] Utility: Report generator for MySQL on html format Message-ID: <25690767.post@...1379...> Here is a little utility for generate html reports from MySQL databases. It is in spanish language. Hope it'll be usefull. Regards http://www.nabble.com/file/p25690767/Impresion%2BHTML.tar.gz Impresion+HTML.tar.gz -- View this message in context: http://www.nabble.com/Utility%3A-Report-generator-for-MySQL-on-html-format-tp25690767p25690767.html Sent from the gambas-user mailing list archive at Nabble.com. From tmp2009 at ...2180... Thu Oct 1 09:39:22 2009 From: tmp2009 at ...2180... (nero) Date: Thu, 01 Oct 2009 09:39:22 +0200 Subject: [Gambas-user] tableview References: <1ar9p6-2e5.ln1@...2181...> <200909291942.03034.gambas@...1...> <200909301402.50544.gambas@...1...> <8jvbp6-fk4.ln1@...2181...> Message-ID: nero wrote: ok , I'm investigating the problem: - When tv is loaded all columns are 100 in size - When I doubleclick between two column the column are resized by the content and get various size - When I set tv.Columns.Width = "-1" or tv.Columns.Width = -1 all the columns get size 20. I think that if setting width to -1 should have same effect of clicking between two column this is a bug in qt4 component. thank's, marco. -- Un mancino si sveglia e non e' piu' mancino: "Ma... sogno... o son destro?". -- Andrea Mignani From robert1juhasz at ...626... Thu Oct 1 11:34:35 2009 From: robert1juhasz at ...626... (yuhej) Date: Thu, 1 Oct 2009 02:34:35 -0700 (PDT) Subject: [Gambas-user] packaging Message-ID: <25695659.post@...1379...> Hello, I'm not very far from being able to test my first Gambas application. It works from the IDE, also the executable on my PC. I try to make a package to test it on a "virgin" ubuntu but I haven't succeeded. I got an error message like that: --------------------------------------------- Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... sh: fakeroot: not found The package build has failed. Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. --------------------------------------------- Is there anything misiing from my system, I made a mistake or is this a bug? Thanks for your help. Robi -- View this message in context: http://www.nabble.com/packaging-tp25695659p25695659.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Thu Oct 1 12:05:36 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 01 Oct 2009 12:05:36 +0200 Subject: [Gambas-user] packaging In-Reply-To: <25695659.post@...1379...> References: <25695659.post@...1379...> Message-ID: <4AC47EF0.7020808@...1909...> yuhej ha scritto: > Hello, > > I'm not very far from being able to test my first Gambas application. It > works from the IDE, also the executable on my PC. > I try to make a package to test it on a "virgin" ubuntu but I haven't > succeeded. I got an error message like that: > --------------------------------------------- > Creating package for Ubuntu. > Making build directory. > Creating desktop file... > Sources are being debianizated. > Creating package... > sh: fakeroot: not found > The package build has failed. > Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. > --------------------------------------------- > > Is there anything misiing from my system, I made a mistake or is this a bug? > Thanks for your help. > Look at "sh: fakeroot: not found". This is the classical error about missing files/commands, so I think that you miss "fakeroot". Search the repository for a package named fakeroot or something like that, and install it. I also think that the person who packaged gambas for your distribution (Ubuntu?) made an error, because gambas should "require" fakeroot. Regards, Doriano From Karl.Reinl at ...9... Thu Oct 1 12:11:32 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 01 Oct 2009 12:11:32 +0200 Subject: [Gambas-user] packaging In-Reply-To: <25695659.post@...1379...> References: <25695659.post@...1379...> Message-ID: <1254391892.7146.1.camel@...40...> Am Donnerstag, den 01.10.2009, 02:34 -0700 schrieb yuhej: > Hello, > > I'm not very far from being able to test my first Gambas application. It > works from the IDE, also the executable on my PC. > I try to make a package to test it on a "virgin" ubuntu but I haven't > succeeded. I got an error message like that: > --------------------------------------------- > Creating package for Ubuntu. > Making build directory. > Creating desktop file... > Sources are being debianizated. > Creating package... > sh: fakeroot: not found > The package build has failed. > Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. > --------------------------------------------- > > Is there anything misiing from my system, I made a mistake or is this a bug? > Thanks for your help. > > Robi Salut Robi, I think you have to install fakeroot -- Amicalment Charlie From robert1juhasz at ...626... Thu Oct 1 12:55:43 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Thu, 1 Oct 2009 12:55:43 +0200 Subject: [Gambas-user] packaging In-Reply-To: <4AC47EF0.7020808@...1909...> References: <25695659.post@...1379...> <4AC47EF0.7020808@...1909...> Message-ID: <68652a0b0910010355ne838dd7wfd99d5cef68e6592@...627...> Thanks, I'll try. Robi 2009/10/1 Doriano Blengino > yuhej ha scritto: > > Hello, > > > > I'm not very far from being able to test my first Gambas application. It > > works from the IDE, also the executable on my PC. > > I try to make a package to test it on a "virgin" ubuntu but I haven't > > succeeded. I got an error message like that: > > --------------------------------------------- > > Creating package for Ubuntu. > > Making build directory. > > Creating desktop file... > > Sources are being debianizated. > > Creating package... > > sh: fakeroot: not found > > The package build has failed. > > Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. > > --------------------------------------------- > > > > Is there anything misiing from my system, I made a mistake or is this a > bug? > > Thanks for your help. > > > Look at "sh: fakeroot: not found". > This is the classical error about missing files/commands, so I think > that you miss "fakeroot". > > Search the repository for a package named fakeroot or something like > that, and install it. > > I also think that the person who packaged gambas for your distribution > (Ubuntu?) made an error, because gambas should "require" fakeroot. > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From surfzoid at ...626... Thu Oct 1 13:14:46 2009 From: surfzoid at ...626... (Petit Eric) Date: Thu, 1 Oct 2009 13:14:46 +0200 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0910010355ne838dd7wfd99d5cef68e6592@...627...> References: <25695659.post@...1379...> <4AC47EF0.7020808@...1909...> <68652a0b0910010355ne838dd7wfd99d5cef68e6592@...627...> Message-ID: <84776a970910010414g5035c520p7b18ea65dfab047@...627...> yes fakeroot pkg, you could also try MonoOSC on OBS server : http://sourceforge.net/projects/monoosc/ http://software.opensuse.org/search?baseproject=ALL&p=1&q=monoosc https://build.opensuse.org/ This is the best i found to deploy my application, that solve the dependency problem and give you the way to build package for most distro in one click :-) 2009/10/1 Robert JUHASZ : > Thanks, I'll try. > > Robi > > 2009/10/1 Doriano Blengino > >> yuhej ha scritto: >> > Hello, >> > >> > I'm not very far from being able to test my first Gambas application. It >> > works from the IDE, also the executable on my PC. >> > I try to make a package to test it on a "virgin" ubuntu but I haven't >> > succeeded. I got an error message like that: >> > --------------------------------------------- >> > Creating package for Ubuntu. >> > Making build directory. >> > Creating desktop file... >> > Sources are being debianizated. >> > Creating package... >> > sh: fakeroot: not found >> > The package build has failed. >> > Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. >> > --------------------------------------------- >> > >> > Is there anything misiing from my system, I made a mistake or is this a >> bug? >> > Thanks for your help. >> > >> Look at "sh: fakeroot: not found". >> This is the classical error about missing files/commands, so I think >> that you miss "fakeroot". >> >> Search the repository for a package named fakeroot or something like >> that, and install it. >> >> I also think that the person who packaged gambas for your distribution >> (Ubuntu?) made an error, because gambas should "require" fakeroot. >> >> Regards, >> Doriano >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- I have no special talents. I am only passionately curious From jarkko.harma at ...2239... Thu Oct 1 15:19:44 2009 From: jarkko.harma at ...2239... (=?ISO-8859-1?Q?Jarkko_H=E4rm=E4?=) Date: Thu, 01 Oct 2009 16:19:44 +0300 Subject: [Gambas-user] Make installation package ? Message-ID: <4AC4AC70.2090602@...2239...> Moi . If i do that, i get an error : tar 1.13 not installed. Ok i have tar 1.19 but why a specific version of tar ?? -Jarkko From gambas at ...1... Thu Oct 1 17:57:33 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 1 Oct 2009 17:57:33 +0200 Subject: [Gambas-user] Make installation package ? In-Reply-To: <4AC4AC70.2090602@...2239...> References: <4AC4AC70.2090602@...2239...> Message-ID: <200910011757.33601.gambas@...1...> > Moi . ??? > > If i do that, i get an error : tar 1.13 not installed. Ok i have tar > 1.19 but why a specific > version of tar ?? > > -Jarkko > Because Slackware requires that! But apparently it changed in the last version of Slackware, but I didn't update Gambas yet. I'm not a Slackware user, so I don't know why tar.1.13 is required. To workaround that, just create a symbolic link in your executable path named "tar-1.13" that points at your real version of 'tar'. Regards, -- Beno?t Minisini From jarkko.harma at ...2239... Thu Oct 1 18:13:30 2009 From: jarkko.harma at ...2239... (=?UTF-8?B?SmFya2tvIEjDpHJtw6Q=?=) Date: Thu, 01 Oct 2009 19:13:30 +0300 Subject: [Gambas-user] Make installation package ? In-Reply-To: <200910011757.33601.gambas@...1...> References: <4AC4AC70.2090602@...2239...> <200910011757.33601.gambas@...1...> Message-ID: <4AC4D52A.1020901@...2239...> Beno?t Minisini wrote: >> Moi . >> > > ??? > > >> If i do that, i get an error : tar 1.13 not installed. Ok i have tar >> 1.19 but why a specific >> version of tar ?? >> >> -Jarkko >> >> > > Because Slackware requires that! But apparently it changed in the last version > of Slackware, but I didn't update Gambas yet. > > I'm not a Slackware user, so I don't know why tar.1.13 is required. > > To workaround that, just create a symbolic link in your executable path named > "tar-1.13" that points at your real version of 'tar'. > > Regards, > > And then its even more tricky...... I tried to make package of the serial port example: Creating package for Ubuntu. Making build directory. Creating desktop file... Sources are being debianizated. Creating package... dpkg-buildpackage: set CPPFLAGS to default value: dpkg-buildpackage: set CFLAGS to default value: -g -O2 dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 dpkg-buildpackage: set FFLAGS to default value: -g -O2 dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions dpkg-buildpackage: source package serialport dpkg-buildpackage: source version 0-0 dpkg-buildpackage: source changed by benoit dpkg-buildpackage: host architecture i386 debian/rules clean dh_testdir dh_testroot rm -Rf `find . -name ".gambas"` rm -Rf `find . -name "*.gambas"` rm -f build-stamp install-stamp dh_clean dh_clean: Compatibility levels before 4 are deprecated. dpkg-source -b serialport dpkg-source: error: source package name `SerialPort' contains illegal character `S' dpkg-buildpackage: failure: dpkg-source -b serialport gave error exit status 255 The package build has failed. Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. The illegal character comes from any name -Jarkko From gambas at ...1... Thu Oct 1 18:21:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 1 Oct 2009 18:21:02 +0200 Subject: [Gambas-user] Make installation package ? In-Reply-To: <4AC4D52A.1020901@...2239...> References: <4AC4AC70.2090602@...2239...> <200910011757.33601.gambas@...1...> <4AC4D52A.1020901@...2239...> Message-ID: <200910011821.02779.gambas@...1...> > Beno?t Minisini wrote: > >> Moi . > > > > ??? > > > >> If i do that, i get an error : tar 1.13 not installed. Ok i have tar > >> 1.19 but why a specific > >> version of tar ?? > >> > >> -Jarkko > > > > Because Slackware requires that! But apparently it changed in the last > > version of Slackware, but I didn't update Gambas yet. > > > > I'm not a Slackware user, so I don't know why tar.1.13 is required. > > > > To workaround that, just create a symbolic link in your executable path > > named "tar-1.13" that points at your real version of 'tar'. > > > > Regards, > > And then its even more tricky...... I tried to make package of the > serial port example: > > Creating package for Ubuntu. > Making build directory. > Creating desktop file... > Sources are being debianizated. > Creating package... > dpkg-buildpackage: set CPPFLAGS to default value: > dpkg-buildpackage: set CFLAGS to default value: -g -O2 > dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 > dpkg-buildpackage: set FFLAGS to default value: -g -O2 > dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions > dpkg-buildpackage: source package serialport > dpkg-buildpackage: source version 0-0 > dpkg-buildpackage: source changed by benoit > dpkg-buildpackage: host architecture i386 > debian/rules clean > dh_testdir > dh_testroot > rm -Rf `find . -name ".gambas"` > rm -Rf `find . -name "*.gambas"` > rm -f build-stamp install-stamp > dh_clean > dh_clean: Compatibility levels before 4 are deprecated. > dpkg-source -b serialport > dpkg-source: error: source package name `SerialPort' contains illegal > character `S' > dpkg-buildpackage: failure: dpkg-source -b serialport gave error exit > status 255 > The package build has failed. > Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. > > The illegal character comes from any name > > -Jarkko > Which version of gambas do you use? -- Beno?t Minisini From jarkko.harma at ...2239... Thu Oct 1 18:26:37 2009 From: jarkko.harma at ...2239... (=?UTF-8?B?SmFya2tvIEjDpHJtw6Q=?=) Date: Thu, 01 Oct 2009 19:26:37 +0300 Subject: [Gambas-user] Make installation package ? In-Reply-To: <200910011821.02779.gambas@...1...> References: <4AC4AC70.2090602@...2239...> <200910011757.33601.gambas@...1...> <4AC4D52A.1020901@...2239...> <200910011821.02779.gambas@...1...> Message-ID: <4AC4D83D.80308@...2239...> Beno?t Minisini wrote: >> Beno?t Minisini wrote: >> >>>> Moi . >>>> >>> ??? >>> >>> >>>> If i do that, i get an error : tar 1.13 not installed. Ok i have tar >>>> 1.19 but why a specific >>>> version of tar ?? >>>> >>>> -Jarkko >>>> >>> Because Slackware requires that! But apparently it changed in the last >>> version of Slackware, but I didn't update Gambas yet. >>> >>> I'm not a Slackware user, so I don't know why tar.1.13 is required. >>> >>> To workaround that, just create a symbolic link in your executable path >>> named "tar-1.13" that points at your real version of 'tar'. >>> >>> Regards, >>> >> And then its even more tricky...... I tried to make package of the >> serial port example: >> >> Creating package for Ubuntu. >> Making build directory. >> Creating desktop file... >> Sources are being debianizated. >> Creating package... >> dpkg-buildpackage: set CPPFLAGS to default value: >> dpkg-buildpackage: set CFLAGS to default value: -g -O2 >> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 >> dpkg-buildpackage: set FFLAGS to default value: -g -O2 >> dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions >> dpkg-buildpackage: source package serialport >> dpkg-buildpackage: source version 0-0 >> dpkg-buildpackage: source changed by benoit >> dpkg-buildpackage: host architecture i386 >> debian/rules clean >> dh_testdir >> dh_testroot >> rm -Rf `find . -name ".gambas"` >> rm -Rf `find . -name "*.gambas"` >> rm -f build-stamp install-stamp >> dh_clean >> dh_clean: Compatibility levels before 4 are deprecated. >> dpkg-source -b serialport >> dpkg-source: error: source package name `SerialPort' contains illegal >> character `S' >> dpkg-buildpackage: failure: dpkg-source -b serialport gave error exit >> status 255 >> The package build has failed. >> Package.MakeDebPackage.424: 'dpkg-buildpackage' has failed. >> >> The illegal character comes from any name >> >> -Jarkko >> >> > > Which version of gambas do you use? > > Oh yes, this seems to veeery old 2.13.1 . The ubuntu people dont seem to be upgrading -Jarkko From rospolosco at ...152... Thu Oct 1 19:30:26 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Thu, 1 Oct 2009 19:30:26 +0200 Subject: [Gambas-user] Make installation package - Benoit please read it ? In-Reply-To: <4AC4AC70.2090602@...2239...> References: <4AC4AC70.2090602@...2239...> Message-ID: <200910011930.26960.rospolosco@...152...> Il gioved? 1 ottobre 2009 15:19:44 Jarkko H?rm? ha scritto: > Moi . > > If i do that, i get an error : tar 1.13 not installed. Ok i have tar > 1.19 but why a specific > version of tar ?? > > -Jarkko > Tar 1.13 is needed by Slackware packages manager. It means that i you use a different version of tar to create a slackware package, you could have some problem when installing the package on a Slackware system. Detailed reasons are explained here: ftp://elektroni.phys.tut.fi/slackware-13.0/source/a/tar/tar.SlackBuild If you want to install tar 1.13 here's the source: ftp://elektroni.phys.tut.fi/slackware-13.0/source/a/tar Be carefull to not overwrite your original tar. @ Benoit tar-1.13 is still required in last Slackware 13.0 so you don't need to change anything on Gambas2 packaging system for Slackware. Stefano > --------------------------------------------------------------------------- >--- Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Thu Oct 1 19:32:57 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 1 Oct 2009 20:32:57 +0300 Subject: [Gambas-user] SetFocus problem Message-ID: <384d3900910011032m48ebc230o5fb359402845d652@...627...> Hi! How can I show form without losting focus of current form? I tried this: Dim formi As New Form1 formi.Show() FMain.SetFocus() But it doesn't work... Gambas 3 revision 2368 Both Qt3 and GTK+ @Ubuntu 9.04 64bit These problems confirmed with current version: http://www.nabble.com/Stack-backtrace-window-td25668875.html http://www.nabble.com/UI-controls-copy-paste-problem.-td25669932.html Jussi From 12ukwn at ...626... Thu Oct 1 22:41:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 01 Oct 2009 22:41:30 +0200 Subject: [Gambas-user] gambase and modbus Message-ID: <4AC513FA.3050501@...626...> Hi folks, Does anybody have experience (and code) of ModBus driven by Gambas? JY -- < Overfiend> well, excellent. I get to tear someone a new asshole. -- in #debian-devel From robert1juhasz at ...626... Fri Oct 2 03:40:28 2009 From: robert1juhasz at ...626... (yuhej) Date: Thu, 1 Oct 2009 18:40:28 -0700 (PDT) Subject: [Gambas-user] print Message-ID: <25709303.post@...1379...> Hello, Is there an easy way to print out an entire form? (Like in VB the Form1.Print). Thanks, Robi -- View this message in context: http://www.nabble.com/print-tp25709303p25709303.html Sent from the gambas-user mailing list archive at Nabble.com. From steven at ...2097... Fri Oct 2 07:55:30 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 02 Oct 2009 13:55:30 +0800 Subject: [Gambas-user] print In-Reply-To: <25709303.post@...1379...> References: <25709303.post@...1379...> Message-ID: <1254462931.3502.3.camel@...2273...> Nothing quite that simple but easy enough, try this SUB PrintForm() 'Prints a form DIM myformPic AS Picture DIM size AS INTEGER myformPic = ME.Grab() size = 5 '5 times the size otherwise picture is to small. myformPic = myformPic.Image.Stretch(ME.W * size, ME.H * size).Picture IF printer.setup() THEN RETURN 'sets up the printer Draw.Begin(PRINTER) Draw.Picture(myformPic, 20, 20) Draw.End END Need QT and QT ext components enabled. On Thu, 2009-10-01 at 18:40 -0700, yuhej wrote: > Hello, > > Is there an easy way to print out an entire form? (Like in VB the > Form1.Print). > > Thanks, > > Robi From steven at ...2097... Fri Oct 2 08:00:17 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 02 Oct 2009 14:00:17 +0800 Subject: [Gambas-user] Printer Class not available in GUI component or GTK Message-ID: <1254463219.3502.8.camel@...2273...> Benniot just noticed that the Printer class is not available when you when you use GUI or GTK. But the documentation says that you can use it in GTK. Is this by design? If so the GTK-Draw.Begin help page should be updated to reflect this. Steven From horst at ...2298... Fri Oct 2 11:18:25 2009 From: horst at ...2298... (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Fri, 02 Oct 2009 19:18:25 +1000 Subject: [Gambas-user] Arithmetic failure in project In-Reply-To: <1253560844.7255.6.camel@...40...> References: <1253554960.8056.27950.camel@...2299...> <1253560844.7255.6.camel@...40...> Message-ID: <1254475105.5395.9.camel@...2299...> On Mon, 2009-09-21 at 21:20 +0200, Charlie Reinl wrote: > Am Dienstag, den 22.09.2009, 03:42 +1000 schrieb Horst G?nther Burkhardt > III: > > Hey everybody. > > > > I'm building a basic flash exposure calculator with floats and extremely > > precise arithmetic, to benefit those of us who happen to list > > photography among our hobbies ;) > > > > Unfortunately, I've run into several issues with the code. > > > > The foremost of which: no matter the data that is plugged in, the result > > is always 0. > > > > Also, my case construct for power adjustment is ... considerably failed. > > > > Attached are my .form .class and a screenshot of the result i get. > > > > Thanks in advance for all your help :) > > Salut Horst G?nther Burkhardt, Guten Tag. > Tell use , your version of gambas, 2.15.2 > and send us the project "Source archive" can by made by pressing CTRL > +ALT+A at same time. Which you will now find attached. > Thanks in advance for all your help :) Sorry about all the delay, but I was on speed-restricted internet. -- Horst -------------- next part -------------- A non-text attachment was scrubbed... Name: finalsolution-0.12.tar.gz Type: application/x-compressed-tar Size: 22068 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From mike.crean at ...1940... Fri Oct 2 12:26:09 2009 From: mike.crean at ...1940... (Mike) Date: Fri, 02 Oct 2009 18:26:09 +0800 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC513FA.3050501@...626...> References: <4AC513FA.3050501@...626...> Message-ID: <4AC5D541.4020008@...1940...> Jean-Yves F. Barbier wrote: > Hi folks, > > Does anybody have experience (and code) of ModBus driven by Gambas? > > JY > ASCII or RTU Mike From surfzoid at ...626... Fri Oct 2 13:18:23 2009 From: surfzoid at ...626... (Petit Eric) Date: Fri, 2 Oct 2009 13:18:23 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC5D541.4020008@...1940...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> Message-ID: <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> I did it in C# and VB.Net, Modbus protocol is pretty simple, you can easy find protocol definition on the web, after what the transport, serial or Ethernet is "standard", so basically, if gambas support serial port writing, you just need to write it in the serial port component 2009/10/2 Mike : > Jean-Yves F. Barbier wrote: >> Hi folks, >> >> Does anybody have experience (and code) of ModBus driven by Gambas? >> >> JY >> > ASCII or RTU > > Mike > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- I have no special talents. I am only passionately curious From surfzoid at ...626... Fri Oct 2 13:20:59 2009 From: surfzoid at ...626... (Petit Eric) Date: Fri, 2 Oct 2009 13:20:59 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> Message-ID: <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> find some of my first tool here : http://www.plcs.net/downloads/index.php?direction=0&order=&directory=Misc http://www.plcs.net/downloads/index.php?&direction=0&order=&directory=Modicon 2009/10/2 Petit Eric : > I did it in C# and VB.Net, Modbus protocol is pretty simple, you can > easy find protocol definition on the web, after what the transport, > serial or Ethernet is "standard", so basically, if gambas support > serial port writing, you just need to write it in the serial port > component > > 2009/10/2 Mike : >> Jean-Yves F. Barbier wrote: >>> Hi folks, >>> >>> Does anybody have experience (and code) of ModBus driven by Gambas? >>> >>> JY >>> >> ASCII or RTU >> >> Mike >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > I have no special talents. I am only passionately curious > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- I have no special talents. I am only passionately curious Sent from Bordeaux, France From rterry at ...1946... Fri Oct 2 14:00:50 2009 From: rterry at ...1946... (richard terry) Date: Fri, 2 Oct 2009 22:00:50 +1000 Subject: [Gambas-user] ComboBox.Find (gb.qt) syntax Message-ID: <200910022200.50155.rterry@...1946...> ComboBox.Find (gb.qt) Syntax FUNCTION Find ( Item AS String ) AS Integer Finds an element in the poup list box and returns its index, or -1 if the element cannot be found. This appears to be case sensitive which is a pity. I wonder if it would be possible to have a flag in this routine to search for case sensitive/non sensitive Regards Richard From gambas at ...1... Fri Oct 2 14:20:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 2 Oct 2009 14:20:26 +0200 Subject: [Gambas-user] ComboBox.Find (gb.qt) syntax In-Reply-To: <200910022200.50155.rterry@...1946...> References: <200910022200.50155.rterry@...1946...> Message-ID: <200910021420.26256.gambas@...1...> > ComboBox.Find (gb.qt) > Syntax > > FUNCTION Find ( Item AS String ) AS Integer > > Finds an element in the poup list box and returns its index, or -1 if the > element cannot be found. > > > This appears to be case sensitive which is a pity. > > I wonder if it would be possible to have a flag in this routine to search > for case sensitive/non sensitive > > Regards > > Richard > You must do it yourself: Sub Find(hCombo As ComboBox, Item As String) As Integer Dim iInd as integer For iInd = 0 to hCombo.Count - 1 If String.Comp(hCombo[iInd].Text, Item, gb.IgnoreCase) = 0 then return iInd Next Return -1 End -- Beno?t Minisini From doriano.blengino at ...1909... Fri Oct 2 16:17:55 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 02 Oct 2009 16:17:55 +0200 Subject: [Gambas-user] Arithmetic failure in project In-Reply-To: <1254475105.5395.9.camel@...2299...> References: <1253554960.8056.27950.camel@...2299...> <1253560844.7255.6.camel@...40...> <1254475105.5395.9.camel@...2299...> Message-ID: <4AC60B93.5010100@...1909...> Horst G?nther Burkhardt III ha scritto: > On Mon, 2009-09-21 at 21:20 +0200, Charlie Reinl wrote: > >> Am Dienstag, den 22.09.2009, 03:42 +1000 schrieb Horst G?nther Burkhardt >> III: >> >>> Hey everybody. >>> >>> I'm building a basic flash exposure calculator with floats and extremely >>> precise arithmetic, to benefit those of us who happen to list >>> photography among our hobbies ;) >>> >>> Unfortunately, I've run into several issues with the code. >>> >>> The foremost of which: no matter the data that is plugged in, the result >>> is always 0. >>> >>> Also, my case construct for power adjustment is ... considerably failed. >>> >>> Attached are my .form .class and a screenshot of the result i get. >>> >>> Thanks in advance for all your help :) I didn't tried your project, but in a previous mail I saw someone saying that there were variables not initialized. Well, this is what the integrated debugger is for. Put a breakpoint on (or before) the line that does the final computation, and check the value of every variable (just doubleclick on it). If all the variables have the correct value, then the final formula has some problem. Break it in several pieces, and check/debug again. Perhaps you will find someone else that will do it for you, but in this case, I think, a little debugging would have point out the error, whether your or gambas's. Regards, Doriano From 12ukwn at ...626... Fri Oct 2 16:37:40 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 02 Oct 2009 16:37:40 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC5D541.4020008@...1940...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> Message-ID: <4AC61034.8060701@...626...> Mike a ?crit : > Jean-Yves F. Barbier wrote: >> Hi folks, >> >> Does anybody have experience (and code) of ModBus driven by Gambas? >> >> JY >> > ASCII or RTU either -- Eat shit -- billions of flies can't be wrong. From 12ukwn at ...626... Fri Oct 2 16:39:54 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 02 Oct 2009 16:39:54 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> Message-ID: <4AC610BA.5090606@...626...> Petit Eric a ?crit : > find some of my first tool here : > http://www.plcs.net/downloads/index.php?direction=0&order=&directory=Misc > http://www.plcs.net/downloads/index.php?&direction=0&order=&directory=Modicon Ok thanks, but there not much. Anyway, I think I found what I need with OpenScada. -- Acid absorbs 47 times its own weight in excess Reality. From wdahn at ...1000... Fri Oct 2 16:59:09 2009 From: wdahn at ...1000... (Werner) Date: Fri, 02 Oct 2009 22:59:09 +0800 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC610BA.5090606@...626...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> <4AC610BA.5090606@...626...> Message-ID: <4AC6153D.3050409@...1000...> Jean-Yves F. Barbier wrote: > Petit Eric a ?crit : > >> find some of my first tool here : >> http://www.plcs.net/downloads/index.php?direction=0&order=&directory=Misc >> http://www.plcs.net/downloads/index.php?&direction=0&order=&directory=Modicon >> > > Ok thanks, but there not much. Anyway, I think I found what I need with > OpenScada. > > Depends on what you use it for, it's not free for commercial purposes. You have propably seen http://copyleft.free.fr/wordpress/index.php/libmodbus/ Werner From gambas at ...1... Fri Oct 2 21:37:55 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 2 Oct 2009 21:37:55 +0200 Subject: [Gambas-user] TextEdit copy&Paste and removal of hyper tags In-Reply-To: <25666934.post@...1379...> References: <25666934.post@...1379...> Message-ID: <200910022137.55815.gambas@...1...> > hi, > > I wanted to make a text editor that recognized hyper links. So I used > 'TextEdit'. To extract the plain text I tried to use SelectAll + Copy + > Paste like this: > > PUBLIC SUB Form_Open() > DIM txt AS String > > PRINT "?abc?" > TextEdit1.Text = "?abc?" > TextEdit1.SelectAll() > TextEdit1.Copy() > txt = Clipboard.Paste() > PRINT txt > > END > > ?abc? > ?abc? > > but noticed that while it handles some special characters (like '?') other > gets lost (and replaced by '?'). Above example uses 'Left & Right double > quotation mark's which are lost and replaced by '?' (code 63). Did you look at all the different format that could be stored in the clipboard after .Copy() and before .Paste()? Why don't you use the Text property instead, that normally returns the text without the tags? > > So it seems the only option is to parse the 'TextEdit1.Text' buffer or some > special characters are lost. > > By trial and error I've noted that if I set 'TextEdit.ReadOnly=true' it > will remove all hypertext tags. Except when it doesn't. I don't know how > to predict when the 'TextEdit1.Text' buffer will contain hypertext tags > and when it will not. > > Is there a way to remove the hypertext links that always works ? Or make it > predictable (which amounts to the same thing). I'm afraid all that is a wrong path, as it depends on the way TextEdit internally works, and I can hardly do anything about that. TextEdit is intended to be a small rich text editor, not a HTML editor. There is some hyperlink detection, but as you noticed it seems to be a bit strange. Moreover, TextEdit is based on a deprecated Qt 3 widget. Maybe I will find some time to make a new rich text editor control based on a Qt 4 widget for Gambas 3. Anyway, I don't see a lot of solutions for your problem! > > * Can the latest stable version (2.16.0) coexist with my current straight > from 'Debian lenny' repository 2.7 ? I.e. can I have both installed ? The easy answer is no. Only different major version of Gambas can be installed on the same system without clash. But you can install two versions of gambas 2.x inside two different directories by hand, and switch between both by hand too (by rewriting all the /usr/bin/gb* symbolic links). You must know what you do then! Regards, -- Beno?t Minisini From 12ukwn at ...626... Sat Oct 3 00:48:07 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 03 Oct 2009 00:48:07 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC6153D.3050409@...1000...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> <4AC610BA.5090606@...626...> <4AC6153D.3050409@...1000...> Message-ID: <4AC68327.8030105@...626...> Werner a ?crit : ... > Depends on what you use it for, it's not free for commercial purposes. > > You have propably seen > http://copyleft.free.fr/wordpress/index.php/libmodbus/ Thanks Werner, this look interesting. But AFAIK, GPLv3 & LGPLv3 don't forbid commercial use as far as you provide a meaning to get all sources to the client (for short, it's better to supply compiled AND source:) and retain the copyleft and credits to original creators. JY -- This fortune intentionally left blank. From mike.crean at ...1940... Sat Oct 3 02:53:21 2009 From: mike.crean at ...1940... (Mike) Date: Sat, 03 Oct 2009 08:53:21 +0800 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC61034.8060701@...626...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <4AC61034.8060701@...626...> Message-ID: <4AC6A081.3080506@...1940...> Jean-Yves F. Barbier wrote: > Mike a ?crit : > >> Jean-Yves F. Barbier wrote: >> >>> Hi folks, >>> >>> Does anybody have experience (and code) of ModBus driven by Gambas? >>> >>> JY >>> >>> >> ASCII or RTU >> > > either > > I will have a look at some code for RTU, TCP, RS232 I used in .net and see if it can be adapted to Gambas. It will take me a while to do this. Mike From nando_f at ...951... Sat Oct 3 06:11:28 2009 From: nando_f at ...951... (nando) Date: Fri, 2 Oct 2009 23:11:28 -0500 Subject: [Gambas-user] Arithmetic failure in project..Solution In-Reply-To: <1254475105.5395.9.camel@...2299...> References: <1253554960.8056.27950.camel@...2299...> <1253560844.7255.6.camel@...40...> <1254475105.5395.9.camel@...2299...> Message-ID: <20091003035546.M74114@...951...> Friend, I have gone through your project and I ran it with these changes: (1) in SUB action_click...insert above this line: result = (exposure * (guidenumber / distance) * (flashcompensation) * (multicompensation)) these four lines: IF gn_feet.Value = TRUE THEN guidenumber = (input_gn.Value / 3.3) IF gn_metres.Value = TRUE THEN guidenumber = input_gn.Value distance = input_distance.Value if distance = 0 then distance = 0.00001 'to prevent divide by zero error result = (exposure * (guidenumber / distance) * (flashcompensation) * (multicompensation)) (2) Remove or REM the 3 line sub: PUBLIC SUB input_distance_KeyPress() distance = (input_distance.Value) END -Fernando ---------- Original Message ----------- [UTF-8?]From: Horst G?nther Burkhardt III To: mailing list for gambas users Sent: Fri, 02 Oct 2009 19:18:25 +1000 Subject: Re: [Gambas-user] Arithmetic failure in project > On Mon, 2009-09-21 at 21:20 +0200, Charlie Reinl wrote: > > Am Dienstag, den 22.09.2009, 03:42 +1000 schrieb Horst G?nther Burkhardt > > III: > > > Hey everybody. > > > > > > I'm building a basic flash exposure calculator with floats and extremely > > > precise arithmetic, to benefit those of us who happen to list > > > photography among our hobbies ;) > > > > > > Unfortunately, I've run into several issues with the code. > > > > > > The foremost of which: no matter the data that is plugged in, the result > > > is always 0. > > > > > > Also, my case construct for power adjustment is ... considerably failed. > > > > > > Attached are my .form .class and a screenshot of the result i get. > > > > > > Thanks in advance for all your help :) > > > > Salut Horst G?nther Burkhardt, > Guten Tag. > > > Tell use , your version of gambas, > 2.15.2 > > and send us the project "Source archive" can by made by pressing CTRL > > +ALT+A at same time. > Which you will now find attached. > > > Thanks in advance for all your help :) > Sorry about all the delay, but I was on speed-restricted internet. > > -- Horst ------- End of Original Message ------- From doriano.blengino at ...1909... Sat Oct 3 09:35:32 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 03 Oct 2009 09:35:32 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC68327.8030105@...626...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> <4AC610BA.5090606@...626...> <4AC6153D.3050409@...1000...> <4AC68327.8030105@...626...> Message-ID: <4AC6FEC4.5040508@...1909...> Jean-Yves F. Barbier ha scritto: > Werner a ?crit : > ... > >> Depends on what you use it for, it's not free for commercial purposes. >> >> You have propably seen >> http://copyleft.free.fr/wordpress/index.php/libmodbus/ >> > > Thanks Werner, this look interesting. > > But AFAIK, GPLv3 & LGPLv3 don't forbid commercial use as far as you provide > a meaning to get all sources to the client (for short, it's better to supply > compiled AND source:) and retain the copyleft and credits to original creators. > > JY > I wrote in C, some time ago, an embedded application using modbus on RS-422. It is not a difficult matter, at least the part I was interested in - my device acted as a server, and a MMI (a touch screen LCD panel) was attached to it. If you are interested in, I can send some C source code and perhaps the official documentation I used to write it (available for free in the Internet). I don't remember if my implementation was "full" or had only the relevant part, but it was simple and short enough to be translated easily to gambas; there was only the CRC-32 (or whatever checksum) which was a little CPU intensive, but I suppose an i386 computer has far more power than a poor embedded microcontroller... Unfortunately this material is in the computers at work, I have not it here at home, but the next monday I can fetch them. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From surfzoid at ...626... Sat Oct 3 10:08:59 2009 From: surfzoid at ...626... (Petit Eric) Date: Sat, 3 Oct 2009 10:08:59 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC6FEC4.5040508@...1909...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> <4AC610BA.5090606@...626...> <4AC6153D.3050409@...1000...> <4AC68327.8030105@...626...> <4AC6FEC4.5040508@...1909...> Message-ID: <84776a970910030108y47a27009h49c37869402d3780@...627...> http://en.wikipedia.org/wiki/Modbus http://fr.wikipedia.org/wiki/Modbus http://www.modbus.org/ http://www.modbus.org/tech.php http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf http://www.modbus.org/docs/PI_MBUS_300.pdf http://www.modbus.org/docs/Modbus_Messaging_Implementation_Guide_V1_0b.pdf http://www.modbus.org/docs/Object_Messaging_Protocol_ExtensionsVers1.1.doc That's all pdf you need :-) 2009/10/3 Doriano Blengino : > Jean-Yves F. Barbier ha scritto: >> Werner a ?crit : >> ... >> >>> Depends on what you use it for, it's not free for commercial purposes. >>> >>> You have propably seen >>> http://copyleft.free.fr/wordpress/index.php/libmodbus/ >>> >> >> Thanks Werner, this look interesting. >> >> But AFAIK, GPLv3 & LGPLv3 don't forbid commercial use as far as you provide >> a meaning to get all sources to the client (for short, it's better to supply >> compiled AND source:) and retain the copyleft and credits to original creators. >> >> JY >> > I wrote in C, some time ago, an embedded application using modbus on RS-422. > It is not a difficult matter, at least the part I was interested in - my > device acted as a server, and a MMI (a touch screen LCD panel) was > attached to it. > If you are interested in, I can send some C source code and perhaps the > official documentation I used to write it (available for free in the > Internet). I don't remember if my implementation was "full" or had only > the relevant part, but it was simple and short enough to be translated > easily to gambas; there was only the CRC-32 (or whatever checksum) which > was a little CPU intensive, but I suppose an i386 computer has far more > power than a poor embedded microcontroller... > Unfortunately this material is in the computers at work, I have not it > here at home, but the next monday I can fetch them. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- I have no special talents. I am only passionately curious From 12ukwn at ...626... Sat Oct 3 11:13:18 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 03 Oct 2009 11:13:18 +0200 Subject: [Gambas-user] gambase and modbus In-Reply-To: <4AC6FEC4.5040508@...1909...> References: <4AC513FA.3050501@...626...> <4AC5D541.4020008@...1940...> <84776a970910020418o1c1095b0r1d35d3d1a71b4aa6@...627...> <84776a970910020420h3ba1079dt2da47ad083372c2e@...627...> <4AC610BA.5090606@...626...> <4AC6153D.3050409@...1000...> <4AC68327.8030105@...626...> <4AC6FEC4.5040508@...1909...> Message-ID: <4AC715AE.9030503@...626...> Doriano Blengino a ?crit : ... > I wrote in C, some time ago, an embedded application using modbus on RS-422. > It is not a difficult matter, at least the part I was interested in - my > device acted as a server, and a MMI (a touch screen LCD panel) was > attached to it. Oops, my fault, I forgot to tell precisions: * It is in fact ModBus TCP, * I'll use it for a HA cluster that'll retrieve info from some concentrators (900 sensors dispatched on 4 concentrators) > If you are interested in, I can send some C source code and perhaps the > official documentation I used to write it (available for free in the > Internet). I don't remember if my implementation was "full" or had only > the relevant part, but it was simple and short enough to be translated > easily to gambas; there was only the CRC-32 (or whatever checksum) which > was a little CPU intensive, but I suppose an i386 computer has far more > power than a poor embedded microcontroller... Thanks Doriano, but I think I've found what I need: I already retrieve docs from modbus.org, and find OpenSCADA (written in C++) that seems to be ok to do the trick. I only need to make some tests, and asked the hardware installer to try to get a simulator from his supplier. JY -- You will think of something funnier than this to add to the fortunes. From prog at ...2177... Sun Oct 4 04:47:28 2009 From: prog at ...2177... (craf) Date: Sat, 03 Oct 2009 22:47:28 -0400 Subject: [Gambas-user] Coordinates X and Y en DrawingArea controls Message-ID: <1254624448.3589.0.camel@...651...> Hello. VisualBasic Picturebox control has a MouseMove event which has 2 arguments (x as integer, and as integer). This lets me know the X and Y coordinates when the mouse moves over it. Is there something similar in Gambas? From wdahn at ...1000... Sun Oct 4 05:52:20 2009 From: wdahn at ...1000... (Werner) Date: Sun, 04 Oct 2009 11:52:20 +0800 Subject: [Gambas-user] Coordinates X and Y en DrawingArea controls In-Reply-To: <1254624448.3589.0.camel@...651...> References: <1254624448.3589.0.camel@...651...> Message-ID: <4AC81BF4.6030700@...1000...> craf wrote: > Hello. > > VisualBasic Picturebox control has a MouseMove event which has 2 > arguments (x as integer, and as integer). > This lets me know the X and Y coordinates when the mouse moves over it. > Is there something similar in Gambas? > > -- In Gambas2 apparently a DrawingArea can do that (with Tracking property set) but a PictureBox can't. Regards Werner From horst at ...2298... Sun Oct 4 06:41:45 2009 From: horst at ...2298... (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Sun, 04 Oct 2009 15:41:45 +1100 Subject: [Gambas-user] Arithmetic failure in project..Solution In-Reply-To: <20091003035546.M74114@...951...> References: <1253554960.8056.27950.camel@...2299...> <1253560844.7255.6.camel@...40...> <1254475105.5395.9.camel@...2299...> <20091003035546.M74114@...951...> Message-ID: <1254631305.5710.67.camel@...2299...> On Fri, 2009-10-02 at 23:11 -0500, nando wrote: > Friend, > I have gone through your project and I ran it with these changes: > > (1) in SUB action_click...insert above this line: > result = (exposure * (guidenumber / distance) * (flashcompensation) * (multicompensation)) > > these four lines: > > IF gn_feet.Value = TRUE THEN guidenumber = (input_gn.Value / 3.3) > IF gn_metres.Value = TRUE THEN guidenumber = input_gn.Value > distance = input_distance.Value > if distance = 0 then distance = 0.00001 'to prevent divide by zero error > result = (exposure * (guidenumber / distance) * (flashcompensation) * (multicompensation)) > > (2) > Remove or REM the 3 line sub: > PUBLIC SUB input_distance_KeyPress() > distance = (input_distance.Value) > END Hello there :) Yes, that solves the basic calculation problem. I'm still having an issue with CASE input_power.Selection ... it just doesn't work, expects an object instead of a string or some such... Thanks very much! -- Horst. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From nospam.nospam.nospam at ...626... Sun Oct 4 13:07:54 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 04 Oct 2009 21:07:54 +1000 Subject: [Gambas-user] Socket not working in 2.8 Message-ID: <1254654474.7635.10.camel@...2304...> I tried to create an application using a Socket instantiated in code: [CODE] PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket END [/CODE] I also tried: [CODE] PRIVATE MySock AS NEW Socket [/CODE] I had endless trouble getting the Socket to work so I created a new project from the ClientSocket (0.0.56) sample included in 2.8. I first tested the sample app, which worked fine. I then deleted the Socket control from the sample and added the code as shown above. Lo and behold, the Socket, when instantiated in code, will not connect to anything. It just sits there "looking up hostname". I need to be able to use a Socket in a class module, but it seems the Socket doesn't want to work if it is instantiated in code. It works fine if the Socket is added to a form, but this is no good for what I need to achieve. Am I doing something wrong or could this be a bug in Socket? Any help is appreciated. From wdahn at ...1000... Sun Oct 4 13:35:11 2009 From: wdahn at ...1000... (Werner) Date: Sun, 04 Oct 2009 19:35:11 +0800 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <1254654474.7635.10.camel@...2304...> References: <1254654474.7635.10.camel@...2304...> Message-ID: <4AC8886F.6050705@...1000...> nospam.nospam.nospam at ...626... wrote: > I tried to create an application using a Socket instantiated in code: > > [CODE] > PRIVATE MySock AS Socket > > PUBLIC SUB Form_Open() > > MySock = NEW Socket > > END > [/CODE] > > I also tried: > > [CODE] > PRIVATE MySock AS NEW Socket > [/CODE] > > I had endless trouble getting the Socket to work so I created a new > project from the ClientSocket (0.0.56) sample included in 2.8. I first > tested the sample app, which worked fine. I then deleted the Socket > control from the sample and added the code as shown above. > > Lo and behold, the Socket, when instantiated in code, will not connect > to anything. It just sits there "looking up hostname". > > I need to be able to use a Socket in a class module, but it seems the > Socket doesn't want to work if it is instantiated in code. It works fine > if the Socket is added to a form, but this is no good for what I need to > achieve. > > Am I doing something wrong or could this be a bug in Socket? > > Any help is appreciated. > Dear Spam Spam Spam, do you actually try to establish a connection? as in http://gambasdoc.org/help/comp/gb.net/socket Regards Werner From nospam.nospam.nospam at ...626... Sun Oct 4 14:33:01 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 04 Oct 2009 22:33:01 +1000 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <4AC8886F.6050705@...1000...> References: <1254654474.7635.10.camel@...2304...> <4AC8886F.6050705@...1000...> Message-ID: <1254659581.7635.13.camel@...2304...> On Sun, 2009-10-04 at 19:35 +0800, Werner wrote: > nospam.nospam.nospam at ...626... wrote: > > I tried to create an application using a Socket instantiated in code: > > > > [CODE] > > PRIVATE MySock AS Socket > > > > PUBLIC SUB Form_Open() > > > > MySock = NEW Socket > > > > END > > [/CODE] > > > > I also tried: > > > > [CODE] > > PRIVATE MySock AS NEW Socket > > [/CODE] > > > > I had endless trouble getting the Socket to work so I created a new > > project from the ClientSocket (0.0.56) sample included in 2.8. I first > > tested the sample app, which worked fine. I then deleted the Socket > > control from the sample and added the code as shown above. > > > > Lo and behold, the Socket, when instantiated in code, will not connect > > to anything. It just sits there "looking up hostname". > > > > I need to be able to use a Socket in a class module, but it seems the > > Socket doesn't want to work if it is instantiated in code. It works fine > > if the Socket is added to a form, but this is no good for what I need to > > achieve. > > > > Am I doing something wrong or could this be a bug in Socket? > > > > Any help is appreciated. > > > Dear Spam Spam Spam, > > do you actually try to establish a connection? > as in http://gambasdoc.org/help/comp/gb.net/socket Good grief. Did you actually try to understand what I wrote? I created a new project from the ClientSocket (0.0.56) sample included in 2.8. I first tested the sample app, which worked fine. I then deleted the Socket control from the sample and added the code as shown above. Lo and behold, the Socket, when instantiated in code, will not connect to anything. It just sits there "looking up hostname". > Regards > Werner > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Sun Oct 4 14:53:34 2009 From: ron at ...1740... (Ron) Date: Sun, 04 Oct 2009 14:53:34 +0200 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <1254659581.7635.13.camel@...2304...> References: <1254654474.7635.10.camel@...2304...> <4AC8886F.6050705@...1000...> <1254659581.7635.13.camel@...2304...> Message-ID: <4AC89ACE.4030600@...1740...> nospam.nospam.nospam at ...626... wrote: > On Sun, 2009-10-04 at 19:35 +0800, Werner wrote: > >> nospam.nospam.nospam at ...626... wrote: >> >>> I tried to create an application using a Socket instantiated in code: >>> >>> [CODE] >>> PRIVATE MySock AS Socket >>> >>> PUBLIC SUB Form_Open() >>> >>> MySock = NEW Socket >>> >>> END >>> [/CODE] >>> >>> I also tried: >>> >>> [CODE] >>> PRIVATE MySock AS NEW Socket >>> [/CODE] >>> >>> I had endless trouble getting the Socket to work so I created a new >>> project from the ClientSocket (0.0.56) sample included in 2.8. I first >>> tested the sample app, which worked fine. I then deleted the Socket >>> control from the sample and added the code as shown above. >>> >>> Lo and behold, the Socket, when instantiated in code, will not connect >>> to anything. It just sits there "looking up hostname". >>> >>> I need to be able to use a Socket in a class module, but it seems the >>> Socket doesn't want to work if it is instantiated in code. It works fine >>> if the Socket is added to a form, but this is no good for what I need to >>> achieve. >>> >>> Am I doing something wrong or could this be a bug in Socket? >>> >>> Any help is appreciated. >>> >>> >> Dear Spam Spam Spam, >> >> do you actually try to establish a connection? >> as in http://gambasdoc.org/help/comp/gb.net/socket >> > > Good grief. Did you actually try to understand what I wrote? > > I created a new project from the ClientSocket (0.0.56) sample included > in 2.8. I first tested the sample app, which worked fine. I then deleted > the Socket control from the sample and added the code as shown above. > > Lo and behold, the Socket, when instantiated in code, will not connect > to anything. It just sits there "looking up hostname". > > Before you start with comments again, your mail wasn't that clear as it may seem. Did you add a name to the socket when creating it? Like so: hMySocket = NEW Socket AS "MySock" And then use event handlers with that name, like this? PUBLIC SUB MySock_Read() END Without it events will not work, and thus you cannot detect if it's connecting or not. And version 2.8 is a bit old, tons of bug fixes since then (we are at 2.17 now) Regards, Ron_2nd. From nospam.nospam.nospam at ...626... Sun Oct 4 15:00:19 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 04 Oct 2009 23:00:19 +1000 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <4AC89ACE.4030600@...1740...> References: <1254654474.7635.10.camel@...2304...> <4AC8886F.6050705@...1000...> <1254659581.7635.13.camel@...2304...> <4AC89ACE.4030600@...1740...> Message-ID: <1254661219.7635.16.camel@...2304...> On Sun, 2009-10-04 at 14:53 +0200, Ron wrote: > nospam.nospam.nospam at ...626... wrote: > > On Sun, 2009-10-04 at 19:35 +0800, Werner wrote: > > > >> nospam.nospam.nospam at ...626... wrote: > >> > >>> I tried to create an application using a Socket instantiated in code: > >>> > >>> [CODE] > >>> PRIVATE MySock AS Socket > >>> > >>> PUBLIC SUB Form_Open() > >>> > >>> MySock = NEW Socket > >>> > >>> END > >>> [/CODE] > >>> > >>> I also tried: > >>> > >>> [CODE] > >>> PRIVATE MySock AS NEW Socket > >>> [/CODE] > >>> > >>> I had endless trouble getting the Socket to work so I created a new > >>> project from the ClientSocket (0.0.56) sample included in 2.8. I first > >>> tested the sample app, which worked fine. I then deleted the Socket > >>> control from the sample and added the code as shown above. > >>> > >>> Lo and behold, the Socket, when instantiated in code, will not connect > >>> to anything. It just sits there "looking up hostname". > >>> > >>> I need to be able to use a Socket in a class module, but it seems the > >>> Socket doesn't want to work if it is instantiated in code. It works fine > >>> if the Socket is added to a form, but this is no good for what I need to > >>> achieve. > >>> > >>> Am I doing something wrong or could this be a bug in Socket? > >>> > >>> Any help is appreciated. > >>> > >>> > >> Dear Spam Spam Spam, > >> > >> do you actually try to establish a connection? > >> as in http://gambasdoc.org/help/comp/gb.net/socket > >> > > > > Good grief. Did you actually try to understand what I wrote? > > > > I created a new project from the ClientSocket (0.0.56) sample included > > in 2.8. I first tested the sample app, which worked fine. I then deleted > > the Socket control from the sample and added the code as shown above. > > > > Lo and behold, the Socket, when instantiated in code, will not connect > > to anything. It just sits there "looking up hostname". > > > > > Before you start with comments again, your mail wasn't that clear as it > may seem. > > Did you add a name to the socket when creating it? Like so: > > hMySocket = NEW Socket AS "MySock" > > And then use event handlers with that name, like this? > > PUBLIC SUB MySock_Read() > > END > > Without it events will not work, and thus you cannot detect if it's > connecting or not. "I created a new project from the ClientSocket (0.0.56) sample which worked fine." All of what you said is already in the sample. The sample does not work when the Socket is instantiated in code. > And version 2.8 is a bit old, tons of bug fixes since then (we are at > 2.17 now) Right. I'll upgrade and try the same thing again. Thank you. From ron at ...1740... Sun Oct 4 15:05:52 2009 From: ron at ...1740... (Ron) Date: Sun, 04 Oct 2009 15:05:52 +0200 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <1254661219.7635.16.camel@...2304...> References: <1254654474.7635.10.camel@...2304...> <4AC8886F.6050705@...1000...> <1254659581.7635.13.camel@...2304...> <4AC89ACE.4030600@...1740...> <1254661219.7635.16.camel@...2304...> Message-ID: <4AC89DB0.5050308@...1740...> nospam.nospam.nospam at ...626... wrote: > On Sun, 2009-10-04 at 14:53 +0200, Ron wrote: > >> nospam.nospam.nospam at ...626... wrote: >> >>> On Sun, 2009-10-04 at 19:35 +0800, Werner wrote: >>> >>> >>>> nospam.nospam.nospam at ...626... wrote: >>>> >>>> >>>>> I tried to create an application using a Socket instantiated in code: >>>>> >>>>> [CODE] >>>>> PRIVATE MySock AS Socket >>>>> >>>>> PUBLIC SUB Form_Open() >>>>> >>>>> MySock = NEW Socket >>>>> >>>>> END >>>>> [/CODE] >>>>> >>>>> I also tried: >>>>> >>>>> [CODE] >>>>> PRIVATE MySock AS NEW Socket >>>>> [/CODE] >>>>> >>>>> I had endless trouble getting the Socket to work so I created a new >>>>> project from the ClientSocket (0.0.56) sample included in 2.8. I first >>>>> tested the sample app, which worked fine. I then deleted the Socket >>>>> control from the sample and added the code as shown above. >>>>> >>>>> Lo and behold, the Socket, when instantiated in code, will not connect >>>>> to anything. It just sits there "looking up hostname". >>>>> >>>>> I need to be able to use a Socket in a class module, but it seems the >>>>> Socket doesn't want to work if it is instantiated in code. It works fine >>>>> if the Socket is added to a form, but this is no good for what I need to >>>>> achieve. >>>>> >>>>> Am I doing something wrong or could this be a bug in Socket? >>>>> >>>>> Any help is appreciated. >>>>> >>>>> >>>>> >>>> Dear Spam Spam Spam, >>>> >>>> do you actually try to establish a connection? >>>> as in http://gambasdoc.org/help/comp/gb.net/socket >>>> >>>> >>> Good grief. Did you actually try to understand what I wrote? >>> >>> I created a new project from the ClientSocket (0.0.56) sample included >>> in 2.8. I first tested the sample app, which worked fine. I then deleted >>> the Socket control from the sample and added the code as shown above. >>> >>> Lo and behold, the Socket, when instantiated in code, will not connect >>> to anything. It just sits there "looking up hostname". >>> >>> >>> >> Before you start with comments again, your mail wasn't that clear as it >> may seem. >> >> Did you add a name to the socket when creating it? Like so: >> >> hMySocket = NEW Socket AS "MySock" >> >> And then use event handlers with that name, like this? >> >> PUBLIC SUB MySock_Read() >> >> END >> >> Without it events will not work, and thus you cannot detect if it's >> connecting or not. >> > > "I created a new project from the ClientSocket (0.0.56) sample which > worked fine." > > All of what you said is already in the sample. The sample does not work > when the Socket is instantiated in code. > > >> And version 2.8 is a bit old, tons of bug fixes since then (we are at >> 2.17 now) >> > > Right. I'll upgrade and try the same thing again. Thank you. > > Oh my god, next time no answer from me then... My project is using tons of sockets all created from code, and working 100% 24/7, so please calm down man. http://domotiga.nl Regards, Ron_2nd. From wdahn at ...1000... Sun Oct 4 15:17:04 2009 From: wdahn at ...1000... (Werner) Date: Sun, 04 Oct 2009 21:17:04 +0800 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <1254659581.7635.13.camel@...2304...> References: <1254654474.7635.10.camel@...2304...> <4AC8886F.6050705@...1000...> <1254659581.7635.13.camel@...2304...> Message-ID: <4AC8A050.3070508@...1000...> nospam.nospam.nospam at ...626... wrote: > On Sun, 2009-10-04 at 19:35 +0800, Werner wrote: > >> nospam.nospam.nospam at ...626... wrote: >> >>> I tried to create an application using a Socket instantiated in code: >>> >>> [CODE] >>> PRIVATE MySock AS Socket >>> >>> PUBLIC SUB Form_Open() >>> >>> MySock = NEW Socket >>> >>> END >>> [/CODE] >>> >>> I also tried: >>> >>> [CODE] >>> PRIVATE MySock AS NEW Socket >>> [/CODE] >>> >>> I had endless trouble getting the Socket to work so I created a new >>> project from the ClientSocket (0.0.56) sample included in 2.8. I first >>> tested the sample app, which worked fine. I then deleted the Socket >>> control from the sample and added the code as shown above. >>> >>> Lo and behold, the Socket, when instantiated in code, will not connect >>> to anything. It just sits there "looking up hostname". >>> >>> I need to be able to use a Socket in a class module, but it seems the >>> Socket doesn't want to work if it is instantiated in code. It works fine >>> if the Socket is added to a form, but this is no good for what I need to >>> achieve. >>> >>> Am I doing something wrong or could this be a bug in Socket? >>> >>> Any help is appreciated. >>> >>> >> Dear Spam Spam Spam, >> >> do you actually try to establish a connection? >> as in http://gambasdoc.org/help/comp/gb.net/socket >> > > Good grief. Did you actually try to understand what I wrote? > > I created a new project from the ClientSocket (0.0.56) sample included > in 2.8. I first tested the sample app, which worked fine. I then deleted > the Socket control from the sample and added the code as shown above. > > Lo and behold, the Socket, when instantiated in code, will not connect > to anything. It just sits there "looking up hostname". > > >> Regards >> Werner >> I tried this with Gambas2.14/64 on openSuse 11.1, single stepping through the code: PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket 'the socket is now created. Stream is closed MySock.Connect("localhost", 7000) 'does open the stream. END I cannot reproduce the symptoms described. Regards Werner From gambas at ...1... Sun Oct 4 15:41:40 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Oct 2009 15:41:40 +0200 Subject: [Gambas-user] Coordinates X and Y en DrawingArea controls In-Reply-To: <1254624448.3589.0.camel@...651...> References: <1254624448.3589.0.camel@...651...> Message-ID: <200910041541.40673.gambas@...1...> > Hello. > > VisualBasic Picturebox control has a MouseMove event which has 2 > arguments (x as integer, and as integer). > This lets me know the X and Y coordinates when the mouse moves over it. > Is there something similar in Gambas? > You have the MouseMove event, but you get the mouse coordinates by using Mouse.X and Mouse.Y. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sun Oct 4 15:50:48 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 04 Oct 2009 23:50:48 +1000 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <4AC89DB0.5050308@...1740...> References: <1254654474.7635.10.camel@...2304...> <4AC8886F.6050705@...1000...> <1254659581.7635.13.camel@...2304...> <4AC89ACE.4030600@...1740...> <1254661219.7635.16.camel@...2304...> <4AC89DB0.5050308@...1740...> Message-ID: <1254664248.7635.18.camel@...2304...> On Sun, 2009-10-04 at 15:05 +0200, Ron wrote: > nospam.nospam.nospam at ...626... wrote: > > On Sun, 2009-10-04 at 14:53 +0200, Ron wrote: > >> And version 2.8 is a bit old, tons of bug fixes since then (we are at > >> 2.17 now) > >> > > > > Right. I'll upgrade and try the same thing again. Thank you. > > > > > > Oh my god, next time no answer from me then... Huh? I said I would take your advice, then I thanked you. > My project is using tons of sockets all created from code, and working > 100% 24/7, so please calm down man. > http://domotiga.nl > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nospam.nospam.nospam at ...626... Sun Oct 4 15:57:03 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 04 Oct 2009 23:57:03 +1000 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <4AC8A050.3070508@...1000...> References: <1254654474.7635.10.camel@...2304...> <4AC8886F.6050705@...1000...> <1254659581.7635.13.camel@...2304...> <4AC8A050.3070508@...1000...> Message-ID: <1254664623.7635.25.camel@...2304...> On Sun, 2009-10-04 at 21:17 +0800, Werner wrote: > PRIVATE MySock AS Socket > > > PUBLIC SUB Form_Open() > MySock = NEW Socket 'the socket is now > created. Stream is closed > MySock.Connect("localhost", 7000) 'does open the stream. > END > > I cannot reproduce the symptoms described. I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. There is an NNTP server on 192.168.1.8:5000 that sends back a greeting when the connection is made by the client. The server logs also indicate that no connection was made. PRIVATE MySock AS Socket PUBLIC SUB Form_Open() MySock = NEW Socket MySock.Connect("192.168.1.8", 5000) END PUBLIC SUB MySock_Read() DIM sR AS String DIM nZ AS Integer IF MySock.Status = Net.Connected THEN READ #MySock, sR, Lof(MySock) END IF END If I put a Socket control on the form and use this code, it works. MySock_Read fires and sR contains the greeting from the server. PUBLIC SUB Form_Open() MySock.Connect("192.168.1.8", 5000) END PUBLIC SUB MySock_Read() DIM sR AS String DIM nZ AS Integer IF MySock.Status = Net.Connected THEN READ #MySock, sR, Lof(MySock) END IF END From gambas at ...1... Sun Oct 4 16:11:05 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 4 Oct 2009 16:11:05 +0200 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <1254664623.7635.25.camel@...2304...> References: <1254654474.7635.10.camel@...2304...> <4AC8A050.3070508@...1000...> <1254664623.7635.25.camel@...2304...> Message-ID: <200910041611.06014.gambas@...1...> > On Sun, 2009-10-04 at 21:17 +0800, Werner wrote: > > PRIVATE MySock AS Socket > > > > > > PUBLIC SUB Form_Open() > > MySock = NEW Socket 'the socket is now > > created. Stream is closed > > MySock.Connect("localhost", 7000) 'does open the stream. > > END > > > > I cannot reproduce the symptoms described. > > I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. > There is an NNTP server on 192.168.1.8:5000 that sends back a greeting > when the connection is made by the client. The server logs also indicate > that no connection was made. > > PRIVATE MySock AS Socket > > PUBLIC SUB Form_Open() > MySock = NEW Socket You must write: MySock = NEW Socket AS "MySock" I suggest you read the documentation of the NEW instruction. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sun Oct 4 16:24:14 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 05 Oct 2009 00:24:14 +1000 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <200910041611.06014.gambas@...1...> References: <1254654474.7635.10.camel@...2304...> <4AC8A050.3070508@...1000...> <1254664623.7635.25.camel@...2304...> <200910041611.06014.gambas@...1...> Message-ID: <1254666254.7635.27.camel@...2304...> On Sun, 2009-10-04 at 16:11 +0200, Beno?t Minisini wrote: > > I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. > > There is an NNTP server on 192.168.1.8:5000 that sends back a greeting > > when the connection is made by the client. The server logs also indicate > > that no connection was made. > > > > PRIVATE MySock AS Socket > > > > PUBLIC SUB Form_Open() > > MySock = NEW Socket > > You must write: > > MySock = NEW Socket AS "MySock" HA! You're a genius. That fixed it. Thank you. > I suggest you read the documentation of the NEW instruction. Yes, I'd better. From ron at ...1740... Sun Oct 4 16:30:26 2009 From: ron at ...1740... (Ron) Date: Sun, 04 Oct 2009 16:30:26 +0200 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <1254666254.7635.27.camel@...2304...> References: <1254654474.7635.10.camel@...2304...> <4AC8A050.3070508@...1000...> <1254664623.7635.25.camel@...2304...> <200910041611.06014.gambas@...1...> <1254666254.7635.27.camel@...2304...> Message-ID: <4AC8B182.6070406@...1740...> nospam.nospam.nospam at ...626... wrote: > On Sun, 2009-10-04 at 16:11 +0200, Beno?t Minisini wrote: > > >>> I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. >>> There is an NNTP server on 192.168.1.8:5000 that sends back a greeting >>> when the connection is made by the client. The server logs also indicate >>> that no connection was made. >>> >>> PRIVATE MySock AS Socket >>> >>> PUBLIC SUB Form_Open() >>> MySock = NEW Socket >>> >> You must write: >> >> MySock = NEW Socket AS "MySock" >> > > HA! You're a genius. That fixed it. Thank you. > > > LOL thats what I wrote a few msg back... reading is so difficult. From prog at ...2177... Sun Oct 4 17:42:23 2009 From: prog at ...2177... (craf) Date: Sun, 04 Oct 2009 11:42:23 -0400 Subject: [Gambas-user] Coordinates X and Y en DrawingArea controls In-Reply-To: <200910041541.40673.gambas@...1...> References: <1254624448.3589.0.camel@...651...> <200910041541.40673.gambas@...1...> Message-ID: <1254670943.3592.0.camel@...651...> Thanks you!. -----Mensaje original----- De: Beno?t Minisini Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Coordinates X and Y en DrawingArea controls Fecha: Sun, 4 Oct 2009 15:41:40 +0200 > Hello. > > VisualBasic Picturebox control has a MouseMove event which has 2 > arguments (x as integer, and as integer). > This lets me know the X and Y coordinates when the mouse moves over it. > Is there something similar in Gambas? > You have the MouseMove event, but you get the mouse coordinates by using Mouse.X and Mouse.Y. Regards, From nospam.nospam.nospam at ...626... Mon Oct 5 01:47:25 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 05 Oct 2009 09:47:25 +1000 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <4AC8B182.6070406@...1740...> References: <1254654474.7635.10.camel@...2304...> <4AC8A050.3070508@...1000...> <1254664623.7635.25.camel@...2304...> <200910041611.06014.gambas@...1...> <1254666254.7635.27.camel@...2304...> <4AC8B182.6070406@...1740...> Message-ID: <1254700045.25326.1.camel@...2304...> On Sun, 2009-10-04 at 16:30 +0200, Ron wrote: > nospam.nospam.nospam at ...626... wrote: > > On Sun, 2009-10-04 at 16:11 +0200, Beno?t Minisini wrote: > > > > > >>> I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. > >>> There is an NNTP server on 192.168.1.8:5000 that sends back a greeting > >>> when the connection is made by the client. The server logs also indicate > >>> that no connection was made. > >>> > >>> PRIVATE MySock AS Socket > >>> > >>> PUBLIC SUB Form_Open() > >>> MySock = NEW Socket > >>> > >> You must write: > >> > >> MySock = NEW Socket AS "MySock" > >> > > > > HA! You're a genius. That fixed it. Thank you. > > > > > > > LOL thats what I wrote a few msg back... Yes, you did. > reading is so difficult. Oh, no. I read it. I chose not to thank you ever again after what you wrote the first time. HAND From rterry at ...1946... Mon Oct 5 05:07:49 2009 From: rterry at ...1946... (richard terry) Date: Mon, 5 Oct 2009 14:07:49 +1100 Subject: [Gambas-user] QT themes and program appearance Message-ID: <200910051407.49987.rterry@...1946...> I wonder if any one could be kind enough to explain to me how to change the icon themes that show up in ones program. I though it was via qtconfig but that dosn't seem to make any difference in my instance for some reason. Regards richard From robert1juhasz at ...626... Mon Oct 5 06:58:07 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Mon, 5 Oct 2009 06:58:07 +0200 Subject: [Gambas-user] packaging In-Reply-To: <1254391892.7146.1.camel@...40...> References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> Message-ID: <68652a0b0910042158l11638948r168007897c3ac438@...627...> Hi, I added "fakeroot" from the Synaptic Package Manager and with this I could pack my application - soma packages with different extension. I launched the .deb package which installed the application! I just had some complications after... Whet I started the application it refuses to connect to it's database by saying "no driver for mySQL". However the executable worked properly just before. To catch the error I start gambas2 ... which refuses to start by saying "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file" So now I would need some mainly to understand why it could have happened. I removed "fakerote" but no change. I don't know how to uninstall my application but it shouldn't affect gambas itself. Maybe I need to reinstall gambas. The last time I followed these instructions and it worked well except the packaging: http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install Thanks for any advice, Robi 2009/10/1 Charlie Reinl > Am Donnerstag, den 01.10.2009, 02:34 -0700 schrieb yuhej: > > Hello, > > > > I'm not very far from being able to test my first Gambas application. It > > works from the IDE, also the executable on my PC. > > I try to make a package to test it on a "virgin" ubuntu but I haven't > > succeeded. I got an error message like that: > > --------------------------------------------- > > Creating package for Ubuntu. > > Making build directory. > > Creating desktop file... > > Sources are being debianizated. > > Creating package... > > sh: fakeroot: not found > > The package build has failed. > > Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. > > --------------------------------------------- > > > > Is there anything misiing from my system, I made a mistake or is this a > bug? > > Thanks for your help. > > > > Robi > > Salut Robi, > > I think you have to install fakeroot > > > -- > Amicalment > Charlie > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Mon Oct 5 10:35:02 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 05 Oct 2009 10:35:02 +0200 Subject: [Gambas-user] found some problems in gabmas2 Message-ID: <1254731702.6473.24.camel@...40...> Salut, The first is easy to reproduce: - working with gambas-DBmanager if you navigate by keys to an empty field, which is not to fill ('length' behind 'Float') the app crash. Same if you press in such a field any key. Second : in the IDE Some times my apps don't start (the form don't raise) after pressing F5. [Stop] in toolbar is active. Happens after several starts by F5. Third : Is more a question in printer.Setup() if I opt for 'Print range' and make 'From page' = 1 and 'To page' = 1, ( there are 2 pages) who controls that ? If that should be done by gambas2, it don't work. [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-24-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 8.04.3 LTS" [System] CPUArchitecture=i686 TotalRam=506932 kB [Gambas] Gambas1=gbx-1.0.17 Gambas1Path=/usr/bin/gbx Gambas2=2.17.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 ----------------- gambas ----------------------------------------------- gbx-1.0.17 /usr/bin/gbx ----------------- gambas2 ---------------------------------------------- 2.17.0 Revision: 2381 /usr/local/bin/gbx2 ----------------- gambas3 ---------------------------------------------- 2.99.0 Revision: 2381 /usr/local/bin/gbx3 -- Amicalment Charlie From surfzoid at ...626... Mon Oct 5 10:50:51 2009 From: surfzoid at ...626... (Petit Eric) Date: Mon, 5 Oct 2009 10:50:51 +0200 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0910042158l11638948r168007897c3ac438@...627...> References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> <68652a0b0910042158l11638948r168007897c3ac438@...627...> Message-ID: <84776a970910050150n257ac8b8q798c2c3c47236340@...627...> I don't know which Mysql driver gambas use, but you need to add it to the dep list of the deb to be sure when you install the dep it install the mysql driver too 2009/10/5 Robert JUHASZ : > Hi, > > I added "fakeroot" from the Synaptic Package Manager and with this I could > pack my application - soma packages with different extension. I launched the > .deb package which installed the application! > > I just had some complications after... > > Whet I started the application it refuses to connect to it's database by > saying "no driver for mySQL". However the executable worked properly just > before. > To catch the error I start gambas2 ... which refuses to start by saying > "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > file" > > So now I would need some mainly to understand why it could have happened. > I removed "fakerote" but no change. I don't know how to uninstall my > application but it shouldn't affect gambas itself. > > Maybe I need to reinstall gambas. The last time I followed these > instructions and it worked well except the packaging: > http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install > > Thanks for any advice, > > Robi > > > 2009/10/1 Charlie Reinl > >> Am Donnerstag, den 01.10.2009, 02:34 -0700 schrieb yuhej: >> > Hello, >> > >> > I'm not very far from being able to test my first Gambas application. It >> > works from the IDE, also the executable on my PC. >> > I try to make a package to test it on a "virgin" ubuntu but I haven't >> > succeeded. I got an error message like that: >> > --------------------------------------------- >> > Creating package for Ubuntu. >> > Making build directory. >> > Creating desktop file... >> > Sources are being debianizated. >> > Creating package... >> > sh: fakeroot: not found >> > The package build has failed. >> > Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. >> > --------------------------------------------- >> > >> > Is there anything misiing from my system, I made a mistake or is this a >> bug? >> > Thanks for your help. >> > >> > Robi >> >> Salut Robi, >> >> I think you have to install fakeroot >> >> >> -- >> Amicalment >> Charlie >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Cordially. Small Eric Quotations of the days: --------------------------------------------------------------------------- I have no special talents. I am only passionately curious From shordi at ...626... Mon Oct 5 11:09:52 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 5 Oct 2009 11:09:52 +0200 Subject: [Gambas-user] packaging In-Reply-To: <84776a970910050150n257ac8b8q798c2c3c47236340@...627...> References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> <68652a0b0910042158l11638948r168007897c3ac438@...627...> <84776a970910050150n257ac8b8q798c2c3c47236340@...627...> Message-ID: I had the same problem. Solution: download that package.deb and distribute with your application. Add a little install.sh who installs both .debs and all is ok. 2009/10/5 Petit Eric > I don't know which Mysql driver gambas use, but you need to add it to > the dep list of the deb to be sure when you install the dep it install > the mysql driver too > > 2009/10/5 Robert JUHASZ : > > Hi, > > > > I added "fakeroot" from the Synaptic Package Manager and with this I > could > > pack my application - soma packages with different extension. I launched > the > > .deb package which installed the application! > > > > I just had some complications after... > > > > Whet I started the application it refuses to connect to it's database by > > saying "no driver for mySQL". However the executable worked properly just > > before. > > To catch the error I start gambas2 ... which refuses to start by saying > > "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > > file" > > > > So now I would need some mainly to understand why it could have happened. > > I removed "fakerote" but no change. I don't know how to uninstall my > > application but it shouldn't affect gambas itself. > > > > Maybe I need to reinstall gambas. The last time I followed these > > instructions and it worked well except the packaging: > > http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install > > > > Thanks for any advice, > > > > Robi > > > > > > 2009/10/1 Charlie Reinl > > > >> Am Donnerstag, den 01.10.2009, 02:34 -0700 schrieb yuhej: > >> > Hello, > >> > > >> > I'm not very far from being able to test my first Gambas application. > It > >> > works from the IDE, also the executable on my PC. > >> > I try to make a package to test it on a "virgin" ubuntu but I haven't > >> > succeeded. I got an error message like that: > >> > --------------------------------------------- > >> > Creating package for Ubuntu. > >> > Making build directory. > >> > Creating desktop file... > >> > Sources are being debianizated. > >> > Creating package... > >> > sh: fakeroot: not found > >> > The package build has failed. > >> > Package.MakeDebPackage.531: 'dpkg-buildpackage' has failed. > >> > --------------------------------------------- > >> > > >> > Is there anything misiing from my system, I made a mistake or is this > a > >> bug? > >> > Thanks for your help. > >> > > >> > Robi > >> > >> Salut Robi, > >> > >> I think you have to install fakeroot > >> > >> > >> -- > >> Amicalment > >> Charlie > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Come build with us! The BlackBerry® Developer Conference in SF, CA > >> is the only developer event you need to attend this year. Jumpstart your > >> developing skills, take BlackBerry mobile applications to market and > stay > >> ahead of the curve. Join us from November 9-12, 2009. Register > now! > >> http://p.sf.net/sfu/devconf > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9-12, 2009. Register > now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Cordially. > > Small Eric Quotations of the days: > --------------------------------------------------------------------------- > I have no special talents. I am only passionately curious > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Mon Oct 5 11:27:24 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 05 Oct 2009 11:27:24 +0200 Subject: [Gambas-user] packaging In-Reply-To: References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> <68652a0b0910042158l11638948r168007897c3ac438@...627...> <84776a970910050150n257ac8b8q798c2c3c47236340@...627...> Message-ID: <4AC9BBFC.5050203@...626...> Jorge Carri?n a ?crit : > I had the same problem. > Solution: > download that package.deb and distribute with your application. Add a little > install.sh who installs both .debs and all is ok. Fortunately, you don't need that under Debian; you have 2 solutions: * For a small number of dependencies, you have special fields in the package that each address a list: Null, Suggest, Recommend & Depend, Depend oblige the depending package(s) to be installed at the same time of yours (solution that Petit Eric told you about), * For a large number of dependencies, you can create an emty meta-package that only contains the needeed links as described above. HTH JY -- The most important service rendered by the press is that of educating people to approach printed matter with distrust. From gambas at ...1... Mon Oct 5 11:35:33 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 5 Oct 2009 11:35:33 +0200 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0910042158l11638948r168007897c3ac438@...627...> References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> <68652a0b0910042158l11638948r168007897c3ac438@...627...> Message-ID: <200910051135.33876.gambas@...1...> > Hi, > > I added "fakeroot" from the Synaptic Package Manager and with this I could > pack my application - soma packages with different extension. I launched > the .deb package which installed the application! > > I just had some complications after... > > Whet I started the application it refuses to connect to it's database by > saying "no driver for mySQL". However the executable worked properly just > before. > To catch the error I start gambas2 ... which refuses to start by saying > "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > file" > > So now I would need some mainly to understand why it could have happened. > I removed "fakerote" but no change. I don't know how to uninstall my > application but it shouldn't affect gambas itself. > > Maybe I need to reinstall gambas. The last time I followed these > instructions and it worked well except the packaging: > http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install > > Thanks for any advice, > > Robi > > If you want your project to depend on the mysql driver, you must explicitely check it in the project property dialog, provided that your gambas version is high enough (>= 2.14). Regards, -- Beno?t Minisini From shordi at ...626... Mon Oct 5 13:42:40 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Mon, 5 Oct 2009 13:42:40 +0200 Subject: [Gambas-user] packaging In-Reply-To: <200910051135.33876.gambas@...1...> References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> <68652a0b0910042158l11638948r168007897c3ac438@...627...> <200910051135.33876.gambas@...1...> Message-ID: ?2.14? mmm that's the problem, then. I've using 2.10. The problem for me is thay I've created a little repositorie with .deb packages of 2.10 downloaded from Debian repository, and my own programs. Then my clients adds that repositorie to their apt-sources.list. Installating a program of mine and install one of my own programs. All dependencies are satisfyed and all is ok. But I've no find .deb packages of 2.14 (or any version higher than 2.10). ?Somebody has that .deb packages? Regards 2009/10/5 Beno?t Minisini > > Hi, > > > > I added "fakeroot" from the Synaptic Package Manager and with this I > could > > pack my application - soma packages with different extension. I launched > > the .deb package which installed the application! > > > > I just had some complications after... > > > > Whet I started the application it refuses to connect to it's database by > > saying "no driver for mySQL". However the executable worked properly just > > before. > > To catch the error I start gambas2 ... which refuses to start by saying > > "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > > file" > > > > So now I would need some mainly to understand why it could have happened. > > I removed "fakerote" but no change. I don't know how to uninstall my > > application but it shouldn't affect gambas itself. > > > > Maybe I need to reinstall gambas. The last time I followed these > > instructions and it worked well except the packaging: > > http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install > > > > Thanks for any advice, > > > > Robi > > > > > > If you want your project to depend on the mysql driver, you must > explicitely > check it in the project property dialog, provided that your gambas version > is > high enough (>= 2.14). > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert1juhasz at ...626... Mon Oct 5 14:04:45 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Mon, 5 Oct 2009 14:04:45 +0200 Subject: [Gambas-user] packaging In-Reply-To: <200910051135.33876.gambas@...1...> References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> <68652a0b0910042158l11638948r168007897c3ac438@...627...> <200910051135.33876.gambas@...1...> Message-ID: <68652a0b0910050504j77f5beafx952329f008d46d01@...627...> Hi, It's no more just a packaging problem, even Gambas doesn't start up. After re-installing gambas it gives the same error message (ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library..). It is very embarrasseing as I don't know what to do now. If I reinstall ubuntu + gambas, probably will run again, but I don't know why it happened and how to avoid it to come back. By the way, once I installed someting (like gambas itself or my application) how can I uninstall it? I can't see them in the Synaptick Package Manager. :-( Robi 2009/10/5, Beno?t Minisini : > > > Hi, > > > > I added "fakeroot" from the Synaptic Package Manager and with this I > could > > pack my application - soma packages with different extension. I launched > > the .deb package which installed the application! > > > > I just had some complications after... > > > > Whet I started the application it refuses to connect to it's database by > > saying "no driver for mySQL". However the executable worked properly just > > before. > > To catch the error I start gambas2 ... which refuses to start by saying > > "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library > > file" > > > > So now I would need some mainly to understand why it could have happened. > > I removed "fakerote" but no change. I don't know how to uninstall my > > application but it shouldn't affect gambas itself. > > > > Maybe I need to reinstall gambas. The last time I followed these > > instructions and it worked well except the packaging: > > http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install > > > > Thanks for any advice, > > > > Robi > > > > > > If you want your project to depend on the mysql driver, you must > explicitely > check it in the project property dialog, provided that your gambas version > is > high enough (>= 2.14). > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ihedenius at ...43... Mon Oct 5 16:33:21 2009 From: ihedenius at ...43... (stderr) Date: Mon, 5 Oct 2009 07:33:21 -0700 (PDT) Subject: [Gambas-user] TextEdit copy&Paste and removal of hyper tags In-Reply-To: <200910022137.55815.gambas@...1...> References: <25666934.post@...1379...> <200910022137.55815.gambas@...1...> Message-ID: <25751932.post@...1379...> Beno?t Minisini wrote: Thanks for replying. > > Why don't you use the Text property instead, that normally returns the > text > without the tags? No it doesn't (?). By 'Text property' I assume you mean "TextEdit.Text". TextEdit.Text will contain tags as soon as the control gets edited or TextEdit.text is assigned. That's fine, it's what it's supposed to do. I use the tags, but I also want to extract the plain text (with all UTF-8 codes preserved). New example. For the purpose of this example I pasted the comment "?abc?" into the TextEdit control and then clicked 'Button1'. I added PRINTs for stuff I thought interesting. PUBLIC SUB Button1_Click() ' ?abc? TextEdit1.SelectAll() TextEdit1.Copy() PRINT Clipboard.Paste() PRINT TextEdit1.Text PRINT Clipboard.Type PRINT Clipboard.format PRINT Clipboard.formats[0] PRINT Clipboard.formats[1] PRINT Clipboard.formats[2] PRINT Clipboard.formats[3] END Console: ?abc?

?abc?

1 text/plain text/plain;charset=UTF-8 text/plain;charset=ISO-10646-UCS-2 text/plain application/x-qrichtext "?abc?" is the copypaste output. Next is 'TextEdit1.Text' (with tags). "1" belongs to Clipboard.Type etc ... > Did you look at all the different format that could be stored in the > clipboard > after .Copy() and before .Paste()? I looked at Clipboard (gb.qt) documentation again. This time I noticed that Clipboard "Paste" offers the optional argument "Format". Sounds promising but doesn't appear to do what I want. I edited the example above and tried each of the four mime types to see what would happen: Clipboard.Paste("text/plain;charset=UTF-8") Clipboard.Paste("text/plain;charset=ISO-10646-UCS-2") Clipboard.Paste("text/plain") Clipboard.Paste("application/x-qrichtext") The first two produces no printout while the last two produces the same printout as plain "Clipboard.Paste()" i.e. the printout: "?abc?". In the original post I indicated that special character "?" 'works' with Copy&Paste. Well, sort of. The UTF-8 code for "?" hex "C3 B6" gets transformed to dec 246. Which had me headscratching until I found that 246 is HTML code for "?". See http://personalwebs.oakland.edu/~grossman/ascii.codes.html here . So either 'clipboard.paste' or 'textedit.copy', transforms from UTF-8 to HTML code. >Maybe I will find some time to make a new rich text editor control based on a >Qt 4 widget for Gambas 3. Anyway, I don't see a lot of solutions for your >problem! I can always parse 'TextEdit.Text' and remove tags 'manually'. I'm fine with that. 'TextArea' control behaves the same. So whatever it is is common to TextEdit and TextArea. stderr -- View this message in context: http://www.nabble.com/TextEdit-copy-Paste-and-removal-of-hyper-tags-tp25666934p25751932.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Tue Oct 6 08:33:40 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 06 Oct 2009 16:33:40 +1000 Subject: [Gambas-user] NNTP Class Message-ID: <1254810820.3842.12.camel@...2304...> I have written a class that supports sending and retrieving articles to/from NNTP servers. I also have a small example GUI around it that uses the class to post usenet messages. The class, based on RFC 2980 and RFC 977, supports getting all groups, getting new groups, XOVER headers, posting, separate head and body retrieval to allow for filtering, plus articles can be retrieved by MessageID or ArticleID, and it handles authentication requests and server responses. Communication with the server is asynchronous and the class reports results back to the caller via events. Is there anyone I can send the code to with a view to having it included in future Gambas releases as an example project? Anyone interested? From dosida at ...626... Tue Oct 6 09:17:01 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 6 Oct 2009 01:17:01 -0600 Subject: [Gambas-user] NNTP Class In-Reply-To: <1254810820.3842.12.camel@...2304...> References: <1254810820.3842.12.camel@...2304...> Message-ID: <82bffccf0910060017m6aa6923co593cfb5a9f0d33fa@...627...> Hey Anonymous, you can open a sourceforge account and place your code in there (or host it wherever else you think it might be better), and then you can upload your program's URL and a screenshot and a simple description on the gambas wiki; more details are on the gambas main page if you click on the "Some Applications" link on the left side of http://gambas.sourceforge.net/en/main.html Regards, Dimitris On Tue, Oct 6, 2009 at 12:33 AM, nospam.nospam.nospam at ...626... < nospam.nospam.nospam at ...626...> wrote: > I have written a class that supports sending and retrieving articles > to/from NNTP servers. I also have a small example GUI around it that > uses the class to post usenet messages. > > The class, based on RFC 2980 and RFC 977, supports getting all groups, > getting new groups, XOVER headers, posting, separate head and body > retrieval to allow for filtering, plus articles can be retrieved by > MessageID or ArticleID, and it handles authentication requests and > server responses. > > Communication with the server is asynchronous and the class reports > results back to the caller via events. > > Is there anyone I can send the code to with a view to having it included > in future Gambas releases as an example project? Anyone interested? > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Tue Oct 6 12:32:10 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 06 Oct 2009 20:32:10 +1000 Subject: [Gambas-user] NNTP Class In-Reply-To: <82bffccf0910060017m6aa6923co593cfb5a9f0d33fa@...627...> References: <1254810820.3842.12.camel@...2304...> <82bffccf0910060017m6aa6923co593cfb5a9f0d33fa@...627...> Message-ID: <1254825130.3842.14.camel@...2304...> On Tue, 2009-10-06 at 01:17 -0600, Dimitris Anogiatis wrote: > Hey Anonymous, > > you can open a sourceforge account and place your code in there (or host it > wherever else you think it might be better), and then you can upload your > program's URL and a screenshot and a simple description on the gambas wiki; > > more details are on the gambas main page if you click on the "Some > Applications" link on the left side of > http://gambas.sourceforge.net/en/main.html Thanks. I found the gambas application repository at that link. I'll tidy up the comments and upload it there in a week or so. Your help was appreciated. > Regards, > Dimitris > > On Tue, Oct 6, 2009 at 12:33 AM, nospam.nospam.nospam at ...626... < > nospam.nospam.nospam at ...626...> wrote: > > > I have written a class that supports sending and retrieving articles > > to/from NNTP servers. I also have a small example GUI around it that > > uses the class to post usenet messages. > > > > The class, based on RFC 2980 and RFC 977, supports getting all groups, > > getting new groups, XOVER headers, posting, separate head and body > > retrieval to allow for filtering, plus articles can be retrieved by > > MessageID or ArticleID, and it handles authentication requests and > > server responses. > > > > Communication with the server is asynchronous and the class reports > > results back to the caller via events. > > > > Is there anyone I can send the code to with a view to having it included > > in future Gambas releases as an example project? Anyone interested? > > > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9-12, 2009. Register now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dosida at ...626... Tue Oct 6 12:45:55 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 6 Oct 2009 04:45:55 -0600 Subject: [Gambas-user] NNTP Class In-Reply-To: <1254825130.3842.14.camel@...2304...> References: <1254810820.3842.12.camel@...2304...> <82bffccf0910060017m6aa6923co593cfb5a9f0d33fa@...627...> <1254825130.3842.14.camel@...2304...> Message-ID: <82bffccf0910060345h745bae33w161606e769534c73@...627...> You're very welcome, Anonymous, I'm glad I helped Just throwing this in there, it would make it easy for everyone in the mailing list if you did happen to somehow identify yourself. Even if you used a nickname it would be easier for someone that attempts to help you with a gambas-related or even a linux-related problem, since posts come from many people, it helps the conversation. Just something to consider Regards, Dimitris On Tue, Oct 6, 2009 at 4:32 AM, nospam.nospam.nospam at ...626... < nospam.nospam.nospam at ...626...> wrote: > On Tue, 2009-10-06 at 01:17 -0600, Dimitris Anogiatis wrote: > > Hey Anonymous, > > > > you can open a sourceforge account and place your code in there (or host > it > > wherever else you think it might be better), and then you can upload your > > program's URL and a screenshot and a simple description on the gambas > wiki; > > > > more details are on the gambas main page if you click on the "Some > > Applications" link on the left side of > > http://gambas.sourceforge.net/en/main.html > > Thanks. I found the gambas application repository at that link. I'll > tidy up the comments and upload it there in a week or so. Your help was > appreciated. > > > Regards, > > Dimitris > > > > On Tue, Oct 6, 2009 at 12:33 AM, nospam.nospam.nospam at ...626... < > > nospam.nospam.nospam at ...626...> wrote: > > > > > I have written a class that supports sending and retrieving articles > > > to/from NNTP servers. I also have a small example GUI around it that > > > uses the class to post usenet messages. > > > > > > The class, based on RFC 2980 and RFC 977, supports getting all groups, > > > getting new groups, XOVER headers, posting, separate head and body > > > retrieval to allow for filtering, plus articles can be retrieved by > > > MessageID or ArticleID, and it handles authentication requests and > > > server responses. > > > > > > Communication with the server is asynchronous and the class reports > > > results back to the caller via events. > > > > > > Is there anyone I can send the code to with a view to having it > included > > > in future Gambas releases as an example project? Anyone interested? > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Come build with us! The BlackBerry® Developer Conference in SF, CA > > > is the only developer event you need to attend this year. Jumpstart > your > > > developing skills, take BlackBerry mobile applications to market and > stay > > > ahead of the curve. Join us from November 9-12, 2009. Register > now! > > > http://p.sf.net/sfu/devconf > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry® Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9-12, 2009. Register > now! > > http://p.sf.net/sfu/devconf > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From prog at ...2177... Tue Oct 6 16:23:21 2009 From: prog at ...2177... (craf) Date: Tue, 06 Oct 2009 10:23:21 -0400 Subject: [Gambas-user] ToolButton Message-ID: <1254839001.3606.0.camel@...651...> Hello. Is there any way to get a ToolButon text below the image.?, Because the text is automatically positioned to the right. Regards From math.eber at ...221... Tue Oct 6 21:58:46 2009 From: math.eber at ...221... (Matti) Date: Tue, 06 Oct 2009 21:58:46 +0200 Subject: [Gambas-user] Cursor question Message-ID: <4ACBA176.1070409@...221...> When I use Stock pictures like ToolButton1.Picture = Stock["16/zoom-in"] everything is fine. But when I try to define a cursor with PRIVATE $hCurZoomin AS Cursor $hCurZoomin = NEW Cursor(Stock["16/zoom-in"]) SomeControl.Mouse = -2 '(no matter if I use this or not) SomeControl.Cursor = $hCurZoomin I get a cursor that works, but displays only a white silhouette of the picture. What am I doing wrong? (Gambas 2.14) Thanks Matti From gambas at ...1... Tue Oct 6 22:05:16 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Oct 2009 22:05:16 +0200 Subject: [Gambas-user] Cursor question In-Reply-To: <4ACBA176.1070409@...221...> References: <4ACBA176.1070409@...221...> Message-ID: <200910062205.16921.gambas@...1...> > When I use Stock pictures like > ToolButton1.Picture = Stock["16/zoom-in"] > everything is fine. > > But when I try to define a cursor with > PRIVATE $hCurZoomin AS Cursor > $hCurZoomin = NEW Cursor(Stock["16/zoom-in"]) > SomeControl.Mouse = -2 '(no matter if I use this or not) > SomeControl.Cursor = $hCurZoomin > I get a cursor that works, but displays only a white silhouette of the > picture. > > What am I doing wrong? > (Gambas 2.14) > Thanks Matti > gb.qt or gb.gtk (don't remember which one) does not support color cursors. Regards, -- Beno?t Minisini From gambas at ...1... Tue Oct 6 22:06:03 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 6 Oct 2009 22:06:03 +0200 Subject: [Gambas-user] QT themes and program appearance In-Reply-To: <200910051407.49987.rterry@...1946...> References: <200910051407.49987.rterry@...1946...> Message-ID: <200910062206.03232.gambas@...1...> > I wonder if any one could be kind enough to explain to me how to change the > icon themes that show up in ones program. > > I though it was via qtconfig but that dosn't seem to make any difference in > my instance for some reason. > > Regards > > richard > Absolutely not: icons are totally managed by Gambas, according to the Application.Theme property. Regards, -- Beno?t Minisini From math.eber at ...221... Tue Oct 6 23:18:14 2009 From: math.eber at ...221... (Matti) Date: Tue, 06 Oct 2009 23:18:14 +0200 Subject: [Gambas-user] Cursor question In-Reply-To: <200910062205.16921.gambas@...1...> References: <4ACBA176.1070409@...221...> <200910062205.16921.gambas@...1...> Message-ID: <4ACBB416.80000@...221...> Thanks. Will use a standard Mouse. Beno?t Minisini schrieb: >> When I use Stock pictures like >> ToolButton1.Picture = Stock["16/zoom-in"] >> everything is fine. >> >> But when I try to define a cursor with >> PRIVATE $hCurZoomin AS Cursor >> $hCurZoomin = NEW Cursor(Stock["16/zoom-in"]) >> SomeControl.Mouse = -2 '(no matter if I use this or not) >> SomeControl.Cursor = $hCurZoomin >> I get a cursor that works, but displays only a white silhouette of the >> picture. >> >> What am I doing wrong? >> (Gambas 2.14) >> Thanks Matti >> > > gb.qt or gb.gtk (don't remember which one) does not support color cursors. > > Regards, > From prog at ...2177... Tue Oct 6 23:26:25 2009 From: prog at ...2177... (craf) Date: Tue, 06 Oct 2009 17:26:25 -0400 Subject: [Gambas-user] [Fwd: ToolButton] Message-ID: <1254864385.3599.0.camel@...651...> Hello. Is there any way to get a ToolButon text below the image.?, Because the text is automatically positioned to the right. Regards From rterry at ...1946... Wed Oct 7 07:26:31 2009 From: rterry at ...1946... (richard terry) Date: Wed, 7 Oct 2009 16:26:31 +1100 Subject: [Gambas-user] icons on replace/find bar in the data section missing Message-ID: <200910071626.31790.rterry@...1946...> 2387 Just noticed that for text files in non class/mod/form files, that the find/replace dosn't have the option of to replace in all files/just this file etc. Any reason?? Regards Richard From gambas.fr at ...626... Wed Oct 7 12:38:11 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 7 Oct 2009 12:38:11 +0200 Subject: [Gambas-user] Socket not working in 2.8 In-Reply-To: <1254700045.25326.1.camel@...2304...> References: <1254654474.7635.10.camel@...2304...> <4AC8A050.3070508@...1000...> <1254664623.7635.25.camel@...2304...> <200910041611.06014.gambas@...1...> <1254666254.7635.27.camel@...2304...> <4AC8B182.6070406@...1740...> <1254700045.25326.1.camel@...2304...> Message-ID: <6324a42a0910070338j8c74a85ne513ab01848ee837@...627...> yes read about handle !... and NEW keyword :/... this is the basis in Gambas in Object management. (and in oo language) With the desing mode the handle is automatically created from the control name. 2009/10/5 nospam.nospam.nospam at ...626... : > On Sun, 2009-10-04 at 16:30 +0200, Ron wrote: >> nospam.nospam.nospam at ...626... wrote: >> > On Sun, 2009-10-04 at 16:11 +0200, Beno?t Minisini wrote: >> > >> > >> >>> I upgraded to 2.16 and still have the problem. MySock_Read doesn't fire. >> >>> There is an NNTP server on 192.168.1.8:5000 that sends back a greeting >> >>> when the connection is made by the client. The server logs also indicate >> >>> that no connection was made. >> >>> >> >>> PRIVATE MySock AS Socket >> >>> >> >>> PUBLIC SUB Form_Open() >> >>> ? MySock = NEW Socket >> >>> >> >> You must write: >> >> >> >> ? ?MySock = NEW Socket AS "MySock" >> >> >> > >> > HA! You're a genius. That fixed it. Thank you. >> > >> > >> > >> LOL thats what I wrote a few msg back... > > Yes, you did. > >> ?reading is so difficult. > > Oh, no. I read it. I chose not to thank you ever again after what you > wrote the first time. > > HAND > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Oct 7 15:27:09 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 7 Oct 2009 16:27:09 +0300 Subject: [Gambas-user] Stack backtrace window In-Reply-To: <384d3900909291154r2bbfc5adu5695e2cbd6ba555f@...627...> References: <384d3900909291154r2bbfc5adu5695e2cbd6ba555f@...627...> Message-ID: <384d3900910070627o51d96e84ye327e011ce4e6f7c@...627...> OK, now I feel dumb. I find it. But, I think that window should have menu entry, "Show stack backtrace window" etc. Now it is so sneaky, that I'm sure that there is someone who doesn't know that such window even exist! Just for sure, I attached screenshot about how it appears on my system. pic1.png is taken from situation that I couldn't notice that window. Jussi On Tue, Sep 29, 2009 at 21:54, Jussi Lahtinen wrote: > Hi! > Where the stack backtrace window disappear? > Talking about Gambas 3, revision 2364. > @Ubuntu 9.04 64bit > > Jussi > -------------- next part -------------- A non-text attachment was scrubbed... Name: pic1.png Type: image/png Size: 5590 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pic2.png Type: image/png Size: 7535 bytes Desc: not available URL: From rterry at ...1946... Wed Oct 7 14:11:50 2009 From: rterry at ...1946... (richard terry) Date: Wed, 7 Oct 2009 23:11:50 +1100 Subject: [Gambas-user] dialog.path simple question. Message-ID: <200910072311.50513.rterry@...1946...> Hi all, If one has Dialog.Path ie a returned file name, is there a gambas command to chop off the filename itself, or does one just have to parse the string. thanks in anticipation richard From rospolosco at ...152... Wed Oct 7 18:13:18 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Wed, 7 Oct 2009 18:13:18 +0200 Subject: [Gambas-user] dialog.path simple question. In-Reply-To: <200910072311.50513.rterry@...1946...> References: <200910072311.50513.rterry@...1946...> Message-ID: <200910071813.19213.rospolosco@...152...> Il mercoled? 7 ottobre 2009 14:11:50 richard terry ha scritto: > Hi all, > > If one has > > Dialog.Path > > ie a returned file name, is there a gambas command to chop off the filename > itself, or does one just have to parse the string. > > thanks in anticipation > > richard > File.BaseName(Dialog.Path) Stefano > --------------------------------------------------------------------------- >--- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is > the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From dosida at ...626... Wed Oct 7 18:48:45 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 7 Oct 2009 10:48:45 -0600 Subject: [Gambas-user] stop file COPY In-Reply-To: <4AC0B5E0.9060501@...395...> References: <82bffccf0909280143i22dd9825x5ae294e6b97c7f99@...627...> <200909281435.01692.gambas@...1...> <4AC0B5E0.9060501@...395...> Message-ID: <82bffccf0910070948n7bd66e8foe91257326bb89ee@...627...> Beno?t, If I called COPY from a form and closed that form while the COPY command was still copying a large file would that stop the action? or would the command still copy the file in the background? Regards, Dimtiris On Mon, Sep 28, 2009 at 7:10 AM, zerkowski sur bouquiniste.biz < zerkowski at ...395...> wrote: > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Wed Oct 7 19:00:48 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 7 Oct 2009 19:00:48 +0200 Subject: [Gambas-user] QT themes and program appearance In-Reply-To: <200910062206.03232.gambas@...1...> References: <200910051407.49987.rterry@...1946...> <200910062206.03232.gambas@...1...> Message-ID: Application.Theme?? I think it isn't documented yet at gambas's help.... I wonder how it works? 2009/10/6 Beno?t Minisini > > I wonder if any one could be kind enough to explain to me how to change > the > > icon themes that show up in ones program. > > > > I though it was via qtconfig but that dosn't seem to make any difference > in > > my instance for some reason. > > > > Regards > > > > richard > > > > Absolutely not: icons are totally managed by Gambas, according to the > Application.Theme property. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Oct 7 19:36:07 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 7 Oct 2009 19:36:07 +0200 Subject: [Gambas-user] QT themes and program appearance In-Reply-To: References: <200910051407.49987.rterry@...1946...> <200910062206.03232.gambas@...1...> Message-ID: <6324a42a0910071036p768634a3t6b7cb8cec884fa80@...627...> In fact it is :-) http://gambasdoc.org/help/comp/gb.qt/application/theme Print Application.Theme 2009/10/7 Ricardo D?az Mart?n : > Application.Theme?? > > I think it isn't documented yet at gambas's help.... > > I wonder how it works? > > > > 2009/10/6 Beno?t Minisini > >> > I wonder if any one could be kind enough to explain to me how to change >> the >> > icon themes that show up in ones program. >> > >> > I though it was via qtconfig but that dosn't seem to make any difference >> in >> > ?my instance for some reason. >> > >> > Regards >> > >> > richard >> > >> >> Absolutely not: icons are totally managed by Gambas, according to the >> Application.Theme property. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Oct 7 19:37:41 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 7 Oct 2009 19:37:41 +0200 Subject: [Gambas-user] dialog.path simple question. In-Reply-To: <200910071813.19213.rospolosco@...152...> References: <200910072311.50513.rterry@...1946...> <200910071813.19213.rospolosco@...152...> Message-ID: <6324a42a0910071037o69e5226cr65cd23fc11b45bc3@...627...> http://gambasdoc.org/help/comp/gb/file?v3 And more.... 2009/10/7 Stefano Palmeri : > Il mercoled? 7 ottobre 2009 14:11:50 richard terry ha scritto: >> Hi all, >> >> If one has >> >> ?Dialog.Path >> >> ie a returned file name, is there a gambas command to chop off the filename >> itself, or does one just have to parse the string. >> >> thanks in anticipation >> >> richard >> > > File.BaseName(Dialog.Path) > > Stefano > > > > >> --------------------------------------------------------------------------- >>--- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is >> the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Wed Oct 7 22:26:44 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 7 Oct 2009 15:26:44 -0500 Subject: [Gambas-user] equivalent to python dictionaries in gambas2? Message-ID: <1f1e8c1b0910071326je51964eld783e129eec8fead@...627...> Hi guys, I'm trying to figure out if there is a way to do this in gambas. In python, you can have a dictionary object (declared like "list = [key1:value1,key2:value2,key3:value3]") As you can see, it's like a string[] where each object is a key=value pair. I'm wondering if there is a way to emulate something like this in gambas2 The idea is to have maybe a list like option1=window1 option2=window2 option3=window3 Then in my app, the key value of each component would be a button and the value would be a window name which is to be opened when the user clicks the respective button Can someone think of a possible solution? From dosida at ...626... Wed Oct 7 22:52:01 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 7 Oct 2009 14:52:01 -0600 Subject: [Gambas-user] equivalent to python dictionaries in gambas2? In-Reply-To: <1f1e8c1b0910071326je51964eld783e129eec8fead@...627...> References: <1f1e8c1b0910071326je51964eld783e129eec8fead@...627...> Message-ID: <82bffccf0910071352u511d4a1bnc4d466dec6e3c8e1@...627...> Hey Moe, You could use a Collection to achieve what you just described to us. Take a look at the link below for more details http://www.gambasdoc.org/help/comp/gb/collection Regards, Dimitris On Wed, Oct 7, 2009 at 2:26 PM, M0E Lnx wrote: > Hi guys, I'm trying to figure out if there is a way to do this in gambas. > > In python, you can have a dictionary object (declared like "list = > [key1:value1,key2:value2,key3:value3]") > As you can see, it's like a string[] where each object is a key=value pair. > > I'm wondering if there is a way to emulate something like this in gambas2 > > > > The idea is to have maybe a list like > option1=window1 > option2=window2 > option3=window3 > > Then in my app, the key value of each component would be a button and > the value would be a window name which is to be opened when the user > clicks the respective button > > Can someone think of a possible solution? > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Wed Oct 7 22:59:24 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Wed, 7 Oct 2009 15:59:24 -0500 Subject: [Gambas-user] equivalent to python dictionaries in gambas2? In-Reply-To: <82bffccf0910071352u511d4a1bnc4d466dec6e3c8e1@...627...> References: <1f1e8c1b0910071326je51964eld783e129eec8fead@...627...> <82bffccf0910071352u511d4a1bnc4d466dec6e3c8e1@...627...> Message-ID: <1f1e8c1b0910071359k1b8e7554m3868f86a1fd3e01f@...627...> Will try the collection and see how it goes. I was thinking maybe a multi-dimensional array I know how to use arrays, but not multi-dimensional. From gambas at ...1... Wed Oct 7 23:30:33 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Oct 2009 23:30:33 +0200 Subject: [Gambas-user] stop file COPY In-Reply-To: <82bffccf0910070948n7bd66e8foe91257326bb89ee@...627...> References: <82bffccf0909280143i22dd9825x5ae294e6b97c7f99@...627...> <4AC0B5E0.9060501@...395...> <82bffccf0910070948n7bd66e8foe91257326bb89ee@...627...> Message-ID: <200910072330.33070.gambas@...1...> > Beno?t, > > If I called COPY from a form and closed that form while the COPY command > was still copying a large file would that stop the action? > or would the command still copy the file in the background? > > Regards, > Dimtiris > There is no background process or threads in Gambas, unless explicitely mentioned in some specific class, like the DNS resolver. So during the COPY command, nothing else is done by the interpreter. Regards, -- Beno?t Minisini From gambas at ...1... Wed Oct 7 23:44:35 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 7 Oct 2009 23:44:35 +0200 Subject: [Gambas-user] found some problems in gabmas2 In-Reply-To: <1254731702.6473.24.camel@...40...> References: <1254731702.6473.24.camel@...40...> Message-ID: <200910072344.35681.gambas@...1...> > Salut, > > The first is easy to reproduce: > > - working with gambas-DBmanager if you navigate by keys to an empty > field, which is not to fill ('length' behind 'Float') the app crash. > Same if you press in such a field any key. I got the crash with gb.gtk. I will fix it in the next commit. > > Second : in the IDE > Some times my apps don't start (the form don't raise) after pressing F5. > [Stop] in toolbar is active. Happens after several starts by F5. Can you send me a project that allows me to reproduce the bug? > > Third : Is more a question > in printer.Setup() if I opt for 'Print range' and make 'From page' = 1 > and 'To page' = 1, ( there are 2 pages) who controls that ? > If that should be done by gambas2, it don't work. You have to read the values from the Printer class, and print the pages according to them. Regards, -- Beno?t Minisini From rterry at ...1946... Thu Oct 8 04:55:49 2009 From: rterry at ...1946... (richard terry) Date: Thu, 8 Oct 2009 13:55:49 +1100 Subject: [Gambas-user] bash question Message-ID: <200910081355.49374.rterry@...1946...> to any scripters amongst us. is there any simple bash command to remove the first line in a file and leave the rest?, short of reading all the lines and re-writing the file? Thanks in anticipation. Richard From doriano.blengino at ...1909... Thu Oct 8 09:15:20 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 08 Oct 2009 09:15:20 +0200 Subject: [Gambas-user] bash question In-Reply-To: <200910081355.49374.rterry@...1946...> References: <200910081355.49374.rterry@...1946...> Message-ID: <4ACD9188.9010304@...1909...> richard terry ha scritto: > to any scripters amongst us. > > is there any simple bash command to remove the first line in a file and leave > the rest?, short of reading all the lines and re-writing the file? > tail -n+2 your_file_name will output to standard output the file indicated, starting from the second line (ie, omitting the first one). It is important the plus sign, otherwise you will get the 'n' (n=2 in this example) last lines instead. You can redirect the standard output somewhere else (another file). You can not redirect to the same file, so you need two stages with a temporary file to hold the result: tail -n+2 your_file_name > /tmp/temporary_file; mv /tmp/temporary_file your_file_name In the previous double command the file /tmp/xxx is chosen arbitrarily, but probably it suffices; otherwise take a look at mktemp(1); it can be used like this: tmp=$(mktemp); tail -n+2 your_file_name > $tmp; mv $tmp your_file_name The above line is formed by three commands, and can be passed to a SHELL in gambas. Btw, also "sed" and "awk" instead of "tail" can do this, and even much more, but they are heavier. Regards, Doriano From math.eber at ...221... Thu Oct 8 20:59:18 2009 From: math.eber at ...221... (Matti) Date: Thu, 08 Oct 2009 20:59:18 +0200 Subject: [Gambas-user] Trash Message-ID: <4ACE3686.1060907@...221...> Is there any way to move files and directories to the user's trash bin? KILL and RMDIR really delete, but I'd rather use trash. Tried everything like MOVE TO "system:/trash" or ".local.share.Trash" or "trash.desktop", but all I get is the message "Access forbidden". That's on a SuSe 11 system. Thanks Matti From gambas at ...1... Thu Oct 8 21:05:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 8 Oct 2009 21:05:49 +0200 Subject: [Gambas-user] icons on replace/find bar in the data section missing In-Reply-To: <200910071626.31790.rterry@...1946...> References: <200910071626.31790.rterry@...1946...> Message-ID: <200910082105.49838.gambas@...1...> > 2387 > > Just noticed that for text files in non class/mod/form files, that the > find/replace dosn't have the option of to replace in all files/just this > file etc. > > Any reason?? > > Regards > > Richard > No real good reason, just a lacking feature. -- Beno?t Minisini From vkan53 at ...2300... Thu Oct 8 21:50:04 2009 From: vkan53 at ...2300... (Vassilis K) Date: Thu, 8 Oct 2009 22:50:04 +0300 Subject: [Gambas-user] invalid object error on variable of database queries Message-ID: <200910082250.04709.vkan53@...2300...> Hello again, I have a strange little problem with my database (Mysql) queries. I make many queries and updates together with the click of a button. When I make the queries and updates without using any of the results then everything works fine !! When I want to use a part of the results I get the invalid object error and all of the results turn to red ( do not work). AT the example below I get the error message "invalid object" at the PRINT #hPrinter line and the problem is on the rsAPOD!arithmosAp result which is LongInteger (at the end of the PRINT line). here is the code: PUBLIC SUB Kataxwrisi_Click() DIM hPrinter AS File DIM $Result5 AS Result DIM $ResultAPOD AS Result DIM rsAPOD AS Result DIM rsGRAMMI AS Result DIM $ResultE5 AS Result DIM TrexousaGrammi AS Long DIM proigoumenos AS Long MODMain.Connect MODMain.$Con.Begin() $Result5 = MODMain.$Con.Create("BiblioPortas") $Result5!trexousaHmerominia = Date(Now) $Result5!Poson = Val(TextBox2.Text) $Result5.Update() MODMain.$Con.Commit() MODMain.Connect() rsAPOD = MODMain.$Con.exec("select * from AApodixi order by arithmosAp desc") MODMain.$Con.Close MODMain.Connect MODMain.$Con.Begin() $ResultE5 = MODMain.$Con.Create("Ektyposis") $ResultE5.Update() MODMain.$Con.Commit() MODMain.Connect() rsGRAMMI = MODMain.$Con.exec("select * from Ektyposis order by Grammi desc") TrexousaGrammi = rsGRAMMI!Grammi MODMain.$Con.Close hPrinter = OPEN "/dev/lp1" FOR OUTPUT hPrinter.EndOfLine = gb.Windows PRINT #hPrinter, "Anaxorisi" & " " & Format$(Date(Now), "dd.mm.yyyy") & " A/A " & tArithmos.Text & " " & tEpitheto.Text & " " & tOnoma.Text & " " & tEthnikotita.Text & " " & "Poson " & TextBox2.Text & " Ar.Apodixis " & rsAPOD!arithmosAp IF TrexousaGrammi MOD 55 = 0 THEN PRINT #hPrinter, Chr$(12); PRINT #hPrinter, " " PRINT #hPrinter, " " PRINT #hPrinter, " " PRINT #hPrinter, " " ENDIF CLOSE hPrinter MODMain.Connect MODMain.$Con.Begin() 'MODMain.$Con.exec("UPDATE `pelates`.`egrafes` SET `anaxwrisi` = '" & Date(Now) & "' WHERE `egrafes`.`AA` = '" & tArithmos.Text & "' LIMIT 1 ") MODMain.$Con.exec("UPDATE `pelates`.`egrafes` SET `egrafes`.`epitheto` = '" & tEpitheto.Text & "',........................................etc...................................', `egrafes`.`timifix` = '" & CFloat(ttimifix.Text) & "' WHERE `egrafes`.`AA` = '" & tArithmos.Text & "' LIMIT 1 ") MODMain.$Con.exec("UPDATE `pelates`.`egrafes` SET `egrafes`.`ekptosi` = '" & tekptosi.Text & "', `egrafes`.`elenchosAnax` = 1, `egrafes`.`xreosi` =0, `egrafes`.`prokatavoli` = '" & CFloat(tprokatavoli.Text) & "' WHERE `egrafes`.`AA` = '" & tArithmos.Text & "' LIMIT 1 ") MODMain.$Con.Close MODMain.Connect MODMain.$Con.Begin() $ResultAPOD = MODMain.$Con.Create("AApodixi") $ResultAPOD!Hmerominia = Date(Now) $ResultAPOD!arithmosAp = rsAPOD!arithmosAp + 1 $ResultAPOD.Update() MODMain.$Con.Commit() ME.Close END From oceanosoftlapalma at ...626... Thu Oct 8 22:09:20 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 8 Oct 2009 22:09:20 +0200 Subject: [Gambas-user] Trash In-Reply-To: <4ACE3686.1060907@...221...> References: <4ACE3686.1060907@...221...> Message-ID: I tryed in ubuntu linux you can do EXEC ["mv", "pathandfiletoremove", "/home/username/.local/share/Trash"] and the file is moved to username trash Regards 2009/10/8 Matti > Is there any way to move files and directories to the user's trash bin? > > KILL and RMDIR really delete, but I'd rather use trash. > > Tried everything like MOVE TO "system:/trash" or ".local.share.Trash" > or "trash.desktop", but all I get is the message > "Access forbidden". That's on a SuSe 11 system. > > Thanks > Matti > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Thu Oct 8 22:36:12 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 8 Oct 2009 14:36:12 -0600 Subject: [Gambas-user] invalid object error on variable of database queries In-Reply-To: <200910082250.04709.vkan53@...2300...> References: <200910082250.04709.vkan53@...2300...> Message-ID: <82bffccf0910081336xdee8e45y3a44f7c4e32e8395@...627...> Vasilis, if I'm reading your code correctly you're closing the result set before you use rsAPOD!arithmosAp you could assign the value of rsAPOD!arithmosAp in a variable and use that in the print statement or move MODMain.$Con.Close below the CLOSE hPrinter line. that way the resultset can close properly. I hope this helps Regards, Dimitris On Thu, Oct 8, 2009 at 1:50 PM, Vassilis K wrote: > Hello again, > > I have a strange little problem with my database (Mysql) queries. > I make many queries and updates together with the click of a button. > > When I make the queries and updates without using any of the results then > everything works fine !! > When I want to use a part of the results I get the invalid object error and > all of the results turn to red ( do not work). > > AT the example below I get the error message "invalid object" at the PRINT > #hPrinter line and the problem is on the rsAPOD!arithmosAp result which is > LongInteger (at the end of the PRINT line). > > here is the code: > > PUBLIC SUB Kataxwrisi_Click() > DIM hPrinter AS File > DIM $Result5 AS Result > DIM $ResultAPOD AS Result > DIM rsAPOD AS Result > DIM rsGRAMMI AS Result > DIM $ResultE5 AS Result > DIM TrexousaGrammi AS Long > DIM proigoumenos AS Long > > MODMain.Connect > MODMain.$Con.Begin() > $Result5 = MODMain.$Con.Create("BiblioPortas") > $Result5!trexousaHmerominia = Date(Now) > $Result5!Poson = Val(TextBox2.Text) > $Result5.Update() > MODMain.$Con.Commit() > > > > MODMain.Connect() > rsAPOD = MODMain.$Con.exec("select * from AApodixi order by > arithmosAp desc") > MODMain.$Con.Close > > > MODMain.Connect > MODMain.$Con.Begin() > $ResultE5 = MODMain.$Con.Create("Ektyposis") > $ResultE5.Update() > MODMain.$Con.Commit() > > MODMain.Connect() > rsGRAMMI = MODMain.$Con.exec("select * from Ektyposis order by > Grammi desc") > TrexousaGrammi = rsGRAMMI!Grammi > MODMain.$Con.Close > > hPrinter = OPEN "/dev/lp1" FOR OUTPUT > hPrinter.EndOfLine = gb.Windows > > PRINT #hPrinter, "Anaxorisi" & " " & Format$(Date(Now), "dd.mm.yyyy") & " > A/A " & tArithmos.Text & " " & tEpitheto.Text & " " & tOnoma.Text & " " & > tEthnikotita.Text & " " & "Poson " & TextBox2.Text & " Ar.Apodixis " & > rsAPOD!arithmosAp > > IF TrexousaGrammi MOD 55 = 0 THEN > PRINT #hPrinter, Chr$(12); > PRINT #hPrinter, " " > PRINT #hPrinter, " " > PRINT #hPrinter, " " > PRINT #hPrinter, " " > ENDIF > CLOSE hPrinter > > > MODMain.Connect > MODMain.$Con.Begin() > 'MODMain.$Con.exec("UPDATE `pelates`.`egrafes` SET > `anaxwrisi` = '" & Date(Now) & "' WHERE `egrafes`.`AA` = '" & > tArithmos.Text & > "' LIMIT 1 ") > MODMain.$Con.exec("UPDATE `pelates`.`egrafes` SET > `egrafes`.`epitheto` = '" & tEpitheto.Text & > > "',........................................etc...................................', > `egrafes`.`timifix` = '" & CFloat(ttimifix.Text) & "' WHERE `egrafes`.`AA` > = > '" & tArithmos.Text & "' LIMIT 1 ") > MODMain.$Con.exec("UPDATE `pelates`.`egrafes` SET > `egrafes`.`ekptosi` = '" & tekptosi.Text & "', `egrafes`.`elenchosAnax` = > 1, > `egrafes`.`xreosi` =0, `egrafes`.`prokatavoli` = '" & > CFloat(tprokatavoli.Text) & "' WHERE `egrafes`.`AA` = '" & tArithmos.Text & > "' > LIMIT 1 ") > MODMain.$Con.Close > > MODMain.Connect > MODMain.$Con.Begin() > $ResultAPOD = MODMain.$Con.Create("AApodixi") > $ResultAPOD!Hmerominia = Date(Now) > $ResultAPOD!arithmosAp = rsAPOD!arithmosAp + 1 > $ResultAPOD.Update() > MODMain.$Con.Commit() > > ME.Close > END > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Thu Oct 8 22:58:56 2009 From: math.eber at ...221... (Matti) Date: Thu, 08 Oct 2009 22:58:56 +0200 Subject: [Gambas-user] Trash In-Reply-To: References: <4ACE3686.1060907@...221...> Message-ID: <4ACE5290.7030607@...221...> Thank you, that works. Just 1 question; This way, the deleted files/directories are not shown if the user clicks on his trash icon. How to manage that? Ricardo D?az Mart?n schrieb: > I tryed in ubuntu linux you can do EXEC ["mv", "pathandfiletoremove", > "/home/username/.local/share/Trash"] and the file is moved to username trash > > Regards > > 2009/10/8 Matti > >> Is there any way to move files and directories to the user's trash bin? >> >> KILL and RMDIR really delete, but I'd rather use trash. >> >> Tried everything like MOVE TO "system:/trash" or ".local.share.Trash" >> or "trash.desktop", but all I get is the message >> "Access forbidden". That's on a SuSe 11 system. >> >> Thanks >> Matti >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Thu Oct 8 23:10:03 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 8 Oct 2009 15:10:03 -0600 Subject: [Gambas-user] Trash In-Reply-To: <4ACE5290.7030607@...221...> References: <4ACE3686.1060907@...221...> <4ACE5290.7030607@...221...> Message-ID: <82bffccf0910081410i612a24ddx4a2e319d5038f14c@...627...> hey Matti, Ricardo was correct, almost :) the correct path is to move the files to is /home/username/.local/share/Trash/files I hope this helps Regards, Dimitris On Thu, Oct 8, 2009 at 2:58 PM, Matti wrote: > Thank you, that works. > > Just 1 question; This way, the deleted files/directories are not shown if > the user > clicks on his trash icon. How to manage that? > > > Ricardo D?az Mart?n schrieb: > > I tryed in ubuntu linux you can do EXEC ["mv", "pathandfiletoremove", > > "/home/username/.local/share/Trash"] and the file is moved to username > trash > > > > Regards > > > > 2009/10/8 Matti > > > >> Is there any way to move files and directories to the user's trash bin? > >> > >> KILL and RMDIR really delete, but I'd rather use trash. > >> > >> Tried everything like MOVE TO "system:/trash" or > ".local.share.Trash" > >> or "trash.desktop", but all I get is the message > >> "Access forbidden". That's on a SuSe 11 system. > >> > >> Thanks > >> Matti > >> > >> > >> > ------------------------------------------------------------------------------ > >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA > >> is the only developer event you need to attend this year. Jumpstart your > >> developing skills, take BlackBerry mobile applications to market and > stay > >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! > >> http://p.sf.net/sfu/devconference > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vkan53 at ...2300... Thu Oct 8 23:12:43 2009 From: vkan53 at ...2300... (Vassilis K) Date: Fri, 9 Oct 2009 00:12:43 +0300 Subject: [Gambas-user] invalid object error on variable of database queries Message-ID: <200910090012.44007.vkan53@...2300...> Thank you Dimitri That was it !!! I made so many efforts today to find out what was wrong. But most of the times the solution is in front of our eyes and we cannot see it !!! From dosida at ...626... Thu Oct 8 23:16:32 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 8 Oct 2009 15:16:32 -0600 Subject: [Gambas-user] invalid object error on variable of database queries In-Reply-To: <200910090012.44007.vkan53@...2300...> References: <200910090012.44007.vkan53@...2300...> Message-ID: <82bffccf0910081416w49cc7be1id9c4ebf4e46f8356@...627...> Vasilli, You're welcome I am glad I could help :) Keep up the good work :) Regards, Dimitris On Thu, Oct 8, 2009 at 3:12 PM, Vassilis K wrote: > Thank you Dimitri > > That was it !!! > > I made so many efforts today to find out what was wrong. > But most of the times the solution is in front of our eyes and we cannot > see > it !!! > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Fri Oct 9 08:05:50 2009 From: math.eber at ...221... (Matti) Date: Fri, 09 Oct 2009 08:05:50 +0200 Subject: [Gambas-user] Trash In-Reply-To: <82bffccf0910081410i612a24ddx4a2e319d5038f14c@...627...> References: <4ACE3686.1060907@...221...> <4ACE5290.7030607@...221...> <82bffccf0910081410i612a24ddx4a2e319d5038f14c@...627...> Message-ID: <4ACED2BE.6020109@...221...> Hi Dimitris, that's better, but not all. I looked at what the system does when I throw something away. In /home/username/.local/share/Trash/info there is a file "(Filename).trashinfo". This is a text file with [Trash Info] Path=/home/username/Test/img_3555.jpg DeletionDate=2009-10-09T07:47:45 So, to let the user see what was deleted and to give the possibility to undo the deletion, it would be necessary to generate a text file with these informations. Regards, Matti Dimitris Anogiatis schrieb: > hey Matti, > > Ricardo was correct, almost :) > the correct path is to move the files to is > /home/username/.local/share/Trash/files > > I hope this helps > > Regards, > Dimitris > > On Thu, Oct 8, 2009 at 2:58 PM, Matti wrote: > >> Thank you, that works. >> >> Just 1 question; This way, the deleted files/directories are not shown if >> the user >> clicks on his trash icon. How to manage that? >> >> >> Ricardo D?az Mart?n schrieb: >>> I tryed in ubuntu linux you can do EXEC ["mv", "pathandfiletoremove", >>> "/home/username/.local/share/Trash"] and the file is moved to username >> trash >>> Regards >>> >>> 2009/10/8 Matti >>> >>>> Is there any way to move files and directories to the user's trash bin? >>>> >>>> KILL and RMDIR really delete, but I'd rather use trash. >>>> >>>> Tried everything like MOVE TO "system:/trash" or >> ".local.share.Trash" >>>> or "trash.desktop", but all I get is the message >>>> "Access forbidden". That's on a SuSe 11 system. >>>> >>>> Thanks >>>> Matti >>>> >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>>> is the only developer event you need to attend this year. Jumpstart your >>>> developing skills, take BlackBerry mobile applications to market and >> stay >>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>>> http://p.sf.net/sfu/devconference >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Fri Oct 9 08:44:25 2009 From: mohareve at ...626... (M. Cs.) Date: Fri, 9 Oct 2009 08:44:25 +0200 Subject: [Gambas-user] Right-click menu Message-ID: Is it possible to assign a pop-up menu to an object? I mean I have a gridview and I would like to have a right-click menu with few options like select all, delete selected etc. It would be activated when the mouse's pointer is above the gridview and the right mouse button would be clicked. A similar possibility exist in Delphi. I'm on Gambas 2.13. Thanks! From dosida at ...626... Fri Oct 9 09:03:49 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 9 Oct 2009 01:03:49 -0600 Subject: [Gambas-user] Right-click menu In-Reply-To: References: Message-ID: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> M Cs, try this: create a Menu with name mnuGrid and make it hidden then add this to the gridview's mousedown event PUBLIC SUB gridview1_MouseDown() IF gridview1.Rows.Count > 0 AND gvBackup.Column = 1 SELECT Mouse.Right CASE TRUE mnuGrid.popup() CASE ELSE END SELECT ENDIF END This will popup your menu if you right click on the second column of any row (besides the header) of the gridview. I hope it helps Regards, Dimitris On Fri, Oct 9, 2009 at 12:44 AM, M. Cs. wrote: > Is it possible to assign a pop-up menu to an object? > I mean I have a gridview and I would like to have a right-click menu with > few options like select all, delete selected etc. > It would be activated when the mouse's pointer is above the gridview and > the > right mouse button would be clicked. A similar possibility exist in Delphi. > I'm on Gambas 2.13. > Thanks! > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Fri Oct 9 09:04:25 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 9 Oct 2009 01:04:25 -0600 Subject: [Gambas-user] Right-click menu In-Reply-To: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> References: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> Message-ID: <82bffccf0910090004t662a4e69nf8b0c135ca6d1c7f@...627...> oops... sorry gvbackup should be gridview1 Regards Dimitris On Fri, Oct 9, 2009 at 1:03 AM, Dimitris Anogiatis wrote: > M Cs, > > try this: > create a Menu with name mnuGrid and make it hidden > then add this to the gridview's mousedown event > > PUBLIC SUB gridview1_MouseDown() > > IF gridview1.Rows.Count > 0 AND gvBackup.Column = 1 > SELECT Mouse.Right > CASE TRUE > mnuGrid.popup() > CASE ELSE > END SELECT > ENDIF > > END > > This will popup your menu if you right click on the second column of any > row (besides the header) of the gridview. > > I hope it helps > > Regards, > Dimitris > > > > On Fri, Oct 9, 2009 at 12:44 AM, M. Cs. wrote: > >> Is it possible to assign a pop-up menu to an object? >> I mean I have a gridview and I would like to have a right-click menu with >> few options like select all, delete selected etc. >> It would be activated when the mouse's pointer is above the gridview and >> the >> right mouse button would be clicked. A similar possibility exist in >> Delphi. >> I'm on Gambas 2.13. >> Thanks! >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From steven at ...2097... Fri Oct 9 11:30:46 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 09 Oct 2009 17:30:46 +0800 Subject: [Gambas-user] Right-click menu In-Reply-To: References: Message-ID: <1255080647.3438.8.camel@...2273...> 1st you would need to create a hidden menu using the menu editor Then you would use the 'menu' event of the control (right click the control select 'event' then menu) to popup the menu. mnuname.popup() 'where mnuname is the menu item name. For when it gets activated you would have to do some coding with the mouse (Mouse.X etc) IE check where the mouse is and if it where it should be then show the menu. I hope that helps Steven On Fri, 2009-10-09 at 08:44 +0200, M. Cs. wrote: > Is it possible to assign a pop-up menu to an object? > I mean I have a gridview and I would like to have a right-click menu with > few options like select all, delete selected etc. > It would be activated when the mouse's pointer is above the gridview and the > right mouse button would be clicked. A similar possibility exist in Delphi. > I'm on Gambas 2.13. > Thanks! > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > 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: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From bill-lancaster at ...2231... Fri Oct 9 11:59:45 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Fri, 9 Oct 2009 02:59:45 -0700 (PDT) Subject: [Gambas-user] write to folder in windows network Message-ID: <25818529.post@...1379...> My Gambas PC is attached to a Windows Network - how can I access files there from a Gambas application? Thanks Bill Lancaster -- View this message in context: http://www.nabble.com/write-to-folder-in-windows-network-tp25818529p25818529.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Oct 9 13:47:53 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 9 Oct 2009 13:47:53 +0200 Subject: [Gambas-user] Right-click menu In-Reply-To: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> References: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> Message-ID: <200910091347.53874.gambas@...1...> > M Cs, > > try this: > create a Menu with name mnuGrid and make it hidden > then add this to the gridview's mousedown event > > PUBLIC SUB gridview1_MouseDown() > > IF gridview1.Rows.Count > 0 AND gvBackup.Column = 1 > SELECT Mouse.Right > CASE TRUE > mnuGrid.popup() > CASE ELSE > END SELECT > ENDIF > > END > > This will popup your menu if you right click on the second column of any > row (besides the header) of the gridview. > > I hope it helps > > Regards, > Dimitris > Never use the MouseDown event to popup menu. You must use the Menu event instead, otherwise the menu key will never work. Regards, -- Beno?t Minisini From gambas at ...1... Fri Oct 9 14:14:00 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 9 Oct 2009 14:14:00 +0200 Subject: [Gambas-user] function call by reference In-Reply-To: <0B58A4F37F6CF243989F72BABCF2111FB66F6B@...2305...> References: <0B58A4F37F6CF243989F72BABCF2111FB66F6B@...2305...> Message-ID: <200910091414.00937.gambas@...1...> > Dear Developers of Gambas, > > we are really interested in Gambas and we will use it to create a > connection between a plc and a computer. > > Therefore we will use the shared library "libnodave". > > Unfortunately "libnodave" needs some function calls by reference. > > > > How is it able to call a function by reference? > > > > The following way does not work: > > > > Public sub read_from_plc() > > dim ph as long, di as long, dc as long, res as long > > res = initialize(BYREF ph, BYREF di, BYREF dc) > > ... > > End sub > > FUNCTION initialize (ph as long, di as long, dc as long) as long > > ... > > End function > > You can find this description: > http://gambasdoc.org/help/lang/methoddecl?view As explained in that web page, you must specify ByRef both in the function call *and* in the function declaration. Regards, -- Beno?t Minisini From tomascostarivas at ...626... Fri Oct 9 14:16:33 2009 From: tomascostarivas at ...626... (Tomas Costa rivas) Date: Fri, 9 Oct 2009 14:16:33 +0200 Subject: [Gambas-user] DataCombo Message-ID: <94a144920910090516q39c0e9a5y1a8f4b445c83c656@...627...> Hello If a datacombo don't run with the event key_press or key_release, how can I launch a event while I write in this control? Another question: Can I display in a datacombo two fields? e.g: datacombo1.display="name"; "surname" There's a few information abouth gb.db.form Thanks Tom?s From nospam.nospam.nospam at ...626... Fri Oct 9 14:49:43 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 09 Oct 2009 23:49:43 +1100 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <25818529.post@...1379...> References: <25818529.post@...1379...> Message-ID: <1255092583.4113.2.camel@...2304...> On Fri, 2009-10-09 at 02:59 -0700, Bill-Lancaster wrote: > My Gambas PC is attached to a Windows Network - how can I access files there > from a Gambas application? Mount the path to the network directory with rw and use standard gambas file operations on the mount point. From joe1962 at ...626... Fri Oct 9 15:22:29 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Fri, 9 Oct 2009 09:22:29 -0400 Subject: [Gambas-user] Trash In-Reply-To: <4ACE3686.1060907@...221...> References: <4ACE3686.1060907@...221...> Message-ID: <6c208f950910090622h744bb90dnb882fad74ea9597c@...627...> On 10/8/09, Matti wrote: > Is there any way to move files and directories to the user's trash bin? > Until someone implements the freedesktop.org trash specs on Gambas, you could try this: http://code.google.com/p/trash-cli/ Or a more involved general solution: http://freshmeat.net/projects/delsafe/ Regards, Joe1962 From bill-lancaster at ...2231... Fri Oct 9 15:44:15 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Fri, 9 Oct 2009 06:44:15 -0700 (PDT) Subject: [Gambas-user] write to folder in windows network In-Reply-To: <25818529.post@...1379...> References: <25818529.post@...1379...> Message-ID: <25821444.post@...1379...> Thanks for the advice but how do I "mount the path to the network directory"? I've no doubt the answers is simple but I've tried everything I can think of. Thanks in advance Bill Lancaster Bill-Lancaster wrote: > > My Gambas PC is attached to a Windows Network - how can I access files > there from a Gambas application? > > Thanks > > Bill Lancaster > -- View this message in context: http://www.nabble.com/write-to-folder-in-windows-network-tp25818529p25821444.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Fri Oct 9 18:51:03 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 09 Oct 2009 18:51:03 +0200 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <25821444.post@...1379...> References: <25818529.post@...1379...> <25821444.post@...1379...> Message-ID: <4ACF69F7.5040107@...1909...> Bill-Lancaster ha scritto: > Thanks for the advice but how do I "mount the path to the network directory"? > I've no doubt the answers is simple but I've tried everything I can think > of. Thanks in advance > Bill Lancaster > > Bill-Lancaster wrote: > >> My Gambas PC is attached to a Windows Network - how can I access files >> there from a Gambas application? >> >> Thanks >> This question is not gambas related: it is an operating system matter. Moreover it has no simple answer - it depends on what your linux system is, what file manager you use, what services are running. If you use konqueror, there is a special bookmark like "Samba network" or whatever (sorry, I don't remember the true name). If you use gnome, something similar should exist. You will see nothing if network parameters are wrong. If you use neither, then I don't know what to say. I could speak about command-line tools, but this would take us far away. Read documentation about linux, networking, and samba. Or, at least, be more precise and tell something more about your system. Take it easy, I am not flaming just you; but sometimes I see people who ask, in this list, questions not gambas-related, like this. I ask myself: where do these people come from, and where want they go, without knowing that gambas runs on linux? And, knowing that, do they think they can write applications without knowing what there is behind? I wonder of this: before wanting to write an application which accesses other computers (windows computers!) on the network, did you think just for a minute about trying to access them without gambas? Regards, Doriano From dosida at ...626... Fri Oct 9 19:37:25 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 9 Oct 2009 11:37:25 -0600 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <4ACF69F7.5040107@...1909...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF69F7.5040107@...1909...> Message-ID: <82bffccf0910091037m722c63b0x4bf10c1749eb617c@...627...> Doriano, With all due respect, some people are in the process of relearning key concepts that they are used to take for granted in Windows. To them Linux is still uncharted territory and since this mailing list is so helpful it's easy to veer of a tad bit off subject... I've seen workarounds involving external Linux commands being offered all the time instead of native Gambas code, so to my point of view (and If I am wrong please correct me) a simple pointer to a page containing a workaround to that question, or a simple "Sorry my friend I don't know how to help you with this" will suffice. I mean think about the replies to the call from Benoit about the compilation error shell script; that wasn't Gambas specific yet people volunteered to help... why is this any different? Regards, Dimitris PS: this is in no way an attack of any sort, just my opinion On Fri, Oct 9, 2009 at 10:51 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Bill-Lancaster ha scritto: > > Thanks for the advice but how do I "mount the path to the network > directory"? > > I've no doubt the answers is simple but I've tried everything I can think > > of. Thanks in advance > > Bill Lancaster > > > > Bill-Lancaster wrote: > > > >> My Gambas PC is attached to a Windows Network - how can I access files > >> there from a Gambas application? > >> > >> Thanks > >> > This question is not gambas related: it is an operating system matter. > Moreover it has no simple answer - it depends on what your linux system > is, what file manager you use, what services are running. If you use > konqueror, there is a special bookmark like "Samba network" or whatever > (sorry, I don't remember the true name). If you use gnome, something > similar should exist. You will see nothing if network parameters are > wrong. If you use neither, then I don't know what to say. I could speak > about command-line tools, but this would take us far away. > > Read documentation about linux, networking, and samba. Or, at least, be > more precise and tell something more about your system. > > Take it easy, I am not flaming just you; but sometimes I see people who > ask, in this list, questions not gambas-related, like this. I ask > myself: where do these people come from, and where want they go, without > knowing that gambas runs on linux? And, knowing that, do they think they > can write applications without knowing what there is behind? I wonder of > this: before wanting to write an application which accesses other > computers (windows computers!) on the network, did you think just for a > minute about trying to access them without gambas? > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Fri Oct 9 20:13:26 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 09 Oct 2009 20:13:26 +0200 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <82bffccf0910091037m722c63b0x4bf10c1749eb617c@...627...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF69F7.5040107@...1909...> <82bffccf0910091037m722c63b0x4bf10c1749eb617c@...627...> Message-ID: <4ACF7D46.7020801@...1909...> Dimitris Anogiatis ha scritto: > Doriano, > > With all due respect, some people are in the process of relearning key > concepts that they are used to take > for granted in Windows. To them Linux is still uncharted territory and since > this mailing list is so helpful it's > easy to veer of a tad bit off subject... I've seen workarounds involving > external Linux commands being offered > all the time instead of native Gambas code, so to my point of view (and If I > am wrong please correct me) > a simple pointer to a page containing a workaround to that question, or a > simple "Sorry my friend I don't know how > to help you with this" will suffice. > > I mean think about the replies to the call from Benoit about the compilation > error shell script; that wasn't > Gambas specific yet people volunteered to help... why is this any different? > Far from me to be angry or whatever; and you are right - I agree that this list can help people moving into linux and gambas (not necessarily mentioned in this order). But, on the other hand, someone should also point out what I pointed out. I am willing to help everybody, so I read messages and decide if I am able to reply or not and, even if able, I ask myself whether someone else in this list can give better responses. I think that all the other people does so. Sometimes I read messages which leave me uncertain; I leave them a little time to see if someone else replies: if not, I reply myself. Clarified this (you can agree or criticize this method, ok): I readed the message from Bill Lancaster; I decided that I was not able to reply. Then I asked myself if someone else could reply, and thought "no", because there were not enough informations, so I replied thinking that nobody could have replied better than me. Or, perhaps, many persons would have replied "Sorry, I don't know". So I told that guy what I considered right: "tell us more, read documentation, this is a gambas list so people, I suppose, wants to speak about gambas and not samba". I mean - I have been a little rough, I know, but nevertheless I told him what to do. Or are you able to help him better? About to pointing out that I can't understand him - you do? Do you start to write a network application in gambas without knowing what network is? And about windows, do you know how to browse the network from a visual basic application? No? And when you know it, do you test the application by browsing the network with filemanager and comparing results? I think yes. May be that by telling him to read about linux, I helped him more than telling him "I don't know". To conclude, and excuse me for this long mail. There were too much things wrong in that message, for me. Anyway, I didn't insult him; I tried to say to him what I would have done in his shoes, and pointed out that that form of messages would be better to be avoided. Pardon me (you and Bill) for this, but if in case, I would do the same. Regards, and happy "Microsoft Windows Network" browsing... :-) Doriano From leemcpherson at ...626... Fri Oct 9 21:43:52 2009 From: leemcpherson at ...626... (Lee McPherson) Date: Fri, 09 Oct 2009 15:43:52 -0400 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <25821444.post@...1379...> References: <25818529.post@...1379...> <25821444.post@...1379...> Message-ID: <4ACF9278.1000509@...626...> Bill-Lancaster wrote: > Thanks for the advice but how do I "mount the path to the network directory"? > I've no doubt the answers is simple but I've tried everything I can think > of. Thanks in advance > Bill Lancaster > > Bill-Lancaster wrote: > >> My Gambas PC is attached to a Windows Network - how can I access files >> there from a Gambas application? >> >> Thanks >> >> Are you aware of the command line program: smbmount? Do a google search on it or use man pages but the basics are to use it like this (with your own options): smbmount //server/share /localdir -o username=user,password=pass,uid=500,gid=500 There's a way to put it directly into your /etc/fstab so you don't have to run it manually each time you reboot but I forget the exact syntax at the moment. -Lee From dosida at ...626... Fri Oct 9 22:04:05 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 9 Oct 2009 14:04:05 -0600 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <4ACF9278.1000509@...626...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF9278.1000509@...626...> Message-ID: <82bffccf0910091304m6fe975bdtef2cef579d003af1@...627...> Hey Bill, I found this page, it might help you. http://www.cyberciti.biz/tips/how-to-mount-remote-windows-partition-windows-share-under-linux.html as people have suggested earlier, try opening a terminal and try the commands that are shown in the site that I gave you; make sure you can access files from the share using cp (linux copy command), before you use the share in your Gambas program I hope it helps Regards, Dimitris On Fri, Oct 9, 2009 at 1:43 PM, Lee McPherson wrote: > Bill-Lancaster wrote: > > Thanks for the advice but how do I "mount the path to the network > directory"? > > I've no doubt the answers is simple but I've tried everything I can think > > of. Thanks in advance > > Bill Lancaster > > > > Bill-Lancaster wrote: > > > >> My Gambas PC is attached to a Windows Network - how can I access files > >> there from a Gambas application? > >> > >> Thanks > >> > >> > Are you aware of the command line program: smbmount? Do a google > search on it or use man pages but the basics are to use it like this > (with your own options): > > smbmount //server/share /localdir -o > username=user,password=pass,uid=500,gid=500 > > > There's a way to put it directly into your /etc/fstab so you don't have > to run it manually each time you reboot but I forget the exact syntax at > the moment. > > -Lee > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mohareve at ...626... Fri Oct 9 23:11:47 2009 From: mohareve at ...626... (M. Cs.) Date: Fri, 9 Oct 2009 23:11:47 +0200 Subject: [Gambas-user] Right-click menu In-Reply-To: <200910091347.53874.gambas@...1...> References: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> <200910091347.53874.gambas@...1...> Message-ID: Troubles: I've done this PUBLIC SUB gV_Menu() DIM almenu, almenu1 AS Menu almenu = NEW Menu(FMain) almenu1 = NEW Menu(almenu) almenu1.Text = "Delete selected" almenu.Hide IF gV.Rows.Count > 0 AND gv.Column = 1 THEN SELECT Mouse.Right CASE TRUE almenu.popup() CASE ELSE END SELECT ENDIF END And the message is there are "no mouse event data". Can you explain me where to create a menu, or what's wrong with my code? From gambas at ...1... Fri Oct 9 23:19:18 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 9 Oct 2009 23:19:18 +0200 Subject: [Gambas-user] Right-click menu In-Reply-To: References: <200910091347.53874.gambas@...1...> Message-ID: <200910092319.18147.gambas@...1...> > Troubles: I've done this > > PUBLIC SUB gV_Menu() > DIM almenu, almenu1 AS Menu > almenu = NEW Menu(FMain) > almenu1 = NEW Menu(almenu) > almenu1.Text = "Delete selected" > almenu.Hide > IF gV.Rows.Count > 0 AND gv.Column = 1 THEN > SELECT Mouse.Right > CASE TRUE > almenu.popup() > CASE ELSE > END SELECT > ENDIF > END > > And the message is there are "no mouse event data". > Can you explain me where to create a menu, or what's wrong with my code? The "Menu" event is not a mouse event. It is just a event that tells you that the user wants to popup the menu. In other words, don't test the value of Mouse.Right. Just popup the menu. Regards, -- Beno?t Minisini From mohareve at ...626... Fri Oct 9 23:27:17 2009 From: mohareve at ...626... (M. Cs.) Date: Fri, 9 Oct 2009 23:27:17 +0200 Subject: [Gambas-user] Right-click menu In-Reply-To: <200910092319.18147.gambas@...1...> References: <200910091347.53874.gambas@...1...> <200910092319.18147.gambas@...1...> Message-ID: O.K That works. Now, through almenu1.Action=My_Subroutine() should work? From Karl.Reinl at ...9... Fri Oct 9 23:28:34 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 09 Oct 2009 23:28:34 +0200 Subject: [Gambas-user] Right-click menu In-Reply-To: References: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> <200910091347.53874.gambas@...1...> Message-ID: <1255123714.6765.48.camel@...40...> Am Freitag, den 09.10.2009, 23:11 +0200 schrieb M. Cs.: > Troubles: I've done this > > PUBLIC SUB gV_Menu() > DIM almenu, almenu1 AS Menu > almenu = NEW Menu(FMain) > almenu1 = NEW Menu(almenu) > almenu1.Text = "Delete selected" > almenu.Hide > IF gV.Rows.Count > 0 AND gv.Column = 1 THEN > SELECT Mouse.Right > CASE TRUE > almenu.popup() > CASE ELSE > END SELECT > ENDIF > END > > And the message is there are "no mouse event data". > Can you explain me where to create a menu, or what's wrong with my code? Salut M. Cs.; form here I can't say how to create a menu in gambas, a part there is something in the popup menu on the form. But what you try is something like, 'I'M sitting on the branch, and calling out to create the tree' If ever thats right , it hase to be placed somewhere before: DIM almenu, almenu1 AS Menu almenu = NEW Menu(FMain) almenu1 = NEW Menu(almenu) almenu1.Text = "Delete selected" almenu.Hide -- Amicalment Charlie From mohareve at ...626... Fri Oct 9 23:49:20 2009 From: mohareve at ...626... (M. Cs.) Date: Fri, 9 Oct 2009 23:49:20 +0200 Subject: [Gambas-user] Right-click menu In-Reply-To: <1255123714.6765.48.camel@...40...> References: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> <200910091347.53874.gambas@...1...> <1255123714.6765.48.camel@...40...> Message-ID: O.K I found the answer in examples ' Gambas class file PUBLIC save AS Action PUBLIC SUB gV_Menu() DIM almenu, almenu1 AS Menu almenu = NEW Menu(FMain) almenu1 = NEW Menu(almenu) almenu1.Text = "Delete selected" almenu.Hide almenu.popup() almenu1.Action = "save" END PUBLIC SUB Action_Activate(key AS String) AS Boolean SELECT CASE key CASE "save" 'do what you want to do END SELECT END This works! Thanks! From bill-lancaster at ...2231... Sat Oct 10 09:51:02 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sat, 10 Oct 2009 00:51:02 -0700 (PDT) Subject: [Gambas-user] write to folder in windows network In-Reply-To: <4ACF69F7.5040107@...1909...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF69F7.5040107@...1909...> Message-ID: <25831879.post@...1379...> Dear Doriano That's OK I don't feel "flamed". I'm using Ubuntu 9.04 with Gnome 2.26.1 I can view and access my windows network folders easily from the desktop. I can put an icon on the desktop which will open a specific network folder (is that "mounted"?) I researched all the stuff in Nabble and tried many ways in Gambas all without success. Only after all that did I decide to pose the question. Anyway thanks for your advice - I've got quite a bit to get on with now as well as a number of other replies. Regards Bill -- View this message in context: http://www.nabble.com/write-to-folder-in-windows-network-tp25818529p25831879.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Sat Oct 10 10:15:59 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 10 Oct 2009 10:15:59 +0200 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <25831879.post@...1379...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF69F7.5040107@...1909...> <25831879.post@...1379...> Message-ID: <4AD042BF.6080209@...1909...> Bill-Lancaster ha scritto: > Dear Doriano > That's OK I don't feel "flamed". > I'm using Ubuntu 9.04 with Gnome 2.26.1 > I can view and access my windows network folders easily from the desktop. > I can put an icon on the desktop which will open a specific network folder > (is that "mounted"?) > I researched all the stuff in Nabble and tried many ways in Gambas all > without success. > Only after all that did I decide to pose the question. > > Anyway thanks for your advice - I've got quite a bit to get on with now as > well as a number of other replies. > Unfortunately I don't know Gnome enough to say something. But, yes, when you see the contents of a remote windows folder, that folder is mounted. "mounted" only means that a file in *your* system refers to a directory or file system elsewhere (or the same machine). Take the windows way to mount an USB memory stick (pendrive). You have drive letters C: and D:. When you plug your pendrive, magically a new drive labeled E: appears. Windows says "a new drive has been added, and labeled E:". A Linux users would say "the drive E has been mounted". The windows way is in some way limited, because it can only choose from 26 letters, and your devices are always at the top level of the file system. Linux goes ahead: your device (or remote shared folder) can be reached using a filename (vs a single letter), and this filename can be everywhere in your file system. So, a stick could be mounted as /mnt/stick, where stick is the name of an existent directory inside another existent directory /mnt. /mnt/stick is normally empty, and when you plug your USB stick, that directory populates. That directory is the mount-path, like "E:" is the mount-path in windows. But in linux then mount-path always exist, probably is empty if no devices are mounted; in windows E: does not exist if no devices are plugged. I must go - will continue on next mail. -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Sat Oct 10 11:43:12 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 10 Oct 2009 11:43:12 +0200 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <4AD042BF.6080209@...1909...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF69F7.5040107@...1909...> <25831879.post@...1379...> <4AD042BF.6080209@...1909...> Message-ID: <4AD05730.5050701@...1909...> Doriano Blengino ha scritto: > Bill-Lancaster ha scritto: > >> I can view and access my windows network folders easily from the desktop. >> I can put an icon on the desktop which will open a specific network folder >> (is that "mounted"?) >> ... >> > mount-path, like "E:" is the mount-path in windows. But in linux then > mount-path always exist, probably is empty if no devices are mounted; in > windows E: does not exist if no devices are plugged. > > I must go - will continue on next mail. > ...continue... Now come to the interesting part. In gambas, you access files on remote machine as they were in your file system (and they actually are...), for example "/mnt/remotepc1/C/Document and Settings/...". It is difficult to know 1) wheter they are really mounted; 2) where are they mounted; 3) what naming conventions and permissions are in place. If you, in your desktop, open an icon and see remote files, then try to understand where they are mounted: look at the title bar, the location entry box, try to ask the properties of a file, or open a console and type df or mount. These two last commands will list all the mount points (mount path), under which you can access files. Only remains to decide how to mount them. You can choose to use the desktop facilities, and then launch your gambas application. Or you can edit /etc/fstab and add lines like the following: //server1/docs /mnt/server1 cifs username=guest,password=mypwd 0 0 The first field indicates the resource to mount: server1 is the name of the computer, or its IP address; docs is the name of the share; while windows uses backslashes linux uses simple slashes. I am not sure how to manage blanks (spaces) here, perhaps surround them with quotes. /mnt/server1 is the mount point, and must refer to an existent directory (you must create it). cifs (or, in the old way, smbfs) is the type of filesystem; cifs is the filesystem used by windows over a network. The following field "username=...." is a comma separated list of parameters; usually "username" and "password" are required, other can be useful. The last two field have no importance and "0 0" should be ok. Assuming you added the example line to /etc/fstab, and that everything is ok, every time you boot your machine you will see the files of server1 inside your local directory /mnt/server1. If you add that line and don't want to reboot, issue a "mount -a" command in console. You can find more information about fstab, mount, mount.cifs, smbmount, mount.smb or similar names ("man 1 mount", for example). May be that Gnome has some graphical application for editing /etc/fstab, or some other nice facility - unfortunately I don't know. Hope this can point you somewhere - it is not difficult (once you have succeded! :-)). Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas.fr at ...626... Sat Oct 10 11:52:34 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 10 Oct 2009 11:52:34 +0200 Subject: [Gambas-user] Right-click menu In-Reply-To: References: <82bffccf0910090003s4f752cbcj76d18df0df13b340@...627...> <200910091347.53874.gambas@...1...> <1255123714.6765.48.camel@...40...> Message-ID: <6324a42a0910100252p16afee08x44e6a87f211864d8@...627...> > SELECT Mouse.Right > CASE TRUE > almenu.popup() > CASE ELSE > END SELECT ??????????? IF Mouse.Right THEN almenu.Popup() Don't use SELECT for something that have only one answer ! It's ugly. From math.eber at ...221... Sun Oct 11 18:57:59 2009 From: math.eber at ...221... (Matti) Date: Sun, 11 Oct 2009 18:57:59 +0200 Subject: [Gambas-user] Trash In-Reply-To: <6c208f950910090622h744bb90dnb882fad74ea9597c@...627...> References: <4ACE3686.1060907@...221...> <6c208f950910090622h744bb90dnb882fad74ea9597c@...627...> Message-ID: <4AD20E97.1040702@...221...> That makes it easier. Fine, thanks, Jose. Matti Jose J. Rodriguez schrieb: > On 10/8/09, Matti wrote: >> Is there any way to move files and directories to the user's trash bin? >> > > Until someone implements the freedesktop.org trash specs on Gambas, > you could try this: http://code.google.com/p/trash-cli/ > > Or a more involved general solution: http://freshmeat.net/projects/delsafe/ > > Regards, > Joe1962 From johny.provoost at ...27... Sun Oct 11 19:38:08 2009 From: johny.provoost at ...27... (Johny Provoost) Date: Sun, 11 Oct 2009 19:38:08 +0200 Subject: [Gambas-user] Sendmail problems Message-ID: <4AD21800.20008@...27...> Hi, I want to send mail throug my program but I'm unable to use a attachement. The vTo, vSubject and vBody are filled in correctly in Thunderbird, but in vAttach I put the path to a jpg file and Thunderbird do not attach the file. If I Try to put an incorrect path in vAttach, I get an error form Gambas as expected. Is it the fault of Gambas, my code or Thunderbird? PUBLIC SUB btVersturen_Click() DIM vTo AS NEW String[] DIM vSubject AS String DIM vBody AS String DIM vAttach AS String ........................ Desktop.SendMail(vTo,,, vSubject, vBody, vAttach) I work with gambas 2.8 in Ubuntu 9.04 and QT (GTK gives the same result) I tested with evolution as my default email program, but I get an error from evolution. Evolution seemt to replace all the '/' with '%2F'. I don't know if Thunderbird does the same. Thunderbird gives no error (but no attach either). -- *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* From nospam.nospam.nospam at ...626... Mon Oct 12 08:53:32 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 12 Oct 2009 17:53:32 +1100 Subject: [Gambas-user] Sendmail problems In-Reply-To: <4AD21800.20008@...27...> References: <4AD21800.20008@...27...> Message-ID: <1255330412.3953.8.camel@...2304...> On Sun, 2009-10-11 at 19:38 +0200, Johny Provoost wrote: > I work with gambas 2.8 in Ubuntu 9.04 and QT > (GTK gives the same result) First, download and compile v2.16 of Gambas then retest. Download: http://linux.softpedia.com/get/Programming/Interpreters/Gambas-2-1180.shtml Easy instructions, even I could follow them: http://www.ziddu.com/download/5849757/Install-Gambas-2.15-in-ubuntu.pdf.html Alternate instructions: http://gambas.sourceforge.net/en/main.html From pxpert at ...626... Mon Oct 12 09:40:15 2009 From: pxpert at ...626... (Pietro Di Costanzo) Date: Mon, 12 Oct 2009 09:40:15 +0200 Subject: [Gambas-user] Bug in Socket connection and WAIT Message-ID: <5757f8300910120040y36bfd205sdacf962f5ae60d60@...627...> Hi, I would like to signal a bug into the gambas interpreter. If I create a simple script that just create a socket and wait after a connection, the interpreter crashes. This does appen only if i don't use gb.qt or gb.gtk (I should run it into a pc without X ). This is the example code, the bug is riproducible in gambas 2.16. and in svn (2.x, didn't try the trunk) ' Gambas module file PRIVATE JSocket AS Socket PUBLIC SUB Main() JSocket = NEW Socket WITH JSocket .Host = "192.168.0.51" .Port = 8956 .Connect WAIT 0.2 END WITH END I'm only using GB and GB.NET components and the connection has to be valid (Valid host and port). Please let me know If I've made some mistakes. Thanks, Pietro From bill-lancaster at ...2231... Mon Oct 12 09:48:07 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Mon, 12 Oct 2009 00:48:07 -0700 (PDT) Subject: [Gambas-user] write to folder in windows network In-Reply-To: <4AD05730.5050701@...1909...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF69F7.5040107@...1909...> <25831879.post@...1379...> <4AD042BF.6080209@...1909...> <4AD05730.5050701@...1909...> Message-ID: <25851687.post@...1379...> Doriano - after many adventures I've done It! Thanks for all your help and also thanks to the other contributors Bill Lancaster -- View this message in context: http://www.nabble.com/write-to-folder-in-windows-network-tp25818529p25851687.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Mon Oct 12 10:46:23 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 12 Oct 2009 10:46:23 +0200 Subject: [Gambas-user] Sendmail problems In-Reply-To: <1255330412.3953.8.camel@...2304...> References: <4AD21800.20008@...27...> <1255330412.3953.8.camel@...2304...> Message-ID: <200910121046.24481.ronstk@...239...> On Monday 12 October 2009, nospam.nospam.nospam at ...626... wrote: > Easy instructions, even I could follow them: > http://www.ziddu.com/download/5849757/Install-Gambas-2.15-in-ubuntu.pdf.html > OMG That link gives more advertisement as available in my country for a year. :) Be carefull. Best regards, Ron_1st -- From nospam.nospam.nospam at ...626... Mon Oct 12 11:03:05 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 12 Oct 2009 20:03:05 +1100 Subject: [Gambas-user] Sendmail problems In-Reply-To: <200910121046.24481.ronstk@...239...> References: <4AD21800.20008@...27...> <1255330412.3953.8.camel@...2304...> <200910121046.24481.ronstk@...239...> Message-ID: <1255338185.3859.1.camel@...2304...> On Mon, 2009-10-12 at 10:46 +0200, Ron_1st wrote: > On Monday 12 October 2009, nospam.nospam.nospam at ...626... wrote: > > Easy instructions, even I could follow them: > > http://www.ziddu.com/download/5849757/Install-Gambas-2.15-in-ubuntu.pdf.html > > > > OMG > That link gives more advertisement as available in my country for a year. :) > Be carefull. I agree. Either I pasted in the wrong link or it didn't look like that 30 minutes ago :) http://gambas.sourceforge.net/en/main.html Best go there. > Best regards, > > Ron_1st > From doriano.blengino at ...1909... Mon Oct 12 11:04:28 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 12 Oct 2009 11:04:28 +0200 Subject: [Gambas-user] write to folder in windows network In-Reply-To: <25851687.post@...1379...> References: <25818529.post@...1379...> <25821444.post@...1379...> <4ACF69F7.5040107@...1909...> <25831879.post@...1379...> <4AD042BF.6080209@...1909...> <4AD05730.5050701@...1909...> <25851687.post@...1379...> Message-ID: <4AD2F11C.2010106@...1909...> Bill-Lancaster ha scritto: > Doriano - after many adventures I've done It! > > Thanks for all your help and also thanks to the other contributors > > Bill Lancaster > Happy to hear it! Having you succeded, now you can tell it's easy! :-) Best regards, Doriano From gambas at ...1... Mon Oct 12 12:34:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 12 Oct 2009 12:34:08 +0200 Subject: [Gambas-user] Bug in Socket connection and WAIT In-Reply-To: <5757f8300910120040y36bfd205sdacf962f5ae60d60@...627...> References: <5757f8300910120040y36bfd205sdacf962f5ae60d60@...627...> Message-ID: <200910121234.09035.gambas@...1...> > Hi, > > I would like to signal a bug into the gambas interpreter. > > If I create a simple script that just create a socket and wait after a > connection, the interpreter crashes. > This does appen only if i don't use gb.qt or gb.gtk (I should run it into a > pc without X ). > > This is the example code, the bug is riproducible in gambas 2.16. and in > svn (2.x, didn't try the trunk) > > ' Gambas module file > PRIVATE JSocket AS Socket > > PUBLIC SUB Main() > > JSocket = NEW Socket > WITH JSocket > .Host = "192.168.0.51" > .Port = 8956 > .Connect > WAIT 0.2 > END WITH > > END > > > I'm only using GB and GB.NET components and the connection has to be valid > (Valid host and port). > Please let me know If I've made some mistakes. > > Thanks, > Pietro You didn't, this was a bug, fixed in revision #2390. Regards, -- Beno?t Minisini From pxpert at ...626... Mon Oct 12 12:43:01 2009 From: pxpert at ...626... (Pietro Di Costanzo) Date: Mon, 12 Oct 2009 12:43:01 +0200 Subject: [Gambas-user] Bug in Socket connection and WAIT In-Reply-To: <200910121234.09035.gambas@...1...> References: <5757f8300910120040y36bfd205sdacf962f5ae60d60@...627...> <200910121234.09035.gambas@...1...> Message-ID: <5757f8300910120343x6a783d59xeab91d3edbbd4b0f@...627...> Sorry, You're right, I had the revision 2388. Now with #2391 it works without problems, Thanks! 2009/10/12 Beno?t Minisini > > Hi, > > > > I would like to signal a bug into the gambas interpreter. > > > > If I create a simple script that just create a socket and wait after a > > connection, the interpreter crashes. > > This does appen only if i don't use gb.qt or gb.gtk (I should run it into > a > > pc without X ). > > > > This is the example code, the bug is riproducible in gambas 2.16. and in > > svn (2.x, didn't try the trunk) > > > > ' Gambas module file > > PRIVATE JSocket AS Socket > > > > PUBLIC SUB Main() > > > > JSocket = NEW Socket > > WITH JSocket > > .Host = "192.168.0.51" > > .Port = 8956 > > .Connect > > WAIT 0.2 > > END WITH > > > > END > > > > > > I'm only using GB and GB.NET components and the connection has to be > valid > > (Valid host and port). > > Please let me know If I've made some mistakes. > > > > Thanks, > > Pietro > > You didn't, this was a bug, fixed in revision #2390. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Oct 12 12:48:03 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 12 Oct 2009 12:48:03 +0200 Subject: [Gambas-user] Bug in Socket connection and WAIT In-Reply-To: <5757f8300910120343x6a783d59xeab91d3edbbd4b0f@...627...> References: <5757f8300910120040y36bfd205sdacf962f5ae60d60@...627...> <200910121234.09035.gambas@...1...> <5757f8300910120343x6a783d59xeab91d3edbbd4b0f@...627...> Message-ID: <200910121248.03367.gambas@...1...> > Sorry, > You're right, I had the revision 2388. > Now with #2391 it works without problems, Thanks! > > 2009/10/12 Beno?t Minisini > You don't have to be sorry. I mean, I just fixed it. -- Beno?t Minisini From johny.provoost at ...27... Mon Oct 12 13:22:54 2009 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 12 Oct 2009 13:22:54 +0200 Subject: [Gambas-user] Sendmail problems In-Reply-To: <1255330412.3953.8.camel@...2304...> References: <4AD21800.20008@...27...> <1255330412.3953.8.camel@...2304...> Message-ID: <4AD3118E.3080604@...27...> OK, looks complicated for me but I give it a try. Give me a day. *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* nospam.nospam.nospam at ...626... schreef: > On Sun, 2009-10-11 at 19:38 +0200, Johny Provoost wrote: > > >> I work with gambas 2.8 in Ubuntu 9.04 and QT >> (GTK gives the same result) >> > > First, download and compile v2.16 of Gambas then retest. > > Download: > http://linux.softpedia.com/get/Programming/Interpreters/Gambas-2-1180.shtml > > Easy instructions, even I could follow them: > http://www.ziddu.com/download/5849757/Install-Gambas-2.15-in-ubuntu.pdf.html > > Alternate instructions: > http://gambas.sourceforge.net/en/main.html > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From m0e.lnx at ...626... Mon Oct 12 17:34:15 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 Oct 2009 10:34:15 -0500 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 Message-ID: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> I'm trying to figure out a way to do this guys. I want an application that can monitor a remote file or URL. For example, the following url http://irssi.org/files/ I want to run the program, and notify me if the contents of that dir have changed since the last time it was checked. The comparison I can manage in gambas, but I need your help in figuring out how to access the contents of that directory from gambas. Has anyone done anything like this or can anyone throw some ideas this way please? From jussi.lahtinen at ...626... Mon Oct 12 17:45:07 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 12 Oct 2009 18:45:07 +0300 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> Message-ID: <384d3900910120845q49a645f0rdef3e30fcf398978@...627...> Download file list with shell and wget, and compare it to older? Jussi On Mon, Oct 12, 2009 at 18:34, M0E Lnx wrote: > I'm trying to figure out a way to do this guys. > > I want an application that can monitor a remote file or URL. For > example, the following url > > http://irssi.org/files/ > > I want to run the program, and notify me if the contents of that dir > have changed since the last time it was checked. The comparison I can > manage in gambas, but I need your help in figuring out how to access > the contents of that directory from gambas. > > Has anyone done anything like this or can anyone throw some ideas this > way please? > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Mon Oct 12 17:51:10 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 Oct 2009 10:51:10 -0500 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <384d3900910120845q49a645f0rdef3e30fcf398978@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120845q49a645f0rdef3e30fcf398978@...627...> Message-ID: <1f1e8c1b0910120851r3f36cee2l446d1d09f378db46@...627...> I was hoping not to have to do that. If I want to monitor large files, this would take forever. I was king of hoping for a way to take a look at the contents of the remote directory. I know you can use curl -l and it will provide a listing similar to a local "ls" output. But that doesn't work with http sites, only ftp. And, on top of that, I'd like to see if gambas has a better way to do this than using an external program. From jussi.lahtinen at ...626... Mon Oct 12 17:57:02 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 12 Oct 2009 18:57:02 +0300 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <1f1e8c1b0910120851r3f36cee2l446d1d09f378db46@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120845q49a645f0rdef3e30fcf398978@...627...> <1f1e8c1b0910120851r3f36cee2l446d1d09f378db46@...627...> Message-ID: <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> wget http://irssi.org/files/ Creates 10.1 KB file, so it is not big! Jussi On Mon, Oct 12, 2009 at 18:51, M0E Lnx wrote: > I was hoping not to have to do that. > If I want to monitor large files, this would take forever. > I was king of hoping for a way to take a look at the contents of the > remote directory. > > I know you can use curl -l and it will provide a listing > similar to a local "ls" output. But that doesn't work with http sites, > only ftp. And, on top of that, I'd like to see if gambas has a better > way to do this than using an external program. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Mon Oct 12 18:01:13 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 Oct 2009 11:01:13 -0500 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120845q49a645f0rdef3e30fcf398978@...627...> <1f1e8c1b0910120851r3f36cee2l446d1d09f378db46@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> Message-ID: <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> Yeah.. but even then doing that gives me a lot of raw contents to read which is exactly what I'm trying to avoid. From johny.provoost at ...27... Mon Oct 12 18:05:39 2009 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 12 Oct 2009 18:05:39 +0200 Subject: [Gambas-user] Sendmail problems In-Reply-To: <4AD3118E.3080604@...27...> References: <4AD21800.20008@...27...> <1255330412.3953.8.camel@...2304...> <4AD3118E.3080604@...27...> Message-ID: <4AD353D3.2000400@...27...> was'nt complicated at all, it's just looked that way (never did something like that before). I Think the programmers of the scripts did a great job. After the ./configure i got the message "These components are disabeld - gb.qte", but no other errors. So now I'm working with Gamba's 2.16 But still no attach in the mail. Someting else I see what i did'nt mention before is when I start the program form the IDE, I get servere messages in the Konsole tab "QSettings: failed to open file '/etc/qt3/qt_plugins_3.3rc'" "QSettings::sync: filename is null/empty" I had that with the version 2.8 (that's a confusing number from ubuntu) also. Everething else in the program works as inspected exept for the attach. If I look in /etc/qt the file qt_plugins_3.3c is there (210 kb) Vriendelijke Groeten Johny Provoost Johny Provoost schreef: > OK, looks complicated for me but I give it a try. Give me a day. > > > > *Vriendelijke Groeten* > > *Johny Provoost* > > > nospam.nospam.nospam at ...626... schreef: > >> On Sun, 2009-10-11 at 19:38 +0200, Johny Provoost wrote: >> >> >> >>> I work with gambas 2.8 in Ubuntu 9.04 and QT >>> (GTK gives the same result) >>> >>> >> First, download and compile v2.16 of Gambas then retest. >> >> Download: >> http://linux.softpedia.com/get/Programming/Interpreters/Gambas-2-1180.shtml >> >> Easy instructions, even I could follow them: >> http://www.ziddu.com/download/5849757/Install-Gambas-2.15-in-ubuntu.pdf.html >> >> Alternate instructions: >> http://gambas.sourceforge.net/en/main.html >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Mon Oct 12 18:06:07 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 12 Oct 2009 19:06:07 +0300 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120845q49a645f0rdef3e30fcf398978@...627...> <1f1e8c1b0910120851r3f36cee2l446d1d09f378db46@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> Message-ID: <384d3900910120906i22937ac5la08ad674d827b841@...627...> So, you need to know is individual file added, changed, etc.? I you don't, you can compare wget results with diff or md5sum. Jussi On Mon, Oct 12, 2009 at 19:01, M0E Lnx wrote: > Yeah.. but even then doing that gives me a lot of raw contents to read > which is exactly what I'm trying to avoid. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Oct 12 18:24:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 12 Oct 2009 18:24:24 +0200 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> Message-ID: <200910121824.24770.gambas@...1...> > Yeah.. but even then doing that gives me a lot of raw contents to read > which is exactly what I'm trying to avoid. > The HTTP protocol has commands to check if an URL has been updated. Does your web server handle that with your URL? -- Beno?t Minisini From gambas at ...1... Mon Oct 12 18:26:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 12 Oct 2009 18:26:49 +0200 Subject: [Gambas-user] Sendmail problems In-Reply-To: <4AD21800.20008@...27...> References: <4AD21800.20008@...27...> Message-ID: <200910121826.49321.gambas@...1...> > Hi, > > I want to send mail throug my program but I'm unable to use a attachement. > The vTo, vSubject and vBody are filled in correctly in Thunderbird, but > in vAttach I put the path to a jpg file and Thunderbird do not attach > the file. > If I Try to put an incorrect path in vAttach, I get an error form Gambas > as expected. Is it the fault of Gambas, my code or Thunderbird? > > PUBLIC SUB btVersturen_Click() > DIM vTo AS NEW String[] > DIM vSubject AS String > DIM vBody AS String > DIM vAttach AS String > ........................ > Desktop.SendMail(vTo,,, vSubject, vBody, vAttach) > > I work with gambas 2.8 in Ubuntu 9.04 and QT > (GTK gives the same result) > > I tested with evolution as my default email program, but I get an error > from evolution. Evolution seemt to replace all the '/' with '%2F'. > I don't know if Thunderbird does the same. Thunderbird gives no error > (but no attach either). > Desktop.SendMail is just an interface to xdg-email. So try to send your mail with the xdg-email command. If it works, then there is a bug in Gambas, otherwise the problem is in the xdg-email script. Regards, -- Beno?t Minisini From m0e.lnx at ...626... Mon Oct 12 19:05:57 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Mon, 12 Oct 2009 12:05:57 -0500 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <200910121824.24770.gambas@...1...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> <200910121824.24770.gambas@...1...> Message-ID: <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> @ Benoit I'd be monitoring other people's URLs.. not mine, so that would be out of my control. From johny.provoost at ...27... Mon Oct 12 19:10:03 2009 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 12 Oct 2009 19:10:03 +0200 Subject: [Gambas-user] Sendmail problems In-Reply-To: <200910121826.49321.gambas@...1...> References: <4AD21800.20008@...27...> <200910121826.49321.gambas@...1...> Message-ID: <4AD362EB.4050206@...27...> Thanks, did'nt knew that. The problem is indeed in the xdg-email script, or rather it's thunderbird. Tried a new version of xdg an then I saw on there website that attach not working with thunderbird. So don't look further. I still learned a lot so thank you all. *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* Beno?t Minisini schreef: >> Hi, >> >> I want to send mail throug my program but I'm unable to use a attachement. >> The vTo, vSubject and vBody are filled in correctly in Thunderbird, but >> in vAttach I put the path to a jpg file and Thunderbird do not attach >> the file. >> If I Try to put an incorrect path in vAttach, I get an error form Gambas >> as expected. Is it the fault of Gambas, my code or Thunderbird? >> >> PUBLIC SUB btVersturen_Click() >> DIM vTo AS NEW String[] >> DIM vSubject AS String >> DIM vBody AS String >> DIM vAttach AS String >> ........................ >> Desktop.SendMail(vTo,,, vSubject, vBody, vAttach) >> >> I work with gambas 2.8 in Ubuntu 9.04 and QT >> (GTK gives the same result) >> >> I tested with evolution as my default email program, but I get an error >> from evolution. Evolution seemt to replace all the '/' with '%2F'. >> I don't know if Thunderbird does the same. Thunderbird gives no error >> (but no attach either). >> >> > > Desktop.SendMail is just an interface to xdg-email. So try to send your mail > with the xdg-email command. If it works, then there is a bug in Gambas, > otherwise the problem is in the xdg-email script. > > Regards, > > From math.eber at ...221... Mon Oct 12 23:22:15 2009 From: math.eber at ...221... (Matti) Date: Mon, 12 Oct 2009 23:22:15 +0200 Subject: [Gambas-user] WAIT and 2nd window Message-ID: <4AD39E07.9080904@...221...> Even after reading the docs sometimes, I don't understand the Event Loop. I try to load many pictures, which takes some time. So I put a "WAIT 0.1" (or 0.5 or...) into the code to let the user do something in the meantime. Works ok. But if I open a second window (e.g. a dialog for some task, or a help window), - if I use "Show", the process in the 1st window runs on, the 2nd window opens, but doesn't react until the process in #1 is done. - if I use "ShowModal" (which would be good for a dialog window), the whole app is blocked. No reaction to nothing. Is this because a 2nd window is a class and not an object? ("During this loop, it will process any events raised by any object") If yes, is there any possibility to work with a 2nd window, reacting while the 1st one is busy? Ok, I could try to build a "window" with a panel and some buttons in FMain that is made visible..., but... not very nice... Thanks, Matti From doriano.blengino at ...1909... Tue Oct 13 08:51:27 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 13 Oct 2009 08:51:27 +0200 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> <200910121824.24770.gambas@...1...> <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> Message-ID: <4AD4236F.1050802@...1909...> M0E Lnx ha scritto: > @ Benoit > I'd be monitoring other people's URLs.. not mine, so that would be out > of my control. > (About http check command)... But this mechanism is an http standard functionality, and even proxies must (should) have support for it. Otherwise, there is no other way than to download the whole URI (which hopefully is a file listing generated by the web server), and compare it with a previous one. There are only two choices. But the second one is not difficult, apart from the fact that sometimes web servers put a nice "Generated by Apache blah blah blah on " at the bottom of the listing, which makes every listing different from the one generated some time before... Regards, Doriano From nospam.nospam.nospam at ...626... Tue Oct 13 09:04:51 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 13 Oct 2009 18:04:51 +1100 Subject: [Gambas-user] Normal behaviour for GTK+? Message-ID: <1255417491.27440.28.camel@...2304...> This has me pulling my hair out. I think I have narrowed the problem down to the GTK+ toolkit for Gambas. If I create a GTK+ project and put a TextBox and a ValueBox on a form and set their default values, when I tab to the TextBox I can over-type the text, but when I tab to the ValueBox, the number I type is appended: For example, if the ValueBox contains 5000 and I type 7, the value becomes 50007. However if I change the project to use a Qt GUI, it works as I expect, i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I have been able to reproduce this behaviour. Is that normal for GTK+? Is there anything I can do short of using Qt? Am I doing something wrong? Also, I can't find any documentation why I might use Qt in Gambas as opposed to GTK+ in Gambas. Opinions on what is best and why will be appreciated. From m0e.lnx at ...626... Tue Oct 13 15:04:52 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 13 Oct 2009 08:04:52 -0500 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <4AD4236F.1050802@...1909...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> <200910121824.24770.gambas@...1...> <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> <4AD4236F.1050802@...1909...> Message-ID: <1f1e8c1b0910130604jeb3e96ap77b4d520d5f02871@...627...> Exacly, so I would very much rather not have to jack with a generated index.html I was thinking maybe the gambas http client had some useful functionality for this matter. But i've never used it. For ftp sites for example, curl works perfectly for what I need... for instance, SHELL curl -l ftp://ftp-osl.osuosl.org TO sRes That will show a listing similar to the output of ls on a local directory. I can work with that. But I need a similar functionality for http URIs too, not just FTP From doriano.blengino at ...1909... Tue Oct 13 15:46:46 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 13 Oct 2009 15:46:46 +0200 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <1f1e8c1b0910130604jeb3e96ap77b4d520d5f02871@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> <200910121824.24770.gambas@...1...> <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> <4AD4236F.1050802@...1909...> <1f1e8c1b0910130604jeb3e96ap77b4d520d5f02871@...627...> Message-ID: <4AD484C6.6040203@...1909...> M0E Lnx ha scritto: > Exacly, so I would very much rather not have to jack with a generated index.html > > I was thinking maybe the gambas http client had some useful > functionality for this matter. But i've never used it. > > For ftp sites for example, curl works perfectly for what I need... for > instance, > > SHELL curl -l ftp://ftp-osl.osuosl.org TO sRes > > That will show a listing similar to the output of ls on a local > directory. I can work with that. But I need a similar functionality > for http URIs too, not just FTP > It is not clear to me what you are saying. You don't want an index.html, but "curl -l" does exactly that, only less formatted - but you don't parse it, you just want to compare it with a previous version. Or not? Anyway, HTTP is not FTP, and not you, not me, not gambas can do something about that. Please note that asking an ftp server to generate a listing is not a guarantee - every server can do whatever it want with its listing, just like an http server. The listing can come out sorted, not sorted, with or without added comments (550 - xxxx) and so on. The listing often seems "normal" because unix tends to simply launch a /bin/ls, but this can not be held always for true. At least HTTP *has* a way to know if something has been changed since a date, while ftp does not. So there are still only two possibilities - 1) ask for modifications, or 2) determine them by yourself. Regards, Doriano From m0e.lnx at ...626... Tue Oct 13 16:09:12 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 13 Oct 2009 09:09:12 -0500 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <4AD484C6.6040203@...1909...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> <200910121824.24770.gambas@...1...> <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> <4AD4236F.1050802@...1909...> <1f1e8c1b0910130604jeb3e96ap77b4d520d5f02871@...627...> <4AD484C6.6040203@...1909...> Message-ID: <1f1e8c1b0910130709p23d5b5bbjdb5dc21be4e26be2@...627...> All I want is to compare the contents. For exmple, say yesterday I checked ftp://ftp-osl.osuosl.org and it reported this foo/ bar/ And today, I check again and it has foo/ bar/ foo-bar-1.0.tar.gz I Want to be able to detect the new "foo-bar-1.0.tar.gz" From doriano.blengino at ...1909... Tue Oct 13 16:50:53 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 13 Oct 2009 16:50:53 +0200 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <1f1e8c1b0910130709p23d5b5bbjdb5dc21be4e26be2@...627...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> <200910121824.24770.gambas@...1...> <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> <4AD4236F.1050802@...1909...> <1f1e8c1b0910130604jeb3e96ap77b4d520d5f02871@...627...> <4AD484C6.6040203@...1909...> <1f1e8c1b0910130709p23d5b5bbjdb5dc21be4e26be2@...627...> Message-ID: <4AD493CD.4070708@...1909...> M0E Lnx ha scritto: > All I want is to compare the contents. For exmple, say yesterday I > checked ftp://ftp-osl.osuosl.org and it reported this > foo/ > bar/ > > And today, I check again and it has > foo/ > bar/ > foo-bar-1.0.tar.gz > > I Want to be able to detect the new "foo-bar-1.0.tar.gz" > Yes, this is clear. What was not clear was your last mail, where you said a thing and nearly the contrary. Back to the topic. There are two ways to do it in http. One is to GET the url, and compare the result (a stream of characters) with a previous copy. It should work pretty the same as ftp, but clearly you can use a browser, point it to your url, and see for yourself what the result is. I think the result should be a listing, just the same as ftp (only some html tag added to beautify). Look if there is some footer like "Generated by Apache on blah blah blah", where "blah blah blah" could be a date; that footer can be a problem and should be discarded if it contains a date. The other way is to use the "/If-Modified-Since"/ http header, or other http functionalities (sorry, don't have the docs at hand). This involves no data transfer - the client asks the server if an URI has been modified *after* a certain timestamp. This is exactly what you want, in the most effective way. If your URI refers to a listing of files, then this facility would say you if the listing has been modified (some files were be added, deleted, modified) after a certain date. Both the methods must be verified (by you, in your context); I don't know how to implement them in gambas - never used such component. But if you know what you want, then someone else can explain you what to do in gambas. Regards, Doriano From oceanosoftlapalma at ...626... Tue Oct 13 17:01:32 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 13 Oct 2009 17:01:32 +0200 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: <1255417491.27440.28.camel@...2304...> References: <1255417491.27440.28.camel@...2304...> Message-ID: When I started programing gambas I used gtk+ components because I'm gnome users. I like to try my apps in kde and gnome and it's a fact at the moment, the same code works different in both (and sometimes doen't work in gtk+). For this reason, and because I know Benoit use KDE I allways use qt components in my apps. Maybe it's possible gtk+ component will be deprecated. Regards, Ricardo 2009/10/13 nospam.nospam.nospam at ...626... > This has me pulling my hair out. I think I have narrowed the problem > down to the GTK+ toolkit for Gambas. > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > and set their default values, when I tab to the TextBox I can over-type > the text, but when I tab to the ValueBox, the number I type is appended: > > For example, if the ValueBox contains 5000 and I type 7, the value > becomes 50007. > > However if I change the project to use a Qt GUI, it works as I expect, > i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I > have been able to reproduce this behaviour. > > Is that normal for GTK+? Is there anything I can do short of using Qt? > Am I doing something wrong? > > Also, I can't find any documentation why I might use Qt in Gambas as > opposed to GTK+ in Gambas. Opinions on what is best and why will be > appreciated. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From m0e.lnx at ...626... Tue Oct 13 17:09:55 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 13 Oct 2009 10:09:55 -0500 Subject: [Gambas-user] best way to monitor remote URL/file in gambas2 In-Reply-To: <4AD493CD.4070708@...1909...> References: <1f1e8c1b0910120834v62335a66u1106729f87626a9a@...627...> <384d3900910120857n19aa1e78mcc272ee5895b11e1@...627...> <1f1e8c1b0910120901x50e7a520l554ad228ff7db19b@...627...> <200910121824.24770.gambas@...1...> <1f1e8c1b0910121005j6ea0229cte53f601827fb70e2@...627...> <4AD4236F.1050802@...1909...> <1f1e8c1b0910130604jeb3e96ap77b4d520d5f02871@...627...> <4AD484C6.6040203@...1909...> <1f1e8c1b0910130709p23d5b5bbjdb5dc21be4e26be2@...627...> <4AD493CD.4070708@...1909...> Message-ID: <1f1e8c1b0910130809l738be6bbj239d4a9fd19b17c1@...627...> That sounds exacly like what I need. If anyone has an idea how to implement that into a gambas program, please shoot. From m0e.lnx at ...626... Tue Oct 13 17:11:54 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Tue, 13 Oct 2009 10:11:54 -0500 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: References: <1255417491.27440.28.camel@...2304...> Message-ID: <1f1e8c1b0910130811j6cb5a558raf839fdf3dd5f9f1@...627...> NNNNNNNNNNNOOOOOOOOOOOOOOOOOO Please do not depricate gb.gtk. I use it all the time, and I refuse to use qt (stubborn me!) I'm not a gnome user, The closest I get is xfce4, but most of the time I'd use something like flux/openbox or awesome. The gtk toolkit is too popular to be depricated. From dosida at ...626... Tue Oct 13 17:14:53 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 13 Oct 2009 09:14:53 -0600 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: References: <1255417491.27440.28.camel@...2304...> Message-ID: <82bffccf0910130814y2fd22a67k606443e90dc1d38@...627...> Ricardo, If I may express my opinion I think it was a very wise choice on Benoit's side to support both GTK+ and QT (even though it seems like it's a rat race trying to debug both components every time qt works gtk doesn't and vice versa or both don't work at the same time) I believe that both technologies have their merits and their uses, and using either or is more of a a design choice of the programmer to go with either or and I think that deprecating gb.gtk would be a pretty big strategy mistake. It's one of the things that I like about Gambas, that it makes my application work in both of them. Regards, Dimitris 2009/10/13 Ricardo D?az Mart?n > When I started programing gambas I used gtk+ components because I'm gnome > users. I like to try my apps in kde and gnome and it's a fact at the > moment, > the same code works different in both (and sometimes doen't work in gtk+). > > For this reason, and because I know Benoit use KDE I allways use qt > components in my apps. Maybe it's possible gtk+ component will be > deprecated. > > Regards, > Ricardo > > 2009/10/13 nospam.nospam.nospam at ...626... > > > This has me pulling my hair out. I think I have narrowed the problem > > down to the GTK+ toolkit for Gambas. > > > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > > and set their default values, when I tab to the TextBox I can over-type > > the text, but when I tab to the ValueBox, the number I type is appended: > > > > For example, if the ValueBox contains 5000 and I type 7, the value > > becomes 50007. > > > > However if I change the project to use a Qt GUI, it works as I expect, > > i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I > > have been able to reproduce this behaviour. > > > > Is that normal for GTK+? Is there anything I can do short of using Qt? > > Am I doing something wrong? > > > > Also, I can't find any documentation why I might use Qt in Gambas as > > opposed to GTK+ in Gambas. Opinions on what is best and why will be > > appreciated. > > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert1juhasz at ...626... Tue Oct 13 18:09:18 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Tue, 13 Oct 2009 18:09:18 +0200 Subject: [Gambas-user] serial port In-Reply-To: <68652a0b0909280533y27667087k19fcb9dc1c450312@...627...> References: <25518421.post@...1379...> <20090919163437.M15768@...951...> <68652a0b0909192320s5ac22c22h20d819dd2822ab9@...627...> <4AB758F6.8070100@...1940...> <68652a0b0909280429l597142aj6384c812b1595568@...627...> <4AC0A1B9.5030604@...1000...> <68652a0b0909280533y27667087k19fcb9dc1c450312@...627...> Message-ID: <68652a0b0910130909l21dbf55fl64d9e7602e46636b@...627...> Hello, At the end it works almost fine to try to open the serial port and if no error I suppose that it works. Now I try to use it. I do the same for ttyS0..S9. On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it finds out that there is no serial port. On the ttyS2 it finds something (no error when I open). I don't know what it is and no idea how to find out. For those where I found the port, I ask for the equipment ID to identify if it's there or not. OK for the S0, but the ttyS2 completely freeze and when I try to close the port there is no reaction. In such a case (TRY mySerialPort.close --- no response, no error message but the program frozen) is there any way to stop the process with a timeout or does anyone has an ide ho to handle it? Any help would be appreciated. Robi 2009/9/28 Robert JUHASZ > thanks a lot !!! > > 2009/9/28 Werner > > Robert JUHASZ wrote: >> > Hello, >> > >> > One more question to the same project. >> > It is a measurement program where the user can give equations for >> calculated >> > quantities. Is there an easy way in Gambas to execute them? For example >> if I >> > have a string (formula) of "2*3+6*(4-1)" how can I calculate the result? >> > >> > Thanks, Robi >> > >> with Eval >> >> Regards >> Werner >> >> PS: It is better to start a new thread for a new question. >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Tue Oct 13 18:58:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Oct 2009 18:58:30 +0200 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: <1255417491.27440.28.camel@...2304...> References: <1255417491.27440.28.camel@...2304...> Message-ID: <200910131858.30150.gambas@...1...> > This has me pulling my hair out. I think I have narrowed the problem > down to the GTK+ toolkit for Gambas. > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > and set their default values, when I tab to the TextBox I can over-type > the text, but when I tab to the ValueBox, the number I type is appended: > > For example, if the ValueBox contains 5000 and I type 7, the value > becomes 50007. > > However if I change the project to use a Qt GUI, it works as I expect, > i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I > have been able to reproduce this behaviour. > > Is that normal for GTK+? Is there anything I can do short of using Qt? > Am I doing something wrong? > > Also, I can't find any documentation why I might use Qt in Gambas as > opposed to GTK+ in Gambas. Opinions on what is best and why will be > appreciated. > Which version of Gambas do you use? I had to make an hack in gb.gtk recently to make all basic events (Mouse, Keyboard, Enter and Leave) behave the same way as in gb.qt. But the 2.17 is not released yet (I'm currently busy with a theatre play), but you can try /branches/2.0 in the svn repository. Can you make a little project for me that has the bug you describe? I will test it with the future 2.17, and I will see if the bug has gone. Regards, -- Beno?t Minisini From gambas at ...1... Tue Oct 13 19:01:44 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Oct 2009 19:01:44 +0200 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: <1f1e8c1b0910130811j6cb5a558raf839fdf3dd5f9f1@...627...> References: <1255417491.27440.28.camel@...2304...> <1f1e8c1b0910130811j6cb5a558raf839fdf3dd5f9f1@...627...> Message-ID: <200910131901.44059.gambas@...1...> > NNNNNNNNNNNOOOOOOOOOOOOOOOOOO > > Please do not depricate gb.gtk. > > I use it all the time, and I refuse to use qt (stubborn me!) > I'm not a gnome user, The closest I get is xfce4, but most of the time > I'd use something like flux/openbox or awesome. The gtk toolkit is too > popular to be depricated. > gb.gtk is not deprecated! GTK+ is just a library far more difficult to program than QT, and less finished. There are bugs in both GTK+ and QT too, but finding a workaround is usually more difficult in GTK+ too. So at the moment, gb.gtk is behind gb.qt, but the gap is less important in the latest Gambas version. And continue to use gb.gtk! As I usually use gb.qt (because GTK+ is so slower), it's harder for me to find bugs in gb.gtk. :-) Regards, -- Beno?t Minisini From gambas at ...1... Tue Oct 13 19:06:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 13 Oct 2009 19:06:24 +0200 Subject: [Gambas-user] serial port In-Reply-To: <68652a0b0910130909l21dbf55fl64d9e7602e46636b@...627...> References: <25518421.post@...1379...> <68652a0b0909280533y27667087k19fcb9dc1c450312@...627...> <68652a0b0910130909l21dbf55fl64d9e7602e46636b@...627...> Message-ID: <200910131906.24981.gambas@...1...> > Hello, > > At the end it works almost fine to try to open the serial port and if no > error I suppose that it works. > Now I try to use it. I do the same for ttyS0..S9. > > On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it finds > out that there is no serial port. > On the ttyS2 it finds something (no error when I open). I don't know what > it is and no idea how to find out. > > For those where I found the port, I ask for the equipment ID to identify if > it's there or not. OK for the S0, but the ttyS2 completely freeze and when > I try to close the port there is no reaction. > > In such a case (TRY mySerialPort.close --- no response, no error message > but the program frozen) is there any way to stop the process with a > timeout or does anyone has an ide ho to handle it? > > Any help would be appreciated. > > Robi > Apparently when closing a serial port, the gb.net component does not just call the close() system call. Can you break the frozen program with gdb and see where it is locked? $ gdb /usr/bin/gbx2 ... (gdb) bt ... Send me the result of the 'bt' command. Regards, -- Beno?t Minisini From robert1juhasz at ...626... Tue Oct 13 20:01:20 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Tue, 13 Oct 2009 20:01:20 +0200 Subject: [Gambas-user] serial port In-Reply-To: <200910131906.24981.gambas@...1...> References: <25518421.post@...1379...> <68652a0b0909280533y27667087k19fcb9dc1c450312@...627...> <68652a0b0910130909l21dbf55fl64d9e7602e46636b@...627...> <200910131906.24981.gambas@...1...> Message-ID: <68652a0b0910131101o1dc12ba1gbcf08f45c929cbe@...627...> Salut, I tried to follow what you wrote, here you are the result. >From the other side when working on it and waiting for a little longer time, I recognised that the program is not permanently frozen, after several 10 seconds it came back to normal. So at the end it's not so serious as expected. Regards, Robi ---------------------------------------------------------------------------------------------- (gdb) bt #0 0xb7fe8430 in __kernel_vsyscall () #1 0xb786514c in __close_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 #2 0xb691de2e in CloseSerialPort (fd=18, oldtio=0xa3037b8) at tools.c:353 #3 0xb6922850 in CSerialPort_stream_close (stream=0xa303718) at CSerialPort.c:261 #4 0x0805529d in STREAM_close (stream=0xa303718) at gbx_stream.c:180 #5 0x0804e8b0 in EXEC_call_native (exec=0x8065c73 , object=0xa303710, type=0, param=0x9f1d338) at gbx_exec.c:844 #6 0x0804f179 in EXEC_native () at gbx_exec.c:962 #7 0x0806bc90 in EXEC_loop () at gbx_exec_loop.c:1042 #8 0x0804f487 in EXEC_function_loop () at gbx_exec.c:703 #9 0x0804f75d in EXEC_function_real () at gbx_exec.c:690 #10 0x0805d5ef in raise_event (observer=, object=0xa274c10, func_id=, nparam=0) at gbx_api.c:490 #11 0x0805db45 in GB_Raise (object=0xa274c10, event_id=16, nparam=0) at gbx_api.c:594 #12 0xb726fa38 in gb_raise_button_Click (sender=0xa289ed8) at CButton.cpp:44 #13 0xb724e15e in gControl::emit (this=0x0, signal=0xb6924ff4) at gcontrol.cpp:1482 #14 0xb72535af in bt_click (object=0xa259c88, data=0xa289ed8) at gbutton.cpp:58 #15 0xb6c193a4 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #16 0xb6c0bc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 ---Type to continue, or q to quit--- #17 0xb6c21e57 in ?? () from /usr/lib/libgobject-2.0.so.0 #18 0xb6c234b9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #19 0xb6c23936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #20 0xb6edcbda in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0 #21 0xb6ede1f8 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #22 0xb6c193a4 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #23 0xb6c0a3d9 in ?? () from /usr/lib/libgobject-2.0.so.0 #24 0xb6c0bc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #25 0xb6c216c0 in ?? () from /usr/lib/libgobject-2.0.so.0 #26 0xb6c234b9 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #27 0xb6c23936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #28 0xb6edcc7a in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0 #29 0xb6edccb3 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #30 0xb6f97526 in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #31 0xb6c0a3d9 in ?? () from /usr/lib/libgobject-2.0.so.0 #32 0xb6c0bc7b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #33 0xb6c21aff in ?? () from /usr/lib/libgobject-2.0.so.0 #34 0xb6c2334f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #35 0xb6c23936 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #36 0xb70b22ae in ?? () from /usr/lib/libgtk-x11-2.0.so.0 #37 0xb6f8ff7c in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #38 0xb6f91327 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 ------------------------------------------------------------------------------------------------------------------------- 2009/10/13 Beno?t Minisini > > Hello, > > > > At the end it works almost fine to try to open the serial port and if no > > error I suppose that it works. > > Now I try to use it. I do the same for ttyS0..S9. > > > > On the ttyS0 it finds the serial port correctly, on the S1, S3-S9 it > finds > > out that there is no serial port. > > On the ttyS2 it finds something (no error when I open). I don't know what > > it is and no idea how to find out. > > > > For those where I found the port, I ask for the equipment ID to identify > if > > it's there or not. OK for the S0, but the ttyS2 completely freeze and > when > > I try to close the port there is no reaction. > > > > In such a case (TRY mySerialPort.close --- no response, no error message > > but the program frozen) is there any way to stop the process with a > > timeout or does anyone has an ide ho to handle it? > > > > Any help would be appreciated. > > > > Robi > > > > Apparently when closing a serial port, the gb.net component does not just > call > the close() system call. > > Can you break the frozen program with gdb and see where it is locked? > > $ gdb /usr/bin/gbx2 > ... > (gdb) bt > ... > > Send me the result of the 'bt' command. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Tue Oct 13 20:07:30 2009 From: math.eber at ...221... (Matti) Date: Tue, 13 Oct 2009 20:07:30 +0200 Subject: [Gambas-user] Trash In-Reply-To: <6c208f950910090622h744bb90dnb882fad74ea9597c@...627...> References: <4ACE3686.1060907@...221...> <6c208f950910090622h744bb90dnb882fad74ea9597c@...627...> Message-ID: <4AD4C1E2.10009@...221...> Now I found an even easier way. The solution is already on board. Under KDE, just use SHELL "kioclient move /home/user/filename trash:/" That's all. Moves the file to trash with all the recover informations and even shows the correct desktop icon. For Gnome, there should be a similar command available. Regards Matti Jose J. Rodriguez schrieb: > On 10/8/09, Matti wrote: >> Is there any way to move files and directories to the user's trash bin? >> > > Until someone implements the freedesktop.org trash specs on Gambas, > you could try this: http://code.google.com/p/trash-cli/ > > Or a more involved general solution: http://freshmeat.net/projects/delsafe/ > > Regards, > Joe1962 From nospam.nospam.nospam at ...626... Tue Oct 13 23:01:19 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 14 Oct 2009 08:01:19 +1100 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: <200910131858.30150.gambas@...1...> References: <1255417491.27440.28.camel@...2304...> <200910131858.30150.gambas@...1...> Message-ID: <1255467679.3932.5.camel@...2304...> On Tue, 2009-10-13 at 18:58 +0200, Beno?t Minisini wrote: > > This has me pulling my hair out. I think I have narrowed the problem > > down to the GTK+ toolkit for Gambas. > > > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > > and set their default values, when I tab to the TextBox I can over-type > > the text, but when I tab to the ValueBox, the number I type is appended: > > > > For example, if the ValueBox contains 5000 and I type 7, the value > > becomes 50007. > > > > However if I change the project to use a Qt GUI, it works as I expect, > > i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I > > have been able to reproduce this behaviour. > > > > Is that normal for GTK+? Is there anything I can do short of using Qt? > > Am I doing something wrong? > > > > Also, I can't find any documentation why I might use Qt in Gambas as > > opposed to GTK+ in Gambas. Opinions on what is best and why will be > > appreciated. > > > > Which version of Gambas do you use? V2.16. > I had to make an hack in gb.gtk recently > to make all basic events (Mouse, Keyboard, Enter and Leave) behave the same > way as in gb.qt. But the 2.17 is not released yet (I'm currently busy with a > theatre play), but you can try /branches/2.0 in the svn repository. > > Can you make a little project for me that has the bug you describe? I will > test it with the future 2.17, and I will see if the bug has gone. I can make one a lot smaller than "little": PUBLIC SUB Form_Open() ValueBox1.Value = 999 END :) Create a new GTK+ project with no options, drag a ValueBox to the default form. When you run the app, tab into the ValueBox so that 999 is selected then type another number. From math.eber at ...221... Wed Oct 14 09:28:45 2009 From: math.eber at ...221... (Matti) Date: Wed, 14 Oct 2009 09:28:45 +0200 Subject: [Gambas-user] TextEdit and HTML Message-ID: <4AD57DAD.70108@...221...> Somewhere in the mailing archives I've read that a TextEdit could display HTML files "nicely". But how? When I do textstr = File.Load("xyfile.html") TextEdit1.Text = textstr a plain text is shown, without any formatting. All the HTML tags are ignored. And the special chars like ??? are displayed as rectangles. Is there any way to tell TextEdit to use formatting and encoding? Thanks Matti From nospam.nospam.nospam at ...626... Wed Oct 14 09:47:16 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 14 Oct 2009 18:47:16 +1100 Subject: [Gambas-user] TextEdit and HTML In-Reply-To: <4AD57DAD.70108@...221...> References: <4AD57DAD.70108@...221...> Message-ID: <1255506436.3688.4.camel@...2304...> On Wed, 2009-10-14 at 09:28 +0200, Matti wrote: > Somewhere in the mailing archives I've read that a TextEdit could display HTML files "nicely". > But how? > > When I do > textstr = File.Load("xyfile.html") > TextEdit1.Text = textstr > > a plain text is shown, without any formatting. All the HTML tags are ignored. > And the special chars like ??? are displayed as rectangles. > > Is there any way to tell TextEdit to use formatting and encoding? TextEdit is for RichText. RichText <> HTML. From bill-lancaster at ...2231... Wed Oct 14 12:57:46 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 14 Oct 2009 03:57:46 -0700 (PDT) Subject: [Gambas-user] Custom Colour Message-ID: <25888950.post@...1379...> Is it possible to set a control's backcolor to a custom value? If so how? -- View this message in context: http://www.nabble.com/Custom-Colour-tp25888950p25888950.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Wed Oct 14 13:46:41 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 14 Oct 2009 22:46:41 +1100 Subject: [Gambas-user] Custom Colour In-Reply-To: <25888950.post@...1379...> References: <25888950.post@...1379...> Message-ID: <1255520801.3688.10.camel@...2304...> On Wed, 2009-10-14 at 03:57 -0700, Bill-Lancaster wrote: > Is it possible to set a control's backcolor to a custom value? > If so how? Control.BackColor Or Control.Background TextBox1.BackColor = &H0000EF0F& From nospam.nospam.nospam at ...626... Wed Oct 14 13:53:23 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 14 Oct 2009 22:53:23 +1100 Subject: [Gambas-user] DataBrowser question Message-ID: <1255521203.3688.16.camel@...2304...> Is there a way to selectively disable the buttons on the navigation panel shown on a DataBrowser? I want to allow users to move forward and back through the data but not add, delete or save changes. Thanks for your assistance. From oceanosoftlapalma at ...626... Wed Oct 14 16:04:20 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 14 Oct 2009 16:04:20 +0200 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: <82bffccf0910130814y2fd22a67k606443e90dc1d38@...627...> References: <1255417491.27440.28.camel@...2304...> <82bffccf0910130814y2fd22a67k606443e90dc1d38@...627...> Message-ID: Dimitris, I understand you said and think the same, but if you're programming software for a customer you only want it run and I think qt components in gambas got less bugs than gtk+. Benoit said is more difficult for him to program in gtk+ than QT althoug he also said he's thinking to continue gtk+ componets. I remember some months ago I found a bug in gtk+ component (Option box was no able to change to 3rd state), I said to Benoit and in less than a day was fixed. It was amazing fast, but at this point I preferred to change to qt componets (in qr works fine at the first). Now I'm deploying my fiveth gambas application in a customer server (on before I used to deploy my VB apps in Citrix enviroments but now I use gambas + FreeNX) and I havent any problems with my apps with qt components. Please note it's only my opinion. Regards, Ricardo 2009/10/13 Dimitris Anogiatis > Ricardo, > > If I may express my opinion I think it was a very wise choice on Benoit's > side to support both GTK+ and QT > (even though it seems like it's a rat race trying to debug both components > every time qt works gtk doesn't > and vice versa or both don't work at the same time) > > I believe that both technologies have their merits and their uses, and > using > either or is more of a a design choice > of the programmer to go with either or and I think that deprecating gb.gtk > would be a pretty big strategy mistake. > > It's one of the things that I like about Gambas, that it makes my > application work in both of them. > > Regards, > Dimitris > > > 2009/10/13 Ricardo D?az Mart?n > > > When I started programing gambas I used gtk+ components because I'm gnome > > users. I like to try my apps in kde and gnome and it's a fact at the > > moment, > > the same code works different in both (and sometimes doen't work in > gtk+). > > > > For this reason, and because I know Benoit use KDE I allways use qt > > components in my apps. Maybe it's possible gtk+ component will be > > deprecated. > > > > Regards, > > Ricardo > > > > 2009/10/13 nospam.nospam.nospam at ...626... < > nospam.nospam.nospam at ...626...> > > > > > This has me pulling my hair out. I think I have narrowed the problem > > > down to the GTK+ toolkit for Gambas. > > > > > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > > > and set their default values, when I tab to the TextBox I can over-type > > > the text, but when I tab to the ValueBox, the number I type is > appended: > > > > > > For example, if the ValueBox contains 5000 and I type 7, the value > > > becomes 50007. > > > > > > However if I change the project to use a Qt GUI, it works as I expect, > > > i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I > > > have been able to reproduce this behaviour. > > > > > > Is that normal for GTK+? Is there anything I can do short of using Qt? > > > Am I doing something wrong? > > > > > > Also, I can't find any documentation why I might use Qt in Gambas as > > > opposed to GTK+ in Gambas. Opinions on what is best and why will be > > > appreciated. > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > > is the only developer event you need to attend this year. Jumpstart > your > > > developing skills, take BlackBerry mobile applications to market and > stay > > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > > http://p.sf.net/sfu/devconference > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Wed Oct 14 16:16:13 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 14 Oct 2009 16:16:13 +0200 Subject: [Gambas-user] DataBrowser question In-Reply-To: <1255521203.3688.16.camel@...2304...> References: <1255521203.3688.16.camel@...2304...> Message-ID: I use for do this no contol box. I got a form with a grid view with two columns (first length = 0) and I got a funtion that open the form fill the gridvied with available values (at fist row the key and at the second the visible value for the user) and send to the form the value you choice. In the form a put a textbox and a find button in order the user can find values at the list. The grid can be filled from a SQL or a coma-separated string. I use this component in all my apps. If someone needs it I can put here . Note the component is in spanish ;-) Regards, Ricardo 2009/10/14 nospam.nospam.nospam at ...626... > Is there a way to selectively disable the buttons on the navigation > panel shown on a DataBrowser? I want to allow users to move forward and > back through the data but not add, delete or save changes. > > Thanks for your assistance. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Wed Oct 14 17:56:13 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Wed, 14 Oct 2009 17:56:13 +0200 Subject: [Gambas-user] DataBrowser question In-Reply-To: References: <1255521203.3688.16.camel@...2304...> Message-ID: Ricardo: I'm interested in your component. I have done something like this, and I like to compare. Thanks 2009/10/14 Ricardo D?az Mart?n > I use for do this no contol box. I got a form with a grid view with two > columns (first length = 0) and I got a funtion that open the form fill the > gridvied with available values (at fist row the key and at the second the > visible value for the user) and send to the form the value you choice. In > the form a put a textbox and a find button in order the user can find > values > at the list. The grid can be filled from a SQL or a coma-separated string. > > I use this component in all my apps. > > If someone needs it I can put here . Note the component is in spanish ;-) > > Regards, > Ricardo > > 2009/10/14 nospam.nospam.nospam at ...626... > > > Is there a way to selectively disable the buttons on the navigation > > panel shown on a DataBrowser? I want to allow users to move forward and > > back through the data but not add, delete or save changes. > > > > Thanks for your assistance. > > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Wed Oct 14 18:00:04 2009 From: math.eber at ...221... (Matti) Date: Wed, 14 Oct 2009 18:00:04 +0200 Subject: [Gambas-user] TextEdit and HTML In-Reply-To: <1255506436.3688.4.camel@...2304...> References: <4AD57DAD.70108@...221...> <1255506436.3688.4.camel@...2304...> Message-ID: <4AD5F584.8070803@...221...> Yes, of course. But if you'd load a rtf-file into TextEdit, you'd see why I tried html. All the meta informations of rtf are shown as text, that's not useable. No, the solution is easier: just activate qt.kde and qt.kde.html and use the control WebBrowser. Works perfectly. Didn't see it before, sorry. Regards Matti nospam.nospam.nospam at ...626... schrieb: > > TextEdit is for RichText. > > RichText <> HTML. From math.eber at ...221... Wed Oct 14 18:08:06 2009 From: math.eber at ...221... (Matti) Date: Wed, 14 Oct 2009 18:08:06 +0200 Subject: [Gambas-user] DataBrowser question In-Reply-To: <1255521203.3688.16.camel@...2304...> References: <1255521203.3688.16.camel@...2304...> Message-ID: <4AD5F766.5050008@...221...> DataSource1.ReadOnly = TRUE and the buttons are gone. nospam.nospam.nospam at ...626... schrieb: > Is there a way to selectively disable the buttons on the navigation > panel shown on a DataBrowser? I want to allow users to move forward and > back through the data but not add, delete or save changes. > > Thanks for your assistance. From gambas at ...1... Wed Oct 14 18:56:04 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Oct 2009 18:56:04 +0200 Subject: [Gambas-user] serial port In-Reply-To: <68652a0b0910131101o1dc12ba1gbcf08f45c929cbe@...627...> References: <25518421.post@...1379...> <200910131906.24981.gambas@...1...> <68652a0b0910131101o1dc12ba1gbcf08f45c929cbe@...627...> Message-ID: <200910141856.04792.gambas@...1...> > Salut, > > I tried to follow what you wrote, here you are the result. > > >From the other side when working on it and waiting for a little longer > > time, > > I recognised that the program is not permanently frozen, after several 10 > seconds it came back to normal. So at the end it's not so serious as > expected. > > Regards, Robi So the 10 seconds freeze is during the close() system call. But I don't know how Linux handle serial ports well enough to understand why there is such a freeze. Maybe a deep google search could bring up some information about that? -- Beno?t Minisini From gambas at ...1... Wed Oct 14 19:35:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 14 Oct 2009 19:35:24 +0200 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: <1255467679.3932.5.camel@...2304...> References: <1255417491.27440.28.camel@...2304...> <200910131858.30150.gambas@...1...> <1255467679.3932.5.camel@...2304...> Message-ID: <200910141935.24489.gambas@...1...> > On Tue, 2009-10-13 at 18:58 +0200, Beno?t Minisini wrote: > > > This has me pulling my hair out. I think I have narrowed the problem > > > down to the GTK+ toolkit for Gambas. > > > > > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > > > and set their default values, when I tab to the TextBox I can over-type > > > the text, but when I tab to the ValueBox, the number I type is > > > appended: > > > > > > For example, if the ValueBox contains 5000 and I type 7, the value > > > becomes 50007. > > > > > > However if I change the project to use a Qt GUI, it works as I expect, > > > i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I > > > have been able to reproduce this behaviour. > > > > > > Is that normal for GTK+? Is there anything I can do short of using Qt? > > > Am I doing something wrong? > > > > > > Also, I can't find any documentation why I might use Qt in Gambas as > > > opposed to GTK+ in Gambas. Opinions on what is best and why will be > > > appreciated. > > > > Which version of Gambas do you use? > > V2.16. > > > I had to make an hack in gb.gtk recently > > to make all basic events (Mouse, Keyboard, Enter and Leave) behave the > > same way as in gb.qt. But the 2.17 is not released yet (I'm currently > > busy with a theatre play), but you can try /branches/2.0 in the svn > > repository. > > > > Can you make a little project for me that has the bug you describe? I > > will test it with the future 2.17, and I will see if the bug has gone. > > I can make one a lot smaller than "little": > > PUBLIC SUB Form_Open() > > ValueBox1.Value = 999 > > END > > :) > > Create a new GTK+ project with no options, drag a ValueBox to the > default form. When you run the app, tab into the ValueBox so that 999 is > selected then type another number. > OK. There was a bug in the gb.gtk TextBox.Insert() method. The selected text was not deleted by the insertion, as usually expected. I fixed it in revision #2394. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Wed Oct 14 19:52:28 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 14 Oct 2009 19:52:28 +0200 Subject: [Gambas-user] DataBrowser question In-Reply-To: References: <1255521203.3688.16.camel@...2304...> Message-ID: Jorge, You got it. There are more subs/functions you need but I hope you can extract you want. Please note there is a class TipoString that is only used to pass a string by reference (I'm using gambas2) Regards, Ricardo El 14 de octubre de 2009 17:56, Jorge Carri?n escribi?: > Ricardo: > I'm interested in your component. I have done something like this, and I > like to compare. > Thanks > > > 2009/10/14 Ricardo D?az Mart?n > > > I use for do this no contol box. I got a form with a grid view with two > > columns (first length = 0) and I got a funtion that open the form fill > the > > gridvied with available values (at fist row the key and at the second the > > visible value for the user) and send to the form the value you choice. In > > the form a put a textbox and a find button in order the user can find > > values > > at the list. The grid can be filled from a SQL or a coma-separated > string. > > > > I use this component in all my apps. > > > > If someone needs it I can put here . Note the component is in spanish ;-) > > > > Regards, > > Ricardo > > > > 2009/10/14 nospam.nospam.nospam at ...626... < > nospam.nospam.nospam at ...626...> > > > > > Is there a way to selectively disable the buttons on the navigation > > > panel shown on a DataBrowser? I want to allow users to move forward and > > > back through the data but not add, delete or save changes. > > > > > > Thanks for your assistance. > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > > is the only developer event you need to attend this year. Jumpstart > your > > > developing skills, take BlackBerry mobile applications to market and > stay > > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > > http://p.sf.net/sfu/devconference > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > 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: gambas.tar.gz Type: application/x-gzip Size: 8536 bytes Desc: not available URL: From shordi at ...626... Wed Oct 14 21:42:11 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Wed, 14 Oct 2009 21:42:11 +0200 Subject: [Gambas-user] DataBrowser question In-Reply-To: References: <1255521203.3688.16.camel@...2304...> Message-ID: Gracias colega. Regards 2009/10/14 Ricardo D?az Mart?n > Jorge, > > You got it. There are more subs/functions you need but I hope you can > extract you want. Please note there is a class TipoString that is only used > to pass a string by reference (I'm using gambas2) > > Regards, > Ricardo > > El 14 de octubre de 2009 17:56, Jorge Carri?n escribi?: > > > Ricardo: > > I'm interested in your component. I have done something like this, and I > > like to compare. > > Thanks > > > > > > 2009/10/14 Ricardo D?az Mart?n > > > > > I use for do this no contol box. I got a form with a grid view with two > > > columns (first length = 0) and I got a funtion that open the form fill > > the > > > gridvied with available values (at fist row the key and at the second > the > > > visible value for the user) and send to the form the value you choice. > In > > > the form a put a textbox and a find button in order the user can find > > > values > > > at the list. The grid can be filled from a SQL or a coma-separated > > string. > > > > > > I use this component in all my apps. > > > > > > If someone needs it I can put here . Note the component is in spanish > ;-) > > > > > > Regards, > > > Ricardo > > > > > > 2009/10/14 nospam.nospam.nospam at ...626... < > > nospam.nospam.nospam at ...626...> > > > > > > > Is there a way to selectively disable the buttons on the navigation > > > > panel shown on a DataBrowser? I want to allow users to move forward > and > > > > back through the data but not add, delete or save changes. > > > > > > > > Thanks for your assistance. > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > > > is the only developer event you need to attend this year. Jumpstart > > your > > > > developing skills, take BlackBerry mobile applications to market and > > stay > > > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > > > http://p.sf.net/sfu/devconference > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > > is the only developer event you need to attend this year. Jumpstart > your > > > developing skills, take BlackBerry mobile applications to market and > stay > > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > > http://p.sf.net/sfu/devconference > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From nospam.nospam.nospam at ...626... Wed Oct 14 23:12:43 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Thu, 15 Oct 2009 08:12:43 +1100 Subject: [Gambas-user] DataBrowser question In-Reply-To: <4AD5F766.5050008@...221...> References: <1255521203.3688.16.camel@...2304...> <4AD5F766.5050008@...221...> Message-ID: <1255554763.3733.8.camel@...2304...> On Wed, 2009-10-14 at 18:08 +0200, Matti wrote: > DataSource1.ReadOnly = TRUE > and the buttons are gone. Ah! Absolutely brilliant. Thank you. It's not exactly clear in the documentation, and I searched everywhere before asking. I've sent an email to "gambas at ...1..." to request signup to work on the documentation so I clarify these things as I go. It's the least I can do. > nospam.nospam.nospam at ...626... schrieb: > > Is there a way to selectively disable the buttons on the navigation > > panel shown on a DataBrowser? I want to allow users to move forward and > > back through the data but not add, delete or save changes. > > > > Thanks for your assistance. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nospam.nospam.nospam at ...626... Wed Oct 14 23:19:19 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Thu, 15 Oct 2009 08:19:19 +1100 Subject: [Gambas-user] Normal behaviour for GTK+? In-Reply-To: <200910141935.24489.gambas@...1...> References: <1255417491.27440.28.camel@...2304...> <200910131858.30150.gambas@...1...> <1255467679.3932.5.camel@...2304...> <200910141935.24489.gambas@...1...> Message-ID: <1255555159.3733.20.camel@...2304...> On Wed, 2009-10-14 at 19:35 +0200, Beno?t Minisini wrote: > > On Tue, 2009-10-13 at 18:58 +0200, Beno?t Minisini wrote: > > > > This has me pulling my hair out. I think I have narrowed the problem > > > > down to the GTK+ toolkit for Gambas. > > > > > > > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > > > > and set their default values, when I tab to the TextBox I can over-type > > > > the text, but when I tab to the ValueBox, the number I type is > > > > appended: > > > > > > > > For example, if the ValueBox contains 5000 and I type 7, the value > > > > becomes 50007. > > > > > > > > However if I change the project to use a Qt GUI, it works as I expect, > > > > i.e. if the ValueBox contains 5000 and I type 7, the value becomes 7. I > > > > have been able to reproduce this behaviour. > > > > > > > > Is that normal for GTK+? Is there anything I can do short of using Qt? > > > > Am I doing something wrong? > > > > > > > > Also, I can't find any documentation why I might use Qt in Gambas as > > > > opposed to GTK+ in Gambas. Opinions on what is best and why will be > > > > appreciated. > > > > > > Which version of Gambas do you use? > > > > V2.16. > > > > > I had to make an hack in gb.gtk recently > > > to make all basic events (Mouse, Keyboard, Enter and Leave) behave the > > > same way as in gb.qt. But the 2.17 is not released yet (I'm currently > > > busy with a theatre play), but you can try /branches/2.0 in the svn > > > repository. > > > > > > Can you make a little project for me that has the bug you describe? I > > > will test it with the future 2.17, and I will see if the bug has gone. > > > > I can make one a lot smaller than "little": > > > > PUBLIC SUB Form_Open() > > > > ValueBox1.Value = 999 > > > > END > > > > :) > > > > Create a new GTK+ project with no options, drag a ValueBox to the > > default form. When you run the app, tab into the ValueBox so that 999 is > > selected then type another number. > > > > OK. There was a bug in the gb.gtk TextBox.Insert() method. The selected text > was not deleted by the insertion, as usually expected. > > I fixed it in revision #2394. lol - I found my first bug! I'll buy some Aussie beer tonight and will celebrate. Glad I could help. Look, I've got a lot of documentation experience so I've sent an email to 'gambas' to sign up for access so I can help out. If the requests go to you, the one arriving about now is from me. > Regards, > From nospam.nospam.nospam at ...626... Wed Oct 14 23:23:36 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Thu, 15 Oct 2009 08:23:36 +1100 Subject: [Gambas-user] DataBrowser question In-Reply-To: References: <1255521203.3688.16.camel@...2304...> Message-ID: <1255555416.3733.23.camel@...2304...> On Wed, 2009-10-14 at 16:16 +0200, Ricardo D?az Mart?n wrote: > If someone needs it I can put here . I'd like to see it. > Note the component is in spanish ;-) I'm sure the code will speak for itself :) From vkan53 at ...2300... Thu Oct 15 00:53:34 2009 From: vkan53 at ...2300... (Vassilis K) Date: Thu, 15 Oct 2009 01:53:34 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910150153.34807.vkan53@...2300...> Hello, I want to change the color of about 100 Labels of a form according to the values of a table in the database. If the value of the field thesi is 12, I want to make Label12 look red (with red background color). For this purpose I made the following : PUBLIC SUB Form_Open() DIM rsThesi AS Result DIM i AS Integer ME.Title = "Sxedio" MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") FOR iD = 0 TO rsThesi!AA i = rsThesi!thesi Label(["i"]).Background = Color.Red NEXT MODMain.$Con.Commit() END But I get the error : "Type mismatch: Wanted Label got string instead" Any ideas? From math.eber at ...221... Thu Oct 15 07:27:00 2009 From: math.eber at ...221... (Matti) Date: Thu, 15 Oct 2009 07:27:00 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910150153.34807.vkan53@...2300...> References: <200910150153.34807.vkan53@...2300...> Message-ID: <4AD6B2A4.9070403@...221...> I guess that "Label(["i"])" causes the problem. I don't think you can address them that way, but need an array of labels. Here, it works with PRIVATE $alblTime AS NEW Object[] $alblTime[i] = NEW Label(ME) And then you can address every label with $alblTime[i].Property = xy Regards Matti Vassilis K schrieb: > Hello, > I want to change the color of about 100 Labels of a form according to the > values of a table in the database. > If the value of the field thesi is 12, I want to make Label12 look red (with > red background color). > For this purpose I made the following : > > PUBLIC SUB Form_Open() > DIM rsThesi AS Result > DIM i AS Integer > ME.Title = "Sxedio" > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0") > FOR iD = 0 TO rsThesi!AA > i = rsThesi!thesi > Label(["i"]).Background = Color.Red > NEXT > MODMain.$Con.Commit() > END > > But I get the error : > "Type mismatch: Wanted Label got string instead" > Any ideas? > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vkan53 at ...2300... Thu Oct 15 20:17:19 2009 From: vkan53 at ...2300... (Vassilis K) Date: Thu, 15 Oct 2009 21:17:19 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910152117.19839.vkan53@...2300...> I changed it as you said : PRIVATE $alblTime AS NEW Object[] PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result DIM iD AS Long MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") FOR iD = 0 TO rsThesi!AA i = rsThesi!thesi $alblTime[i] = NEW Label(ME) $alblTime[i].Background = Color.Red NEXT MODMain.$Con.Commit() END Now I get "Out of bounds" error at line : $alblTime[i] = NEW Label(ME) Did I make something wrong? From wdahn at ...1000... Thu Oct 15 20:46:18 2009 From: wdahn at ...1000... (Werner) Date: Fri, 16 Oct 2009 02:46:18 +0800 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910152117.19839.vkan53@...2300...> References: <200910152117.19839.vkan53@...2300...> Message-ID: <4AD76DFA.7050307@...1000...> Vassilis K wrote: > I changed it as you said : > > PRIVATE $alblTime AS NEW Object[] > > PUBLIC SUB Form_Open() > DIM i AS Integer > DIM rsThesi AS Result > DIM iD AS Long > > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0") > FOR iD = 0 TO rsThesi!AA > i = rsThesi!thesi > $alblTime[i] = NEW Label(ME) > $alblTime[i].Background = Color.Red > NEXT > MODMain.$Con.Commit() > END > > Now I get "Out of bounds" error at line : $alblTime[i] = NEW Label(ME) > Did I make something wrong? > It is data dependent. What happens when i = rsThesi!thesi $alblTime[i] = NEW Label(ME) where rsThesi!thesi is -5000? Regards, Werner From mohareve at ...626... Thu Oct 15 21:35:41 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 15 Oct 2009 21:35:41 +0200 Subject: [Gambas-user] Using masks Message-ID: Is it possible to use an image as a background of a TabStrip? Are the masks usable for that? How can I attach a mask to an object? I would like to have an example. Thanks! From dosida at ...626... Thu Oct 15 22:12:24 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 15 Oct 2009 14:12:24 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4AD76DFA.7050307@...1000...> References: <200910152117.19839.vkan53@...2300...> <4AD76DFA.7050307@...1000...> Message-ID: <82bffccf0910151312u3634fb62w66e4bf3fa4702e1c@...627...> Vassili, It's not going to work #1 cause you're defining a dynamic array with no apparent bounds #2 it's going to create a synchronization problem that way because if rsThesi!AA is an autoincrement field (unless I'm guessing wrong) and if you delete and add a row then things tend to get a bit messy I am not sure if there is such a property but if there is something like rsThesi.Count in your loop do this FOR iD = 0 TO rsThesi.Count -1 $alblTime.Add(NEW Label(ME)) $alblTime[iD].Background = Color.Red NEXT and iD should be the same type as rsThesi.Count (if not you might get an error) I hope this works for you and I hope I helped Regards, Dimitris On Thu, Oct 15, 2009 at 12:46 PM, Werner wrote: > Vassilis K wrote: > > I changed it as you said : > > > > PRIVATE $alblTime AS NEW Object[] > > > > PUBLIC SUB Form_Open() > > DIM i AS Integer > > DIM rsThesi AS Result > > DIM iD AS Long > > > > MODMain.Connect() > > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax > = > > 0") > > FOR iD = 0 TO rsThesi!AA > > i = rsThesi!thesi > > $alblTime[i] = NEW Label(ME) > > $alblTime[i].Background = Color.Red > > NEXT > > MODMain.$Con.Commit() > > END > > > > Now I get "Out of bounds" error at line : $alblTime[i] = NEW Label(ME) > > Did I make something wrong? > > > It is data dependent. What happens when > i = rsThesi!thesi > $alblTime[i] = NEW Label(ME) > where rsThesi!thesi is -5000? > > Regards, > Werner > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Thu Oct 15 22:12:11 2009 From: math.eber at ...221... (Matti) Date: Thu, 15 Oct 2009 22:12:11 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910152117.19839.vkan53@...2300...> References: <200910152117.19839.vkan53@...2300...> Message-ID: <4AD7821B.6020002@...221...> The "Out of bounds" error occurs when you haven't told Gambas how many items the array should hold. Just add a $alblTime.Resize(100) before you actually use the array. "100" means how many labels you have. Could be also a variable, like counting files... Regards Matti Vassilis K schrieb: > I changed it as you said : > > PRIVATE $alblTime AS NEW Object[] > > PUBLIC SUB Form_Open() > DIM i AS Integer > DIM rsThesi AS Result > DIM iD AS Long > > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0") > FOR iD = 0 TO rsThesi!AA > i = rsThesi!thesi > $alblTime[i] = NEW Label(ME) > $alblTime[i].Background = Color.Red > NEXT > MODMain.$Con.Commit() > END > > Now I get "Out of bounds" error at line : $alblTime[i] = NEW Label(ME) > Did I make something wrong? > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vkan53 at ...2300... Thu Oct 15 23:51:03 2009 From: vkan53 at ...2300... (Vassilis K) Date: Fri, 16 Oct 2009 00:51:03 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910160051.03282.vkan53@...2300...> Here is the new routine with all the testings that I tried: PRIVATE $alblTime AS NEW Object[] PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result DIM iD AS Long ME.Title = "?????? ?????? Camping" MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") $alblTime.Resize(100) $alblTime[iD] = NEW Label(ME) FOR iD = 1 TO rsThesi.Count - 1 $alblTime[iD].Background = Color.Red NEXT MODMain.$Con.Commit() END I get the error "Null Object" at line: "$alblTime[iD].Background = Color.Red" I 'll continue testing! You are right about the loop variant Dimitri. It must be rdThesi.Count-1. From dosida at ...626... Fri Oct 16 01:13:31 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 15 Oct 2009 17:13:31 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910160051.03282.vkan53@...2300...> References: <200910160051.03282.vkan53@...2300...> Message-ID: <82bffccf0910151613n232376cbv4e4c03f42acc9411@...627...> Vassili, I'm glad we caught 1 of the two errors now let's go for the next one :) $alblTime[iD] = NEW Label(ME) FOR iD = 1 TO rsThesi.Count - 1 $alblTime[iD].Background = Color.Red NEXT ok this has to be FOR iD = 1 TO rsThesi.Count - 1 $alblTime[iD] = NEW Label(ME) $alblTime[iD].Background = Color.Red NEXT for it to work. because in your approach you only add $alblTime[iD] = NEW Label(ME) once... and then you run the for loop. Which will find an object in $alblTime[iD] for iD = 0 (since iD gets the value 0 by default) but what about iD=1 or iD=2? I would also try to see if $alblTime.Resize(rdThesi.Count) works for you if it doesn't work I would change the loop to this and see if this works: While iD < rsThesi.Count $alblTime.Add(NEW Label(Me)) $alblTime[$alblTime.Count - 1].Background = Color.Red INC iD WEND it does the same thing as the for loop. And it should work... theoretically :) I hope it helps Keep up the good work Regards, Dimitris On Thu, Oct 15, 2009 at 3:51 PM, Vassilis K wrote: > Here is the new routine with all the testings that I tried: > > PRIVATE $alblTime AS NEW Object[] > > PUBLIC SUB Form_Open() > DIM i AS Integer > DIM rsThesi AS Result > DIM iD AS Long > ME.Title = "?????? ?????? Camping" > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0") > $alblTime.Resize(100) > $alblTime[iD] = NEW Label(ME) > FOR iD = 1 TO rsThesi.Count - 1 > $alblTime[iD].Background = Color.Red > NEXT > MODMain.$Con.Commit() > END > > I get the error c > I 'll continue testing! > > You are right about the loop variant Dimitri. It must be rdThesi.Count-1. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Fri Oct 16 08:15:21 2009 From: math.eber at ...221... (Matti) Date: Fri, 16 Oct 2009 08:15:21 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <82bffccf0910151613n232376cbv4e4c03f42acc9411@...627...> References: <200910160051.03282.vkan53@...2300...> <82bffccf0910151613n232376cbv4e4c03f42acc9411@...627...> Message-ID: <4AD80F79.3040509@...221...> Just to be sure about a possible error: With this method, you *create* new labels that have nothing to do with any existing label on your form. So, in your FOR...NEXT loop, you have to write .X, .Y, .Widht and .Height information of each label, otherwise you'll never see the new labels. Did you do that? Matti Dimitris Anogiatis schrieb: > Vassili, > > I'm glad we caught 1 of the two errors now let's go for the next one :) > > > $alblTime[iD] = NEW Label(ME) > FOR iD = 1 TO rsThesi.Count - 1 > $alblTime[iD].Background = Color.Red > NEXT > > ok this has to be > > FOR iD = 1 TO rsThesi.Count - 1 > $alblTime[iD] = NEW Label(ME) > $alblTime[iD].Background = Color.Red > NEXT > > for it to work. > > because in your approach you only add > > $alblTime[iD] = NEW Label(ME) > > once... and then you run the for loop. Which will find an object in > $alblTime[iD] for iD = 0 (since iD gets the value 0 by default) > > but what about iD=1 or iD=2? > > I would also try to see if $alblTime.Resize(rdThesi.Count) works for you > > if it doesn't work I would change the loop to this and see if this works: > > While iD < rsThesi.Count > $alblTime.Add(NEW Label(Me)) > $alblTime[$alblTime.Count - 1].Background = Color.Red > INC iD > WEND > > it does the same thing as the for loop. And it should work... theoretically > :) > > I hope it helps > Keep up the good work > > Regards, > Dimitris > > On Thu, Oct 15, 2009 at 3:51 PM, Vassilis K wrote: > >> Here is the new routine with all the testings that I tried: >> >> PRIVATE $alblTime AS NEW Object[] >> >> PUBLIC SUB Form_Open() >> DIM i AS Integer >> DIM rsThesi AS Result >> DIM iD AS Long >> ME.Title = "?????? ?????? Camping" >> MODMain.Connect() >> rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = >> 0") >> $alblTime.Resize(100) >> $alblTime[iD] = NEW Label(ME) >> FOR iD = 1 TO rsThesi.Count - 1 >> $alblTime[iD].Background = Color.Red >> NEXT >> MODMain.$Con.Commit() >> END >> >> I get the error c >> I 'll continue testing! >> >> You are right about the loop variant Dimitri. It must be rdThesi.Count-1. >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vkan53 at ...2300... Fri Oct 16 08:20:04 2009 From: vkan53 at ...2300... (Vassilis K) Date: Fri, 16 Oct 2009 09:20:04 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910160920.05102.vkan53@...2300...> Thanks for the answer Dimitri. You also caught error No 2 with the 2nd solution: $alblTime.Resize(100) FOR iD = 0 TO rsThesi.Count - 1 $alblTime[iD] = NEW Label(ME) $alblTime[iD].Background = Color.Red NEXT MODMain.$Con.Commit() END The form with 100 labels is loading but I can see no red color at the labels that the value of rsThesi!thesi is different than 0. I can only see some red color at the upper left of the form!! Let me explain that I already have put the 100 Labels on a form with names: Label1, Label2, ....Label100. All I need is to change their color when the value of the field thesi in the egrafes table is <> 0. The other option with while < rsThesi.Count etc is not working. From shordi at ...626... Fri Oct 16 11:37:27 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 16 Oct 2009 11:37:27 +0200 Subject: [Gambas-user] How can I zoom -in, zoom-out and rotate a picture? Message-ID: I need a images and pdf viewer. I've found a pdf viewer in the examples and I'm modifiying it to accept both pdf an image files. The problem is that the pdf class has the zoom and orientation method who allows rotate an zoom the image. But I can't find any example about do the same thing with a picture. It's posible do it? Thanks From alarch at ...2306... Thu Oct 15 20:37:55 2009 From: alarch at ...2306... (Alarch) Date: Thu, 15 Oct 2009 20:37:55 +0200 Subject: [Gambas-user] Gambas and cgi Message-ID: Hello, I would like some informations about gambas for cgi. I can't find tutorials about this aspect, in the wiki the link about web app in gambas is in italic (not yet existing). First of all, I am using debian, and I found the package gambas2-gb-web wich seems had hoc. if I dry run the install : # aptitude -s install gambas2-gb-web Les NOUVEAUX paquets suivants vont ?tre install?s?: gambas2-gb-web gambas2-runtime{a} libxtrap6{a} libxxf86misc1{a} shared-mime-info{a} x11-xserver-utils{a} xdg-utils{a} Is that enought for runing cgi on the server ? I suppose I need the runtime of course, but I don't know if the gambas cgi executable will use db-web on the serveur or is linked at compilation ? Maybe install gambas2-runtime will be enought ? Regards, -- Marc From dosida at ...626... Fri Oct 16 16:39:33 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 16 Oct 2009 08:39:33 -0600 Subject: [Gambas-user] Gambas and cgi In-Reply-To: References: Message-ID: <82bffccf0910160739u1fcabbadva31290ef3694e9c3@...627...> Hey Marc, gambas2-runtime and gambas2-gb-web might be enough to run a cgi script on your webserver... however if you need to use any other libraries you need to download then before you can actually use them. You also need to set up your webserver to run gbw2 as a CGI executable (like php-cgi is run to run php pages) and add cgi or another kind of extension for your gambas pages. Personally I use gsp for Gambas Server Pages I would also download gb.vb to use string functions that resemble those of Visual Basic although it's pretty easy to manipulate strings in Gambas. Take a look in the following link too http://gambasdoc.org/help/doc/serverpage?view I hope I helped Keep up the good work Regards, Dimitris On Thu, Oct 15, 2009 at 12:37 PM, Alarch wrote: > Hello, > > I would like some informations about gambas for cgi. I can't find tutorials > about this aspect, in the wiki the link about web app in gambas is in > italic (not yet existing). > > First of all, I am using debian, and I found the package gambas2-gb-web > wich > seems had hoc. > > if I dry run the install : > > # aptitude -s install gambas2-gb-web > > Les NOUVEAUX paquets suivants vont ?tre install?s : > gambas2-gb-web gambas2-runtime{a} libxtrap6{a} libxxf86misc1{a} > shared-mime-info{a} x11-xserver-utils{a} xdg-utils{a} > > Is that enought for runing cgi on the server ? I suppose I need the runtime > of course, but I don't know if the gambas cgi executable will use db-web on > the serveur or is linked at compilation ? Maybe install gambas2-runtime > will be enought ? > > Regards, > > -- > Marc > > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From alarch at ...2306... Fri Oct 16 18:32:27 2009 From: alarch at ...2306... (Alarch) Date: Fri, 16 Oct 2009 18:32:27 +0200 Subject: [Gambas-user] Gambas and cgi References: <82bffccf0910160739u1fcabbadva31290ef3694e9c3@...627...> Message-ID: Dimitris Anogiatis wrote: > Hey Marc, > > gambas2-runtime and gambas2-gb-web might be enough to run a cgi > script on your webserver... however if you need to use any other libraries > you need to download then before you can actually use them. > > You also need to set up your webserver to run gbw2 as a CGI executable > (like php-cgi is run to run php pages) and add cgi or another kind of > extension > for your gambas pages. > > Personally I use gsp for Gambas Server Pages > > I would also download gb.vb to use string functions that resemble those > of Visual Basic although it's pretty easy to manipulate strings in Gambas. > > Take a look in the following link too > > http://gambasdoc.org/help/doc/serverpage?view > > I hope I helped > Keep up the good work > > Regards, > Dimitris Well, I installed debian packages for gambas2-gb-web and gambas2-runtime but the debian version is gambas 2.7-1, so I don't have any gbs2 script. Is it possible to run cgi with this version ? On an other and, I download gambas2-2.16.0.tar.bz2 from source forge, but I don't find anything like gb-web, and I don't want to compile all gambas on my server, only the runtime and some components. What would the best solution ? Regards, -- Marc From vkan53 at ...2300... Fri Oct 16 20:11:55 2009 From: vkan53 at ...2300... (Vassilis K) Date: Fri, 16 Oct 2009 21:11:55 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910162111.56157.vkan53@...2300...> Since I did not want to make labels on run time, I got a solution to show red color as following: PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result DIM iD AS Long MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") WHILE iD < rsThesi.Count SELECT CASE rsThesi!thesi CASE 1 Label1.Background = Color.Red CASE 2 Label2.Background = Color.Red CASE 3 Label3.Background = Color.Red ..........................etc up to Label100 END SELECT INC iD WEND MODMain.$Con.Commit() END This solution shows only the first found Label (or rsThesi.thesi value) as Red the others remain uncolored even though they have number values as 10, 25 etc. I thing there is an error on the loop and it stops at the first found number of the field rsThesi!thesi. Any suggestions? From dosida at ...626... Fri Oct 16 23:48:10 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 16 Oct 2009 15:48:10 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910162111.56157.vkan53@...2300...> References: <200910162111.56157.vkan53@...2300...> Message-ID: <82bffccf0910161448t1448923enc58a7599ce1c415b@...627...> Vassili, you might also want to take a look at The Gridview control http://www.gambasdoc.org/help/comp/gb.qt/gridview and the Tableview control http://www.gambasdoc.org/help/comp/gb.form/tableview perhaps one of those two is a better approach than manipulating individual labels If you still want to experiment with your original label approach then this might help PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result DIM iD AS Long MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") 'Move rsThesi to the first position rsThesi.MoveFirst WHILE rsThesi.Index < rsThesi.Count SELECT CASE rsThesi!thesi CASE 1 Label1.Background = Color.Red CASE 2 Label2.Background = Color.Red CASE 3 Label3.Background = Color.Red ..........................etc up to Label100 END SELECT 'Move rsThesi to the next record rsThesi.MoveNext WEND END your previous code didn't work because you weren't moving through rsThesi's records one by one, you only checked the first one. this code should work... if I may add my 2 cents worth of programming wisdom, 100 labels can easily be replaced by a gridview and it would be a bit more visually appealing to the end user but it's up to you and what works best for you. I hope this helps Keep up the good work Regards Dimitris On Fri, Oct 16, 2009 at 12:11 PM, Vassilis K wrote: > > Since I did not want to make labels on run time, I got a solution to show > red > color as following: > > PUBLIC SUB Form_Open() > DIM i AS Integer > DIM rsThesi AS Result > DIM iD AS Long > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0") > WHILE iD < rsThesi.Count > SELECT CASE rsThesi!thesi > CASE 1 > Label1.Background = Color.Red > CASE 2 > Label2.Background = Color.Red > CASE 3 > Label3.Background = Color.Red > ..........................etc up to Label100 > END SELECT > INC iD > WEND > MODMain.$Con.Commit() > END > > This solution shows only the first found Label (or rsThesi.thesi value) as > Red > the others remain uncolored even though they have number values as 10, 25 > etc. > I thing there is an error on the loop and it stops at the first found > number > of the field rsThesi!thesi. > Any suggestions? > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From hartmut at ...2307... Sat Oct 17 01:13:53 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Sat, 17 Oct 2009 01:13:53 +0200 Subject: [Gambas-user] saving picturebox as video Message-ID: Hi all, I'm currently writing an application where I have the output of a webcam in a picturebox. After modifying the picturebox with overlayed text and graphics, I want to save the contents of this picturebox in any video format. ( avi, mpg, ogg whatever ) How can that be done ? Can anybody give me hints how to write the picturebox to a video file or how to stream the picturebox over the network and receive it with programs like vlc ? Any help appreciated Thanks Hartmut From bbruen at ...2308... Sat Oct 17 02:44:35 2009 From: bbruen at ...2308... (bbb888) Date: Fri, 16 Oct 2009 17:44:35 -0700 (PDT) Subject: [Gambas-user] Form exit code when [X] clicked Message-ID: <25919887.post@...1379...> I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly if the user uses an in-form exit such as a exit button : PUBLIC SUB btExit_Click() ME.Close(60) END But if the user clicks on the [X] in the titlebar all I get is 0 in rtn. Is there a way to trap the exit in the form? bruce -- View this message in context: http://www.nabble.com/Form-exit-code-when--X--clicked-tp25919887p25919887.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Sat Oct 17 02:45:35 2009 From: bbruen at ...2308... (bbb888) Date: Fri, 16 Oct 2009 17:45:35 -0700 (PDT) Subject: [Gambas-user] Project description Message-ID: <25919813.post@...1379...> Is there a way to access the project description field like Application.title? (or is it a missing property? :thinking: ) bruce -- View this message in context: http://www.nabble.com/Project-description-tp25919813p25919813.html Sent from the gambas-user mailing list archive at Nabble.com. From dosida at ...626... Sat Oct 17 04:13:46 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Fri, 16 Oct 2009 20:13:46 -0600 Subject: [Gambas-user] Form exit code when [X] clicked In-Reply-To: <25919887.post@...1379...> References: <25919887.post@...1379...> Message-ID: <82bffccf0910161913x1ce556a4he74c2e3f9522fc9b@...627...> Hey Bruce, Does it work for a normal form (not a Modal one)? Regards, Dimitris On Fri, Oct 16, 2009 at 6:44 PM, bbb888 wrote: > > I can get an exit code from a form shown with rtn = fm.ShowDialog() > correctly > if the user uses an in-form exit such as a exit button : > > > PUBLIC SUB btExit_Click() > > ME.Close(60) > > END > > > > But if the user clicks on the [X] in the titlebar all I get is 0 in rtn. > > > Is there a way to trap the exit in the form? > > > bruce > -- > View this message in context: > http://www.nabble.com/Form-exit-code-when--X--clicked-tp25919887p25919887.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Sat Oct 17 05:18:33 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sat, 17 Oct 2009 14:18:33 +1100 Subject: [Gambas-user] Form exit code when [X] clicked In-Reply-To: <82bffccf0910161913x1ce556a4he74c2e3f9522fc9b@...627...> References: <25919887.post@...1379...> <82bffccf0910161913x1ce556a4he74c2e3f9522fc9b@...627...> Message-ID: <1255749513.18339.13.camel@...2304...> On Fri, 2009-10-16 at 20:13 -0600, Dimitris Anogiatis wrote: > Hey Bruce, > > Does it work for a normal form (not a Modal one)? lol From nospam.nospam.nospam at ...626... Sat Oct 17 05:24:50 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sat, 17 Oct 2009 14:24:50 +1100 Subject: [Gambas-user] Form exit code when [X] clicked In-Reply-To: <25919887.post@...1379...> References: <25919887.post@...1379...> Message-ID: <1255749890.18339.21.camel@...2304...> On Fri, 2009-10-16 at 17:44 -0700, bbb888 wrote: > I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly > if the user uses an in-form exit such as a exit button : > > > PUBLIC SUB btExit_Click() > > ME.Close(60) > > END > > > > But if the user clicks on the [X] in the titlebar all I get is 0 in rtn. > > > Is there a way to trap the exit in the form? Create a new project. Add Button1 to FMain. Create a new form called Form1 <--- Check "Dialog box management" when you create it. That will create the support code you need next time you need this feature. Replace the code in the forms as described below. You will get 50 returned into nR if the cancel button is pressed, 150 if OK is pressed, and 100 if the closebox is clicked. ' *********************************************** ' Paste this into FMain, replace what's there ' *********************************************** ' Gambas class file PUBLIC SUB _new() END PUBLIC SUB Form_Open() END PUBLIC SUB Button1_Click() DIM nR AS Integer DIM f AS NEW Form1 nR = f.Run() DEBUG nR END ' *********************************************** ' Paste this into Form1, replace what's there ' *********************************************** ' Gambas class file PRIVATE SomeValue AS Integer PUBLIC SUB Run() AS Integer ME.ShowModal RETURN SomeValue END PUBLIC SUB btnOK_Click() SomeValue = 150 ME.Close END PUBLIC SUB btnCancel_Click() SomeValue = 50 ME.Close END PUBLIC SUB Form_Open() END PUBLIC SUB Form_Close() IF SomeValue = 0 THEN SomeValue = 100 ENDIF END From nospam.nospam.nospam at ...626... Sat Oct 17 08:18:02 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sat, 17 Oct 2009 17:18:02 +1100 Subject: [Gambas-user] Code Editor Problem Message-ID: <1255760282.4739.18.camel@...2304...> This looks like a bug to me. If I create a module name modConstants and add these two lines: PUBLIC CONST BTN_CANCEL AS Integer = 0 PUBLIC CONST BTN_OK AS Integer = 1 If I then edit, say, FMain, I can then refer to those constants by typing the module name and a period. Gambas will then show me BTN_CANCEL and BTN_OK in a popup window. No such thing happens if the module name is from 1 to 3 characters in length. The problem is, I need a module to be called k, nothing else, and I need the constants to be displayed when I type k and a period. I am working on a huge translation project that has 800+ constants and I want to save both thousands of needless key strokes and needless hours copying and pasting a longer module name. I could find no documentation regarding limitations on the name of modules. Comments anyone? From vkan53 at ...2300... Sat Oct 17 09:49:06 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sat, 17 Oct 2009 10:49:06 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910171049.06850.vkan53@...2300...> Dimitri I changed it to your proposed option and I get : "Result is not available" error at line: SELECT CASE rsThesi!thesi I do not know why it doesn't read the Result from database!!! You are right about the grid option. It looks more logical for 100 Labels! But I have made an image and put the Labels on it! So it is better to have an image than a grid! From doriano.blengino at ...1909... Sat Oct 17 10:47:22 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 17 Oct 2009 10:47:22 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910171049.06850.vkan53@...2300...> References: <200910171049.06850.vkan53@...2300...> Message-ID: <4AD9849A.1070502@...1909...> Vassilis K ha scritto: > Dimitri > > I changed it to your proposed option and I get : > "Result is not available" > error at line: > SELECT CASE rsThesi!thesi > > I do not know why it doesn't read the Result from database!!! > > You are right about the grid option. It looks more logical for 100 Labels! > But I have made an image and put the Labels on it! So it is better to have an > image than a grid! > Given that you have created 100 labels in Form1, without using in-middle containers (ie, all the labels reside directly on form1), you can change properties of each one with the following example routine: sub change_bgcolor(labelname as string) dim alabel as Label for each alabel in Form1.children if alabel.name = labelname then alabel.background = color.red end if next end You should use this subroutine in code like this: WHILE rsThesi.Index < rsThesi.Count change_bgcolor("Label" & rsThesi!thesi) rsThesi.next wend ...or something like that, If you used some in-middle container to arrange your labels, then you must use the name of that container instead of "Form1" in the subroutine above, because the labels are no more children of Form1 but children, for example, of VBox1 (well, Form1.Vbox1). You see, you can scan all the children of a container (and a form *is* a container). The example routine scans all the children until it finds the one you want, by name (passed in parameter). A more general method would be to write a subroutine returning a reference to the label, instead of setting properties directly in the subroutine. This would be far better from the cleaness of the code. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Sat Oct 17 10:52:50 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 17 Oct 2009 10:52:50 +0200 Subject: [Gambas-user] Code Editor Problem In-Reply-To: <1255760282.4739.18.camel@...2304...> References: <1255760282.4739.18.camel@...2304...> Message-ID: <4AD985E2.6070102@...1909...> Kad Mann ha scritto: > This looks like a bug to me. > > If I create a module name modConstants and add these two lines: > > PUBLIC CONST BTN_CANCEL AS Integer = 0 > PUBLIC CONST BTN_OK AS Integer = 1 > > If I then edit, say, FMain, I can then refer to those constants by > typing the module name and a period. Gambas will then show me BTN_CANCEL > and BTN_OK in a popup window. > > No such thing happens if the module name is from 1 to 3 characters in > length. The problem is, I need a module to be called k, nothing else, > and I need the constants to be displayed when I type k and a period. > > I am working on a huge translation project that has 800+ constants and I > want to save both thousands of needless key strokes and needless hours > copying and pasting a longer module name. > > I could find no documentation regarding limitations on the name of > modules. > I think it is not a limitation on the module's name, but a limitation on the auto-completion routine of the IDE. It seems that auto-completion waits for three characters before starting to clobber your editor with popups windows; but it would make sense to enable anyway the autocompletion if you type in a dot. This is not an answer to your question, but may help anyway. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Sat Oct 17 10:54:33 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sat, 17 Oct 2009 19:54:33 +1100 Subject: [Gambas-user] Code Editor Problem In-Reply-To: <4AD985E2.6070102@...1909...> References: <1255760282.4739.18.camel@...2304...> <4AD985E2.6070102@...1909...> Message-ID: <1255769673.4739.19.camel@...2304...> On Sat, 2009-10-17 at 10:52 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > This looks like a bug to me. > > > > If I create a module name modConstants and add these two lines: > > > > PUBLIC CONST BTN_CANCEL AS Integer = 0 > > PUBLIC CONST BTN_OK AS Integer = 1 > > > > If I then edit, say, FMain, I can then refer to those constants by > > typing the module name and a period. Gambas will then show me BTN_CANCEL > > and BTN_OK in a popup window. > > > > No such thing happens if the module name is from 1 to 3 characters in > > length. The problem is, I need a module to be called k, nothing else, > > and I need the constants to be displayed when I type k and a period. > > > > I am working on a huge translation project that has 800+ constants and I > > want to save both thousands of needless key strokes and needless hours > > copying and pasting a longer module name. > > > > I could find no documentation regarding limitations on the name of > > modules. > > > I think it is not a limitation on the module's name, but a limitation on > the auto-completion routine of the IDE. It seems that auto-completion > waits for three characters before starting to clobber your editor with > popups windows; but it would make sense to enable anyway the > autocompletion if you type in a dot. Yes, that's what I was thinking. > This is not an answer to your > question, but may help anyway. No problem. Thanks for replying. From math.eber at ...221... Sat Oct 17 12:24:29 2009 From: math.eber at ...221... (Matti) Date: Sat, 17 Oct 2009 12:24:29 +0200 Subject: [Gambas-user] How can I zoom -in, zoom-out and rotate a picture? In-Reply-To: References: Message-ID: <4AD99B5D.7090807@...221...> You can't do that with a picture. Use image instead, this class has methods like rotate. Look in the docs for details. Then either draw the image in a DrawingArea, or convert it into a picture and show it in a PictureBox. Matti Jorge Carri?n schrieb: > I need a images and pdf viewer. I've found a pdf viewer in the examples and > I'm modifiying it to accept both pdf an image files. The problem is that the > pdf class has the zoom and orientation method who allows rotate an zoom the > image. But I can't find any example about do the same thing with a picture. > > It's posible do it? > > Thanks > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Sat Oct 17 13:26:14 2009 From: math.eber at ...221... (Matti) Date: Sat, 17 Oct 2009 13:26:14 +0200 Subject: [Gambas-user] loading image Message-ID: <4AD9A9D6.4060904@...221...> I want to display Thumbnails of JPEGs. As Image.Load(Path) and Picture.Load(Path) require a path, right now I do: - extract the Thumbnail from JPEG with a SHELL command - save it to disk as thumb_nnn.jpg - read it again from disk with Image.Load(Path). This is a complicated way and takes really long time if there are many JPEGs in a folder. So I try to load the output of the SHELL command directly into an Image. But then, Gambas says "Wanted Image, got String instead". So, the output of the SHELL command comes in as a String. What now? Any way to convert this String into an Image? Anybody any ideas? Thanks, Matti From bbruen at ...2308... Sat Oct 17 13:34:15 2009 From: bbruen at ...2308... (bbb888) Date: Sat, 17 Oct 2009 04:34:15 -0700 (PDT) Subject: [Gambas-user] Form exit code when [X] clicked In-Reply-To: <1255749890.18339.21.camel@...2304...> References: <25919887.post@...1379...> <1255749890.18339.21.camel@...2304...> Message-ID: <25937554.post@...1379...> Thanks Kad that does the trick! Bruce -- View this message in context: http://www.nabble.com/Form-exit-code-when--X--clicked-tp25919887p25937554.html Sent from the gambas-user mailing list archive at Nabble.com. From vkan53 at ...2300... Sat Oct 17 14:32:35 2009 From: vkan53 at ...2300... (Vassilis A. Kanatas) Date: Sat, 17 Oct 2009 15:32:35 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <1255782755.12594.9.camel@...2302...> Thank you Doriano, I tested the code that you proposed and got the following error: "Type mismatch: wanted Label, got PictureBox instead" at line: For each alabel in Form1.Children (inside SUB change_bgcolor(...)) I have put all 100 Labels on Form1 above from the picture that I placed on the Form. So it means that all Labels belong to the Form1. From gambas at ...1... Sat Oct 17 16:19:39 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 17 Oct 2009 16:19:39 +0200 Subject: [Gambas-user] loading image In-Reply-To: <4AD9A9D6.4060904@...221...> References: <4AD9A9D6.4060904@...221...> Message-ID: <200910171619.39403.gambas@...1...> > I want to display Thumbnails of JPEGs. > > As Image.Load(Path) and Picture.Load(Path) require a path, right now I do: > - extract the Thumbnail from JPEG with a SHELL command > - save it to disk as thumb_nnn.jpg > - read it again from disk with Image.Load(Path). > > This is a complicated way and takes really long time if there are many > JPEGs in a folder. > > So I try to load the output of the SHELL command directly into an Image. > But then, Gambas says "Wanted Image, got String instead". > So, the output of the SHELL command comes in as a String. > What now? > > Any way to convert this String into an Image? > Anybody any ideas? > > Thanks, Matti > There is no way to do that directly while I have no library to extract a thumbnail from a jpeg file. But you can faster things a bit by : - Not saving the thumbnail as a jpeg, but by using a non-compressed image format. - Saving the thumbnail in /tmp, provided that /tmp is mounted in ram (tmpfs). Regards, -- Beno?t Minisini From gambas at ...1... Sat Oct 17 16:21:16 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 17 Oct 2009 16:21:16 +0200 Subject: [Gambas-user] Code Editor Problem In-Reply-To: <1255760282.4739.18.camel@...2304...> References: <1255760282.4739.18.camel@...2304...> Message-ID: <200910171621.17002.gambas@...1...> > This looks like a bug to me. > > If I create a module name modConstants and add these two lines: > > PUBLIC CONST BTN_CANCEL AS Integer = 0 > PUBLIC CONST BTN_OK AS Integer = 1 > > If I then edit, say, FMain, I can then refer to those constants by > typing the module name and a period. Gambas will then show me BTN_CANCEL > and BTN_OK in a popup window. > > No such thing happens if the module name is from 1 to 3 characters in > length. The problem is, I need a module to be called k, nothing else, > and I need the constants to be displayed when I type k and a period. > > I am working on a huge translation project that has 800+ constants and I > want to save both thousands of needless key strokes and needless hours > copying and pasting a longer module name. > > I could find no documentation regarding limitations on the name of > modules. > > Comments anyone? > Do you mean that if you type "k" then a period, you won't see the completion popup of the module "k" ? -- Beno?t Minisini From doriano.blengino at ...1909... Sat Oct 17 17:07:58 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 17 Oct 2009 17:07:58 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255782755.12594.9.camel@...2302...> References: <1255782755.12594.9.camel@...2302...> Message-ID: <4AD9DDCE.4080705@...1909...> Vassilis A. Kanatas ha scritto: > Thank you Doriano, > > I tested the code that you proposed and got the following error: > > "Type mismatch: wanted Label, got PictureBox instead" > > at line: > For each alabel in Form1.Children (inside SUB change_bgcolor(...)) > > I have put all 100 Labels on Form1 above from the picture that I placed > on the Form. So it means that all Labels belong to the Form1. > Ah... pardon me... you should DIM alabel AS Object instead of Label. I did not think that on the form there could be other objects... stupid uh? :-) Sorry - make the modification and you should be ok. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From vkan53 at ...2300... Sat Oct 17 18:29:09 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sat, 17 Oct 2009 19:29:09 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910171929.10232.vkan53@...2300...> I get error: "Result is not available" at line: "change_bgcolor("Label" & rsThesi!thesi)" of the code: PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") rsThesi.MoveFirst WHILE rsThesi.Index < rsThesi.Count change_bgcolor("Label" & rsThesi!thesi) rsThesi.MoveNext WEND MODMain.$Con.Commit() END SUB change_bgcolor(labelname AS String) DIM alabel AS Object ' FOR EACH alabel IN Form1.Children IF alabel.name = labelname THEN alabel.background = color.red END IF NEXT END From dosida at ...626... Sat Oct 17 19:07:23 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 17 Oct 2009 11:07:23 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910171929.10232.vkan53@...2300...> References: <200910171929.10232.vkan53@...2300...> Message-ID: <82bffccf0910171007g1ef44d83v54f82e811dd7e1f9@...627...> Vassili, Make sure there is data in the rsThesi!thesi field. Open a terminal, and login to mysql and do the Select statement from there and see if all the records have data on the thesi field. if not then you have to do something like this if isNull(rsThesi!thesi) = false then change_bgcolor("Label" & rsThesi!thesi) I hope this helps Regards, Dimitris On Sat, Oct 17, 2009 at 10:29 AM, Vassilis K wrote: > I get error: > "Result is not available" > at line: > "change_bgcolor("Label" & rsThesi!thesi)" > > of the code: > > PUBLIC SUB Form_Open() > DIM i AS Integer > DIM rsThesi AS Result > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0") > rsThesi.MoveFirst > WHILE rsThesi.Index < rsThesi.Count > change_bgcolor("Label" & rsThesi!thesi) > rsThesi.MoveNext > WEND > MODMain.$Con.Commit() > END > > SUB change_bgcolor(labelname AS String) > DIM alabel AS Object ' > FOR EACH alabel IN Form1.Children > IF alabel.name = labelname THEN > alabel.background = color.red > END IF > NEXT > END > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vkan53 at ...2300... Sat Oct 17 19:49:17 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sat, 17 Oct 2009 20:49:17 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910172049.18259.vkan53@...2300...> I have changed the Select of rsThesi to find only the records that thesi <> 0 as following: rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0 AND thesi <> 0 ") Now it only counts 42 rows out of 70. But the error is the same as described in my previous email: "Result is not available" at line: "change_bgcolor("Label" & rsThesi!thesi)" From doriano.blengino at ...1909... Sat Oct 17 19:59:38 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 17 Oct 2009 19:59:38 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <82bffccf0910171007g1ef44d83v54f82e811dd7e1f9@...627...> References: <200910171929.10232.vkan53@...2300...> <82bffccf0910171007g1ef44d83v54f82e811dd7e1f9@...627...> Message-ID: <4ADA060A.5010404@...1909...> Dimitris Anogiatis ha scritto: > Vassili, > > Make sure there is data in the rsThesi!thesi field. > > Open a terminal, and login to mysql and do the Select statement from there > and see if all the records have data on the thesi field. > > if not then you have to do something like this > > if isNull(rsThesi!thesi) = false then change_bgcolor("Label" & > rsThesi!thesi) > > I hope this helps >> I get error: >> "Result is not available" >> at line: >> "change_bgcolor("Label" & rsThesi!thesi)" >> >> of the code: >> >> PUBLIC SUB Form_Open() >> DIM i AS Integer >> DIM rsThesi AS Result >> MODMain.Connect() >> rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = >> 0") >> rsThesi.MoveFirst >> WHILE rsThesi.Index < rsThesi.Count >> change_bgcolor("Label" & rsThesi!thesi) >> rsThesi.MoveNext >> WEND >> MODMain.$Con.Commit() >> END >> >> There is something strange in here. If the SQL statement was incorrect, then an error should raise when executing it. If the SQL returned an empty dataset, then rsThesi.Count should be 0, and rsThesi.Index should be 0 also. 0 is not less than 0, so the loop should not even execute... unless, on an empty dataset, Index is set to -1 (it would be *very* stupid). Try to test for data availability using rsThesi.Available, do some print (.Index, .count, .available) just before the loop. And let me know - I am curious... If the dataset is not empty then the loop executes; if no field named "thesi" existed in table "engrafes", then the error "Result is not available" is misguiding. Lastly, what is $con.Commit() for? As Dimitris says, check the contents of your database using some tool (gambas database manager would be ok). Surely you will find something strange in there. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Sat Oct 17 20:04:57 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 17 Oct 2009 20:04:57 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910172049.18259.vkan53@...2300...> References: <200910172049.18259.vkan53@...2300...> Message-ID: <4ADA0749.8090704@...1909...> Vassilis K ha scritto: > I have changed the Select of rsThesi to find only the records that thesi <> 0 > as following: > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0 > AND thesi <> 0 ") > Now it only counts 42 rows out of 70. > > But the error is the same as described in my previous email: > "Result is not available" > at line: > "change_bgcolor("Label" & rsThesi!thesi)" > Try to PRINT rsThesi!thesi PRINT "Label" & rsThesi!thesi just before the line. I can not believe this... you can also try to use some intermediate temporary variable, like iTemp = rsThesi!thesi change_bgcolor("Label" & iTemp) where iTemp is an integer local variable, or try the same but using a string sTemp. Can't believe... Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From dosida at ...626... Sat Oct 17 20:26:26 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 17 Oct 2009 12:26:26 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4ADA0749.8090704@...1909...> References: <200910172049.18259.vkan53@...2300...> <4ADA0749.8090704@...1909...> Message-ID: <82bffccf0910171126n75f73121pb324fd7f8366f8fb@...627...> Vassili, Instead of change_bgcolor("Label" & rsThesi!thesi)" do PRINT CStr(rsThesi!thesi) PRINT CStr(rsThesi.Index) to see where it stops make sure it actually prints the same results. Keep in mind that the field name has to be EXACTLY the same as the one you use in mysql. worst comes to the worst take the MODMain.Connect() apart and line by line make sure it works Hope this helps Regards, Dimitris On Sat, Oct 17, 2009 at 12:04 PM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Vassilis K ha scritto: > > I have changed the Select of rsThesi to find only the records that thesi > <> 0 > > as following: > > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0 > > AND thesi <> 0 ") > > Now it only counts 42 rows out of 70. > > > > But the error is the same as described in my previous email: > > "Result is not available" > > at line: > > "change_bgcolor("Label" & rsThesi!thesi)" > > > Try to > > PRINT rsThesi!thesi > PRINT "Label" & rsThesi!thesi > > just before the line. I can not believe this... you can also try to use > some intermediate temporary variable, like > > iTemp = rsThesi!thesi > change_bgcolor("Label" & iTemp) > > where iTemp is an integer local variable, or try the same but using a > string sTemp. > > Can't believe... > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vkan53 at ...2300... Sat Oct 17 20:49:53 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sat, 17 Oct 2009 21:49:53 +0300 Subject: [Gambas-user] make Label background from Database field In-Reply-To: References: Message-ID: <200910172149.53885.vkan53@...2300...> I tested : PRINT CStr(rsThesi!thesi) PRINT CStr(rsThesi.Index) Instead of change_bgcolor("Label" & rsThesi!thesi)" and I got everything working fine !!!! I got 42 couples of numbers as it should be: 38 0 15 1 47 2 74 3 96 4 etc... up to 42 row !! the first number was the correct rsThesi!thesi and the second number was the Index. I controlled the data of MySQL from phpMyAdmin and it is the same!! (where elenchosAnax = 0 AND thesi <> 0) AFter the print of the numbers as described above, the code stops and I get my well known message: "Result is not available" at line PRINT CStr(rsThesi!thesi) Strange? From vkan53 at ...2300... Sat Oct 17 20:55:45 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sat, 17 Oct 2009 21:55:45 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910172155.45908.vkan53@...2300...> And of cource on: PRINT rsThesi!thesi PRINT "Label" & rsThesi!thesi I get : 2 Label2 12 Label12 57 Label57 47 Label47 33 Label33 56 Label56 44 Label44 11 Label11 78 Label78 3 Label3 etc. at Console window as described in my previous email and the code stops at PRINT rsThesi!thesi with result is not available ! From dosida at ...626... Sat Oct 17 21:12:23 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 17 Oct 2009 13:12:23 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910172155.45908.vkan53@...2300...> References: <200910172155.45908.vkan53@...2300...> Message-ID: <82bffccf0910171212y79fda24fw2b418dc48b332860@...627...> Vassili, We're close... try IF rsThesi.Index < rsThesi.Count THEN rsThesi.MoveNext() ENDIF I hope this takes you a bit further in your project Keep up the good work Regards Dimitris On Sat, Oct 17, 2009 at 12:55 PM, Vassilis K wrote: > And of cource on: > > PRINT rsThesi!thesi > PRINT "Label" & rsThesi!thesi > > I get : > 2 > Label2 > 12 > Label12 > 57 > Label57 > 47 > Label47 > 33 > Label33 > 56 > Label56 > 44 > Label44 > 11 > Label11 > 78 > Label78 > 3 > Label3 > > etc. > > at Console window as described in my previous email and the code stops at > > PRINT rsThesi!thesi > > with > > result is not available ! > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sat Oct 17 21:17:16 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 17 Oct 2009 21:17:16 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910172155.45908.vkan53@...2300...> References: <200910172155.45908.vkan53@...2300...> Message-ID: <4ADA183C.6080009@...1909...> Vassilis K ha scritto: > And of cource on: > > PRINT rsThesi!thesi > PRINT "Label" & rsThesi!thesi > > I get : > 2 > Label2 > 12 > Label12 > 57 > Label57 > 47 > Label47 > 33 > Label33 > 56 > Label56 > 44 > Label44 > 11 > Label11 > 78 > Label78 > 3 > Label3 > > etc. > > at Console window as described in my previous email and the code stops at > > PRINT rsThesi!thesi > > with > > result is not available ! > Benoit? :-) Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From vkan53 at ...2300... Sat Oct 17 21:46:17 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sat, 17 Oct 2009 22:46:17 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910172246.17747.vkan53@...2300...> Dimitri I don't understand where to place IF rsThesi.Index < rsThesi.Count THEN rsThesi.MoveNext() ENDIF If I use it for the loop of all the rows it only stops at row 2 and it shows Label12 (for example) red It also passes row 1 !!! I don't know if something like GOTO (the beginning of the routine) works here! From nospam.nospam.nospam at ...626... Sun Oct 18 00:47:58 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sun, 18 Oct 2009 09:47:58 +1100 Subject: [Gambas-user] Code Editor Problem In-Reply-To: <200910171621.17002.gambas@...1...> References: <1255760282.4739.18.camel@...2304...> <200910171621.17002.gambas@...1...> Message-ID: <1255819678.20916.0.camel@...2304...> On Sat, 2009-10-17 at 16:21 +0200, Beno?t Minisini wrote: > > No such thing happens if the module name is from 1 to 3 characters in > > length. The problem is, I need a module to be called k, nothing else, > > and I need the constants to be displayed when I type k and a period. > > Do you mean that if you type "k" then a period, you won't see the completion > popup of the module "k" ? Yes, that's correct. Typing k. does not show the completion popup. From nospam.nospam.nospam at ...626... Sun Oct 18 00:56:35 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sun, 18 Oct 2009 09:56:35 +1100 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910172246.17747.vkan53@...2300...> References: <200910172246.17747.vkan53@...2300...> Message-ID: <1255820195.20916.8.camel@...2304...> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > Dimitri I don't understand Why don't you take a look at the database example in Gambas? After creating the test table, if you type in an SQL command and click the run button, you will see a gridview with a myriad colours that can be changed based on the data. Surely something like that has to be easier than trying to work out how to manage a hundred labels on a screen, and surely it will offer you much better and easier control of future UI changes, and surely it will offer a more pleasing and intuitive presentation to your user. From dosida at ...626... Sun Oct 18 01:34:06 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 17 Oct 2009 17:34:06 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255820195.20916.8.camel@...2304...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> Message-ID: <82bffccf0910171634vb7246ddob9ff1d8e6c67c59e@...627...> Vassili, it should look something like this PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result 'connect to the database MODMain.Connect() 'Execute the SQL QueryI hope this helps. rsThesi = MODMain.$Con.EXEC("select * from egrafes where elenchosAnax = 0 AND thesi <> 0 ") 'move to the first record rsThesi.MoveFirst 'while the record index is less than the total count of records WHILE rsThesi.Index < rsThesi.Count 'change the background color of the label that's in a position reported in rsThesi!thesi change_bgcolor("Label" & CStr(rsThesi!thesi)) PRINT "Record: " & CStr(rsThesi.Index) & " Result: " & CStr(rsThesi!thesi) 'if we haven't reached the last record, move to the next one IF rsThesi.Index < rsThesi.Count THEN rsThesi.MoveNext() ENDIF WEND END Not sure if it will work (I might be missing a few key elements of your code) but theoretically it should do the job I hope this helps. Keep up the good work Regards, Dimitris On Sat, Oct 17, 2009 at 4:56 PM, Kad Mann wrote: > On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > > > Dimitri I don't understand > > Why don't you take a look at the database example in Gambas? > > After creating the test table, if you type in an SQL command and click > the run button, you will see a gridview with a myriad colours that can > be changed based on the data. Surely something like that has to be > easier than trying to work out how to manage a hundred labels on a > screen, and surely it will offer you much better and easier control of > future UI changes, and surely it will offer a more pleasing and > intuitive presentation to your user. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...2097... Sat Oct 17 09:30:27 2009 From: steven at ...2097... (Steven James Drinnan) Date: Sat, 17 Oct 2009 15:30:27 +0800 Subject: [Gambas-user] saving picturebox as video In-Reply-To: References: Message-ID: <1255764627.3635.9.camel@...2273...> You could use ffmpeg the cmd is ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg This would make the files img1.jpg img2.jpg .... into a mpg video. But it would mean writing each image to a dir on the disc ie pic01.jpg pic02.jpg .... Then once you press a stop button then you run the cmd above. But writing the images to disk would drop the frame rate. I hope that is clear. On Sat, 2009-10-17 at 01:13 +0200, Hartmut Eilers wrote: > Hi all, > > I'm currently writing an application where I have the > output of a webcam in a picturebox. After modifying > the picturebox with overlayed text and graphics, I want > to save the contents of this picturebox in any video > format. ( avi, mpg, ogg whatever ) > How can that be done ? Can anybody give me hints > how to write the picturebox to a video file or how to > stream the picturebox over the network and receive it with > programs like vlc ? > > Any help appreciated > Thanks > Hartmut > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > 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: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From nospam.nospam.nospam at ...626... Sun Oct 18 03:46:49 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sun, 18 Oct 2009 12:46:49 +1100 Subject: [Gambas-user] Missing feature? Message-ID: <1255830409.20916.21.camel@...2304...> TextBoxes and Labels have an alignment property but DataControls do not. Is that by design? Are there plans to change it? Is there a workaround to allow the alignment of a DataControl, apart from hiding the DataControls and mirroring the data in a TextBox? Also, while I'm asking questions, but on a separate topic... Is there any way to set the foreground and background colours of a disabled TextBox to something other than the almost unreadable colours used in the default linux colour schemes? All suggestions, other than rude suggestions, are welcome. From dosida at ...626... Sun Oct 18 05:45:49 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 17 Oct 2009 21:45:49 -0600 Subject: [Gambas-user] Classes and Modules in Gambas Server Pages Message-ID: <82bffccf0910172045u1a9e036fxdc6704070cb0b190@...627...> Hey guys, I know that in gambas server pages there's #USE that allows us to use gambas components. Is there something similar to PHPs include statement to be able to use classes and modules? and when making modules and classes for server pages are there any changes we need to make or points we need to be careful of? Thanks in advance Regards, Dimitris From doriano.blengino at ...1909... Sun Oct 18 09:08:17 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Oct 2009 09:08:17 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255820195.20916.8.camel@...2304...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> Message-ID: <4ADABEE1.1050205@...1909...> Kad Mann ha scritto: > On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > > >> Dimitri I don't understand >> > > Why don't you take a look at the database example in Gambas? > > After creating the test table, if you type in an SQL command and click > the run button, you will see a gridview with a myriad colours that can > be changed based on the data. Surely something like that has to be > easier than trying to work out how to manage a hundred labels on a > screen, and surely it will offer you much better and easier control of > future UI changes, and surely it will offer a more pleasing and > intuitive presentation to your user. > "Surely something like that has to be easier" and "surely much better and easier control". Yes and no, and once again you have to submit yourself to someone else taste, using components designed for something else. Here the problem is a little different, look more carefully at the whole thread. We are trying to do whatever we want on a UI, based on data in a database. Something far more general than what you are depicting. Vassilis: perhaps I got it (night could have brought good advice)! May be that gambas get confused by: change_bgcolor("Label" & rsThesi!thesi) I don't know why, but this seems to be a bug in gambas. But using a temporary variable: iTemp = rsThesi!thesi ' an integer temporary variable change_bgcolor("Label" & iTemp) it should work. If this does not work, then try once more this: sTemp = CStr(rsThesi!thesi) ' a string variable change_bgcolor("Label" & sTemp) If neither this works, then only Benoit can tell what's going on. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Sun Oct 18 09:26:02 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sun, 18 Oct 2009 18:26:02 +1100 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4ADABEE1.1050205@...1909...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> Message-ID: <1255850762.31935.0.camel@...2304...> On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > > > > > >> Dimitri I don't understand > >> > > > > Why don't you take a look at the database example in Gambas? > > > > After creating the test table, if you type in an SQL command and click > > the run button, you will see a gridview with a myriad colours that can > > be changed based on the data. Surely something like that has to be > > easier than trying to work out how to manage a hundred labels on a > > screen, and surely it will offer you much better and easier control of > > future UI changes, and surely it will offer a more pleasing and > > intuitive presentation to your user. > > > "Surely something like that has to be easier" and "surely much better > and easier control". > Yes and no I didn't ask you. From vkan53 at ...2300... Sun Oct 18 10:15:12 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sun, 18 Oct 2009 11:15:12 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910181115.12435.vkan53@...2300...> Dear Doriano, I have tested both codes with sTemp = CStr(rsThesi!thesi) 'As a string variable AND then with iTemp = rsThesi!thesi 'As Integer I get the results on the console but the code now stops at: sTemp = CStr(rsThesi!thesi) OR at iTemp = rsThesi!thesi with message "Result is not available" When the code stops the variable sTemp has the last value of the field. (I can see the results on the console with the line that you suggested: PRINT "Record: " & CStr(rsThesi.Index) & " Result: " & CStr(rsThesi!thesi)) The results are the following: Record: 0 Result: 2 Record: 1 Result: 12 Record: 2 Result: 57 Record: 3 Result: 56 Record: 4 Result: 44 Record: 5 Result: 11 Record: 6 Result: 78 Record: 7 Result: 3 Record: 8 Result: 89 Record: 9 Result: 23 Record: 10 Result: 67 Record: 11 Result: 33 Record: 12 Result: 34 Record: 13 Result: 34 Record: 14 Result: 78 Record: 15 Result: 34 Record: 16 Result: 2 Record: 17 Result: 1 Record: 18 Result: 32 Record: 19 Result: 43 Record: 20 Result: 12 Record: 21 Result: 3 Record: 22 Result: 1 Record: 23 Result: 1 Record: 24 Result: 1 Record: 25 Result: 12 Record: 26 Result: 1 Record: 27 Result: 23 Record: 28 Result: 23 Record: 29 Result: 34 Record: 30 Result: 34 Record: 31 Result: 56 Record: 32 Result: 1 Record: 33 Result: 56 Record: 34 Result: 89 Record: 35 Result: 12 Record: 36 Result: 4 Record: 37 Result: 1 Record: 38 Result: 3 Record: 39 Result: 34 Record: 40 Result: 12 Record: 41 Result: 1 Record: 42 Result: 2 Record: 43 Result: 3 From doriano.blengino at ...1909... Sun Oct 18 10:47:21 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Oct 2009 10:47:21 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255850762.31935.0.camel@...2304...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> Message-ID: <4ADAD619.90202@...1909...> Kad Mann ha scritto: > On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > >> Kad Mann ha scritto: >> >>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: >>> >>> >>> >>>> Dimitri I don't understand >>>> >>>> >>> Why don't you take a look at the database example in Gambas? >>> >>> After creating the test table, if you type in an SQL command and click >>> the run button, you will see a gridview with a myriad colours that can >>> be changed based on the data. Surely something like that has to be >>> easier than trying to work out how to manage a hundred labels on a >>> screen, and surely it will offer you much better and easier control of >>> future UI changes, and surely it will offer a more pleasing and >>> intuitive presentation to your user. >>> >>> >> "Surely something like that has to be easier" and "surely much better >> and easier control". >> Yes and no >> > > I didn't ask you. > True, and neither Vassilis asked you something... you can't understand him, but I can understand you. In one of your last mail you noticed that data controls don't have all the properties as other textboxes, such alignment and so on. Be prepared for other surprises. Everybody would love to have controls with lots of properties in order to do everything you want, but this is impossible (can you believe it? Once you have put 100 properties in a control, you will find someone asking for the #101). Real programmers prefer to do things their way, with few versatile mechanisms. The more a component gets complicated, the less people understand it; just now, many problems arise from the fact that people don't read documentation, and even when they do, they don't notice some important feature; and often that feature is not exactly you need. To Vassilis: I don't know what more to say about your problem. Better to wait for Benoit. Regards to all, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Sun Oct 18 12:11:57 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Sun, 18 Oct 2009 21:11:57 +1100 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4ADAD619.90202@...1909...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> Message-ID: <1255860717.4391.27.camel@...2304...> On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > > > >> Kad Mann ha scritto: > >> > >>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > >>> > >>> > >>> > >>>> Dimitri I don't understand > >>>> > >>>> > >>> Why don't you take a look at the database example in Gambas? > >>> > >>> After creating the test table, if you type in an SQL command and click > >>> the run button, you will see a gridview with a myriad colours that can > >>> be changed based on the data. Surely something like that has to be > >>> easier than trying to work out how to manage a hundred labels on a > >>> screen, and surely it will offer you much better and easier control of > >>> future UI changes, and surely it will offer a more pleasing and > >>> intuitive presentation to your user. > >>> > >>> > >> "Surely something like that has to be easier" and "surely much better > >> and easier control". > >> Yes and no > >> > > > > I didn't ask you. > > > True, and neither Vassilis asked you something... you can't understand > him, but I can understand you. In one of your last mail you noticed that > data controls don't have all the properties as other textboxes, such > alignment and so on. Be prepared for other surprises. Everybody would > love to have controls with lots of properties in order to do everything > you want, but this is impossible (can you believe it? Once you have put > 100 properties in a control, you will find someone asking for the #101). Of course, the point is, I didn't ask for the features. Did I? I asked is the limitation by design, are there plans to change it, and is there a workaround. Besides, do you feel it is unreasonable for someone to want "a box used to show the contents of a Field or edit it", a data-bound control intended to save programming time, to have similar functionality to a TextBox? > Real programmers prefer to do things their way, with few versatile > mechanisms. So, who do you believe might not be a real programmer? > The more a component gets complicated, the less people > understand it; just now, many problems arise from the fact that people > don't read documentation, and even when they do, they don't notice some > important feature; and often that feature is not exactly you need. So, you feel that if a DataControl was given similar functionality to a TextBox, you might not understand it? > To Vassilis: I don't know what more to say about your problem. Better to > wait for Benoit. > > Regards to all, > From doriano.blengino at ...1909... Sun Oct 18 14:00:12 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Oct 2009 14:00:12 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255860717.4391.27.camel@...2304...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> <1255860717.4391.27.camel@...2304...> Message-ID: <4ADB034C.4060309@...1909...> Kad Mann ha scritto: > On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: > >> Kad Mann ha scritto: >> >>> On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: >>> >>> >>>> Kad Mann ha scritto: >>>> >>>> >>>>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: >>>>> >>>>> >>>>> >>>>> >>>>>> Dimitri I don't understand >>>>>> >>>>>> >>>>>> >>>>> Why don't you take a look at the database example in Gambas? >>>>> >>>>> After creating the test table, if you type in an SQL command and click >>>>> the run button, you will see a gridview with a myriad colours that can >>>>> be changed based on the data. Surely something like that has to be >>>>> easier than trying to work out how to manage a hundred labels on a >>>>> screen, and surely it will offer you much better and easier control of >>>>> future UI changes, and surely it will offer a more pleasing and >>>>> intuitive presentation to your user. >>>>> >>>>> >>>>> >>>> "Surely something like that has to be easier" and "surely much better >>>> and easier control". >>>> Yes and no >>>> >>>> >>> I didn't ask you. >>> >>> >> True, and neither Vassilis asked you something... you can't understand >> him, but I can understand you. In one of your last mail you noticed that >> data controls don't have all the properties as other textboxes, such >> alignment and so on. Be prepared for other surprises. Everybody would >> love to have controls with lots of properties in order to do everything >> you want, but this is impossible (can you believe it? Once you have put >> 100 properties in a control, you will find someone asking for the #101). >> > > Of course, the point is, I didn't ask for the features. Did I? I asked > is the limitation by design, are there plans to change it, and is there > a workaround. > You are very precise... so I will do too. I didn't say *you* asked for features (did I?). Nevertheless you was talking about features... > Besides, do you feel it is unreasonable for someone to want "a box used > to show the contents of a Field or edit it", a data-bound control > intended to save programming time, to have similar functionality to a > TextBox? > No. > >> Real programmers prefer to do things their way, with few versatile >> mechanisms. >> > > So, who do you believe might not be a real programmer? > Are you expecting I say "you"? No. I don't know who you are, and even if I don't agree with you, I can not say you are not a real programmer. But BEWARE! In some future, perhaps I will do! Even at night! :-) >> The more a component gets complicated, the less people >> understand it; just now, many problems arise from the fact that people >> don't read documentation, and even when they do, they don't notice some >> important feature; and often that feature is not exactly you need. >> > > So, you feel that if a DataControl was given similar functionality to a > TextBox, you might not understand it? > No, again it was a general talking. But are you sure you fully understand Columnview? I noticed that, for example, checkboxes lack the Autosize property. It would make sense that every control like labels, textboxes, checkboxes and data controls had a set of common properties. But for this kind of things gambas relies on either QT or GTK, and sometimes you find limits in them. Be prepared... I tried (and actually succeded) to write a file manager in gambas. But I faced all kind of problems, and I had to rewrite DirTreeView and DirFileView (or whatever is named). Do it it you too, then you'll better understand what I am trying to say. The more a component has functionalities, the more you will find they are not what you want. Hey guy, keep it cool. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From dosida at ...626... Sun Oct 18 14:11:01 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 18 Oct 2009 06:11:01 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255860717.4391.27.camel@...2304...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> <1255860717.4391.27.camel@...2304...> Message-ID: <82bffccf0910180511j378b1d4et9a0a261dc430a82f@...627...> Vassili, Going back and forth through the whole thread I can also see that change_bgcolor is not as efficient as it could be simply because it's doing a loop looking through all the controls trying to match the desired control's name. for change_bgcolor I would suggest this Public SUB change_bgcolor(pos as Integer) SELECT CASE pos CASE 1 Label1.Background = Color.Red CASE 2 Label2.Background = Color.Red . . . . . CASE 100 Label100.Backround = Color.Red CASE ELSE END SELECT END I know this looks tedious to code but the reason why I recommend this is that with the SELECT CASE, change_bgcolor would do 3 moves in every case instead of going through the 100 labels you have in your Camp Ground Scheduling application. As for the "Result Not Available" message, let's try this; replace everything from the WHILE line up to the WEND line with this 'while the record index is less than the total count of records DO WHILE rsThesi.Index < rsThesi.Count 'change the background color of the label that's in a position reported in rsThesi!thesi change_bgcolor(CInt(rsThesi!thesi)) 'move to the next Record rsThesi.MoveNext() LOOP if you still get the "Result Not Available" error then try replacing rsThesi.Count with an integer value less than your total records for this query (For example 10) and see what you get for that. I hope this helps. Keep up the good work Hope we can see the finished project soon with screenshots and all :) Regards, Dimitris On Sun, Oct 18, 2009 at 4:11 AM, Kad Mann wrote: > On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: > > Kad Mann ha scritto: > > > On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > > > > > >> Kad Mann ha scritto: > > >> > > >>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > > >>> > > >>> > > >>> > > >>>> Dimitri I don't understand > > >>>> > > >>>> > > >>> Why don't you take a look at the database example in Gambas? > > >>> > > >>> After creating the test table, if you type in an SQL command and > click > > >>> the run button, you will see a gridview with a myriad colours that > can > > >>> be changed based on the data. Surely something like that has to be > > >>> easier than trying to work out how to manage a hundred labels on a > > >>> screen, and surely it will offer you much better and easier control > of > > >>> future UI changes, and surely it will offer a more pleasing and > > >>> intuitive presentation to your user. > > >>> > > >>> > > >> "Surely something like that has to be easier" and "surely much better > > >> and easier control". > > >> Yes and no > > >> > > > > > > I didn't ask you. > > > > > True, and neither Vassilis asked you something... you can't understand > > him, but I can understand you. In one of your last mail you noticed that > > data controls don't have all the properties as other textboxes, such > > alignment and so on. Be prepared for other surprises. Everybody would > > love to have controls with lots of properties in order to do everything > > you want, but this is impossible (can you believe it? Once you have put > > 100 properties in a control, you will find someone asking for the #101). > > Of course, the point is, I didn't ask for the features. Did I? I asked > is the limitation by design, are there plans to change it, and is there > a workaround. > > Besides, do you feel it is unreasonable for someone to want "a box used > to show the contents of a Field or edit it", a data-bound control > intended to save programming time, to have similar functionality to a > TextBox? > > > Real programmers prefer to do things their way, with few versatile > > mechanisms. > > So, who do you believe might not be a real programmer? > > > The more a component gets complicated, the less people > > understand it; just now, many problems arise from the fact that people > > don't read documentation, and even when they do, they don't notice some > > important feature; and often that feature is not exactly you need. > > So, you feel that if a DataControl was given similar functionality to a > TextBox, you might not understand it? > > > To Vassilis: I don't know what more to say about your problem. Better to > > wait for Benoit. > > > > Regards to all, > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vkan53 at ...2300... Sun Oct 18 15:17:34 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sun, 18 Oct 2009 16:17:34 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910181617.34370.vkan53@...2300...> Dimitri it worked !! I put the code that you suggested and it works only when I put a number smaller than rsThesi.Count . For example when I put 10 it shows 10 Labels coloured ! I ' m writing down the code that worked: PUBLIC SUB Form_Open() DIM rsThesi AS Result DIM iTemp AS Integer DIM sTemp AS String MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0 AND thesi <> 0 ") DO WHILE rsThesi.Index < 10 change_bgcolor(CInt(rsThesi!thesi)) rsThesi.MoveNext() LOOP END PUBLIC SUB change_bgcolor(pos AS Integer) SELECT CASE pos CASE 1 Label1.Background = Color.Red CASE 2 Label2.Background = Color.Red CASE 3 Label3.Background = Color.Red CASE 4 .......up to CASE 100 !!!!!!!!!!!! CASE ELSE END SELECT END From vkan53 at ...2300... Sun Oct 18 15:22:05 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sun, 18 Oct 2009 16:22:05 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910181622.05246.vkan53@...2300...> It is Solved !!!!!!!!!! It works fine with: rsThesi.Count - 1 DO WHILE rsThesi.Index < rsThesi.Count - 1 change_bgcolor(CInt(rsThesi!thesi)) rsThesi.MoveNext() LOOP Thank you Dimitri and Doriano From dosida at ...626... Sun Oct 18 16:00:05 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sun, 18 Oct 2009 08:00:05 -0600 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910181622.05246.vkan53@...2300...> References: <200910181622.05246.vkan53@...2300...> Message-ID: <82bffccf0910180700t5aecc196q42fcbd244eaced3d@...627...> Vassili, Glad to hear that it's working for you :) Keep up the good work :) Regards, Dimitris On Sun, Oct 18, 2009 at 7:22 AM, Vassilis K wrote: > It is Solved !!!!!!!!!! > > > It works fine with: rsThesi.Count - 1 > > DO WHILE rsThesi.Index < rsThesi.Count - 1 > change_bgcolor(CInt(rsThesi!thesi)) > rsThesi.MoveNext() > LOOP > > Thank you Dimitri and Doriano > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sun Oct 18 17:11:49 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Oct 2009 17:11:49 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <82bffccf0910180700t5aecc196q42fcbd244eaced3d@...627...> References: <200910181622.05246.vkan53@...2300...> <82bffccf0910180700t5aecc196q42fcbd244eaced3d@...627...> Message-ID: <4ADB3035.6050804@...1909...> Dimitris Anogiatis ha scritto: > Vassili, > > Glad to hear that it's working for you :) > I join - congratulations! The only pity is to have such an awful case statement, when 5 or 6 lines of code would do the same job. That SELECT it is not much faster, because it compares case by case until it finds a match, and then exits. For this purpose, I forget to put a return in my subroutine just after the match (when the test is true). Doing so, I bet the speed is comparable. Best regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Sun Oct 18 17:16:18 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Oct 2009 17:16:18 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4ADB3035.6050804@...1909...> References: <200910181622.05246.vkan53@...2300...> <82bffccf0910180700t5aecc196q42fcbd244eaced3d@...627...> <4ADB3035.6050804@...1909...> Message-ID: <4ADB3142.9030408@...1909...> Doriano Blengino ha scritto: > Dimitris Anogiatis ha scritto: > >> Vassili, >> >> Glad to hear that it's working for you :) >> >> > I join - congratulations! > > The only pity is to have such an awful case statement, when 5 or 6 lines > of code would do the same job. That SELECT it is not much faster, > because it compares case by case until it finds a match, and then exits. > For this purpose, I forget to put a return in my subroutine just after > the match (when the test is true). Doing so, I bet the speed is comparable. > I forgot again... if speed is really important, you can "cache" the results from the routine, ie create an array of labels, and assign them once using either methods (select or loop). Then you use the database value as an index in the array, and obtain in just one instruction the reference for the label. About 50 times faster... Hope it is clear. Best regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Oct 18 17:41:42 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Oct 2009 17:41:42 +0200 Subject: [Gambas-user] Classes and Modules in Gambas Server Pages In-Reply-To: <82bffccf0910172045u1a9e036fxdc6704070cb0b190@...627...> References: <82bffccf0910172045u1a9e036fxdc6704070cb0b190@...627...> Message-ID: <200910181741.42822.gambas@...1...> > Hey guys, > > I know that in gambas server pages there's #USE that allows us to use > gambas components. > > Is there something similar to PHPs include statement to be able to use > classes and modules? > > and when making modules and classes for server pages are there any changes > we need to make > or points we need to be careful of? > > Thanks in advance > > Regards, > Dimitris If you need the same structure as a Gambas project, do not use gambas server pages. Do a real gambas project instead, compile it, and use it as a cgi script server. Gambas server pages were made to see if it was possible to use Gambas as a scripting language, and as HTML generator. But frankly, this is not the right thing to do if you want to do serious work. Note that it is not a problem if the size of your final Gambas CGI script is several megabytes, as the different parts of the executable are loaded only when used. I want to release Gambas 3 with ASP-like page support integrated in the IDE. But I have no time to develop it as fast as I want. Anyway, this is the way I want to develop web applications in Gambas. I don't want to do the PHP way at all! Regards, -- Beno?t Minisini From gambas at ...1... Sun Oct 18 17:53:16 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Oct 2009 17:53:16 +0200 Subject: [Gambas-user] Missing feature? In-Reply-To: <1255830409.20916.21.camel@...2304...> References: <1255830409.20916.21.camel@...2304...> Message-ID: <200910181753.16320.gambas@...1...> > TextBoxes and Labels have an alignment property but DataControls do not. > > Is that by design? Are there plans to change it? > > Is there a workaround to allow the alignment of a DataControl, apart > from hiding the DataControls and mirroring the data in a TextBox? > Not really, not really. But it should be not really difficult to add it. The idea behind DataControl is changing the actual control used according to the datatype of the field. So it just a matter of being careful that not all true controls used by DataControl support an Alignment property. If I remember, at the moment, Number are right aligned, and other data left aligned by default. You can look if the source code of DataControl if you like. I cannot guarantee you that I will find time to implement that just now! > Also, while I'm asking questions, but on a separate topic... > > Is there any way to set the foreground and background colours of a > disabled TextBox to something other than the almost unreadable colours > used in the default linux colour schemes? > > All suggestions, other than rude suggestions, are welcome. > Alas the behaviour of disabled controls mostly depends on the toolkit, the theme used, and the colours used in the control center for KDE. And if setting the background (or foreground) color of a control sets its colour both for normal and disabled mode, there will be no way for the user to see the difference between a normal and a disabled control, which is not a good thing. Regards, -- Beno?t Minisini From gambas at ...1... Sun Oct 18 17:54:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Oct 2009 17:54:57 +0200 Subject: [Gambas-user] Code Editor Problem In-Reply-To: <1255819678.20916.0.camel@...2304...> References: <1255760282.4739.18.camel@...2304...> <200910171621.17002.gambas@...1...> <1255819678.20916.0.camel@...2304...> Message-ID: <200910181754.57269.gambas@...1...> > On Sat, 2009-10-17 at 16:21 +0200, Beno?t Minisini wrote: > > > No such thing happens if the module name is from 1 to 3 characters in > > > length. The problem is, I need a module to be called k, nothing else, > > > and I need the constants to be displayed when I type k and a period. > > > > Do you mean that if you type "k" then a period, you won't see the > > completion popup of the module "k" ? > > Yes, that's correct. Typing k. does not show the completion popup. > But with a class whose name is two characters, it works. Funny... -- Beno?t Minisini From gambas at ...1... Sun Oct 18 18:00:50 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Oct 2009 18:00:50 +0200 Subject: [Gambas-user] Code Editor Problem In-Reply-To: <200910181754.57269.gambas@...1...> References: <1255760282.4739.18.camel@...2304...> <1255819678.20916.0.camel@...2304...> <200910181754.57269.gambas@...1...> Message-ID: <200910181800.50789.gambas@...1...> > > On Sat, 2009-10-17 at 16:21 +0200, Beno?t Minisini wrote: > > > > No such thing happens if the module name is from 1 to 3 characters in > > > > length. The problem is, I need a module to be called k, nothing else, > > > > and I need the constants to be displayed when I type k and a period. > > > > > > Do you mean that if you type "k" then a period, you won't see the > > > completion popup of the module "k" ? > > > > Yes, that's correct. Typing k. does not show the completion popup. > > But with a class whose name is two characters, it works. Funny... > I explicitely do not open the automatic completion when the class name is one character only. But I do not remember why I did that. :-( -- Beno?t Minisini From gambas at ...1... Sun Oct 18 18:01:40 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Oct 2009 18:01:40 +0200 Subject: [Gambas-user] Using masks In-Reply-To: References: Message-ID: <200910181801.41031.gambas@...1...> > Is it possible to use an image as a background of a TabStrip? Are the masks > usable for that? > How can I attach a mask to an object? I would like to have an example. > Thanks! No, mask are only for top-level windows. X-Window allows what you want, but I didn't implement it because of the difference between Qt and GTK+. Regards, -- Beno?t Minisini From gambas at ...1... Sun Oct 18 18:10:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 18 Oct 2009 18:10:08 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910171929.10232.vkan53@...2300...> References: <200910171929.10232.vkan53@...2300...> Message-ID: <200910181810.08835.gambas@...1...> > I get error: > "Result is not available" > at line: > "change_bgcolor("Label" & rsThesi!thesi)" > > of the code: > > PUBLIC SUB Form_Open() > DIM i AS Integer > DIM rsThesi AS Result > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0") > rsThesi.MoveFirst > WHILE rsThesi.Index < rsThesi.Count > change_bgcolor("Label" & rsThesi!thesi) > rsThesi.MoveNext > WEND > MODMain.$Con.Commit() > END > > SUB change_bgcolor(labelname AS String) > DIM alabel AS Object ' > FOR EACH alabel IN Form1.Children > IF alabel.name = labelname THEN > alabel.background = color.red > END IF > NEXT > END > Hi, Vassili. I need your full project source and a SQL dump of your database, and which database backend you are using. And change_bgcolor() can be written this way: SUB change_bgcolor(labelname AS String) Form1[labelName].Background = Color.Red END Regards, -- Beno?t Minisini From ulusoyab at ...43... Sun Oct 18 18:57:25 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Sun, 18 Oct 2009 09:57:25 -0700 (PDT) Subject: [Gambas-user] serial port. Message-ID: <990050.17915.qm@...2266...> hi?i want to send data to serial port. ?when i send ?a number ?(for exam: 37) , ?what is writing gambas to seri port (100101 or 37) ? if gambas ?write (37)?how can i convert decimaltobinary. (are there any module or command ?? ? ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From doriano.blengino at ...1909... Sun Oct 18 19:07:08 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Oct 2009 19:07:08 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910181810.08835.gambas@...1...> References: <200910171929.10232.vkan53@...2300...> <200910181810.08835.gambas@...1...> Message-ID: <4ADB4B3C.5080504@...1909...> Beno?t Minisini ha scritto: >> I get error: >> "Result is not available" >> at line: >> "change_bgcolor("Label" & rsThesi!thesi)" >> >> of the code: >> >> PUBLIC SUB Form_Open() >> DIM i AS Integer >> DIM rsThesi AS Result >> MODMain.Connect() >> rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = >> 0") >> rsThesi.MoveFirst >> WHILE rsThesi.Index < rsThesi.Count >> change_bgcolor("Label" & rsThesi!thesi) >> rsThesi.MoveNext >> WEND >> MODMain.$Con.Commit() >> END >> >> SUB change_bgcolor(labelname AS String) >> DIM alabel AS Object ' >> FOR EACH alabel IN Form1.Children >> IF alabel.name = labelname THEN >> alabel.background = color.red >> END IF >> NEXT >> END >> >> > > Hi, Vassili. > > I need your full project source and a SQL dump of your database, and which > database backend you are using. > > And change_bgcolor() can be written this way: > > SUB change_bgcolor(labelname AS String) > Form1[labelName].Background = Color.Red > END > Funny - the first thing I looked for in the docs was a function returning a reference by control name. I took a look in qt.form, and I missed it... Good to know. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From vkan53 at ...2300... Sun Oct 18 20:38:38 2009 From: vkan53 at ...2300... (Vassilis K) Date: Sun, 18 Oct 2009 21:38:38 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910182138.39001.vkan53@...2300...> After the function of change_bgcolor that existed and Benoit reminded us, the code is becoming more sophisticated: PUBLIC SUB Form_Open() DIM rsThesi AS Result DIM iTemp AS Integer DIM sTemp AS String MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0 AND thesi <> 0 ") DO WHILE rsThesi.Index < rsThesi.Count - 1 change_bgcolor("Label" & CInt(rsThesi!thesi)) rsThesi.MoveNext() LOOP END SUB change_bgcolor(labelname AS String) Form1[labelName].Background = Color.Red END From doriano.blengino at ...1909... Sun Oct 18 22:37:55 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Oct 2009 22:37:55 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910182138.39001.vkan53@...2300...> References: <200910182138.39001.vkan53@...2300...> Message-ID: <4ADB7CA3.4010703@...1909...> Vassilis K ha scritto: > After the function of change_bgcolor that existed and Benoit reminded us, the > code is becoming more sophisticated: > > PUBLIC SUB Form_Open() > DIM rsThesi AS Result > DIM iTemp AS Integer > DIM sTemp AS String > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0 > AND thesi <> 0 ") > DO WHILE rsThesi.Index < rsThesi.Count - 1 > change_bgcolor("Label" & CInt(rsThesi!thesi)) > rsThesi.MoveNext() > LOOP > END > > SUB change_bgcolor(labelname AS String) > Form1[labelName].Background = Color.Red > END > At this point, there is no need for a separate subroutine -> the single instruction inside it can replace the calling of it. Anyway, Benoit, did you read the other messages? There were strange things... Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nospam.nospam.nospam at ...626... Sun Oct 18 22:45:31 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Mon, 19 Oct 2009 07:45:31 +1100 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4ADB034C.4060309@...1909...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> <1255860717.4391.27.camel@...2304...> <4ADB034C.4060309@...1909...> Message-ID: <1255898731.4391.49.camel@...2304...> On Sun, 2009-10-18 at 14:00 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: > > > >> Kad Mann ha scritto: > >> > >>> On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > >>> > >>> > >>>> Kad Mann ha scritto: > >>>> > >>>> > >>>>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>> Dimitri I don't understand > >>>>>> > >>>>>> > >>>>>> > >>>>> Why don't you take a look at the database example in Gambas? > >>>>> > >>>>> After creating the test table, if you type in an SQL command and click > >>>>> the run button, you will see a gridview with a myriad colours that can > >>>>> be changed based on the data. Surely something like that has to be > >>>>> easier than trying to work out how to manage a hundred labels on a > >>>>> screen, and surely it will offer you much better and easier control of > >>>>> future UI changes, and surely it will offer a more pleasing and > >>>>> intuitive presentation to your user. > >>>>> > >>>>> > >>>>> > >>>> "Surely something like that has to be easier" and "surely much better > >>>> and easier control". > >>>> Yes and no > >>>> > >>>> > >>> I didn't ask you. > >>> > >>> > >> True, and neither Vassilis asked you something... you can't understand > >> him, but I can understand you. In one of your last mail you noticed that > >> data controls don't have all the properties as other textboxes, such > >> alignment and so on. Be prepared for other surprises. Everybody would > >> love to have controls with lots of properties in order to do everything > >> you want, but this is impossible (can you believe it? Once you have put > >> 100 properties in a control, you will find someone asking for the #101). > >> > > > > Of course, the point is, I didn't ask for the features. Did I? I asked > > is the limitation by design, are there plans to change it, and is there > > a workaround. > > > You are very precise... so I will do too. I didn't say *you* asked for > features (did I?). Nevertheless you was talking about features... Then why did you bring up my question in the first place?about it > > Besides, do you feel it is unreasonable for someone to want "a box used > > to show the contents of a Field or edit it", a data-bound control > > intended to save programming time, to have similar functionality to a > > TextBox? > > > No. > > > >> Real programmers prefer to do things their way, with few versatile > >> mechanisms. > >> > > > > So, who do you believe might not be a real programmer? > > > Are you expecting I say "you"? No. I don't know who you are, and even if > I don't agree with you, I can not say you are not a real programmer. Are outright insults like that permitted on a mailing list like this one? > Hey guy, keep it cool. Yet you had to resort to insults. From nospam.nospam.nospam at ...626... Sun Oct 18 22:53:23 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Mon, 19 Oct 2009 07:53:23 +1100 Subject: [Gambas-user] Missing feature? In-Reply-To: <200910181753.16320.gambas@...1...> References: <1255830409.20916.21.camel@...2304...> <200910181753.16320.gambas@...1...> Message-ID: <1255899203.4391.57.camel@...2304...> On Sun, 2009-10-18 at 17:53 +0200, Beno?t Minisini wrote: > > TextBoxes and Labels have an alignment property but DataControls do not. > > > > Is that by design? Are there plans to change it? > > > > Is there a workaround to allow the alignment of a DataControl, apart > > from hiding the DataControls and mirroring the data in a TextBox? > > > > Not really, not really. But it should be not really difficult to add it. > > The idea behind DataControl is changing the actual control used according to > the datatype of the field. So it just a matter of being careful that not all > true controls used by DataControl support an Alignment property. > > If I remember, at the moment, Number are right aligned, and other data left > aligned by default. Ok, thanks. I'll put it down as a limitation :) > > Is there any way to set the foreground and background colours of a > > disabled TextBox to something other than the almost unreadable colours > > used in the default linux colour schemes? > > > > All suggestions, other than rude suggestions, are welcome. > > > > Alas the behaviour of disabled controls mostly depends on the toolkit, the > theme used, and the colours used in the control center for KDE. > > And if setting the background (or foreground) color of a control sets its > colour both for normal and disabled mode, there will be no way for the user to > see the difference between a normal and a disabled control, which is not a > good thing. I found a perfect workaround while I was working around the limitation mentioned above. The TextArea control doesn't change the colour of text when it is disabled. Instead of using the TextBox control to replace the DataControls, which I need to align, I now use TextArea. It looks good, like it should. If TextArea isn't supposed to be like that, please don't fix it :) From vkan53 at ...2300... Sun Oct 18 23:15:00 2009 From: vkan53 at ...2300... (Vassilis K) Date: Mon, 19 Oct 2009 00:15:00 +0300 Subject: [Gambas-user] make Label background from Database field Message-ID: <200910190015.00234.vkan53@...2300...> After a more accurate control I discovered that the last record was not included with red color. But when I put the LOOP up to rsThesi.Count it shows up the same old error. so I put just after the LOOP the line : change_bgcolor("Label" & CInt(rsThesi!thesi)) AND everything is OK at last !! Here's the code with the extra line: DO WHILE rsThesi.Index < rsThesi.Count - 1 change_bgcolor("Label" & CInt(rsThesi!thesi)) rsThesi.MoveNext() LOOP change_bgcolor("Label" & CInt(rsThesi!thesi)) From jmcbride at ...2309... Mon Oct 19 00:46:48 2009 From: jmcbride at ...2309... (Jerry McBride) Date: Sun, 18 Oct 2009 18:46:48 -0400 Subject: [Gambas-user] Gambas and Gnome dependencies... Message-ID: <200910181846.48724.jmcbride@...2309...> I'm building Gambas on Gentoo and it's dragging in all kinds of gnome libraries... My question is why? Jerry -- ***************************************************************************** From the desk of: Jerome D. McBride 18:45:33 up 21 days, 26 min, 7 users, load average: 0.02, 0.01, 0.00 ***************************************************************************** From jmcbride at ...2309... Mon Oct 19 00:47:50 2009 From: jmcbride at ...2309... (Jerry McBride) Date: Sun, 18 Oct 2009 18:47:50 -0400 Subject: [Gambas-user] The Gambas wiki... Message-ID: <200910181847.50643.jmcbride@...2309...> Is the source code for the wiki available? I understand it's written in gambas... It would make a great tutorial. Jerry -- ***************************************************************************** From the desk of: Jerome D. McBride 18:46:56 up 21 days, 27 min, 7 users, load average: 0.00, 0.00, 0.00 ***************************************************************************** From wdahn at ...1000... Mon Oct 19 06:33:30 2009 From: wdahn at ...1000... (Werner) Date: Mon, 19 Oct 2009 12:33:30 +0800 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <200910190015.00234.vkan53@...2300...> References: <200910190015.00234.vkan53@...2300...> Message-ID: <4ADBEC1A.9060803@...1000...> Vassilis K wrote: > After a more accurate control I discovered that the last record was not > included with red color. But when I put the LOOP up to rsThesi.Count it shows > up the same old error. > so I put just after the LOOP the line : > change_bgcolor("Label" & CInt(rsThesi!thesi)) > AND everything is OK at last !! > Here's the code with the extra line: > > DO WHILE rsThesi.Index < rsThesi.Count - 1 > change_bgcolor("Label" & CInt(rsThesi!thesi)) > rsThesi.MoveNext() > LOOP > change_bgcolor("Label" & CInt(rsThesi!thesi)) > Hmm, maybe this would work: FOR EACH rsThesi change_bgcolor("Label" & CInt(rsThesi!thesi)) NEXT We'll make a program out of this yet! :-D Werner From sabamoshe at ...626... Mon Oct 19 07:14:39 2009 From: sabamoshe at ...626... (Saba Moshe) Date: Mon, 19 Oct 2009 07:14:39 +0200 Subject: [Gambas-user] Code Editor Problem Message-ID: <262b9d920910182214j466f9f4fs11b6799457c99b47@...627...> Because the pop-up list would be too long? Saba Moshe >>> Date: Sun, 18 Oct 2009 18:00:50 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] Code Editor Problem To: mailing list for gambas users Message-ID: <200910181800.50789.gambas at ...1...> Content-Type: Text/Plain; charset="utf-8" > > On Sat, 2009-10-17 at 16:21 +0200, Beno?t Minisini wrote: > > > > No such thing happens if the module name is from 1 to 3 characters in > > > > length. The problem is, I need a module to be called k, nothing else, > > > > and I need the constants to be displayed when I type k and a period. > > > > > > Do you mean that if you type "k" then a period, you won't see the > > > completion popup of the module "k" ? > > > > Yes, that's correct. Typing k. does not show the completion popup. > > But with a class whose name is two characters, it works. Funny... > I explicitely do not open the automatic completion when the class name is one character only. But I do not remember why I did that. :-( -- Beno?t Minisini From sourceforge-raindog2 at ...94... Mon Oct 19 07:27:25 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 19 Oct 2009 01:27:25 -0400 Subject: [Gambas-user] The Gambas wiki... In-Reply-To: <200910181847.50643.jmcbride@...2309...> References: <200910181847.50643.jmcbride@...2309...> Message-ID: <200910190127.26954.sourceforge-raindog2@...94...> On Sunday 18 October 2009 06:47 pm, Jerry McBride wrote: > Is the source code for the wiki available? I understand it's written in > gambas... It would make a great tutorial. As far as I know, it's included in the Gambas tarball in the "app/src/doc.cgi" directory. Rob From doriano.blengino at ...1909... Mon Oct 19 10:34:33 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 19 Oct 2009 10:34:33 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255898731.4391.49.camel@...2304...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> <1255860717.4391.27.camel@...2304...> <4ADB034C.4060309@...1909...> <1255898731.4391.49.camel@...2304...> Message-ID: <4ADC2499.8060900@...1909...> Kad Mann ha scritto: > On Sun, 2009-10-18 at 14:00 +0200, Doriano Blengino wrote: > >> Kad Mann ha scritto: >> >>> On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: >>> >>> >>>> Kad Mann ha scritto: >>>> >>>> >>>>> On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: >>>>> >>>>> >>>>> >>>>>> Kad Mann ha scritto: >>>>>> >>>>>> >>>>>> >>>>>>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Dimitri I don't understand >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Why don't you take a look at the database example in Gambas? >>>>>>> >>>>>>> After creating the test table, if you type in an SQL command and click >>>>>>> the run button, you will see a gridview with a myriad colours that can >>>>>>> be changed based on the data. Surely something like that has to be >>>>>>> easier than trying to work out how to manage a hundred labels on a >>>>>>> screen, and surely it will offer you much better and easier control of >>>>>>> future UI changes, and surely it will offer a more pleasing and >>>>>>> intuitive presentation to your user. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> "Surely something like that has to be easier" and "surely much better >>>>>> and easier control". >>>>>> Yes and no >>>>>> >>>>>> >>>>>> >>>>> I didn't ask you. >>>>> >>>>> >>>>> >>>> True, and neither Vassilis asked you something... you can't understand >>>> him, but I can understand you. In one of your last mail you noticed that >>>> data controls don't have all the properties as other textboxes, such >>>> alignment and so on. Be prepared for other surprises. Everybody would >>>> love to have controls with lots of properties in order to do everything >>>> you want, but this is impossible (can you believe it? Once you have put >>>> 100 properties in a control, you will find someone asking for the #101). >>>> >>>> >>> Of course, the point is, I didn't ask for the features. Did I? I asked >>> is the limitation by design, are there plans to change it, and is there >>> a workaround. >>> >>> >> You are very precise... so I will do too. I didn't say *you* asked for >> features (did I?). Nevertheless you was talking about features... >> > > Then why did you bring up my question in the first place?about it > Because it was in-topic and because it seemed to me that you did'nt get the original intentions. And about features, you did'nt ask for them, and I did'nt say you asked for them. But to be aware of a limitation is halfway to ask for those limitations to be removed - unless you say that limitations are a good thing. > >>> Besides, do you feel it is unreasonable for someone to want "a box used >>> to show the contents of a Field or edit it", a data-bound control >>> intended to save programming time, to have similar functionality to a >>> TextBox? >>> >>> >> No. >> >>> >>> >>>> Real programmers prefer to do things their way, with few versatile >>>> mechanisms. >>>> >>>> >>> So, who do you believe might not be a real programmer? >>> >>> >> Are you expecting I say "you"? No. I don't know who you are, and even if >> I don't agree with you, I can not say you are not a real programmer. >> > > Are outright insults like that permitted on a mailing list like this > one? > > >> Hey guy, keep it cool. >> > > Yet you had to resort to insults. > I did'nt insult anyone in this list - never. Even taking my words the worst possible way, at the point where I expressed a judgment on your ideas (just *some* of your ideas), I did not judged you - this is why I don't believe I had insulted you. Anyway, if you feel insulted, let me say it was not my intention. I would feel very stupid by insulting someone I not even know, just basing on a few 'technical' words he could had say. I hope we will have further occasions to understand each other, if you want. Regards, Doriano From gambas at ...1... Mon Oct 19 10:41:21 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 19 Oct 2009 10:41:21 +0200 Subject: [Gambas-user] Why Vassilis' code raised a "Result not available" Message-ID: <200910191041.21719.gambas@...1...> Hi, I renamed the subject, because the thread was too deep for my screen. :-) The following code: PUBLIC SUB Form_Open() DIM i AS Integer DIM rsThesi AS Result MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = 0") rsThesi.MoveFirst WHILE rsThesi.Index < rsThesi.Count change_bgcolor("Label" & rsThesi!thesi) rsThesi.MoveNext WEND MODMain.$Con.Commit() END ...does not work and raise "Result not available" because when you reach the end of the Result and call MoveNext(), the Index property switches to -1 (-1 meaning "not available"). And as -1 is always lower then rsThesi.Count, the loop continues. Writing `WHILE rsThesi.Index < rsThesi.Count - 1' does not raise the error, but you lose the last record of the Result! So it is wrong too. So, as Werner wrote, the right way of writing that code is: FOR EACH rsThesi ME["Label" & rsThesi!thesi].Background = Color.Red NEXT And the commit is useless, as you didn't write anything to the database. And, finally, to Kad Mann: Vassili used a bunch of Labels and not a GridView because he used them for drawing a camping schema. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Mon Oct 19 11:03:53 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Mon, 19 Oct 2009 20:03:53 +1100 Subject: [Gambas-user] Really weird socket problem Message-ID: <1255943033.3720.27.camel@...2304...> I need pointers on where I might look to solve this. I've written a proxy class in gambas (2.16) and it was working brilliantly when I went to be last night and left it running. When I got up this morning my Linux desktop, which was running the compiled gambas program, note compiled program - not inside the IDE, displayed a message about a broken pipe in the proxy class. I didn't get the message in full (my bad), but it was very brief and didn't say much more than "cProxy: broken pipe error". On investigating, my Windows server had rebooted (hahaha stupid MS patch got auto-installed) and ever since, my gambas proxy does not work anymore on the local machine. I went back through eight known good revisions of the code (I save working revisions as I go, just in case something like this happens due to an error on my part) but not a single one of them works at all. Therefore I know it's not my code that is the problem. I put some debugs into the latest code and this is what I get: 1. cProxy.StartProxyServer.42: StartProxyServer 2. cProxy.ProxyServer_Connection.53: ProxyServer_Connection 3. cProxy.Socket_Ready.124: Socket_Ready 4. cProxy.KillProxy.176: KillProxy At 1, the proxy is started and is listening. At 2, a connection is received at the proxy from a client application, in this case Pan or SeaMonkey. At 3, the socket is established and ready to talk. Between 3 and 4, several different clients (Pan and Seamonkey) exhibit the same symptoms, they behave as if there is no communication on the socket. Pan resets the connection and keeps trying. Seamonkey just waits and waits. At 4, the proxy has detected that the client connection has gone away so it kills the remote connection and starts listening for more incoming client connections, which is what the KillProxy procedure is suppsoed to do. I tried pointing the clients to localhost and 127.0.0.1, with different port values, all above 5000. In desperation I tried 119 on the localhost. Still no change. I rebooted twice. My Ubuntu has not been updated since last week. Finally I tried the socket example that comes with gambas. It too fails to connect with itself. It says "Host found. Connecting...", then some 10 or 15 seconds later, it says "Timeout trying to stablish [sic] connection". My gambas appears to be b0rked. Perhaps the solution is to uninstall gambas and recompile it, but I'd prefer to find out why it blew up the way it did. Anyone care to try and shed some light on this weird issue? Could a crashed pipe cause a compiled gambas application to scribble all over itself and damage the socket component in the same deal? From nospam.nospam.nospam at ...626... Mon Oct 19 11:07:50 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Mon, 19 Oct 2009 20:07:50 +1100 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4ADC2499.8060900@...1909...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> <1255860717.4391.27.camel@...2304...> <4ADB034C.4060309@...1909...> <1255898731.4391.49.camel@...2304...> <4ADC2499.8060900@...1909...> Message-ID: <1255943270.3720.31.camel@...2304...> On Mon, 2009-10-19 at 10:34 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > I did'nt insult anyone in this list - never. Even taking my words the > worst possible way, at the point where I expressed a judgment on your > ideas (just *some* of your ideas), I did not judged you - this is why I > don't believe I had insulted you. > Anyway, if you feel insulted, let me say it was not my intention. I > would feel very stupid by insulting someone I not even know, just basing > on a few 'technical' words he could had say. I hope we will have further > occasions to understand each other, if you want. No, you didn't insult anyone, and I sincerely apologise. I was having great difficulty following your English and when I went back to look at where I thought you had insulted me, I realised I had completely misread what you said. Let's leave there, hey, and let's have better luck next time. Again, my sincere apologies. > Regards, > Doriano > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nospam.nospam.nospam at ...626... Mon Oct 19 11:08:45 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Mon, 19 Oct 2009 20:08:45 +1100 Subject: [Gambas-user] Why Vassilis' code raised a "Result not available" In-Reply-To: <200910191041.21719.gambas@...1...> References: <200910191041.21719.gambas@...1...> Message-ID: <1255943325.3720.32.camel@...2304...> On Mon, 2009-10-19 at 10:41 +0200, Beno?t Minisini wrote: > And, finally, to Kad Mann: Vassili used a bunch of Labels and not a GridView > because he used them for drawing a camping schema. I'm keeping my mouth shut :) From gambas at ...1... Mon Oct 19 11:19:48 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 19 Oct 2009 11:19:48 +0200 Subject: [Gambas-user] Gambas and Gnome dependencies... In-Reply-To: <200910181846.48724.jmcbride@...2309...> References: <200910181846.48724.jmcbride@...2309...> Message-ID: <200910191119.48738.gambas@...1...> > I'm building Gambas on Gentoo and it's dragging in all kinds of gnome > libraries... My question is why? > > Jerry > Gambas needs GTK+ libraries and the gnome keyring library for Gambas 3. But no other gnome libraries afaik. -- Beno?t Minisini From gambas at ...1... Mon Oct 19 11:22:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 19 Oct 2009 11:22:26 +0200 Subject: [Gambas-user] Missing feature? In-Reply-To: <1255899203.4391.57.camel@...2304...> References: <1255830409.20916.21.camel@...2304...> <200910181753.16320.gambas@...1...> <1255899203.4391.57.camel@...2304...> Message-ID: <200910191122.26428.gambas@...1...> > On Sun, 2009-10-18 at 17:53 +0200, Beno?t Minisini wrote: > > > TextBoxes and Labels have an alignment property but DataControls do > > > not. > > > > > > Is that by design? Are there plans to change it? > > > > > > Is there a workaround to allow the alignment of a DataControl, apart > > > from hiding the DataControls and mirroring the data in a TextBox? > > > > Not really, not really. But it should be not really difficult to add it. > > > > The idea behind DataControl is changing the actual control used according > > to the datatype of the field. So it just a matter of being careful that > > not all true controls used by DataControl support an Alignment property. > > > > If I remember, at the moment, Number are right aligned, and other data > > left aligned by default. > > Ok, thanks. I'll put it down as a limitation :) > > > > Is there any way to set the foreground and background colours of a > > > disabled TextBox to something other than the almost unreadable colours > > > used in the default linux colour schemes? > > > > > > All suggestions, other than rude suggestions, are welcome. > > > > Alas the behaviour of disabled controls mostly depends on the toolkit, > > the theme used, and the colours used in the control center for KDE. > > > > And if setting the background (or foreground) color of a control sets its > > colour both for normal and disabled mode, there will be no way for the > > user to see the difference between a normal and a disabled control, which > > is not a good thing. > > I found a perfect workaround while I was working around the limitation > mentioned above. The TextArea control doesn't change the colour of text > when it is disabled. Instead of using the TextBox control to replace the > DataControls, which I need to align, I now use TextArea. It looks good, > like it should. > > If TextArea isn't supposed to be like that, please don't fix it :) > The cleaner way to play with the control used by DataControl is using DataControl.Children[0], that returns a reference to it. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Mon Oct 19 11:40:15 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Mon, 19 Oct 2009 20:40:15 +1100 Subject: [Gambas-user] Gambas and Gnome dependencies... In-Reply-To: <200910181846.48724.jmcbride@...2309...> References: <200910181846.48724.jmcbride@...2309...> Message-ID: <1255945215.5025.1.camel@...2304...> On Sun, 2009-10-18 at 18:46 -0400, Jerry McBride wrote: > I'm building Gambas on Gentoo and it's dragging in all kinds of gnome > libraries... My question is why? "Before downloading Gambas, compiling it and then complaining, please read the following remarks CAREFULLY!" http://gambasdoc.org/help/readme One would presume that the compile is dragging in gnome libraries because they are needed. From doriano.blengino at ...1909... Mon Oct 19 11:46:01 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 19 Oct 2009 11:46:01 +0200 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <1255943270.3720.31.camel@...2304...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> <1255860717.4391.27.camel@...2304...> <4ADB034C.4060309@...1909...> <1255898731.4391.49.camel@...2304...> <4ADC2499.8060900@...1909...> <1255943270.3720.31.camel@...2304...> Message-ID: <4ADC3559.9040908@...1909...> Kad Mann ha scritto: > No, you didn't insult anyone, and I sincerely apologise. I was having > great difficulty following your English... > > Is my english so bad? If you have difficulties to read it, think at the difficulties I have to write it... :-) Feel free to correct me, my own language is so complicated to translate. Regards, Doriano From nospam.nospam.nospam at ...626... Mon Oct 19 11:58:46 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Mon, 19 Oct 2009 20:58:46 +1100 Subject: [Gambas-user] make Label background from Database field In-Reply-To: <4ADC3559.9040908@...1909...> References: <200910172246.17747.vkan53@...2300...> <1255820195.20916.8.camel@...2304...> <4ADABEE1.1050205@...1909...> <1255850762.31935.0.camel@...2304...> <4ADAD619.90202@...1909...> <1255860717.4391.27.camel@...2304...> <4ADB034C.4060309@...1909...> <1255898731.4391.49.camel@...2304...> <4ADC2499.8060900@...1909...> <1255943270.3720.31.camel@...2304...> <4ADC3559.9040908@...1909...> Message-ID: <1255946326.3661.1.camel@...2304...> On Mon, 2009-10-19 at 11:46 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > No, you didn't insult anyone, and I sincerely apologise. I was having > > great difficulty following your English... > > > > > Is my english so bad? If you have difficulties to read it, think at the > difficulties I have to write it... :-) lol From nando_f at ...951... Mon Oct 19 17:19:31 2009 From: nando_f at ...951... (nando) Date: Mon, 19 Oct 2009 10:19:31 -0500 Subject: [Gambas-user] Really weird socket problem In-Reply-To: <1255943033.3720.27.camel@...2304...> References: <1255943033.3720.27.camel@...2304...> Message-ID: <20091019151604.M69438@...951...> My experience over the years with Gambas and really odd issues that appears to point to Gambas failing always (ALWAYS!) was that Gambas did not fail, but something else broke. Unless you have a hard drive failure, bad cable, etc, your Gambas is almost certainly working just fine. Something else changed somewhere else. Try telneting from a shell to what you want. Remember, windows update can reset firewalls, add rules do things and change settings and never ask you. Look there first. You'll find windows is probably the issue. -Fernando ---------- Original Message ----------- From: Kad Mann To: gambas Sent: Mon, 19 Oct 2009 20:03:53 +1100 Subject: [Gambas-user] Really weird socket problem > I need pointers on where I might look to solve this. > > I've written a proxy class in gambas (2.16) and it was working > brilliantly when I went to be last night and left it running. When I got > up this morning my Linux desktop, which was running the compiled gambas > program, note compiled program - not inside the IDE, displayed a message > about a broken pipe in the proxy class. I didn't get the message in full > (my bad), but it was very brief and didn't say much more than "cProxy: > broken pipe error". > > On investigating, my Windows server had rebooted (hahaha stupid MS patch > got auto-installed) and ever since, my gambas proxy does not work > anymore on the local machine. > > I went back through eight known good revisions of the code (I save > working revisions as I go, just in case something like this happens due > to an error on my part) but not a single one of them works at all. > Therefore I know it's not my code that is the problem. > > I put some debugs into the latest code and this is what I get: > > 1. cProxy.StartProxyServer.42: StartProxyServer > 2. cProxy.ProxyServer_Connection.53: ProxyServer_Connection > 3. cProxy.Socket_Ready.124: Socket_Ready > 4. cProxy.KillProxy.176: KillProxy > > At 1, the proxy is started and is listening. > > At 2, a connection is received at the proxy from a client application, > in this case Pan or SeaMonkey. > > At 3, the socket is established and ready to talk. > > Between 3 and 4, several different clients (Pan and Seamonkey) exhibit > the same symptoms, they behave as if there is no communication on the > socket. Pan resets the connection and keeps trying. Seamonkey just waits > and waits. > > At 4, the proxy has detected that the client connection has gone away so > it kills the remote connection and starts listening for more incoming > client connections, which is what the KillProxy procedure is suppsoed to > do. > > I tried pointing the clients to localhost and 127.0.0.1, with different > port values, all above 5000. In desperation I tried 119 on the > localhost. Still no change. I rebooted twice. My Ubuntu has not been > updated since last week. > > Finally I tried the socket example that comes with gambas. It too fails > to connect with itself. It says "Host found. Connecting...", then some > 10 or 15 seconds later, it says "Timeout trying to stablish [sic] > connection". > > My gambas appears to be b0rked. Perhaps the solution is to uninstall > gambas and recompile it, but I'd prefer to find out why it blew up the > way it did. > > Anyone care to try and shed some light on this weird issue? Could a > crashed pipe cause a compiled gambas application to scribble all over > itself and damage the socket component in the same deal? > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nando_f at ...951... Mon Oct 19 17:23:24 2009 From: nando_f at ...951... (nando) Date: Mon, 19 Oct 2009 10:23:24 -0500 Subject: [Gambas-user] serial port. In-Reply-To: <990050.17915.qm@...2266...> References: <990050.17915.qm@...2266...> Message-ID: <20091019152024.M59929@...951...> If you want to send a binary 37 to serial port Sport, then you can do any of these: 1. Print #Sport, "%"; 2. Print #Sport, Chr$(37); 3. S=Chr$(37) Write #Sport, S, 1 You do not have to 'convert' to binary. -Fernando ---------- Original Message ----------- From: abdurrahman ulusoy To: mailing list for gambas users Sent: Sun, 18 Oct 2009 09:57:25 -0700 (PDT) Subject: [Gambas-user] serial port. > hi i want to send data to serial port. when i send a number (for exam: 37) > , what is writing gambas to seri port (100101 or 37) ? if gambas write (37) > how can i convert decimaltobinary. (are there any module or command ? > > ___________________________________________________________________ [UTF-8?]> Yahoo! T??rkiye a????ld??! http://yahoo.com.tr [UTF-8?]> ??nternet ??zerindeki en iyi i??eri??i Yahoo! T??rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ulusoyab at ...43... Mon Oct 19 19:06:37 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Mon, 19 Oct 2009 10:06:37 -0700 (PDT) Subject: [Gambas-user] serial port. In-Reply-To: <20091019152024.M59929@...951...> Message-ID: <728073.85004.qm@...2264...> Thanks. --- 19/10/09 Pzt tarihinde nando ??yle yaz?yor: Kimden: nando Konu: Re: [Gambas-user] serial port. Kime: "mailing list for gambas users" Tarihi: 19 Ekim 2009 Pazartesi, 18:23 If you want to send a binary 37 to serial port Sport, then you can do any of these: 1. Print #Sport, "%"; 2. Print #Sport, Chr$(37); 3. S=Chr$(37) ???Write #Sport, S, 1 You do not have to 'convert' to binary. -Fernando ---------- Original Message ----------- From: abdurrahman ulusoy To: mailing list for gambas users Sent: Sun, 18 Oct 2009 09:57:25 -0700 (PDT) Subject: [Gambas-user] serial port. > hi i want to send data to serial port.? when i send? a number? (for exam: 37) >? ,? what is writing gambas to seri port (100101 or 37) ? if gambas? write (37) >? how can i convert decimaltobinary. (are there any module or command? ?? > >? ? ???___________________________________________________________________ [UTF-8?]> Yahoo! T??rkiye a????ld??!? http://yahoo.com.tr [UTF-8?]> ??nternet ??zerindeki en iyi i??eri??i Yahoo! T??rkiye sizlere sunuyor! > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From nospam.nospam.nospam at ...626... Tue Oct 20 10:07:35 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Tue, 20 Oct 2009 19:07:35 +1100 Subject: [Gambas-user] Really weird socket problem In-Reply-To: <20091019151604.M69438@...951...> References: <1255943033.3720.27.camel@...2304...> <20091019151604.M69438@...951...> Message-ID: <1256026055.3256.2.camel@...2310...> On Mon, 2009-10-19 at 10:19 -0500, nando wrote: > My experience over the years with Gambas and really odd issues > that appears to point to Gambas failing always (ALWAYS!) was that > Gambas did not fail, but something else broke. > Unless you have a hard drive failure, bad cable, etc, your Gambas > is almost certainly working just fine. Something else changed > somewhere else. > Try telneting from a shell to what you want. > Remember, windows update can reset firewalls, add rules > do things and change settings and never ask you. > Look there first. You'll find windows is probably the issue. Windows can't be the problem because the client and the proxy are on the linux box. The client is not communicating with the proxy over a socket. The server is on Windows and has nothing to do with the issue. Nevertheless, thanks for trying. > -Fernando > > > ---------- Original Message ----------- > From: Kad Mann > To: gambas > Sent: Mon, 19 Oct 2009 20:03:53 +1100 > Subject: [Gambas-user] Really weird socket problem > > > I need pointers on where I might look to solve this. > > > > I've written a proxy class in gambas (2.16) and it was working > > brilliantly when I went to be last night and left it running. When I got > > up this morning my Linux desktop, which was running the compiled gambas > > program, note compiled program - not inside the IDE, displayed a message > > about a broken pipe in the proxy class. I didn't get the message in full > > (my bad), but it was very brief and didn't say much more than "cProxy: > > broken pipe error". > > > > On investigating, my Windows server had rebooted (hahaha stupid MS patch > > got auto-installed) and ever since, my gambas proxy does not work > > anymore on the local machine. > > > > I went back through eight known good revisions of the code (I save > > working revisions as I go, just in case something like this happens due > > to an error on my part) but not a single one of them works at all. > > Therefore I know it's not my code that is the problem. > > > > I put some debugs into the latest code and this is what I get: > > > > 1. cProxy.StartProxyServer.42: StartProxyServer > > 2. cProxy.ProxyServer_Connection.53: ProxyServer_Connection > > 3. cProxy.Socket_Ready.124: Socket_Ready > > 4. cProxy.KillProxy.176: KillProxy > > > > At 1, the proxy is started and is listening. > > > > At 2, a connection is received at the proxy from a client application, > > in this case Pan or SeaMonkey. > > > > At 3, the socket is established and ready to talk. > > > > Between 3 and 4, several different clients (Pan and Seamonkey) exhibit > > the same symptoms, they behave as if there is no communication on the > > socket. Pan resets the connection and keeps trying. Seamonkey just waits > > and waits. > > > > At 4, the proxy has detected that the client connection has gone away so > > it kills the remote connection and starts listening for more incoming > > client connections, which is what the KillProxy procedure is suppsoed to > > do. > > > > I tried pointing the clients to localhost and 127.0.0.1, with different > > port values, all above 5000. In desperation I tried 119 on the > > localhost. Still no change. I rebooted twice. My Ubuntu has not been > > updated since last week. > > > > Finally I tried the socket example that comes with gambas. It too fails > > to connect with itself. It says "Host found. Connecting...", then some > > 10 or 15 seconds later, it says "Timeout trying to stablish [sic] > > connection". > > > > My gambas appears to be b0rked. Perhaps the solution is to uninstall > > gambas and recompile it, but I'd prefer to find out why it blew up the > > way it did. > > > > Anyone care to try and shed some light on this weird issue? Could a > > crashed pipe cause a compiled gambas application to scribble all over > > itself and damage the socket component in the same deal? > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rolf.frogs at ...221... Tue Oct 20 18:40:09 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Tue, 20 Oct 2009 18:40:09 +0200 Subject: [Gambas-user] Really weird socket problem In-Reply-To: <1256026055.3256.2.camel@...2310...> References: <1255943033.3720.27.camel@...2304...> <20091019151604.M69438@...951...> <1256026055.3256.2.camel@...2310...> Message-ID: <200910201840.11849.rolf.frogs@...221...> Hi Kad Mann: > Windows can't be the problem because the client and the proxy are on the > linux box. The client is not communicating with the proxy over a socket. > The server is on Windows and has nothing to do with the issue. What does ethereal shows about the start of the connection? Keep an eye on the handshake bits i.e. sync and akn. Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From math.eber at ...221... Tue Oct 20 20:56:23 2009 From: math.eber at ...221... (Matti) Date: Tue, 20 Oct 2009 20:56:23 +0200 Subject: [Gambas-user] Mouse Events Message-ID: <4ADE07D7.1030502@...221...> When I want to use a DblClick event on some controls that don't have the "Activate" event (eg PictureBox), I get difficulties: The MouseDown event is (of course) raised before the DblClick event. So, before I can react to DblClick, I always land in MouseDown. Here I can tell if the mouse was pressed left or right and everything, but I can't see if it is just the first click of a DblClick. I don't see a possibility to respond to a single-click on the control in one Sub, and to a double-click in another, because there are always two events when there is a double-click. Any ideas? Thanks, Matti From jussi.lahtinen at ...626... Tue Oct 20 22:16:34 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 20 Oct 2009 23:16:34 +0300 Subject: [Gambas-user] Highlight problem Message-ID: <384d3900910201316r943254es5a9df8983664d55d@...627...> Hi! I'm trying to improve my message window with highlighting. No success... I have tried to implement it with TextEdit (proto1) and with Editor (proto2) controls. See attachments. What I'm trying to do, is window that show messages and highlight every other of them, and also highlight important messages with different color. (Reason for this, is that I have missed some messages from my program, and I believe that highlighting help me to notice changes more easily.) And it should concatenate same messages like this. Here is wanted output of same message, "Test message." sent to message window three times: Test message. x 3 In other words, I don't want this: Test message. Test message. Test message. Messages can have multiple lines. All this is already implemented without highlighting. With proto1, I have problems with concatenate and with changing backcolor of font. With proto2, concatenate works, but I have problems with highlighting. How to customise highlight? And is there invisible marking etc. which can be used to determine what highlighting should be apply to lines. Now there is "If InStr(sLine, "1") Then" for test purpose. Using numbers etc. to determine wanted highlighting type is not what I want. Any help appreciated! Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: Proto1.tar.gz Type: application/x-gzip Size: 8407 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Proto2.tar.gz Type: application/x-gzip Size: 8517 bytes Desc: not available URL: From wdahn at ...1000... Wed Oct 21 04:11:50 2009 From: wdahn at ...1000... (Werner) Date: Wed, 21 Oct 2009 10:11:50 +0800 Subject: [Gambas-user] Mouse Events In-Reply-To: <4ADE07D7.1030502@...221...> References: <4ADE07D7.1030502@...221...> Message-ID: <4ADE6DE6.8030404@...1000...> Matti wrote: > When I want to use a DblClick event on some controls that don't have the "Activate" event (eg PictureBox), I get difficulties: > > The MouseDown event is (of course) raised before the DblClick event. > So, before I can react to DblClick, I always land in MouseDown. Here I can tell if the mouse was pressed left or right and > everything, but I can't see if it is just the first click of a DblClick. > > I don't see a possibility to respond to a single-click on the control in one Sub, and to a double-click in another, because > there are always two events when there is a double-click. > > Any ideas? > Thanks, Matti You could try to knit your own doubleclick. All it needs is a timer. Here is a pseudo code rough sketch: Event routine myControl_MouseDown: If myTimer is running then stop myTimer #do your Double Click stuff here else start myTimer end end # myControl_MouseDown Event routine myTimer_Timer: stop myTimer #do your single click stuff here end # myTimer_Timer You can then play with myTimer.Delay. Setting it to 1ms effectively disables double click. I think 300..400ms is a good number. Maybe the desktop of choice has a preference scheme where the user can set the delay. MyTimer.Enabled is initially false. Regards Werner From math.eber at ...221... Wed Oct 21 07:34:53 2009 From: math.eber at ...221... (Matti) Date: Wed, 21 Oct 2009 07:34:53 +0200 Subject: [Gambas-user] Mouse Events In-Reply-To: <4ADE6DE6.8030404@...1000...> References: <4ADE07D7.1030502@...221...> <4ADE6DE6.8030404@...1000...> Message-ID: <4ADE9D7D.4060907@...221...> Good idea, thanks. I'll try that. Werner schrieb: > Matti wrote: >> When I want to use a DblClick event on some controls that don't have the "Activate" event (eg PictureBox), I get difficulties: >> >> The MouseDown event is (of course) raised before the DblClick event. >> So, before I can react to DblClick, I always land in MouseDown. Here I can tell if the mouse was pressed left or right and >> everything, but I can't see if it is just the first click of a DblClick. >> >> I don't see a possibility to respond to a single-click on the control in one Sub, and to a double-click in another, because >> there are always two events when there is a double-click. >> >> Any ideas? >> Thanks, Matti > You could try to knit your own doubleclick. All it needs is a timer. > > Here is a pseudo code rough sketch: > > > Event routine myControl_MouseDown: > If myTimer is running > then > stop myTimer > #do your Double Click stuff here > else > start myTimer > end > end # myControl_MouseDown > > > Event routine myTimer_Timer: > stop myTimer > #do your single click stuff here > end # myTimer_Timer > > > You can then play with myTimer.Delay. Setting it to 1ms effectively > disables double click. I think 300..400ms is a good number. Maybe the > desktop of choice has a preference scheme where the user can set the delay. > MyTimer.Enabled is initially false. > > Regards > Werner From dima.malkov.russia at ...626... Wed Oct 21 15:23:31 2009 From: dima.malkov.russia at ...626... (Dima Malkov) Date: Wed, 21 Oct 2009 18:23:31 +0500 Subject: [Gambas-user] set of questions Message-ID: <1256131411.3857.18.camel@...938...> Using Gambas 2.7, Debian Lenny 32 -- Hello! Main question. I want to run my gambas2-application from USB-FLASH-DISK on the computers, that do not have gambas2 installed. There is a folder on my USB-FLASH-DISK with my application and subfolders: 1) "bin", includes files "gba2", "gbc2", "gbi2", "gbx2", soft links; 2) "lib", includes files "*.so.0.0.0", "*.component", "*.gambas", soft links; 3) "share", includes "icons/*.png", "info/*" (strange files), "mime/*.xml". It also includes bash-script for copying all above to system folders /usr/bin/, /usr/lib/ and /usr/share. Can I run my application with just some command, without copying? Another questions: 1) May I create proprietary (not open-scource) gambas2-applications and components for gambas2? 2) I have the GridView in my program, that displays 4 thousands of rows. When it updates the data (4-10 seconds), program do not reflexes. There is a string in the documentation: "You should use the last if you have thousands of rows to display.". I'm sorry, I do not understand this at all. Could anybody explain this on a simple example? 3) When I hide persistent Form, how to display it again? 4) On my monitore with resolution "1024x768" Forms and widgets on them look great. But when I come to my friends with big wide monitors, some widgets (Buttons) became bigger while another widgets don't or not in such proportions. Why it happens? 5) Can I easily convert my big project from the gambas2-project to the gambas3-project? 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. Can I easily switch them to gb.qt4 and other components, when my favour Linux-distr Debian will be updated? Some suggestions: 1) In gambas2-IDE I need the "insert mode" of type, that replaces the next character. P.S. Thanks to Beno?t Minisini for help (Problem with UTF-8 in Gambas-connection to MySQL). The "--default-character-set" really was "Latin1". Regards, -- Dima Malkov (Russia) From charles at ...1784... Wed Oct 21 09:54:03 2009 From: charles at ...1784... (charlesg) Date: Wed, 21 Oct 2009 00:54:03 -0700 (PDT) Subject: [Gambas-user] set of questions In-Reply-To: <1256131411.3857.18.camel@...938...> References: <1256131411.3857.18.camel@...938...> Message-ID: <25988021.post@...1379...> Hopefully this answers question 2. It is a distillation of the database example that comes with Gambas: You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease '======================================================== ' Gambas class file PUBLIC $hConnLocl AS NEW Connection PUBLIC $resData AS Result '-------------------------------------------------------- PUBLIC SUB Form_Open() DIM sql AS String 'open the database WITH $hConnLocl .type = "mysql" .host = "localhost" .Name = "stock" .login = "charles" .password="dog" END WITH $hConnLocl.Open() 'create a result sql = "SELECT * FROM grnLine" $resData = $hConnLocl.Exec(sql) END '--------------------------------------------------------- PUBLIC SUB btnRun_Click() DIM hForm AS FRequest DIM hField AS ResultField DIM iInd AS Integer GridView1.Rows.count = 0 'set the required number of columns GridView1.Columns.count = $resData.Fields.Count 'define the column headers and width FOR EACH hField IN $resData.Fields WITH hField GridView1.Columns[iInd].text = .Name GridView1.Columns[iInd].width = 60 END WITH INC iInd NEXT 'create the empty rows. Each empty and visible cell created calls GridView1_data GridView1.Rows.Count = $resData.Count END '--------------------------------------------------------- PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) 'move to the required result row $resData.MoveTo(row) 'set the data for the cell in the GridView from the column in the selected row of the result GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) 'lets you see how _data is being called as you scroll around the GridView PRINT row & ":" & column & ":" & Str($resData[GridView1.Columns[column].text]) END '---------------------------------------------------------- rgds -- View this message in context: http://www.nabble.com/set-of-questions-tp25987669p25988021.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Wed Oct 21 10:11:05 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 21 Oct 2009 10:11:05 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <1256131411.3857.18.camel@...938...> References: <1256131411.3857.18.camel@...938...> Message-ID: <4ADEC219.1040400@...1909...> Dima Malkov ha scritto: > Using Gambas 2.7, Debian Lenny 32 > -- > > Hello! > > Main question. > I want to run my gambas2-application from USB-FLASH-DISK on the > computers, that do not have gambas2 installed. > > There is a folder on my USB-FLASH-DISK with my application and > subfolders: > 1) "bin", includes files "gba2", "gbc2", "gbi2", "gbx2", soft links; > 2) "lib", includes files "*.so.0.0.0", "*.component", "*.gambas", soft > links; > 3) "share", includes "icons/*.png", "info/*" (strange files), > "mime/*.xml". > It also includes bash-script for copying all above to system > folders /usr/bin/, /usr/lib/ and /usr/share. > > Can I run my application with just some command, without copying? > Copying is a very bad idea - there is the risk of messing up the host system. In theory it is possible to do what you want, at a variable degree of difficulty. The only problem can arise if gambas searches its components using absolute paths without querying environment variables. You can refer, in your script, to relative paths for executables, and use the environment variable LD_LIBRARY_PATH for shared libraries. About /usr/lib and /usr/share, I am not sure about what gambas does. > > 2) I have the GridView in my program, that displays 4 thousands of rows. > When it updates the data (4-10 seconds), program do not reflexes. > There is a string in the documentation: > "You should use the last if you have thousands of rows to > display.". > I'm sorry, I do not understand this at all. > Could anybody explain this on a simple example? > The "second method" refers to the Data event, and works like this: you don't load all the data in the GridView; instead, you wait for Gridview to ask for the data through the Data event. In the event handler, you load the requested data. This method if far faster because Gridview asks for data only when needed (ie, when they are visible). You put a Gridview in a form, and setup the Data event. When the form shows up, there will be, say, 10 rows visible; Gridview will raise the event 10 times, asking for data of each visible row. If you scroll the Gridview, as more rows will become visible, more data will be requested by mean of Data event. Sorry for the missing answers - I told you the few things I knew. Regards, Doriano From degreane at ...626... Wed Oct 21 12:52:53 2009 From: degreane at ...626... (Faysal Banna) Date: Wed, 21 Oct 2009 13:52:53 +0300 Subject: [Gambas-user] set of questions In-Reply-To: <4ADEC219.1040400@...1909...> References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> Message-ID: Doriano... do you have a sample src package of what you have just explained ? can u share a simple running example with source files and forms ? much regards On Wed, Oct 21, 2009 at 11:11 AM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Dima Malkov ha scritto: > > Using Gambas 2.7, Debian Lenny 32 > > -- > > > > Hello! > > > > Main question. > > I want to run my gambas2-application from USB-FLASH-DISK on the > > computers, that do not have gambas2 installed. > > > > There is a folder on my USB-FLASH-DISK with my application and > > subfolders: > > 1) "bin", includes files "gba2", "gbc2", "gbi2", "gbx2", soft links; > > 2) "lib", includes files "*.so.0.0.0", "*.component", "*.gambas", soft > > links; > > 3) "share", includes "icons/*.png", "info/*" (strange files), > > "mime/*.xml". > > It also includes bash-script for copying all above to system > > folders /usr/bin/, /usr/lib/ and /usr/share. > > > > Can I run my application with just some command, without copying? > > > Copying is a very bad idea - there is the risk of messing up the host > system. > In theory it is possible to do what you want, at a variable degree of > difficulty. > The only problem can arise if gambas searches its components using > absolute paths without querying environment variables. You can refer, in > your script, to relative paths for executables, and use the environment > variable LD_LIBRARY_PATH for shared libraries. About /usr/lib and > /usr/share, I am not sure about what gambas does. > > > > 2) I have the GridView in my program, that displays 4 thousands of rows. > > When it updates the data (4-10 seconds), program do not reflexes. > > There is a string in the documentation: > > "You should use the last if you have thousands of rows to > > display.". > > I'm sorry, I do not understand this at all. > > Could anybody explain this on a simple example? > > > The "second method" refers to the Data event, and works like this: you > don't load all the data in the GridView; instead, you wait for Gridview > to ask for the data through the Data event. In the event handler, you > load the requested data. This method if far faster because Gridview asks > for data only when needed (ie, when they are visible). > You put a Gridview in a form, and setup the Data event. When the form > shows up, there will be, say, 10 rows visible; Gridview will raise the > event 10 times, asking for data of each visible row. If you scroll the > Gridview, as more rows will become visible, more data will be requested > by mean of Data event. > > Sorry for the missing answers - I told you the few things I knew. > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ============================ Faysal Banna Meteorological Services Rafic Harriri International Airport Beirut - Lebanon Mob: +961-3-258043 ============================= From doriano.blengino at ...1909... Wed Oct 21 13:38:42 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 21 Oct 2009 13:38:42 +0200 Subject: [Gambas-user] set of questions In-Reply-To: References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> Message-ID: <4ADEF2C2.9070802@...1909...> Faysal Banna ha scritto: > Doriano... > > do you have a sample src package of what you have just explained ? > can u share a simple running example with source files and forms ? > About what? I suppose about running a gambas app out of a usb stick? Never tried but, if this is your request, I can try. I played a bit, but it does not work. The path "lib/gambasX" seems to be hardcoded in the gbx executable. I discovered that there are two environment variables, LD_PRELOAD and GAMBAS_PRELOAD. The first is well known - it forces to preload the indicated libraries, and it works; but then gambas crashes. The second one does not seem to do anything; I peeked in the sources, but I didn't understand what's the trick - copy GAMBAS_PRELOAD to LD_PRELOAD, then copy it back again and unset the other... May be I am missing something, but for what I have seen, there is no way to load the required library from a path different than the one compiled-in. Regards, Doriano From degreane at ...626... Wed Oct 21 13:44:45 2009 From: degreane at ...626... (Faysal Banna) Date: Wed, 21 Oct 2009 14:44:45 +0300 Subject: [Gambas-user] set of questions In-Reply-To: <4ADEF2C2.9070802@...1909...> References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> <4ADEF2C2.9070802@...1909...> Message-ID: no no sir i was asking about the Grid View u were explaining to Dima ... besides i care to know a bit more about in place editing of cells inside the Grid View just click on the cell change the value.. much regards On Wed, Oct 21, 2009 at 2:38 PM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Faysal Banna ha scritto: > > Doriano... > > > > do you have a sample src package of what you have just explained ? > > can u share a simple running example with source files and forms ? > > > About what? I suppose about running a gambas app out of a usb stick? > Never tried but, if this is your request, I can try. > > I played a bit, but it does not work. The path "lib/gambasX" seems to be > hardcoded in the gbx executable. > I discovered that there are two environment variables, LD_PRELOAD and > GAMBAS_PRELOAD. The first is well known - it forces to preload the > indicated libraries, and it works; but then gambas crashes. The second > one does not seem to do anything; I peeked in the sources, but I didn't > understand what's the trick - copy GAMBAS_PRELOAD to LD_PRELOAD, then > copy it back again and unset the other... > > May be I am missing something, but for what I have seen, there is no way > to load the required library from a path different than the one > compiled-in. > > Regards, > Doriano > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ============================ Faysal Banna Meteorological Services Rafic Harriri International Airport Beirut - Lebanon Mob: +961-3-258043 ============================= From doriano.blengino at ...1909... Wed Oct 21 14:15:10 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 21 Oct 2009 14:15:10 +0200 Subject: [Gambas-user] set of questions In-Reply-To: References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> <4ADEF2C2.9070802@...1909...> Message-ID: <4ADEFB4E.8060006@...1909...> Faysal Banna ha scritto: > no no sir > i was asking about the Grid View u were explaining to Dima ... > besides i care to know a bit more about in place editing of cells inside the > Grid View > just click on the cell change the value.. > Uhm... I never used a Gridview in that way, I simply worked out with my words something that already is in the docs (in a very unixish fashion). I tried to explain better what the idea behind Data event is. But after that I have seen, in this thread, a complete example: I cut and paste: > Hopefully this answers question 2. It is a distillation of the database > example that comes with Gambas: > > You just need a gridview, a button called btnRun and a preferably large > database with lots of columns so that you can scroll around with ease > > '======================================================== > ' Gambas class file > PUBLIC $hConnLocl AS NEW Connection > PUBLIC $resData AS Result > '-------------------------------------------------------- > PUBLIC SUB Form_Open() > DIM sql AS String > > 'open the database > WITH $hConnLocl > .type = "mysql" > .host = "localhost" > .Name = "stock" > .login = "charles" > .password="dog" > END WITH > $hConnLocl.Open() > > 'create a result > sql = "SELECT * FROM grnLine" > $resData = $hConnLocl.Exec(sql) > END > '--------------------------------------------------------- > PUBLIC SUB btnRun_Click() > DIM hForm AS FRequest > DIM hField AS ResultField > DIM iInd AS Integer > > GridView1.Rows.count = 0 > 'set the required number of columns > GridView1.Columns.count = $resData.Fields.Count > > 'define the column headers and width > FOR EACH hField IN $resData.Fields > WITH hField > GridView1.Columns[iInd].text = .Name > GridView1.Columns[iInd].width = 60 > END WITH > INC iInd > NEXT > > 'create the empty rows. Each empty and visible cell created calls > GridView1_data > GridView1.Rows.Count = $resData.Count > END > '--------------------------------------------------------- > PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) > 'move to the required result row > $resData.MoveTo(row) > 'set the data for the cell in the GridView from the column in the selected > row of the result > GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) > 'lets you see how _data is being called as you scroll around the GridView > PRINT row & ":" & column & ":" & > Str($resData[GridView1.Columns[column].text]) > END > '---------------------------------------------------------- > Hope this is what you need. Thanks for your nice appellation, "sir" :-), and regards. Doriano Blengino From jussi.lahtinen at ...626... Wed Oct 21 15:47:54 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 21 Oct 2009 16:47:54 +0300 Subject: [Gambas-user] set of questions In-Reply-To: <4ADEFB4E.8060006@...1909...> References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> <4ADEF2C2.9070802@...1909...> <4ADEFB4E.8060006@...1909...> Message-ID: <384d3900910210647nc3298dege520aa4a80fe76a1@...627...> > 1) May I create proprietary (not open-scource) gambas2-applications and > components for gambas2? Yes, but Qt3 is not free for proprietary use. > 3) When I hide persistent Form, how to display it again? FromName.Show works with me..? > 5) Can I easily convert my big project from the gambas2-project to the > gambas3-project? With my project it was easy. Tools menu --> Update forms. Then possibly some minor changes to code. Example Write and Read, see documentation for details. > 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. > Can I easily switch them to gb.qt4 and other components, when my favour > Linux-distr Debian will be updated? I think gb.qt4 is not completely ready yet. But in future you can, if I have understand correctly. Qt3 <--> GTK+ works well. Jussi On Wed, Oct 21, 2009 at 15:15, Doriano Blengino wrote: > Faysal Banna ha scritto: >> no no sir >> i was asking about the Grid View u were explaining to Dima ... >> besides i care to know a bit more about in place editing of cells inside the >> Grid View >> just click on the cell change the value.. >> > Uhm... > > I never used a Gridview in that way, I simply worked out with my words > something that already is in the docs (in a very unixish fashion). I > tried to explain better what the idea behind Data event is. > > But after that I have seen, in this thread, a complete example: I cut > and paste: > >> Hopefully this answers question 2. It is a distillation of the database >> example that comes with Gambas: >> >> You just need a gridview, a button called btnRun and a preferably large >> database with lots of columns so that you can scroll around with ease >> >> '======================================================== >> ' Gambas class file >> PUBLIC $hConnLocl AS NEW Connection >> PUBLIC $resData AS Result >> '-------------------------------------------------------- >> PUBLIC SUB Form_Open() >> ? DIM sql AS String >> >> ? 'open the database >> ? WITH $hConnLocl >> ? ? .type = "mysql" >> ? ? .host = "localhost" >> ? ? .Name = "stock" >> ? ? .login = "charles" >> ? ? .password="dog" >> ? END WITH >> ? $hConnLocl.Open() >> >> ? 'create a result >> ? sql = "SELECT * FROM grnLine" >> ? $resData = $hConnLocl.Exec(sql) >> ? END >> '--------------------------------------------------------- >> PUBLIC SUB btnRun_Click() >> ? DIM hForm AS FRequest >> ? DIM hField AS ResultField >> ? DIM iInd AS Integer >> >> ? GridView1.Rows.count = 0 >> ? 'set the required number of columns >> ? GridView1.Columns.count = $resData.Fields.Count >> >> ? 'define the column headers and width >> ? FOR EACH hField IN $resData.Fields >> ? ? WITH hField >> ? ? ? GridView1.Columns[iInd].text = .Name >> ? ? ? GridView1.Columns[iInd].width = 60 >> ? ? END WITH >> ? ? INC iInd >> ? NEXT >> >> ? 'create the empty rows. Each empty and visible cell created calls >> GridView1_data >> ? GridView1.Rows.Count = $resData.Count >> END >> '--------------------------------------------------------- >> PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) >> ? 'move to the required result row >> ? $resData.MoveTo(row) >> ? 'set the data for the cell in the GridView from the column in the selected >> row of the result >> ? GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) >> ? 'lets you see how _data is being called as you scroll around the GridView >> ? PRINT row & ":" & column & ":" & >> Str($resData[GridView1.Columns[column].text]) >> END >> '---------------------------------------------------------- >> > Hope this is what you need. > > Thanks for your nice appellation, "sir" :-), and regards. > Doriano Blengino > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From degreane at ...626... Wed Oct 21 16:51:52 2009 From: degreane at ...626... (Faysal Banna) Date: Wed, 21 Oct 2009 17:51:52 +0300 Subject: [Gambas-user] set of questions In-Reply-To: <384d3900910210647nc3298dege520aa4a80fe76a1@...627...> References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> <4ADEF2C2.9070802@...1909...> <4ADEFB4E.8060006@...1909...> <384d3900910210647nc3298dege520aa4a80fe76a1@...627...> Message-ID: what is the way to get modifying a cell inside a grid view like u click on a cell and start writing inside it then when u click away its already modified ? regards On Wed, Oct 21, 2009 at 4:47 PM, Jussi Lahtinen wrote: > > 1) May I create proprietary (not open-scource) gambas2-applications and > > components for gambas2? > > Yes, but Qt3 is not free for proprietary use. > > > > 3) When I hide persistent Form, how to display it again? > > FromName.Show works with me..? > > > > 5) Can I easily convert my big project from the gambas2-project to the > > gambas3-project? > > With my project it was easy. > Tools menu --> Update forms. > Then possibly some minor changes to code. > Example Write and Read, see documentation for details. > > > > 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. > > Can I easily switch them to gb.qt4 and other components, when my favour > > Linux-distr Debian will be updated? > > I think gb.qt4 is not completely ready yet. But in future you can, if > I have understand correctly. > Qt3 <--> GTK+ works well. > > > Jussi > > > > On Wed, Oct 21, 2009 at 15:15, Doriano Blengino > wrote: > > Faysal Banna ha scritto: > >> no no sir > >> i was asking about the Grid View u were explaining to Dima ... > >> besides i care to know a bit more about in place editing of cells inside > the > >> Grid View > >> just click on the cell change the value.. > >> > > Uhm... > > > > I never used a Gridview in that way, I simply worked out with my words > > something that already is in the docs (in a very unixish fashion). I > > tried to explain better what the idea behind Data event is. > > > > But after that I have seen, in this thread, a complete example: I cut > > and paste: > > > >> Hopefully this answers question 2. It is a distillation of the database > >> example that comes with Gambas: > >> > >> You just need a gridview, a button called btnRun and a preferably large > >> database with lots of columns so that you can scroll around with ease > >> > >> '======================================================== > >> ' Gambas class file > >> PUBLIC $hConnLocl AS NEW Connection > >> PUBLIC $resData AS Result > >> '-------------------------------------------------------- > >> PUBLIC SUB Form_Open() > >> DIM sql AS String > >> > >> 'open the database > >> WITH $hConnLocl > >> .type = "mysql" > >> .host = "localhost" > >> .Name = "stock" > >> .login = "charles" > >> .password="dog" > >> END WITH > >> $hConnLocl.Open() > >> > >> 'create a result > >> sql = "SELECT * FROM grnLine" > >> $resData = $hConnLocl.Exec(sql) > >> END > >> '--------------------------------------------------------- > >> PUBLIC SUB btnRun_Click() > >> DIM hForm AS FRequest > >> DIM hField AS ResultField > >> DIM iInd AS Integer > >> > >> GridView1.Rows.count = 0 > >> 'set the required number of columns > >> GridView1.Columns.count = $resData.Fields.Count > >> > >> 'define the column headers and width > >> FOR EACH hField IN $resData.Fields > >> WITH hField > >> GridView1.Columns[iInd].text = .Name > >> GridView1.Columns[iInd].width = 60 > >> END WITH > >> INC iInd > >> NEXT > >> > >> 'create the empty rows. Each empty and visible cell created calls > >> GridView1_data > >> GridView1.Rows.Count = $resData.Count > >> END > >> '--------------------------------------------------------- > >> PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) > >> 'move to the required result row > >> $resData.MoveTo(row) > >> 'set the data for the cell in the GridView from the column in the > selected > >> row of the result > >> GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) > >> 'lets you see how _data is being called as you scroll around the > GridView > >> PRINT row & ":" & column & ":" & > >> Str($resData[GridView1.Columns[column].text]) > >> END > >> '---------------------------------------------------------- > >> > > Hope this is what you need. > > > > Thanks for your nice appellation, "sir" :-), and regards. > > Doriano Blengino > > > > > > > > > > > ------------------------------------------------------------------------------ > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ============================ Faysal Banna Meteorological Services Rafic Harriri International Airport Beirut - Lebanon Mob: +961-3-258043 ============================= From jussi.lahtinen at ...626... Wed Oct 21 16:58:03 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 21 Oct 2009 17:58:03 +0300 Subject: [Gambas-user] Minor dialog bug. Message-ID: <384d3900910210758i43ead260te3c5d5bb23d56fbd@...627...> Hi! With Qt3 everything works as expected, but not with GTK+. Dialog.Path = User.Home &/ "NonExitsFile.dat" ... Dialog.SaveFile() ... With Qt3 that code shows dialog, that suggest name "NonExitsFile.dat" to file being saved. With GTK+ it works only if "NonExitsFile.dat" already exist. So, this is just minor annoying thing. Gambas 2.17, ubuntu 9.04 64 bit. Jussi From gambas at ...1... Wed Oct 21 19:46:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 21 Oct 2009 19:46:02 +0200 Subject: [Gambas-user] Minor dialog bug. In-Reply-To: <384d3900910210758i43ead260te3c5d5bb23d56fbd@...627...> References: <384d3900910210758i43ead260te3c5d5bb23d56fbd@...627...> Message-ID: <200910211946.02597.gambas@...1...> > Hi! > > With Qt3 everything works as expected, but not with GTK+. > > Dialog.Path = User.Home &/ "NonExitsFile.dat" > ... Dialog.SaveFile() ... > > With Qt3 that code shows dialog, that suggest name "NonExitsFile.dat" > to file being saved. > With GTK+ it works only if "NonExitsFile.dat" already exist. > > So, this is just minor annoying thing. > > Gambas 2.17, ubuntu 9.04 64 bit. > > Jussi > It should be fixed in revision #2397. Regards, -- Beno?t Minisini From hartmut at ...2307... Thu Oct 22 00:22:33 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Thu, 22 Oct 2009 00:22:33 +0200 Subject: [Gambas-user] Video Player example Message-ID: Hallo List, for my Video project I need a video player which plays a video in a unvisible DrawingArea where I can grab a picture contolled by a timer. I want to show the grabbed image in a smaller preview window where one can apply effects. When pressing a button all effects should bei applied to the grabbed images in their original size and saved as a sequence of pictures. I did everything I can image, but I am not able to make the drawingarea invisible. Any ideas are highly welcome. regards Hartmut -- Hartmut Eilers Dorffer Str. 53 http://www.eilers.net 52076 Aachen 01522/1656914 From hartmut at ...2307... Thu Oct 22 00:29:23 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Thu, 22 Oct 2009 00:29:23 +0200 Subject: [Gambas-user] saving picturebox as video In-Reply-To: References: Message-ID: Hi Stephen, thanks for your answer. I do it the way you suggested. In the moment I use mencoder to generate the video from the images, but I will test ffmpeg asap. Any ideas out there how to stream the images as video ? Thanks for your help Regards Hartmut >Date: Sat, 17 Oct 2009 15:30:27 +0800 >From: Steven James Drinnan >Subject: Re: [Gambas-user] saving picturebox as video >To: mailing list for gambas users >Message-ID: <1255764627.3635.9.camel at ...2273...> >Content-Type: text/plain; charset="us-ascii" > >You could use ffmpeg > >the cmd is ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg > >This would make the files img1.jpg img2.jpg .... into a mpg video. > >But it would mean writing each image to a dir on the disc ie pic01.jpg >pic02.jpg .... > >Then once you press a stop button then you run the cmd above. > >But writing the images to disk would drop the frame rate. > >I hope that is clear. 2009/10/17 Hartmut Eilers : > Hi all, > > I'm currently writing an application where I have the > output of a webcam in a picturebox. After modifying > the picturebox with overlayed text and graphics, I want > to save the contents of this picturebox in any video > format. ( avi, mpg, ogg whatever ) > How can that be done ? Can anybody give me hints > how to write the ?picturebox to a video file or how to > stream the picturebox over the network and receive it with > programs like vlc ? > > Any help appreciated > Thanks > Hartmut > From steven at ...2097... Thu Oct 22 02:30:31 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 22 Oct 2009 08:30:31 +0800 Subject: [Gambas-user] saving picturebox as video In-Reply-To: References: Message-ID: <1256171432.3541.6.camel@...2273...> I can't really think of a way directly in gambas. I would just use vlc to stream the file that the program creates. Any one else got any ideas? On Thu, 2009-10-22 at 00:29 +0200, Hartmut Eilers wrote: > Hi Stephen, > > thanks for your answer. I do it the way you suggested. > In the moment I use mencoder to generate the video from the > images, but I will test ffmpeg asap. > > Any ideas out there how to stream the images as video ? > > Thanks for your help > Regards > Hartmut > > >Date: Sat, 17 Oct 2009 15:30:27 +0800 > >From: Steven James Drinnan > >Subject: Re: [Gambas-user] saving picturebox as video > >To: mailing list for gambas users > >Message-ID: <1255764627.3635.9.camel at ...2273...> > >Content-Type: text/plain; charset="us-ascii" > > > >You could use ffmpeg > > > >the cmd is ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg > > > >This would make the files img1.jpg img2.jpg .... into a mpg video. > > > >But it would mean writing each image to a dir on the disc ie pic01.jpg > >pic02.jpg .... > > > >Then once you press a stop button then you run the cmd above. > > > >But writing the images to disk would drop the frame rate. > > > >I hope that is clear. > > > > 2009/10/17 Hartmut Eilers : > > Hi all, > > > > I'm currently writing an application where I have the > > output of a webcam in a picturebox. After modifying > > the picturebox with overlayed text and graphics, I want > > to save the contents of this picturebox in any video > > format. ( avi, mpg, ogg whatever ) > > How can that be done ? Can anybody give me hints > > how to write the picturebox to a video file or how to > > stream the picturebox over the network and receive it with > > programs like vlc ? > > > > Any help appreciated > > Thanks > > Hartmut > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > 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: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From wdahn at ...1000... Thu Oct 22 03:27:20 2009 From: wdahn at ...1000... (Werner) Date: Thu, 22 Oct 2009 09:27:20 +0800 Subject: [Gambas-user] Video Player example In-Reply-To: References: Message-ID: <4ADFB4F8.8030205@...1000...> Hartmut Eilers wrote: > Hallo List, > > for my Video project I need a video player which plays a video > in a unvisible DrawingArea where I can grab a picture contolled > by a timer. I want to show the grabbed image in a smaller preview > window where one can apply effects. When pressing a button all > effects should bei applied to the grabbed images in their original size > and saved as a sequence of pictures. > > I did everything I can image, but I am not able to make the > drawingarea invisible. Any ideas are highly welcome. > > regards > Hartmut > > Does DrawingArea.Visible = FALSE or DrawingArea.Hide not work? Regards Werner From steven at ...2097... Thu Oct 22 04:49:34 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 22 Oct 2009 10:49:34 +0800 Subject: [Gambas-user] Mutiple mouse pointers In-Reply-To: <1256171432.3541.6.camel@...2273...> References: <1256171432.3541.6.camel@...2273...> Message-ID: <1256179776.3541.16.camel@...2273...> Hi, Here is interesting thing, I want to create a X12(mpx) aware application. When Fedora 12 comes out it will support X12(mpx) - multiple mouse pointers and I was hoping to use Gambas to create an interactive game using two mouse pointers. Is there any plans in Gambas 3 to include multiple mouse/keyboard pointer support. If not any ideas how to implement it? If it was it put Gambas in league of its own. Imagine the possibilities. Inbuilt support for gestures etc... Anyway any ideas would be grateful. Steven -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From doriano.blengino at ...1909... Thu Oct 22 08:58:11 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 22 Oct 2009 08:58:11 +0200 Subject: [Gambas-user] Video Player example In-Reply-To: <4ADFB4F8.8030205@...1000...> References: <4ADFB4F8.8030205@...1000...> Message-ID: <4AE00283.5070604@...1909...> Werner ha scritto: > Hartmut Eilers wrote: > >> Hallo List, >> >> for my Video project I need a video player which plays a video >> in a unvisible DrawingArea where I can grab a picture contolled >> by a timer. I want to show the grabbed image in a smaller preview >> window where one can apply effects. When pressing a button all >> effects should bei applied to the grabbed images in their original size >> and saved as a sequence of pictures. >> >> I did everything I can image, but I am not able to make the >> drawingarea invisible. Any ideas are highly welcome. >> >> regards >> Hartmut >> >> >> > Does > DrawingArea.Visible = FALSE or > DrawingArea.Hide > not work? > > Regards > Werner > If this does not work, you can try to put some other graphic element above (on top) the drawingarea... Regards, Doriano From ronstk at ...239... Thu Oct 22 09:02:27 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 22 Oct 2009 09:02:27 +0200 Subject: [Gambas-user] saving picturebox as video In-Reply-To: <1256171432.3541.6.camel@...2273...> References: <1256171432.3541.6.camel@...2273...> Message-ID: <200910220902.27356.ronstk@...239...> On Thursday 22 October 2009, Steven James Drinnan wrote: > I can't really think of a way directly in gambas. > > I would just use vlc to stream the file that the program creates. > > > Any one else got any ideas? > > > > ffmpeg has also a feature to stream as a server Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Thu Oct 22 09:10:20 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 22 Oct 2009 09:10:20 +0200 Subject: [Gambas-user] set of questions In-Reply-To: References: <1256131411.3857.18.camel@...938...> <384d3900910210647nc3298dege520aa4a80fe76a1@...627...> Message-ID: <200910220910.20373.ronstk@...239...> On Wednesday 21 October 2009, Faysal Banna wrote: > what is the way to get modifying a cell inside a grid view like > u click on a cell and start writing inside it then when u click away its > already modified ? > > regards > > On Wed, Oct 21, 2009 at 4:47 PM, Jussi Lahtinen wrote: > > > > 1) May I create proprietary (not open-scource) gambas2-applications and > > > components for gambas2? > > > > Yes, but Qt3 is not free for proprietary use. > > > > > > > 3) When I hide persistent Form, how to display it again? > > > > FromName.Show works with me..? > > > > > > > 5) Can I easily convert my big project from the gambas2-project to the > > > gambas3-project? > > > > With my project it was easy. > > Tools menu --> Update forms. > > Then possibly some minor changes to code. > > Example Write and Read, see documentation for details. > > > > > > > 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. > > > Can I easily switch them to gb.qt4 and other components, when my favour > > > Linux-distr Debian will be updated? > > > > I think gb.qt4 is not completely ready yet. But in future you can, if > > I have understand correctly. > > Qt3 <--> GTK+ works well. > > > > > > Jussi > > > > > > > > On Wed, Oct 21, 2009 at 15:15, Doriano Blengino > > wrote: > > > Faysal Banna ha scritto: > > >> no no sir > > >> i was asking about the Grid View u were explaining to Dima ... > > >> besides i care to know a bit more about in place editing of cells inside > > the > > >> Grid View > > >> just click on the cell change the value.. > > >> > > > Uhm... > > > > > > I never used a Gridview in that way, I simply worked out with my words > > > something that already is in the docs (in a very unixish fashion). I > > > tried to explain better what the idea behind Data event is. > > > > > > But after that I have seen, in this thread, a complete example: I cut > > > and paste: > > > > > >> Hopefully this answers question 2. It is a distillation of the database > > >> example that comes with Gambas: > > >> > > >> You just need a gridview, a button called btnRun and a preferably large > > >> database with lots of columns so that you can scroll around with ease > > >> > > >> '======================================================== > > >> ' Gambas class file > > >> PUBLIC $hConnLocl AS NEW Connection > > >> PUBLIC $resData AS Result > > >> '-------------------------------------------------------- > > >> PUBLIC SUB Form_Open() > > >> DIM sql AS String > > >> > > >> 'open the database > > >> WITH $hConnLocl > > >> .type = "mysql" > > >> .host = "localhost" > > >> .Name = "stock" > > >> .login = "charles" > > >> .password="dog" > > >> END WITH > > >> $hConnLocl.Open() > > >> > > >> 'create a result > > >> sql = "SELECT * FROM grnLine" > > >> $resData = $hConnLocl.Exec(sql) > > >> END > > >> '--------------------------------------------------------- > > >> PUBLIC SUB btnRun_Click() > > >> DIM hForm AS FRequest > > >> DIM hField AS ResultField > > >> DIM iInd AS Integer > > >> > > >> GridView1.Rows.count = 0 > > >> 'set the required number of columns > > >> GridView1.Columns.count = $resData.Fields.Count > > >> > > >> 'define the column headers and width > > >> FOR EACH hField IN $resData.Fields > > >> WITH hField > > >> GridView1.Columns[iInd].text = .Name > > >> GridView1.Columns[iInd].width = 60 > > >> END WITH > > >> INC iInd > > >> NEXT > > >> > > >> 'create the empty rows. Each empty and visible cell created calls > > >> GridView1_data > > >> GridView1.Rows.Count = $resData.Count > > >> END > > >> '--------------------------------------------------------- > > >> PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer) > > >> 'move to the required result row > > >> $resData.MoveTo(row) > > >> 'set the data for the cell in the GridView from the column in the > > selected > > >> row of the result > > >> GridView1.Data.text = Str($resData[GridView1.Columns[column].text]) > > >> 'lets you see how _data is being called as you scroll around the > > GridView > > >> PRINT row & ":" & column & ":" & > > >> Str($resData[GridView1.Columns[column].text]) > > >> END > > >> '---------------------------------------------------------- > > >> > > > Hope this is what you need. > > > > > > Thanks for your nice appellation, "sir" :-), and regards. > > > Doriano Blengino > > > > > > > > > I don't see the connection with gambas from usb stick. Can you enligth me? Best regards, Ron_1st -- A: Hijacking the thread from other subjects. Q: What is the second most annoying thing in e-mail? -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From doriano.blengino at ...1909... Thu Oct 22 09:20:07 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 22 Oct 2009 09:20:07 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <200910220910.20373.ronstk@...239...> References: <1256131411.3857.18.camel@...938...> <384d3900910210647nc3298dege520aa4a80fe76a1@...627...> <200910220910.20373.ronstk@...239...> Message-ID: <4AE007A7.4020505@...1909...> Ron_1st ha scritto: > > I don't see the connection with gambas from usb stick. > Can you enligth me? > The first message of the thread, "set of questions", contained a question about launching a gambas app in a host system not having the gambas runtime installed. Or so I think - I have already deleted the relevant messages and now I can not check. May be I was confused... sorry. Regards, Doriano From ronstk at ...239... Thu Oct 22 11:13:06 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 22 Oct 2009 11:13:06 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <4AE007A7.4020505@...1909...> References: <1256131411.3857.18.camel@...938...> <200910220910.20373.ronstk@...239...> <4AE007A7.4020505@...1909...> Message-ID: <200910221113.07256.ronstk@...239...> On Thursday 22 October 2009, Doriano Blengino wrote: > Ron_1st ha scritto: > > > > I don't see the connection with gambas from usb stick. > > Can you enligth me? > > > The first message of the thread, "set of questions", contained a > question about launching a gambas app in a host system not having the > gambas runtime installed. Or so I think - I have already deleted the > relevant messages and now I can not check. May be I was confused... sorry. > > Regards, > Doriano > It was for this message On Wednesday 21 October 2009, Faysal Banna wrote: > what is the way to get modifying a cell inside a grid view like > u click on a cell and start writing inside it then when u click away its > already modified ? > > regards > He is mumbling about a gridview in this thread and is not related to it and as reply to something total different. We call that hijacking the thread. :) See the signature. Best regards, Ron_1st -- ?A: Hijacking the thread from other subjects. ?Q: What is the second most annoying thing in e-mail? -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Thu Oct 22 15:53:15 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 22 Oct 2009 15:53:15 +0200 Subject: [Gambas-user] Mutiple mouse pointers In-Reply-To: <1256179776.3541.16.camel@...2273...> References: <1256171432.3541.6.camel@...2273...> <1256179776.3541.16.camel@...2273...> Message-ID: <200910221553.15192.gambas@...1...> > Hi, > > Here is interesting thing, I want to create a X12(mpx) aware > application. > > When Fedora 12 comes out it will support X12(mpx) - multiple mouse > pointers and I was hoping to use Gambas to create an interactive game > using two mouse pointers. > > Is there any plans in Gambas 3 to include multiple mouse/keyboard > pointer support. If not any ideas how to implement it? > > If it was it put Gambas in league of its own. Imagine the possibilities. > Inbuilt support for gestures etc... > > Anyway any ideas would be grateful. > > Steven > Gambas won't support it until the GUI toolkit will (Qt and GTK+). Regards, -- Beno?t Minisini From gambas at ...1... Thu Oct 22 16:10:32 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 22 Oct 2009 16:10:32 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <1256131411.3857.18.camel@...938...> References: <1256131411.3857.18.camel@...938...> Message-ID: <200910221610.32755.gambas@...1...> > Using Gambas 2.7, Debian Lenny 32 > -- > > Hello! > Hello! > Main question. I think you should have been make a thread for each question, because now we are lost when reading the answers! > I want to run my gambas2-application from USB-FLASH-DISK on the > computers, that do not have gambas2 installed. > > There is a folder on my USB-FLASH-DISK with my application and > subfolders: > 1) "bin", includes files "gba2", "gbc2", "gbi2", "gbx2", soft links; > 2) "lib", includes files "*.so.0.0.0", "*.component", "*.gambas", soft > links; > 3) "share", includes "icons/*.png", "info/*" (strange files), > "mime/*.xml". > It also includes bash-script for copying all above to system > folders /usr/bin/, /usr/lib/ and /usr/share. > > Can I run my application with just some command, without copying? > Alas the interpreter relies on the /usr/bin/gbx2(or 3) symbolic link to know where Gambas is installed, so you cannot run gambas from a USB disk. But we can imagine an environmental variable that tells where Gambas is installed, without relying on a symbolic link. This will solve the first problem. But now you must have all shared libraries directly or indirectly used by Gambas on your USB disk, which may be huge. To know them, you must run "ldd" on each shared library of each component used by your project. And you won't be able to run Gambas executables directly as they find the interpreter with "#!/usr/bin/env gbr2", but by changing the PATH variable so that the gbr2 symbolic link on the USB disk is found first, it will run! I will tell you when I make the environmental variable change. His name will be something like GB_DIR, or GB_ROOT. > > Another questions: > 1) May I create proprietary (not open-scource) gambas2-applications and > components for gambas2? > It depends on the license of each component you use. For example, you can't if you use Qt3. For Qt4 I don't know... > 2) I have the GridView in my program, that displays 4 thousands of rows. > When it updates the data (4-10 seconds), program do not reflexes. > There is a string in the documentation: > "You should use the last if you have thousands of rows to > display.". > I'm sorry, I do not understand this at all. > Could anybody explain this on a simple example? The sentence means: "You should use the Data event handler if you have thousands of rows to display." (I fixed it in the wiki). Instead of explicitely setting the GridView cell contents, just write event handler for the "Data" event, so that data is filled on demand. The Data event is raised each time the GridView needs the contents of one cell. > > 3) When I hide persistent Form, how to display it again? > Show() ? > 4) On my monitore with resolution "1024x768" Forms and widgets on them > look great. But when I come to my friends with big wide monitors, some > widgets (Buttons) became bigger while another widgets don't or not in > such proportions. Why it happens? > By default, form and control size is proportional to the height of the default font in pixels. If you don't want this behaviour on a form, just set the "(Scaled)" property to FALSE. > 5) Can I easily convert my big project from the gambas2-project to the > gambas3-project? > Actually yes, provided you use the "Update all forms" menu entry in the IDE, and that you are aware of all the syntax changes. > 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. > Can I easily switch them to gb.qt4 and other components, when my favour > Linux-distr Debian will be updated? gb.qt --> gb.qt4 gb.qt.ext --> gb.qt4.ext gb.kde --> disappear gb.kde.html --> gb.qt4.webkit, but the syntax of the WebBrowser control changed. Beware that gb.qt4 will be renamed in gb.qt, and the old gb.qt will be removed. > > > Some suggestions: > 1) In gambas2-IDE I need the "insert mode" of type, that replaces the > next character. Indeed. I never use it, so I didn't implement it. I will put that in my TODO file. Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Thu Oct 22 16:43:24 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 22 Oct 2009 16:43:24 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <200910221113.07256.ronstk@...239...> References: <1256131411.3857.18.camel@...938...> <200910220910.20373.ronstk@...239...> <4AE007A7.4020505@...1909...> <200910221113.07256.ronstk@...239...> Message-ID: <4AE06F8C.9080301@...1909...> Ron_1st ha scritto: > On Thursday 22 October 2009, Doriano Blengino wrote: > >> Ron_1st ha scritto: >> >>> I don't see the connection with gambas from usb stick. >>> Can you enligth me? >>> >>> >> The first message of the thread, "set of questions", contained a >> question about launching a gambas app in a host system not having the >> gambas runtime installed. Or so I think - I have already deleted the >> relevant messages and now I can not check. May be I was confused... sorry. >> >> Regards, >> Doriano >> >> > > It was for this message > > On Wednesday 21 October 2009, Faysal Banna wrote: > >> what is the way to get modifying a cell inside a grid view like >> u click on a cell and start writing inside it then when u click away its >> already modified ? >> >> regards >> >> > > He is mumbling about a gridview in this thread and is not related to it > and as reply to something total different. > We call that hijacking the thread. :) > See the signature. > Funny signature. Really, I didn't know what hijacking was, and even now I don't understand why one would desire to hijack (in other words, where is the advantage in hijacking?). Provided that there is no advantage, so nobody wants to do it, if I did it I did it without awareness. The start of the thread, posted by user "Dima", where I replied is (citation): > I want to run my gambas2-application from USB-FLASH-DISK on the > > computers, that do not have gambas2 installed. > > followed by a numbered list of other questions. I replied to a few. The most important was about the Data event. Then someone else, Faysal Banna, asked about "what I replied to Dima", without specifying more. I assumed he was talking about usb flash disk, because the other argument is already explained in the docs. Banna replied "no no, it was about editing cells". But what he really wrote is (citation): > no no sir > > > >> i was asking about the Grid View u were explaining to Dima ... > > > >> besides i care to know a bit more about in place editing of cells inside > Now, for my poor english, I suppose the adjective "besides" acts as a junction between two predicates. So he wanted to know about gridview, and *besides*, something about editing of cells. Is it clear to you? For me, just not enough... :-) I did the best I could do about the Data event: I posted the good source provided by another user on the same thread. And I simply ignored the phrase following that "besides". I write this full explanation (sorry) because I feel a little flamed. If you can, and if you want, go to see the whole thread on gambas-user. It started with a "set of question", and just now Benoit is replying "you should have been make a thread for each question" to the poster. Then someone else (Banna) wrote something not clear to me, and even changed topic. Lastly, you teach to me that I am hijacking! :-) Better for me to take some course about computers... I like them but I don't understand them; and while I'm at it, an english course too... :-) Regards, Doriano From degreane at ...626... Thu Oct 22 19:03:15 2009 From: degreane at ...626... (Faysal Banna) Date: Thu, 22 Oct 2009 20:03:15 +0300 Subject: [Gambas-user] set of questions In-Reply-To: <4AE06F8C.9080301@...1909...> References: <1256131411.3857.18.camel@...938...> <200910220910.20373.ronstk@...239...> <4AE007A7.4020505@...1909...> <200910221113.07256.ronstk@...239...> <4AE06F8C.9080301@...1909...> Message-ID: for all those who assumed i "hijacked" the thread and subject .... the subject of the whole was posted by Dima (My regards to her ) about set of questions and not specific to USB !!!!! she asked a set of questions including USB startup and also including the gridview which is of my interest at the moment .... and instead of u mumbling about Hijacking and bla bla bla u could have pointed to the solution if u know it or either directed to the documentation ............. Doriano ... Could you please point to a good documentation about GridView utilisation and/or TableView, besides your english is good just other people need to follow threads from the beginning. Regards... and please stay on track of events before u rush into mumbling bla bla stuff .... On Thu, Oct 22, 2009 at 5:43 PM, Doriano Blengino < doriano.blengino at ...1909...> wrote: > Ron_1st ha scritto: > > On Thursday 22 October 2009, Doriano Blengino wrote: > > > >> Ron_1st ha scritto: > >> > >>> I don't see the connection with gambas from usb stick. > >>> Can you enligth me? > >>> > >>> > >> The first message of the thread, "set of questions", contained a > >> question about launching a gambas app in a host system not having the > >> gambas runtime installed. Or so I think - I have already deleted the > >> relevant messages and now I can not check. May be I was confused... > sorry. > >> > >> Regards, > >> Doriano > >> > >> > > > > It was for this message > > > > On Wednesday 21 October 2009, Faysal Banna wrote: > > > >> what is the way to get modifying a cell inside a grid view like > >> u click on a cell and start writing inside it then when u click away its > >> already modified ? > >> > >> regards > >> > >> > > > > He is mumbling about a gridview in this thread and is not related to it > > and as reply to something total different. > > We call that hijacking the thread. :) > > See the signature. > > > Funny signature. > Really, I didn't know what hijacking was, and even now I don't > understand why one would desire to hijack (in other words, where is the > advantage in hijacking?). Provided that there is no advantage, so nobody > wants to do it, if I did it I did it without awareness. > > The start of the thread, posted by user "Dima", where I replied is > (citation): > > I want to run my gambas2-application from USB-FLASH-DISK on the > > > computers, that do not have gambas2 installed. > > > > followed by a numbered list of other questions. I replied to a few. The > most important was about the Data event. > > Then someone else, Faysal Banna, asked about "what I replied to Dima", > without specifying more. I assumed he was talking about usb flash disk, > because the other argument is already explained in the docs. Banna > replied "no no, it was about editing cells". But what he really wrote is > (citation): > > > no no sir > > > > >> i was asking about the Grid View u were explaining to Dima ... > > > > >> besides i care to know a bit more about in place editing of cells > inside > > > Now, for my poor english, I suppose the adjective "besides" acts as a > junction between two predicates. So he wanted to know about gridview, > and *besides*, something about editing of cells. Is it clear to you? For > me, just not enough... :-) > > I did the best I could do about the Data event: I posted the good source > provided by another user on the same thread. And I simply ignored the > phrase following that "besides". > > I write this full explanation (sorry) because I feel a little flamed. If > you can, and if you want, go to see the whole thread on gambas-user. It > started with a "set of question", and just now Benoit is replying "you > should have been make a thread for each question" to the poster. Then > someone else (Banna) wrote something not clear to me, and even changed > topic. Lastly, you teach to me that I am hijacking! :-) Better for me to > take some course about computers... I like them but I don't understand > them; and while I'm at it, an english course too... :-) > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ============================ Faysal Banna Meteorological Services Rafic Harriri International Airport Beirut - Lebanon Mob: +961-3-258043 ============================= From doriano.blengino at ...1909... Thu Oct 22 19:21:38 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 22 Oct 2009 19:21:38 +0200 Subject: [Gambas-user] set of questions In-Reply-To: References: <1256131411.3857.18.camel@...938...> <200910220910.20373.ronstk@...239...> <4AE007A7.4020505@...1909...> <200910221113.07256.ronstk@...239...> <4AE06F8C.9080301@...1909...> Message-ID: <4AE094A2.5090302@...1909...> Faysal Banna ha scritto: > for all those who assumed i "hijacked" the thread and subject .... > > the subject of the whole was posted by Dima (My regards to her ) about set > of questions and not specific to USB !!!!! > > she asked a set of questions including USB startup and also including the > gridview which is of my interest at the moment .... > > and instead of u mumbling about Hijacking and bla bla bla u could have > pointed to the solution if u know it or either directed to the documentation > ............. > Doriano ... Could you please point to a good documentation about GridView > utilisation and/or TableView, besides your english is good just other people > need to follow threads from the beginning. > Dear Faysal, I am sorry - I don't know any other good place to find documentation, apart from the official docs (wiki) and the normal internet sites. To be sincere, I don't even know gambas so well - perhaps when, rarely or perhaps too often, I know something and I write about it, I write so much that what I write can be over-estimated. Now I must add that perhaps I am writing too much in this list, or I know english too little, or both. It is the second time in a few days that threads grow too much because of my messages; I will think about it. Regards to everyone, Doriano > > > Regards... > and please stay on track of events before u rush into mumbling bla bla stuff > .... > > > On Thu, Oct 22, 2009 at 5:43 PM, Doriano Blengino < > doriano.blengino at ...1909...> wrote: > > >> Ron_1st ha scritto: >> >>> On Thursday 22 October 2009, Doriano Blengino wrote: >>> >>> >>>> Ron_1st ha scritto: >>>> >>>> >>>>> I don't see the connection with gambas from usb stick. >>>>> Can you enligth me? >>>>> >>>>> >>>>> >>>> The first message of the thread, "set of questions", contained a >>>> question about launching a gambas app in a host system not having the >>>> gambas runtime installed. Or so I think - I have already deleted the >>>> relevant messages and now I can not check. May be I was confused... >>>> >> sorry. >> >>>> Regards, >>>> Doriano >>>> >>>> >>>> >>> It was for this message >>> >>> On Wednesday 21 October 2009, Faysal Banna wrote: >>> >>> >>>> what is the way to get modifying a cell inside a grid view like >>>> u click on a cell and start writing inside it then when u click away its >>>> already modified ? >>>> >>>> regards >>>> >>>> >>>> >>> He is mumbling about a gridview in this thread and is not related to it >>> and as reply to something total different. >>> We call that hijacking the thread. :) >>> See the signature. >>> >>> >> Funny signature. >> Really, I didn't know what hijacking was, and even now I don't >> understand why one would desire to hijack (in other words, where is the >> advantage in hijacking?). Provided that there is no advantage, so nobody >> wants to do it, if I did it I did it without awareness. >> >> The start of the thread, posted by user "Dima", where I replied is >> (citation): >> >>> I want to run my gambas2-application from USB-FLASH-DISK on the >>> >>>> computers, that do not have gambas2 installed. >>>> >>>> >> followed by a numbered list of other questions. I replied to a few. The >> most important was about the Data event. >> >> Then someone else, Faysal Banna, asked about "what I replied to Dima", >> without specifying more. I assumed he was talking about usb flash disk, >> because the other argument is already explained in the docs. Banna >> replied "no no, it was about editing cells". But what he really wrote is >> (citation): >> >> >>> no no sir >>> >>>>>>> i was asking about the Grid View u were explaining to Dima ... >>>>>>> besides i care to know a bit more about in place editing of cells >>>>>>> >> inside >> >> Now, for my poor english, I suppose the adjective "besides" acts as a >> junction between two predicates. So he wanted to know about gridview, >> and *besides*, something about editing of cells. Is it clear to you? For >> me, just not enough... :-) >> >> I did the best I could do about the Data event: I posted the good source >> provided by another user on the same thread. And I simply ignored the >> phrase following that "besides". >> >> I write this full explanation (sorry) because I feel a little flamed. If >> you can, and if you want, go to see the whole thread on gambas-user. It >> started with a "set of question", and just now Benoit is replying "you >> should have been make a thread for each question" to the poster. Then >> someone else (Banna) wrote something not clear to me, and even changed >> topic. Lastly, you teach to me that I am hijacking! :-) Better for me to >> take some course about computers... I like them but I don't understand >> them; and while I'm at it, an english course too... :-) >> >> Regards, >> Doriano >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > > From ronstk at ...239... Thu Oct 22 23:33:43 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 22 Oct 2009 23:33:43 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <4AE06F8C.9080301@...1909...> References: <1256131411.3857.18.camel@...938...> <200910221113.07256.ronstk@...239...> <4AE06F8C.9080301@...1909...> Message-ID: <200910222333.43470.ronstk@...239...> On Thursday 22 October 2009, Doriano Blengino wrote: > Ron_1st ha scritto: > > On Thursday 22 October 2009, Doriano Blengino wrote: > > > >> Ron_1st ha scritto: > >> > >>> I don't see the connection with gambas from usb stick. > >>> Can you enligth me? > >>> > >>> > >> The first message of the thread, "set of questions", contained a > >> question about launching a gambas app in a host system not having the > >> gambas runtime installed. Or so I think - I have already deleted the > >> relevant messages and now I can not check. May be I was confused... sorry. > >> > >> Regards, > >> Doriano > >> > >> > > > > It was for this message > > > > On Wednesday 21 October 2009, Faysal Banna wrote: > > > >> what is the way to get modifying a cell inside a grid view like > >> u click on a cell and start writing inside it then when u click away its > >> already modified ? > >> > >> regards > >> > >> > > > > He is mumbling about a gridview in this thread and is not related to it > > and as reply to something total different. > > We call that hijacking the thread. :) > > See the signature. > > > Funny signature. > Really, I didn't know what hijacking was, and even now I don't > understand why one would desire to hijack (in other words, where is the > advantage in hijacking?). Provided that there is no advantage, so nobody > wants to do it, if I did it I did it without awareness. No Doriano, you didn't hijack. Hijack is jumping in a tread with a new question and disturb the conversation in the current thread. It can happen so as did in this tread to top poster had some questions. The tread splits in top with answers to the several questions. In this case the tread was at the point talking about the usb-stick. In your first answer in this tread you did give answers to point 1(usb) and point 2(gridview) Then Faysal did ask for some example/ A few posts before Jussi answer with his situation for the gambas install on usb. Faysal jumps in and ask something [2009-10-21 12:52]. > Doriano... > do you have a sample src package of what you have just explained ? > can u share a simple running example with source files and forms ? Your answer was [2009-10-21 13:38] > can u share a simple running example with source files and forms ? > ? > About what? I suppose about running a gambas app out of a usb stick? > Never tried but, if this is your request, I can try. > ---8<--- > I played a bit, but it does not work. The path "lib/gambasX" seems to be > hardcoded in the gbx executable. So Faysal wrote [2009-10-21 13:44] > no no sir > i was asking about the Grid View u were explaining to Dima ... > ---8<--- Then Jussi comes in at [2009-10-21 15:47] He answers some questions from the TOP (Topic Opening Poster) for Q 1, 3, 5 and 6. None of them refers to the gridview. Here Jussi should have answered in a reply to the opening post insted this place. The tread here was oriented at one of the questions, the usb case. Now Faysal ask [2009-10-21 16:51] again about the gridview. So I did replay [2009-10-22 09:10] as answer to Faysal. > I don't see the connection with gambas from usb stick. > Can you enligth me? Doriano did answer my post [2009-10-22 09:20] > The first message of the thread, "set of questions", contained a > question about launching a gambas app in a host system not having the > gambas runtime installed. Or so I think - I have already ..... So it was clear this branch in the topic was about the usb/gambas install. I did answer:[2009-10-22 11:13] > He is mumbling about a gridview in this thread and is not related to it > and as reply to something total different. You may say I'm wrong because it is in the TOP, that is correct. My mistake, I was following the usb/install branch and had forgotten the TOP. IMHO Faysal should have ask his gridview case on your first answer where you did talk about it. At that moment there was no misunderstanding as did happen on the place he did request it [2009-10-21 12:52] where he asked for some src/example code. Because at this place the answers where the usb/install related you respond about this and not the gridview and he did answer with 'no no no' No ringing bells at Faysal there was some misunderstanding about the specific subjec part in discussion. Now you replay to my second post [2009-10-22 16:43] folowed by Faysal to your post. > ---8<--- > gridview which is of my interest at the moment .... > > and instead of u mumbling about Hijacking and bla bla bla u could have > pointed to the solution if u know it or either directed to the documentation >---8<--- So he did attack you about mumbling. He did reply to the wrong post :) > Doriano ... Could you please point to a good documentation about GridView > utilisation and/or TableView, besides your english is good I agree. > just other people need to follow threads from the beginning. And that is what you should do also and special pay attention to reply to the right message. This last one should be to me and the other one to the first post Doriano talked about the gridview. His later answers where to another question related and not the gridview. In the post you did ask src/example you could at least specify where the request was for. Than yo had no need to cry 'no no no'. And I was follow the thread for the usb/install and as Dorian did also understand you wanted some src/example about usb/install gambas. From ronstk at ...239... Thu Oct 22 23:43:40 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 22 Oct 2009 23:43:40 +0200 Subject: [Gambas-user] set of questions In-Reply-To: References: <1256131411.3857.18.camel@...938...> <4AE06F8C.9080301@...1909...> Message-ID: <200910222343.40646.ronstk@...239...> On Thursday 22 October 2009, Faysal Banna wrote: > just other people need to follow threads from the beginning. > Regards... and please stay on track of events before u rush into mumbling bla bla stuff > .... > Do you mean Doriano with 'u rush'? Please wake up before you write something as reply. See my reply to Doriano just send. just other people need to follow treads from the beginning and reply to the relevant reply containing the subject part those people want answers to as i.e. src/example. That way they do not cry 'no no no' Best regards, Ron_1st -- From ronstk at ...239... Thu Oct 22 23:49:02 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 22 Oct 2009 23:49:02 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <4AE094A2.5090302@...1909...> References: <1256131411.3857.18.camel@...938...> <4AE094A2.5090302@...1909...> Message-ID: <200910222349.02341.ronstk@...239...> On Thursday 22 October 2009, Doriano Blengino wrote: > Faysal Banna ha scritto: > > for all those who assumed i "hijacked" the thread and subject .... > > > > the subject of the whole was posted by Dima (My regards to her ) about set > > of questions and not specific to USB !!!!! > > > > she asked a set of questions including USB startup and also including the > > gridview which is of my interest at the moment .... > > > > and instead of u mumbling about Hijacking and bla bla bla u could have > > pointed to the solution if u know it or either directed to the documentation > > ............. > > Doriano ... Could you please point to a good documentation about GridView > > utilisation and/or TableView, besides your english is good just other people > > need to follow threads from the beginning. > > > Dear Faysal, > I am sorry - I don't know any other good place to find documentation, > apart from the official docs (wiki) and the normal internet sites. To be > sincere, I don't even know gambas so well - perhaps when, rarely or > perhaps too often, I know something and I write about it, I write so > much that what I write can be over-estimated. I like you writing very much. You help people where you can. > > Now I must add that perhaps I am writing too much in this list, or I > know english too little, or both. It is the second time in a few days > that threads grow too much because of my messages; I will think about it. I do not have problems with your english. May be the grammar is not right but I think most people can follow. My grammar is also not top of the top. It's symple not our native language. > > Regards to everyone, > Doriano > > Best regards to all gambas lovers, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From brisykes at ...626... Fri Oct 23 05:12:32 2009 From: brisykes at ...626... (briansykes) Date: Thu, 22 Oct 2009 20:12:32 -0700 (PDT) Subject: [Gambas-user] Gambas MD5 and MySQL MD5 Do Not Match Message-ID: <26020343.post@...1379...> I am trying to used stored MD5 passwords in a MySQL database with Gambas2, but with Crypt.MD5 i get numbers letters and dollar signs which is not an MD5 sum does anyone know how to fix this? an example of what Crypt.MD5 kicks out is this: $1$R48EQANG$.CoiiGj.gYSi399ggeQvj0 and in MYSQL it looks like this: 0cbc6611f5540bd0809a388dc95a615b both the encrypted sums are the word Test. If anyone can shed some light on this it would be great. -- View this message in context: http://www.nabble.com/Gambas-MD5-and-MySQL-MD5-Do-Not-Match-tp26020343p26020343.html Sent from the gambas-user mailing list archive at Nabble.com. From steven at ...2097... Fri Oct 23 05:44:13 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 23 Oct 2009 11:44:13 +0800 Subject: [Gambas-user] Mutiple mouse pointers In-Reply-To: <200910221553.15192.gambas@...1...> References: <1256171432.3541.6.camel@...2273...> <1256179776.3541.16.camel@...2273...> <200910221553.15192.gambas@...1...> Message-ID: <1256269453.5528.6.camel@...2273...> On Thu, 2009-10-22 at 15:53 +0200, Beno?t Minisini wrote: > > Hi, > > > > Here is interesting thing, I want to create a X12(mpx) aware > > application. > > > > When Fedora 12 comes out it will support X12(mpx) - multiple mouse > > pointers and I was hoping to use Gambas to create an interactive game > > using two mouse pointers. > > > > Is there any plans in Gambas 3 to include multiple mouse/keyboard > > pointer support. If not any ideas how to implement it? > > > > If it was it put Gambas in league of its own. Imagine the possibilities. > > Inbuilt support for gestures etc... > > > > Anyway any ideas would be grateful. > > > > Steven > > > > Gambas won't support it until the GUI toolkit will (Qt and GTK+). > > Regards, > Sounds good as GTK already has an Experimental MPX support (http://live.gnome.org/GTK+/MPX) Well I guess I have to wait. Steven -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: From shordi at ...626... Fri Oct 23 09:30:11 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 23 Oct 2009 09:30:11 +0200 Subject: [Gambas-user] Gambas MD5 and MySQL MD5 Do Not Match In-Reply-To: <26020343.post@...1379...> References: <26020343.post@...1379...> Message-ID: Put your code here. I do not have problems whith crypt. you should do something bad... 2009/10/23 briansykes > > I am trying to used stored MD5 passwords in a MySQL database with Gambas2, > but with Crypt.MD5 i get numbers letters and dollar signs which is not an > MD5 sum does anyone know how to fix this? an example of what Crypt.MD5 > kicks > out is this: $1$R48EQANG$.CoiiGj.gYSi399ggeQvj0 and in MYSQL it looks like > this: 0cbc6611f5540bd0809a388dc95a615b both the encrypted sums are the word > Test. If anyone can shed some light on this it would be great. > -- > View this message in context: > http://www.nabble.com/Gambas-MD5-and-MySQL-MD5-Do-Not-Match-tp26020343p26020343.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charles at ...1784... Fri Oct 23 09:47:39 2009 From: charles at ...1784... (charlesg) Date: Fri, 23 Oct 2009 00:47:39 -0700 (PDT) Subject: [Gambas-user] set of questions In-Reply-To: <4AE094A2.5090302@...1909...> References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> <4ADEF2C2.9070802@...1909...> <4ADEFB4E.8060006@...1909...> <384d3900910210647nc3298dege520aa4a80fe76a1@...627...> <200910220910.20373.ronstk@...239...> <4AE007A7.4020505@...1909...> <200910221113.07256.ronstk@...239...> <4AE06F8C.9080301@...1909...> <4AE094A2.5090302@...1909...> Message-ID: <26022140.post@...1379...> Doriano While you are busy dumping on yourself, let me join in: you are wrong. 1) You are wrong that you do not have a good command of the English language. I have often marvelled (in that vaguely condescending British sort of a way :)) how good your (in particular) and every contributors (in general) English is. You write better English than half of Britain. This does not say much but is intended as a compliment. 2) You are wrong that you do not know anything about Gambas. Less skilled users, like myself, learn a lot from your contributions and your obvious knowledge of Linux. There are complaints that some posts 'have nothing do do with Gambas'. I do not accept that and suggest that most of the posts relate to the interface between Gambas and Linux. I am sure the problem here is that too many questions were asked in a single post. I am also sure that Ron's response is a bite without venom. The boss is an amazing chap: he writes and maintains Gambas, holds down a job and is, I believe, a Thespian of repute. To avoid any unrecoverable read errors, he needs the help of people like you on this forum. -- View this message in context: http://www.nabble.com/set-of-questions-tp25987669p26022140.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Fri Oct 23 10:22:06 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 23 Oct 2009 10:22:06 +0200 Subject: [Gambas-user] Gambas MD5 and MySQL MD5 Do Not Match In-Reply-To: References: <26020343.post@...1379...> Message-ID: <6324a42a0910230122n575c3ecco64401278b190389e@...627...> use the md5sum binary or generate the stored password with gambas crypt library !!! it's to different thing... on one part, you have a summary... in other an encrypted password ! 2009/10/23 Jorge Carri?n : > Put your code here. I do not have problems whith crypt. you should do > something bad... > > 2009/10/23 briansykes > >> >> I am trying to used stored MD5 passwords in a MySQL database with Gambas2, >> but with Crypt.MD5 i get numbers letters and dollar signs which is not an >> MD5 sum does anyone know how to fix this? an example of what Crypt.MD5 >> kicks >> out is this: $1$R48EQANG$.CoiiGj.gYSi399ggeQvj0 and in MYSQL it looks like >> this: 0cbc6611f5540bd0809a388dc95a615b both the encrypted sums are the word >> Test. ?If anyone can shed some light on this it would be great. >> -- >> View this message in context: >> http://www.nabble.com/Gambas-MD5-and-MySQL-MD5-Do-Not-Match-tp26020343p26020343.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Fri Oct 23 11:38:58 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 23 Oct 2009 11:38:58 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <26022140.post@...1379...> References: <1256131411.3857.18.camel@...938...> <4ADEC219.1040400@...1909...> <4ADEF2C2.9070802@...1909...> <4ADEFB4E.8060006@...1909...> <384d3900910210647nc3298dege520aa4a80fe76a1@...627...> <200910220910.20373.ronstk@...239...> <4AE007A7.4020505@...1909...> <200910221113.07256.ronstk@...239...> <4AE06F8C.9080301@...1909...> <4AE094A2.5090302@...1909...> <26022140.post@...1379...> Message-ID: <4AE179B2.90405@...1909...> charlesg ha scritto: > Doriano > > While you are busy dumping on yourself, let me join in: you are wrong. > > ... Hoping that this is the right place to post a thought... :-) I would only say the following. I am not angry with anyone, and I don't really intend to leave the list, only to limit myself a little. My only sadness is when I see users complaining or flaming other users, when there is no evidence of malice. Sometimes I did it too, and I regret. Nobody is perfect, and a kind advice seems more appropriate than a blame, in those cases. Regards to all, Doriano Blengino From linuxos at ...1896... Fri Oct 23 12:47:32 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Fri, 23 Oct 2009 12:47:32 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 Message-ID: Hello Benoit, Since Gambas v2.16, after copy/paste objects by the IDE (as button or Panel) in my main form, I can not execute or recompil my project because the following error panel appair: Too many constants dans la d?finition du formulaire. Maybe there is too many objects declared in this Form ? Can you help me about this problem ? Olivier Cruilles Mail: linuxos at ...1896... From ronstk at ...239... Fri Oct 23 13:10:14 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 23 Oct 2009 13:10:14 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <26022140.post@...1379...> References: <1256131411.3857.18.camel@...938...> <4AE094A2.5090302@...1909...> <26022140.post@...1379...> Message-ID: <200910231310.14873.ronstk@...239...> On Friday 23 October 2009, charlesg wrote: > 1) You are wrong that you do not have a good command of the English > language. I have often marvelled (in that vaguely condescending British sort ---8<-- 100% agree > > 2) You are wrong that you do not know anything about Gambas. Less skilled > users, like myself, learn a lot from your contributions and your obvious > knowledge of Linux. There are complaints that some posts 'have nothing do do > with Gambas'. I do not accept that and suggest that most of the posts relate > to the interface between Gambas and Linux. And that is also the reason I like Dorianos replies. One time a hint, more linux as gambas, was also helpfull for me. :) :) A bit late but anyway thanks Doriano. > > I am sure the problem here is that too many questions were asked in a single > post. I am also sure that Ron's response is a bite without venom. I had to lookup 'venom' in the dictionary. It was simply the different context Faysal did his question. So he got a reply that he could not use by lack of specify about what he wanted the help. He did not wake up on my reply. > > The boss is an amazing chap: he writes and maintains Gambas, holds down a > job and is, I believe, a Thespian of repute. To avoid any unrecoverable read > Yes the big boss is a big wonder. I use and follow gambas already for aprox. 6 years. Started with gambas 0.46 somewhere in august 2003. Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Fri Oct 23 13:21:15 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 23 Oct 2009 13:21:15 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <4AE179B2.90405@...1909...> References: <1256131411.3857.18.camel@...938...> <26022140.post@...1379...> <4AE179B2.90405@...1909...> Message-ID: <200910231321.15632.ronstk@...239...> On Friday 23 October 2009, Doriano Blengino wrote: > charlesg ha scritto: > > Doriano > > > > While you are busy dumping on yourself, let me join in: you are wrong. > > > > ... > Hoping that this is the right place to post a thought... :-) > ---8<--- > Regards to all, > Doriano Blengino > Your doing well Doriano. BTW. Where in Italy do you live? I have been several times in the north part. Eating pasta and drinking gianti, hmmm I got thirsty again. :) Abbia un giorno piacevole e una computazione felice (yahoo :) ) Best regards, Ron_1st -- 111.111111 x 111.111111 = 12345.678987654321 -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Fri Oct 23 18:26:04 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 23 Oct 2009 18:26:04 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: References: Message-ID: <200910231826.04210.gambas@...1...> > Hello Benoit, > > Since Gambas v2.16, after copy/paste objects by the IDE (as button or > Panel) in my main form, > I can not execute or recompil my project because the following error > panel appair: > > Too many constants > dans la d?finition du formulaire. > > Maybe there is too many objects declared in this Form ? There are. Show me your *.form file, I will tell you. I guess there is a *lot* of controls in it! Regards, -- Beno?t Minisini From gambas at ...1... Fri Oct 23 18:27:10 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 23 Oct 2009 18:27:10 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <200910231310.14873.ronstk@...239...> References: <1256131411.3857.18.camel@...938...> <26022140.post@...1379...> <200910231310.14873.ronstk@...239...> Message-ID: <200910231827.10523.gambas@...1...> > > The boss is an amazing chap: he writes and maintains Gambas, holds down a > > job and is, I believe, a Thespian of repute. To avoid any unrecoverable > > read > > Yes the big boss is a big wonder. Hey, this is my birthday or what? :-) What does "Thespian of repute" means? -- Beno?t Minisini From wdahn at ...1000... Fri Oct 23 18:33:19 2009 From: wdahn at ...1000... (Werner) Date: Sat, 24 Oct 2009 00:33:19 +0800 Subject: [Gambas-user] set of questions In-Reply-To: <200910231827.10523.gambas@...1...> References: <1256131411.3857.18.camel@...938...> <26022140.post@...1379...> <200910231310.14873.ronstk@...239...> <200910231827.10523.gambas@...1...> Message-ID: <4AE1DACF.7030703@...1000...> Beno?t Minisini wrote: >>> The boss is an amazing chap: he writes and maintains Gambas, holds down a >>> job and is, I believe, a Thespian of repute. To avoid any unrecoverable >>> read >>> >> Yes the big boss is a big wonder. >> > > Hey, this is my birthday or what? :-) > > What does "Thespian of repute" means? > http://en.wikipedia.org/wiki/Thespian From dag.jarle.johansen at ...2312... Fri Oct 23 18:47:09 2009 From: dag.jarle.johansen at ...2312... (Dag Jarle Johansen) Date: Fri, 23 Oct 2009 13:47:09 -0300 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: <200910231826.04210.gambas@...1...> References: <200910231826.04210.gambas@...1...> Message-ID: Beno?t Minisini schrieb: >> Hello Benoit, >> >> Since Gambas v2.16, after copy/paste objects by the IDE (as button or >> Panel) in my main form, >> I can not execute or recompil my project because the following error >> panel appair: >> >> Too many constants >> dans la d?finition du formulaire. >> >> Maybe there is too many objects declared in this Form ? >> > > There are. Show me your *.form file, I will tell you. I guess there is a *lot* > of controls in it! > > Regards, > > question to this - what is a lot, do we have a limit? I can remenber, not good but i think, there were 256 items possible on a VB-Form. well, this because of the well-known tiny-integer of MS, why the f... do someone program like this. btw - tiny integer is not the same in MySQL, it is more regards to you all From linuxos at ...1896... Fri Oct 23 18:58:40 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Fri, 23 Oct 2009 18:58:40 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: <200910231826.04210.gambas@...1...> References: <200910231826.04210.gambas@...1...> Message-ID: Here is the file: -------------- next part -------------- A non-text attachment was scrubbed... Name: FormMain.form.tar.gz Type: application/x-gzip Size: 111477 bytes Desc: not available URL: -------------- next part -------------- Olivier Cruilles Mail: linuxos at ...1896... Le 23 oct. 2009 ? 18:26, Beno?t Minisini a ?crit : >> Hello Benoit, >> >> Since Gambas v2.16, after copy/paste objects by the IDE (as button or >> Panel) in my main form, >> I can not execute or recompil my project because the following error >> panel appair: >> >> Too many constants >> dans la d?finition du formulaire. >> >> Maybe there is too many objects declared in this Form ? > > There are. Show me your *.form file, I will tell you. I guess there > is a *lot* > of controls in it! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Fri Oct 23 19:56:01 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 23 Oct 2009 19:56:01 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: References: <200910231826.04210.gambas@...1...> Message-ID: <1256320561.6381.5.camel@...40...> Am Freitag, den 23.10.2009, 18:58 +0200 schrieb Olivier Cruilles: > Here is the file: > > > > > Olivier Cruilles > Mail: linuxos at ...1896... > > > Le 23 oct. 2009 ? 18:26, Beno?t Minisini a ?crit : > > >> Hello Benoit, > >> > >> Since Gambas v2.16, after copy/paste objects by the IDE (as button or > >> Panel) in my main form, > >> I can not execute or recompil my project because the following error > >> panel appair: > >> > >> Too many constants > >> dans la d?finition du formulaire. > >> > >> Maybe there is too many objects declared in this Form ? > > > > There are. Show me your *.form file, I will tell you. I guess there > > is a *lot* > > of controls in it! > > > > Regards, > > > > -- > > Beno?t Minisini > > Salut Olivier, isolated like this, I have to report, 'It workes fine', where is the problem ? To any chance to help you, I had to empty the class file(strip off all code) -- Amicalment Charlie From brisykes at ...626... Fri Oct 23 20:21:59 2009 From: brisykes at ...626... (briansykes) Date: Fri, 23 Oct 2009 11:21:59 -0700 (PDT) Subject: [Gambas-user] Gambas MD5 and MySQL MD5 Do Not Match In-Reply-To: <6324a42a0910230122n575c3ecco64401278b190389e@...627...> References: <26020343.post@...1379...> <6324a42a0910230122n575c3ecco64401278b190389e@...627...> Message-ID: <26031080.post@...1379...> Well the stored passwords are users for a chat server i'm making and they sign up for via website, so i can use gambas to do the stored passwords i have to use php's md5 function, so using the gambas crypt library isn't doable. As for the md5sum binary, as far as i can see thats for files only, i cant compare text with it i've just tried that and it says file not found. Fabien Bodard-4 wrote: > > use the md5sum binary > or generate the stored password with gambas crypt library !!! > > it's to different thing... on one part, you have a summary... in other > an encrypted password ! > > > 2009/10/23 Jorge Carri?n : >> Put your code here. I do not have problems whith crypt. you should do >> something bad... >> >> 2009/10/23 briansykes >> >>> >>> I am trying to used stored MD5 passwords in a MySQL database with >>> Gambas2, >>> but with Crypt.MD5 i get numbers letters and dollar signs which is not >>> an >>> MD5 sum does anyone know how to fix this? an example of what Crypt.MD5 >>> kicks >>> out is this: $1$R48EQANG$.CoiiGj.gYSi399ggeQvj0 and in MYSQL it looks >>> like >>> this: 0cbc6611f5540bd0809a388dc95a615b both the encrypted sums are the >>> word >>> Test. ?If anyone can shed some light on this it would be great. >>> -- >>> View this message in context: >>> http://www.nabble.com/Gambas-MD5-and-MySQL-MD5-Do-Not-Match-tp26020343p26020343.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and >>> stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Gambas-MD5-and-MySQL-MD5-Do-Not-Match-tp26020343p26031080.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Oct 24 00:29:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 24 Oct 2009 00:29:26 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: References: <200910231826.04210.gambas@...1...> Message-ID: <200910240029.26239.gambas@...1...> > Here is the file: > The limit is 4096 constant by class, a constant being a string or a floating point number. This limit cannot be changed in Gambas 2, because of the bytecode. But you can solve that problem by not putting everything in the same class. You have a TabStrip with five tabs. Just create five different forms, and embed them in the TabStrip at runtime. Of course this limit is a boring one, but having more than 4096 constants in a class usually means that there is a problem in the design. Regards, -- Beno?t Minisini From ronstk at ...239... Sat Oct 24 03:49:14 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 24 Oct 2009 03:49:14 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <4AE1DACF.7030703@...1000...> References: <1256131411.3857.18.camel@...938...> <200910231827.10523.gambas@...1...> <4AE1DACF.7030703@...1000...> Message-ID: <200910240349.14673.ronstk@...239...> On Friday 23 October 2009, Werner wrote: > Beno?t Minisini wrote: > >>> The boss is an amazing chap: he writes and maintains Gambas, holds down a > >>> job and is, I believe, a Thespian of repute. To avoid any unrecoverable > >>> read > >>> > >> Yes the big boss is a big wonder. > >> > > > > Hey, this is my birthday or what? :-) > > > > What does "Thespian of repute" means? > > > http://en.wikipedia.org/wiki/Thespian > Nice. If Benoit's acting is of same quality as programming then the 'International Thespian Society' should honorary him to :) About my feelings/compliment to Benoit. His source code of gambas written in C did show me a beautifull usage of the m4 macro usage. It was never seen before by me used in sources code in same quantity and quality. I'm a lover of this usage in the past with M80/L80 for CP/M and the EditorAssemblerPlus for the TRS80. May be more programmers do so but Benoit's way looks to me not the regular common way for the C art o programming. Anyway I never see it done. Best regards, Ron_1st -- I can learn a lot of Benoit's programming :) From ronstk at ...239... Sat Oct 24 04:01:25 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 24 Oct 2009 04:01:25 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: <200910240029.26239.gambas@...1...> References: <200910240029.26239.gambas@...1...> Message-ID: <200910240401.26202.ronstk@...239...> On Saturday 24 October 2009, Beno?t Minisini wrote: > > Here is the file: > > > > The limit is 4096 constant by class, a constant being a string or a floating > point number. This limit cannot be changed in Gambas 2, because of the > bytecode. > > But you can solve that problem by not putting everything in the same class. > > You have a TabStrip with five tabs. Just create five different forms, and > embed them in the TabStrip at runtime. > > Of course this limit is a boring one, but having more than 4096 constants in a > class usually means that there is a problem in the design. > > Regards, > LOL. I had once the same problem as Olivier. So I did split that form in more parts without know the real reason. Good to know it was a *design* and not coding problem. Best regards, Ron_1st -- From dima.malkov.russia at ...626... Sat Oct 24 10:41:56 2009 From: dima.malkov.russia at ...626... (Dima Malkov) Date: Sat, 24 Oct 2009 19:41:56 +1100 Subject: [Gambas-user] set of questions Message-ID: <1f13ba8b0910240141x22720bb4jd867a09cc1ce4d0@...627...> Beno?t Minisini replied: > I think you should have been make a thread for each question, > because now we are lost when reading the answers! Now I see the mistake. Sorry. I asked: > I want to run my gambas2-application from USB-FLASH-DISK on the > computers, that do not have gambas2 installed. > -----8<------ > Can I run my application with just some command, without copying? Beno?t Minisini replied: > -----8<------ > I will tell you when I make the environmental variable change. His name will > be something like GB_DIR, or GB_ROOT. It would be excellent to find the answer in documentation, when the technology will be done. I asked: > 2) I have the GridView in my program, that displays 4 thousands of rows. > When it updates the data (4-10 seconds), program do not reflexes. > There is a string in the documentation: > "You should use the last if you have thousands of rows to > display.". > I'm sorry, I do not understand this at all. > Could anybody explain this on a simple example? I thank charlesg, Doriano Blengino and Beno?t Minisini for excellent practical and theoretical answers. I asked: > 3) When I hide persistent Form, how to display it again? Jussi Lahtinen replied: > FromName.Show works with me..? And Beno?t Minisini replied: > Show() ? You want to ask me: "What the problem is?". I often need to know, if SomeForm is already opened or yet not. I didn't find any property or method of the Form that told about it. The fastest way for me was to write such code in SomeForm class: ------------------------------------------- ' Gambas class file PUBLIC VAR_FormIsShown AS Boolean PUBLIC SUB Form_Open() ... VAR_FormIsShown = TRUE END PUBLIC SUB Form_Close() ... VAR_FormIsShown = FALSE END ------------------------------------------- In FMain I wrote: ------------------------------------------- IF SomeForm.VAR_FormIsShown = FALSE THEN ... SomeForm.Show() ENDIF ------------------------------------------- SomeForm had that slow GridView (from question ?2). I wanted to make it open faster. In a month I suddenly found property "Persistent". I already forgot about VAR_FormIsShown and switched it to "true". SomeForm opened only ones. I suggested, that SomeForm.Show() wasn't antimethod for SomeForm.Hide() but only antimethod for SomeForm.Close(). When you answered to me , I saw my mistake. I added such code in SomeForm class: ------------------------------------------- PUBLIC SUB Form_Hide() ... VAR_FormIsShown = FALSE END ------------------------------------------- Now it works. Some persons are worrying about 'Hijacking', so I shall not ask: "What is the best way to control if the Form is already opened?". I asked: > 4) On my monitor with resolution "1024x768" Forms and widgets on them > look great. But when I come to my friends with big wide monitors, some > widgets (Buttons) became bigger while another widgets don't or not in > such proportions. Why does it happen? Beno?t Minisini replied: > By default, form and control size is proportional to the height > of the default font in pixels. If you don't want this behaviour > on a form, just set the "(Scaled)" property to FALSE. Now it works correctly. :) There isn't "(Scaled)" in the list of Form's properties in documentation. And there is only "STATIC PROPERTY READ gb.qt.Desktop.Scale AS Integer" in the whole documentation. :( I asked: > 1) May I create proprietary (not open-source) gambas2-applications and > components for gambas2? and: > 5) Can I easily convert my big project from the gambas2-project to the > gambas3-project? > > 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. > Can I easily switch them to gb.qt4 and other components, when my favour > Linux-distr Debian will be updated? All is clear. Thanks. Faysal Banna wrote: > the subject of the whole was posted by Dima (My regards to her ) > about set of questions and not specific to USB !!!!! > > she asked a set of questions including USB startup and also > including the gridview which is of my interest at the moment .... "Dima" is a modern citizen short equivalent for traditional Russian male-name "Dmitriy". Russians prefer to put full name only in documents, or when somebody informs about the famous person. In the dialogs russians usually like when they are refered by the short equivalents. And be carefull: there is a Russian fermale-name "Dina". You haven't hurt me. Best regards, -- Dima Malkov (Russia), male, 20 years old, use Gambas for 2 months, program in Linux for 2 months, use Linux for 2 years, speak English in practice and communicate with foreigners for 3 weeks. From linuxos at ...1896... Sat Oct 24 11:24:57 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sat, 24 Oct 2009 11:24:57 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: <200910240029.26239.gambas@...1...> References: <200910231826.04210.gambas@...1...> <200910240029.26239.gambas@...1...> Message-ID: Benoit, I think this is not really difficult to create five different forms but I don't want to rewrite all my code after doing this transformation. To be more clear, can I take each code of each TabStrip and put it in a new form or did I need to rewrite the code on each new form about button, panel, label, etc ... ? If I copy/paste all objects form the TabStrip (Tab1) to a new form, are all these objects will keep with the same name to bo coherent to the code associate ? Now, the last question... I don't know how to "embed them in the TabStrip at runtime" ... Can you explain me please ? Thank you in advance.. Olivier Cruilles Mail: linuxos at ...1896... Le 24 oct. 2009 ? 00:29, Beno?t Minisini a ?crit : >> Here is the file: >> > > The limit is 4096 constant by class, a constant being a string or a > floating > point number. This limit cannot be changed in Gambas 2, because of the > bytecode. > > But you can solve that problem by not putting everything in the same > class. > > You have a TabStrip with five tabs. Just create five different > forms, and > embed them in the TabStrip at runtime. > > Of course this limit is a boring one, but having more than 4096 > constants in a > class usually means that there is a problem in the design. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nospam.nospam.nospam at ...626... Sat Oct 24 11:37:38 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sat, 24 Oct 2009 20:37:38 +1100 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: References: <200910231826.04210.gambas@...1...><200910240029.26239.gambas@...1...> Message-ID: ----- Original Message ----- From: "Olivier Cruilles" [QUOTE] To be more clear, can I take each code of each TabStrip and put it in a new form or did I need to rewrite the code on each new form about button, panel, label, etc ... ? [/QUOTE] Cut/Copy/Paste. [QUOTE] If I copy/paste all objects form the TabStrip (Tab1) to a new form, are all these objects will keep with the same name to bo coherent to the code associate ? [/QUOTE] Yes. [QUOTE] Now, the last question... I don't know how to "embed them in the TabStrip at runtime" ... Can you explain me please ? [QUOTE] You make each window a child of the tabstrip that it ought to be on. IMNSHO, it's a bad idea because if you need to have one control on a tab reach into another control on another tab and find out what's happening, you can't, unless you set up lots of form properties. To try and solve your problem, split your constants into two classes so that, say, all the strings are in one class and all the integers etc in another. From 12ukwn at ...626... Sat Oct 24 12:45:59 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 24 Oct 2009 12:45:59 +0200 Subject: [Gambas-user] modules Message-ID: <4AE2DAE7.4060001@...626...> Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY -- Praise the Lord and pass the ammunition. -- Stephen Coonts, "The Minotaur" From doriano.blengino at ...1909... Sat Oct 24 13:23:45 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 24 Oct 2009 13:23:45 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <1f13ba8b0910240141x22720bb4jd867a09cc1ce4d0@...627...> References: <1f13ba8b0910240141x22720bb4jd867a09cc1ce4d0@...627...> Message-ID: <4AE2E3C1.1090001@...1909...> Dima Malkov ha scritto: > > "Dima" is a modern citizen short equivalent for traditional Russian > male-name "Dmitriy". > Russians prefer to put full name only in documents, or when somebody > informs about the famous person. In the dialogs russians usually like > when they are refered by the short equivalents. And be carefull: there > is a Russian fermale-name "Dina". > You haven't hurt me. > When Faysal wrote "...Dima... (my regards to her)", I suddenly was a little scared of having, in some previous mail, written about you using "he". I went to review my mails... then I thought: "yeah, it is a beautiful lebanese name, for a woman"... It is nice to learn something about names and so on, around the world. > Dima Malkov (Russia), male, 20 years old, use Gambas for 2 months, > program in Linux for 2 months, use Linux for 2 years, speak English in > practice and communicate with foreigners for 3 weeks. > Nice presentation - your numbers are small in all the respects! And there is an apparent preference for the "2" :-) It is a pleasure to know you. Best regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From jussi.lahtinen at ...626... Sat Oct 24 13:48:41 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 24 Oct 2009 14:48:41 +0300 Subject: [Gambas-user] set of questions In-Reply-To: <1f13ba8b0910240141x22720bb4jd867a09cc1ce4d0@...627...> References: <1f13ba8b0910240141x22720bb4jd867a09cc1ce4d0@...627...> Message-ID: <384d3900910240448g65a9b463v330ce4f9a294d888@...627...> With FormName.Visible you know if form is shown or not. Jussi On Sat, Oct 24, 2009 at 11:41, Dima Malkov wrote: > Beno?t Minisini replied: >> I think you should have been make a thread for each question, >> because now we are lost when reading the answers! > > Now I see the mistake. Sorry. > > > I asked: >> I want to run my gambas2-application from USB-FLASH-DISK on the >> computers, that do not have gambas2 installed. >> -----8<------ >> Can I run my application with just some command, without copying? > > Beno?t Minisini replied: >> -----8<------ >> I will tell you when I make the environmental variable change. His name will >> be something like GB_DIR, or GB_ROOT. > > It would be excellent to find the answer in documentation, when the > technology will be done. > > > I asked: >> 2) I have the GridView in my program, that displays 4 thousands of rows. >> When it updates the data (4-10 seconds), program do not reflexes. >> There is a string in the documentation: >> "You should use the last if you have thousands of rows to >> display.". >> I'm sorry, I do not understand this at all. >> Could anybody explain this on a simple example? > > I thank charlesg, Doriano Blengino and Beno?t Minisini for excellent > practical and theoretical answers. > > > I asked: >> 3) When I hide persistent Form, how to display it again? > > Jussi Lahtinen replied: >> FromName.Show works with me..? > > And Beno?t Minisini replied: >> Show() ? > > You want to ask me: "What the problem is?". > I often need to know, if SomeForm is already opened or yet not. I > didn't find any property or method of the Form that told about it. The > fastest way for me was to write such code in SomeForm class: > ------------------------------------------- > ' Gambas class file > PUBLIC VAR_FormIsShown AS Boolean > > PUBLIC SUB Form_Open() > ... > VAR_FormIsShown = TRUE > END > > PUBLIC SUB Form_Close() > ... > VAR_FormIsShown = FALSE > END > ------------------------------------------- > > In FMain I wrote: > ------------------------------------------- > IF SomeForm.VAR_FormIsShown = FALSE THEN > ... > SomeForm.Show() > ENDIF > ------------------------------------------- > > SomeForm had that slow GridView (from question No.2). I wanted to make > it open faster. In a month I suddenly found property "Persistent". I > already forgot about VAR_FormIsShown and switched it to "true". > SomeForm opened only ones. I suggested, that SomeForm.Show() wasn't > antimethod for SomeForm.Hide() but only antimethod for > SomeForm.Close(). When you answered to me , I saw my mistake. I added > such code in SomeForm class: > ------------------------------------------- > PUBLIC SUB Form_Hide() > ... > VAR_FormIsShown = FALSE > END > ------------------------------------------- > > Now it works. Some persons are worrying about 'Hijacking', so I shall > not ask: "What is the best way to control if the Form is already > opened?". > > > I asked: >> 4) On my monitor with resolution "1024x768" Forms and widgets on them >> look great. But when I come to my friends with big wide monitors, some >> widgets (Buttons) became bigger while another widgets don't or not in >> such proportions. Why does it happen? > > Beno?t Minisini replied: >> By default, form and control size is proportional to the height >> of the default font in pixels. If you don't want this behaviour >> on a form, just set the "(Scaled)" property to FALSE. > > Now it works correctly. :) > There isn't "(Scaled)" in the list of Form's properties in > documentation. And there is only "STATIC PROPERTY READ > gb.qt.Desktop.Scale AS Integer" in the whole documentation. :( > > > I asked: >> 1) May I create proprietary (not open-source) gambas2-applications and >> components for gambas2? > and: >> 5) Can I easily convert my big project from the gambas2-project to the >> gambas3-project? >> >> 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components. >> Can I easily switch them to gb.qt4 and other components, when my favour >> Linux-distr Debian will be updated? > All is clear. Thanks. > > > Faysal Banna wrote: >> the subject of the whole was posted by Dima (My regards to her ) >> about set of questions and not specific to USB !!!!! >> >> she asked a set of questions including USB startup and also >> including the gridview which is of my interest at the moment .... > > "Dima" is a modern citizen short equivalent for traditional Russian > male-name "Dmitriy". > Russians prefer to put full name only in documents, or when somebody > informs about the famous person. In the dialogs russians usually like > when they are refered by the short equivalents. And be carefull: there > is a Russian fermale-name "Dina". > You haven't hurt me. > > > Best regards, > -- > Dima Malkov (Russia), male, 20 years old, use Gambas for 2 months, > program in Linux for 2 months, use Linux for 2 years, speak English in > practice and communicate with foreigners for 3 weeks. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Oct 24 16:38:33 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 24 Oct 2009 16:38:33 +0200 Subject: [Gambas-user] new feature idea Message-ID: <6324a42a0910240738m491bf153w6887b6a156955f79@...627...> in the search/replace... make a system to allow pattern exemple : FF a, b, c, d, x(0), S11, -680876936 FF d, a, b, c, x(1), S12, -389564586 this is a vb6 style i want to replace this by FF(d, a, b, c, x[1], S12, -389564586) so a patern like: search line with FF pattern for change : * *(*)* replace pattern *(*[*]*) so the part with the * are stored and re distribued with the new patern ... From doriano.blengino at ...1909... Sat Oct 24 17:15:51 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 24 Oct 2009 17:15:51 +0200 Subject: [Gambas-user] new feature idea In-Reply-To: <6324a42a0910240738m491bf153w6887b6a156955f79@...627...> References: <6324a42a0910240738m491bf153w6887b6a156955f79@...627...> Message-ID: <4AE31A27.9060307@...1909...> Fabien Bodard ha scritto: > in the search/replace... > > make a system to allow pattern > > > exemple : > > FF a, b, c, d, x(0), S11, -680876936 > FF d, a, b, c, x(1), S12, -389564586 > this is a vb6 style i want to replace this by > > FF(d, a, b, c, x[1], S12, -389564586) > > so a patern like: > > search line with > > FF > > pattern for change : > * *(*)* > > replace pattern > *(*[*]*) > > so the part with the * are stored and re distribued with the new patern > Or, perhaps even better, use #1, #2, #3 in the replace pattern, with the style of mmv(1). This can be used to exchange the order of actual parameters in a function call. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From rterry at ...1946... Sat Oct 24 21:57:08 2009 From: rterry at ...1946... (richard terry) Date: Sun, 25 Oct 2009 06:57:08 +1100 Subject: [Gambas-user] Tableview question Message-ID: <200910250657.08523.rterry@...1946...> I've need to use the table view to allow user to edit/add new cells Despite reading Doc's and looking at the examples in the IDe I'm no closer to getting the concept of how the thing works, so I wonder if anyone could explain its use in simple terms and show me a simple sample of how to allow; *user to click on cell > enter > add information > exit > value appearing in the cell, adding new row etc. In the meantime I'll pore over the gambas IDE sourcecode and try again! Regards richard From Karl.Reinl at ...9... Sat Oct 24 22:29:13 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 24 Oct 2009 22:29:13 +0200 Subject: [Gambas-user] Tableview question In-Reply-To: <200910250657.08523.rterry@...1946...> References: <200910250657.08523.rterry@...1946...> Message-ID: <1256416153.6371.4.camel@...40...> Am Sonntag, den 25.10.2009, 06:57 +1100 schrieb richard terry: > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the examples in the IDe I'm no closer to > getting the concept of how the thing works, so I wonder if anyone could > explain its use in simple terms and show me a simple sample of how to allow; > *user to click on cell > enter > add information > exit > value appearing in > the cell, adding new row etc. > > In the meantime I'll pore over the gambas IDE sourcecode and try again! > > Regards > > richard Salut, I do not remember if it deals with Tableview, or say not with the Tableview used in gambas3, but Gareth Bult ( Encryptec Limited) made a DBGridEditor you find here : http://encryptec.net/software_old/gambas-grideditor but related to mySQL. -- Amicalment Charlie From gambas at ...1... Sun Oct 25 02:29:01 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Oct 2009 02:29:01 +0200 Subject: [Gambas-user] modules In-Reply-To: <4AE2DAE7.4060001@...626...> References: <4AE2DAE7.4060001@...626...> Message-ID: <200910250229.01358.gambas@...1...> > Hi list, > > I wonder if it is possible to create modules dependencies in order to > automatically load N modules when you only select one? > > JY > You mean, when loading a module at runtime? -- Beno?t Minisini From gambas at ...1... Sun Oct 25 02:33:18 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Oct 2009 02:33:18 +0200 Subject: [Gambas-user] set of questions In-Reply-To: <1f13ba8b0910240141x22720bb4jd867a09cc1ce4d0@...627...> References: <1f13ba8b0910240141x22720bb4jd867a09cc1ce4d0@...627...> Message-ID: <200910250233.18638.gambas@...1...> > > It would be excellent to find the answer in documentation, when the > technology will be done. > I won't do that for 2.17. I will release it first, and then I will implement the feature. This way you will be able to test it and we will see that is enough to run Gambas from a specific directory. > > You want to ask me: "What the problem is?". No, we thought you need the Show() method of the Window class. > I often need to know, if SomeForm is already opened or yet not. I > didn't find any property or method of the Form that told about it. To know if a window (or a form) is opened, just test the "Closed" property. If it is False, then the window is opened. > > Now it works correctly. :) > There isn't "(Scaled)" in the list of Form's properties in > documentation. And there is only "STATIC PROPERTY READ > gb.qt.Desktop.Scale AS Integer" in the whole documentation. :( > There is no "(Scaled)" property. This is just a feature provided by the IDE. If you want to know how it is implemented, look inside a *.form file when (Scaled) is True and when it is False. Regards, -- Beno?t Minisini From 12ukwn at ...626... Sun Oct 25 02:41:58 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sun, 25 Oct 2009 02:41:58 +0200 Subject: [Gambas-user] modules In-Reply-To: <200910250229.01358.gambas@...1...> References: <4AE2DAE7.4060001@...626...> <200910250229.01358.gambas@...1...> Message-ID: <4AE39ED6.8080009@...626...> Beno?t Minisini a ?crit : >> Hi list, >> >> I wonder if it is possible to create modules dependencies in order to >> automatically load N modules when you only select one? >> >> JY >> > > You mean, when loading a module at runtime? well, both @ runtime and when beginning the project when you choose the components modules you need. ie: base_erp that calls users, clients, suppliers, docs, ... without having to check them. -- Chaos is King and Magic is loose in the world. From linuxos at ...1896... Sun Oct 25 02:58:21 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Sun, 25 Oct 2009 02:58:21 +0200 Subject: [Gambas-user] Form problem with Gambas v2.16 In-Reply-To: <200910240029.26239.gambas@...1...> References: <200910231826.04210.gambas@...1...> <200910240029.26239.gambas@...1...> Message-ID: <7E6A65E4-BD13-411B-938C-1ADF06622D90@...1896...> Benoit, I found that you talked me: 'embed them in the TabStrip at runtime' So I create a new Form by copy/paste with all objects of the Tab1. I copy/paste too the code corresponding and now all It's ok. Thank you, now I know a new method to develop Gambas projects. Olivier Cruilles Mail: linuxos at ...1896... Le 24 oct. 2009 ? 00:29, Beno?t Minisini a ?crit : >> Here is the file: >> > > The limit is 4096 constant by class, a constant being a string or a > floating > point number. This limit cannot be changed in Gambas 2, because of the > bytecode. > > But you can solve that problem by not putting everything in the same > class. > > You have a TabStrip with five tabs. Just create five different > forms, and > embed them in the TabStrip at runtime. > > Of course this limit is a boring one, but having more than 4096 > constants in a > class usually means that there is a problem in the design. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From brisykes at ...626... Sun Oct 25 03:09:21 2009 From: brisykes at ...626... (briansykes) Date: Sat, 24 Oct 2009 19:09:21 -0700 (PDT) Subject: [Gambas-user] Gambas equivilent help Message-ID: <26044750.post@...1379...> Very simple question that i cant seem to answer on my own: What is the gambas equivilent of the java BitSet class? is it a Byte[] array? i dont know but thats about the only thing i could think of. -- View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26044750.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Oct 25 03:38:22 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Oct 2009 04:38:22 +0200 Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <26044750.post@...1379...> References: <26044750.post@...1379...> Message-ID: <200910250338.22135.gambas@...1...> > Very simple question that i cant seem to answer on my own: What is the > gambas equivilent of the java BitSet class? is it a Byte[] array? i dont > know but thats about the only thing i could think of. > There is no equivalent of the Java BitSet class. You must implement it by your own, and you can use a Byte array for that if you want. Regards, -- Beno?t Minisini From wdahn at ...1000... Sun Oct 25 11:51:12 2009 From: wdahn at ...1000... (Werner) Date: Sun, 25 Oct 2009 18:51:12 +0800 Subject: [Gambas-user] Tableview question In-Reply-To: <200910250657.08523.rterry@...1946...> References: <200910250657.08523.rterry@...1946...> Message-ID: <4AE42DA0.3030203@...1000...> richard terry wrote: > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the examples in the IDe I'm no closer to > getting the concept of how the thing works, so I wonder if anyone could > explain its use in simple terms and show me a simple sample of how to allow; > *user to click on cell > enter > add information > exit > value appearing in > the cell, adding new row etc. > > In the meantime I'll pore over the gambas IDE sourcecode and try again! > > Regards > > richard > I made a little example where one can edit the contents of a cell. The changes are stored with Tab of Return keys or clicking a different cell. All of these create a _Save event which can be used for data validation. It works fine here (Suse11.1/64, KDE 3.5) Regards Werner -------------- next part -------------- A non-text attachment was scrubbed... Name: TableViewTest.tar.gz Type: application/x-gzip Size: 8760 bytes Desc: not available URL: From gambas at ...1... Sun Oct 25 12:18:55 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Oct 2009 13:18:55 +0200 Subject: [Gambas-user] modules In-Reply-To: <4AE39ED6.8080009@...626...> References: <4AE2DAE7.4060001@...626...> <200910250229.01358.gambas@...1...> <4AE39ED6.8080009@...626...> Message-ID: <200910251218.55703.gambas@...1...> > Beno?t Minisini a ?crit : > >> Hi list, > >> > >> I wonder if it is possible to create modules dependencies in order to > >> automatically load N modules when you only select one? > >> > >> JY > > > > You mean, when loading a module at runtime? > > well, both @ runtime and when beginning the project when you choose the > components modules you need. > ie: base_erp that calls users, clients, suppliers, docs, ... without having > to check them. > I don't understand what you need: can you give more details? -- Beno?t Minisini From rterry at ...1946... Sun Oct 25 13:24:54 2009 From: rterry at ...1946... (richard terry) Date: Sun, 25 Oct 2009 23:24:54 +1100 Subject: [Gambas-user] Tableview question In-Reply-To: <4AE42DA0.3030203@...1000...> References: <200910250657.08523.rterry@...1946...> <4AE42DA0.3030203@...1000...> Message-ID: <200910252324.54980.rterry@...1946...> On Sunday 25 October 2009 21:51:12 you wrote: > richard terry wrote: > > I've need to use the table view to allow user to edit/add new cells > > > > Despite reading Doc's and looking at the examples in the IDe I'm no > > closer to getting the concept of how the thing works, so I wonder if > > anyone could explain its use in simple terms and show me a simple sample > > of how to allow; *user to click on cell > enter > add information > exit > > > value appearing in the cell, adding new row etc. > > > > In the meantime I'll pore over the gambas IDE sourcecode and try again! > > > > Regards > > > > richard > > I made a little example where one can edit the contents of a cell. The > changes are stored with Tab of Return keys or clicking a different cell. > All of these create a _Save event which can be used for data validation. > > It works fine here (Suse11.1/64, KDE 3.5) > > Regards > Werner > Thanks for taking the time, I'm off to bed (23:23 in AU) but I'll take a look tomorrow. Regards Richard From 12ukwn at ...626... Sun Oct 25 13:46:24 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sun, 25 Oct 2009 13:46:24 +0100 Subject: [Gambas-user] modules In-Reply-To: <200910251218.55703.gambas@...1...> References: <4AE2DAE7.4060001@...626...> <200910250229.01358.gambas@...1...> <4AE39ED6.8080009@...626...> <200910251218.55703.gambas@...1...> Message-ID: <4AE448A0.3080201@...626...> Beno?t Minisini a ?crit : >> Beno?t Minisini a ?crit : >>>> Hi list, >>>> >>>> I wonder if it is possible to create modules dependencies in order to >>>> automatically load N modules when you only select one? >>>> >>>> JY >>> You mean, when loading a module at runtime? >> well, both @ runtime and when beginning the project when you choose the >> components modules you need. >> ie: base_erp that calls users, clients, suppliers, docs, ... without having >> to check them. >> > > I don't understand what you need: can you give more details? ok, I wanna make a software that is broken in different system-like modules (as of gb.qt, gb.gtk...) and I'd like the dependencies to be automatic when I start another project base upon these modules -- From and.bertini at ...626... Sun Oct 25 13:59:53 2009 From: and.bertini at ...626... (Andrea Bertini) Date: Sun, 25 Oct 2009 13:59:53 +0100 Subject: [Gambas-user] gb.chart Message-ID: <4AE44BC9.2010403@...626...> please post en example working with version 2.16 thx From brisykes at ...626... Sun Oct 25 14:50:38 2009 From: brisykes at ...626... (briansykes) Date: Sun, 25 Oct 2009 06:50:38 -0700 (PDT) Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <200910250338.22135.gambas@...1...> References: <26044750.post@...1379...> <200910250338.22135.gambas@...1...> Message-ID: <26048007.post@...1379...> I'm trying to convert some java code to Gambas and i cant seem to get it to work at all here is the code. private BitSet a(BitSet bitset) { BitSet bitset1 = new BitSet(64); boolean flag = false; for(int i1 = 0; i1 < 64; i1++) { if(flag != bitset.get(i1)) bitset1.set(i1); flag = bitset.get(i1); } return bitset1; } Beno?t Minisini wrote: > >> Very simple question that i cant seem to answer on my own: What is the >> gambas equivilent of the java BitSet class? is it a Byte[] array? i dont >> know but thats about the only thing i could think of. >> > > There is no equivalent of the Java BitSet class. You must implement it by > your > own, and you can use a Byte array for that if you want. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26048007.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Oct 25 17:35:32 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Oct 2009 17:35:32 +0100 Subject: [Gambas-user] gb.chart In-Reply-To: <4AE44BC9.2010403@...626...> References: <4AE44BC9.2010403@...626...> Message-ID: <6324a42a0910250935s45157ca5pe91e31c74555ef5e@...627...> this is the basis of the gb.chart use on version 2 ' Gambas class file PUBLIC SUB Form_Open() Chart.Count = 3 Chart[0].Values = [1.0, 2.0, 3.0] Chart.Headers.Values = ["tic", "tac", "toes"] Chart.Legend.Visible = TRUE Chart.Style = ChartType.Pie END PUBLIC SUB DrawingArea1_Draw() Chart.Width = DrawingArea1.W Chart.Height = DrawingArea1.H Chart.Draw END 2009/10/25 Andrea Bertini : > please post en example working with version 2.16 thx > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Oct 25 17:39:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 25 Oct 2009 18:39:30 +0200 Subject: [Gambas-user] Release of Gambas 2.17 Message-ID: <200910251739.30473.gambas@...1...> Hi, Here is a new release of the stable version of Gambas. Beside the usual bug fixes, Gambas now runs on ARM architectures, which is a good thing, as it will allow to develop Gambas applications on smartphones and other devices using Linux/ARM. If anybody succeeds in such a thing, please tell us! Otherwise, Alexandros Prekates did a Greek translation of Gambas. And gb.gtk should now behave the same way as gb.qt when raising mouse, keyboard and focus events. Here is the full ChangeLog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * BUG: Fix a possible crash when saving the current cursor position. * BUG: Fix the layout of the message displayed when the debugging program segfaults. * BUG: Debugging windows can be shrinked to their minimal size normally now. * NEW: Greek translation made by Alexandros Prekates. [DATABASE MANAGER] * BUG: Saving and renaming tables having indexes works in all cases now. [INTERPRETER] * BUG: Some structure padding and alignment fixes. * BUG: Non-integer constants are correctly optimized and keep their datatype. * BUG: Stopping watching a file descriptor inside a watching callback does not crash the interpreter event loop anymore. [COMPILER] * BUG: Prevent the compiler from crashing on ARM architecture and others that do not like misaligned data. * BUG: The compiler works correctly again on 64 bits OS. * BUG: Non-integer constants are correctly compiled and keep their datatype. [GB.DB] * BUG: Some structure padding and alignment fixes. [GB.DEBUG] * BUG: Some structure padding and alignment fixes. [GB.DRAW] * BUG: Some structure padding and alignment fixes. [GB.EVAL] * BUG: Some structure padding and alignment fixes. [GB.FORM] * BUG: The ColorChoose won't crash anymore when entering an incorrect value in the color text field. [GB.GTK] * BUG: The name property of newly created menus is correctly initialized now. * BUG: Changing the value of the Sorted property in TreeView, ColumnView, ListView and ListBox does not crash anymore. * BUG: Fix input method handling. * BUG: Do not crash when there is a keyboard event and no active control. * BUG: Using the quality argument when saving a picture or an image does not crash anymore. * BUG: Sorted editable combo-box correctly raise the Click event if their first item is selected. * BUG: Fix the behaviour of ComboBox again, so that it behaves the same way as in gb.qt. * BUG: TextBox.Insert() correctly deletes the selected text before inserting the new one. * BUG: Really fix the initialization of file dialog from Dialog.Path in the Dialog.Save() method. * NEW: Thanks to an hack based on a global event handler, disabled controls now answer events like in gb.qt. * NEW: Application_KeyPress global event handler has been implemented. [GB.QT] * BUG: Ensure that the text of GridView cells is not wrapped. [GB.SDL] * BUG: Fix potential problem in storage with the window title. ------------------------------------------------------------------------------- Regards, -- Beno?t Minisini From gambas.fr at ...626... Sun Oct 25 17:50:47 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Oct 2009 17:50:47 +0100 Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <26048007.post@...1379...> References: <26044750.post@...1379...> <200910250338.22135.gambas@...1...> <26048007.post@...1379...> Message-ID: <6324a42a0910250950x31a35463g47f1cb6acf98f1b3@...627...> Private Function a( BitSet as Byte[]) as Byte[] Dim BitSet1 as New Byte[64] Dim Flag as Boolean = false Dim i As Integer For i = 0 to 64-1 If Flag<>BitSet[i] Then BitSet1[i]=True Flag = BitSet[i] Next return BitSet1 2009/10/25 briansykes : > > I'm trying to convert some java code to Gambas and i cant seem to get it to > work at all here is the code. > > private BitSet a(BitSet bitset) > ? ?{ > ? ? ? ?BitSet bitset1 = new BitSet(64); > ? ? ? ?boolean flag = false; > ? ? ? ?for(int i1 = 0; i1 < 64; i1++) > ? ? ? ?{ > ? ? ? ? ? ?if(flag != bitset.get(i1)) > ? ? ? ? ? ? ? ?bitset1.set(i1); > ? ? ? ? ? ?flag = bitset.get(i1); > ? ? ? ?} > > ? ? ? ?return bitset1; > ? ?} > > > Beno?t Minisini wrote: >> >>> Very simple question that i cant seem to answer on my own: What is the >>> ?gambas equivilent of the java BitSet class? is it a Byte[] array? i dont >>> ?know but thats about the only thing i could think of. >>> >> >> There is no equivalent of the Java BitSet class. You must implement it by >> your >> own, and you can use a Byte array for that if you want. >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26048007.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Oct 25 18:02:49 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Oct 2009 18:02:49 +0100 Subject: [Gambas-user] Tableview question In-Reply-To: <200910250657.08523.rterry@...1946...> References: <200910250657.08523.rterry@...1946...> Message-ID: <6324a42a0910251002l2d33b043qa613966964ef1654@...627...> on the _data event version or gridview mode ? 2009/10/24 richard terry : > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the ?examples in the IDe I'm no closer to > getting the concept of how the thing works, so I wonder if anyone could > explain its use in simple terms and show me a simple sample of how to allow; > *user to click on cell > enter > add information > exit > value appearing in > the cell, adding new row etc. > > In the meantime I'll pore over the gambas IDE sourcecode and try again! > > Regards > > richard > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Oct 25 18:10:53 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Oct 2009 18:10:53 +0100 Subject: [Gambas-user] Tableview question In-Reply-To: <6324a42a0910251002l2d33b043qa613966964ef1654@...627...> References: <200910250657.08523.rterry@...1946...> <6324a42a0910251002l2d33b043qa613966964ef1654@...627...> Message-ID: <6324a42a0910251010i32bbda49p2fe86f68ea241310@...627...> With a form and a tableview I hope you understand more, in the _Save Event, you validate the entered value and do what you want such as adding a new row ' Gambas class file PUBLIC SUB Form_Open() TableView1.Rows.Count = 3 TableView1.Columns.Count = 2 TableView1[0, 0].Text = "tic" TableView1[0, 1].Text = 1 TableView1[1, 0].Text = "tac" TableView1[1, 1].Text = "2" TableView1[2, 0].Text = "toes" TableView1[2, 1].Text = 3 END PUBLIC SUB TableView1_Click() IF TableView1.Column = 1 THEN RETURN TableView1.Edit END PUBLIC SUB TableView1_Save(Row AS Integer, Column AS Integer, Value AS String) IF Value = "" THEN Message.Error("You need to say something") RETURN ENDIF TableView1[Row, Column].Text = Value END 2009/10/25 Fabien Bodard : > on the _data event version or gridview mode ? > > > 2009/10/24 richard terry : >> I've need to use the table view to allow user to edit/add new cells >> >> Despite reading Doc's and looking at the ?examples in the IDe I'm no closer to >> getting the concept of how the thing works, so I wonder if anyone could >> explain its use in simple terms and show me a simple sample of how to allow; >> *user to click on cell > enter > add information > exit > value appearing in >> the cell, adding new row etc. >> >> In the meantime I'll pore over the gambas IDE sourcecode and try again! >> >> Regards >> >> richard >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From brisykes at ...626... Sun Oct 25 18:28:17 2009 From: brisykes at ...626... (briansykes) Date: Sun, 25 Oct 2009 10:28:17 -0700 (PDT) Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <6324a42a0910250950x31a35463g47f1cb6acf98f1b3@...627...> References: <26044750.post@...1379...> <200910250338.22135.gambas@...1...> <26048007.post@...1379...> <6324a42a0910250950x31a35463g47f1cb6acf98f1b3@...627...> Message-ID: <26049950.post@...1379...> Sorry i hit the wrong link, but here it is again. sorry. private BitSet a(char ac[]) { int i1 = ac.length * 8; BitSet bitset = new BitSet(i1); for(int j1 = 0; j1 < i1; j1++) { int k1 = j1 & 7; int l1 = j1 >> 3; if((ac[l1] & 0xff & 1 << 7 - k1) != 0) ' This is the thing i cant understand. bitset.set(j1); } return bitset; } Private Function a2(ac As String) as Byte[] Dim i1 as Integer Dim bitset as Byte[] Dim j1 as Integer Dim l1 as Integer Dim k1 as Integer i1 = Len(ac) * 8 bitset = New Byte[i1] For j1 = 0 To i1 k1 = j1 AND 7 l1 = Lsr(j1, 3) 'If statement here Next Return bitset End Fabien Bodard-4 wrote: > > Private Function a( BitSet as Byte[]) as Byte[] > Dim BitSet1 as New Byte[64] > Dim Flag as Boolean = false > Dim i As Integer > > For i = 0 to 64-1 > If Flag<>BitSet[i] Then BitSet1[i]=True > Flag = BitSet[i] > Next > > return BitSet1 > > 2009/10/25 briansykes : >> >> I'm trying to convert some java code to Gambas and i cant seem to get it >> to >> work at all here is the code. >> >> private BitSet a(BitSet bitset) >> ? ?{ >> ? ? ? ?BitSet bitset1 = new BitSet(64); >> ? ? ? ?boolean flag = false; >> ? ? ? ?for(int i1 = 0; i1 < 64; i1++) >> ? ? ? ?{ >> ? ? ? ? ? ?if(flag != bitset.get(i1)) >> ? ? ? ? ? ? ? ?bitset1.set(i1); >> ? ? ? ? ? ?flag = bitset.get(i1); >> ? ? ? ?} >> >> ? ? ? ?return bitset1; >> ? ?} >> >> >> Beno?t Minisini wrote: >>> >>>> Very simple question that i cant seem to answer on my own: What is the >>>> ?gambas equivilent of the java BitSet class? is it a Byte[] array? i >>>> dont >>>> ?know but thats about the only thing i could think of. >>>> >>> >>> There is no equivalent of the Java BitSet class. You must implement it >>> by >>> your >>> own, and you can use a Byte array for that if you want. >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and >>> stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Gambas-equivilent-help-tp26044750p26048007.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26049950.html Sent from the gambas-user mailing list archive at Nabble.com. From and.bertini at ...626... Sun Oct 25 18:55:38 2009 From: and.bertini at ...626... (Andrea Bertini) Date: Sun, 25 Oct 2009 18:55:38 +0100 Subject: [Gambas-user] Gambas-user Digest, Vol 41, Issue 47 In-Reply-To: References: Message-ID: <4AE4911A.7030408@...626...> gambas-user-request at lists.sourceforge.net ha scritto: > Send Gambas-user mailing list submissions to > gambas-user at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help' to > gambas-user-request at lists.sourceforge.net > > You can reach the person managing the list at > gambas-user-owner at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Gambas-user digest..." > > > Today's Topics: > > 1. Re: modules (Beno?t Minisini) > 2. Re: Tableview question (richard terry) > 3. Re: modules (Jean-Yves F. Barbier) > 4. gb.chart (Andrea Bertini) > 5. Re: Gambas equivilent help (briansykes) > 6. Re: gb.chart (Fabien Bodard) > 7. Release of Gambas 2.17 (Beno?t Minisini) > 8. Re: Gambas equivilent help (Fabien Bodard) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 25 Oct 2009 13:18:55 +0200 > From: Beno?t Minisini > Subject: Re: [Gambas-user] modules > To: mailing list for gambas users > Message-ID: <200910251218.55703.gambas at ...1...> > Content-Type: Text/Plain; charset="utf-8" > > >> Beno?t Minisini a ?crit : >> >>>> Hi list, >>>> >>>> I wonder if it is possible to create modules dependencies in order to >>>> automatically load N modules when you only select one? >>>> >>>> JY >>>> >>> You mean, when loading a module at runtime? >>> >> well, both @ runtime and when beginning the project when you choose the >> components modules you need. >> ie: base_erp that calls users, clients, suppliers, docs, ... without having >> to check them. >> >> > > I don't understand what you need: can you give more details? > > this example with versione 2.16 doesn't work. Messages: 'the values count must be up then 1' 'no current device' Code: DIM mychart AS NEW Chart mychart.Count = 3 mychart[0].Values = [1.0, 2.0, 3.0] mychart.Headers.Values = ["tic", "tac", "toes"] mychart.Legend.Visible = TRUE mychart.Style = ChartType.Pie mychart.Width = DrawingArea1.W mychart.Height = DrawingArea1.H mychart.Draw From math.eber at ...221... Sun Oct 25 21:13:19 2009 From: math.eber at ...221... (Matti) Date: Sun, 25 Oct 2009 21:13:19 +0100 Subject: [Gambas-user] sort multidimensional arrays Message-ID: <4AE4B15F.4030008@...221...> Is there a way to sort an array that has more than one dimension by telling Gambas on which field the sorting shoiuld be done? For example, if I have the array Max, 14 Anna, 8 Fabien, 7 I would expect the result of sorting by the first field to be Anna, 8 Fabien, 7 Max, 14 Instead, when using Array.Sort, I get 7, 8 14, Anna Fabien, Max which is useless. I have a workaround now, reading the array into a single-dimensioned array like Max~14 Anna~8 Fabien~7 and then sort it, which produces Anna~8 Fabien~7 Max~14 and then split and read everything back to the original array: Anna, 8 Fabien, 7 Max, 14 But that just works, it's not really elegant. Somebody knows a better way? Thanks Matti From rterry at ...1946... Sun Oct 25 23:00:23 2009 From: rterry at ...1946... (richard terry) Date: Mon, 26 Oct 2009 09:00:23 +1100 Subject: [Gambas-user] Tableview question In-Reply-To: <6324a42a0910251010i32bbda49p2fe86f68ea241310@...627...> References: <200910250657.08523.rterry@...1946...> <6324a42a0910251002l2d33b043qa613966964ef1654@...627...> <6324a42a0910251010i32bbda49p2fe86f68ea241310@...627...> Message-ID: <200910260900.23550.rterry@...1946...> thanks, I'll digest all the replies. Richard On Monday 26 October 2009 04:10:53 you wrote: > > With a form and a tableview > > I hope you understand more, in the _Save Event, you validate the > entered value and do what you want such as adding a new row > > ' Gambas class file > > > > > PUBLIC SUB Form_Open() > > TableView1.Rows.Count = 3 > TableView1.Columns.Count = 2 > > TableView1[0, 0].Text = "tic" > TableView1[0, 1].Text = 1 > TableView1[1, 0].Text = "tac" > TableView1[1, 1].Text = "2" > TableView1[2, 0].Text = "toes" > TableView1[2, 1].Text = 3 > END > > PUBLIC SUB TableView1_Click() > IF TableView1.Column = 1 THEN RETURN > TableView1.Edit > > END > > PUBLIC SUB TableView1_Save(Row AS Integer, Column AS Integer, Value AS > String) IF Value = "" THEN > Message.Error("You need to say something") > RETURN > ENDIF > TableView1[Row, Column].Text = Value > > END > > 2009/10/25 Fabien Bodard : > > on the _data event version or gridview mode ? > > > > 2009/10/24 richard terry : > >> I've need to use the table view to allow user to edit/add new cells > >> > >> Despite reading Doc's and looking at the examples in the IDe I'm no > >> closer to getting the concept of how the thing works, so I wonder if > >> anyone could explain its use in simple terms and show me a simple sample > >> of how to allow; *user to click on cell > enter > add information > exit > >> > value appearing in the cell, adding new row etc. > >> > >> In the meantime I'll pore over the gambas IDE sourcecode and try again! > >> > >> Regards > >> > >> richard > >> > >> ------------------------------------------------------------------------ > >>------ Come build with us! The BlackBerry(R) Developer Conference in SF, > >> CA is the only developer event you need to attend this year. Jumpstart > >> your developing skills, take BlackBerry mobile applications to market > >> and stay ahead of the curve. Join us from November 9 - 12, 2009. > >> Register now! http://p.sf.net/sfu/devconference > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Sun Oct 25 23:30:54 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Oct 2009 23:30:54 +0100 Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <26049950.post@...1379...> References: <26044750.post@...1379...> <200910250338.22135.gambas@...1...> <26048007.post@...1379...> <6324a42a0910250950x31a35463g47f1cb6acf98f1b3@...627...> <26049950.post@...1379...> Message-ID: <6324a42a0910251530m3797c5di8b7518f67a431304@...627...> 2009/10/25 briansykes : > > Sorry i hit the wrong link, but here it is again. sorry. > > private BitSet a(char ac[]) > ? ?{ > ? ? ? ?int i1 = ac.length * 8; > ? ? ? ?BitSet bitset = new BitSet(i1); > ? ? ? ?for(int j1 = 0; j1 < i1; j1++) > ? ? ? ?{ > ? ? ? ? ? ?int k1 = j1 & 7; > ? ? ? ? ? ?int l1 = j1 >> 3; > ? ? ? ? ? ?if((ac[l1] & 0xff & 1 << 7 - k1) != 0) ' This is the thing i > cant understand. > ? ? ? ? ? ? ? ?bitset.set(j1); > ? ? ? ?} > > ? ? ? ?return bitset; > ? ?} > > Private Function a2(ac As String) as Byte[] > ?Dim i1 as Integer ?Dim bitset as Byte[] ?Dim j1 as Integer ?Dim l1 as Integer ?Dim k1 as Integer ?i1 = Len(ac) * 8 ?bitset = New Byte[i1] ?For j1 = 0 To i1-1 ? ?k1 = j1 AND 7 ? ?l1 = Lsr(j1, 3) > ? ?'If statement here if cbool(mid(ac,l1)) and $HFF and Lsl(1,7) <>0 then bitset[j1]=true > ?Next > ?Return bitset > > End > it's a try but i've not the given value.... is it a boolean string ? From gambas.fr at ...626... Sun Oct 25 23:32:48 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 25 Oct 2009 23:32:48 +0100 Subject: [Gambas-user] sort multidimensional arrays In-Reply-To: <4AE4B15F.4030008@...221...> References: <4AE4B15F.4030008@...221...> Message-ID: <6324a42a0910251532v75736a28wdaccf65f3a812de5@...627...> what is the array structure ? send an exemple please 2009/10/25 Matti : > Is there a way to sort an array that has more than one dimension by telling Gambas on which field the sorting shoiuld be done? > > For example, if I have the array > Max, 14 > Anna, 8 > Fabien, 7 > > I would expect the result of sorting by the first field to be > Anna, 8 > Fabien, 7 > Max, 14 > > Instead, when using Array.Sort, I get > 7, 8 > 14, Anna > Fabien, Max > > which is useless. > > I have a workaround now, reading the array into a single-dimensioned array like > Max~14 > Anna~8 > Fabien~7 > > and then sort it, which produces > Anna~8 > Fabien~7 > Max~14 > > and then split and read everything back to the original array: > Anna, 8 > Fabien, 7 > Max, 14 > > But that just works, it's not really elegant. > Somebody knows a better way? > > Thanks > Matti > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From hartmut at ...2307... Sun Oct 25 23:35:51 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Sun, 25 Oct 2009 23:35:51 +0100 Subject: [Gambas-user] Video Player example Message-ID: Hallo Gambas Users, >> for my Video project I need a video player which plays a video >> in a unvisible DrawingArea where I can grab a picture contolled >> by a timer. I want to show the grabbed image in a smaller preview >> window where one can apply effects. When pressing a button all >>effects should bei applied to the grabbed images in their original size >> and saved as a sequence of pictures. Werner suggested: >DrawingArea.Visible = FALSE or >DrawingArea.Hide sorry I tried both, but that didn't work, the drawingarea stays visible Doriano suggested: >If this does not work, you can try to put some other graphic element >above (on top) the drawingarea... this doesn't work too, because the drawingarea.grab commands grabs also the elements on top of the drawingarea, not only the contents of the drawing area as you can see on the attached screenshot. to give you a short explanation of the app: the yellow marked area is the drawing area for the video player in the original size of the video. marked green is the video player with its smaller preview picturebox. orange are the smaller previews and controls of 2 usb cams and red is marked the recording preview, which shows in a smaller preview what is recorded to disk. with the record radio buttons you can select which source is recorded. despite of the showed size all recordings are done with a resolution of 352x288 pixel. as you can see in the green preview the grab method grabs whats visible of the drawingarea, not the actual contents, its like a screenshot. thats the reason why Dorianos idea doesn't work. @Ron_1st I try to get better in my postings ;) Are there any hints or ideas how to tackle my problem ? I use Gambas 2.7 as distributed with Ubuntu 8.10 -------------- next part -------------- A non-text attachment was scrubbed... Name: VideoPlayerProblem2.png Type: image/png Size: 139535 bytes Desc: not available URL: From hartmut at ...2307... Sun Oct 25 23:42:32 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Sun, 25 Oct 2009 23:42:32 +0100 Subject: [Gambas-user] Video Player example Message-ID: Hallo List, I didn't know, that the attachments are scrubbed. at least in the digest. so here is the screenshot of my video app for live recordings from 2 cams. http://www.eilers.net/tmp/VideoPlayerProblem2.png regards Hartmut From brisykes at ...626... Mon Oct 26 00:16:08 2009 From: brisykes at ...626... (briansykes) Date: Sun, 25 Oct 2009 16:16:08 -0700 (PDT) Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <6324a42a0910251530m3797c5di8b7518f67a431304@...627...> References: <26044750.post@...1379...> <200910250338.22135.gambas@...1...> <26048007.post@...1379...> <6324a42a0910250950x31a35463g47f1cb6acf98f1b3@...627...> <26049950.post@...1379...> <6324a42a0910251530m3797c5di8b7518f67a431304@...627...> Message-ID: <26052874.post@...1379...> These functions are part of a chat server handshake and they only have it available to me in java so i have to port it to gambas to use it. I'll post the big function so you can get an idea of what is going on. private void n(String s1) { boolean flag = false; String as[] = { "MNfw9809", "90981qFS", "412.Fdq.", "..13fS4.", "41!!vs%&" }; StringTokenizer stringtokenizer = new StringTokenizer(s1 + "#", "#"); BitSet bitset = new BitSet(64); for(int i1 = 0; i1 < 5; i1++) { BitSet bitset1 = a(as[i1].toCharArray()); int j1 = Integer.parseInt(stringtokenizer.nextToken()); for(int l1 = 0; l1 < j1; l1++) bitset1 = a(bitset1); bitset.xor(bitset1); } char ac[] = a(bitset, 8); for(int k1 = 0; k1 < 8; k1++) if(ac[k1] == 0 || ac[k1] == '\n' || ac[k1] == '\r') ac[k1] = (char)(ac[k1] | 0x80); try { a_java_io_DataOutputStream_fld.writeBytes("~b#" + 13 + "#"); for(int i2 = 0; i2 < ac.length; i2++) a_java_io_DataOutputStream_fld.write((byte)(ac[i2] & 0xff)); a_java_io_DataOutputStream_fld.writeBytes("\n"); a_java_io_DataOutputStream_fld.flush(); return; } catch(Exception exception) { a(exception); } } The "MNfw9809", "90981qFS", "412.Fdq.", "..13fS4.", "41!!vs%&" are the things you have to use when you get the server's handshake request which looks like this: ~a#50#43#32#21#24# And from what i can tell the string array above has to be xor'd with those numbers i think, so thats what i'm trying to do. Fabien Bodard-4 wrote: > > 2009/10/25 briansykes : >> >> Sorry i hit the wrong link, but here it is again. sorry. >> >> private BitSet a(char ac[]) >> ? ?{ >> ? ? ? ?int i1 = ac.length * 8; >> ? ? ? ?BitSet bitset = new BitSet(i1); >> ? ? ? ?for(int j1 = 0; j1 < i1; j1++) >> ? ? ? ?{ >> ? ? ? ? ? ?int k1 = j1 & 7; >> ? ? ? ? ? ?int l1 = j1 >> 3; >> ? ? ? ? ? ?if((ac[l1] & 0xff & 1 << 7 - k1) != 0) ' This is the thing i >> cant understand. >> ? ? ? ? ? ? ? ?bitset.set(j1); >> ? ? ? ?} >> >> ? ? ? ?return bitset; >> ? ?} >> >> Private Function a2(ac As String) as Byte[] >> > ?Dim i1 as Integer > ?Dim bitset as Byte[] > ?Dim j1 as Integer > ?Dim l1 as Integer > ?Dim k1 as Integer > > ?i1 = Len(ac) * 8 > ?bitset = New Byte[i1] > ?For j1 = 0 To i1-1 > ? ?k1 = j1 AND 7 > ? ?l1 = Lsr(j1, 3) >> ? ?'If statement here > if cbool(mid(ac,l1)) and $HFF and Lsl(1,7) <>0 then bitset[j1]=true >> ?Next >> ?Return bitset >> >> End >> > > it's a try but i've not the given value.... is it a boolean string ? > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26052874.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Mon Oct 26 03:14:47 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 26 Oct 2009 04:14:47 +0200 Subject: [Gambas-user] Video Player example In-Reply-To: References: Message-ID: <200910260314.48447.ronstk@...239...> On Sunday 25 October 2009, Hartmut Eilers wrote: > Hallo Gambas Users, > > >> for my Video project I need a video player which plays a video > >> in a unvisible DrawingArea where I can grab a picture contolled > >> by a timer. I want to show the grabbed image in a smaller preview > >> window where one can apply effects. When pressing a button all > >>effects should bei applied to the grabbed images in their original size > >> and saved as a sequence of pictures. > > Werner suggested: > >DrawingArea.Visible = FALSE or > >DrawingArea.Hide > > sorry I tried both, but that didn't work, the drawingarea stays visible > > Doriano suggested: > >If this does not work, you can try to put some other graphic element > >above (on top) the drawingarea... > > this doesn't work too, because the drawingarea.grab commands grabs > also the elements on top of the drawingarea, not only the contents of > the drawing area as you can see on the attached screenshot. I have made a form to contain a invoice in the past. This form had to look the same as the printed form because the personel using it have some disabilities (in real, not my opinion :) ) I did a FInvoice.grab and send the picture to the printer. The form (A4) height is greater as the screen 800x600 terminal. On the lower half of the grabbed picture there was memory garbage and part of a browser page previous visit with login information!. My conclusion is that the *.grab takes the visible part of the screen with the dimensions determined by the control you use for *.grab instead the in-memory surface for that control. And more worse it uses X-servers memory to get the size you ask with *.grab. This is out of screen area so may be a X-server bug?? > > to give you a short explanation of the app: > the yellow marked area is the drawing area for the video player in > the original size of the video. marked green is the video player with > its smaller preview picturebox. orange are the smaller previews and > controls of 2 usb cams and red is marked the recording preview, which > shows in a smaller preview what is recorded to disk. with the record > radio buttons you can select which source is recorded. despite of the > showed size all recordings are done with a resolution of 352x288 pixel. > as you can see in the green preview the grab method grabs whats visible > of the drawingarea, not the actual contents, its like a screenshot. > > thats the reason why Dorianos idea doesn't work. > > @Ron_1st > I try to get better in my postings ;) > > Are there any hints or ideas how to tackle my problem ? > The dummy control i.e. a frame/panel should be on top of the DrawingArea. Resize it in code to the dimension of the DrawingArea. I'have don this to and should work. Just one question, the drawing you use is it a mplayer screen? The same way as the movieplayer from the gambas example kit? If so then it can be the reason why it is not working now. One other method I think about is position the DrawingArea.left and DrawingArea.top at negative position on the form or make the left and/or top greater so it s outside the form, if allowed, > I use Gambas 2.7 as distributed with Ubuntu 8.10 > Best regards, Ron_1st -- From and.bertini at ...626... Mon Oct 26 04:10:41 2009 From: and.bertini at ...626... (Andrea Bertini) Date: Mon, 26 Oct 2009 04:10:41 +0100 Subject: [Gambas-user] gb.chart In-Reply-To: References: Message-ID: <4AE51331.8040804@...626...> the help-code given doesn't work with release 2.16. Messages: ========= 'the values count must be up then 1' 'no current device' Code: ===== DIM mychart AS NEW Chart (not writte in the help but inserted) mychart.Count = 3 mychart[0].Values = [1.0, 2.0, 3.0] mychart.Headers.Values = ["tic", "tac", "toes"] mychart.Legend.Visible = TRUE mychart.Style = ChartType.Pie mychart.Width = DrawingArea1.W mychart.Height = DrawingArea1.H mychart.Draw From wdahn at ...1000... Sat Oct 24 22:25:18 2009 From: wdahn at ...1000... (Werner) Date: Sun, 25 Oct 2009 04:25:18 +0800 Subject: [Gambas-user] Tableview question In-Reply-To: <200910250657.08523.rterry@...1946...> References: <200910250657.08523.rterry@...1946...> Message-ID: <4AE362AE.9060302@...1000...> richard terry wrote: > I've need to use the table view to allow user to edit/add new cells > > Despite reading Doc's and looking at the examples in the IDe I'm no closer to > getting the concept of how the thing works, so I wonder if anyone could > explain its use in simple terms and show me a simple sample of how to allow; > *user to click on cell > enter > add information > exit > value appearing in > the cell, adding new row etc. > > In the meantime I'll pore over the gambas IDE sourcecode and try again! > > Regards > > richard > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > As I have never used a Tableview this is just an idea: Would it satisfy your requirements if you treat it like a spreadsheet cell so if a user clicks on a tableview cell its contents are copied to a text area where it can be edited? Afaik all spreadsheets do it that way. Regards Werner From rterry at ...1946... Mon Oct 26 10:48:48 2009 From: rterry at ...1946... (richard terry) Date: Mon, 26 Oct 2009 20:48:48 +1100 Subject: [Gambas-user] properites> options > get version from program ? how?? Message-ID: <200910262048.48917.rterry@...1946...> properites> options > get version from program ? how?? Noticed this in the properites tab - ?how does this work?? Regards richard From gambas.fr at ...626... Mon Oct 26 11:55:38 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 26 Oct 2009 11:55:38 +0100 Subject: [Gambas-user] Tableview question In-Reply-To: <4AE362AE.9060302@...1000...> References: <200910250657.08523.rterry@...1946...> <4AE362AE.9060302@...1000...> Message-ID: <6324a42a0910260355j485f93fatcebdc209b7ada13c@...627...> 2009/10/24 Werner : > richard terry wrote: >> I've need to use the table view to allow user to edit/add new cells >> >> Despite reading Doc's and looking at the ?examples in the IDe I'm no closer to >> getting the concept of how the thing works, so I wonder if anyone could >> explain its use in simple terms and show me a simple sample of how to allow; >> *user to click on cell > enter > add information > exit > value appearing in >> the cell, adding new row etc. >> >> In the meantime I'll pore over the gambas IDE sourcecode and try again! >> >> Regards >> >> richard >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > As I have never used a Tableview this is just an idea: > Would it satisfy your requirements if you treat it like a spreadsheet > cell so if a user clicks on a tableview cell its contents are copied to > a text area where it can be edited? > Afaik all spreadsheets do it that way. > > Regards > Werner :)... table view already work like that ! TableView.Edit... show a textbox on the current cell... you edit it and when you validate, an event is raised and in trhis event you validate the entry value and set the current cell value. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Oct 26 11:58:42 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 26 Oct 2009 11:58:42 +0100 Subject: [Gambas-user] gb.chart In-Reply-To: <4AE51331.8040804@...626...> References: <4AE51331.8040804@...626...> Message-ID: <6324a42a0910260358i7a36ae3ftee0e68edd2c5b151@...627...> 2009/10/26 Andrea Bertini : > the help-code given doesn't work with release 2.16. > > Messages: > ========= > 'the values count must be up then 1' > 'no current device' > > Code: > ===== > DIM mychart AS NEW Chart (not writte in the help but inserted) > mychart.Count = 3 > mychart[0].Values = [1.0, 2.0, 3.0] > mychart.Headers.Values = ["tic", "tac", "toes"] > mychart.Legend.Visible = TRUE > mychart.Style = ChartType.Pie > mychart.Width = DrawingArea1.W > mychart.Height = DrawingArea1.H > mychart.Draw > on what are you drawing ? you must drawing on a drawing area !!... so in the _Draw event of the drawing area! or at least you setup the cached property of the drawing area to true and : DIM mychart AS NEW Chart (not writte in the help but inserted) mychart.Count = 3 mychart[0].Values = [1.0, 2.0, 3.0] mychart.Headers.Values = ["tic", "tac", "toes"] mychart.Legend.Visible = TRUE mychart.Style = ChartType.Pie mychart.Width = DrawingArea1.W mychart.Height = DrawingArea1.H Draw.begin(DrawingArea1) mychart.Draw Draw.end > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wspinto at ...1405... Mon Oct 26 13:15:09 2009 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Mon, 26 Oct 2009 10:15:09 -0200 Subject: [Gambas-user] Ideas to gambas IDE (and inform have one bug too) Message-ID: <1256559309.4ae592cd71b66@...1406...> Hi Benoit! The bug is when you use horizontal split code. If you type any string Ex: sVar = "" The editor show: sVar = "" "" and is impossible remove only if you return to single mode. My idea to IDE is, if possible, split form and code simultaneous. Reguards, PS: My english is not very well. ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From gambas at ...1... Mon Oct 26 13:46:58 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Oct 2009 14:46:58 +0200 Subject: [Gambas-user] properites> options > get version from program ? how?? In-Reply-To: <200910262048.48917.rterry@...1946...> References: <200910262048.48917.rterry@...1946...> Message-ID: <200910261346.58216.gambas@...1...> > properites> options > get version from program ? how?? > > Noticed this in the properites tab - ?how does this work?? > > Regards > > richard > You put there a shell command, and the output of this command is used as version string. Consequently, the output of the command must have the following form: .. Regards, -- Beno?t Minisini From ron at ...1740... Mon Oct 26 13:48:46 2009 From: ron at ...1740... (Ron) Date: Mon, 26 Oct 2009 13:48:46 +0100 Subject: [Gambas-user] Feature Request Message-ID: <4AE59AAE.7@...1740...> Benoit, when you have a project open you can open a second one in a new window without closing the current one (by clicking "open in new window") When you want to open a new project next to the current one, you don't have this option, even more drastic, it closes your current one without asking anything. Maybe add this checkbox also to the new project wizard? Gambas 2.17 Running on Ubuntu Karmic, runs ok, but trying to solve the "very slow dns resolving feature" in it, no idea whats going on yet (also in Firefox so no Gambas issue) Regards, Ron. From gambas at ...1... Mon Oct 26 13:51:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Oct 2009 14:51:26 +0200 Subject: [Gambas-user] sort multidimensional arrays In-Reply-To: <4AE4B15F.4030008@...221...> References: <4AE4B15F.4030008@...221...> Message-ID: <200910261351.26516.gambas@...1...> > Is there a way to sort an array that has more than one dimension by telling > Gambas on which field the sorting shoiuld be done? > > For example, if I have the array > Max, 14 > Anna, 8 > Fabien, 7 > > I would expect the result of sorting by the first field to be > Anna, 8 > Fabien, 7 > Max, 14 > > Instead, when using Array.Sort, I get > 7, 8 > 14, Anna > Fabien, Max > > which is useless. > > I have a workaround now, reading the array into a single-dimensioned array > like Max~14 > Anna~8 > Fabien~7 > > and then sort it, which produces > Anna~8 > Fabien~7 > Max~14 > > and then split and read everything back to the original array: > Anna, 8 > Fabien, 7 > Max, 14 > > But that just works, it's not really elegant. > Somebody knows a better way? > > Thanks > Matti > Not really. The array Sort() method is very simple, as it sorts the contents of the array linearly, whatever the number of dimensions is. A workaround is using a Object[], and storing each line of your table inside by using a dedicated class, or another array. Sorting an Object[] calls the "_compare" public method on each object. This way you can sort the array the way you want. Look at the documenation of Object[].Sort() in the wiki for more details. In Gambas 3, you don't have to use an Object[], you can use a Variant[][] instead. Regards, -- Beno?t Minisini From gambas at ...1... Mon Oct 26 13:52:46 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Oct 2009 14:52:46 +0200 Subject: [Gambas-user] Feature Request In-Reply-To: <4AE59AAE.7@...1740...> References: <4AE59AAE.7@...1740...> Message-ID: <200910261352.46612.gambas@...1...> > Benoit, > > when you have a project open you can open a second one in a new window > without closing the current one (by clicking "open in new window") > > When you want to open a new project next to the current one, you don't > have this option, even more drastic, it closes your current one without > asking anything. > > Maybe add this checkbox also to the new project wizard? > > Gambas 2.17 > Running on Ubuntu Karmic, runs ok, but trying to solve the "very slow > dns resolving feature" in it, no idea whats going on yet (also in > Firefox so no Gambas issue) > > > Regards, > Ron. > This is implemented in Gambas 3. Regards, -- Beno?t Minisini From david_villalobos_c at ...43... Mon Oct 26 16:40:29 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 26 Oct 2009 08:40:29 -0700 (PDT) Subject: [Gambas-user] Set text to a spinbox Message-ID: <5491.34237.qm@...1656...> Hi all, How do I write text to a spinbox like the pic shown in the help. See the link: http://gambasdoc.org/help/comp/gb.qt/spinbox Regards -- David From gambas at ...1... Mon Oct 26 16:54:43 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Oct 2009 17:54:43 +0200 Subject: [Gambas-user] Set text to a spinbox In-Reply-To: <5491.34237.qm@...1656...> References: <5491.34237.qm@...1656...> Message-ID: <200910261654.43068.gambas@...1...> > Hi all, How do I write text to a spinbox like the pic shown in the help. > See the link: http://gambasdoc.org/help/comp/gb.qt/spinbox > > Regards > > > -- > David > Arg. The help picture is false, you cannot do that. You must put a label on the right on the spinbox instead. Regards, -- Beno?t Minisini From johny.provoost at ...27... Mon Oct 26 17:37:20 2009 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 26 Oct 2009 17:37:20 +0100 Subject: [Gambas-user] Set text to a spinbox In-Reply-To: <5491.34237.qm@...1656...> References: <5491.34237.qm@...1656...> Message-ID: <4AE5D040.90601@...27...> Just fill in the value property. *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* David Villalobos Cambronero schreef: > Hi all, How do I write text to a spinbox like the pic shown in the help. See the link: http://gambasdoc.org/help/comp/gb.qt/spinbox > > Regards > > > -- > David > > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jussi.lahtinen at ...626... Mon Oct 26 20:16:37 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 26 Oct 2009 21:16:37 +0200 Subject: [Gambas-user] Documentation of FOR EACH Message-ID: <384d3900910261216vf688488w5db5431b100d4514@...627...> http://gambasdoc.org/help/lang/foreach "The order of the enumeration in not necessarily predictable. See the documentation of each enumerable class for more details on that." I can't find any else information on that topic. What does that mean? Jussi From gambas at ...1... Mon Oct 26 20:27:31 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 26 Oct 2009 21:27:31 +0200 Subject: [Gambas-user] Documentation of FOR EACH In-Reply-To: <384d3900910261216vf688488w5db5431b100d4514@...627...> References: <384d3900910261216vf688488w5db5431b100d4514@...627...> Message-ID: <200910262027.31192.gambas@...1...> > http://gambasdoc.org/help/lang/foreach > > "The order of the enumeration in not necessarily predictable. See the > documentation of each enumerable class for more details on that." > > I can't find any else information on that topic. > What does that mean? > > Jussi > It means that sometimes the order of elements is predictable, sometimes it is not. If you enumerate an array or a collection, the order is predictable. Arrays are enumerated by index, while collections are enumerated by following the element creation order. The following code: Dim aArray As New String[] = [ "blue", "white", "red" ] Dim aCol As New Collection = [ "a": "blue", "b": "white", "c": "red" ] Dim sVal As String For Each sVal in aArray Print sVal;; Next Print For Each sVal in cCol Print sVal;; Next Print will print: blue white red blue white red For other enumerable classes, you must suppose that the order of enumeration is random, unless the contrary is explicitely written in the class documentation. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Oct 26 20:43:15 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 26 Oct 2009 21:43:15 +0200 Subject: [Gambas-user] Documentation of FOR EACH In-Reply-To: <200910262027.31192.gambas@...1...> References: <384d3900910261216vf688488w5db5431b100d4514@...627...> <200910262027.31192.gambas@...1...> Message-ID: <384d3900910261243q7fc560c7hd1cde5a3f0576f5b@...627...> OK. Thanks! Jussi 2009/10/26 Beno?t Minisini : >> http://gambasdoc.org/help/lang/foreach >> >> "The order of the enumeration in not necessarily predictable. See the >> documentation of each enumerable class for more details on that." >> >> ?I can't find any else information on that topic. >> ?What does that mean? >> >> Jussi >> > > It means that sometimes the order of elements is predictable, sometimes it is > not. > > If you enumerate an array or a collection, the order is predictable. Arrays > are enumerated by index, while collections are enumerated by following the > element creation order. > > The following code: > > ? ? ? ?Dim aArray As New String[] = [ "blue", "white", "red" ] > ? ? ? ?Dim aCol As New Collection = [ "a": "blue", "b": "white", "c": "red" ] > ? ? ? ?Dim sVal As String > > ? ? ? ?For Each sVal in aArray > ? ? ? ? ?Print sVal;; > ? ? ? ?Next > ? ? ? ?Print > > ? ? ? ?For Each sVal in cCol > ? ? ? ? ?Print sVal;; > ? ? ? ?Next > ? ? ? ?Print > > will print: > > ? ? ? ?blue white red > ? ? ? ?blue white red > > For other enumerable classes, you must suppose that the order of enumeration > is random, unless the contrary is explicitely written in the class > documentation. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From hartmut at ...2307... Mon Oct 26 20:51:56 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Mon, 26 Oct 2009 20:51:56 +0100 Subject: [Gambas-user] Video Player example Message-ID: Hallo List, > >> for my Video project I need a video player which plays a video > >> in a unvisible DrawingArea where I can grab a picture contolled > >> by a timer. I want to show the grabbed image in a smaller preview > >> window where one can apply effects. When pressing a button all > >>effects should bei applied to the grabbed images in their original size > >> and saved as a sequence of pictures. > @Ron_1st >The dummy control i.e. a frame/panel should be on top of the DrawingArea. >Resize it in code to the dimension of the DrawingArea. >I'have don this to and should work. >Just one question, the drawing you use is it a mplayer screen? >The same way as the movieplayer from the gambas example kit? >If so then it can be the reason why it is not working now. >One other method I think about is position the DrawingArea.left >and DrawingArea.top at negative position on the form or make >the left and/or top greater so it s outside the form, if allowed, It is a version of the gambas movie player example using mplayer. Your suggestions to put a dummy frame/panel above had the same result as seen on my screenshot, it overlapped and is seen on the preview. moving the drawing area in the off by using negative coordinates had the effect, that the screen at those coordinates was dumped. So I had different windows on my preview. Its like you said, grab() is a screenshot of the x-window area of the component. I tried a picturebox instead of the drawing area, and tried to access the Picture with PictureBox.Picture but the result is always null. >From my point of view that means, that mplayer doesn't write to the component, instead it writes to the area of the component in the x server. Does anybody have an idea how to play a video inside gambas and how to access images from that video in order to resize them or apply effects? Does anybody know how to modify the mplayer example to really write to the PictureBox not to the area of the PictureBox ? Thanks and regards Hartmut From math.eber at ...221... Mon Oct 26 23:52:06 2009 From: math.eber at ...221... (Matti) Date: Mon, 26 Oct 2009 23:52:06 +0100 Subject: [Gambas-user] sort multidimensional arrays In-Reply-To: <200910261351.26516.gambas@...1...> References: <4AE4B15F.4030008@...221...> <200910261351.26516.gambas@...1...> Message-ID: <4AE62816.7000504@...221...> Beno?t Minisini schrieb: > A workaround is using a Object[], and storing each line of your table inside > by using a dedicated class, or another array. Hmm. Sounds good, but I can't imagine how to store "each line of your table" into an Object[] Could you give an example? From ronstk at ...239... Tue Oct 27 05:33:02 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 27 Oct 2009 06:33:02 +0200 Subject: [Gambas-user] Video Player example In-Reply-To: References: Message-ID: <200910270533.02744.ronstk@...239...> On Monday 26 October 2009, Hartmut Eilers wrote: > Hallo List, > > > >> for my Video project I need a video player which plays a video > > >> in a unvisible DrawingArea where I can grab a picture contolled > > >> by a timer. I want to show the grabbed image in a smaller preview > > >> window where one can apply effects. When pressing a button all > > >>effects should bei applied to the grabbed images in their original size > > >> and saved as a sequence of pictures. > > > > @Ron_1st > >The dummy control i.e. a frame/panel should be on top of the DrawingArea. > >Resize it in code to the dimension of the DrawingArea. > >I'have don this to and should work. > >Just one question, the drawing you use is it a mplayer screen? > >The same way as the movieplayer from the gambas example kit? > >If so then it can be the reason why it is not working now. > > >One other method I think about is position the DrawingArea.left > >and DrawingArea.top at negative position on the form or make > >the left and/or top greater so it s outside the form, if allowed, > > It is a version of the gambas movie player example using mplayer. > Your suggestions to put a dummy frame/panel above had the same > result as seen on my screenshot, it overlapped and is seen on the > preview. > > moving the drawing area in the off by using negative coordinates had > the effect, that the screen at those coordinates was dumped. So I had > different windows on my preview. > > Its like you said, grab() is a screenshot of the x-window area of the > component. > > I tried a picturebox instead of the drawing area, and tried to access the > Picture with PictureBox.Picture but the result is always null. > >From my point of view that means, that mplayer doesn't write to > the component, instead it writes to the area of the component in the > x server. > > Does anybody have an idea how to play a video inside gambas and > how to access images from that video in order to resize them or > apply effects? > > Does anybody know how to modify the mplayer example to really write > to the PictureBox not to the area of the PictureBox ? > > Thanks and regards > Hartmut OK so my suspection was true for mplayer. Mplayer is forced to display on the x-servers real screen surface. Mplayer can out put to file and images instead of screen when I AFAIK. Else you could use ffmpeg to stream the video to images. I have done this for other stuff so I know that this should work. Showing in picturebox could be done by a timer reading the images from ffmpeg into the box. As I understood the frame rate is/was not to importand so this could be a way. Second you talk about play a video inside gambas and access the image of it. My previous posible soolution does not play inside gambas but access the images. Try to think as playing the video with or without gambas but to a virtual screen as i.e. jpeg images and using gambas to access that result. Best regards, Ron_1st -- From jussi.lahtinen at ...626... Tue Oct 27 18:04:02 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 27 Oct 2009 19:04:02 +0200 Subject: [Gambas-user] sort multidimensional arrays In-Reply-To: <4AE62816.7000504@...221...> References: <4AE4B15F.4030008@...221...> <200910261351.26516.gambas@...1...> <4AE62816.7000504@...221...> Message-ID: <384d3900910271004k737d7a73m9c59dfa3f2ed5791@...627...> Perhaps this way: Class1 sName as String iNumber as Integer Dim oo as New Object[] Dim item as New Class1 item.sName = "Max" item.iNumber = 14 oo.Add(item) Jussi On Tue, Oct 27, 2009 at 00:52, Matti wrote: > > Beno?t Minisini schrieb: > >> A workaround is using a Object[], and storing each line of your table inside >> by using a dedicated class, or another array. > > Hmm. Sounds good, but I can't imagine how to store "each line of your table" into an Object[] > Could you give an example? > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Tue Oct 27 22:29:11 2009 From: math.eber at ...221... (Matti) Date: Tue, 27 Oct 2009 22:29:11 +0100 Subject: [Gambas-user] sort multidimensional arrays In-Reply-To: <384d3900910271004k737d7a73m9c59dfa3f2ed5791@...627...> References: <4AE4B15F.4030008@...221...> <200910261351.26516.gambas@...1...> <4AE62816.7000504@...221...> <384d3900910271004k737d7a73m9c59dfa3f2ed5791@...627...> Message-ID: <4AE76627.90405@...221...> I think I begin to understand. I'll try... ...may take some time... Thanks Matti Jussi Lahtinen schrieb: > Perhaps this way: > > Class1 > sName as String > iNumber as Integer > > > Dim oo as New Object[] > Dim item as New Class1 > > item.sName = "Max" > item.iNumber = 14 > > oo.Add(item) > > > Jussi > > > On Tue, Oct 27, 2009 at 00:52, Matti wrote: >> Beno?t Minisini schrieb: >> >>> A workaround is using a Object[], and storing each line of your table inside >>> by using a dedicated class, or another array. >> Hmm. Sounds good, but I can't imagine how to store "each line of your table" into an Object[] From gambas.fr at ...626... Wed Oct 28 18:16:42 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 28 Oct 2009 18:16:42 +0100 Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <26052874.post@...1379...> References: <26044750.post@...1379...> <200910250338.22135.gambas@...1...> <26048007.post@...1379...> <6324a42a0910250950x31a35463g47f1cb6acf98f1b3@...627...> <26049950.post@...1379...> <6324a42a0910251530m3797c5di8b7518f67a431304@...627...> <26052874.post@...1379...> Message-ID: <6324a42a0910281016x6074273cq80935d0ca8c7051d@...627...> i think Benoit is better at this game than me :/ 2009/10/26 briansykes : > > These functions are part of a chat server handshake and they only have it > available to me in java so i have to port it to gambas to use it. > > I'll post the big function so you can get an idea of what is going on. > > private void n(String s1) > ? ?{ > ? ? ? ?boolean flag = false; > ? ? ? ?String as[] = { > ? ? ? ? ? ?"MNfw9809", "90981qFS", "412.Fdq.", "..13fS4.", "41!!vs%&" > ? ? ? ?}; > ? ? ? ?StringTokenizer stringtokenizer = new StringTokenizer(s1 + "#", > "#"); > ? ? ? ?BitSet bitset = new BitSet(64); > ? ? ? ?for(int i1 = 0; i1 < 5; i1++) > ? ? ? ?{ > ? ? ? ? ? ?BitSet bitset1 = a(as[i1].toCharArray()); > ? ? ? ? ? ?int j1 = Integer.parseInt(stringtokenizer.nextToken()); > ? ? ? ? ? ?for(int l1 = 0; l1 < j1; l1++) > ? ? ? ? ? ? ? ?bitset1 = a(bitset1); > > ? ? ? ? ? ?bitset.xor(bitset1); > ? ? ? ?} > > ? ? ? ?char ac[] = a(bitset, 8); > ? ? ? ?for(int k1 = 0; k1 < 8; k1++) > ? ? ? ? ? ?if(ac[k1] == 0 || ac[k1] == '\n' || ac[k1] == '\r') > ? ? ? ? ? ? ? ?ac[k1] = (char)(ac[k1] | 0x80); > > ? ? ? ?try > ? ? ? ?{ > ? ? ? ? ? ?a_java_io_DataOutputStream_fld.writeBytes("~b#" + 13 + "#"); > ? ? ? ? ? ?for(int i2 = 0; i2 < ac.length; i2++) > ? ? ? ? ? ? ? ?a_java_io_DataOutputStream_fld.write((byte)(ac[i2] & 0xff)); > > ? ? ? ? ? ?a_java_io_DataOutputStream_fld.writeBytes("\n"); > ? ? ? ? ? ?a_java_io_DataOutputStream_fld.flush(); > ? ? ? ? ? ?return; > ? ? ? ?} > ? ? ? ?catch(Exception exception) > ? ? ? ?{ > ? ? ? ? ? ?a(exception); > ? ? ? ?} > ? ?} > > The "MNfw9809", "90981qFS", "412.Fdq.", "..13fS4.", "41!!vs%&" are the > things you have to use when you get the server's handshake request which > looks like this: ~a#50#43#32#21#24# ?And from what i can tell the string > array above has to be xor'd with those numbers i think, so thats what i'm > trying to do. > > > Fabien Bodard-4 wrote: >> >> 2009/10/25 briansykes : >>> >>> Sorry i hit the wrong link, but here it is again. sorry. >>> >>> private BitSet a(char ac[]) >>> ? ?{ >>> ? ? ? ?int i1 = ac.length * 8; >>> ? ? ? ?BitSet bitset = new BitSet(i1); >>> ? ? ? ?for(int j1 = 0; j1 < i1; j1++) >>> ? ? ? ?{ >>> ? ? ? ? ? ?int k1 = j1 & 7; >>> ? ? ? ? ? ?int l1 = j1 >> 3; >>> ? ? ? ? ? ?if((ac[l1] & 0xff & 1 << 7 - k1) != 0) ' This is the thing i >>> cant understand. >>> ? ? ? ? ? ? ? ?bitset.set(j1); >>> ? ? ? ?} >>> >>> ? ? ? ?return bitset; >>> ? ?} >>> >>> Private Function a2(ac As String) as Byte[] >>> >> ??Dim i1 as Integer >> ??Dim bitset as Byte[] >> ??Dim j1 as Integer >> ??Dim l1 as Integer >> ??Dim k1 as Integer >> >> ??i1 = Len(ac) * 8 >> ??bitset = New Byte[i1] >> ??For j1 = 0 To i1-1 >> ?? ?k1 = j1 AND 7 >> ?? ?l1 = Lsr(j1, 3) >>> ? ?'If statement here >> ? ?if cbool(mid(ac,l1)) and $HFF and Lsl(1,7) <>0 then bitset[j1]=true >>> ?Next >>> ?Return bitset >>> >>> End >>> >> >> it's a try but i've not the given value.... is it a boolean string ? >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > -- > View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26052874.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From brisykes at ...626... Wed Oct 28 20:11:50 2009 From: brisykes at ...626... (briansykes) Date: Wed, 28 Oct 2009 12:11:50 -0700 (PDT) Subject: [Gambas-user] Gambas equivilent help In-Reply-To: <6324a42a0910281016x6074273cq80935d0ca8c7051d@...627...> References: <26044750.post@...1379...> <200910250338.22135.gambas@...1...> <26048007.post@...1379...> <6324a42a0910250950x31a35463g47f1cb6acf98f1b3@...627...> <26049950.post@...1379...> <6324a42a0910251530m3797c5di8b7518f67a431304@...627...> <26052874.post@...1379...> <6324a42a0910281016x6074273cq80935d0ca8c7051d@...627...> Message-ID: <26100427.post@...1379...> I've been reading up on java trying to understand it but i just never could get that damn language, some things are similar enough that with a bit of reading i'm able to find the gambas equivilent but other things i cant figure out. Fabien Bodard-4 wrote: > > i think Benoit is better at this game than me :/ > > > 2009/10/26 briansykes : >> >> These functions are part of a chat server handshake and they only have it >> available to me in java so i have to port it to gambas to use it. >> >> I'll post the big function so you can get an idea of what is going on. >> >> private void n(String s1) >> ? ?{ >> ? ? ? ?boolean flag = false; >> ? ? ? ?String as[] = { >> ? ? ? ? ? ?"MNfw9809", "90981qFS", "412.Fdq.", "..13fS4.", "41!!vs%&" >> ? ? ? ?}; >> ? ? ? ?StringTokenizer stringtokenizer = new StringTokenizer(s1 + "#", >> "#"); >> ? ? ? ?BitSet bitset = new BitSet(64); >> ? ? ? ?for(int i1 = 0; i1 < 5; i1++) >> ? ? ? ?{ >> ? ? ? ? ? ?BitSet bitset1 = a(as[i1].toCharArray()); >> ? ? ? ? ? ?int j1 = Integer.parseInt(stringtokenizer.nextToken()); >> ? ? ? ? ? ?for(int l1 = 0; l1 < j1; l1++) >> ? ? ? ? ? ? ? ?bitset1 = a(bitset1); >> >> ? ? ? ? ? ?bitset.xor(bitset1); >> ? ? ? ?} >> >> ? ? ? ?char ac[] = a(bitset, 8); >> ? ? ? ?for(int k1 = 0; k1 < 8; k1++) >> ? ? ? ? ? ?if(ac[k1] == 0 || ac[k1] == '\n' || ac[k1] == '\r') >> ? ? ? ? ? ? ? ?ac[k1] = (char)(ac[k1] | 0x80); >> >> ? ? ? ?try >> ? ? ? ?{ >> ? ? ? ? ? ?a_java_io_DataOutputStream_fld.writeBytes("~b#" + 13 + "#"); >> ? ? ? ? ? ?for(int i2 = 0; i2 < ac.length; i2++) >> ? ? ? ? ? ? ? ?a_java_io_DataOutputStream_fld.write((byte)(ac[i2] & >> 0xff)); >> >> ? ? ? ? ? ?a_java_io_DataOutputStream_fld.writeBytes("\n"); >> ? ? ? ? ? ?a_java_io_DataOutputStream_fld.flush(); >> ? ? ? ? ? ?return; >> ? ? ? ?} >> ? ? ? ?catch(Exception exception) >> ? ? ? ?{ >> ? ? ? ? ? ?a(exception); >> ? ? ? ?} >> ? ?} >> >> The "MNfw9809", "90981qFS", "412.Fdq.", "..13fS4.", "41!!vs%&" are the >> things you have to use when you get the server's handshake request which >> looks like this: ~a#50#43#32#21#24# ?And from what i can tell the string >> array above has to be xor'd with those numbers i think, so thats what i'm >> trying to do. >> >> >> Fabien Bodard-4 wrote: >>> >>> 2009/10/25 briansykes : >>>> >>>> Sorry i hit the wrong link, but here it is again. sorry. >>>> >>>> private BitSet a(char ac[]) >>>> ? ?{ >>>> ? ? ? ?int i1 = ac.length * 8; >>>> ? ? ? ?BitSet bitset = new BitSet(i1); >>>> ? ? ? ?for(int j1 = 0; j1 < i1; j1++) >>>> ? ? ? ?{ >>>> ? ? ? ? ? ?int k1 = j1 & 7; >>>> ? ? ? ? ? ?int l1 = j1 >> 3; >>>> ? ? ? ? ? ?if((ac[l1] & 0xff & 1 << 7 - k1) != 0) ' This is the thing i >>>> cant understand. >>>> ? ? ? ? ? ? ? ?bitset.set(j1); >>>> ? ? ? ?} >>>> >>>> ? ? ? ?return bitset; >>>> ? ?} >>>> >>>> Private Function a2(ac As String) as Byte[] >>>> >>> ??Dim i1 as Integer >>> ??Dim bitset as Byte[] >>> ??Dim j1 as Integer >>> ??Dim l1 as Integer >>> ??Dim k1 as Integer >>> >>> ??i1 = Len(ac) * 8 >>> ??bitset = New Byte[i1] >>> ??For j1 = 0 To i1-1 >>> ?? ?k1 = j1 AND 7 >>> ?? ?l1 = Lsr(j1, 3) >>>> ? ?'If statement here >>> ? ?if cbool(mid(ac,l1)) and $HFF and Lsl(1,7) <>0 then bitset[j1]=true >>>> ?Next >>>> ?Return bitset >>>> >>>> End >>>> >>> >>> it's a try but i've not the given value.... is it a boolean string ? >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and >>> stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Gambas-equivilent-help-tp26044750p26052874.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/Gambas-equivilent-help-tp26044750p26100427.html Sent from the gambas-user mailing list archive at Nabble.com. From robert1juhasz at ...626... Thu Oct 29 06:24:04 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Thu, 29 Oct 2009 06:24:04 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0910050504j77f5beafx952329f008d46d01@...627...> References: <25695659.post@...1379...> <1254391892.7146.1.camel@...40...> <68652a0b0910042158l11638948r168007897c3ac438@...627...> <200910051135.33876.gambas@...1...> <68652a0b0910050504j77f5beafx952329f008d46d01@...627...> Message-ID: <68652a0b0910282224r1ccc4dcfu74a832d5adf4da59@...627...> Hello All, I have a very basic question... how should I install Gambas 2 (latest version) for having the full version? I work on Ubuntu 9.04, 32bit version. I use database (mysql), serial port besida the standard features and I'd like to be able to make an installation package. On the wiki, the link doesn't work, the Ubuntu built-in version (2.8) doesn't handle the database part. I used http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install which installs the last version and works 100% correctly until I try to make a package (fail with a missing fakeroute component). When installing fakeroute then the package is created but I was not able to install my application, even the gambas behaved starnge after. Thanks for your help in advance. Robi 2009/10/5 Robert JUHASZ > Hi, > > It's no more just a packaging problem, even Gambas doesn't start up. After > re-installing gambas it gives the same error message (ERROR: #27: Cannot > load component 'gb.form.dialog': cannot find library..). It is very > embarrasseing as I don't know what to do now. If I reinstall ubuntu + > gambas, probably will run again, but I don't know why it happened and how to > avoid it to come back. > By the way, once I installed someting (like gambas itself or my > application) how can I uninstall it? I can't see them in the Synaptick > Package Manager. > > :-( > > Robi > > 2009/10/5, Beno?t Minisini : > >> > Hi, >> > >> > I added "fakeroot" from the Synaptic Package Manager and with this I >> could >> > pack my application - soma packages with different extension. I launched >> > the .deb package which installed the application! >> > >> > I just had some complications after... >> > >> > Whet I started the application it refuses to connect to it's database by >> > saying "no driver for mySQL". However the executable worked properly >> just >> > before. >> > To catch the error I start gambas2 ... which refuses to start by saying >> > "ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library >> > file" >> > >> > So now I would need some mainly to understand why it could have >> happened. >> > I removed "fakerote" but no change. I don't know how to uninstall my >> > application but it shouldn't affect gambas itself. >> > >> > Maybe I need to reinstall gambas. The last time I followed these >> > instructions and it worked well except the packaging: >> > http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install >> > >> > Thanks for any advice, >> > >> > Robi >> > >> > >> >> If you want your project to depend on the mysql driver, you must >> explicitely >> check it in the project property dialog, provided that your gambas version >> is >> high enough (>= 2.14). >> >> Regards, >> >> -- >> Beno?t Minisini >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From gambas at ...1... Thu Oct 29 22:29:40 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 29 Oct 2009 22:29:40 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0910282224r1ccc4dcfu74a832d5adf4da59@...627...> References: <25695659.post@...1379...> <68652a0b0910050504j77f5beafx952329f008d46d01@...627...> <68652a0b0910282224r1ccc4dcfu74a832d5adf4da59@...627...> Message-ID: <200910292229.40958.gambas@...1...> > Hello All, > > I have a very basic question... how should I install Gambas 2 (latest > version) for having the full version? > I work on Ubuntu 9.04, 32bit version. > I use database (mysql), serial port besida the standard features and I'd > like to be able to make an installation package. > > On the wiki, the link doesn't work, the Ubuntu built-in version (2.8) > doesn't handle the database part. > > I used http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Install which > installs the last version and works 100% correctly until I try to make a > package (fail with a missing fakeroute component). When installing > fakeroute then the package is created but I was not able to install my > application, even the gambas behaved starnge after. > > Thanks for your help in advance. > Robi > Please give all the details, the output of the packager wizard, the exact messages (this is 'fakeroot', not 'fakeroute'), and so on. Otherwise it is impossible to guess what the problem is exactly. Regards, -- Beno?t Minisini From gambas at ...1... Thu Oct 29 22:31:42 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 29 Oct 2009 22:31:42 +0100 Subject: [Gambas-user] Ideas to gambas IDE (and inform have one bug too) In-Reply-To: <1256559309.4ae592cd71b66@...1406...> References: <1256559309.4ae592cd71b66@...1406...> Message-ID: <200910292231.42373.gambas@...1...> > Hi Benoit! > > The bug is when you use horizontal split code. > If you type any string Ex: sVar = "" > The editor show: sVar = "" "" > and is impossible remove only if you return to single mode. > > My idea to IDE is, if possible, split form and code simultaneous. > > Reguards, > > PS: My english is not very well. > I confirm the problem. This is a bad behaviour of Gambas syntax highlighting when using multiple views. As for the idea, I agree: I just didn't have the time to do it yet! Regards, -- Beno?t Minisini From jmcbride at ...2309... Thu Oct 29 23:48:05 2009 From: jmcbride at ...2309... (Jerry McBride) Date: Thu, 29 Oct 2009 18:48:05 -0400 Subject: [Gambas-user] Ideas to gambas IDE (and inform have one bug too) In-Reply-To: <1256559309.4ae592cd71b66@...1406...> References: <1256559309.4ae592cd71b66@...1406...> Message-ID: <200910291848.06099.jmcbride@...2309...> On Monday 26 October 2009 08:15:09 Wellington de Souza Pinto wrote: > Hi Benoit! > > The bug is when you use horizontal split code. > If you type any string Ex: sVar = "" > The editor show: sVar = "" "" > and is impossible remove only if you return to single mode. > > My idea to IDE is, if possible, split form and code simultaneous. > > Reguards, > > PS: My english is not very well. > > ___________________________________________________________________________ > ________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A > Embratel tem tarifas muito baratas esperando por voc?. Aproveite! > > > --------------------------------------------------------------------------- > --- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is > the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > If you are taking suggestions... I would highly suggest you make GamBas desktop neutral. The fact that it drags in kde and gnome libraries is simply horrible. Jerry -- ***************************************************************************** From the desk of: Jerome D. McBride 18:46:19 up 32 days, 27 min, 6 users, load average: 0.18, 0.06, 0.02 ***************************************************************************** From robert1juhasz at ...626... Fri Oct 30 09:47:11 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Fri, 30 Oct 2009 09:47:11 +0100 Subject: [Gambas-user] packaging In-Reply-To: <200910292229.40958.gambas@...1...> References: <25695659.post@...1379...> <68652a0b0910050504j77f5beafx952329f008d46d01@...627...> <68652a0b0910282224r1ccc4dcfu74a832d5adf4da59@...627...> <200910292229.40958.gambas@...1...> Message-ID: <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> Hello Beno?t, Now the packaging is OK since the fakeroot is added. When I run the install file then it works. When I start my installed application, it doesn't work (refers to missing mysql driver). Even worst, when I start gambas it also doesn't work anymore. It comes directly after running the installation package file. ------------------------------------- ERROR: #27: Cannot load component 'gb.form.dialog': cannot find library file ------------------------------------- I confirmed the same thing on 2 different PC with ubuntu 9.04 and on the second with ubuntu 9.10. Always the same. Gambas comes back after running the Computer Janitor and removing first my application and also the proposed gambas components. I attach the package file, if you are brave enough to risk to reproduce the error :-) (The source is also included, I think) Thanks if you have time to have a look on it. Regards, Robi 2009/10/29 Beno?t Minisini > > Hello All, > > > > I have a very basic question... how should I install Gambas 2 (latest > > version) for having the full version? > > I work on Ubuntu 9.04, 32bit version. > > I use database (mysql), serial port besida the standard features and I'd > > like to be able to make an installation package. > > > > On the wiki, the link doesn't work, the Ubuntu built-in version (2.8) > > doesn't handle the database part. > > > > I used http://www.domotiga.nl/projects/domotiga/wiki/Gambas/Installwhich > > installs the last version and works 100% correctly until I try to make a > > package (fail with a missing fakeroute component). When installing > > fakeroute then the package is created but I was not able to install my > > application, even the gambas behaved starnge after. > > > > Thanks for your help in advance. > > Robi > > > > Please give all the details, the output of the packager wizard, the exact > messages (this is 'fakeroot', not 'fakeroute'), and so on. Otherwise it is > impossible to guess what the problem is exactly. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > 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: package.tar.gz Type: application/x-gzip Size: 63327 bytes Desc: not available URL: From rohnny at ...1248... Fri Oct 30 10:05:01 2009 From: rohnny at ...1248... (R. Stormo) Date: Fri, 30 Oct 2009 02:05:01 -0700 (PDT) Subject: [Gambas-user] Karmic sqlite problem. Message-ID: <26126852.post@...1379...> After installing ubuntu karmic I'm not able to start my program anymore. It uses sqlite. With default package from repo, 2.13 , I manage to open database manager . I can see the tables but when I press one of the tables it do hang. So I tried to download latest, 2.17. I'm not able to access database manager at all. I have installed all the lib's that are explaned on readthis site. This is what the output says after I hit the first screen ask to insert password/security key. -- (gambas2-database-manager.gambas:2187): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed -- Please advise. ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26126852.html Sent from the gambas-user mailing list archive at Nabble.com. From emilien+gambas at ...2315... Fri Oct 30 17:13:00 2009 From: emilien+gambas at ...2315... (Emilien Klein) Date: Fri, 30 Oct 2009 17:13:00 +0100 Subject: [Gambas-user] "Export" the translation template to a user-defined location In-Reply-To: References: Message-ID: Hi there, Gambas developers, We are using Gambas to develop BaShare (https://launchpad.net/bashare/), and we recently switched to Launchpad from Google Code. In the process of setting up the translations in Launchpad (where we could get the application translated by more people than if we required our translators to do it from Gambas, which means grabbing a copy of the trunk code etc...), we were faced with a semi-problem: Launchpad has the ability to automatically update the lists of translatable strings if the translation template (.pot file) is under version control. That way, when a change is made in the template, the new strings are immediately available to all translators. However, Gambas by default "hides" the template in a hidden file inside a hidden folder: it is located at ".lang/.pot". Our guess was that Gambas tries to hide the file that are used by the IDE, but that does not make our work easier if we don't want to use Gambas' integrated translation feature. We tried creating hard links, symbolic links, but that failed when you try to version those files... We faced a first refusal to import our .lang/.pot template from the Launchpad team when we tried to get our doubly-hidden ".lang/.pot" translation template imported, because using this type of file name is not something that would be recommended in the Linux world. My question is the following: Is there (or would there be) an option to tell Gambas to automatically export (for instance copying the file, if necessary leaving the .lang/.pot file) the translation template to a file that is specifiable by the user? That way, Gambas would have it's copy to do internal translations, but other users could just have a simple access to the standard template file. As an example, the translation template could be saved by default at the root of the project in a file called "messages.pot" (this name is commonly used in open source projects that use translations with gettext, but there are also other possibilities). Anyway, I'd appreciate if someone would take the time to think about this idea (or tell me if this feature is already present ;) ) Concerning the version: I am using the latest available in Ubuntu repos (so I guess 2.8.2, but I'm not at my dev machine right now), but Guido uses the latest from the Ubuntu PPA, which should be the actual latest release? Thanks! Emilien Klein From emilien+gambas at ...2315... Fri Oct 30 17:13:44 2009 From: emilien+gambas at ...2315... (Emilien Klein) Date: Fri, 30 Oct 2009 17:13:44 +0100 Subject: [Gambas-user] How to force Gambas to use a specific language? In-Reply-To: References: Message-ID: Hi all, I wanted to test a translation file in Hebrew, because it is a right to left (RTL) language and I want to see if everything works OK with RTL. I found the following post: http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg03134.html Same as http://sourceforge.net/mailarchive/message.php?msg_name=39705.81.245.220.223.1236591215.squirrel%40webmail.priorweb.be According to this post, it should be possible to force Gambas to start with a specific language, but I have not been able to do it myself. How do you pass this language argument? (everything I try results in Gambas telling me that I am not passing a valid project...) So I also tried using System.Language = "de_DE" But then I receive an error message telling me that the locale is not installed (sorry, I'm not at my devel computer so can't give you the exact error message) Anyway, how can I force Gambas to use Hebrew? I have now been forced to install all the localization files just to test this out! (and according to the previous message, that's exactly what would be possible to prevent: "It is a little bit more comfortable than to multi-boot Linux systems with other languages installed, just to check the languages as developer...") Because this is for Hebrew, but I'd like to be able to test that for all our languages at least once before shipping a new release, and installing ALL those locales wouldn't be a "partie de plaisir" ;) Concerning the version: I am using the latest available in Ubuntu repos for 9.04 (so I guess 2.8.2, but I'm not at my dev machine right now), but Guido uses the latest from the Ubuntu PPA, which should be the actual latest release? Thanks, Emilien Klein. From ron at ...1740... Fri Oct 30 17:21:09 2009 From: ron at ...1740... (Ron) Date: Fri, 30 Oct 2009 17:21:09 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26126852.post@...1379...> References: <26126852.post@...1379...> Message-ID: <4AEB1275.8080708@...1740...> R. Stormo wrote: > After installing ubuntu karmic I'm not able to start my program anymore. It > uses sqlite. > With default package from repo, 2.13 , I manage to open database manager . I > can see the tables but when I press one of the tables it do hang. > So I tried to download latest, 2.17. I'm not able to access database manager > at all. I have installed all the lib's that are explaned on readthis site. > This is what the output says after I hit the first screen ask to insert > password/security key. > -- > (gambas2-database-manager.gambas:2187): GLib-GObject-CRITICAL **: > g_object_get_data: assertion `G_IS_OBJECT (object)' failed > -- > > Please advise. > > > ----- > Regards R. Stormo > I'm running Karmic too now, and I can use my software with MySQL database on it, no problem. But the database manager is acting quite strangely too here, after creating the first connection (localhost, type mysql, sql user and password, db name) it closed right after that. When I reopened it, it works, that is I can view my the database layout and table fields, but not their content (data tab) See attachment. If I view the About window via ? menu item and click Ok, it closes completely too, dunno if that is suppose to happen either. I have to look into this some more if I can find the time. No errors in my console screen. [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31-14-generic CPUArchitecture=i686 DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.10" [Gambas] Gambas1=Not Installed Gambas2=2.17.0 Gambas2Path=/usr/local/bin/gbx2 Gambas3=Not Installed Regards, Ron_2nd. -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 39292 bytes Desc: not available URL: From ron at ...1740... Fri Oct 30 17:35:25 2009 From: ron at ...1740... (Ron) Date: Fri, 30 Oct 2009 17:35:25 +0100 Subject: [Gambas-user] How to force Gambas to use a specific language? In-Reply-To: References: Message-ID: <4AEB15CD.9090309@...1740...> Emilien Klein wrote: > Hi all, > > I wanted to test a translation file in Hebrew, because it is a right > to left (RTL) language and I want to see if everything works OK with > RTL. > I found the following post: > http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg03134.html > Same as http://sourceforge.net/mailarchive/message.php?msg_name=39705.81.245.220.223.1236591215.squirrel%40webmail.priorweb.be > > According to this post, it should be possible to force Gambas to start > with a specific language, but I have not been able to do it myself. > How do you pass this language argument? (everything I try results in > Gambas telling me that I am not passing a valid project...) > > So I also tried using > System.Language = "de_DE" > > > Thanks, > Emilien Klein. > > Hi, I don't know about Hebrew, but is this working to start with: System.Language = "de_DE.UTF-8" ie. specify the encoding too. You have to install the language you want to use too: For instance the German one: $ sudo aptitude install language-pack-de-base language-pack-he and language-pack-he-base are for Hebrew. Couldn't find out which System.Language string you need with that... Kind regards, Ron_2nd. From pinozollo at ...626... Fri Oct 30 18:43:05 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 30 Oct 2009 14:43:05 -0300 Subject: [Gambas-user] How to force Gambas to use a specific language? Message-ID: <200910301443.05628.pinozollo@...626...> If it can help I test different languages with logging as an other user who has in his .profile the following: #LANG="POSIX" LANG="ru_RU.utf8" #LANG="en_US.UTF-8" #LANG="es_ES.utf8" #LANG="fr_FR.utf8" #LANG="fr_BE.utf8" ...I change the language just un-commenting the right one. As you can easily switch from one user to the other it is also possible to have many instances of my project running at the same time in the same computer. Regards Pino Zollo -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From emilien+gambas at ...2315... Fri Oct 30 19:49:40 2009 From: emilien+gambas at ...2315... (Emilien Klein) Date: Fri, 30 Oct 2009 19:49:40 +0100 Subject: [Gambas-user] Impossible to translate an application in Ukrainian Message-ID: Hi, BaShare has been translated to Ukrainian on Launchpad, but when we wanted to import the .po file, there was no option for Ukrainian. Would it be possible to add Ukrainian (code "uk")? But we have compiled the .po file to create the .mo, and added it to the version control. After installing the Ukrainian locale and restarting the session in Ukrainian, BaShare correctly displayed in Ukrainian. So the problem is only to add the language in the IDE, nothing more! Thanks, Emilien Klein. From david_villalobos_c at ...43... Fri Oct 30 22:33:15 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 30 Oct 2009 14:33:15 -0700 (PDT) Subject: [Gambas-user] Good news!! Message-ID: <597087.87466.qm@...1667...> Hi, Beno?t & All: Days ago one friend call me to ask to by a judge in a scientific exposition, my surprise came when he told me that one of the projects was created with gambas by a couple of students. They made a system to turn lights on & off in a house. The use the LPT1 port to interact with the lights. They made it complete by themselves and they are 17 years old!!!!! I just wanted to share this news with you, I think is great that young people are using Gambas in my country (Costa Rica). This shows how easy-to-use and reliable gambas could be. The students are very exited because I told them I will share this news with all of you, if there is something you want me to tell them, just let me know. Best Regards. David. From arosa at ...2015... Sat Oct 31 00:45:53 2009 From: arosa at ...2015... (Toni) Date: Sat, 31 Oct 2009 00:45:53 +0100 Subject: [Gambas-user] How to force Gambas to use a specific language? In-Reply-To: <4AEB15CD.9090309@...1740...> References: <4AEB15CD.9090309@...1740...> Message-ID: <4AEB7AB1.9020805@...2015...> Hi all, I just wanted to give you my 2 cents on the locales and Gambas. Having to manualy install into the system the locales that a gambas application supports in order to use them it's sort of weird... If the strings for a given language are there (and programmatically the "System.Language" is set to use them), why can't the Gambas app just use them? On the other hand even if the system locale is really necessary in order to use a particular translation, it would be nice if the Gambas application packager could lookup the current available translations and add the corresponding system locales packages to the generated application package as a "suggested" ones. Cheers, Toni En/na Ron ha escrit: > Emilien Klein wrote: > >> Hi all, >> >> I wanted to test a translation file in Hebrew, because it is a right >> to left (RTL) language and I want to see if everything works OK with >> RTL. >> I found the following post: >> http://www.mail-archive.com/gambas-user at lists.sourceforge.net/msg03134.html >> Same as http://sourceforge.net/mailarchive/message.php?msg_name=39705.81.245.220.223.1236591215.squirrel%40webmail.priorweb.be >> >> According to this post, it should be possible to force Gambas to start >> with a specific language, but I have not been able to do it myself. >> How do you pass this language argument? (everything I try results in >> Gambas telling me that I am not passing a valid project...) >> >> So I also tried using >> System.Language = "de_DE" >> >> >> Thanks, >> Emilien Klein. >> >> >> > Hi, > > I don't know about Hebrew, but is this working to start with: > > System.Language = "de_DE.UTF-8" > > ie. specify the encoding too. > > You have to install the language you want to use too: > > For instance the German one: > > $ sudo aptitude install language-pack-de-base > > language-pack-he and language-pack-he-base > are for Hebrew. > > Couldn't find out which System.Language string you need with that... > > Kind regards, > Ron_2nd. > > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Oct 31 01:06:38 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 31 Oct 2009 01:06:38 +0100 Subject: [Gambas-user] How to force Gambas to use a specific language? In-Reply-To: <4AEB7AB1.9020805@...2015...> References: <4AEB15CD.9090309@...1740...> <4AEB7AB1.9020805@...2015...> Message-ID: <200910310106.38458.gambas@...1...> > Hi all, > I just wanted to give you my 2 cents on the locales and Gambas. > Having to manualy install into the system the locales that a gambas > application supports in order to use them it's sort of weird... > If the strings for a given language are there (and programmatically the > "System.Language" is set to use them), why can't the Gambas app just use > them? > It's not me, but the glibc that requires that. No idea why. If someone can find a way to use the translation API of the glibc without having to install the corresponding locale files, it will be a great help for everyone. > On the other hand even if the system locale is really necessary in order > to use a particular translation, it would be nice if the Gambas > application packager could lookup the current available translations and > add the corresponding system locales packages to the generated > application package as a "suggested" ones. Indeed. The problem is that all locale packages are different between distributions, and the way they are named too. I must create a list of all locale packages for each language, and each distributions supported by the IDE (Mandriva, SuSE, Fedora, Ubuntu, Slackware). It is an huge job I cannot make alone! Regards, -- Beno?t Minisini From gambas at ...1... Sat Oct 31 01:10:22 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 31 Oct 2009 01:10:22 +0100 Subject: [Gambas-user] "Export" the translation template to a user-defined location In-Reply-To: References: Message-ID: <200910310110.22617.gambas@...1...> > Hi there, Gambas developers, > > We are using Gambas to develop BaShare > (https://launchpad.net/bashare/), and we recently switched to > Launchpad from Google Code. > In the process of setting up the translations in Launchpad (where we > could get the application translated by more people than if we > required our translators to do it from Gambas, which means grabbing a > copy of the trunk code etc...), we were faced with a semi-problem: > Launchpad has the ability to automatically update the lists of > translatable strings if the translation template (.pot file) is under > version control. That way, when a change is made in the template, the > new strings are immediately available to all translators. > > However, Gambas by default "hides" the template in a hidden file > inside a hidden folder: it is located at ".lang/.pot". > > Our guess was that Gambas tries to hide the file that are used by the > IDE, but that does not make our work easier if we don't want to use > Gambas' integrated translation feature. We tried creating hard links, > symbolic links, but that failed when you try to version those files... > > We faced a first refusal to import our .lang/.pot template from the > Launchpad team when we tried to get our doubly-hidden ".lang/.pot" > translation template imported, because using this type of file name is > not something that would be recommended in the Linux world. > > My question is the following: Is there (or would there be) an option > to tell Gambas to automatically export (for instance copying the file, > if necessary leaving the .lang/.pot file) the translation template to > a file that is specifiable by the user? That way, Gambas would have > it's copy to do internal translations, but other users could just have > a simple access to the standard template file. > > As an example, the translation template could be saved by default at > the root of the project in a file called "messages.pot" (this name is > commonly used in open source projects that use translations with > gettext, but there are also other possibilities). > > Anyway, I'd appreciate if someone would take the time to think about > this idea (or tell me if this feature is already present ;) ) > So the problem just comes from Launchpad that does not want to import a file because its name begins with a dot? Nobody told that using files or directories that begin with a dot is forbidden. Where did the Launchpad team see that? I prefer Launchpad to be fixed instead of having to add a dirty hack to Gambas. If it is not possible, I can use your solution. But dot files are used by Gambas so that it knows what should not go inside the executable. And the .pot file is in that case. So, even if I use your solution, I will use a dot file too. But there is no problem with putting a dot file under version control, so I don't understand where the problem is that case. > Concerning the version: I am using the latest available in Ubuntu > repos (so I guess 2.8.2, but I'm not at my dev machine right now), but > Guido uses the latest from the Ubuntu PPA, which should be the actual > latest release? > > Thanks! > Emilien Klein > Ubuntu official packages of Gambas seem to be always out of date, and to not work very well. I can't say more, as I use Mandriva, where I have no problem about them. If I have time, I will look at the Ubuntu Gambas package problems. Regards, -- Beno?t Minisini From gambas at ...1... Sat Oct 31 01:11:21 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 31 Oct 2009 01:11:21 +0100 Subject: [Gambas-user] Impossible to translate an application in Ukrainian In-Reply-To: References: Message-ID: <200910310111.21804.gambas@...1...> > Hi, > > BaShare has been translated to Ukrainian on Launchpad, but when we > wanted to import the .po file, there was no option for Ukrainian. > Would it be possible to add Ukrainian (code "uk")? > > But we have compiled the .po file to create the .mo, and added it to > the version control. After installing the Ukrainian locale and > restarting the session in Ukrainian, BaShare correctly displayed in > Ukrainian. So the problem is only to add the language in the IDE, > nothing more! > > Thanks, > Emilien Klein. > Yes. And I add new languages to the IDE when people ask me for it. I don't have the list of all possible languages inside the IDE. Regards, -- Beno?t Minisini From gambas at ...1... Sat Oct 31 01:15:35 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 31 Oct 2009 01:15:35 +0100 Subject: [Gambas-user] Impossible to translate an application in Ukrainian In-Reply-To: References: Message-ID: <200910310115.35142.gambas@...1...> > Hi, > > BaShare has been translated to Ukrainian on Launchpad, but when we > wanted to import the .po file, there was no option for Ukrainian. > Would it be possible to add Ukrainian (code "uk")? > > But we have compiled the .po file to create the .mo, and added it to > the version control. After installing the Ukrainian locale and > restarting the session in Ukrainian, BaShare correctly displayed in > Ukrainian. So the problem is only to add the language in the IDE, > nothing more! > > Thanks, > Emilien Klein. > Ukrainian added in revision #2400. Regards, -- Beno?t Minisini From jguardon at ...2035... Sat Oct 31 09:04:30 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sat, 31 Oct 2009 09:04:30 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26126852.post@...1379...> References: <26126852.post@...1379...> Message-ID: <4AEBEF8E.1050309@...2035...> R. Stormo escribi?: > After installing ubuntu karmic I'm not able to start my program anymore. It > uses sqlite. > With default package from repo, 2.13 , I manage to open database manager . I > can see the tables but when I press one of the tables it do hang. > So I tried to download latest, 2.17. I'm not able to access database manager > at all. I have installed all the lib's that are explaned on readthis site. > This is what the output says after I hit the first screen ask to insert > password/security key. > -- > (gambas2-database-manager.gambas:2187): GLib-GObject-CRITICAL **: > g_object_get_data: assertion `G_IS_OBJECT (object)' failed > -- > > Please advise. > > > ----- > Regards R. Stormo > > > My Gambas Community http://gambasforum.tk > Same here: (gambas2-database-manager.gambas:13749): GLib-GObject-CRITICAL **: g_object_get_data: assertion `G_IS_OBJECT (object)' failed ----------------- [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31-14-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.10" [System] CPUArchitecture=i686 TotalRam=509368 kB (VirtualBox) [Gambas] Gambas1=Not Installed Gambas2=2.17.0 Gambas2Path=/usr/bin/gbx2 Gambas3=Not Installed ---------------- Regards Jesus Guardon -------------- next part -------------- A non-text attachment was scrubbed... Name: 0x15E1D3C3.asc Type: application/pgp-keys Size: 1698 bytes Desc: not available URL: