From gambas.fr at ...626... Sun Nov 1 00:09:27 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 1 Nov 2009 00:09:27 +0100 Subject: [Gambas-user] How to force Gambas to use a specific language? In-Reply-To: <200910301443.05628.pinozollo@...626...> References: <200910301443.05628.pinozollo@...626...> Message-ID: <6324a42a0910311609l4d0c8226x6f9091190d0befa@...627...> System.Language = "fr_FR.utf8" 2009/10/30 Pino Zollo : > 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 > > ------------------------------------------------------------------------------ > 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 Nov 1 15:38:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 Nov 2009 15:38:30 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> Message-ID: <200911011538.30572.gambas@...1...> > 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 > > You must use at least Gambas 2.14 to be able to add a dependency on gb.db.mysql in your project. The bug has been fixed in that release. The package you created will install all the dependencies needed to run *your* program, but not the Gambas IDE. If you want to run the Gambas IDE on the destination system, you must install the gambas2-ide package. If you have installed the gambas2-ide package, and can't run Gambas, then the package is buggy. Regards, -- Beno?t Minisini From gambas at ...1... Sun Nov 1 15:40:52 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 Nov 2009 15:40:52 +0100 Subject: [Gambas-user] Is Gambas desktop-neutral In-Reply-To: <200910291848.06099.jmcbride@...2309...> References: <1256559309.4ae592cd71b66@...1406...> <200910291848.06099.jmcbride@...2309...> Message-ID: <200911011540.52324.gambas@...1...> > > 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 > Please create another thread when changing the subject! Gambas *is* desktop-neutral - as far as it can be. It has only dependency on Gnome or KDE library if a project actually uses a component that depends on Gnome or KDE. Regards, -- Beno?t Minisini From rohnny at ...1248... Sun Nov 1 16:04:12 2009 From: rohnny at ...1248... (R. Stormo) Date: Sun, 1 Nov 2009 07:04:12 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26141089.post@...1379...> References: <26126852.post@...1379...> <26141089.post@...1379...> Message-ID: <26148901.post@...1379...> I have been trieing to compile a little older versions of gambas to see if that will work, but that would not compile. Hope someone have a idea how to make it compile. I have done, ./configure and with make I got this error, or Gambas2 2.10.2. make[2]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.postgresql' Making all in gb.db.sqlite3 make[2]: Entering directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3' make all-recursive make[3]: Entering directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3' Making all in src make[4]: Entering directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3/src' /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c -o main.lo main.cpp g++ -DHAVE_CONFIG_H -I. -I.. -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In function ?int WalkDirectory(const char*, char***)?: main.cpp:577: warning: ignoring return value of ?char* getcwd(char*, size_t)?, declared with attribute warn_unused_result main.cpp:579: warning: ignoring return value of ?int chdir(const char*)?, declared with attribute warn_unused_result main.cpp:594: warning: ignoring return value of ?int chdir(const char*)?, declared with attribute warn_unused_result main.cpp: In function ?int field_index(void*, const char*, DB_DATABASE*)?: main.cpp:1011: error: invalid conversion from ?const char*? to ?char*? main.cpp: In function ?int field_info(DB_DATABASE*, const char*, const char*, DB_FIELD*)?: main.cpp:1811: warning: unused variable ?db_handle? make[4]: *** [main.lo] Error 1 make[4]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2/gb.db.sqlite3' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/xxx/Skrivebord/gambas2-2.10.2' make: *** [all] Error 2 Regards R. Stormo ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26148901.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Nov 1 16:22:10 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 1 Nov 2009 16:22:10 +0100 Subject: [Gambas-user] Run Gambas on a USB key (was Re: set of questions) In-Reply-To: <200910221610.32755.gambas@...1...> References: <1256131411.3857.18.camel@...938...> <200910221610.32755.gambas@...1...> Message-ID: <200911011622.10384.gambas@...1...> From jussi.lahtinen at ...626... Sun Nov 1 17:47:23 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 1 Nov 2009 18:47:23 +0200 Subject: [Gambas-user] Optional arguments and IDE Message-ID: <384d3900911010847w6c44a85fl5d07b43a9d6e0ed0@...627...> Benoit, Is it possible to show default values of optional arguments, when you write function/sub call? Now you can only see gray text "bOptionalArgumentName As Boolean", I'd like to see "bOptionalArgumentName As Boolean = True". Jussi From jguardon at ...2035... Sun Nov 1 18:30:19 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sun, 01 Nov 2009 18:30:19 +0100 Subject: [Gambas-user] Run Gambas on a USB key In-Reply-To: <200911011622.10384.gambas@...1...> References: <1256131411.3857.18.camel@...938...> <200910221610.32755.gambas@...1...> <200911011622.10384.gambas@...1...> Message-ID: <4AEDC5AB.5030309@...2035...> Beno?t Minisini escribi?: > > With the revision #2401, you can define a GB_DIR environment variable that > points at the Gambas installation directory. > > With that, you should be able to run Gambas from your USB key, provided that > the destination O.S. has all the needed shared libraries installed. > > You can put all the needed shared libraries on the USB key too, and run Gambas > completely, by using the LD_LIBRARY_PATH environment variable. > > Regards, That's great!! Any pointers about how to accomplish this, would be greatly appreciated. Also if someone success with it, please post your experiences, I'm big ears... Regards, Jes?s -------------- next part -------------- A non-text attachment was scrubbed... Name: 0x15E1D3C3.asc Type: application/pgp-keys Size: 1698 bytes Desc: not available URL: From robert1juhasz at ...626... Mon Nov 2 03:57:13 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Mon, 2 Nov 2009 03:57:13 +0100 Subject: [Gambas-user] packaging In-Reply-To: <200911011538.30572.gambas@...1...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> Message-ID: <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> Hello, I use Gambas 2.16 and 2.17 (I work on two machines). I installed the application on these machines i.e. the gambas IDE was already on the machine. Is it possible that it was the problem? I may try to make an install on a "virgin" machine. Robi 2009/11/1 Beno?t Minisini > > 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 > > > > > > You must use at least Gambas 2.14 to be able to add a dependency on > gb.db.mysql in your project. The bug has been fixed in that release. > > The package you created will install all the dependencies needed to run > *your* > program, but not the Gambas IDE. If you want to run the Gambas IDE on the > destination system, you must install the gambas2-ide package. > > If you have installed the gambas2-ide package, and can't run Gambas, then > the > package is buggy. > > 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 steven at ...2097... Mon Nov 2 07:47:16 2009 From: steven at ...2097... (Steven James Drinnan) Date: Mon, 02 Nov 2009 14:47:16 +0800 Subject: [Gambas-user] Possible Bug - ValueBox In-Reply-To: <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> Message-ID: <1257144436.19937.7.camel@...2273...> I was adding a ValueBox and I wanted to add a default value. But ... There was no 'text' property field in the IDE Still can set the default value in code though. Steven [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.30.9-90.fc11.x86_64 DistributionVendor=redhat DistributionRelease=Fedora release 11 (Leonidas) [System] CPUArchitecture=x86_64 CPUName=Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz CPUCores=2 TotalRam=4011844 kB [Gambas] Gambas1=Not Installed Gambas2=2.16.0 Gambas2Path=/usr/bin/gbx2 Gambas3=Not Installed -------------- 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 steven at ...2097... Mon Nov 2 08:16:21 2009 From: steven at ...2097... (Steven James Drinnan) Date: Mon, 02 Nov 2009 15:16:21 +0800 Subject: [Gambas-user] Possible Bug - ValueBox In-Reply-To: <1257144436.19937.7.camel@...2273...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <1257144436.19937.7.camel@...2273...> Message-ID: <1257146182.19937.9.camel@...2273...> Correction text property is read only Also the max property is not honored. Steven On Mon, 2009-11-02 at 14:47 +0800, Steven James Drinnan wrote: > I was adding a ValueBox and I wanted to add a default value. > > But ... > > There was no 'text' property field in the IDE > > Still can set the default value in code though. > > Steven > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.30.9-90.fc11.x86_64 > DistributionVendor=redhat > DistributionRelease=Fedora release 11 (Leonidas) > > [System] > CPUArchitecture=x86_64 > CPUName=Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz > CPUCores=2 > TotalRam=4011844 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.16.0 > Gambas2Path=/usr/bin/gbx2 > Gambas3=Not Installed > ------------------------------------------------------------------------------ > 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 steven at ...2097... Mon Nov 2 08:25:00 2009 From: steven at ...2097... (Steven James Drinnan) Date: Mon, 02 Nov 2009 15:25:00 +0800 Subject: [Gambas-user] Possible Bug - ValueBox In-Reply-To: <1257144436.19937.7.camel@...2273...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <1257144436.19937.7.camel@...2273...> Message-ID: <1257146700.19937.11.camel@...2273...> I just noticed the value field. But this also does not appear in the properties of the IDE. Steven On Mon, 2009-11-02 at 14:47 +0800, Steven James Drinnan wrote: > I was adding a ValueBox and I wanted to add a default value. > > But ... > > There was no 'text' property field in the IDE > > Still can set the default value in code though. > > Steven > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.30.9-90.fc11.x86_64 > DistributionVendor=redhat > DistributionRelease=Fedora release 11 (Leonidas) > > [System] > CPUArchitecture=x86_64 > CPUName=Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz > CPUCores=2 > TotalRam=4011844 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.16.0 > Gambas2Path=/usr/bin/gbx2 > Gambas3=Not Installed > ------------------------------------------------------------------------------ > 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 arosa at ...2015... Mon Nov 2 14:15:40 2009 From: arosa at ...2015... (Toni) Date: Mon, 02 Nov 2009 14:15:40 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEED36D.1090404@...626...> References: <4AEED36D.1090404@...626...> Message-ID: <4AEEDB7C.8020402@...2015...> Hi, I have just started using Ubuntu 9.10 (which comes with Gnome 2.28) and I have noticed that "SidePanel" control doesn't get displayed properly for "gb.gtk" Gambas2 applications (I haven't tried with Gambas3). In the IDE the control looks ok but when the application is running, the control layout gets messed up (see the attached screenshots). Is it something with my configuration or is it a Bug in the control? My system: [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.31-14-generic DistributionVendor=ubuntu DistributionRelease="Ubuntu 9.10" [System] CPUArchitecture=i686 TotalRam=2053268 kB [Gambas] Gambas1=Not Installed Gambas2=2.13.1 Gambas2Path=/usr/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 Regards, Toni -------------- next part -------------- A non-text attachment was scrubbed... Name: sidepanel_ide.png Type: image/png Size: 13541 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sidepanel_running.png Type: image/png Size: 4043 bytes Desc: not available URL: From gambas at ...1... Mon Nov 2 14:29:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 14:29:08 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEEDB7C.8020402@...2015...> References: <4AEED36D.1090404@...626...> <4AEEDB7C.8020402@...2015...> Message-ID: <200911021429.08814.gambas@...1...> > Hi, > I have just started using Ubuntu 9.10 (which comes with Gnome 2.28) and > I have noticed that "SidePanel" control doesn't get displayed properly > for "gb.gtk" Gambas2 applications (I haven't tried with Gambas3). > In the IDE the control looks ok but when the application is running, the > control layout gets messed up (see the attached screenshots). > Is it something with my configuration or is it a Bug in the control? > > My system: > > [OperatingSystem] > OperatingSystem=Linux > KernelRelease=2.6.31-14-generic > DistributionVendor=ubuntu > DistributionRelease="Ubuntu 9.10" > > [System] > CPUArchitecture=i686 > TotalRam=2053268 kB > > [Gambas] > Gambas1=Not Installed > Gambas2=2.13.1 > Gambas2Path=/usr/bin/gbx2 > Gambas3=2.99.0 > Gambas3Path=/usr/local/bin/gbx3 > > Regards, > Toni > I cannot reproduce the bug, so I guess it has been fixed since. Can you send me a full project, so that I can confirm? Anyway, I suggest using more recent packages of Gambas from Debian - Ubuntu seems to not be able to package recent versions of Gambas correctly, no idea why... Regards, -- Beno?t Minisini From arosa at ...2015... Mon Nov 2 16:09:04 2009 From: arosa at ...2015... (Toni) Date: Mon, 02 Nov 2009 16:09:04 +0100 Subject: [Gambas-user] SidePanel Message-ID: <4AEEF610.5090008@...2015...> Hello Beno?t, I updated my Gambas2 to the latest revision using the svn but my problem with the control and "gtk" hasn't disapeared :_( I attach a simple project with 2 labels and a SidePanel that doesn't work for me. If I change the components for this very same project from "gb.gtk" to "gb.qt", then it works properly. Kind regards, Toni -------------- next part -------------- A non-text attachment was scrubbed... Name: Test3.tar.gz Type: application/x-gzip Size: 8358 bytes Desc: not available URL: From gambas at ...1... Mon Nov 2 16:32:32 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 16:32:32 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEEF610.5090008@...2015...> References: <4AEEF610.5090008@...2015...> Message-ID: <200911021632.32758.gambas@...1...> > Hello Beno?t, > I updated my Gambas2 to the latest revision using the svn but my problem > with the control and "gtk" hasn't disapeared :_( > I attach a simple project with 2 labels and a SidePanel that doesn't > work for me. If I change the components for this very same project from > "gb.gtk" to "gb.qt", then it works properly. > Kind regards, > Toni > It works perfectly there. Can you try to change your GTK+ style? I will check if it is a 64-bits issue too. Regards, -- Beno?t Minisini From arosa at ...2015... Mon Nov 2 17:58:38 2009 From: arosa at ...2015... (Toni) Date: Mon, 02 Nov 2009 17:58:38 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <200911021632.32758.gambas@...1...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> Message-ID: <4AEF0FBE.9040501@...2015...> I have tried with different GTK+ styles with no luck. Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a try. Thanks, Toni En/na Beno?t Minisini ha escrit: >> Hello Beno?t, >> I updated my Gambas2 to the latest revision using the svn but my problem >> with the control and "gtk" hasn't disapeared :_( >> I attach a simple project with 2 labels and a SidePanel that doesn't >> work for me. If I change the components for this very same project from >> "gb.gtk" to "gb.qt", then it works properly. >> Kind regards, >> Toni >> >> > > It works perfectly there. Can you try to change your GTK+ style? I will check > if it is a 64-bits issue too. > > Regards, > > From gambas at ...1... Mon Nov 2 18:18:07 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 18:18:07 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEF0FBE.9040501@...2015...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> <4AEF0FBE.9040501@...2015...> Message-ID: <200911021818.07394.gambas@...1...> > I have tried with different GTK+ styles with no luck. > Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a > try. Thanks, > Toni > I don't have the problem on my Ubuntu 9.04 64 bits. Strange... A new Ubuntu 9.10 feature? -- Beno?t Minisini From ebuhagiar at ...1661... Mon Nov 2 18:31:05 2009 From: ebuhagiar at ...1661... (Eric Buhagiar) Date: Mon, 02 Nov 2009 18:31:05 +0100 Subject: [Gambas-user] =?iso-8859-1?q?Bonjour=2C_question_sur_les_propri?= =?iso-8859-1?q?=E9t=E9s_de_colorchooser?= Message-ID: <4AEF1759.2050105@...1661...> Bonjour, Apr?s des ?changes sur des forums, la question persiste. Peut on lire les propri?t?s Red,Green,Blue directement calcul?es par un ColorChooser ? Cette classe fait les conversions, j'ai essay? pas mal de m?thodes mais je n'y arrive pas. Merci (et un grand bravo sinc?re pour le logiciel !) Eric From gambas at ...1... Mon Nov 2 18:37:32 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 18:37:32 +0100 Subject: [Gambas-user] =?utf-8?q?Bonjour=2C_question_sur_les_propri=C3=A9t?= =?utf-8?q?=C3=A9s_de_colorchooser?= In-Reply-To: <4AEF1759.2050105@...1661...> References: <4AEF1759.2050105@...1661...> Message-ID: <200911021837.32946.gambas@...1...> > Bonjour, > > Apr?s des ?changes sur des forums, la question persiste. > > Peut on lire les propri?t?s Red,Green,Blue directement calcul?es par un > ColorChooser ? > Cette classe fait les conversions, j'ai essay? pas mal de m?thodes > mais je n'y arrive pas. > > Merci (et un grand bravo sinc?re pour le logiciel !) > > Eric > Il faut demander ?a sur la mailing-list fran?aise ! You must ask that on the french mailing-list! -- Beno?t Minisini From gambas at ...1... Mon Nov 2 18:38:12 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 18:38:12 +0100 Subject: [Gambas-user] Optional arguments and IDE In-Reply-To: <384d3900911010847w6c44a85fl5d07b43a9d6e0ed0@...627...> References: <384d3900911010847w6c44a85fl5d07b43a9d6e0ed0@...627...> Message-ID: <200911021838.12894.gambas@...1...> > Benoit, > Is it possible to show default values of optional arguments, when you > write function/sub call? > Now you can only see gray text "bOptionalArgumentName As Boolean", I'd > like to see > "bOptionalArgumentName As Boolean = True". > > Jussi > I put that on the TODO list. Regards, -- Beno?t Minisini From gambas at ...1... Mon Nov 2 18:49:31 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 18:49:31 +0100 Subject: [Gambas-user] Run Gambas on a USB key In-Reply-To: <4AEDC5AB.5030309@...2035...> References: <1256131411.3857.18.camel@...938...> <200911011622.10384.gambas@...1...> <4AEDC5AB.5030309@...2035...> Message-ID: <200911021849.31160.gambas@...1...> > Beno?t Minisini escribi?: > > With the revision #2401, you can define a GB_DIR environment variable > > that points at the Gambas installation directory. > > > > With that, you should be able to run Gambas from your USB key, provided > > that the destination O.S. has all the needed shared libraries installed. > > > > You can put all the needed shared libraries on the USB key too, and run > > Gambas completely, by using the LD_LIBRARY_PATH environment variable. > > > > Regards, > > That's great!! > > Any pointers about how to accomplish this, would be greatly appreciated. > Also if someone success with it, please post your experiences, I'm big > ears... > > Regards, > > Jes?s > You must: 0) Run ldd on the *.so files of all gambas components used by your application to make a list of needed shared libraries. Don't forget to run ldd on the interpreter. 1) Put all detected shared libraries in a folder. Let's name it "/my/ld/dir" 2) Copy a gambas installation directory in another folder. Let's name it "/my/gambas/dir". 3) Create a script like that: #!/bin/sh export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH export GB_DIR=/my/gambas/dir exec /my/application.gambas This is just the principle. To make that cleanly, you must detect the current directory in your script, and build /my/ld/dir and /my/gambas/dir absolute paths from path relative to the current directory. You should check that the running system has the good architecture too. If somebody succeeds in doing that, please tell. A good guy would be able to even create a wizard for the IDE that would do the job automatically. I don't have the time for that at the moment! Regards, -- Beno?t Minisini From johny.provoost at ...27... Mon Nov 2 18:51:48 2009 From: johny.provoost at ...27... (Johny Provoost) Date: Mon, 02 Nov 2009 18:51:48 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <200911021818.07394.gambas@...1...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> <4AEF0FBE.9040501@...2015...> <200911021818.07394.gambas@...1...> Message-ID: <4AEF1C34.1010107@...27...> I'm working with Ubuntu 9.04 32 bits. Never worked with sidepanel before. Installed Gambas 2.17. Put two sidepanels on a window with GTK+ style. schermafdruk.png is as it in in the IDE. schermafdruk-1.png is as it is when the program is running. Strange. Must be something in Ubuntu if no one else have it. *Vriendelijke Groeten* *Johny Provoost* *mailto: johny.provoost at ...27... * *mailto: johny.provoost at ...626... * *Website:* *http://www.johnyprovoost.net* Beno?t Minisini schreef: >> I have tried with different GTK+ styles with no luck. >> Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a >> try. Thanks, >> Toni >> >> > > I don't have the problem on my Ubuntu 9.04 64 bits. Strange... A new Ubuntu > 9.10 feature? > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Schermafdruk-1.png Type: image/png Size: 20428 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Schermafdruk.png Type: image/png Size: 10647 bytes Desc: not available URL: From jguardon at ...2035... Mon Nov 2 19:42:05 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Mon, 02 Nov 2009 19:42:05 +0100 Subject: [Gambas-user] Run Gambas on a USB key In-Reply-To: <200911021849.31160.gambas@...1...> References: <1256131411.3857.18.camel@...938...> <200911011622.10384.gambas@...1...> <4AEDC5AB.5030309@...2035...> <200911021849.31160.gambas@...1...> Message-ID: <4AEF27FD.6090000@...2035...> Beno?t Minisini escribi?: > > You must: > > 0) Run ldd on the *.so files of all gambas components used by your application > to make a list of needed shared libraries. Don't forget to run ldd on the > interpreter. > > 1) Put all detected shared libraries in a folder. Let's name it "/my/ld/dir" > > 2) Copy a gambas installation directory in another folder. Let's name it > "/my/gambas/dir". > > 3) Create a script like that: > > #!/bin/sh > export LD_LIBRARY_PATH=/my/ld/dir:$LD_LIBRARY_PATH > export GB_DIR=/my/gambas/dir > exec /my/application.gambas > > This is just the principle. To make that cleanly, you must detect the current > directory in your script, and build /my/ld/dir and /my/gambas/dir absolute > paths from path relative to the current directory. You should check that the > running system has the good architecture too. > > If somebody succeeds in doing that, please tell. A good guy would be able to > even create a wizard for the IDE that would do the job automatically. I don't > have the time for that at the moment! > > Regards, > Many thanks, Beno?t I will give a try when I have time, and I will post the results. Regards Jesus -------------- next part -------------- A non-text attachment was scrubbed... Name: 0x15E1D3C3.asc Type: application/pgp-keys Size: 1698 bytes Desc: not available URL: From gambas at ...1... Mon Nov 2 21:30:33 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 21:30:33 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEF0FBE.9040501@...2015...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> <4AEF0FBE.9040501@...2015...> Message-ID: <200911022130.33545.gambas@...1...> > I have tried with different GTK+ styles with no luck. > Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a > try. Thanks, > Toni > I have upgraded my Ubuntu 9.04 to Ubuntu 9.10, and the problem shows up! So that bug is related to a difference between Ubuntu 9.04 and Ubuntu 9.10, but which one... -- Beno?t Minisini From ron at ...1740... Mon Nov 2 21:34:17 2009 From: ron at ...1740... (Ron) Date: Mon, 02 Nov 2009 21:34:17 +0100 Subject: [Gambas-user] SidePanel In-Reply-To: <200911022130.33545.gambas@...1...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> <4AEF0FBE.9040501@...2015...> <200911022130.33545.gambas@...1...> Message-ID: <4AEF4249.6070303@...1740...> Beno?t Minisini schreef: >> I have tried with different GTK+ styles with no luck. >> Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a >> try. Thanks, >> Toni >> >> > > I have upgraded my Ubuntu 9.04 to Ubuntu 9.10, and the problem shows up! So > that bug is related to a difference between Ubuntu 9.04 and Ubuntu 9.10, but > which one... > > Benoit, do you also have the same Database Manager view field contents bug as I posted earlier? Maybe this and that one share the same bug? Regards, Ron_2nd. From rohnny at ...1248... Mon Nov 2 22:17:47 2009 From: rohnny at ...1248... (R. Stormo) Date: Mon, 2 Nov 2009 13:17:47 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26126852.post@...1379...> References: <26126852.post@...1379...> Message-ID: <26157837.post@...1379...> Tried to compile many of the previous version of gambas without luck. So I had to attach the problem by the root. Why does my program not start and do hang.?? After some forward and backward I found that my program will start with gb.gtk and gb.gtk.ext instead of gb.qt and gb.qt.ext. Can't use gb.qtk it will not show stuff on form correctly but atleast the form do start. But NOT with gb.qt. Is there a know problem with gb.qt and ext.? I quite a large program so I hope not to work trough it. Hope for some answers. ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26157837.html Sent from the gambas-user mailing list archive at Nabble.com. From rohnny at ...1248... Mon Nov 2 22:21:58 2009 From: rohnny at ...1248... (R. Stormo) Date: Mon, 2 Nov 2009 13:21:58 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26126852.post@...1379...> References: <26126852.post@...1379...> Message-ID: <26157841.post@...1379...> Tried to compile many of the previous version of gambas without luck. So I had to attach the problem by the root. Why does my program not start and do hang.?? After some forward and backward I found that my program will start with gb.gtk and gb.gtk.ext instead of gb.qt and gb.qt.ext. Can't use gb.qtk it will not show stuff on form correctly but atleast the form do start. But NOT with gb.qt. Is there a know problem with gb.qt and ext.? I quite a large program so I hope not to work trough it. Hope for some answers. ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26157841.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Nov 2 22:24:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 22:24:02 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26157837.post@...1379...> References: <26126852.post@...1379...> <26157837.post@...1379...> Message-ID: <200911022224.02679.gambas@...1...> > Tried to compile many of the previous version of gambas without luck. So I > had to attach the problem by the root. Why does my program not start and do > hang.?? > After some forward and backward I found that my program will start with > gb.gtk and gb.gtk.ext instead of gb.qt and gb.qt.ext. > Can't use gb.qtk it will not show stuff on form correctly but atleast the > form do start. But NOT with gb.qt. > Is there a know problem with gb.qt and ext.? > > I quite a large program so I hope not to work trough it. > > Hope for some answers. > > ----- > Regards R. Stormo > > > My Gambas Community http://gambasforum.tk > Can you try the latest fix on 2.0 from trunk? Without that fix, sometimes the IDE cannot start the project and hangs, because of a problem in the debugger. -- Beno?t Minisini From gambas at ...1... Mon Nov 2 23:00:47 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 2 Nov 2009 23:00:47 +0100 Subject: [Gambas-user] Problems with GTK+ programs on recent distributions (Ubuntu 9.10 for example) Message-ID: <200911022300.47796.gambas@...1...> Hi, I found where the problem comes from: GTK+ 2.18 is not fully backward compatible with previous versions of GTK+. Good idea to do that without changing the major version number of the library... There is a workaround: define the environment variable GDK_NATIVE_WINDOWS, and GTK+ (GDK actually) will try its best to behave like the older version. More information at http://library.gnome.org/devel/gtk/2.18/gtk-migrating- ClientSideWindows.html. Now I will try to modify the gb.gtk component in the hope of making it work correctly again. But I'm not sure it will be possible, as the changes in the library are deep, and may not be well documented. If I cannot succeed, I will define GDK_NATIVE_WINDOWS automatically - You will lose the new "client-side window" feature of GTK+ 2.18, but your application will work again. Regards, -- Beno?t Minisini From steven at ...2097... Tue Nov 3 01:25:38 2009 From: steven at ...2097... (Steven James Drinnan) Date: Tue, 03 Nov 2009 08:25:38 +0800 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEF4249.6070303@...1740...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> <4AEF0FBE.9040501@...2015...> <200911022130.33545.gambas@...1...> <4AEF4249.6070303@...1740...> Message-ID: <1257207939.6531.1.camel@...2273...> I'll try with fedora beta witch has gnome 2.28 in it. To see if it relates to that. Steven On Mon, 2009-11-02 at 21:34 +0100, Ron wrote: > Beno?t Minisini schreef: > >> I have tried with different GTK+ styles with no luck. > >> Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a > >> try. Thanks, > >> Toni > >> > >> > > > > I have upgraded my Ubuntu 9.04 to Ubuntu 9.10, and the problem shows up! So > > that bug is related to a difference between Ubuntu 9.04 and Ubuntu 9.10, but > > which one... > > > > > > Benoit, > > do you also have the same Database Manager view field contents bug as I > posted earlier? > Maybe this and that one share the same bug? > > 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 -------------- 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 kevinfishburne at ...1887... Tue Nov 3 03:51:13 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Mon, 2 Nov 2009 18:51:13 -0800 (PST) Subject: [Gambas-user] code editor displays incorrect colors and character formatting Message-ID: <26159955.post@...1379...> I just recently compiled and installed GAMBAS 2.17.0 from the package provided here: http://prdownloads.sourceforge.net/gambas/gambas2-2.17.0.tar.bz2?download and while it appears to run and execute programs properly it displays the wrong colors and text formatting in the code editor. Some text is italicized, even mid-statement, and almost every character has a dot overlaying it. I don't know if something went wrong during compiling or what... I'm using Ubuntu 9.10 64-bit with all updates installed as of 11/02/09. Here's a screenshot: http://www.eightvirtues.com/misc/GAMBAS.png Any ideas about how I can correct this are greatly appreciated. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/code-editor-displays-incorrect-colors-and-character-formatting-tp26159955p26159955.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Tue Nov 3 07:56:59 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 03 Nov 2009 17:56:59 +1100 Subject: [Gambas-user] =?iso-8859-1?q?Bonjour=2C_question_sur_les_propri?= =?iso-8859-1?q?=E9t=E9s_de_colorchooser?= In-Reply-To: <4AEF1759.2050105@...1661...> References: <4AEF1759.2050105@...1661...> Message-ID: <1257231419.6374.0.camel@...2318...> On Mon, 2009-11-02 at 18:31 +0100, Eric Buhagiar wrote: > Bonjour, > > Apr?s des ?changes sur des forums, la question persiste. > > Peut on lire les propri?t?s Red,Green,Blue directement calcul?es par un > ColorChooser ? > Cette classe fait les conversions, j'ai essay? pas mal de m?thodes > mais je n'y arrive pas. > > Merci (et un grand bravo sinc?re pour le logiciel !) Ymledodd tu nesaf glyw dysgu, fo llawn nantlle myd e, golwg na iaith gynnydd ond. Cadw cyfyngwyd medi, manwl cau digonol tymor fe hwren. Hangen llunir dau neges cyd am na'r eu pwnc, deng olygu fy h fu, codi ?. Blentyn hon b glyw tu c, er gydol ? drwy na y weithio? Mlynyddoedd yn hyder, e dau arferion droir ee ddod b hwran gallai, dyfed. HTH From nospam.nospam.nospam at ...626... Tue Nov 3 08:01:25 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 03 Nov 2009 18:01:25 +1100 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEF1C34.1010107@...27...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> <4AEF0FBE.9040501@...2015...> <200911021818.07394.gambas@...1...> <4AEF1C34.1010107@...27...> Message-ID: <1257231685.6374.3.camel@...2318...> On Mon, 2009-11-02 at 18:51 +0100, Johny Provoost wrote: > Strange. Must be something in Ubuntu if no one else have it. It is Ubuntu. I'm running 9.10 x64 and your problem is reproducible here. From ron at ...1740... Tue Nov 3 09:04:13 2009 From: ron at ...1740... (Ron) Date: Tue, 03 Nov 2009 09:04:13 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken Message-ID: <4AEFE3FD.70305@...1740...> When using revision 2407 you cannot start the IDE anymore. $ gambas2 ERROR: #27: Cannot load component 'gb.qt': cannot find library file Going back a few revs and it works again. ~/install/gambas/2.0$ svn -r 2400 up U app/src/gambas2/.project U main/gbx/gbx_project.c U main/gbc/gbi.c U main/gbc/gbc_compile.c U main/share/gb_file_temp.h U main/share/gb_file_share.h U main/lib/debug/CDebug.c Updated to revision 2400. $ sudo make install Running: Ubuntu 9.10 32 Bits Gnome Gambas 2.17.0 Regards, Ron_2nd. From nospam.nospam.nospam at ...626... Tue Nov 3 13:16:20 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 03 Nov 2009 23:16:20 +1100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <4AEFE3FD.70305@...1740...> References: <4AEFE3FD.70305@...1740...> Message-ID: <1257250580.19264.5.camel@...2318...> On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: > When using revision 2407 you cannot start the IDE anymore. 2407, being? And of course, it's Gambas that's at fault, not you or your OS, yes? No such problem here, honey, peach, sugar. > ERROR: #27: Cannot load component 'gb.qt': cannot find library file DUH! From nospam.nospam.nospam at ...626... Tue Nov 3 13:19:39 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 03 Nov 2009 23:19:39 +1100 Subject: [Gambas-user] SidePanel In-Reply-To: <4AEF4249.6070303@...1740...> References: <4AEEF610.5090008@...2015...> <200911021632.32758.gambas@...1...> <4AEF0FBE.9040501@...2015...> <200911022130.33545.gambas@...1...> <4AEF4249.6070303@...1740...> Message-ID: <1257250779.19264.7.camel@...2318...> On Mon, 2009-11-02 at 21:34 +0100, Ron wrote: > Beno?t Minisini schreef: > >> I have tried with different GTK+ styles with no luck. > >> Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel a > >> try. Thanks, > >> Toni > >> > >> > > > > I have upgraded my Ubuntu 9.04 to Ubuntu 9.10, and the problem shows up! So > > that bug is related to a difference between Ubuntu 9.04 and Ubuntu 9.10, but > > which one... > > > > > > Benoit, > > do you also have the same Database Manager view field contents bug as I > posted earlier? > Maybe this and that one share the same bug? What leap of logic connects the SidePanel and a label object to the "Database Manager view field contents"? Just asking. From ron at ...1740... Tue Nov 3 13:43:00 2009 From: ron at ...1740... (Ron) Date: Tue, 03 Nov 2009 13:43:00 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <1257250580.19264.5.camel@...2318...> References: <4AEFE3FD.70305@...1740...> <1257250580.19264.5.camel@...2318...> Message-ID: <4AF02554.4020303@...1740...> nospam.nospam.nospam at ...626... wrote: > On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: > > >> When using revision 2407 you cannot start the IDE anymore. >> > > 2407, being? > > And of course, it's Gambas that's at fault, not you or your OS, yes? > > No such problem here, honey, peach, sugar. > > >> ERROR: #27: Cannot load component 'gb.qt': cannot find library file >> > > DUH! > > If you don't even know where 2407 stands for, I doubt that you are running the same Gambas version as the one I report to have a problem with. I'm only trying to help making Gambas even better than it already is, your objective is completely unclear to me. Regards, Ron_2nd. From gambas.fr at ...626... Tue Nov 3 14:09:35 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 3 Nov 2009 14:09:35 +0100 Subject: [Gambas-user] Re Bug on SVN Message-ID: <6324a42a0911030509n4c69e9d9g3af952bfa177ff8@...627...> Alway on kubuntu karmic 9.10: when i open a project with forms :i've the bug1.png dialog and when i validate it i return on welcome form . but if i try a new time, the ide is invisible but gbr3 is alway running The same thing append on terminal project, but on the second try the ide is shown and work quite fine (just the menu that deasappear after a little laps of time) at this point the ide is open and i can do a file>open project and i can open a project with forms but an error balloon appear (bug.png) :) From oceanosoftlapalma at ...626... Tue Nov 3 14:12:19 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 3 Nov 2009 13:12:19 +0000 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <4AF02554.4020303@...1740...> References: <4AEFE3FD.70305@...1740...> <1257250580.19264.5.camel@...2318...> <4AF02554.4020303@...1740...> Message-ID: Ron, I got the same problem with this version (2407) on ubuntu 9.10x86_64 Please "nospam", respect! 2009/11/3 Ron > nospam.nospam.nospam at ...626... wrote: > > On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: > > > > > >> When using revision 2407 you cannot start the IDE anymore. > >> > > > > 2407, being? > > > > And of course, it's Gambas that's at fault, not you or your OS, yes? > > > > No such problem here, honey, peach, sugar. > > > > > >> ERROR: #27: Cannot load component 'gb.qt': cannot find library file > >> > > > > DUH! > > > > > If you don't even know where 2407 stands for, I doubt that you are > running the same Gambas version as the one I report to have a problem with. > > I'm only trying to help making Gambas even better than it already is, > your objective is completely unclear to me. > > 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.fr at ...626... Tue Nov 3 14:15:16 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 3 Nov 2009 14:15:16 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <4AF02554.4020303@...1740...> References: <4AEFE3FD.70305@...1740...> <1257250580.19264.5.camel@...2318...> <4AF02554.4020303@...1740...> Message-ID: <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> ron... i've stop to compile qt3 libs since ... undred revision not you ? is benoit have chage the qt4 libname to qt ? 2009/11/3 Ron : > nospam.nospam.nospam at ...626... wrote: >> On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: >> >> >>> When using revision 2407 you cannot start the IDE anymore. >>> >> >> 2407, being? >> >> And of course, it's Gambas that's at fault, not you or your OS, yes? >> >> No such problem here, honey, peach, sugar. >> >> >>> ERROR: #27: Cannot load component 'gb.qt': cannot find library file >>> >> >> DUH! >> >> > If you don't even know where 2407 stands for, I doubt that you are > running the same Gambas version as the one I report to have a problem with. > > I'm only trying to help making Gambas even better than it already is, > your objective is completely unclear to me. > > 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 oceanosoftlapalma at ...626... Tue Nov 3 14:35:47 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Tue, 3 Nov 2009 13:35:47 +0000 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> References: <4AEFE3FD.70305@...1740...> <1257250580.19264.5.camel@...2318...> <4AF02554.4020303@...1740...> <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> Message-ID: I've try to compile gambas3 (from trunk folder) on today and works fine. I think there is something in ubuntu 9.10....but I don't know yet. I update recently to 9.10 from 9.04 and on before I compiled gambas2 whitout problems. 2009/11/3 Fabien Bodard > ron... > > i've stop to compile qt3 libs since ... undred revision > > not you ? > > is benoit have chage the qt4 libname to qt ? > > 2009/11/3 Ron : > > nospam.nospam.nospam at ...626... wrote: > >> On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: > >> > >> > >>> When using revision 2407 you cannot start the IDE anymore. > >>> > >> > >> 2407, being? > >> > >> And of course, it's Gambas that's at fault, not you or your OS, yes? > >> > >> No such problem here, honey, peach, sugar. > >> > >> > >>> ERROR: #27: Cannot load component 'gb.qt': cannot find library file > >>> > >> > >> DUH! > >> > >> > > If you don't even know where 2407 stands for, I doubt that you are > > running the same Gambas version as the one I report to have a problem > with. > > > > I'm only trying to help making Gambas even better than it already is, > > your objective is completely unclear to me. > > > > 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 > > > > > ------------------------------------------------------------------------------ > 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 nando at ...2137... Tue Nov 3 13:32:11 2009 From: nando at ...2137... (nando) Date: Tue, 03 Nov 2009 13:32:11 +0100 Subject: [Gambas-user] from ubuntu to archlinux Message-ID: <1257251531.25296.7.camel@...37...> Hello first of all, sorry about my english. My problem is, 5 days ago i switched from ubuntu 9.04 (kde) to archlinux (kde). I have a program to manage my company, wich worked ok. Now all the forms and controls in the program are in the wrong place. I mean, in full screen, in ubuntu i was able to see all the forms. Now it is like the size of the screen was changed (the resolution of the screen is the same in ubuntu and arch). For example, in the middle botom of the screen i had the save button. Now i can't see it. It's 7-10 cms down. This estrange behaviour, happend when in ubuntu 9.04, i switched to gnome. It din't matters as i prefer kde, and never mind my. But now... Can somebody give some help? Thanks in advance From gambas.fr at ...626... Tue Nov 3 15:17:44 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 3 Nov 2009 15:17:44 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: References: <4AEFE3FD.70305@...1740...> <1257250580.19264.5.camel@...2318...> <4AF02554.4020303@...1740...> <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> Message-ID: <6324a42a0911030617k2c85834bi885e2b1954da8d21@...627...> i've a fresh install... 2009/11/3 Ricardo D?az Mart?n : > I've try to compile gambas3 (from trunk folder) on today and works fine. > > I think there is something in ubuntu 9.10....but I don't know yet. I update > recently to 9.10 from 9.04 and on before I compiled gambas2 whitout > problems. > > > 2009/11/3 Fabien Bodard > >> ron... >> >> i've stop to compile qt3 libs since ... undred revision >> >> not you ? >> >> is benoit have chage the qt4 libname to qt ? >> >> 2009/11/3 Ron : >> > nospam.nospam.nospam at ...626... wrote: >> >> On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: >> >> >> >> >> >>> When using revision 2407 you cannot start the IDE anymore. >> >>> >> >> >> >> 2407, being? >> >> >> >> And of course, it's Gambas that's at fault, not you or your OS, yes? >> >> >> >> No such problem here, honey, peach, sugar. >> >> >> >> >> >>> ERROR: #27: Cannot load component 'gb.qt': cannot find library file >> >>> >> >> >> >> DUH! >> >> >> >> >> > If you don't even know where 2407 stands for, I doubt that you are >> > running the same Gambas version as the one I report to have a problem >> with. >> > >> > I'm only trying to help making Gambas even better than it already is, >> > your objective is completely unclear to me. >> > >> > 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 >> > >> >> >> ------------------------------------------------------------------------------ >> 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 ron at ...1740... Tue Nov 3 15:04:18 2009 From: ron at ...1740... (Ron) Date: Tue, 03 Nov 2009 15:04:18 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> References: <4AEFE3FD.70305@...1740...> <1257250580.19264.5.camel@...2318...> <4AF02554.4020303@...1740...> <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> Message-ID: <4AF03862.9030500@...1740...> Have been looking a bit closer. The bug is in rev 2401, it's related to the recent gambas install path changes. It looks in the wrong directory (strace gambas2) lstat64("/usr/local/bin/lib/gambas2/gb.qt.so", 0xbfebc470) = -1 ENOENT (No such file or directory) lstat64("/usr/local/bin/lib/gambas2/gb.qt.gambas", 0xbfebc470) = -1 ENOENT (No such file or directory) lstat64("/home/ron/.local/lib/gambas2/gb.qt.so", 0xbfebc470) = -1 ENOENT (No such file or directory) lstat64("/home/ron/.local/lib/gambas2/gb.qt.gambas", 0xbfebc470) = -1 ENOENT (No such file or directory) write(2, "ERROR: ", 7ERROR: ) = 7 write(2, "#27: ", 5#27: ) = 5 write(2, "Cannot load component 'gb.qt': c"..., 55Cannot load component 'gb.qt': cannot find library file) = 55 write(2, "\n", 1 ) = 1 There is no "/usr/local/bin/lib/gambas2/gb.qt.so" of course, all components are located here "/usr/local/lib/gambas2/" also the qt one. The qt component is just the first one it looks for. Regards, Ron_2nd. > ron... > > i've stop to compile qt3 libs since ... undred revision > > not you ? > > is benoit have chage the qt4 libname to qt ? > > 2009/11/3 Ron : > >> nospam.nospam.nospam at ...626... wrote: >> >>> On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: >>> >>> >>> >>>> When using revision 2407 you cannot start the IDE anymore. >>>> >>>> >>> 2407, being? >>> >>> And of course, it's Gambas that's at fault, not you or your OS, yes? >>> >>> No such problem here, honey, peach, sugar. >>> >>> >>> >>>> ERROR: #27: Cannot load component 'gb.qt': cannot find library file >>>> >>>> >>> DUH! >>> >>> >>> >> If you don't even know where 2407 stands for, I doubt that you are >> running the same Gambas version as the one I report to have a problem with. >> >> I'm only trying to help making Gambas even better than it already is, >> your objective is completely unclear to me. >> >> Regards, >> Ron_2nd. >> >> >> From rohnny at ...1248... Tue Nov 3 16:13:53 2009 From: rohnny at ...1248... (R. Stormo) Date: Tue, 3 Nov 2009 07:13:53 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26126852.post@...1379...> References: <26126852.post@...1379...> Message-ID: <26160194.post@...1379...> Been trying to figure out what's going wrong and by removing everything on my startform and include one piece at the time I have come up with this. The Fakturalist is a HBox. Also tried with other containers same result. ' This do crash in Ubuntu Karmic 'ME.Width = desktop.Width Here is how my screen is build up. f1 = NEW Fkunder f2 = NEW Fvarer f3 = NEW Ffakturalist(Fakturalist) f4 = NEW Ffaktura f5 = NEW Fproject f6 = NEW Ffakturalist ' We are going to handle all tool form events here Object.Attach(f4, ME, "f4") MyArea.Add(f1) MyArea.Add(f2) MyArea.Add(f4) MyArea.Add(f5) MyArea.Add(f6) Started the program in 2005 and it's my billing program so it's used everyday. Until I upgraded to karmic when it was released. So If do disable the me.width = desktop.width everything work as it should again. With the version that are in the package manager, 2.13 So maybe this is of somehelp for others or for benoit if it is a bug or not. ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26160194.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Tue Nov 3 16:41:56 2009 From: ron at ...1740... (Ron) Date: Tue, 03 Nov 2009 16:41:56 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <4AEB1275.8080708@...1740...> References: <26126852.post@...1379...> <4AEB1275.8080708@...1740...> Message-ID: <4AF04F44.5030209@...1740...> Ron wrote: > > 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. > > > ------------------------------------------------------------------------ I just wanted to get Gambas database manager to work with my current OS Ubuntu Karmic because I needed it badly, and I don't want to install phpmysqladmin stuff. So I loaded the gambas/2.0/app/src/gambas2-database-manager project in the IDE, and changed it's project components properties from the default gb.gui to use gb.qt and it never looked so good, and is worked so fine!!!!!!! All the bugs are gone too. I always thought the database manager looked a bit strange compared to the IDE, but now I know why, why does gb.qui gets it wrong and loads KDE stuff on Ubuntu (apparently) ? Gambas2 SVN 2.17.0 Ubuntu Karmic 32 Bits Kind Regards, Ron_2nd. -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot gb.gui.png Type: image/png Size: 39292 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot gb.qt.png Type: image/png Size: 64832 bytes Desc: not available URL: From doriano.blengino at ...1909... Tue Nov 3 17:14:17 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 03 Nov 2009 17:14:17 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <4AF04F44.5030209@...1740...> References: <26126852.post@...1379...> <4AEB1275.8080708@...1740...> <4AF04F44.5030209@...1740...> Message-ID: <4AF056D9.9060805@...1909...> Ron ha scritto: > Ron wrote: >> >> 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. >> >> >> ------------------------------------------------------------------------ > > I just wanted to get Gambas database manager to work with my current > OS Ubuntu Karmic because I needed it badly, and I don't want to > install phpmysqladmin stuff. > > So I loaded the gambas/2.0/app/src/gambas2-database-manager project > in the IDE, and changed it's project components properties from the > default gb.gui to use gb.qt and it never looked so good, and is > worked so fine!!!!!!! > > All the bugs are gone too. > > I always thought the database manager looked a bit strange compared to > the IDE, but now I know why, why does gb.qui gets it wrong and loads > KDE stuff on Ubuntu (apparently) ? As far as I know, gb.gui loads gb.qt if running under KDE; else gb.gtk. So on Ubuntu it should use GTK instead of QT (note that this is the contrary of what you say). Now the bugs you noticed are gone because you forced the app to use gb.qt, which has less bugs than gb.gtk. I think that gambas-database-manager, being a normal app, correctly uses gb.gui. The gambas IDE should do it too, but it can not because GTK (or gb.gtk) lacks some necessary controls found in QT (or gb.qt). This gb.gui auto-switching mechanism is nice - but it can lead to problems... I wonder about how many people like it. Regards, Doriano From 12ukwn at ...626... Tue Nov 3 17:37:04 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 03 Nov 2009 17:37:04 +0100 Subject: [Gambas-user] module or class? Message-ID: <4AF05C30.80309@...626...> Hi all, I don't understand very well the difference(s) between these two kinds; doc says if I put a procedure in a module I can call it directly, but in fact I can't: I must call it with its prefix, such as in a class: module.procedure So what's really the difference? JY -- From jussi.lahtinen at ...626... Tue Nov 3 17:39:10 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 3 Nov 2009 18:39:10 +0200 Subject: [Gambas-user] from ubuntu to archlinux In-Reply-To: <1257251531.25296.7.camel@...37...> References: <1257251531.25296.7.camel@...37...> Message-ID: <384d3900911030839x19255a13pcc28231238872146@...627...> What is your Gambas version? 2.? And did it change when your OS change? I had similar problem with earlier Gambas3 revision, and I did fix it manually. Do you forms have Scaled property on? If so forms are scaled with desktop font size. Jussi On Tue, Nov 3, 2009 at 14:32, nando wrote: > Hello > first of all, sorry about my english. > > My problem is, 5 days ago i switched from ubuntu 9.04 (kde) to archlinux > (kde). I have a program to manage my company, wich worked ok. > Now all the forms and controls in the program are in the wrong place. I > mean, in full screen, in ubuntu i was able to see all the forms. Now it > is like the size of the screen was changed (the resolution of the screen > is the same in ubuntu and arch). > For example, in the middle botom of the screen i had the save button. > Now i can't see it. It's 7-10 cms down. > > This estrange behaviour, happend when in ubuntu 9.04, i switched to > gnome. It din't matters as i prefer kde, and never mind my. But now... > > Can somebody give some help? Thanks in advance > > > ------------------------------------------------------------------------------ > 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... Tue Nov 3 17:42:26 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 3 Nov 2009 18:42:26 +0200 Subject: [Gambas-user] Re Bug on SVN In-Reply-To: <6324a42a0911030509n4c69e9d9g3af952bfa177ff8@...627...> References: <6324a42a0911030509n4c69e9d9g3af952bfa177ff8@...627...> Message-ID: <384d3900911030842u108ba859q401d975c4aecc435@...627...> Seems that you have forgot attachments! Jussi On Tue, Nov 3, 2009 at 15:09, Fabien Bodard wrote: > Alway on kubuntu karmic ?9.10: > > when i open a project with forms :i've the bug1.png dialog > > and when i validate it i return on welcome form . but if i try a new > time, ?the ide is invisible but gbr3 is alway running > > The same thing append on terminal project, but on the second try the > ide is shown and work quite fine (just the menu that deasappear after > a little laps of time) > > at this point the ide is open and i can do a file>open project > > and i can open a project with forms but an error balloon appear (bug.png) > > > > :) > > ------------------------------------------------------------------------------ > 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... Tue Nov 3 17:44:33 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 3 Nov 2009 18:44:33 +0200 Subject: [Gambas-user] Re Bug on SVN In-Reply-To: <384d3900911030842u108ba859q401d975c4aecc435@...627...> References: <6324a42a0911030509n4c69e9d9g3af952bfa177ff8@...627...> <384d3900911030842u108ba859q401d975c4aecc435@...627...> Message-ID: <384d3900911030844q2985e055sb852ed3361e5ed84@...627...> If you use gmail, I highly recommend to turn on "Forgotten Attachment Detector". Works very well! Jussi On Tue, Nov 3, 2009 at 18:42, Jussi Lahtinen wrote: > Seems that you have forgot attachments! > > Jussi > > > > On Tue, Nov 3, 2009 at 15:09, Fabien Bodard wrote: >> Alway on kubuntu karmic ?9.10: >> >> when i open a project with forms :i've the bug1.png dialog >> >> and when i validate it i return on welcome form . but if i try a new >> time, ?the ide is invisible but gbr3 is alway running >> >> The same thing append on terminal project, but on the second try the >> ide is shown and work quite fine (just the menu that deasappear after >> a little laps of time) >> >> at this point the ide is open and i can do a file>open project >> >> and i can open a project with forms but an error balloon appear (bug.png) >> >> >> >> :) >> >> ------------------------------------------------------------------------------ >> 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 nando at ...2137... Tue Nov 3 18:36:31 2009 From: nando at ...2137... (nando) Date: Tue, 03 Nov 2009 18:36:31 +0100 Subject: [Gambas-user] from ubuntu to archlinux In-Reply-To: <384d3900911030839x19255a13pcc28231238872146@...627...> References: <1257251531.25296.7.camel@...37...> <384d3900911030839x19255a13pcc28231238872146@...627...> Message-ID: <1257269791.1440.1.camel@...37...> Hi, i was just trying to fix it, and it is something with qt and gtk components (i think) Thank you El mar, 03-11-2009 a las 18:39 +0200, Jussi Lahtinen escribi?: > What is your Gambas version? 2.? > And did it change when your OS change? > I had similar problem with earlier Gambas3 revision, and I did fix it manually. > > Do you forms have Scaled property on? > If so forms are scaled with desktop font size. > > Jussi > > > > On Tue, Nov 3, 2009 at 14:32, nando wrote: > > Hello > > first of all, sorry about my english. > > > > My problem is, 5 days ago i switched from ubuntu 9.04 (kde) to archlinux > > (kde). I have a program to manage my company, wich worked ok. > > Now all the forms and controls in the program are in the wrong place. I > > mean, in full screen, in ubuntu i was able to see all the forms. Now it > > is like the size of the screen was changed (the resolution of the screen > > is the same in ubuntu and arch). > > For example, in the middle botom of the screen i had the save button. > > Now i can't see it. It's 7-10 cms down. > > > > This estrange behaviour, happend when in ubuntu 9.04, i switched to > > gnome. It din't matters as i prefer kde, and never mind my. But now... > > > > Can somebody give some help? Thanks in advance > > > > > > ------------------------------------------------------------------------------ > > 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... Tue Nov 3 18:47:02 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 3 Nov 2009 18:47:02 +0100 Subject: [Gambas-user] module or class? In-Reply-To: <4AF05C30.80309@...626...> References: <4AF05C30.80309@...626...> Message-ID: <6324a42a0911030947v154a4628s13550d0cb1692f07@...627...> the difference is simple a classe must be instanciate before to be called dim hClass as new MyClass hClass.Procedure ------ A module is static : Module.Proc But in gambas you can call class proc like with a module if this class is static 'Gambas class CREATE STATIC Public Sub MyProc End ----- the call: MyClass.MyProc So generally we use Module for generic Procedure, and Class for object 'Class CMen Public Sub ShakeHand() End Public Sub Walk() End so : Dim Fabien as new CMen Fabien.ShakeHand Fabien.Walk Look about the object oriented progammation POO 2009/11/3 Jean-Yves F. Barbier <12ukwn at ...626...>: > Hi all, > > I don't understand very well the difference(s) between these two > kinds; doc says if I put a procedure in a module I can call it > directly, but in fact I can't: I must call it with its prefix, > such as in a class: module.procedure > > So what's really the difference? > > JY > -- > > ------------------------------------------------------------------------------ > 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 12ukwn at ...626... Tue Nov 3 19:22:00 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 03 Nov 2009 19:22:00 +0100 Subject: [Gambas-user] module or class? In-Reply-To: <6324a42a0911030947v154a4628s13550d0cb1692f07@...627...> References: <4AF05C30.80309@...626...> <6324a42a0911030947v154a4628s13550d0cb1692f07@...627...> Message-ID: <4AF074C8.9000406@...626...> Fabien Bodard a ?crit : > the difference is simple > > a classe must be instanciate before to be called > > > dim hClass as new MyClass > > hClass.Procedure > > > > ------ > > A module is static : > > Module.Proc > > > > But in gambas you can call class proc like with a module if this class is static > > 'Gambas class > > CREATE STATIC > > Public Sub MyProc > > End > > > ----- > > the call: > > MyClass.MyProc > > > > So generally we use Module for generic Procedure, and Class for object > > > 'Class YesMen > > > > Public Sub ShakeHand() > End > > Public Sub Walk() > End > > > > so : > > Dim Fabien as new YesMen > > Fabien.ShakeHand > Fabien.Walk > > Look about the object oriented progammation > > POO Ok, thanks Fabien, this clear JY -- Troubled day for virgins over 16 who are beautiful and wealthy and live in eucalyptus trees. From 12ukwn at ...626... Tue Nov 3 19:41:14 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 03 Nov 2009 19:41:14 +0100 Subject: [Gambas-user] DataView bug? Message-ID: <4AF0794A.1090402@...626...> Gambas 2.17 / Debian sid package Postgresql 8.4.1 gb.qt ============================ Hi, I made a small test with a DataView; sorting is working for all columns except for the primary key one: it _only_ restore natural order (1, 2, 3, ..) but don't display a reverse order with a second click. BTW the "Mode" property returns some' like "unobtainable help" :( JY -- * PerlGeek is really a space alien * Knghtktty believes PerlGeek From gambas at ...1... Tue Nov 3 19:47:56 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 Nov 2009 19:47:56 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <4AF04F44.5030209@...1740...> References: <26126852.post@...1379...> <4AEB1275.8080708@...1740...> <4AF04F44.5030209@...1740...> Message-ID: <200911031947.56805.gambas@...1...> > > I just wanted to get Gambas database manager to work with my current OS > Ubuntu Karmic because I needed it badly, and I don't want to install > phpmysqladmin stuff. > > So I loaded the gambas/2.0/app/src/gambas2-database-manager project in > the IDE, and changed it's project components properties from the default > gb.gui to use gb.qt and it never looked so good, and is worked so > fine!!!!!!! > > All the bugs are gone too. > > I always thought the database manager looked a bit strange compared to > the IDE, but now I know why, why does gb.qui gets it wrong and loads KDE > stuff on Ubuntu (apparently) ? > > Gambas2 > SVN 2.17.0 > Ubuntu Karmic 32 Bits > > Kind Regards, > Ron_2nd. > Have you read my post "Problems with GTK+ on recent distributions (Ubuntu 9.10 for example)" ? You will have the explanation there. And thanks again to GTK+ 2.18 for their non-compatible deep change in GDK! Regards, -- Beno?t Minisini From gambas at ...1... Tue Nov 3 19:51:52 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 Nov 2009 19:51:52 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <1257250580.19264.5.camel@...2318...> References: <4AEFE3FD.70305@...1740...> <1257250580.19264.5.camel@...2318...> Message-ID: <200911031951.52569.gambas@...1...> > On Tue, 2009-11-03 at 09:04 +0100, Ron wrote: > > When using revision 2407 you cannot start the IDE anymore. > > 2407, being? > > And of course, it's Gambas that's at fault, not you or your OS, yes? > > No such problem here, honey, peach, sugar. > > > ERROR: #27: Cannot load component 'gb.qt': cannot find library file > > DUH! > Please don't be mocking or ironical for no reason. Maybe you are just jocking, I don't know, as it is a mailing-list, not a true talk. But you will upset people stupidly! Regards, -- Beno?t Minisini From gambas at ...1... Tue Nov 3 19:58:17 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 Nov 2009 19:58:17 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <4AF03862.9030500@...1740...> References: <4AEFE3FD.70305@...1740...> <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> <4AF03862.9030500@...1740...> Message-ID: <200911031958.17497.gambas@...1...> > Have been looking a bit closer. > > The bug is in rev 2401, it's related to the recent gambas install path > changes. > > It looks in the wrong directory (strace gambas2) > > lstat64("/usr/local/bin/lib/gambas2/gb.qt.so", 0xbfebc470) = -1 ENOENT > (No such file or directory) > lstat64("/usr/local/bin/lib/gambas2/gb.qt.gambas", 0xbfebc470) = -1 > ENOENT (No such file or directory) > lstat64("/home/ron/.local/lib/gambas2/gb.qt.so", 0xbfebc470) = -1 ENOENT > (No such file or directory) > lstat64("/home/ron/.local/lib/gambas2/gb.qt.gambas", 0xbfebc470) = -1 > ENOENT (No such file or directory) > write(2, "ERROR: ", 7ERROR: ) = 7 > write(2, "#27: ", 5#27: ) = 5 > write(2, "Cannot load component 'gb.qt': c"..., 55Cannot load component > 'gb.qt': cannot find library file) = 55 > write(2, "\n", 1 > ) = 1 > > There is no "/usr/local/bin/lib/gambas2/gb.qt.so" of course, all > components are located here "/usr/local/lib/gambas2/" also the qt one. > > The qt component is just the first one it looks for. > > Regards, > Ron_2nd. > It should be fixed in revision #2408. Only people installing Gambas locally like you got the bug. Regards, -- Beno?t Minisini From gambas at ...1... Tue Nov 3 19:59:26 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 Nov 2009 19:59:26 +0100 Subject: [Gambas-user] code editor displays incorrect colors and character formatting In-Reply-To: <26159955.post@...1379...> References: <26159955.post@...1379...> Message-ID: <200911031959.26223.gambas@...1...> > I just recently compiled and installed GAMBAS 2.17.0 from the package > provided here: > > http://prdownloads.sourceforge.net/gambas/gambas2-2.17.0.tar.bz2?download > > and while it appears to run and execute programs properly it displays the > wrong colors and text formatting in the code editor. Some text is > italicized, even mid-statement, and almost every character has a dot > overlaying it. I don't know if something went wrong during compiling or > what... I'm using Ubuntu 9.10 64-bit with all updates installed as of > 11/02/09. Here's a screenshot: > > http://www.eightvirtues.com/misc/GAMBAS.png > > Any ideas about how I can correct this are greatly appreciated. > > ----- > Kevin Fishburne, Eight Virtues > www: http://sales.eightvirtues.com http://sales.eightvirtues.com > e-mail: mailto:sales at ...1887... sales at ...1887... > phone: (770) 853-6271 > Wow. Completely weird. I will recompile Gambas 2 on my now updated 64 bits Ubuntu 9.10, to see if I get the same problem. Regards, -- Beno?t Minisini From 12ukwn at ...626... Tue Nov 3 20:14:11 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 03 Nov 2009 20:14:11 +0100 Subject: [Gambas-user] synchronize 2 DataSource Message-ID: <4AF08103.6040706@...626...> Hi, is it possible to synchronize 2 DataSource onto 2 different forms?: I want A to only have a tabular display (such as DataView), and B to be the create/modif/delete one (w/ DataControls); so I want B to display the selected line in A at opening. -- Academicians care, that's who. From gambas at ...1... Tue Nov 3 20:22:55 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 Nov 2009 20:22:55 +0100 Subject: [Gambas-user] synchronize 2 DataSource In-Reply-To: <4AF08103.6040706@...626...> References: <4AF08103.6040706@...626...> Message-ID: <200911032022.55356.gambas@...1...> > Hi, > > is it possible to synchronize 2 DataSource onto 2 different forms?: > I want A to only have a tabular display (such as DataView), and B > to be the create/modif/delete one (w/ DataControls); so I want B > to display the selected line in A at opening. > Not automatically, but why not using only one DataSource then? -- Beno?t Minisini From gambas at ...1... Tue Nov 3 20:38:25 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 3 Nov 2009 20:38:25 +0100 Subject: [Gambas-user] DataView bug? In-Reply-To: <4AF0794A.1090402@...626...> References: <4AF0794A.1090402@...626...> Message-ID: <200911032038.25617.gambas@...1...> > Gambas 2.17 / Debian sid package > Postgresql 8.4.1 > gb.qt > ============================ > Hi, > > I made a small test with a DataView; sorting is working for > all columns except for the primary key one: it _only_ > restore natural order (1, 2, 3, ..) but don't display a > reverse order with a second click. Not really a bug, but a missing feature. > > BTW the "Mode" property returns some' like "unobtainable help" :( > > JY > This is the same Mode property as GridView, ListView... Multiple selection is just not allowed at the moment. Regards, -- Beno?t Minisini From 12ukwn at ...626... Tue Nov 3 20:39:11 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 03 Nov 2009 20:39:11 +0100 Subject: [Gambas-user] synchronize 2 DataSource In-Reply-To: <200911032022.55356.gambas@...1...> References: <4AF08103.6040706@...626...> <200911032022.55356.gambas@...1...> Message-ID: <4AF086DF.5000301@...626...> Beno?t Minisini a ?crit : >> Hi, >> >> is it possible to synchronize 2 DataSource onto 2 different forms?: >> I want A to only have a tabular display (such as DataView), and B >> to be the create/modif/delete one (w/ DataControls); so I want B >> to display the selected line in A at opening. >> > > Not automatically, but why not using only one DataSource then? Because my input form's quite huge: if I put it under the DataView it'll take half the screen heigth (@ least!), so I want to totally separate browse and input/mod/del. -- // Minor lesson: don't fuck about with something you don't fully understand -- the dosdoom source code From 12ukwn at ...626... Tue Nov 3 20:43:26 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 03 Nov 2009 20:43:26 +0100 Subject: [Gambas-user] DataView bug? In-Reply-To: <200911032038.25617.gambas@...1...> References: <4AF0794A.1090402@...626...> <200911032038.25617.gambas@...1...> Message-ID: <4AF087DE.5010401@...626...> Beno?t Minisini a ?crit : >> Gambas 2.17 / Debian sid package >> Postgresql 8.4.1 >> gb.qt >> ============================ >> Hi, >> >> I made a small test with a DataView; sorting is working for >> all columns except for the primary key one: it _only_ >> restore natural order (1, 2, 3, ..) but don't display a >> reverse order with a second click. > > Not really a bug, but a missing feature. This is really missing: with current state you can't use the primary as a doc's reference (ie: an invoice number) if you have many thousand lines >> BTW the "Mode" property returns some' like "unobtainable help" :( >> >> JY >> > > This is the same Mode property as GridView, ListView... Multiple selection is > just not allowed at the moment. Ok, thanks -- From rterry at ...1946... Tue Nov 3 21:56:45 2009 From: rterry at ...1946... (richard terry) Date: Wed, 4 Nov 2009 07:56:45 +1100 Subject: [Gambas-user] from ubuntu to archlinux In-Reply-To: <1257251531.25296.7.camel@...37...> References: <1257251531.25296.7.camel@...37...> Message-ID: <200911040756.45982.rterry@...1946...> On Tuesday 03 November 2009 23:32:11 nando wrote: > Hello > first of all, sorry about my english. > > My problem is, 5 days ago i switched from ubuntu 9.04 (kde) to archlinux wise move, great distro - are you using gambas3? if so I have a PKGBUILD you can use. > (kde). I have a program to manage my company, wich worked ok. > Now all the forms and controls in the program are in the wrong place. I > mean, in full screen, in ubuntu i was able to see all the forms. Now it > is like the size of the screen was changed (the resolution of the screen > is the same in ubuntu and arch). > For example, in the middle botom of the screen i had the save button. > Now i can't see it. It's 7-10 cms down. As I work in arch I'll take a look at you forms if you mail me your project. Regards Richard > > This estrange behaviour, happend when in ubuntu 9.04, i switched to > gnome. It din't matters as i prefer kde, and never mind my. But now... > > Can somebody give some help? Thanks in advance > > > --------------------------------------------------------------------------- > --- 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 zachsmith022 at ...626... Tue Nov 3 22:29:57 2009 From: zachsmith022 at ...626... (zachsmith022 at ...626...) Date: Tue, 03 Nov 2009 15:29:57 -0600 Subject: [Gambas-user] from ubuntu to archlinux In-Reply-To: <200911040756.45982.rterry@...1946...> References: <1257251531.25296.7.camel@...37...> <200911040756.45982.rterry@...1946...> Message-ID: <4AF0A0D5.5050302@...626...> richard terry wrote: > On Tuesday 03 November 2009 23:32:11 nando wrote: > >> Hello >> first of all, sorry about my english. >> >> My problem is, 5 days ago i switched from ubuntu 9.04 (kde) to archlinux >> > > wise move, great distro - are you using gambas3? if so I have a PKGBUILD you > can use. > gambas3 in now in the AUR. http://aur.archlinux.org/packages.php?ID=31366 From steven at ...2097... Wed Nov 4 02:37:52 2009 From: steven at ...2097... (Steven James Drinnan) Date: Wed, 04 Nov 2009 09:37:52 +0800 Subject: [Gambas-user] Misc Bugs: GTK Message-ID: <1257298692.4024.8.camel@...2273...> I have noticed these little annoying problems. Again it is with the GTK component and how it inherits settings. 1. Textboxes, comboboxes ... - they correctly do not inherit the background color but they incorrectly inherit the foreground colour. I.E text boxes and any other input boxes need not inherit foreground and background colours. 2. Frames - Do inherit background or foreground colours from their parent. In a nut shell. I think that ... All input controls need not inherit foreground and background colours. Containers need to inherit foreground and background colours. All controls should inherit the font and size from the parent. Again, thanks for your hard work. 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 nospam.nospam.nospam at ...626... Wed Nov 4 06:36:09 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 04 Nov 2009 16:36:09 +1100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <200911031958.17497.gambas@...1...> References: <4AEFE3FD.70305@...1740...> <6324a42a0911030515m6acb06betc8b094c90646aef7@...627...> <4AF03862.9030500@...1740...> <200911031958.17497.gambas@...1...> Message-ID: <1257312969.3017.1.camel@...2318...> On Tue, 2009-11-03 at 19:58 +0100, Beno?t Minisini wrote: > It should be fixed in revision #2408. Only people installing Gambas locally > like you got the bug. Where is the revision number to be found? From rohnny at ...1248... Wed Nov 4 07:45:41 2009 From: rohnny at ...1248... (R. Stormo) Date: Tue, 3 Nov 2009 22:45:41 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <200911022224.02679.gambas@...1...> References: <26126852.post@...1379...> <26157837.post@...1379...> <200911022224.02679.gambas@...1...> Message-ID: <26191743.post@...1379...> Beno?t Minisini wrote: > > > > Can you try the latest fix on 2.0 from trunk? Without that fix, sometimes > the > IDE cannot start the project and hangs, because of a problem in the > debugger. > > -- > Beno?t Minisini > > > I have now tried it from trunk. The problem is still there. It's not the me.width = desktop.width it self. The desktop.width return 1024 as my screen is. The problem is with any values I insert to me.width. If I try to make this as startup form, without attach it to a form everything are ok. The problem is in PRIVATE MyArea AS NEW Workspace(ME) If I disable the MyArea.Add(f6) that is my form with the me.width code in it do work also. But then the form are not in the tabbed area in my form. It do show in the HBOX so that is not the problem afterall. Hope this make sense ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26191743.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Wed Nov 4 08:53:15 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 4 Nov 2009 07:53:15 +0000 Subject: [Gambas-user] from ubuntu to archlinux In-Reply-To: <4AF0A0D5.5050302@...626...> References: <1257251531.25296.7.camel@...37...> <200911040756.45982.rterry@...1946...> <4AF0A0D5.5050302@...626...> Message-ID: Maybe you can try adding a file .Xresources with Xft.dpi: 90 or less inside home's folder of each user. 2009/11/3 > richard terry wrote: > > On Tuesday 03 November 2009 23:32:11 nando wrote: > > > >> Hello > >> first of all, sorry about my english. > >> > >> My problem is, 5 days ago i switched from ubuntu 9.04 (kde) to archlinux > >> > > > > wise move, great distro - are you using gambas3? if so I have a PKGBUILD > you > > can use. > > > gambas3 in now in the AUR. > http://aur.archlinux.org/packages.php?ID=31366 > > > ------------------------------------------------------------------------------ > 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... Wed Nov 4 10:18:02 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Wed, 4 Nov 2009 10:18:02 +0100 Subject: [Gambas-user] Video Application DirectorsDesk performance problems Message-ID: Hallo List, the first alpha of my program RegiePult ( DirectorsDesk) is available. Its a tool to record live video from different cams / media player. The biggest problem I have is the performance and I need serious hints how to achieve higher framerates. Currently I use PictureBoxes and do a lot of image conversion. If anybody of you wants to take a view at the sources or wants to test the program please contact me. I'm highly interested in hints what methods to access the frames of the videos are the fastest. e.g. DrawingArea instead of PictureBox. Thank you for any performance hints. regards Hartmut From bill-lancaster at ...2231... Wed Nov 4 10:34:54 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 4 Nov 2009 01:34:54 -0800 (PST) Subject: [Gambas-user] Whats wrong with my SQLITE3 expression? Message-ID: <26193279.post@...1379...> This is my first attempt at using INNER JOIN. "SELECT properties.*, tenants.* FROM properties INNER JOIN tenants ON properties.PropertyID = tenants.PropertyID" Can anyone advise? -- View this message in context: http://old.nabble.com/Whats-wrong-with-my-SQLITE3-expression--tp26193279p26193279.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Wed Nov 4 10:48:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 10:48:08 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <1257312969.3017.1.camel@...2318...> References: <4AEFE3FD.70305@...1740...> <200911031958.17497.gambas@...1...> <1257312969.3017.1.camel@...2318...> Message-ID: <200911041048.08480.gambas@...1...> > On Tue, 2009-11-03 at 19:58 +0100, Beno?t Minisini wrote: > > It should be fixed in revision #2408. Only people installing Gambas > > locally like you got the bug. > > Where is the revision number to be found? > When you do a "svn update", the revision number is printed. Otherwise there is the gambas-devel-svn mailing-list. If you subscribe to it, you will receive each svn commit log. Regards, -- Beno?t Minisini From gambas at ...1... Wed Nov 4 10:50:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 10:50:41 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26191743.post@...1379...> References: <26126852.post@...1379...> <200911022224.02679.gambas@...1...> <26191743.post@...1379...> Message-ID: <200911041050.41934.gambas@...1...> > Beno?t Minisini wrote: > > Can you try the latest fix on 2.0 from trunk? Without that fix, sometimes > > the > > IDE cannot start the project and hangs, because of a problem in the > > debugger. > > I have now tried it from trunk. The problem is still there. It's not the > me.width = desktop.width it self. > The desktop.width return 1024 as my screen is. > > The problem is with any values I insert to me.width. > If I try to make this as startup form, without attach it to a form > everything are ok. > > The problem is in > PRIVATE MyArea AS NEW Workspace(ME) > > If I disable the MyArea.Add(f6) that is my form with the me.width code in > it do > work also. But then the form are not in the tabbed area in my form. > It do show in the HBOX so that is not the problem afterall. > > Hope this make sense > Do you use the very latest revision (2409)? -- Beno?t Minisini From oceanosoftlapalma at ...626... Wed Nov 4 11:21:30 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 4 Nov 2009 10:21:30 +0000 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <200911041048.08480.gambas@...1...> References: <4AEFE3FD.70305@...1740...> <200911031958.17497.gambas@...1...> <1257312969.3017.1.camel@...2318...> <200911041048.08480.gambas@...1...> Message-ID: I got the same bug in #2048 installing in ubuntu 9.10x86_64 If you after intall finish do this (thanks to Ron review): sudo ln -s /usr/local/lib/gambas2 /usr/local/lib sudo chmod 755 -R /usr/local/lib/gambas2 gambas2 works again Regards 2009/11/4 Beno?t Minisini > > On Tue, 2009-11-03 at 19:58 +0100, Beno?t Minisini wrote: > > > It should be fixed in revision #2408. Only people installing Gambas > > > locally like you got the bug. > > > > Where is the revision number to be found? > > > > When you do a "svn update", the revision number is printed. > > Otherwise there is the gambas-devel-svn mailing-list. If you subscribe to > it, > you will receive each svn commit log. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Nov 4 11:29:27 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 11:29:27 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: References: <4AEFE3FD.70305@...1740...> <200911041048.08480.gambas@...1...> Message-ID: <200911041129.27271.gambas@...1...> > I got the same bug in #2048 installing in ubuntu 9.10x86_64 > > If you after intall finish do this (thanks to Ron review): > > sudo ln -s /usr/local/lib/gambas2 /usr/local/lib > sudo chmod 755 -R /usr/local/lib/gambas2 > > gambas2 works again > > Regards > That is not the same thing. Ron installed Gambas locally inside its home directory. By compiling the revison #2048 on the same system as yours (Ubuntu 9.10 x86_64), I don't have any problem. Can you check whay you did exactly to compile gambas 2? Regards, -- Beno?t Minisini From mohareve at ...626... Wed Nov 4 11:41:07 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 4 Nov 2009 11:41:07 +0100 Subject: [Gambas-user] Breaking processes Message-ID: How can I stop the execution of a loop which includes shell command for copying files? Example: PUBLIC SUB FCopy() DIM i AS Integer DIM filepaths AS String[] ........................' the array filepaths is filled with contents FOR i=0 To filepaths.Count-1 SHELL "cp -f " & filepaths[i] & " /home/destination" NEXT END I'd like to add a Cancel button which would break the loop.Thanks! From bill-lancaster at ...2231... Wed Nov 4 11:48:41 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Wed, 4 Nov 2009 02:48:41 -0800 (PST) Subject: [Gambas-user] Whats wrong with my SQLITE3 expression? In-Reply-To: <26193279.post@...1379...> References: <26193279.post@...1379...> Message-ID: <26194183.post@...1379...> I just tried the same syntax with two new tables each with the same primary key, INNER JOIN worked OK. In my original post, properties.PropertyID is a primary key (integer) and tenants.PropertyID is integer but not a primary key. This seems to the problem. Any further ideas? -- View this message in context: http://old.nabble.com/Whats-wrong-with-my-SQLITE3-expression--tp26193279p26194183.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Wed Nov 4 12:24:22 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 4 Nov 2009 11:24:22 +0000 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <200911041129.27271.gambas@...1...> References: <4AEFE3FD.70305@...1740...> <200911041048.08480.gambas@...1...> <200911041129.27271.gambas@...1...> Message-ID: Excuse me Benoit, sometimes I read too much fast... I haven't seem Ron write about installation at his home directory Recently I update a producction server from ubuntu 9.04x86_64 to 9.10x86_64. After this, I got a problem with all gambas app in this server. The lostfocus event doesn't raise the lostfocus() sub. I don't understand why. At this point I tryed to compile the last gambas2 version fron the svn repository and I can't exec gambas2 (ERROR: #27: Cannot load component 'gb.qt': cannot find library file) The way to compile was: $ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 $ cd 2.0 $ ./reconf-all $ ./configure -C $ make $ sudo make install all works fine but when you try to run gambas2 you got ERROR: #27: Cannot load component 'gb.qt': cannot find library file after this it was neccesary to do this: sudo ln -s /usr/local/lib/gambas2 /usr/local/lib sudo chmod 755 -R /usr/local/lib/gambas2 and sudo chmod 755 -R /usr/local/share/gambas2 an all works again with no problems. I also installed gambas3 from svn in this sever and works out of box (normal compiling) In the next days I'm going to replace this server and I'm going to do an ubuntu 9.10 clean installation. I promise to write about this installation in order to know if I get the same problem. Regards 2009/11/4 Beno?t Minisini > > I got the same bug in #2048 installing in ubuntu 9.10x86_64 > > > > If you after intall finish do this (thanks to Ron review): > > > > sudo ln -s /usr/local/lib/gambas2 /usr/local/lib > > sudo chmod 755 -R /usr/local/lib/gambas2 > > > > gambas2 works again > > > > Regards > > > > That is not the same thing. Ron installed Gambas locally inside its home > directory. > > By compiling the revison #2048 on the same system as yours (Ubuntu 9.10 > x86_64), I don't have any problem. Can you check whay you did exactly to > compile gambas 2? > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Nov 4 12:41:54 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 12:41:54 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: References: <4AEFE3FD.70305@...1740...> <200911041129.27271.gambas@...1...> Message-ID: <200911041241.54472.gambas@...1...> > Excuse me Benoit, sometimes I read too much fast... I haven't seem Ron > write about installation at his home directory > > Recently I update a producction server from ubuntu 9.04x86_64 to > 9.10x86_64. > > After this, I got a problem with all gambas app in this server. The > lostfocus event doesn't raise the lostfocus() sub. I don't understand why. > At this point I tryed to compile the last gambas2 version fron the svn > repository and I can't exec gambas2 (ERROR: #27: Cannot load component > 'gb.qt': cannot find library file) > > The way to compile was: > > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 $ cd > 2.0 > $ ./reconf-all > $ ./configure -C > $ make > $ sudo make install > > all works fine but when you try to run gambas2 you got ERROR: #27: Cannot > load component 'gb.qt': cannot find library file > > after this it was neccesary to do this: > > sudo ln -s /usr/local/lib/gambas2 /usr/local/lib > sudo chmod 755 -R /usr/local/lib/gambas2 > > and > > sudo chmod 755 -R /usr/local/share/gambas2 > > an all works again with no problems. > > I also installed gambas3 from svn in this sever and works out of box > (normal compiling) > > In the next days I'm going to replace this server and I'm going to do an > ubuntu 9.10 clean installation. I promise to write about this installation > in order to know if I get the same problem. > > Regards > OK, but check that you actually compiled revision #2408 or #2409. And GTK applications won't work with Gambas 3 on Ubuntu 9.10, because the workaround done in revision #2409 was not put in Gambas 3 yet. Regards, -- Beno?t Minisini From rohnny at ...1248... Wed Nov 4 12:50:53 2009 From: rohnny at ...1248... (R. Stormo) Date: Wed, 4 Nov 2009 03:50:53 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <200911041050.41934.gambas@...1...> References: <26126852.post@...1379...> <26157837.post@...1379...> <200911022224.02679.gambas@...1...> <26191743.post@...1379...> <200911041050.41934.gambas@...1...> Message-ID: <26194834.post@...1379...> Beno?t Minisini wrote: > >> Beno?t Minisini wrote: > > > Do you use the very latest revision (2409)? > > -- > Beno?t Minisini > > Yes, it was 2409- -snip top:~/trunk$ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 Sjekket ut revisjon 2409. rohnny- --snap ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26194834.html Sent from the gambas-user mailing list archive at Nabble.com. From dosida at ...626... Wed Nov 4 12:54:51 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Wed, 4 Nov 2009 04:54:51 -0700 Subject: [Gambas-user] Breaking processes In-Reply-To: References: Message-ID: <82bffccf0911040354h71f5cde7tfb5976e366322818@...627...> Hey M, to stop the execution of a for loop all you have to do is check for a condition then use break for example PUBLIC SUB FCopy() DIM i AS Integer Dim stopLoop as Boolean DIM filepaths AS String[] ........................' the array filepaths is filled with contents FOR i=0 To filepaths.Count-1 if stopLoop = False THEN SHELL "cp -f " & filepaths[i] & " /home/destination" Else BREAK ENDIF NEXT I hope this helps Regards, Dimitris On Wed, Nov 4, 2009 at 3:41 AM, M. Cs. wrote: > How can I stop the execution of a loop which includes shell command for > copying files? > > Example: > PUBLIC SUB FCopy() > DIM i AS Integer > DIM filepaths AS String[] > ........................' the array filepaths is filled with contents > FOR i=0 To filepaths.Count-1 > SHELL "cp -f " & filepaths[i] & " /home/destination" > NEXT > > END > > I'd like to add a Cancel button which would break the loop.Thanks! > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Wed Nov 4 13:28:10 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Wed, 4 Nov 2009 12:28:10 +0000 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <200911041241.54472.gambas@...1...> References: <4AEFE3FD.70305@...1740...> <200911041129.27271.gambas@...1...> <200911041241.54472.gambas@...1...> Message-ID: I confirm version is gambas2 2.17(r2409) and I'm using qt applications. 2009/11/4 Beno?t Minisini > > Excuse me Benoit, sometimes I read too much fast... I haven't seem Ron > > write about installation at his home directory > > > > Recently I update a producction server from ubuntu 9.04x86_64 to > > 9.10x86_64. > > > > After this, I got a problem with all gambas app in this server. The > > lostfocus event doesn't raise the lostfocus() sub. I don't understand > why. > > At this point I tryed to compile the last gambas2 version fron the svn > > repository and I can't exec gambas2 (ERROR: #27: Cannot load component > > 'gb.qt': cannot find library file) > > > > The way to compile was: > > > > $ svn checkout > > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 $ > cd > > 2.0 > > $ ./reconf-all > > $ ./configure -C > > $ make > > $ sudo make install > > > > all works fine but when you try to run gambas2 you got ERROR: #27: Cannot > > load component 'gb.qt': cannot find library file > > > > after this it was neccesary to do this: > > > > sudo ln -s /usr/local/lib/gambas2 /usr/local/lib > > sudo chmod 755 -R /usr/local/lib/gambas2 > > > > and > > > > sudo chmod 755 -R /usr/local/share/gambas2 > > > > an all works again with no problems. > > > > I also installed gambas3 from svn in this sever and works out of box > > (normal compiling) > > > > In the next days I'm going to replace this server and I'm going to do an > > ubuntu 9.10 clean installation. I promise to write about this > installation > > in order to know if I get the same problem. > > > > Regards > > > > OK, but check that you actually compiled revision #2408 or #2409. > > And GTK applications won't work with Gambas 3 on Ubuntu 9.10, because the > workaround done in revision #2409 was not put in Gambas 3 yet. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Nov 4 13:50:51 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 4 Nov 2009 13:50:51 +0100 Subject: [Gambas-user] Video Application DirectorsDesk performance problems In-Reply-To: References: Message-ID: <6324a42a0911040450q5af6ea19o6d2763eb83934e55@...627...> it will be interesting to see you source ... but ... where ? 2009/11/4 Hartmut Eilers : > Hallo List, > > the first alpha of my program RegiePult ( DirectorsDesk) is available. > Its a tool to record live video from different cams / media player. > The biggest problem I have is the performance and I need serious > hints how to achieve higher framerates. Currently I use PictureBoxes > and do a lot of image conversion. If anybody of you wants to take a > view at the sources or wants to test the program please contact me. > > I'm highly interested in hints what methods to access the frames of > the videos are the fastest. e.g. DrawingArea instead of PictureBox. > > Thank you for any performance hints. > > regards > Hartmut > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Wed Nov 4 14:23:36 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 04 Nov 2009 14:23:36 +0100 Subject: [Gambas-user] Breaking processes In-Reply-To: <82bffccf0911040354h71f5cde7tfb5976e366322818@...627...> References: <82bffccf0911040354h71f5cde7tfb5976e366322818@...627...> Message-ID: <4AF18058.2030008@...1909...> Dimitris Anogiatis ha scritto: > Hey M, > > to stop the execution of a for loop all you have to do is check for a > condition then use break > > for example > > > PUBLIC SUB FCopy() > DIM i AS Integer > Dim stopLoop as Boolean > DIM filepaths AS String[] > ........................' the array filepaths is filled with contents > FOR i=0 To filepaths.Count-1 > > if stopLoop = False THEN > SHELL "cp -f " & filepaths[i] & " /home/destination" > Else > BREAK > ENDIF > NEXT > You don't say anything about using a button to stop the cycle. To do so, you must put a button on the form. To let this button react to mouse clicks, you must use a WAIT inside the loop - without WAIT, the button gets the click, but delays its reaction until your current subroutine finishes - so you don't break/cancel anything. Then, your button must do something your current loop can check. This is a global variable - it can not be one declared inside the subroutine, because nothing from the extern can interfere with local variables. The event handler for the cancel button can set this global variable, and the copy loop can check this variable. These information are not 100% accurate - but you get the point. To summarize, you put a btCancel button on the form, and use the following code: private StopLoop as boolean ' global shared variable public sub fcopy() ... ... StopLoop = false; ' always set a value to variables... FOR i=0 To filepaths.Count-1 WAIT ' otherwise btCancel does not react to clicks in the correct time if StopLoop then BREAK ' WHO set this variable? The next subroutine... SHELL .... ... end public sub btCancel_Click() StopLoop = true ' clicking btCancel comes here and sets the global variable end I didn't tested this code, but it should work. Best regards, Doriano >> How can I stop the execution of a loop which includes shell command for >> copying files? >> >> Example: >> PUBLIC SUB FCopy() >> DIM i AS Integer >> DIM filepaths AS String[] >> ........................' the array filepaths is filled with contents >> FOR i=0 To filepaths.Count-1 >> SHELL "cp -f " & filepaths[i] & " /home/destination" >> NEXT >> >> END >> >> I'd like to add a Cancel button which would break the loop.Thanks! >> >> From gambas at ...1... Wed Nov 4 16:03:53 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 16:03:53 +0100 Subject: [Gambas-user] Optional arguments and IDE In-Reply-To: <384d3900911010847w6c44a85fl5d07b43a9d6e0ed0@...627...> References: <384d3900911010847w6c44a85fl5d07b43a9d6e0ed0@...627...> Message-ID: <200911041603.53318.gambas@...1...> > Benoit, > Is it possible to show default values of optional arguments, when you > write function/sub call? > Now you can only see gray text "bOptionalArgumentName As Boolean", I'd > like to see > "bOptionalArgumentName As Boolean = True". > > Jussi > Done in revision #2410, but not well tested! Regards, -- Beno?t Minisini From hartmut at ...2307... Wed Nov 4 16:05:30 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Wed, 4 Nov 2009 16:05:30 +0100 Subject: [Gambas-user] Video Application DirectorsDesk performance problems In-Reply-To: References: Message-ID: Hallo, anybody interested in DirectorsDesk ( RegiePult ) may download the source from: http://www.eilers.net/index.php?option=com_phocadownload&view=category&id=4:video-programs&Itemid=58 Any comments, hints or critics are highly welcome Kind regards Hartmut From jussi.lahtinen at ...626... Wed Nov 4 16:32:54 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Nov 2009 17:32:54 +0200 Subject: [Gambas-user] Optional arguments and IDE In-Reply-To: <200911041603.53318.gambas@...1...> References: <384d3900911010847w6c44a85fl5d07b43a9d6e0ed0@...627...> <200911041603.53318.gambas@...1...> Message-ID: <384d3900911040732s3f85f80ava49cb45fab04e5cb@...627...> Nice, thanks! I'll test it later. Jussi 2009/11/4 Beno?t Minisini : >> Benoit, >> Is it possible to show default values of optional arguments, when you >> write function/sub call? >> Now you can only see gray text "bOptionalArgumentName As Boolean", I'd >> like to see >> "bOptionalArgumentName As Boolean = True". >> >> Jussi >> > > Done in revision #2410, but not well tested! > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From hartmut at ...2307... Wed Nov 4 17:16:41 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Wed, 4 Nov 2009 17:16:41 +0100 Subject: [Gambas-user] Video4Linux Message-ID: Hallo List, as I understand the current video4linux component is based on video4linux version 1. Is there anything available for video4linux version 2 ? Thanks in advance regards Hartmut From hartmut at ...2307... Wed Nov 4 17:18:21 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Wed, 4 Nov 2009 17:18:21 +0100 Subject: [Gambas-user] Multithreaded Programs Message-ID: Hallo List, is it possible to write multithreaded programs that support multicore or SMP systems with Gambas? Thanks for help Hartmut From hartmut at ...2307... Wed Nov 4 18:15:00 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Wed, 4 Nov 2009 18:15:00 +0100 Subject: [Gambas-user] Video Application DirectorsDesk performance problems In-Reply-To: References: Message-ID: I forgot to mention that there are some pathes hardcoded in the source which you need to modify, or even better patch it to make those settings configurable. :) regards Hartmut 2009/11/4 Hartmut Eilers : > Hallo, > > anybody interested in DirectorsDesk ( RegiePult ) may download the source from: > > http://www.eilers.net/index.php?option=com_phocadownload&view=category&id=4:video-programs&Itemid=58 > > Any comments, hints or critics are highly welcome > > Kind regards > Hartmut > -- Hartmut Eilers Dorffer Str. 53 http://www.eilers.net 52076 Aachen 01522/1656914 From jussi.lahtinen at ...626... Wed Nov 4 18:21:22 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 4 Nov 2009 19:21:22 +0200 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: References: Message-ID: <384d3900911040921j1dfeebaes3771c12b2dd120c2@...627...> You can write two separated gambas applications that communicate to each other. That way you can have two threads. If you want speed up your program, I suggest that you first measure where is the actual bottleneck. Then look better algorithm for that task. If not possible, consider to write C/C++ library for that task. Jussi On Wed, Nov 4, 2009 at 18:18, Hartmut Eilers wrote: > Hallo List, > > is it possible to write multithreaded programs that support > multicore or SMP systems with Gambas? > > Thanks for help > Hartmut > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Nov 4 19:10:34 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 19:10:34 +0100 Subject: [Gambas-user] Video4Linux In-Reply-To: References: Message-ID: <200911041910.34159.gambas@...1...> > Hallo List, > > as I understand the current video4linux component is based > on video4linux version 1. Is there anything available for > video4linux version 2 ? > > Thanks in advance > > regards Hartmut > In Gambas 3. Regards, -- Beno?t Minisini From 12ukwn at ...626... Wed Nov 4 19:27:43 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 04 Nov 2009 19:27:43 +0100 Subject: [Gambas-user] DataBrowser bugs Message-ID: <4AF1C79F.1090204@...626...> gb 2.17 Debian sid qt SQL requests are written, not using intrinsic postgresql 8.4.1 table test( id serial primary key, label varchar(8) not null, date_cre timestamp default now(), date_mod timestamp default NULL, mri_users_cre integer default 1, mri_users_mod integer default NULL, front boolean default true ); ========================================== Hi, Former state: rows 1-7 have values, rows 8-10 have been deleted DataBrowser have all table fields but only display: label & front => WITH datbro_Civ.GridView ' La colonne 'id' est l? pour retourner une r?f, pas pour ?tre vue .Columns[0].Width = 0 .Columns[0].Resizable = FALSE .Columns[1].Text = "Civilit?s" .Columns[1].Width = 175 .Columns[1].Resizable = FALSE ' Y'a pt?t une autre mani?re pour avoir acc?s ? ces champs ' que de les cacher, mais je ne sais pas comment (?) .Columns[2].Width = 0 .Columns[2].Resizable = FALSE .Columns[3].Width = 0 .Columns[3].Resizable = FALSE .Columns[4].Width = 0 .Columns[4].Resizable = FALSE .Columns[5].Width = 0 .Columns[5].Resizable = FALSE ' La derni?re colonne est tjrs visible m?me ? largeur 0 :( (bug? => oui) ' donc comme on en a que 2 ? afficher sur 6, il faut que la 2nde soit la derni?re (?vangile selon St-Gridview) ' ET ne pas oublier de changer l'ordre des champs dans le DataBrowser .Columns[6].Text = "Devant ?" .Columns[6].Width = -1 .Columns[6].Resizable = FALSE END WITH INSERT into table => Refresh of DataBrowser shows new row ONLY when it is ascending sorted on 'label' (descendant order don't show it AND is totally false - even in an ASCII way!) Sort by 'front' => New row doesn't appear anymore AND descending order is totally false (shows: True, False, F..., False, True) Making the primary key column visible don't change anything. Well, after a small test, any descending order is *always* false :( ie ascending: Co. GmBH Inc. SA SARL sarl2 sarl3 SAS sro descending: SARL SA sro GmBH Inc. Co. SAS sarl2 sarl2 as a matter of fact is seems to be superseded by primary key ascending order. so it is truly unusable at all. JY -- No group of professionals meets except to conspire against the public at large. -- Mark Twain From gambas at ...1... Wed Nov 4 19:41:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 19:41:24 +0100 Subject: [Gambas-user] DataBrowser bugs In-Reply-To: <4AF1C79F.1090204@...626...> References: <4AF1C79F.1090204@...626...> Message-ID: <200911041941.24980.gambas@...1...> > gb 2.17 Debian sid > qt > SQL requests are written, not using intrinsic > postgresql 8.4.1 > table test( > id serial primary key, > label varchar(8) not null, > date_cre timestamp default now(), > date_mod timestamp default NULL, > mri_users_cre integer default 1, > mri_users_mod integer default NULL, > front boolean default true > ); > ========================================== > Hi, > > Former state: > rows 1-7 have values, > rows 8-10 have been deleted > DataBrowser have all table fields but only display: label & front => > WITH datbro_Civ.GridView > ' La colonne 'id' est l? pour retourner une r?f, pas pour ?tre vue > .Columns[0].Width = 0 > .Columns[0].Resizable = FALSE > .Columns[1].Text = "Civilit?s" > .Columns[1].Width = 175 > .Columns[1].Resizable = FALSE > ' Y'a pt?t une autre mani?re pour avoir acc?s ? ces champs > ' que de les cacher, mais je ne sais pas comment (?) > .Columns[2].Width = 0 > .Columns[2].Resizable = FALSE > .Columns[3].Width = 0 > .Columns[3].Resizable = FALSE > .Columns[4].Width = 0 > .Columns[4].Resizable = FALSE > .Columns[5].Width = 0 > .Columns[5].Resizable = FALSE > ' La derni?re colonne est tjrs visible m?me ? largeur 0 :( (bug? => > oui) ' donc comme on en a que 2 ? afficher sur 6, il faut que la 2nde > soit la derni?re (?vangile selon St-Gridview) ' ET ne pas oublier de > changer l'ordre des champs dans le DataBrowser .Columns[6].Text = "Devant > ?" > .Columns[6].Width = -1 > .Columns[6].Resizable = FALSE > END WITH > > INSERT into table => Refresh of DataBrowser shows new row ONLY when > it is ascending sorted on 'label' > (descendant order don't show it AND is totally false - even in an ASCII > way!) > > Sort by 'front' => New row doesn't appear anymore AND descending order > is totally false (shows: True, False, F..., False, True) > > Making the primary key column visible don't change anything. > > Well, after a small test, any descending order is *always* false :( > > ie ascending: > Co. > GmBH > Inc. > SA > SARL > sarl2 > sarl3 > SAS > sro > > descending: > SARL > SA > sro > GmBH > Inc. > Co. > SAS > sarl2 > sarl2 > > as a matter of fact is seems to be superseded by primary key ascending > order. so it is truly unusable at all. > > JY > I don't see at all what you are talking about. Please provide a full project and the SQL data needed to run it. If you prefer, explain what you are trying to achieve on the french mailing-list. Regards, -- Beno?t Minisini From 12ukwn at ...626... Wed Nov 4 19:42:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 04 Nov 2009 19:42:30 +0100 Subject: [Gambas-user] DataSource missing feature Message-ID: <4AF1CB16.6020408@...626...> Hi, In a DataSource, I can't use a postgresql notation such as: schema.table The PB is I have multiple tables with same names in different schemas; so how could I reach them? -- You will be dead within a year. From gambas at ...1... Wed Nov 4 19:44:13 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 4 Nov 2009 19:44:13 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26160194.post@...1379...> References: <26126852.post@...1379...> <26160194.post@...1379...> Message-ID: <200911041944.13909.gambas@...1...> > Been trying to figure out what's going wrong and by removing everything on > my startform and include one piece at the time I have come up with this. > The Fakturalist is a HBox. Also tried with other containers same result. > > ' This do crash in Ubuntu Karmic > 'ME.Width = desktop.Width > > Here is how my screen is build up. > > f1 = NEW Fkunder > f2 = NEW Fvarer > f3 = NEW Ffakturalist(Fakturalist) > f4 = NEW Ffaktura > f5 = NEW Fproject > f6 = NEW Ffakturalist > ' We are going to handle all tool form events here > Object.Attach(f4, ME, "f4") > > MyArea.Add(f1) > MyArea.Add(f2) > MyArea.Add(f4) > MyArea.Add(f5) > MyArea.Add(f6) > > Started the program in 2005 and it's my billing program so it's used > everyday. Until I upgraded to karmic when it was released. > So If do disable the me.width = desktop.width everything work as it should > again. With the version that are in the package manager, 2.13 > > So maybe this is of somehelp for others or for benoit if it is a bug or > not. > > > > > > ----- > Regards R. Stormo > > > My Gambas Community http://gambasforum.tk > Can you provide a full project that crashes on Ubuntu 9.10, and/or behaves strangely? Otherwise, I can't debug. Regards, -- Beno?t Minisini From mohareve at ...626... Wed Nov 4 19:45:41 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 4 Nov 2009 19:45:41 +0100 Subject: [Gambas-user] Breaking processes In-Reply-To: <4AF18058.2030008@...1909...> References: <82bffccf0911040354h71f5cde7tfb5976e366322818@...627...> <4AF18058.2030008@...1909...> Message-ID: Thanks, I think it should really work! I'll check it and write again if it won't. From ron at ...1740... Wed Nov 4 20:05:48 2009 From: ron at ...1740... (Ron) Date: Wed, 04 Nov 2009 20:05:48 +0100 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <200911041129.27271.gambas@...1...> References: <4AEFE3FD.70305@...1740...> <200911041048.08480.gambas@...1...> <200911041129.27271.gambas@...1...> Message-ID: <4AF1D08C.9080409@...1740...> Beno?t Minisini schreef: >> I got the same bug in #2048 installing in ubuntu 9.10x86_64 >> >> If you after intall finish do this (thanks to Ron review): >> >> sudo ln -s /usr/local/lib/gambas2 /usr/local/lib >> sudo chmod 755 -R /usr/local/lib/gambas2 >> >> gambas2 works again >> >> Regards >> >> > > That is not the same thing. Ron installed Gambas locally inside its home > directory. > > By compiling the revison #2048 on the same system as yours (Ubuntu 9.10 > x86_64), I don't have any problem. Can you check whay you did exactly to > compile gambas 2? > > Regards, > > Benoit, no I dont install it in my home dir, although the strace output showed gambas looks there too for libraries, maybe that confused you. I always do a normal : svn co ./reconf-all && ./configure -C sudo make install So it installs under /usr/local Anyway, i just did a svn update to revision 2411 and all works ok again. Thanks. Kind regards, Ron_2nd. From rohnny at ...1248... Wed Nov 4 20:35:04 2009 From: rohnny at ...1248... (R. Stormo) Date: Wed, 4 Nov 2009 11:35:04 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <200911041944.13909.gambas@...1...> References: <26126852.post@...1379...> <26160194.post@...1379...> <200911041944.13909.gambas@...1...> Message-ID: <26203186.post@...1379...> Beno?t Minisini wrote: > >> Been trying to figure out what's going wrong and by removing everything >> on >> my startform and include one piece at the time I have come up with this. >> The Fakturalist is a HBox. Also tried with other containers same result. >> >> ' This do crash in Ubuntu Karmic >> 'ME.Width = desktop.Width >> >> Here is how my screen is build up. >> >> f1 = NEW Fkunder >> f2 = NEW Fvarer >> f3 = NEW Ffakturalist(Fakturalist) >> f4 = NEW Ffaktura >> f5 = NEW Fproject >> f6 = NEW Ffakturalist >> ' We are going to handle all tool form events here >> Object.Attach(f4, ME, "f4") >> >> MyArea.Add(f1) >> MyArea.Add(f2) >> MyArea.Add(f4) >> MyArea.Add(f5) >> MyArea.Add(f6) >> >> Started the program in 2005 and it's my billing program so it's used >> everyday. Until I upgraded to karmic when it was released. >> So If do disable the me.width = desktop.width everything work as it >> should >> again. With the version that are in the package manager, 2.13 >> >> So maybe this is of somehelp for others or for benoit if it is a bug or >> not. >> >> >> >> >> >> ----- >> Regards R. Stormo >> >> >> My Gambas Community http://gambasforum.tk >> > > Can you provide a full project that crashes on Ubuntu 9.10, and/or behaves > strangely? Otherwise, I can't debug. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Here is a program and it do hang when you enable me.width in form1 http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz crash-test-0.0.1.tar.gz ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26203186.html Sent from the gambas-user mailing list archive at Nabble.com. From hartmut at ...2307... Wed Nov 4 20:51:59 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Wed, 4 Nov 2009 20:51:59 +0100 Subject: [Gambas-user] Video4Linux In-Reply-To: References: Message-ID: Thank you for your fast answer Benoit. Is it planned to support V4L2 in Version 3.0 or is it usable. Is it worth to give Version 3.0 a test with my video app or do I have to wait ?. Is it possible to install Version 3 in parallel to my version 2.x i have installed from the ubuntu repos ? Where are the most uptodate Webpages about gambas. thanks and regards Hartmut From dmxa69 at ...626... Thu Nov 5 01:09:42 2009 From: dmxa69 at ...626... (Dmxa) Date: Wed, 4 Nov 2009 16:09:42 -0800 (PST) Subject: [Gambas-user] Question Rnd vb to gambas Message-ID: <26160471.post@...1379...> I have a doubt, not long ago I started with the gambas2 and I am proving of passing 1 program Rnd of VB08 to gambas2 but when doing the function Rnd from a listbox to a textbox I do not obtain to leave. in VB08 use: Dim i2 As Integer i2 = Int(Rnd() * (lbDatos2.Items.Count - 1)) lis.lisx.Text = lis.lisx.Text & lbDatos2.Items.Item(i2) & vbCrLf & vbCrLf exampe: list items : a, b, c and d. -> use this command and select randon 1 item of list and print en textbox -> b but, i have read manual but follow tied up, using the: DIM y AS Integer y = Int(Rnd() * (ListBox2.List.Count - 1)) TextArea1.Text = TextArea1.Text & ListBox2.List.Join(y) & "\n" following numbers go out me the contents of the the ready: list items: a, b, c and d, use the command -> a2b2c2d I have varied formulates her but the same always comes out: ListBox2.List.Join((y), "-") ---> -a-3-b-3-c-3-d- does anybody know as it can be made? PD: the equivalent link label in gambas who are? -- View this message in context: http://old.nabble.com/Question-Rnd-vb-to-gambas-tp26160471p26160471.html Sent from the gambas-user mailing list archive at Nabble.com. From steven at ...2097... Thu Nov 5 02:03:38 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 05 Nov 2009 09:03:38 +0800 Subject: [Gambas-user] Video4Linux In-Reply-To: References: Message-ID: <1257383019.5102.19.camel@...2273...> It does work in 2 but you need to preload the compat library like this i386 LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so (name of app) x86_64 LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so (name of app) These are the paths on Fedora. You may need to modify them to match your distro. this will load the required libs. Steven On Wed, 2009-11-04 at 20:51 +0100, Hartmut Eilers wrote: > Thank you for your fast answer Benoit. > Is it planned to support V4L2 in Version 3.0 or is it usable. > Is it worth to give Version 3.0 a test with my video app or > do I have to wait ?. > > Is it possible to install Version 3 in parallel to my version 2.x > i have installed from the ubuntu repos ? > > Where are the most uptodate Webpages about gambas. > > thanks and regards > Hartmut > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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 12ukwn at ...626... Thu Nov 5 04:28:51 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 04:28:51 +0100 Subject: [Gambas-user] screen WxH Message-ID: <4AF24673.5030309@...626...> Hi, can I get the whole screen width & height without using any maximized form to do that? -- From steven at ...2097... Thu Nov 5 04:44:57 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 05 Nov 2009 11:44:57 +0800 Subject: [Gambas-user] screen WxH In-Reply-To: <4AF24673.5030309@...626...> References: <4AF24673.5030309@...626...> Message-ID: <1257392697.18006.1.camel@...2273...> use Desktop.Height Desktop.Width steven Steven On Thu, 2009-11-05 at 04:28 +0100, Jean-Yves F. Barbier wrote: > Hi, > > can I get the whole screen width & height without using any maximized > form to do that? > -------------- 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 Nov 5 04:47:12 2009 From: wdahn at ...1000... (Werner) Date: Thu, 05 Nov 2009 11:47:12 +0800 Subject: [Gambas-user] screen WxH In-Reply-To: <4AF24673.5030309@...626...> References: <4AF24673.5030309@...626...> Message-ID: <4AF24AC0.1020703@...1000...> Jean-Yves F. Barbier wrote: > Hi, > > can I get the whole screen width & height without using any maximized > form to do that? > > Desktop.Width Desktop.Height From 12ukwn at ...626... Thu Nov 5 05:01:37 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 05:01:37 +0100 Subject: [Gambas-user] screen WxH In-Reply-To: <1257392697.18006.1.camel@...2273...> References: <4AF24673.5030309@...626...> <1257392697.18006.1.camel@...2273...> Message-ID: <4AF24E21.5010606@...626...> Steven James Drinnan a ?crit : > use > > Desktop.Height > Desktop.Width Thanks to both of you JY -- From 12ukwn at ...626... Thu Nov 5 07:11:54 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 07:11:54 +0100 Subject: [Gambas-user] ColumnView don't accept Resizable Message-ID: <4AF26CAA.1030304@...626...> 2.17 Debian sid gb.gtk =============== HI, I've got: colviwTable.Columns[0].Resizable = FALSE and it returns an error, however Resizable is mentionned in docs - Is it reserved to Qt or whatelse? -- From 12ukwn at ...626... Thu Nov 5 07:29:58 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 07:29:58 +0100 Subject: [Gambas-user] rearrangement Message-ID: <4AF270E6.8020505@...626...> Hi, Is there a possibility to rearrange the widgets into the hierarchy tree? (ie: move a label from form to hpanel)- I read the old gambas beginner guide that say so, but it don't work anymore. -- From steven at ...2097... Thu Nov 5 08:33:09 2009 From: steven at ...2097... (Steven James Drinnan) Date: Thu, 05 Nov 2009 15:33:09 +0800 Subject: [Gambas-user] rearrangement In-Reply-To: <4AF270E6.8020505@...626...> References: <4AF270E6.8020505@...626...> Message-ID: <1257406403.25150.10.camel@...2273...> On Thu, 2009-11-05 at 07:29 +0100, Jean-Yves F. Barbier wrote: > Hi, > > Is there a possibility to rearrange the widgets into the hierarchy > tree? (ie: move a label from form to hpanel)- I read the old gambas > beginner guide that say so, but it don't work anymore. > You use the reparent function like this Label1.Reparent(hpanel1, hpanel1.X,hpanel1.Y) But it's behavior is funny. It positions itself to the label not the other way round. So you need to insert the old x and y pos so the container remains in the same position. Benoit - can you change this behavior? Ie so the control gets reparented but the parent remains in the same place and the control moves to the relative place in the new container? -------------- 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 gambas.fr at ...626... Thu Nov 5 09:39:53 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 Nov 2009 09:39:53 +0100 Subject: [Gambas-user] ColumnView don't accept Resizable In-Reply-To: <4AF26CAA.1030304@...626...> References: <4AF26CAA.1030304@...626...> Message-ID: <6324a42a0911050039l23b19fx2a1129a3dc9b0c6d@...627...> what distrib ... which version ? 2009/11/5 Jean-Yves F. Barbier <12ukwn at ...626...>: > 2.17 Debian sid > gb.gtk > =============== > HI, > > I've got: colviwTable.Columns[0].Resizable = FALSE > and it returns an error, however Resizable is mentionned > in docs - Is it reserved to Qt or whatelse? > > -- > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From go2null at ...626... Thu Nov 5 09:52:02 2009 From: go2null at ...626... (Speedy Gonzales) Date: Thu, 5 Nov 2009 09:52:02 +0100 Subject: [Gambas-user] Report generator like en MS Access ? Message-ID: <1d3c54df0911050052j346e650ub33a14fce8a99c48@...627...> Hi, I would like to know if it exists a graphical report generator tool like the one in MSAccess for Gambas 2 or 3 ? Thanks for your replies. From Karl.Reinl at ...9... Thu Nov 5 10:18:28 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 05 Nov 2009 10:18:28 +0100 Subject: [Gambas-user] Report generator like en MS Access ? In-Reply-To: <1d3c54df0911050052j346e650ub33a14fce8a99c48@...627...> References: <1d3c54df0911050052j346e650ub33a14fce8a99c48@...627...> Message-ID: <1257412708.6470.3.camel@...40...> Am Donnerstag, den 05.11.2009, 09:52 +0100 schrieb Speedy Gonzales: > Hi, > > I would like to know if it exists a graphical report generator tool like the > one in MSAccess for Gambas 2 or 3 ? > > Thanks for your replies. Salut, not like Access. But we work on a gambas2 version from DBReport. You can find at http://sourceforge.net/projects/dbreport/ Try it and tell me if it is useful for you. -- Amicalment Charlie From gambas at ...1... Thu Nov 5 10:18:33 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 10:18:33 +0100 Subject: [Gambas-user] ColumnView don't accept Resizable In-Reply-To: <4AF26CAA.1030304@...626...> References: <4AF26CAA.1030304@...626...> Message-ID: <200911051018.34003.gambas@...1...> > 2.17 Debian sid > gb.gtk > =============== > HI, > > I've got: colviwTable.Columns[0].Resizable = FALSE > and it returns an error, however Resizable is mentionned > in docs - Is it reserved to Qt or whatelse? > There is no Resizable property on the column in the documentation, at least on gambasdoc.org. The property is on the ColumnView control itself. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Thu Nov 5 10:21:51 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Thu, 05 Nov 2009 20:21:51 +1100 Subject: [Gambas-user] =?iso-8859-1?q?PING_=3E_Beno=EEt_=28ServerSocket=29?= Message-ID: <1257412911.4419.63.camel@...2318...> Beno?t, I'd like to ask you take a look at something, please. I've been tearing my hair out over this problem for weeks, but now that I've finally nailed it, I can't reproduce it. I encountered this problem a few weeks back in the ServerSocket component; my code had been working great for weeks then suddenly it stopped dead, for no reason that I could explain except a reboot (one day it worked, the next it didn't). I even went to the trouble of a format and clean install, and still had the problem (Ubuntu 9.04 x86 and 9.10 x64). To cut a short story long, to find out what the problem was, I created a project from the ServerSocket example in 2.17 (I was using 2.16 last time this happened, and it was the same with the much earlier version supplied with Ubuntu 9.04). I then stripped the example down to get rid of all the buttons and other adornments on the screen: The code attached in A1.tar.gz worked; it is the stripped-down ServerSocket example I was using as a benchmark against my own code. Next, I stripped absolutely everything out of my no longer working code and manually edited it, one change at a time, line for line, to make it match precisely what is in A1.tar.gz, which works. When I say precisely I mean I even changed the variable names to match, and every single newline was replicated as well. I ran my code at each change, and each time either: 1) PUBLIC SUB Socket_Read() failed to fire Or 2) WRITE #Client, "200 Get lost! Leave me alone!\r\n", Len("200 Get lost! Leave me alone!\r\n") in procedure PUBLIC SUB Socket_Ready() failed to reach the client. It has to be one of those two, I can't say which one, but I can say that PUBLIC SUB Socket_Ready was firing <-- It was firing. Anyway I got down to the very last change I could possibly make so that my own code matched the working, modified example ServerSocket code exactly. That change was this: The working code ================ PUBLIC SUB Form_Open() Server.Type = Net.Internet Server.Port = 5001 Server.Listen(1) END The not working code ==================== PUBLIC SUB Form_Open() Server.Port = 5001 Server.Type = Net.Internet Server.Listen(1) END As soon as I ran my code after swapping the Server.Port and Server.Type lines, I swear, it worked. So I reversed the change and it still worked :( So I created a new project, added a ServerSocket control named Server, pasted in the not working code prior to the line swap, and it worked as well :( Ok, either I am going nuts or my Gambas has made a liar out of me. Perhaps I am crazy and ought to be locked up in a rubber room with a straight-jacket on? Is there any possible way that setting Server.Port before Server.Type could cause ServerSocket to behave oddly? Could an Ubuntu update overwrite something that ServerSocket uses and thereby cause ServerSocket to stop working suddenly --> if and only if Server.Port is set before Server.Type? Am I really insane? Inquiring minds that don't want to be labelled "MAD!!!" want to know. Truly, I cannot now reproduce this problem after that line swap. The code continues to work, no matter what inhumane atrocities I commit upon it. I am so frustrated by this problem that if you tell me that I am indeed insane I will probably believe you. -------------- next part -------------- A non-text attachment was scrubbed... Name: A1.tar.gz Type: application/x-compressed-tar Size: 2910 bytes Desc: not available URL: From gambas at ...1... Thu Nov 5 10:22:12 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 10:22:12 +0100 Subject: [Gambas-user] Video4Linux In-Reply-To: References: Message-ID: <200911051022.12678.gambas@...1...> > Thank you for your fast answer Benoit. > Is it planned to support V4L2 in Version 3.0 or is it usable. It works. But I have only tested it with the poor webcam of my Aspire One. > Is it worth to give Version 3.0 a test with my video app or > do I have to wait ?. Yes, it's worth it: this way, if you have problems, I would be able to fix them. > > Is it possible to install Version 3 in parallel to my version 2.x > i have installed from the ubuntu repos ? Yes. They do not use the same parent directory (gambas2 & gambas3) and executable names (gb*2 & gb*3) > > Where are the most uptodate Webpages about gambas. What do you mean? -- Beno?t Minisini From gambas at ...1... Thu Nov 5 10:32:42 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 10:32:42 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26203186.post@...1379...> References: <26126852.post@...1379...> <200911041944.13909.gambas@...1...> <26203186.post@...1379...> Message-ID: <200911051032.42625.gambas@...1...> > > Here is a program and it do hang when you enable me.width in form1 > > http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz > crash-test-0.0.1.tar.gz > > > ----- > Regards R. Stormo > > > My Gambas Community http://gambasforum.tk > Your program is an endless loop into Form_Resize. Your form is inside a HBox. So changing the Width triggers a deffered Resize event. But as the HBox resizes the form later, the Width changed again to its initial value, and all the process starts again forever! Changing the size of the form inside its Resize event is a bad idea. What did you try to achieve? -- Beno?t Minisini From gambas at ...1... Thu Nov 5 10:53:32 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 10:53:32 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <1257412911.4419.63.camel@...2318...> References: <1257412911.4419.63.camel@...2318...> Message-ID: <200911051053.32763.gambas@...1...> > Beno?t, > > I'd like to ask you take a look at something, please. I've been tearing > my hair out over this problem for weeks, but now that I've finally > nailed it, I can't reproduce it. I encountered this problem a few weeks > back in the ServerSocket component; my code had been working great for > weeks then suddenly it stopped dead, for no reason that I could explain > except a reboot (one day it worked, the next it didn't). I even went to > the trouble of a format and clean install, and still had the problem > (Ubuntu 9.04 x86 and 9.10 x64). > > To cut a short story long, to find out what the problem was, I created a > project from the ServerSocket example in 2.17 (I was using 2.16 last > time this happened, and it was the same with the much earlier version > supplied with Ubuntu 9.04). > > I then stripped the example down to get rid of all the buttons and other > adornments on the screen: The code attached in A1.tar.gz worked; it is > the stripped-down ServerSocket example I was using as a benchmark > against my own code. > > Next, I stripped absolutely everything out of my no longer working code > and manually edited it, one change at a time, line for line, to make it > match precisely what is in A1.tar.gz, which works. When I say precisely > I mean I even changed the variable names to match, and every single > newline was replicated as well. I ran my code at each change, and each > time either: > > 1) PUBLIC SUB Socket_Read() failed to fire > > Or > > 2) WRITE #Client, "200 Get lost! Leave me alone!\r\n", Len("200 Get > lost! Leave me alone!\r\n") in procedure PUBLIC SUB Socket_Ready() > failed to reach the client. > > It has to be one of those two, I can't say which one, but I can say that > PUBLIC SUB Socket_Ready was firing <-- It was firing. Anyway I got down > to the very last change I could possibly make so that my own code > matched the working, modified example ServerSocket code exactly. That > change was this: > > The working code > ================ > > PUBLIC SUB Form_Open() > > Server.Type = Net.Internet > Server.Port = 5001 > Server.Listen(1) > > END > > The not working code > ==================== > > PUBLIC SUB Form_Open() > > Server.Port = 5001 > Server.Type = Net.Internet > Server.Listen(1) > > END > > As soon as I ran my code after swapping the Server.Port and Server.Type > lines, I swear, it worked. So I reversed the change and it still > worked :( > > So I created a new project, added a ServerSocket control named Server, > pasted in the not working code prior to the line swap, and it worked as > well :( > > Ok, either I am going nuts or my Gambas has made a liar out of me. > Perhaps I am crazy and ought to be locked up in a rubber room with a > straight-jacket on? > > Is there any possible way that setting Server.Port before Server.Type > could cause ServerSocket to behave oddly? Could an Ubuntu update > overwrite something that ServerSocket uses and thereby cause > ServerSocket to stop working suddenly --> if and only if Server.Port is > set before Server.Type? Am I really insane? Inquiring minds that don't > want to be labelled "MAD!!!" want to know. > > Truly, I cannot now reproduce this problem after that line swap. The > code continues to work, no matter what inhumane atrocities I commit upon > it. > > I am so frustrated by this problem that if you tell me that I am indeed > insane I will probably believe you. > I'm sorry, but setting the Port and Type property does nothing except storing the integer values in memory. These properties are used when you call Listen(). I'm not completely sure this is a Gambas problem, as in your previous mail you said that, when your program suddenly stopped working, the ServerSocket example stopped working too. And that rebooting changed nothing: the only way for Gambas to do that after a reboot is killing your network card! If only you have noticed the full "broken pipe" error message... :-s. If you have the problem again, please note it carefully! Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Thu Nov 5 11:22:14 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Thu, 05 Nov 2009 21:22:14 +1100 Subject: [Gambas-user] =?iso-8859-1?q?PING_=3E_Beno=EEt_=28ServerSocket=29?= In-Reply-To: <200911051053.32763.gambas@...1...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> Message-ID: <1257416534.4419.78.camel@...2318...> On Thu, 2009-11-05 at 10:53 +0100, Beno?t Minisini wrote: > > Beno?t, > > > > I'd like to ask you take a look at something, please. I've been tearing > > my hair out over this problem for weeks, but now that I've finally > > nailed it, I can't reproduce it. I encountered this problem a few weeks > > back in the ServerSocket component; my code had been working great for > > weeks then suddenly it stopped dead, for no reason that I could explain > > except a reboot (one day it worked, the next it didn't). I even went to > > the trouble of a format and clean install, and still had the problem > > (Ubuntu 9.04 x86 and 9.10 x64). > > > > To cut a short story long, to find out what the problem was, I created a > > project from the ServerSocket example in 2.17 (I was using 2.16 last > > time this happened, and it was the same with the much earlier version > > supplied with Ubuntu 9.04). > > > > I then stripped the example down to get rid of all the buttons and other > > adornments on the screen: The code attached in A1.tar.gz worked; it is > > the stripped-down ServerSocket example I was using as a benchmark > > against my own code. > > > > Next, I stripped absolutely everything out of my no longer working code > > and manually edited it, one change at a time, line for line, to make it > > match precisely what is in A1.tar.gz, which works. When I say precisely > > I mean I even changed the variable names to match, and every single > > newline was replicated as well. I ran my code at each change, and each > > time either: > > > > 1) PUBLIC SUB Socket_Read() failed to fire > > > > Or > > > > 2) WRITE #Client, "200 Get lost! Leave me alone!\r\n", Len("200 Get > > lost! Leave me alone!\r\n") in procedure PUBLIC SUB Socket_Ready() > > failed to reach the client. > > > > It has to be one of those two, I can't say which one, but I can say that > > PUBLIC SUB Socket_Ready was firing <-- It was firing. Anyway I got down > > to the very last change I could possibly make so that my own code > > matched the working, modified example ServerSocket code exactly. That > > change was this: > > > > The working code > > ================ > > > > PUBLIC SUB Form_Open() > > > > Server.Type = Net.Internet > > Server.Port = 5001 > > Server.Listen(1) > > > > END > > > > The not working code > > ==================== > > > > PUBLIC SUB Form_Open() > > > > Server.Port = 5001 > > Server.Type = Net.Internet > > Server.Listen(1) > > > > END > > > > As soon as I ran my code after swapping the Server.Port and Server.Type > > lines, I swear, it worked. So I reversed the change and it still > > worked :( > > > > So I created a new project, added a ServerSocket control named Server, > > pasted in the not working code prior to the line swap, and it worked as > > well :( > > > > Ok, either I am going nuts or my Gambas has made a liar out of me. > > Perhaps I am crazy and ought to be locked up in a rubber room with a > > straight-jacket on? > > > > Is there any possible way that setting Server.Port before Server.Type > > could cause ServerSocket to behave oddly? Could an Ubuntu update > > overwrite something that ServerSocket uses and thereby cause > > ServerSocket to stop working suddenly --> if and only if Server.Port is > > set before Server.Type? Am I really insane? Inquiring minds that don't > > want to be labelled "MAD!!!" want to know. > > > > Truly, I cannot now reproduce this problem after that line swap. The > > code continues to work, no matter what inhumane atrocities I commit upon > > it. > > > > I am so frustrated by this problem that if you tell me that I am indeed > > insane I will probably believe you. > > > > I'm sorry, but setting the Port and Type property does nothing except storing > the integer values in memory. These properties are used when you call > Listen(). > > I'm not completely sure this is a Gambas problem, as in your previous mail you > said that, when your program suddenly stopped working, the ServerSocket > example stopped working too. And that rebooting changed nothing: the only way > for Gambas to do that after a reboot is killing your network card! > > If only you have noticed the full "broken pipe" error message... :-s. If you > have the problem again, please note it carefully! Ok, so I'm crazy. The broken pipe error is irrelevant because I am using a different machine and still have the same issue. > the ServerSocket example stopped working too Yes, it did. I'll keep my eye on the problem. I want to be able to say, "I TOLD YOU SO!!!" Mind you, it doesn't exactly instil confidence in me to bother getting the application finished. From gambas at ...1... Thu Nov 5 11:54:33 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 11:54:33 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <1257416534.4419.78.camel@...2318...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> Message-ID: <200911051154.33532.gambas@...1...> > On Thu, 2009-11-05 at 10:53 +0100, Beno?t Minisini wrote: > > > Beno?t, > > > > > > I'd like to ask you take a look at something, please. I've been tearing > > > my hair out over this problem for weeks, but now that I've finally > > > nailed it, I can't reproduce it. I encountered this problem a few weeks > > > back in the ServerSocket component; my code had been working great for > > > weeks then suddenly it stopped dead, for no reason that I could explain > > > except a reboot (one day it worked, the next it didn't). I even went to > > > the trouble of a format and clean install, and still had the problem > > > (Ubuntu 9.04 x86 and 9.10 x64). > > > > > > To cut a short story long, to find out what the problem was, I created > > > a project from the ServerSocket example in 2.17 (I was using 2.16 last > > > time this happened, and it was the same with the much earlier version > > > supplied with Ubuntu 9.04). > > > > > > I then stripped the example down to get rid of all the buttons and > > > other adornments on the screen: The code attached in A1.tar.gz worked; > > > it is the stripped-down ServerSocket example I was using as a benchmark > > > against my own code. > > > > > > Next, I stripped absolutely everything out of my no longer working code > > > and manually edited it, one change at a time, line for line, to make it > > > match precisely what is in A1.tar.gz, which works. When I say precisely > > > I mean I even changed the variable names to match, and every single > > > newline was replicated as well. I ran my code at each change, and each > > > time either: > > > > > > 1) PUBLIC SUB Socket_Read() failed to fire > > > > > > Or > > > > > > 2) WRITE #Client, "200 Get lost! Leave me alone!\r\n", Len("200 Get > > > lost! Leave me alone!\r\n") in procedure PUBLIC SUB Socket_Ready() > > > failed to reach the client. > > > > > > It has to be one of those two, I can't say which one, but I can say > > > that PUBLIC SUB Socket_Ready was firing <-- It was firing. Anyway I got > > > down to the very last change I could possibly make so that my own code > > > matched the working, modified example ServerSocket code exactly. That > > > change was this: > > > > > > The working code > > > ================ > > > > > > PUBLIC SUB Form_Open() > > > > > > Server.Type = Net.Internet > > > Server.Port = 5001 > > > Server.Listen(1) > > > > > > END > > > > > > The not working code > > > ==================== > > > > > > PUBLIC SUB Form_Open() > > > > > > Server.Port = 5001 > > > Server.Type = Net.Internet > > > Server.Listen(1) > > > > > > END > > > > > > As soon as I ran my code after swapping the Server.Port and Server.Type > > > lines, I swear, it worked. So I reversed the change and it still > > > worked :( > > > > > > So I created a new project, added a ServerSocket control named Server, > > > pasted in the not working code prior to the line swap, and it worked as > > > well :( > > > > > > Ok, either I am going nuts or my Gambas has made a liar out of me. > > > Perhaps I am crazy and ought to be locked up in a rubber room with a > > > straight-jacket on? > > > > > > Is there any possible way that setting Server.Port before Server.Type > > > could cause ServerSocket to behave oddly? Could an Ubuntu update > > > overwrite something that ServerSocket uses and thereby cause > > > ServerSocket to stop working suddenly --> if and only if Server.Port is > > > set before Server.Type? Am I really insane? Inquiring minds that don't > > > want to be labelled "MAD!!!" want to know. > > > > > > Truly, I cannot now reproduce this problem after that line swap. The > > > code continues to work, no matter what inhumane atrocities I commit > > > upon it. > > > > > > I am so frustrated by this problem that if you tell me that I am indeed > > > insane I will probably believe you. > > > > I'm sorry, but setting the Port and Type property does nothing except > > storing the integer values in memory. These properties are used when you > > call Listen(). > > > > I'm not completely sure this is a Gambas problem, as in your previous > > mail you said that, when your program suddenly stopped working, the > > ServerSocket example stopped working too. And that rebooting changed > > nothing: the only way for Gambas to do that after a reboot is killing > > your network card! > > > > If only you have noticed the full "broken pipe" error message... :-s. If > > you have the problem again, please note it carefully! > > Ok, so I'm crazy. > No. I don't think so. :-) But if rebooting your Linux server does not make the application work again, I can't really suspect Gambas, as it does not save anything on the hard disk, especially the network component. Did you test the connection with telnet, or any other non-Gambas program? Did you test another socket server application not made in Gambas? The only possibility I see would be a memory corruption in the network component - it is possible, I didn't write it :-). By reading the source code of the Listen() method, I didn't see anything that could lead to that. But I will check again. A way to see these kinds of error is running Gambas inside valgrind: $ cd /path/to/my/application/project $ valgrind --tool=memcheck --num-callers=40 --track-origins=yes gbx2 ... And tell me all the messages reported by valgrind during the life of the application. > The broken pipe error is irrelevant because I am using a different > machine and still have the same issue. > I thought you were talking about an error message from your gambas application. > > the ServerSocket example stopped working too > > Yes, it did. > > I'll keep my eye on the problem. I want to be able to say, "I TOLD YOU > SO!!!" > > Mind you, it doesn't exactly instil confidence in me to bother getting > the application finished. > If the information you gave are all exact (rebooting changed nothing, suddenly everything works again), the problem should come from something outside of the operating system. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Thu Nov 5 12:50:52 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 5 Nov 2009 11:50:52 +0000 Subject: [Gambas-user] BUG Gambas stable [2407] broken In-Reply-To: <200911041241.54472.gambas@...1...> References: <4AEFE3FD.70305@...1740...> <200911041129.27271.gambas@...1...> <200911041241.54472.gambas@...1...> Message-ID: Benoit, In a clean installation in ubuntu 9.10 works fine (gambas2 and gambas3). Please note for me was neccesary to do this because my server is set to umask 007 sudo chmod 755 -R /usr/local/lib/gambas2 sudo chmod 755 -R /usr/local/share/gambas2 and sudo chmod 755 -R /usr/local/lib/gambas3 sudo chmod 755 -R /usr/local/share/gambas3 Regards 2009/11/4 Beno?t Minisini > > Excuse me Benoit, sometimes I read too much fast... I haven't seem Ron > > write about installation at his home directory > > > > Recently I update a producction server from ubuntu 9.04x86_64 to > > 9.10x86_64. > > > > After this, I got a problem with all gambas app in this server. The > > lostfocus event doesn't raise the lostfocus() sub. I don't understand > why. > > At this point I tryed to compile the last gambas2 version fron the svn > > repository and I can't exec gambas2 (ERROR: #27: Cannot load component > > 'gb.qt': cannot find library file) > > > > The way to compile was: > > > > $ svn checkout > > https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 $ > cd > > 2.0 > > $ ./reconf-all > > $ ./configure -C > > $ make > > $ sudo make install > > > > all works fine but when you try to run gambas2 you got ERROR: #27: Cannot > > load component 'gb.qt': cannot find library file > > > > after this it was neccesary to do this: > > > > sudo ln -s /usr/local/lib/gambas2 /usr/local/lib > > sudo chmod 755 -R /usr/local/lib/gambas2 > > > > and > > > > sudo chmod 755 -R /usr/local/share/gambas2 > > > > an all works again with no problems. > > > > I also installed gambas3 from svn in this sever and works out of box > > (normal compiling) > > > > In the next days I'm going to replace this server and I'm going to do an > > ubuntu 9.10 clean installation. I promise to write about this > installation > > in order to know if I get the same problem. > > > > Regards > > > > OK, but check that you actually compiled revision #2408 or #2409. > > And GTK applications won't work with Gambas 3 on Ubuntu 9.10, because the > workaround done in revision #2409 was not put in Gambas 3 yet. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Nov 5 14:45:39 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 14:45:39 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <200911051154.33532.gambas@...1...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> Message-ID: <4AF2D703.7070005@...626...> Beno?t Minisini a ?crit : ... > But if rebooting your Linux server does not make the application work again, I > can't really suspect Gambas, as it does not save anything on the hard disk, > especially the network component. > > Did you test the connection with telnet, or any other non-Gambas program? Did > you test another socket server application not made in Gambas? > > The only possibility I see would be a memory corruption in the network > component - it is possible, I didn't write it :-). By reading the source code > of the Listen() method, I didn't see anything that could lead to that. But I > will check again. May be a RAM is corrupted, running a full memtest86+ could reveal that (well @ least 2 tests: while physically swapping RAMs between tests in order to completely test low addresses of the 1st one) -- Must be getting close to town -- we're hitting more people. From rohnny at ...1248... Thu Nov 5 14:31:49 2009 From: rohnny at ...1248... (R. Stormo) Date: Thu, 5 Nov 2009 05:31:49 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <200911051032.42625.gambas@...1...> References: <26126852.post@...1379...> <26160194.post@...1379...> <200911041944.13909.gambas@...1...> <26203186.post@...1379...> <200911051032.42625.gambas@...1...> Message-ID: <26214527.post@...1379...> Beno?t Minisini wrote: > >> >> Here is a program and it do hang when you enable me.width in form1 >> >> http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz >> crash-test-0.0.1.tar.gz >> >> >> ----- >> Regards R. Stormo >> >> >> My Gambas Community http://gambasforum.tk >> > > Your program is an endless loop into Form_Resize. > > Your form is inside a HBox. So changing the Width triggers a deffered > Resize > event. But as the HBox resizes the form later, the Width changed again to > its > initial value, and all the process starts again forever! > > Changing the size of the form inside its Resize event is a bad idea. What > did > you try to achieve? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > It has worked for a couple of years. strange that it just arrived then. You say it's a endless loop.? f1 = NEW Form1(HBox1) f2 = NEW Form2 f3 = NEW Form1 Isn't F1 a new instance of the form also f3 , then it should not be a problem to resize it twice. The reason for the hbox is to show my customers unpayed bills every where, but also show it as tabbed as well. If I disable f1 as well it still hangs, then there is only one that use the form1. ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26214527.html Sent from the gambas-user mailing list archive at Nabble.com. From 12ukwn at ...626... Thu Nov 5 14:36:53 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 14:36:53 +0100 Subject: [Gambas-user] rearrangement In-Reply-To: <1257406403.25150.10.camel@...2273...> References: <4AF270E6.8020505@...626...> <1257406403.25150.10.camel@...2273...> Message-ID: <4AF2D4F5.7050402@...626...> Steven James Drinnan a ?crit : > On Thu, 2009-11-05 at 07:29 +0100, Jean-Yves F. Barbier wrote: >> Hi, >> >> Is there a possibility to rearrange the widgets into the hierarchy >> tree? (ie: move a label from form to hpanel)- I read the old gambas >> beginner guide that say so, but it don't work anymore. >> > > You use the reparent function like this > > Label1.Reparent(hpanel1, hpanel1.X,hpanel1.Y) > > But it's behavior is funny. It positions itself to the label not the > other way round. > > So you need to insert the old x and y pos so the container remains in > the same position. > > Benoit - can you change this behavior? Ie so the control gets reparented > but the parent remains in the same place and the control moves to the > relative place in the new container? Thanks Steven. -- From 12ukwn at ...626... Thu Nov 5 14:35:23 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 14:35:23 +0100 Subject: [Gambas-user] ColumnView don't accept Resizable In-Reply-To: <200911051018.34003.gambas@...1...> References: <4AF26CAA.1030304@...626...> <200911051018.34003.gambas@...1...> Message-ID: <4AF2D49B.7010602@...626...> Beno?t Minisini a ?crit : >> 2.17 Debian sid >> gb.gtk >> =============== >> HI, >> >> I've got: colviwTable.Columns[0].Resizable = FALSE >> and it returns an error, however Resizable is mentionned >> in docs - Is it reserved to Qt or whatelse? >> > > There is no Resizable property on the column in the documentation, at least on > gambasdoc.org. The property is on the ColumnView control itself. Oops, my mistake. -- From gambas at ...1... Thu Nov 5 15:28:28 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 15:28:28 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <26214527.post@...1379...> References: <26126852.post@...1379...> <200911051032.42625.gambas@...1...> <26214527.post@...1379...> Message-ID: <200911051528.28188.gambas@...1...> > Beno?t Minisini wrote: > >> Here is a program and it do hang when you enable me.width in form1 > >> > >> http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz > >> crash-test-0.0.1.tar.gz > >> > >> > >> ----- > >> Regards R. Stormo > >> > >> > >> My Gambas Community http://gambasforum.tk > > > > Your program is an endless loop into Form_Resize. > > > > Your form is inside a HBox. So changing the Width triggers a deffered > > Resize > > event. But as the HBox resizes the form later, the Width changed again to > > its > > initial value, and all the process starts again forever! > > > > Changing the size of the form inside its Resize event is a bad idea. What > > did > > you try to achieve? > > It has worked for a couple of years. strange that it just arrived then. > You say it's a endless loop.? > > f1 = NEW Form1(HBox1) > f2 = NEW Form2 > f3 = NEW Form1 > > Isn't F1 a new instance of the form also f3 , then it should not be a > problem to resize it twice. > Resizing a form inside its resize event is *always* a bug in the design of your application. Setting the width property of a form won't raise a Resize event only if the new width is the same as the old width. > The reason for the hbox is to show my customers unpayed bills every where, > but also show it as > tabbed as well. > > If I disable f1 as well it still hangs, then there is only one that use the > form1. So you replace two possibilities of and endless loop by only one. But you still have one. Regards, -- Beno?t Minisini From gambas.fr at ...626... Thu Nov 5 15:34:21 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 Nov 2009 15:34:21 +0100 Subject: [Gambas-user] Report generator like en MS Access ? In-Reply-To: <1257412708.6470.3.camel@...40...> References: <1d3c54df0911050052j346e650ub33a14fce8a99c48@...627...> <1257412708.6470.3.camel@...40...> Message-ID: <6324a42a0911050634n7cd64253gb1ed4fdd5112eff8@...627...> 2009/11/5 Charlie Reinl : > Am Donnerstag, den 05.11.2009, 09:52 +0100 schrieb Speedy Gonzales: >> Hi, >> >> I would like to know if it exists a graphical report generator tool like the >> one in MSAccess for Gambas 2 or 3 ? >> i hope as soon as it is possible :/ I'm waiting for the report drawing part on the ide as i don't kwow how to do this par of the job ! The report part is doing as 60 % in gb.report. But it really need more work on it. the gambas will be complete as access is.(well... not exactly) >> Thanks for your replies. > > Salut, > > not like Access. But we work on a gambas2 version from DBReport. > You can find at http://sourceforge.net/projects/dbreport/ > Try it and tell me if it is useful for you. > > -- > Amicalment > Charlie > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 5 15:49:06 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 Nov 2009 15:49:06 +0100 Subject: [Gambas-user] ColumnView don't accept Resizable In-Reply-To: <4AF2D49B.7010602@...626...> References: <4AF26CAA.1030304@...626...> <200911051018.34003.gambas@...1...> <4AF2D49B.7010602@...626...> Message-ID: <6324a42a0911050649n32d46be6sbbc6175dcbc5a0ea@...627...> de facto mine too 2009/11/5 Jean-Yves F. Barbier <12ukwn at ...626...>: > Beno?t Minisini a ?crit : >>> 2.17 Debian sid >>> gb.gtk >>> =============== >>> HI, >>> >>> I've got: colviwTable.Columns[0].Resizable = FALSE >>> and it returns an error, however Resizable is mentionned >>> in docs - Is it reserved to Qt or whatelse? >>> >> >> There is no Resizable property on the column in the documentation, at least on >> gambasdoc.org. The property is on the ColumnView control itself. > > Oops, my mistake. > > -- > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Thu Nov 5 15:54:04 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Nov 2009 15:54:04 +0100 Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <200911051528.28188.gambas@...1...> References: <26126852.post@...1379...> <200911051032.42625.gambas@...1...> <26214527.post@...1379...> <200911051528.28188.gambas@...1...> Message-ID: <4AF2E70C.5020701@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini wrote: >> >>>> Here is a program and it do hang when you enable me.width in form1 >>>> >>>> http://old.nabble.com/file/p26203186/crash-test-0.0.1.tar.gz >>>> crash-test-0.0.1.tar.gz >>>> >>>> >>>> ----- >>>> Regards R. Stormo >>>> >>>> >>>> My Gambas Community http://gambasforum.tk >>>> >>> Your program is an endless loop into Form_Resize. >>> >>> Your form is inside a HBox. So changing the Width triggers a deffered >>> Resize >>> event. But as the HBox resizes the form later, the Width changed again to >>> its >>> initial value, and all the process starts again forever! >>> >>> Changing the size of the form inside its Resize event is a bad idea. What >>> did >>> you try to achieve? >>> >> It has worked for a couple of years. strange that it just arrived then. >> You say it's a endless loop.? >> >> f1 = NEW Form1(HBox1) >> f2 = NEW Form2 >> f3 = NEW Form1 >> >> Isn't F1 a new instance of the form also f3 , then it should not be a >> problem to resize it twice. >> >> > > Resizing a form inside its resize event is *always* a bug in the design of > your application. > > Setting the width property of a form won't raise a Resize event only if the > new width is the same as the old width. > ...but you can use a global lock variable to avoid the endless loop: private resize_dont_reenter as boolean = false public sub Form_Resize() if resize_dont_reenter then resize_dont_reenter = false return end if ' in the same place where you fiddle with the form resize_dont_reenter = true ... ' do your stuff which will raise the event end I don't see why it should be a bug to want to resize a form inside its resize event handler. If I want to put constraints in the dimensions of a form (say, just for fun, "the width of a form should be a multiple of 32 pixels"), it is logic to place such manipulation in the resize event handler, or some place inherent to it. May be that one can object.lock() the form, or use a lock variable, or use a flag to defer the manipulation perhaps through a timer. But to say "it is an error to resize a form at the time the user resizes it" it seems to much to me. Regards, Doriano From rohnny at ...1248... Thu Nov 5 15:56:33 2009 From: rohnny at ...1248... (R. Stormo) Date: Thu, 5 Nov 2009 06:56:33 -0800 (PST) Subject: [Gambas-user] Karmic sqlite problem. In-Reply-To: <200911051528.28188.gambas@...1...> References: <26126852.post@...1379...> <26160194.post@...1379...> <200911041944.13909.gambas@...1...> <26203186.post@...1379...> <200911051032.42625.gambas@...1...> <26214527.post@...1379...> <200911051528.28188.gambas@...1...> Message-ID: <26215733.post@...1379...> Beno?t Minisini wrote: > > > > Resizing a form inside its resize event is *always* a bug in the design of > your application. > > > If you put me.width= 100 in form2 it does not hang, why then. If I use the form and code on several applications I simplify my programming by resize it on resize event. ex. I want not to have a modular screen. But the form are not allowed to be in full screen and not allowed to be smaler than xx. If it's so set the width and height. Where to do that if not in resize event. ----- Regards R. Stormo My Gambas Community http://gambasforum.tk -- View this message in context: http://old.nabble.com/Karmic-sqlite-problem.-tp26126852p26215733.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Thu Nov 5 16:15:13 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 Nov 2009 17:15:13 +0200 Subject: [Gambas-user] Question Rnd vb to gambas In-Reply-To: <26160471.post@...1379...> References: <26160471.post@...1379...> Message-ID: <384d3900911050715y6d5cd2b7o2b3a83e1ff12a917@...627...> What is the wanted output? Perhaps you mean; TextArea1.Text &= ListBox2[y].Text & "\n" Jussi On Thu, Nov 5, 2009 at 02:09, Dmxa wrote: > > I have a doubt, not long ago I started with the gambas2 and I am proving of > passing 1 program Rnd of VB08 to gambas2 but when doing the function Rnd > from a listbox to a textbox I do not obtain to leave. > in VB08 use: > Dim i2 As Integer > i2 = Int(Rnd() * (lbDatos2.Items.Count - 1)) > lis.lisx.Text = lis.lisx.Text & lbDatos2.Items.Item(i2) & vbCrLf & vbCrLf > exampe: list items : a, b, c and d. -> use this command and select randon 1 > item of list and print en textbox -> b > but, i have read manual but follow tied up, using the: > DIM y AS Integer > ? ? ? ?y = Int(Rnd() * (ListBox2.List.Count - 1)) > ? ? ? ?TextArea1.Text = TextArea1.Text & ListBox2.List.Join(y) & "\n" > following numbers go out me the contents of the the ready: list items: a, b, > c and d, use the command -> a2b2c2d > I have varied formulates her but the same always comes out: > ?ListBox2.List.Join((y), "-") ---> -a-3-b-3-c-3-d- > does anybody know as it can be made? > > PD: the equivalent link label in gambas who are? > -- > View this message in context: http://old.nabble.com/Question-Rnd-vb-to-gambas-tp26160471p26160471.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Nov 5 16:20:54 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 Nov 2009 17:20:54 +0200 Subject: [Gambas-user] Video4Linux In-Reply-To: References: Message-ID: <384d3900911050720n19f13671u1df4ab663a4f2334@...627...> http://gambas.sourceforge.net/en/main.html http://gambasdoc.org/help But if you want .deb etc. of latest Gambas release, I don't know where to get it. I think you have to compile it by your self. Jussi On Wed, Nov 4, 2009 at 21:51, Hartmut Eilers wrote: > Thank you for your fast answer Benoit. > Is it planned to support V4L2 in Version 3.0 or is it usable. > Is it worth to give Version 3.0 a test with my video app or > do I have to wait ?. > > Is it possible to install Version 3 in parallel to my version 2.x > i have installed from the ubuntu repos ? > > Where are the most uptodate Webpages about gambas. > > thanks and regards > Hartmut > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Nov 5 16:25:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 16:25:30 +0100 Subject: [Gambas-user] rearrangement In-Reply-To: <1257406403.25150.10.camel@...2273...> References: <4AF270E6.8020505@...626...> <1257406403.25150.10.camel@...2273...> Message-ID: <200911051625.30648.gambas@...1...> > On Thu, 2009-11-05 at 07:29 +0100, Jean-Yves F. Barbier wrote: > > Hi, > > > > Is there a possibility to rearrange the widgets into the hierarchy > > tree? (ie: move a label from form to hpanel)- I read the old gambas > > beginner guide that say so, but it don't work anymore. > > You use the reparent function like this > > Label1.Reparent(hpanel1, hpanel1.X,hpanel1.Y) > > But it's behavior is funny. It positions itself to the label not the > other way round. > > So you need to insert the old x and y pos so the container remains in > the same position. > > Benoit - can you change this behavior? Ie so the control gets reparented > but the parent remains in the same place and the control moves to the > relative place in the new container? > Can you explain me again? I don't understand what you want to mean. -- Beno?t Minisini From 12ukwn at ...626... Thu Nov 5 16:45:01 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 16:45:01 +0100 Subject: [Gambas-user] rearrangement In-Reply-To: <200911051625.30648.gambas@...1...> References: <4AF270E6.8020505@...626...> <1257406403.25150.10.camel@...2273...> <200911051625.30648.gambas@...1...> Message-ID: <4AF2F2FD.3010202@...626...> Beno?t Minisini a ?crit : >> On Thu, 2009-11-05 at 07:29 +0100, Jean-Yves F. Barbier wrote: >>> Hi, >>> >>> Is there a possibility to rearrange the widgets into the hierarchy >>> tree? (ie: move a label from form to hpanel)- I read the old gambas >>> beginner guide that say so, but it don't work anymore. >> You use the reparent function like this >> >> Label1.Reparent(hpanel1, hpanel1.X,hpanel1.Y) >> >> But it's behavior is funny. It positions itself to the label not the >> other way round. >> >> So you need to insert the old x and y pos so the container remains in >> the same position. >> >> Benoit - can you change this behavior? Ie so the control gets reparented >> but the parent remains in the same place and the control moves to the >> relative place in the new container? >> > > Can you explain me again? I don't understand what you want to mean. Could it be possible to reparent graphically from the hierarchy tree? As a beginner I often rage against that lack of option because I'm obliged to suppress and redraw almost everything if I missed an underlaying container (and I'm surely not the only one touched) JY -- From gambas at ...1... Thu Nov 5 16:51:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 16:51:57 +0100 Subject: [Gambas-user] rearrangement In-Reply-To: <4AF2F2FD.3010202@...626...> References: <4AF270E6.8020505@...626...> <200911051625.30648.gambas@...1...> <4AF2F2FD.3010202@...626...> Message-ID: <200911051651.57271.gambas@...1...> > Beno?t Minisini a ?crit : > >> On Thu, 2009-11-05 at 07:29 +0100, Jean-Yves F. Barbier wrote: > >>> Hi, > >>> > >>> Is there a possibility to rearrange the widgets into the hierarchy > >>> tree? (ie: move a label from form to hpanel)- I read the old gambas > >>> beginner guide that say so, but it don't work anymore. > >> > >> You use the reparent function like this > >> > >> Label1.Reparent(hpanel1, hpanel1.X,hpanel1.Y) > >> > >> But it's behavior is funny. It positions itself to the label not the > >> other way round. > >> > >> So you need to insert the old x and y pos so the container remains in > >> the same position. > >> > >> Benoit - can you change this behavior? Ie so the control gets reparented > >> but the parent remains in the same place and the control moves to the > >> relative place in the new container? > > > > Can you explain me again? I don't understand what you want to mean. > > Could it be possible to reparent graphically from the hierarchy tree? > As a beginner I often rage against that lack of option because I'm obliged > to suppress and redraw almost everything if I missed an underlaying > container (and I'm surely not the only one touched) > > JY > I don't understand what you are talking about too. :-( If I want to rearrange the hierarchy of my controls, I just cut them and paste them in the new container. -- Beno?t Minisini From 12ukwn at ...626... Thu Nov 5 17:02:51 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 05 Nov 2009 17:02:51 +0100 Subject: [Gambas-user] rearrangement In-Reply-To: <200911051651.57271.gambas@...1...> References: <4AF270E6.8020505@...626...> <200911051625.30648.gambas@...1...> <4AF2F2FD.3010202@...626...> <200911051651.57271.gambas@...1...> Message-ID: <4AF2F72B.70007@...626...> Beno?t Minisini a ?crit : >> Beno?t Minisini a ?crit : >>>> On Thu, 2009-11-05 at 07:29 +0100, Jean-Yves F. Barbier wrote: >>>>> Hi, >>>>> >>>>> Is there a possibility to rearrange the widgets into the hierarchy >>>>> tree? (ie: move a label from form to hpanel)- I read the old gambas >>>>> beginner guide that say so, but it don't work anymore. >>>> You use the reparent function like this >>>> >>>> Label1.Reparent(hpanel1, hpanel1.X,hpanel1.Y) >>>> >>>> But it's behavior is funny. It positions itself to the label not the >>>> other way round. >>>> >>>> So you need to insert the old x and y pos so the container remains in >>>> the same position. >>>> >>>> Benoit - can you change this behavior? Ie so the control gets reparented >>>> but the parent remains in the same place and the control moves to the >>>> relative place in the new container? >>> Can you explain me again? I don't understand what you want to mean. >> Could it be possible to reparent graphically from the hierarchy tree? >> As a beginner I often rage against that lack of option because I'm obliged >> to suppress and redraw almost everything if I missed an underlaying >> container (and I'm surely not the only one touched) >> >> JY >> > > I don't understand what you are talking about too. :-( > > If I want to rearrange the hierarchy of my controls, I just cut them and paste > them in the new container. Oops, I'm dulled: I didn't even think about making in the drawing area. (the old pdf only told about snip/snap into the hierarchy tree.) Sorry for the noise. -- From nando_f at ...951... Thu Nov 5 18:02:52 2009 From: nando_f at ...951... (nando) Date: Thu, 5 Nov 2009 12:02:52 -0500 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <384d3900911040921j1dfeebaes3771c12b2dd120c2@...627...> References: <384d3900911040921j1dfeebaes3771c12b2dd120c2@...627...> Message-ID: <20091105170016.M71209@...951...> I wonder if Benoit has contemplated multi-threading for Gambas? Such as.. SUB PLURAL DoSomething (X, Y, Z) 'each time this is called, a new instance is running END -Fernando ---------- Original Message ----------- From: Jussi Lahtinen To: mailing list for gambas users Sent: Wed, 4 Nov 2009 19:21:22 +0200 Subject: Re: [Gambas-user] Multithreaded Programs > You can write two separated gambas applications that communicate to each other. > That way you can have two threads. > > If you want speed up your program, I suggest that you first measure > where is the actual bottleneck. > Then look better algorithm for that task. > If not possible, consider to write C/C++ library for that task. > > Jussi > > On Wed, Nov 4, 2009 at 18:18, Hartmut Eilers wrote: > > Hallo List, > > > > is it possible to write multithreaded programs that support > > multicore or SMP systems with Gambas? > > > > Thanks for help > > Hartmut > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Thu Nov 5 18:12:19 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 18:12:19 +0100 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <20091105170016.M71209@...951...> References: <384d3900911040921j1dfeebaes3771c12b2dd120c2@...627...> <20091105170016.M71209@...951...> Message-ID: <200911051812.19988.gambas@...1...> > I wonder if Benoit has contemplated multi-threading for Gambas? > Such as.. > > SUB PLURAL DoSomething (X, Y, Z) > 'each time this is called, a new instance is running > > END > > -Fernando > The Gambas interpreter is not multi-threaded, and will never be unless it is rewritten. And I will do that only if I find multi-threading useful for writing GUI applications, which is not the case until now. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Nov 5 19:03:19 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 Nov 2009 20:03:19 +0200 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <200911051812.19988.gambas@...1...> References: <384d3900911040921j1dfeebaes3771c12b2dd120c2@...627...> <20091105170016.M71209@...951...> <200911051812.19988.gambas@...1...> Message-ID: <384d3900911051003w76fb21f0nb7b2028089306736@...627...> I pretty much agree. Gambas as well as other RAD languages are very good for GUI programming, and generally for not CPU intensive purposes. If you really need speed, use libraries written with C/C++ or similar. BUT it would be very nice if Gambas could handle most things so quickly that you don't need to use C/C++. Maybe Gambas could launch multiple interpreters to enable multi-threading..? But I think you have already considered and discarded that idea... Maybe interpreter itself should use multi-threading? Although I don't know is there yet any good way to do that, meaning without installing TBB or similar to enable easy using like parallel_for, parallel_loop etc. Jussi 2009/11/5 Beno?t Minisini : >> I wonder if Benoit has contemplated multi-threading for Gambas? >> Such as.. >> >> SUB PLURAL DoSomething (X, Y, Z) >> ? 'each time this is called, a new instance is running >> >> END >> >> -Fernando >> > > The Gambas interpreter is not multi-threaded, and will never be unless it is > rewritten. > > And I will do that only if I find multi-threading useful for writing GUI > applications, which is not the case until now. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Nov 5 19:21:50 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 5 Nov 2009 19:21:50 +0100 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <384d3900911051003w76fb21f0nb7b2028089306736@...627...> References: <200911051812.19988.gambas@...1...> <384d3900911051003w76fb21f0nb7b2028089306736@...627...> Message-ID: <200911051921.50071.gambas@...1...> > I pretty much agree. > Gambas as well as other RAD languages are very good for GUI > programming, and generally for not CPU intensive purposes. > If you really need speed, use libraries written with C/C++ or similar. > BUT it would be very nice if Gambas could handle most things so > quickly that you don't need to use C/C++. > > Maybe Gambas could launch multiple interpreters to enable > multi-threading..? But I think you have already considered and discarded > that idea... > > Maybe interpreter itself should use multi-threading? > Although I don't know is there yet any good way to do that, meaning > without installing TBB or similar to enable > easy using like parallel_for, parallel_loop etc. > > Jussi > I don't like doing that, but hey, here is an authoritative argument. :-) "A computer is a state machine. Threads are for people who can't program state machines." - Alan Cox. If you want a detailed discussion about that, read the Linux Kernel Mailing- List. http://lkml.indiana.edu/hypermail/linux/kernel/0106.2/index.html#400 Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Nov 5 21:24:50 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 5 Nov 2009 22:24:50 +0200 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <200911051921.50071.gambas@...1...> References: <200911051812.19988.gambas@...1...> <384d3900911051003w76fb21f0nb7b2028089306736@...627...> <200911051921.50071.gambas@...1...> Message-ID: <384d3900911051224w4b8c5e73x96877807ad1abdd6@...627...> Hmmm... interesting. Thanks for the link! Jussi 2009/11/5 Beno?t Minisini : >> I pretty much agree. >> Gambas as well as other RAD languages are very good for GUI >> programming, and generally for not CPU intensive purposes. >> If you really need speed, use libraries written with C/C++ or similar. >> BUT it would be very nice if Gambas could handle most things so >> quickly that you don't need to use C/C++. >> >> Maybe Gambas could launch multiple interpreters to enable >> ?multi-threading..? But I think you have already considered and discarded >> ?that idea... >> >> Maybe interpreter itself should use multi-threading? >> Although I don't know is there yet any good way to do that, meaning >> without installing TBB or similar to enable >> easy using like parallel_for, parallel_loop etc. >> >> Jussi >> > > I don't like doing that, but hey, here is an authoritative argument. :-) > > "A computer is a state machine. Threads are for people who can't program state > machines." - Alan Cox. > > If you want a detailed discussion about that, read the Linux Kernel Mailing- > List. > > http://lkml.indiana.edu/hypermail/linux/kernel/0106.2/index.html#400 > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 5 21:30:32 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 5 Nov 2009 21:30:32 +0100 Subject: [Gambas-user] Question Rnd vb to gambas In-Reply-To: <384d3900911050715y6d5cd2b7o2b3a83e1ff12a917@...627...> References: <26160471.post@...1379...> <384d3900911050715y6d5cd2b7o2b3a83e1ff12a917@...627...> Message-ID: <6324a42a0911051230r2afc3098wc0150f364385db1d@...627...> Dim i2 As Integer i2 = Int(Rnd() * (lbDatos2.Items.Count - 1)) lis.lisx.Text = lis.lisx.Text & lbDatos2.Items.Item(i2) & vbCrLf & vbCrLf gambas Dim i2 as integer i2 = int(Rnd()*(lbDatos2.Count-1) txtB.Text &= lbDatos2[i2] & "\n\n" that's all :) From dmxa69 at ...626... Thu Nov 5 22:51:54 2009 From: dmxa69 at ...626... (Dmxa) Date: Thu, 5 Nov 2009 13:51:54 -0800 (PST) Subject: [Gambas-user] Question Rnd vb to gambas In-Reply-To: <26160471.post@...1379...> References: <26160471.post@...1379...> Message-ID: <26222790.post@...1379...> Thx all for help XD Dmxa wrote: > > I have a doubt, not long ago I started with the gambas2 and I am proving > of passing 1 program Rnd of VB08 to gambas2 but when doing the function > Rnd from a listbox to a textbox I do not obtain to leave. > in VB08 use: > Dim i2 As Integer > i2 = Int(Rnd() * (lbDatos2.Items.Count - 1)) > lis.lisx.Text = lis.lisx.Text & lbDatos2.Items.Item(i2) & vbCrLf & vbCrLf > exampe: list items : a, b, c and d. -> use this command and select randon > 1 item of list and print en textbox -> b > but, i have read manual but follow tied up, using the: > DIM y AS Integer > y = Int(Rnd() * (ListBox2.List.Count - 1)) > TextArea1.Text = TextArea1.Text & ListBox2.List.Join(y) & "\n" > following numbers go out me the contents of the the ready: list items: a, > b, c and d, use the command -> a2b2c2d > I have varied formulates her but the same always comes out: > ListBox2.List.Join((y), "-") ---> -a-3-b-3-c-3-d- > does anybody know as it can be made? > > PD: the equivalent link label in gambas who are? > -- View this message in context: http://old.nabble.com/Question-Rnd-vb-to-gambas-tp26160471p26222790.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Thu Nov 5 23:02:24 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 05 Nov 2009 23:02:24 +0100 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <200911051921.50071.gambas@...1...> References: <200911051812.19988.gambas@...1...> <384d3900911051003w76fb21f0nb7b2028089306736@...627...> <200911051921.50071.gambas@...1...> Message-ID: <4AF34B70.9030100@...1909...> Beno?t Minisini ha scritto: >> I pretty much agree. >> Gambas as well as other RAD languages are very good for GUI >> programming, and generally for not CPU intensive purposes. >> If you really need speed, use libraries written with C/C++ or similar. >> BUT it would be very nice if Gambas could handle most things so >> quickly that you don't need to use C/C++. >> >> Maybe Gambas could launch multiple interpreters to enable >> multi-threading..? But I think you have already considered and discarded >> that idea... >> >> Maybe interpreter itself should use multi-threading? >> Although I don't know is there yet any good way to do that, meaning >> without installing TBB or similar to enable >> easy using like parallel_for, parallel_loop etc. >> >> Jussi >> >> > > I don't like doing that, but hey, here is an authoritative argument. :-) > > "A computer is a state machine. Threads are for people who can't program state > machines." - Alan Cox. > "A computer is made of flip-flops (the very basic unit of memory). High level languages are for people who don't understand computers - those who understand them are perfectly happy with punched paper tapes and machine-level languages" - Doriano Blengino. Without multi-threading and multi-tasking there would not be computers as we know them. Full stop. This is not to say that gambas should have multi-threading, nor that Alan Cox is stupid. But that affirmation is. More on this, if requested. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From hartmut at ...2307... Fri Nov 6 00:33:29 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Fri, 6 Nov 2009 00:33:29 +0100 Subject: [Gambas-user] Video4Linux (Jussi Lahtinen) Message-ID: Hallo Benoit >> >> Where are the most uptodate Webpages about gambas. >What do you mean? Until today I only found http://gambasrad.org/ which hosts the Mailing List as Forum, seems to be the Homepage but has the last Messages from 2007. Is it your domain ? There should be at least a message stating to http://gambas.sourceforge.net/en/main.html So thank you Jussi, you brought me to http://gambas.sourceforge.net/en/main.html That answered my question. And from my current point of view ( my first Gambas Projekt ) I must pull my hat ( do you say so in english ). Hey this is a really cool language to rapidly make ideas work, really good job and thanks for your work I do compile my own 3.0 I'm sure its worth Regards Hartmut From steven at ...2097... Fri Nov 6 02:49:12 2009 From: steven at ...2097... (Steven James Drinnan) Date: Fri, 06 Nov 2009 09:49:12 +0800 Subject: [Gambas-user] Feature Request: Reparent function behaviour change. Message-ID: <1257472153.5541.31.camel@...2273...> Beniot - I tough I'd better break this out as it does not relate to the original thread. Lets say that you have a label name 'label1' and 2 frames named frame1 and 'frame2'. And you placed 'label1' in 'frame1'. For some reason you wish to move in code. So you use the 'reparent' function. The pseudo code frame1.move(10,10,100,100) frame1.move(500,10,100,100) label1.X = 10 label1.Y = 10 'the label box is already in 'frame1' so it has relative x y position to 'frame1' 'now reparent the label label1.reparent(frame2) Now what happens is that frame2 now moves to X and Y location of the label. If you use ... label1.reparent(frame2,500,10) the frame is in the correct place but 'label1' has now got x=0 and y=0 I would like to see the following default behavior: 1. New parent retains its properties. I.e stay where it is and does not move. 2. The label gets re-parented and all all its values remain the same. 3. The x and y optional values should be for new position for the control inside the new parent. If you are not sure what I mean take a look at the enclosed example. -------------- next part -------------- A non-text attachment was scrubbed... Name: Reparent.tar.gz Type: application/x-compressed-tar Size: 9283 bytes Desc: not available URL: -------------- 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 gambas at ...1... Fri Nov 6 03:17:01 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 6 Nov 2009 03:17:01 +0100 Subject: [Gambas-user] Feature Request: Reparent function behaviour change. In-Reply-To: <1257472153.5541.31.camel@...2273...> References: <1257472153.5541.31.camel@...2273...> Message-ID: <200911060317.01476.gambas@...1...> > Beniot - I tough I'd better break this out as it does not relate to the > original thread. > > Lets say that you have a label name 'label1' and 2 frames named frame1 > and 'frame2'. And you placed 'label1' in 'frame1'. For some reason you > wish to move in code. So you use the 'reparent' function. > > The pseudo code > > frame1.move(10,10,100,100) > frame1.move(500,10,100,100) > > label1.X = 10 > label1.Y = 10 > > 'the label box is already in 'frame1' so it has relative x y position to > 'frame1' > > 'now reparent the label > > label1.reparent(frame2) > > Now what happens is that frame2 now moves to X and Y location of the > label. If you use ... > > label1.reparent(frame2,500,10) > > the frame is in the correct place but 'label1' has now got x=0 and y=0 > > I would like to see the following default behavior: > 1. New parent retains its properties. I.e stay where it is and does not > move. > 2. The label gets re-parented and all all its values remain the same. > 3. The x and y optional values should be for new position for the > control inside the new parent. > > If you are not sure what I mean take a look at the enclosed example. > Thanks, I see! This is a stupid bug in the gb.gtk component. I will fix it before releasing 2.17.1. Regards, -- Beno?t Minisini From kevinfishburne at ...1887... Fri Nov 6 05:39:40 2009 From: kevinfishburne at ...1887... (kevinfishburne) Date: Thu, 5 Nov 2009 20:39:40 -0800 (PST) Subject: [Gambas-user] code editor displays incorrect colors and character formatting In-Reply-To: <200911031959.26223.gambas@...1...> References: <26159955.post@...1379...> <200911031959.26223.gambas@...1...> Message-ID: <26226550.post@...1379...> Beno?t Minisini wrote: > > Wow. Completely weird. I will recompile Gambas 2 on my now updated 64 bits > Ubuntu 9.10, to see if I get the same problem. > I did a clean install of Karmic, installed all the necessary dependencies, then recompiled and installed GAMBAS 2.17.0. Interestingly it is working fine now and shows no sign of the display issues. Wish there was a way I could recreate the "bug," if it was a bug, but the partition's been formatted so that's not possible. Thanks for looking into it anyway. ----- Kevin Fishburne, Eight Virtues www: http://sales.eightvirtues.com http://sales.eightvirtues.com e-mail: mailto:sales at ...1887... sales at ...1887... phone: (770) 853-6271 -- View this message in context: http://old.nabble.com/code-editor-displays-incorrect-colors-and-character-formatting-tp26159955p26226550.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Fri Nov 6 06:08:08 2009 From: wdahn at ...1000... (Werner) Date: Fri, 06 Nov 2009 13:08:08 +0800 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <4AF34B70.9030100@...1909...> References: <200911051812.19988.gambas@...1...> <384d3900911051003w76fb21f0nb7b2028089306736@...627...> <200911051921.50071.gambas@...1...> <4AF34B70.9030100@...1909...> Message-ID: <4AF3AF38.5080409@...1000...> Doriano Blengino wrote: > Beno?t Minisini ha scritto: > >>> I pretty much agree. >>> Gambas as well as other RAD languages are very good for GUI >>> programming, and generally for not CPU intensive purposes. >>> If you really need speed, use libraries written with C/C++ or similar. >>> BUT it would be very nice if Gambas could handle most things so >>> quickly that you don't need to use C/C++. >>> >>> Maybe Gambas could launch multiple interpreters to enable >>> multi-threading..? But I think you have already considered and discarded >>> that idea... >>> >>> Maybe interpreter itself should use multi-threading? >>> Although I don't know is there yet any good way to do that, meaning >>> without installing TBB or similar to enable >>> easy using like parallel_for, parallel_loop etc. >>> >>> Jussi >>> >>> >>> >> I don't like doing that, but hey, here is an authoritative argument. :-) >> >> "A computer is a state machine. Threads are for people who can't program state >> machines." - Alan Cox. >> >> > "A computer is made of flip-flops (the very basic unit of memory). High > level languages are for people who don't understand computers - those > who understand them are perfectly happy with punched paper tapes and > machine-level languages" - Doriano Blengino. > > Without multi-threading and multi-tasking there would not be computers > as we know them. Full stop. This is not to say that gambas should have > multi-threading, nor that Alan Cox is stupid. But that affirmation is. > More on this, if requested. > > Regards, > > Surely Alan Cox had meant that to be understood with a nudge and a wink. :-) Multi - threading opens a whole can of worms. Gambas 2 is rock solid and if there has to be a choice between robustness and performance I take the former any time. Having said that, I do have difficulties getting a ticker message to run across the bottom of a 42 inch plasma screen without noticeable jitter while the rest of the screen is doing Image.Fade (on a dual core CPU). Maybe the answer to my woes is to take a long hard look at openGL. Regards, Werner From nospam.nospam.nospam at ...626... Fri Nov 6 07:16:05 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Fri, 06 Nov 2009 17:16:05 +1100 Subject: [Gambas-user] Gambas3 Message-ID: <1257488165.3295.12.camel@...2318...> Is it worth trying Gambas3 while it's not released? Or should I stick with Gambas2? Are there any instructions on how to get Gambas3 and compile it? From nospam.nospam.nospam at ...626... Fri Nov 6 08:15:38 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Fri, 06 Nov 2009 18:15:38 +1100 Subject: [Gambas-user] =?iso-8859-1?q?PING_=3E_Beno=EEt_=28ServerSocket=29?= In-Reply-To: <200911051154.33532.gambas@...1...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> Message-ID: <1257491738.3295.13.camel@...2318...> On Thu, 2009-11-05 at 11:54 +0100, Beno?t Minisini wrote: > Did you test the connection with telnet, or any other non-Gambas program? Did > you test another socket server application not made in Gambas? No. I don't have one. > The only possibility I see would be a memory corruption in the network > component - it is possible, I didn't write it :-). By reading the source code > of the Listen() method, I didn't see anything that could lead to that. But I > will check again. That's all I'm asking :) > A way to see these kinds of error is running Gambas inside valgrind: > > $ cd /path/to/my/application/project > $ valgrind --tool=memcheck --num-callers=40 --track-origins=yes gbx2 > ... > > And tell me all the messages reported by valgrind during the life of the > application. > > > > The broken pipe error is irrelevant because I am using a different > > machine and still have the same issue. > > > > I thought you were talking about an error message from your gambas > application. The message was in Gambas. A Windows server rebooted. However since then I have changed machines (both the server machine and the workstation) and had the same problem with PUBLIC SUB Socket_Read() or WRITE #Client in PUBLIC SUB Socket_Ready()... until I swapped those two lines of code around. > > > the ServerSocket example stopped working too > > > > Yes, it did. > > > > I'll keep my eye on the problem. I want to be able to say, "I TOLD YOU > > SO!!!" > > > > Mind you, it doesn't exactly instil confidence in me to bother getting > > the application finished. > > > > If the information you gave are all exact (rebooting changed nothing, suddenly > everything works again), the problem should come from something outside of the > operating system. It wasn't working until I the instant I swapped those two lines then, VOILA! It suddenly worked and refused to let me repeat the problem. Anyway, all I wanted was for you to take a look and you've offered to do that so I'm happy. If it happens again I'll let you know if I discover anything. Thanks, your help is appreciated. > Regards, > From nospam.nospam.nospam at ...626... Fri Nov 6 08:19:49 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Fri, 06 Nov 2009 18:19:49 +1100 Subject: [Gambas-user] =?iso-8859-1?q?PING_=3E_Beno=EEt_=28ServerSocket=29?= In-Reply-To: <4AF2D703.7070005@...626...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> <4AF2D703.7070005@...626...> Message-ID: <1257491989.3295.16.camel@...2318...> On Thu, 2009-11-05 at 14:45 +0100, Jean-Yves F. Barbier wrote: > Beno?t Minisini a ?crit : > ... > > But if rebooting your Linux server does not make the application work again, I > > can't really suspect Gambas, as it does not save anything on the hard disk, > > especially the network component. > > > > Did you test the connection with telnet, or any other non-Gambas program? Did > > you test another socket server application not made in Gambas? > > > > The only possibility I see would be a memory corruption in the network > > component - it is possible, I didn't write it :-). By reading the source code > > of the Listen() method, I didn't see anything that could lead to that. But I > > will check again. > > May be a RAM is corrupted, running a full memtest86+ could reveal that > (well @ least 2 tests: while physically swapping RAMs between tests in order > to completely test low addresses of the 1st one) Gawd! I've got 8Gig to test. I'll take the advice, just to make sure but the problem has happened on two machines with the very same symptoms. Thanks. From ron at ...1740... Fri Nov 6 08:37:24 2009 From: ron at ...1740... (Ron) Date: Fri, 06 Nov 2009 08:37:24 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <1257491989.3295.16.camel@...2318...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> <4AF2D703.7070005@...626...> <1257491989.3295.16.camel@...2318...> Message-ID: <4AF3D234.9060002@...1740...> Kad Mann wrote: > On Thu, 2009-11-05 at 14:45 +0100, Jean-Yves F. Barbier wrote: > >> Beno?t Minisini a ?crit : >> ... >> >>> But if rebooting your Linux server does not make the application work again, I >>> can't really suspect Gambas, as it does not save anything on the hard disk, >>> especially the network component. >>> >>> Did you test the connection with telnet, or any other non-Gambas program? Did >>> you test another socket server application not made in Gambas? >>> >>> The only possibility I see would be a memory corruption in the network >>> component - it is possible, I didn't write it :-). By reading the source code >>> of the Listen() method, I didn't see anything that could lead to that. But I >>> will check again. >>> >> May be a RAM is corrupted, running a full memtest86+ could reveal that >> (well @ least 2 tests: while physically swapping RAMs between tests in order >> to completely test low addresses of the 1st one) >> > > Gawd! I've got 8Gig to test. I'll take the advice, just to make sure but > the problem has happened on two machines with the very same symptoms. > Thanks. > > Just thinking out loud maybe it helps. You talked about a Windows machine at one end, maybe also check its firewall and antivirus settings, if any. I know for example Kaspersky 2010 sits between all the network connections you have, maybe some strange pattern is seen as evil, and the connection gets cut off in the middle. Check logs. If you transfer lots of (other) network data, make sure your switches/pcs/routers's network interfaces etc. are in the correct mode, full duplex/duplex, lots of equipment doesn't negotiate mode correctly, resulting in one device in half- and the switch in full duplex for example, it seems to work, but not 100%... you get network errors, and strange behavior. I couldn't see if you are running on 64 Bits Linux, I have had many occasions of problems at the startup of my project, some times my project started 30 times in a row without any problem and the 31th time bingo! It made me nuts back then... It had to do with memory space Gambas was loaded in, if it was in 64Bit memory space, it was unstable. (those bugs are fixed by Benoit so don't worry) Just to illustrate that sometimes you oversee something obvious at first, and you point at the wrong code just because you don't know where to look. My 2 cents. Regards, Ron_2nd. From 12ukwn at ...626... Fri Nov 6 08:53:03 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 06 Nov 2009 08:53:03 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <4AF3D234.9060002@...1740...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> <4AF2D703.7070005@...626...> <1257491989.3295.16.camel@...2318...> <4AF3D234.9060002@...1740...> Message-ID: <4AF3D5DF.7010102@...626...> Ron a ?crit : > Kad Mann wrote: >> On Thu, 2009-11-05 at 14:45 +0100, Jean-Yves F. Barbier wrote: >> >>> Beno?t Minisini a ?crit : >>> ... >>> >>>> But if rebooting your Linux server does not make the application work again, I >>>> can't really suspect Gambas, as it does not save anything on the hard disk, >>>> especially the network component. >>>> >>>> Did you test the connection with telnet, or any other non-Gambas program? Did >>>> you test another socket server application not made in Gambas? >>>> >>>> The only possibility I see would be a memory corruption in the network >>>> component - it is possible, I didn't write it :-). By reading the source code >>>> of the Listen() method, I didn't see anything that could lead to that. But I >>>> will check again. >>>> >>> May be a RAM is corrupted, running a full memtest86+ could reveal that >>> (well @ least 2 tests: while physically swapping RAMs between tests in order >>> to completely test low addresses of the 1st one) >>> >> Gawd! I've got 8Gig to test. I'll take the advice, just to make sure but >> the problem has happened on two machines with the very same symptoms. >> Thanks. >> >> > Just thinking out loud maybe it helps. > > You talked about a Windows machine at one end, maybe also check its > firewall and antivirus settings, if any. > I know for example Kaspersky 2010 sits between all the network > connections you have, maybe some strange pattern is seen as evil, and > the connection gets cut off in the middle. Check logs. Yeah, absolutely right. Moreover, back in 2001, norton antivirus clobbered the network (10Mb) down from 780KB/s to 140KB/s even after uninstallation (!) -- I'd love to kiss you, but I just washed my hair. -- Bette Davis, "Cabin in the Cotton" From nospam.nospam.nospam at ...626... Fri Nov 6 09:02:35 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Fri, 06 Nov 2009 19:02:35 +1100 Subject: [Gambas-user] =?iso-8859-1?q?PING_=3E_Beno=EEt_=28ServerSocket=29?= In-Reply-To: <4AF3D234.9060002@...1740...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> <4AF2D703.7070005@...626...> <1257491989.3295.16.camel@...2318...> <4AF3D234.9060002@...1740...> Message-ID: <1257494555.3295.29.camel@...2318...> On Fri, 2009-11-06 at 08:37 +0100, Ron wrote: > Kad Mann wrote: > > On Thu, 2009-11-05 at 14:45 +0100, Jean-Yves F. Barbier wrote: > > > >> Beno?t Minisini a ?crit : > >> ... > >> > >>> But if rebooting your Linux server does not make the application work again, I > >>> can't really suspect Gambas, as it does not save anything on the hard disk, > >>> especially the network component. > >>> > >>> Did you test the connection with telnet, or any other non-Gambas program? Did > >>> you test another socket server application not made in Gambas? > >>> > >>> The only possibility I see would be a memory corruption in the network > >>> component - it is possible, I didn't write it :-). By reading the source code > >>> of the Listen() method, I didn't see anything that could lead to that. But I > >>> will check again. > >>> > >> May be a RAM is corrupted, running a full memtest86+ could reveal that > >> (well @ least 2 tests: while physically swapping RAMs between tests in order > >> to completely test low addresses of the 1st one) > >> > > > > Gawd! I've got 8Gig to test. I'll take the advice, just to make sure but > > the problem has happened on two machines with the very same symptoms. > > Thanks. > > > > > Just thinking out loud maybe it helps. > > You talked about a Windows machine at one end, maybe also check its > firewall and antivirus settings, if any. > I know for example Kaspersky 2010 sits between all the network > connections you have, maybe some strange pattern is seen as evil, and > the connection gets cut off in the middle. Check logs. I have the problem on linux and linux alone. Windows has nothing to do with it. > If you transfer lots of (other) network data, make sure your > switches/pcs/routers's network interfaces etc. are in the correct mode, > full duplex/duplex, Well, that'll be a great help if I have only wireless. Nevertheless my network is wired but the network is not the culprit either. > lots of equipment doesn't negotiate mode correctly, > resulting in one device in half- and the switch in full duplex for > example, it seems to work, but not 100%... you get network errors, and > strange behavior. Also nothing to do with it. The problem occurred first when a Windows server was involved, however it has also happened since on a standalone linux talking to itself on localhost. The second time I posted about the problem I didn't mention Windows because Windows has been completely eliminated from the equation. > I couldn't see if you are running on 64 Bits Linux, I have had many > occasions of problems at the startup of my project, some times my > project started 30 times in a row without any problem and the 31th time > bingo! It made me nuts back then... It had to do with memory space > Gambas was loaded in, if it was in 64Bit memory space, it was unstable. > (those bugs are fixed by Benoit so don't worry) It has happened on both x86 and x64, and I am using x64 right now. > Just to illustrate that sometimes you oversee something obvious at > first, and you point at the wrong code just because you don't know where > to look. Yes, true but I do know where not to look. > My 2 cents. > > Regards, > Ron_2nd. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From 12ukwn at ...626... Fri Nov 6 09:12:57 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Fri, 06 Nov 2009 09:12:57 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <1257494555.3295.29.camel@...2318...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> <4AF2D703.7070005@...626...> <1257491989.3295.16.camel@...2318...> <4AF3D234.9060002@...1740...> <1257494555.3295.29.camel@...2318...> Message-ID: <4AF3DA89.7080104@...626...> Kad Mann a ?crit : ... > > I have the problem on linux and linux alone. Windows has nothing to do > with it. windows might be disturbing the force... ... > Also nothing to do with it. The problem occurred first when a Windows > server was involved, however it has also happened since on a standalone > linux talking to itself on localhost. The second time I posted about the this points the code, as Beno?t suggest, not the network -- From ron at ...1740... Fri Nov 6 09:20:28 2009 From: ron at ...1740... (Ron) Date: Fri, 06 Nov 2009 09:20:28 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <1257494555.3295.29.camel@...2318...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> <4AF2D703.7070005@...626...> <1257491989.3295.16.camel@...2318...> <4AF3D234.9060002@...1740...> <1257494555.3295.29.camel@...2318...> Message-ID: <4AF3DC4C.1080402@...1740...> Kad Mann wrote: > On Fri, 2009-11-06 at 08:37 +0100, Ron wrote: > >> Kad Mann wrote: >> >>> On Thu, 2009-11-05 at 14:45 +0100, Jean-Yves F. Barbier wrote: >>> >>> >>>> Beno?t Minisini a ?crit : >>>> ... >>>> >>>> >>>>> But if rebooting your Linux server does not make the application work again, I >>>>> can't really suspect Gambas, as it does not save anything on the hard disk, >>>>> especially the network component. >>>>> >>>>> Did you test the connection with telnet, or any other non-Gambas program? Did >>>>> you test another socket server application not made in Gambas? >>>>> >>>>> The only possibility I see would be a memory corruption in the network >>>>> component - it is possible, I didn't write it :-). By reading the source code >>>>> of the Listen() method, I didn't see anything that could lead to that. But I >>>>> will check again. >>>>> >>>>> >>>> May be a RAM is corrupted, running a full memtest86+ could reveal that >>>> (well @ least 2 tests: while physically swapping RAMs between tests in order >>>> to completely test low addresses of the 1st one) >>>> >>>> >>> Gawd! I've got 8Gig to test. I'll take the advice, just to make sure but >>> the problem has happened on two machines with the very same symptoms. >>> Thanks. >>> >>> >>> >> Just thinking out loud maybe it helps. >> >> You talked about a Windows machine at one end, maybe also check its >> firewall and antivirus settings, if any. >> I know for example Kaspersky 2010 sits between all the network >> connections you have, maybe some strange pattern is seen as evil, and >> the connection gets cut off in the middle. Check logs. >> > > I have the problem on linux and linux alone. Windows has nothing to do > with it. > > >> If you transfer lots of (other) network data, make sure your >> switches/pcs/routers's network interfaces etc. are in the correct mode, >> full duplex/duplex, >> > > Well, that'll be a great help if I have only wireless. Nevertheless my > network is wired but the network is not the culprit either. > > >> lots of equipment doesn't negotiate mode correctly, >> resulting in one device in half- and the switch in full duplex for >> example, it seems to work, but not 100%... you get network errors, and >> strange behavior. >> > > Also nothing to do with it. The problem occurred first when a Windows > server was involved, however it has also happened since on a standalone > linux talking to itself on localhost. The second time I posted about the > problem I didn't mention Windows because Windows has been completely > eliminated from the equation. > > >> I couldn't see if you are running on 64 Bits Linux, I have had many >> occasions of problems at the startup of my project, some times my >> project started 30 times in a row without any problem and the 31th time >> bingo! It made me nuts back then... It had to do with memory space >> Gambas was loaded in, if it was in 64Bit memory space, it was unstable. >> (those bugs are fixed by Benoit so don't worry) >> > > It has happened on both x86 and x64, and I am using x64 right now. > > >> Just to illustrate that sometimes you oversee something obvious at >> first, and you point at the wrong code just because you don't know where >> to look. >> > > Yes, true but I do know where not to look. > > >> Ok fair enough ... Overlooked the linux-localhost part, so you're right we cannot point at Bill. Did you try to run valgrind tool already like Benoit suggested? It has proven to be very helpful to catch bugs... I had to run it several times in the past and although the output can be massive it's worth the try. Regards, Ron_2nd. From nospam.nospam.nospam at ...626... Fri Nov 6 09:40:38 2009 From: nospam.nospam.nospam at ...626... (Kad Mann) Date: Fri, 06 Nov 2009 19:40:38 +1100 Subject: [Gambas-user] =?iso-8859-1?q?PING_=3E_Beno=EEt_=28ServerSocket=29?= In-Reply-To: <4AF3DC4C.1080402@...1740...> References: <1257412911.4419.63.camel@...2318...> <200911051053.32763.gambas@...1...> <1257416534.4419.78.camel@...2318...> <200911051154.33532.gambas@...1...> <4AF2D703.7070005@...626...> <1257491989.3295.16.camel@...2318...> <4AF3D234.9060002@...1740...> <1257494555.3295.29.camel@...2318...> <4AF3DC4C.1080402@...1740...> Message-ID: <1257496838.6371.1.camel@...2318...> On Fri, 2009-11-06 at 09:20 +0100, Ron wrote: > Ok fair enough ... > Overlooked the linux-localhost part, so you're right we cannot point at > Bill. lol > Did you try to run valgrind tool already like Benoit suggested? Not just yet. I've almost maxed out my bandwidth and still have a week to go before it rolls over so I'm taking the downloading easy. I've made a note to check it out. > It has proven to be very helpful to catch bugs... > I had to run it several times in the past and although the output can be > massive it's worth the try. Thanks, appreciated. From emil at ...1913... Fri Nov 6 09:20:07 2009 From: emil at ...1913... (Emil Tchekov) Date: Fri, 6 Nov 2009 09:20:07 +0100 Subject: [Gambas-user] =?utf-8?q?PING_=3E_Beno=C3=AEt_=28ServerSocket=29?= In-Reply-To: <4AF3DA89.7080104@...626...> Message-ID: -----Urspr?ngliche Nachricht----- Von: Jean-Yves F. Barbier [mailto:12ukwn at ...626...] Gesendet: Freitag, 6. November 2009 09:13 An: mailing list for gambas users Betreff: Re: [Gambas-user]PING > Beno?t (ServerSocket) >Kad Mann a ?crit : >... >> >> I have the problem on linux and linux alone. Windows has nothing to do >> with it. >windows might be disturbing the force... I do not want to start an new discussion about Windows, BUT it is a FORCE disturbance... M$ went for year$ on the Dark $ide of the Force$... As example - just check on FileZilla issues when talking with M$ FTP -> due to incorrect implementation of FTP protocol, after a break, the severs starts the transfer from the very beginning - results in corupted files (>100% filelength issue)... So why should we expect any difference, it is always the same - as we say in Germany - M$ is "cooking his own soup" ... best regards Emil From oceanosoftlapalma at ...626... Fri Nov 6 10:36:30 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Fri, 6 Nov 2009 09:36:30 +0000 Subject: [Gambas-user] Gambas3 In-Reply-To: <1257488165.3295.12.camel@...2318...> References: <1257488165.3295.12.camel@...2318...> Message-ID: take a look in http://gambas.sourceforge.net/ at download link and at READ THESE IMPORTANT NOTES AND THIS PAGE FIRST. * *for production apps I'm only use gambas2 at the moment Regards 2009/11/6 Kad Mann > Is it worth trying Gambas3 while it's not released? Or should I stick > with Gambas2? > > Are there any instructions on how to get Gambas3 and compile it? > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Fri Nov 6 11:44:20 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 06 Nov 2009 11:44:20 +0100 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <4AF3AF38.5080409@...1000...> References: <200911051812.19988.gambas@...1...> <384d3900911051003w76fb21f0nb7b2028089306736@...627...> <200911051921.50071.gambas@...1...> <4AF34B70.9030100@...1909...> <4AF3AF38.5080409@...1000...> Message-ID: <4AF3FE04.9040309@...1909...> Werner ha scritto: > Doriano Blengino wrote: > >> Beno?t Minisini ha scritto: >> >> >>>> I pretty much agree. >>>> Gambas as well as other RAD languages are very good for GUI >>>> programming, and generally for not CPU intensive purposes. >>>> If you really need speed, use libraries written with C/C++ or similar. >>>> BUT it would be very nice if Gambas could handle most things so >>>> quickly that you don't need to use C/C++. >>>> >>>> Maybe Gambas could launch multiple interpreters to enable >>>> multi-threading..? But I think you have already considered and discarded >>>> that idea... >>>> >>>> Maybe interpreter itself should use multi-threading? >>>> Although I don't know is there yet any good way to do that, meaning >>>> without installing TBB or similar to enable >>>> easy using like parallel_for, parallel_loop etc. >>>> >>>> Jussi >>>> >>>> >>>> >>>> >>> I don't like doing that, but hey, here is an authoritative argument. :-) >>> >>> "A computer is a state machine. Threads are for people who can't program state >>> machines." - Alan Cox. >>> >>> >>> >> "A computer is made of flip-flops (the very basic unit of memory). High >> level languages are for people who don't understand computers - those >> who understand them are perfectly happy with punched paper tapes and >> machine-level languages" - Doriano Blengino. >> >> Without multi-threading and multi-tasking there would not be computers >> as we know them. Full stop. This is not to say that gambas should have >> multi-threading, nor that Alan Cox is stupid. But that affirmation is. >> More on this, if requested. >> >> Regards, >> >> >> > Surely Alan Cox had meant that to be understood with a nudge and a wink. :-) > Multi - threading opens a whole can of worms. Gambas 2 is rock solid and > if there has to be a choice between robustness and performance I take > the former any time. > Yes, agreed to all. Nudge and wink should be applied to my sentence too, which was ironic. True that multi-threading brings more problems - compilers do, oop does, java does; every advancing step in every field brings new problems, but also opens new possibilities. The task is to retain the new possibilities, and get rid of problems. Once you have new possibilities, you can choose whether to use them or not. And I agree even on gambas: if, by introducing multithreading, stability would suffer, then it is better to avoid threading. But this is not the question. Benoit said that he does not find a reason to use threads in GUI applications; the same about background processing. I don't see what have these GUI applications so special or so different from other ones. They are applications which, instead of sending results to files, send results to the screen. This is all. If I wanted to write a web server like Apache, but with a nice GUI and using Gambas, I would feel the lack of threading. Threads can simplify a lot certain kinds of problems - and can mess up other kinds of problems. Regards, Doriano From gambas at ...1... Fri Nov 6 11:51:21 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 6 Nov 2009 11:51:21 +0100 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <4AF3FE04.9040309@...1909...> References: <4AF3AF38.5080409@...1000...> <4AF3FE04.9040309@...1909...> Message-ID: <200911061151.21060.gambas@...1...> > Werner ha scritto: > > Doriano Blengino wrote: > >> Beno?t Minisini ha scritto: > >>>> I pretty much agree. > >>>> Gambas as well as other RAD languages are very good for GUI > >>>> programming, and generally for not CPU intensive purposes. > >>>> If you really need speed, use libraries written with C/C++ or similar. > >>>> BUT it would be very nice if Gambas could handle most things so > >>>> quickly that you don't need to use C/C++. > >>>> > >>>> Maybe Gambas could launch multiple interpreters to enable > >>>> multi-threading..? But I think you have already considered and > >>>> discarded that idea... > >>>> > >>>> Maybe interpreter itself should use multi-threading? > >>>> Although I don't know is there yet any good way to do that, meaning > >>>> without installing TBB or similar to enable > >>>> easy using like parallel_for, parallel_loop etc. > >>>> > >>>> Jussi > >>> > >>> I don't like doing that, but hey, here is an authoritative argument. > >>> :-) > >>> > >>> "A computer is a state machine. Threads are for people who can't > >>> program state machines." - Alan Cox. > >> > >> "A computer is made of flip-flops (the very basic unit of memory). High > >> level languages are for people who don't understand computers - those > >> who understand them are perfectly happy with punched paper tapes and > >> machine-level languages" - Doriano Blengino. > >> > >> Without multi-threading and multi-tasking there would not be computers > >> as we know them. Full stop. This is not to say that gambas should have > >> multi-threading, nor that Alan Cox is stupid. But that affirmation is. > >> More on this, if requested. > >> > >> Regards, > > > > Surely Alan Cox had meant that to be understood with a nudge and a wink. > > :-) Multi - threading opens a whole can of worms. Gambas 2 is rock solid > > and if there has to be a choice between robustness and performance I take > > the former any time. > > Yes, agreed to all. Nudge and wink should be applied to my sentence too, > which was ironic. > True that multi-threading brings more problems - compilers do, oop does, > java does; every advancing step in every field brings new problems, but > also opens new possibilities. The task is to retain the new > possibilities, and get rid of problems. Once you have new possibilities, > you can choose whether to use them or not. > And I agree even on gambas: if, by introducing multithreading, stability > would suffer, then it is better to avoid threading. But this is not the > question. Benoit said that he does not find a reason to use threads in > GUI applications; the same about background processing. I don't see what > have these GUI applications so special or so different from other ones. > They are applications which, instead of sending results to files, send > results to the screen. This is all. If I wanted to write a web server > like Apache, but with a nice GUI and using Gambas, I would feel the lack > of threading. Threads can simplify a lot certain kinds of problems - and > can mess up other kinds of problems. > > Regards, > Doriano > OK, but you should not take the example of web servers : the fastest web servers I know do not use threading nor processes, but event-driven programming around select() (or equivalent). As the gambas interpreter does. Regards, -- Beno?t Minisini From gambas.fr at ...626... Fri Nov 6 13:06:26 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 6 Nov 2009 13:06:26 +0100 Subject: [Gambas-user] code editor displays incorrect colors and character formatting In-Reply-To: <200911031959.26223.gambas@...1...> References: <26159955.post@...1379...> <200911031959.26223.gambas@...1...> Message-ID: <6324a42a0911060406k4e88d3a7j3a3458c78388c9ff@...627...> and see if you have the same pb on qt4 than me :/ lost menubar and so on Le 3 novembre 2009 19:59, Beno?t Minisini a ?crit : >> I just recently compiled and installed GAMBAS 2.17.0 from the package >> provided here: >> >> http://prdownloads.sourceforge.net/gambas/gambas2-2.17.0.tar.bz2?download >> >> and while it appears to run and execute programs properly it displays the >> wrong colors and text formatting in the code editor. Some text is >> italicized, even mid-statement, and almost every character has a dot >> overlaying it. I don't know if something went wrong during compiling or >> what... I'm using Ubuntu 9.10 64-bit with all updates installed as of >> 11/02/09. Here's a screenshot: >> >> http://www.eightvirtues.com/misc/GAMBAS.png >> >> Any ideas about how I can correct this are greatly appreciated. >> >> ----- >> Kevin Fishburne, Eight Virtues >> www: ?http://sales.eightvirtues.com http://sales.eightvirtues.com >> e-mail: ?mailto:sales at ...1887... sales at ...1887... >> phone: (770) 853-6271 >> > > Wow. Completely weird. I will recompile Gambas 2 on my now updated 64 bits > Ubuntu 9.10, to see if I get the same problem. > > 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... Fri Nov 6 13:22:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 6 Nov 2009 13:22:08 +0100 Subject: [Gambas-user] code editor displays incorrect colors and character formatting In-Reply-To: <6324a42a0911060406k4e88d3a7j3a3458c78388c9ff@...627...> References: <26159955.post@...1379...> <200911031959.26223.gambas@...1...> <6324a42a0911060406k4e88d3a7j3a3458c78388c9ff@...627...> Message-ID: <200911061322.08127.gambas@...1...> > and see if you have the same pb on qt4 than me :/ > > lost menubar > > and so on > > What are you talking about? -- Beno?t Minisini From gambas.fr at ...626... Fri Nov 6 14:19:00 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 6 Nov 2009 14:19:00 +0100 Subject: [Gambas-user] code editor displays incorrect colors and character formatting In-Reply-To: <200911061322.08127.gambas@...1...> References: <26159955.post@...1379...> <200911031959.26223.gambas@...1...> <6324a42a0911060406k4e88d3a7j3a3458c78388c9ff@...627...> <200911061322.08127.gambas@...1...> Message-ID: <6324a42a0911060519sf982f5m1042f8082e11f04d@...627...> after 6 or seven time run and stop ... the menubar of the ide desapear. and i've always the problem on opening projects ... have you receipt the screen shot ? Le 6 novembre 2009 13:22, Beno?t Minisini a ?crit : >> and see if you have the same pb on qt4 than me :/ >> >> lost menubar >> >> and so on >> >> > > What are you talking about? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Nov 6 14:26:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 6 Nov 2009 14:26:30 +0100 Subject: [Gambas-user] code editor displays incorrect colors and character formatting In-Reply-To: <6324a42a0911060519sf982f5m1042f8082e11f04d@...627...> References: <26159955.post@...1379...> <200911061322.08127.gambas@...1...> <6324a42a0911060519sf982f5m1042f8082e11f04d@...627...> Message-ID: <200911061426.30213.gambas@...1...> > after 6 or seven time run and stop ... the menubar of the ide desapear. > > and i've always the problem on opening projects ... have you receipt > the screen shot ? > No. -- Beno?t Minisini From doriano.blengino at ...1909... Fri Nov 6 14:36:29 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 06 Nov 2009 14:36:29 +0100 Subject: [Gambas-user] Multithreaded Programs In-Reply-To: <200911061151.21060.gambas@...1...> References: <4AF3AF38.5080409@...1000...> <4AF3FE04.9040309@...1909...> <200911061151.21060.gambas@...1...> Message-ID: <4AF4265D.4090107@...1909...> Beno?t Minisini ha scritto: >> Werner ha scritto: >> >>> Doriano Blengino wrote: >>> >>>> Beno?t Minisini ha scritto: >>>> >>>>>> I pretty much agree. >>>>>> Gambas as well as other RAD languages are very good for GUI >>>>>> programming, and generally for not CPU intensive purposes. >>>>>> If you really need speed, use libraries written with C/C++ or similar. >>>>>> BUT it would be very nice if Gambas could handle most things so >>>>>> quickly that you don't need to use C/C++. >>>>>> >>>>>> Maybe Gambas could launch multiple interpreters to enable >>>>>> multi-threading..? But I think you have already considered and >>>>>> discarded that idea... >>>>>> >>>>>> Maybe interpreter itself should use multi-threading? >>>>>> Although I don't know is there yet any good way to do that, meaning >>>>>> without installing TBB or similar to enable >>>>>> easy using like parallel_for, parallel_loop etc. >>>>>> >>>>>> Jussi >>>>>> >>>>> I don't like doing that, but hey, here is an authoritative argument. >>>>> :-) >>>>> >>>>> "A computer is a state machine. Threads are for people who can't >>>>> program state machines." - Alan Cox. >>>>> >>>> "A computer is made of flip-flops (the very basic unit of memory). High >>>> level languages are for people who don't understand computers - those >>>> who understand them are perfectly happy with punched paper tapes and >>>> machine-level languages" - Doriano Blengino. >>>> >>>> Without multi-threading and multi-tasking there would not be computers >>>> as we know them. Full stop. This is not to say that gambas should have >>>> multi-threading, nor that Alan Cox is stupid. But that affirmation is. >>>> More on this, if requested. >>>> >>>> Regards, >>>> >>> Surely Alan Cox had meant that to be understood with a nudge and a wink. >>> :-) Multi - threading opens a whole can of worms. Gambas 2 is rock solid >>> and if there has to be a choice between robustness and performance I take >>> the former any time. >>> >> Yes, agreed to all. Nudge and wink should be applied to my sentence too, >> which was ironic. >> True that multi-threading brings more problems - compilers do, oop does, >> java does; every advancing step in every field brings new problems, but >> also opens new possibilities. The task is to retain the new >> possibilities, and get rid of problems. Once you have new possibilities, >> you can choose whether to use them or not. >> And I agree even on gambas: if, by introducing multithreading, stability >> would suffer, then it is better to avoid threading. But this is not the >> question. Benoit said that he does not find a reason to use threads in >> GUI applications; the same about background processing. I don't see what >> have these GUI applications so special or so different from other ones. >> They are applications which, instead of sending results to files, send >> results to the screen. This is all. If I wanted to write a web server >> like Apache, but with a nice GUI and using Gambas, I would feel the lack >> of threading. Threads can simplify a lot certain kinds of problems - and >> can mess up other kinds of problems. >> >> Regards, >> Doriano >> > > OK, but you should not take the example of web servers : the fastest web > servers I know do not use threading nor processes, but event-driven > programming around select() (or equivalent). As the gambas interpreter does. > I don't know what web server you are speaking about, but that is not important - I take it for true because I know you never lie. But you are speaking about speed, which is not the only important thing. In fact, every user of gambas should know that the same program, written in C++ instead of gambas, could run from 20% to 1000% faster. But, by using C++ instead of gambas, you also loose a lot of other things. The same applies in the comparison event-driven vs threaded model. In a typical GUI program there are tenths of different events, but the user fires them one at a time; so it makes sense to use an event driven approach. But try to implement a serial (or network) protocol using events instead of threads. For the same event ("a packet has arrived") you have to do at least three or four different things, depending on what data arrived, and when. And if you try to set up more than one connection, things get more complicated. A threaded model makes this things trivial. But this is just an example, and I say so because of the programs I normally write - communications, industrial control and automation, things like that, often are more easily described in terms of thread and background processes. Regards, Doriano From hartmut at ...2307... Fri Nov 6 17:17:50 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Fri, 6 Nov 2009 17:17:50 +0100 Subject: [Gambas-user] Compiling Gambas3 Message-ID: Hallo List, I try to compile Gambas3 from svn. I did everything which is described in the INSTALL and README. when I do the configure I get: THESE COMPONENTS ARE DISABLED: - gb.image.imlib - gb.sdl - gb.v4l so I did : ./configure --enable-image.imlib --enable-v4l --enable-sdl but the result is the same, so I did make clean and tried again, but always the 3 packages are disabled. What do I need to do to enable those packages. regards Hartmut From gambas.fr at ...626... Fri Nov 6 17:24:37 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 6 Nov 2009 17:24:37 +0100 Subject: [Gambas-user] Compiling Gambas3 In-Reply-To: References: Message-ID: <6324a42a0911060824hcbcd4efo49e7ee8dcd25a2fe@...627...> no in fact you need to install the package of imlib-dev not installed and v4l1-dev and the libs -dev of sdl !! certainly the doc is not up to date on what distrib ? 2009/11/6 Hartmut Eilers : > Hallo List, > > I try to compile Gambas3 from svn. > > I did everything which is described in the INSTALL and README. > when I do the configure I get: > > THESE COMPONENTS ARE DISABLED: > > - gb.image.imlib > - gb.sdl > - gb.v4l > > so I did : > ./configure --enable-image.imlib --enable-v4l --enable-sdl > > but the result is the same, so I did make clean and tried again, > but always the 3 packages are disabled. What do I need to do > to enable those packages. > > regards > Hartmut > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 6 17:25:37 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 6 Nov 2009 17:25:37 +0100 Subject: [Gambas-user] Video4Linux (Jussi Lahtinen) In-Reply-To: References: Message-ID: <6324a42a0911060825l3c1f3b8r6db20a5b8cce922e@...627...> http://gambasdoc.org 2009/11/6 Hartmut Eilers : > Hallo Benoit >>> >>> Where are the most uptodate Webpages about gambas. > >>What do you mean? > > Until today I only found http://gambasrad.org/ > which hosts the Mailing List as Forum, seems to be the Homepage > but has the last Messages from 2007. Is it your domain ? There should > be at least a message stating to http://gambas.sourceforge.net/en/main.html > > > So thank you Jussi, you brought me to > http://gambas.sourceforge.net/en/main.html > > That answered my question. > > And from my current point of view ( my first Gambas Projekt ) I must > pull my hat ( do you say so in english ). Hey this is a really cool language > to rapidly make ideas work, really good job and thanks for your work > > I do compile my own 3.0 I'm sure its worth > > Regards > Hartmut > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Nov 6 17:29:44 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 6 Nov 2009 17:29:44 +0100 Subject: [Gambas-user] Compiling Gambas3 In-Reply-To: References: Message-ID: <200911061729.44831.gambas@...1...> > Hallo List, > > I try to compile Gambas3 from svn. > > I did everything which is described in the INSTALL and README. > when I do the configure I get: These files are for Gambas 2. > > THESE COMPONENTS ARE DISABLED: > > - gb.image.imlib > - gb.sdl > - gb.v4l > For Gambas 3, you must install (on Ubuntu) the following development packages : libsdl_ttf2.0-dev, libimlib2-dev and libv4l-dev. If someone could add that on the wiki, it would be cool. Regards, -- Beno?t Minisini From hartmut at ...2307... Fri Nov 6 19:06:52 2009 From: hartmut at ...2307... (Hartmut Eilers) Date: Fri, 6 Nov 2009 19:06:52 +0100 Subject: [Gambas-user] Bad Form file version Gambas3 Message-ID: Hallo List, after installing the suggested devel packages everything went fine building gambas3. Now I opened a copy of my Video Project written in gambas2. When I try to compile I get the following errror: "Cannot compile the project. Bad form file version" Do I need to convert the project or what di I need to do to open a gambas2 project with gambas3 Thanks for help Hartmut From Karl.Reinl at ...9... Fri Nov 6 19:15:55 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 06 Nov 2009 19:15:55 +0100 Subject: [Gambas-user] Bad Form file version Gambas3 In-Reply-To: References: Message-ID: <1257531355.7650.5.camel@...40...> Am Freitag, den 06.11.2009, 19:06 +0100 schrieb Hartmut Eilers: > Hallo List, > > after installing the suggested devel packages everything went > fine building gambas3. Now I opened a copy of my Video Project > written in gambas2. When I try to compile I get the following > errror: "Cannot compile the project. Bad form file version" > > Do I need to convert the project or what di I need to do to > open a gambas2 project with gambas3 > > Thanks for help > Hartmut Salut Hartmut, Make a copy. go Menu ->Tools(Werkzeuge)/Update all forms and say YES -- Amicalment Charlie From jussi.lahtinen at ...626... Fri Nov 6 21:30:27 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 6 Nov 2009 22:30:27 +0200 Subject: [Gambas-user] Gambas3 In-Reply-To: <1257488165.3295.12.camel@...2318...> References: <1257488165.3295.12.camel@...2318...> Message-ID: <384d3900911061230v11349ef0id0a609268a1187e8@...627...> Depends on what you are doing... Gambas3 seems to be stabile. At least I don't know how to crash it (but I'm pretty sure I can do it with external function calling if I really try). You should notice that Gambas 3 syntax may change little, as it is under development. So if you are writing program to your own usage, or planning to release it later when Gambas 3 will, then I don't see any reason not to use Gambas 3. Jussi On Fri, Nov 6, 2009 at 08:16, Kad Mann wrote: > Is it worth trying Gambas3 while it's not released? Or should I stick > with Gambas2? > > Are there any instructions on how to get Gambas3 and compile it? > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Sun Nov 8 08:25:12 2009 From: bbruen at ...2308... (bbb888) Date: Sat, 7 Nov 2009 23:25:12 -0800 (PST) Subject: [Gambas-user] custom controls tutorial or guide Message-ID: <26251482.post@...1379...> Hi guys, Is there a guideline of some sort for howto create custom controls? I was thinking I might cut my teeth on a context sensitive combobox that changes background color depending on the selected value. But I just don't know where to start. :-(( regards bruce -- View this message in context: http://old.nabble.com/custom-controls-tutorial-or-guide-tp26251482p26251482.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Sun Nov 8 10:07:00 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 8 Nov 2009 10:07:00 +0100 Subject: [Gambas-user] custom controls tutorial or guide In-Reply-To: <26251482.post@...1379...> References: <26251482.post@...1379...> Message-ID: <6324a42a0911080107x2fa74790k9a8fa25d4c0bf24f@...627...> I think for the begginnig you must to do an encapsulating classe. It's a class that take a control as parameter. And give to it new function or feature. so: ============================================================= CLASS CColourCombo Private $hComboBox Private $hObs as new Observer Public sub _New(hCombo as ComboBox) $hComboBox = hCombo $hOBS=NEW Observer(hCombo) AS "MyCombo" End PUBLIC SUB MyCombo_Change() If $hCombox.Current.Text<0 then $hComboBox.BackColor=Color.Red else $hComboBox.BackColor=Color.White endif end ==================================== 'Form Now in your form just add Public sub _New dim hCColourCombo as CColourCombo hCColourCombo = new CColourCombo(MyComboBox) endif END ====================================== And now you have a combo box that change backcolour when the selected value is negative ! It's more simple than a control if you have no so many feature to add. Fabien 2009/11/8 bbb888 : > > Hi guys, > > Is there a guideline of some sort for howto create custom controls? > > I was thinking I might cut my teeth on a context sensitive combobox that > changes background color depending on the selected value. > > But I just don't know where to start. :-(( > > regards > bruce > -- > View this message in context: http://old.nabble.com/custom-controls-tutorial-or-guide-tp26251482p26251482.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pinozollo at ...626... Sun Nov 8 11:52:57 2009 From: pinozollo at ...626... (Pino Zollo) Date: Sun, 8 Nov 2009 07:52:57 -0300 Subject: [Gambas-user] Multithreaded Programs Message-ID: <200911080752.57545.pinozollo@...626...> >"A computer is made of flip-flops (the very basic unit of memory). High >level languages are for people who don't understand computers - those >who understand them are perfectly happy with punched paper tapes and >machine-level languages" - Doriano Blengino. Object programming mimics the world.... ....and the world in multi-thread. Ciao Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From bill-lancaster at ...2231... Sun Nov 8 12:58:16 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 8 Nov 2009 03:58:16 -0800 (PST) Subject: [Gambas-user] where is IDE source code? Message-ID: <26253086.post@...1379...> I'm looking for some help with tableview edit function and see that there is an example at "FPropertyProject form, "Environment" tab, in the IDE source code." but have no idea where to look for it. No doubt the answer is obvious but... Cab any one help? -- View this message in context: http://old.nabble.com/where-is-IDE-source-code--tp26253086p26253086.html Sent from the gambas-user mailing list archive at Nabble.com. From bartonekdragracing at ...43... Sun Nov 8 15:13:20 2009 From: bartonekdragracing at ...43... (Alex Bartonek) Date: Sun, 8 Nov 2009 06:13:20 -0800 (PST) Subject: [Gambas-user] does this work (test) Message-ID: <154264.96054.qm@...2319...> I dont know if this will work since I posted to the gambas Nabble forum and its always pending. If it makes it please ignore it. -Alex From bartonekdragracing at ...43... Sun Nov 8 15:30:10 2009 From: bartonekdragracing at ...43... (Alex Bartonek) Date: Sun, 8 Nov 2009 06:30:10 -0800 (PST) Subject: [Gambas-user] Checkboxes with columnview Message-ID: <410594.76123.qm@...2319...> (ok, I cant post to Gambas on Nabble but direct to the list I can. So here's my question). I'm using gambas 2.16 on my linux box. I'm importing a text file into a columnview and I want to be able to "check" (aka. select) which records I want by checking them or unchecking them. Is this possible? In the meantime I got a work-around. I created another field in the columnview and am fixing to add some code for when you "click" on a row, it changes the "X" (a check) to a "blank" (unchecked). Not very pretty but it works. -Alex From wdahn at ...1000... Sun Nov 8 16:37:04 2009 From: wdahn at ...1000... (Werner) Date: Sun, 08 Nov 2009 23:37:04 +0800 Subject: [Gambas-user] Checkboxes with columnview In-Reply-To: <410594.76123.qm@...2319...> References: <410594.76123.qm@...2319...> Message-ID: <4AF6E5A0.2060808@...1000...> Alex Bartonek wrote: > (ok, I cant post to Gambas on Nabble but direct to the list I can. So here's my question). > > > I'm using gambas 2.16 on my linux box. I'm importing a text file into a columnview and I want to be able to "check" (aka. select) which records I want by checking them or unchecking them. Is this possible? > > In the meantime I got a work-around. I created another field in the columnview and am fixing to add some code for when you "click" on a row, it changes the "X" (a check) to a "blank" (unchecked). Not very pretty but it works. > > -Alex > Is the user doing the selection or is programmed? Regards, Werner From wdahn at ...1000... Sun Nov 8 16:48:43 2009 From: wdahn at ...1000... (Werner) Date: Sun, 08 Nov 2009 23:48:43 +0800 Subject: [Gambas-user] Checkboxes with columnview In-Reply-To: <410594.76123.qm@...2319...> References: <410594.76123.qm@...2319...> Message-ID: <4AF6E85B.6090207@...1000...> Alex Bartonek wrote: > (ok, I cant post to Gambas on Nabble but direct to the list I can. So here's my question). > > > I'm using gambas 2.16 on my linux box. I'm importing a text file into a columnview and I want to be able to "check" (aka. select) which records I want by checking them or unchecking them. Is this possible? > > In the meantime I got a work-around. I created another field in the columnview and am fixing to add some code for when you "click" on a row, it changes the "X" (a check) to a "blank" (unchecked). Not very pretty but it works. > > -Alex > > Sorry, I misread your post. You propably want something similar as used in a web based environment (i.e "Edit Selected"). I don't think a columnview can do that. But there are several ways to build a subset of what is being displayed. To illustrate, I made a little jukebox demo some time ago. Maybe it's a useful alternative. One advantage is that the user has control of the ordering of the subset. Regards, Werner -------------- next part -------------- A non-text attachment was scrubbed... Name: cvwDemo.tar.gz Type: application/x-gzip Size: 11537 bytes Desc: not available URL: From wdahn at ...1000... Sun Nov 8 16:56:39 2009 From: wdahn at ...1000... (Werner) Date: Sun, 08 Nov 2009 23:56:39 +0800 Subject: [Gambas-user] Checkboxes with columnview In-Reply-To: <4AF6E85B.6090207@...1000...> References: <410594.76123.qm@...2319...> <4AF6E85B.6090207@...1000...> Message-ID: <4AF6EA37.3040707@...1000...> Werner wrote: > Alex Bartonek wrote: > >> (ok, I cant post to Gambas on Nabble but direct to the list I can. So here's my question). >> >> >> I'm using gambas 2.16 on my linux box. I'm importing a text file into a columnview and I want to be able to "check" (aka. select) which records I want by checking them or unchecking them. Is this possible? >> >> In the meantime I got a work-around. I created another field in the columnview and am fixing to add some code for when you "click" on a row, it changes the "X" (a check) to a "blank" (unchecked). Not very pretty but it works. >> >> -Alex >> >> >> > Sorry, I misread your post. You propably want something similar as used > in a web based environment (i.e "Edit Selected"). > I don't think a columnview can do that. > > But there are several ways to build a subset of what is being displayed. > To illustrate, I made a little jukebox demo some time ago. Maybe it's a > useful alternative. One advantage is that the user has control of the > ordering of the subset. > > Regards, > Werner > > I correct myself yet again (before somebody else does :-) ). The first column allows a picture to be dispayed before the text. You might use that to display a tick mark or you could even put one of two chechbox pictures there (marked/unmarked). I'll let you know when I change my mind again :-) Regards, Werner From Karl.Reinl at ...9... Sun Nov 8 17:03:41 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 08 Nov 2009 17:03:41 +0100 Subject: [Gambas-user] where is IDE source code? In-Reply-To: <26253086.post@...1379...> References: <26253086.post@...1379...> Message-ID: <1257696221.6394.7.camel@...40...> Am Sonntag, den 08.11.2009, 03:58 -0800 schrieb Bill-Lancaster: > I'm looking for some help with tableview edit function and see that there is > an example at > "FPropertyProject form, "Environment" tab, in the IDE source code." but have > no idea where to look for it. > > No doubt the answer is obvious but... > > Cab any one help? Salut, if you have the package from http://gambas.sourceforge.net/ or by svn then you will find it here: /app/src/gambas2 There you also find an example /app/src/gambas2-database-manager -- Amicalment Charlie From bartonekdragracing at ...43... Sun Nov 8 17:33:36 2009 From: bartonekdragracing at ...43... (themagicm) Date: Sun, 8 Nov 2009 08:33:36 -0800 (PST) Subject: [Gambas-user] Checkboxes with columnview In-Reply-To: <4AF6EA37.3040707@...1000...> References: <410594.76123.qm@...2319...> <4AF6E85B.6090207@...1000...> <4AF6EA37.3040707@...1000...> Message-ID: <26255317.post@...1379...> Thanks Werner.. I'll try it out. -Alex -- View this message in context: http://old.nabble.com/Checkboxes-with-columnview-tp26254262p26255317.html Sent from the gambas-user mailing list archive at Nabble.com. From oceanosoftlapalma at ...626... Sun Nov 8 18:56:53 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Sun, 8 Nov 2009 17:56:53 +0000 Subject: [Gambas-user] Compiling Gambas3 In-Reply-To: <200911061729.44831.gambas@...1...> References: <200911061729.44831.gambas@...1...> Message-ID: Benoit, How can we add something to wiki? 2009/11/6 Beno?t Minisini > > Hallo List, > > > > I try to compile Gambas3 from svn. > > > > I did everything which is described in the INSTALL and README. > > when I do the configure I get: > > These files are for Gambas 2. > > > > > THESE COMPONENTS ARE DISABLED: > > > > - gb.image.imlib > > - gb.sdl > > - gb.v4l > > > > For Gambas 3, you must install (on Ubuntu) the following development > packages > : libsdl_ttf2.0-dev, libimlib2-dev and libv4l-dev. > > If someone could add that on the wiki, it would be cool. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Sun Nov 8 18:58:26 2009 From: bill-lancaster at ...2231... (Bill-Lancaster) Date: Sun, 8 Nov 2009 09:58:26 -0800 (PST) Subject: [Gambas-user] where is IDE source code? In-Reply-To: <1257696221.6394.7.camel@...40...> References: <26253086.post@...1379...> <1257696221.6394.7.camel@...40...> Message-ID: <26256133.post@...1379...> Got it! Charlie - thanks -- View this message in context: http://old.nabble.com/where-is-IDE-source-code--tp26253086p26256133.html Sent from the gambas-user mailing list archive at Nabble.com. From charles at ...1784... Mon Nov 9 08:02:14 2009 From: charles at ...1784... (charlesg) Date: Sun, 8 Nov 2009 23:02:14 -0800 (PST) Subject: [Gambas-user] does this work (test) In-Reply-To: <154264.96054.qm@...2319...> References: <154264.96054.qm@...2319...> Message-ID: <26262017.post@...1379...> I have got the impression over the last few days that nabble is having one of its periodic hiccups. I see that the http is now 'old.nabble.com'. Is there a 'new.nabble.com'? rgds -- View this message in context: http://old.nabble.com/does-this-work-%28test%29-tp26254121p26262017.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Nov 9 13:21:14 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 9 Nov 2009 13:21:14 +0100 Subject: [Gambas-user] custom controls tutorial or guide In-Reply-To: <26251482.post@...1379...> References: <26251482.post@...1379...> Message-ID: <200911091321.14868.gambas@...1...> > Hi guys, > > Is there a guideline of some sort for howto create custom controls? > > I was thinking I might cut my teeth on a context sensitive combobox that > changes background color depending on the selected value. > > But I just don't know where to start. :-(( > > regards > bruce > You can start at http://gambasdoc.org, where you will find a link named "How to program components in Gambas". Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Nov 9 19:05:38 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 9 Nov 2009 20:05:38 +0200 Subject: [Gambas-user] Optional arguments and IDE In-Reply-To: <384d3900911040732s3f85f80ava49cb45fab04e5cb@...627...> References: <384d3900911010847w6c44a85fl5d07b43a9d6e0ed0@...627...> <200911041603.53318.gambas@...1...> <384d3900911040732s3f85f80ava49cb45fab04e5cb@...627...> Message-ID: <384d3900911091005g63bae761g379da24d5fd3ff14@...627...> Optional arguments now shows as wished, thanks! But byref arguments are not showing correctly, I'm not sure if this is new problem... maybe I just haven't notice it earlier (I don't use byref much). This problem occurs generally with byref arguments, not just optional byref arguments. They show like this "BYREF As AS". Jussi On Wed, Nov 4, 2009 at 17:32, Jussi Lahtinen wrote: > Nice, thanks! > I'll test it later. > > Jussi > > > 2009/11/4 Beno?t Minisini : >>> Benoit, >>> Is it possible to show default values of optional arguments, when you >>> write function/sub call? >>> Now you can only see gray text "bOptionalArgumentName As Boolean", I'd >>> like to see >>> "bOptionalArgumentName As Boolean = True". >>> >>> Jussi >>> >> >> Done in revision #2410, but not well tested! >> >> Regards, >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From 12ukwn at ...626... Tue Nov 10 03:19:41 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 10 Nov 2009 03:19:41 +0100 Subject: [Gambas-user] date member order & presentation Message-ID: <4AF8CDBD.9060506@...626...> Hi, I use a postgresql database, and I need to display dates (in a modified TableView) according to DB (ISO: yyyy-mm-dd, with separator '-', not '/'), otherwise it displays 10/11/2009, but waits for an input such as 2009-11-10 when I search. How can I do that? -- A door is what a dog is perpetually on the wrong side of. -- Ogden Nash From 9bv1tu2a at ...2320... Tue Nov 10 05:21:47 2009 From: 9bv1tu2a at ...2320... (A Person) Date: Mon, 09 Nov 2009 23:21:47 -0500 Subject: [Gambas-user] Possible Search bug - Gambas 2.8 Message-ID: <4AF8EA5B.6090709@...2320...> I know this is an older version but my issue may still be present. I did a search for four spaces. I used the F3 key to jump to the next Finds. All the hits were part of tabs on the left side of the page until I came to a comment. The search showed up the four spaces before the apostrophe. Then another F3 highlighted the first four characters of the comment and another F3 highlighted the next four characters of the comment and so forth. I searched through three sets of source code and the behaviour was present in all. Reproduce: 1. Search for one or more spaces a few lines before a tabbed comment. 2. Press F3 continuously. 3. The search will highlight the space(s) before the comment. 4. Subsequent F3s will highlight the comment block by block. From jscops at ...11... Tue Nov 10 05:23:32 2009 From: jscops at ...11... (Jack) Date: Tue, 10 Nov 2009 05:23:32 +0100 Subject: [Gambas-user] date member order & presentation In-Reply-To: <4AF8CDBD.9060506@...626...> References: <4AF8CDBD.9060506@...626...> Message-ID: <4AF8EAC4.60709@...11...> Jean-Yves F. Barbier a ?crit : > Hi, > > I use a postgresql database, and I need to display dates (in a modified > TableView) according to DB (ISO: yyyy-mm-dd, with separator '-', not '/'), > otherwise it displays 10/11/2009, but waits for an input such as 2009-11-10 > when I search. > > How can I do that? > Format$(Yourdate, "yyyy-mm-dd") From gambas.fr at ...626... Tue Nov 10 10:36:28 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 10 Nov 2009 10:36:28 +0100 Subject: [Gambas-user] date member order & presentation In-Reply-To: <4AF8CDBD.9060506@...626...> References: <4AF8CDBD.9060506@...626...> Message-ID: <6324a42a0911100136v7eef7b5fj1843b6c3237a223b@...627...> 2009/11/10 Jean-Yves F. Barbier <12ukwn at ...626...>: > Hi, > > I use a postgresql database, and I need to display dates (in a modified > TableView) according to DB (ISO: yyyy-mm-dd, with separator '-', not '/'), > otherwise it displays 10/11/2009, but waits for an input such as 2009-11-10 > when I search. > > How can I do that? > are you using the gambas db type Date ?. > A door is what a dog is perpetually on the wrong side of. > ? ? ? ? ? ? ? ?-- Ogden Nash > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Tue Nov 10 15:40:20 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 10 Nov 2009 15:40:20 +0100 Subject: [Gambas-user] date member order & presentation In-Reply-To: <6324a42a0911100136v7eef7b5fj1843b6c3237a223b@...627...> References: <4AF8CDBD.9060506@...626...> <6324a42a0911100136v7eef7b5fj1843b6c3237a223b@...627...> Message-ID: <4AF97B54.1050007@...626...> Fabien Bodard a ?crit : > 2009/11/10 Jean-Yves F. Barbier <12ukwn at ...626...>: >> Hi, >> >> I use a postgresql database, and I need to display dates (in a modified >> TableView) according to DB (ISO: yyyy-mm-dd, with separator '-', not '/'), >> otherwise it displays 10/11/2009, but waits for an input such as 2009-11-10 >> when I search. >> >> How can I do that? >> > > are you using the gambas db type Date ?. No, it is to format display in the code you gave me :) -- real buddy, n.: Someone who'll go downtown and get two blowjobs, and come back and give you one. From gambas.fr at ...626... Tue Nov 10 16:19:25 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 10 Nov 2009 16:19:25 +0100 Subject: [Gambas-user] date member order & presentation In-Reply-To: <4AF97B54.1050007@...626...> References: <4AF8CDBD.9060506@...626...> <6324a42a0911100136v7eef7b5fj1843b6c3237a223b@...627...> <4AF97B54.1050007@...626...> Message-ID: <6324a42a0911100719m68f882a1kd6097c55a454b47@...627...> 2009/11/10 Jean-Yves F. Barbier <12ukwn at ...626...>: > Fabien Bodard a ?crit : >> 2009/11/10 Jean-Yves F. Barbier <12ukwn at ...626...>: >>> Hi, >>> >>> I use a postgresql database, and I need to display dates (in a modified >>> TableView) according to DB (ISO: yyyy-mm-dd, with separator '-', not '/'), >>> otherwise it displays 10/11/2009, but waits for an input such as 2009-11-10 >>> when I search. >>> >>> How can I do that? >>> >> >> are you using the gambas db type Date ?. > > No, it is to format display in the code you gave me :) ok so the format function is the good one Thanks Jack ;) > > -- > real buddy, n.: > ? ? ? ?Someone who'll go downtown and get two blowjobs, and come back > ? ? ? ?and give you one. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven.herbert at ...2321... Tue Nov 10 15:38:30 2009 From: steven.herbert at ...2321... (Steven Herbert) Date: Tue, 10 Nov 2009 06:38:30 -0800 Subject: [Gambas-user] Make Installation Package Failure Message-ID: <1257863910.16466.12.camel@...2322...> Good Morning: Not sure whether this is a bug or I have failed to do something correctly. If there is an link to solve this problem please forgive me and direct me to the appropriate link. - thanks I am using Gambas 2.13 on Ubuntu 9.10 As an investigation project to Gambas' viability, I built a very small project to simply exec a series of CLI commands. ************************ Commands ************************************** PUBLIC SUB FileView1_Click() sFile = sConfig[iTask] & FileView1.Current Frame1.Visible = FALSE SELECT CASE iTask CASE MOVIE_DIR EXEC ["smplayer", "-fullscreen", "-close-at-end", sFile] CASE BOOK_DIR EXEC ["evince", sFile] CASE AUDIO_DIR EXEC ["smplayer", "-close-at-end", sFile] END SELECT END ***************************** Command ********************************* there is a simple GUI surrounding this. ( I know I did not allow for error conditions. My goal is to determine viability of a development platform for the MID) I built this small application and created and Installation package and moved the installation package to a Mobile Internet Device (Kernel 2.6.24.7) and attempted and allowed Installer to do its thing. However the installation failed with the following errors: gambas2: Depends: gambas2-gb-chart (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-db-firebird (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-db-form (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-db-mysql (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-db-postgresql (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-db-odbc (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-db-sqlite (>= 2.13.1-1ubuntu1) but it is not going to be installed or gambas2-gb-db-sqlite2 (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-desktop (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-form (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-form-dialog (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-form-mdi (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-gtk-ext (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-gui (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-gb-report (>= 2.13.1-1ubuntu1) but it is not going to be installed Depends: gambas2-ide (>= 2.13.1-1ubuntu1) but it is not going to be installed E: Broken packages I have yet to resolve this issue. Due to limited Flash drive space I am reluctant to have to install Gambas on the MID device. Is there a solution to this problem? Best Regards, Steven Herbert Director Technical Services Advanced Integrity Solutions Cell: +1-250-574-8365 Fax: +1-403-770-8793 steven.herbert at ...2321... www.skype.com/steven_herbert Calgary, Canada Check out our latest product release: http://www.advancedintsol.com/news/e-PIKE_product_info.pdf Advanced Integrity Solutions Ltd. is a consulting company that brings IT networks, database solutions, e-Learning, managed services and visitor based networking together through innovative business practices, more than 35 years experience in the IT and software industry and expert experience in the field of training, service and support for IT clients and users. *** This email transmission contains confidential information which is the property of the sender and if you are not the intended recipient, you are hereby notified that any disclosure, copying or distribution of the contents of this e-mail transmission, or the taking of any action in reliance thereon or pursuant thereto, is strictly prohibited. Should you have received this e-mail in error, please notify us immediately to arrange for the return of the documentation comprising this transmission From arosa at ...2015... Wed Nov 11 04:54:49 2009 From: arosa at ...2015... (Toni) Date: Wed, 11 Nov 2009 04:54:49 +0100 Subject: [Gambas-user] XML-RPC component bug? Message-ID: <4AFA3589.5050907@...2015...> Hi, I'm having problems with the XML-RPC component. The same piece of code (and actually the compiled program too) works fine in one computer an gives an error in another. System where it works: Ubuntu 9.10 32bits System where it fails: Ubuntu 8.10 64bits Both systems have the same Gambas version: Gambas 2.17 (revision 2415) With exactly the same XML, the RpcStruct that the RpcClient.Call method returns is alright in one of the systems but in the other, all its dataType are incorretly set to xStruct, and so I always get "Type mismatch: wanted XXX got RpcStruct instead" when trying to use the "Value" property. Is it a bug in the component? Does the component relay on a system package that is broken in one of my two systems? If so, which one? Thanks! Toni P.S. Maybe it's already "doable", but I think that it would be really nice if there was the possibility of "stepping into" the Gambas components code while debugging an application. -------------- next part -------------- A non-text attachment was scrubbed... Name: xmlrpc.tar.gz Type: application/x-gzip Size: 8892 bytes Desc: not available URL: From charles at ...1784... Wed Nov 11 05:27:45 2009 From: charles at ...1784... (charlesg) Date: Tue, 10 Nov 2009 20:27:45 -0800 (PST) Subject: [Gambas-user] Make Installation Package Failure In-Reply-To: <1257863910.16466.12.camel@...2322...> References: <1257863910.16466.12.camel@...2322...> Message-ID: <26295900.post@...1379...> The package on Ubuntu is annoyingly incomplete. Go into Synaptic, search on Gambas and install the rest of what should have been in the package. Even better compile Gambas from source although 2.13 is fine for testing. rgds -- View this message in context: http://old.nabble.com/Make-Installation-Package-Failure-tp26288642p26295900.html Sent from the gambas-user mailing list archive at Nabble.com. From ron at ...1740... Wed Nov 11 08:54:05 2009 From: ron at ...1740... (Ron) Date: Wed, 11 Nov 2009 08:54:05 +0100 Subject: [Gambas-user] XML-RPC component bug? In-Reply-To: <4AFA3589.5050907@...2015...> References: <4AFA3589.5050907@...2015...> Message-ID: <4AFA6D9D.7060505@...1740...> Toni wrote: > Hi, > I'm having problems with the XML-RPC component. > The same piece of code (and actually the compiled program too) works > fine in one computer an gives an error in another. > > System where it works: Ubuntu 9.10 32bits > System where it fails: Ubuntu 8.10 64bits > Both systems have the same Gambas version: Gambas 2.17 (revision 2415) > > With exactly the same XML, the RpcStruct that the RpcClient.Call > method returns is alright in one of the systems but in the other, all > its dataType are incorretly set to xStruct, and so I always get "Type > mismatch: wanted XXX got RpcStruct instead" when trying to use the > "Value" property. > > Is it a bug in the component? Does the component relay on a system > package that is broken in one of my two systems? If so, which one? > > Thanks! > Toni > > P.S. Maybe it's already "doable", but I think that it would be really > nice if there was the possibility of "stepping into" the Gambas > components code while debugging an application. > Strange behavior indeed. After talking to Daniel Campos Fern?ndez to author of the component stating that he didn;t have the time to code, I started to debug it and wrote some fixes (with help of Benoit) to make the xmlrpc component work again in revision 1906, (not the year ;-) ), but there could be a bug or two left unfixed of course. It was hard to debug then, I have added a lot of DEBUG statements to the component to do that, and removed them afterwards. I use xmlrpc in my project, and it worked in Ubuntu 9.04 both 32 and 64 bits, and Ubuntu 9.10 32 bits. It uses the libxml2 library so maybe that's the cause, but thats a guess. Regards, Ron_2nd. From sevoir75 at ...626... Wed Nov 11 09:12:18 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Wed, 11 Nov 2009 09:12:18 +0100 Subject: [Gambas-user] notification area & window list Message-ID: <1257927138.2469.4.camel@...2323...> Hi All, I would like insert subjects to my app. How can I do this? in notification area: nm-applet in windows list: windows list :) Regards, Sevoir From gambas.fr at ...626... Wed Nov 11 10:29:06 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 11 Nov 2009 10:29:06 +0100 Subject: [Gambas-user] Make Installation Package Failure In-Reply-To: <26295900.post@...1379...> References: <1257863910.16466.12.camel@...2322...> <26295900.post@...1379...> Message-ID: <6324a42a0911110129t4c6ad2bbkef7a1fbca8e9aa96@...627...> 2009/11/11 charlesg : > > The package on Ubuntu is annoyingly incomplete. Go into Synaptic, search on > Gambas and install the rest of what should have been in the package. > > Even better compile Gambas from source although 2.13 is fine for testing. > > rgds this is not the problem ... the dependences are not good... as each package need all others :/ if i know how to doing package ... > View this message in context: http://old.nabble.com/Make-Installation-Package-Failure-tp26288642p26295900.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed Nov 11 15:33:02 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 11 Nov 2009 16:33:02 +0200 Subject: [Gambas-user] notification area & window list In-Reply-To: <1257927138.2469.4.camel@...2323...> References: <1257927138.2469.4.camel@...2323...> Message-ID: <384d3900911110633i5a109767n6a982c17b0a835c4@...627...> Subjects? Can you explain more precisely? Jussi 2009/11/11 Szenogr?di Norbert : > Hi All, > > > I would like insert subjects to my app. > How can I do this? > > in notification area: nm-applet > in windows list: windows list :) > > Regards, Sevoir > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sevoir75 at ...626... Thu Nov 12 10:10:26 2009 From: sevoir75 at ...626... (=?ISO-8859-1?Q?Szenogr=E1di?= Norbert) Date: Thu, 12 Nov 2009 10:10:26 +0100 Subject: [Gambas-user] notification area & window list In-Reply-To: <384d3900911110633i5a109767n6a982c17b0a835c4@...627...> References: <1257927138.2469.4.camel@...2323...> <384d3900911110633i5a109767n6a982c17b0a835c4@...627...> Message-ID: <1258017026.2435.2.camel@...2323...> Hi, Subjects as mail subject, (system notification-area, opened applications windows list) I would like making a simple "panel" gambas app. like pypanel, fbpanel, etc.. Regards, Sevoir 2009. 11. 11, szerda keltez?ssel 16.33-kor Jussi Lahtinen ezt ?rta: > Subjects? > Can you explain more precisely? > > Jussi > > > > 2009/11/11 Szenogr?di Norbert : > > Hi All, > > > > > > I would like insert subjects to my app. > > How can I do this? > > > > in notification area: nm-applet > > in windows list: windows list :) > > > > Regards, Sevoir > > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Nov 12 11:01:56 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 12 Nov 2009 11:01:56 +0100 Subject: [Gambas-user] notification area & window list In-Reply-To: <1258017026.2435.2.camel@...2323...> References: <1257927138.2469.4.camel@...2323...> <384d3900911110633i5a109767n6a982c17b0a835c4@...627...> <1258017026.2435.2.camel@...2323...> Message-ID: <200911121101.56213.gambas@...1...> > Hi, > > Subjects as mail subject, (system notification-area, opened applications > windows list) > I would like making a simple "panel" gambas app. like pypanel, fbpanel, > etc.. > > Regards, Sevoir > Everything needed is in the Gambas 3 gb.desktop component, except the system notification area which is not implemented yet. Regards, -- Beno?t Minisini From robert1juhasz at ...626... Thu Nov 12 14:53:49 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Thu, 12 Nov 2009 14:53:49 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> Message-ID: <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> Hello, I'm still suffering with making the correct installation package. It is painful as I'd like to share my application with my colleagues. I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 but same problem: it notes that no driver for mysql. I'd highly appreciate if someone can help. Robi 2009/11/2 Robert JUHASZ > Hello, > > I use Gambas 2.16 and 2.17 (I work on two machines). > I installed the application on these machines i.e. the gambas IDE was > already on the machine. Is it possible that it was the problem? I may try to > make an install on a "virgin" machine. > > Robi > > 2009/11/1 Beno?t Minisini > > > 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 >> > >> > >> >> You must use at least Gambas 2.14 to be able to add a dependency on >> gb.db.mysql in your project. The bug has been fixed in that release. >> >> The package you created will install all the dependencies needed to run >> *your* >> program, but not the Gambas IDE. If you want to run the Gambas IDE on the >> destination system, you must install the gambas2-ide package. >> >> If you have installed the gambas2-ide package, and can't run Gambas, then >> the >> package is buggy. >> >> 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... Thu Nov 12 17:13:03 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 12 Nov 2009 17:13:03 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> Message-ID: <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> the mysql driver does not depend on gambas but on the installation of libmysqlclient !! 2009/11/12 Robert JUHASZ : > Hello, > > I'm still suffering with making the correct installation package. It is > painful as I'd like to share my application with my colleagues. > > I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 but > same problem: it notes that no driver for mysql. > I'd highly appreciate if someone can help. > > Robi > > 2009/11/2 Robert JUHASZ > >> Hello, >> >> I use Gambas 2.16 and 2.17 (I work on two machines). >> I installed the application on these machines i.e. the gambas IDE was >> already on the machine. Is it possible that it was the problem? I may try to >> make an install on a "virgin" machine. >> >> Robi >> >> 2009/11/1 Beno?t Minisini >> >> ?> 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 >>> > >>> > >>> >>> You must use at least Gambas 2.14 to be able to add a dependency on >>> gb.db.mysql in your project. The bug has been fixed in that release. >>> >>> The package you created will install all the dependencies needed to run >>> *your* >>> program, but not the Gambas IDE. If you want to run the Gambas IDE on the >>> destination system, you must install the gambas2-ide package. >>> >>> If you have installed the gambas2-ide package, and can't run Gambas, then >>> the >>> package is buggy. >>> >>> 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 >>> >> >> > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Nov 12 17:30:54 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 12 Nov 2009 17:30:54 +0100 Subject: [Gambas-user] Possible Search bug - Gambas 2.8 In-Reply-To: <4AF8EA5B.6090709@...2320...> References: <4AF8EA5B.6090709@...2320...> Message-ID: <200911121730.54961.gambas@...1...> > I know this is an older version but my issue may still be present. > > I did a search for four spaces. I used the F3 key to jump to the next > Finds. > > All the hits were part of tabs on the left side of the page until I came > to a comment. The search showed up the four spaces before the > apostrophe. Then another F3 highlighted the first four characters of the > comment and another F3 highlighted the next four characters of the > comment and so forth. > > I searched through three sets of source code and the behaviour was > present in all. > > Reproduce: > > 1. Search for one or more spaces a few lines before a tabbed comment. > 2. Press F3 continuously. > 3. The search will highlight the space(s) before the comment. > 4. Subsequent F3s will highlight the comment block by block. > Yes, this is stupid bug still present in Gambas 2 and Gambas 3. When searching, ignored characters (strings or comments, depending on the search option) are just replaced by spaces. So searching for spaces matches them! Fixing that is not immediate, so you should be patient. Regards, -- Beno?t Minisini From math.eber at ...221... Thu Nov 12 19:58:55 2009 From: math.eber at ...221... (Matti) Date: Thu, 12 Nov 2009 19:58:55 +0100 Subject: [Gambas-user] string conversion Message-ID: <4AFC5AEF.9040403@...221...> Hi, I'm looking for a string conversion function for URIs. It should work like CGI.Encode, but - don't transform slashes "/" - transform spaces " " not to "+" but to "%20". Couldn't find anything in Gambas. Maybe a shell command? Thanks Matti From math.eber at ...221... Thu Nov 12 21:14:57 2009 From: math.eber at ...221... (Matti) Date: Thu, 12 Nov 2009 21:14:57 +0100 Subject: [Gambas-user] string conversion In-Reply-To: <4AFC5AEF.9040403@...221...> References: <4AFC5AEF.9040403@...221...> Message-ID: <4AFC6CC1.3030403@...221...> Well, after some thoughts, I can answer myself. I tried this example: sFilename = "/home/username/Meine Bilder/?ffentliche Fotos ?bertragen/015 das Sch?nste.jpg" i = 1 WHILE i < Len(sFilename) sChar = Mid$(sFilename, i, 1) IF Asc(sChar) > 122 THEN sFilename = Left$(sFilename, i - 1) & "%" & Hex$(Asc(sChar)) & Right$(sFilename, Len(sFilename) - i) ELSE IF sChar = " " THEN sFilename = Replace$(sFilename, " ", "%20") ENDIF i = i + 1 WEND sOut = "file://" & sFilename PRINT sOut and it seems to work ok and reasonably fast. But if you have better ideas, you're welcome! Matti schrieb: > Hi, > > I'm looking for a string conversion function for URIs. > It should work like CGI.Encode, but > - don't transform slashes "/" > - transform spaces " " not to "+" but to "%20". > > Couldn't find anything in Gambas. Maybe a shell command? > > Thanks > Matti From dosida at ...626... Thu Nov 12 21:35:27 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Thu, 12 Nov 2009 13:35:27 -0700 Subject: [Gambas-user] string conversion In-Reply-To: <4AFC6CC1.3030403@...221...> References: <4AFC5AEF.9040403@...221...> <4AFC6CC1.3030403@...221...> Message-ID: <82bffccf0911121235t23b4570el532c1c5071e960e1@...627...> Hey Matti, you might want to roll a string conversion function of your own. The Replace function might be of particular use to you. You can read about it over here http://www.gambasdoc.org/help/lang/replace and you can also find all the other string related functions over here http://www.gambasdoc.org/help/cat/string if for example you want to replace all the spaces in your string with %20 you would call 'String array that will hold the characters you want to replace Dim tmpChar as NEW String[] Dim iterator as Integer Dim sFilename as String 'the value of your sFilename sFilename = "/home/username/Meine Bilder/?ffentliche Fotos ?bertragen/015 das Sch?nste.jpg" 'Add the characters you want to replace tmpChar.Add("?") tmpChar.Add("?") 'Loop through the array and replace the string characters that correspond to the array characters 'with their hexadecimal values precedded by a % sign FOR iterator = 0 to tmpChar.Count -1 'set the string equal to the resulting string from the Replace$ Function sFilename = Replace$( sFilename,tmpChar[iterator],"%" & Hex$(Asc(tmpChar[iterator]))) NEXT 'to show you the finished string PRINT sFilename so you could also just make a small array with all the characters you want to change and then do a sequence of Replace$ calls replacing them with I hope these guidelines help you more (and confuse you less) Regards Dimitris On Thu, Nov 12, 2009 at 1:14 PM, Matti wrote: > Well, after some thoughts, I can answer myself. > > I tried this example: > > sFilename = "/home/username/Meine Bilder/?ffentliche Fotos ?bertragen/015 > das Sch?nste.jpg" > i = 1 > WHILE i < Len(sFilename) > sChar = Mid$(sFilename, i, 1) > IF Asc(sChar) > 122 THEN > sFilename = Left$(sFilename, i - 1) & "%" & Hex$(Asc(sChar)) & > Right$(sFilename, Len(sFilename) - i) > ELSE IF sChar = " " THEN > sFilename = Replace$(sFilename, " ", "%20") > ENDIF > i = i + 1 > WEND > sOut = "file://" & sFilename > PRINT sOut > > and it seems to work ok and reasonably fast. > But if you have better ideas, you're welcome! > > > > Matti schrieb: > > Hi, > > > > I'm looking for a string conversion function for URIs. > > It should work like CGI.Encode, but > > - don't transform slashes "/" > > - transform spaces " " not to "+" but to "%20". > > > > Couldn't find anything in Gambas. Maybe a shell command? > > > > Thanks > > Matti > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From math.eber at ...221... Thu Nov 12 21:57:22 2009 From: math.eber at ...221... (Matti) Date: Thu, 12 Nov 2009 21:57:22 +0100 Subject: [Gambas-user] string conversion In-Reply-To: <82bffccf0911121235t23b4570el532c1c5071e960e1@...627...> References: <4AFC5AEF.9040403@...221...> <4AFC6CC1.3030403@...221...> <82bffccf0911121235t23b4570el532c1c5071e960e1@...627...> Message-ID: <4AFC76B2.30908@...221...> Hi Dimitris, first thought: an array is a nice idea. But, second thought, I would have to define all those ????...characters that could occur in filenames. So, I think, the Asc(sChar) > 122 checking is easier. Matti Dimitris Anogiatis schrieb: > Hey Matti, > > you might want to roll a string conversion function of your own. > The Replace function might be of particular use to you. > > You can read about it over here > http://www.gambasdoc.org/help/lang/replace > > and you can also find all the other string related functions over here > http://www.gambasdoc.org/help/cat/string > > if for example you want to replace all the spaces in your string with %20 > you would call > > 'String array that will hold the characters you want to replace > Dim tmpChar as NEW String[] > Dim iterator as Integer > Dim sFilename as String > > 'the value of your sFilename > sFilename = "/home/username/Meine Bilder/?ffentliche Fotos ?bertragen/015 > das Sch?nste.jpg" > > 'Add the characters you want to replace > tmpChar.Add("?") > tmpChar.Add("?") > > 'Loop through the array and replace the string characters that correspond to > the array characters > 'with their hexadecimal values precedded by a % sign > FOR iterator = 0 to tmpChar.Count -1 > > 'set the string equal to the resulting string from the Replace$ Function > sFilename = Replace$( sFilename,tmpChar[iterator],"%" & > Hex$(Asc(tmpChar[iterator]))) > > NEXT > > 'to show you the finished string > PRINT sFilename > > so you could also just make a small array with all the characters you want > to > change and then do a sequence of Replace$ calls replacing them with > > > I hope these guidelines help you more (and confuse you less) > > Regards > Dimitris > > > On Thu, Nov 12, 2009 at 1:14 PM, Matti wrote: > >> Well, after some thoughts, I can answer myself. >> >> I tried this example: >> >> sFilename = "/home/username/Meine Bilder/?ffentliche Fotos ?bertragen/015 >> das Sch?nste.jpg" >> i = 1 >> WHILE i < Len(sFilename) >> sChar = Mid$(sFilename, i, 1) >> IF Asc(sChar) > 122 THEN >> sFilename = Left$(sFilename, i - 1) & "%" & Hex$(Asc(sChar)) & >> Right$(sFilename, Len(sFilename) - i) >> ELSE IF sChar = " " THEN >> sFilename = Replace$(sFilename, " ", "%20") >> ENDIF >> i = i + 1 >> WEND >> sOut = "file://" & sFilename >> PRINT sOut >> >> and it seems to work ok and reasonably fast. >> But if you have better ideas, you're welcome! >> >> >> >> Matti schrieb: >>> Hi, >>> >>> I'm looking for a string conversion function for URIs. >>> It should work like CGI.Encode, but >>> - don't transform slashes "/" >>> - transform spaces " " not to "+" but to "%20". >>> >>> Couldn't find anything in Gambas. Maybe a shell command? >>> >>> Thanks >>> Matti From robert1juhasz at ...626... Fri Nov 13 00:15:35 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Fri, 13 Nov 2009 00:15:35 +0100 Subject: [Gambas-user] packaging In-Reply-To: <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> Message-ID: <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> The installation failed also on computers where I had - mysql server / client - gambas Could someone pack my project for testing or trying to install the package I did to identify which end is inproperly done? Thx, Robi 2009/11/12 Fabien Bodard > the mysql driver does not depend on gambas but on the installation of > libmysqlclient !! > > > > 2009/11/12 Robert JUHASZ : > > Hello, > > > > I'm still suffering with making the correct installation package. It is > > painful as I'd like to share my application with my colleagues. > > > > I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 > but > > same problem: it notes that no driver for mysql. > > I'd highly appreciate if someone can help. > > > > Robi > > > > 2009/11/2 Robert JUHASZ > > > >> Hello, > >> > >> I use Gambas 2.16 and 2.17 (I work on two machines). > >> I installed the application on these machines i.e. the gambas IDE was > >> already on the machine. Is it possible that it was the problem? I may > try to > >> make an install on a "virgin" machine. > >> > >> Robi > >> > >> 2009/11/1 Beno?t Minisini > >> > >> > 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 > >>> > > >>> > > >>> > >>> You must use at least Gambas 2.14 to be able to add a dependency on > >>> gb.db.mysql in your project. The bug has been fixed in that release. > >>> > >>> The package you created will install all the dependencies needed to run > >>> *your* > >>> program, but not the Gambas IDE. If you want to run the Gambas IDE on > the > >>> destination system, you must install the gambas2-ide package. > >>> > >>> If you have installed the gambas2-ide package, and can't run Gambas, > then > >>> the > >>> package is buggy. > >>> > >>> 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 > >>> > >> > >> > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 13 12:12:49 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 13 Nov 2009 12:12:49 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> Message-ID: <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> i can try 2009/11/13 Robert JUHASZ : > The installation failed also on computers where I had > - mysql server / client > - gambas > > Could someone pack my project for testing or trying to install the package I > did to identify which end is inproperly done? > > Thx, > Robi > > 2009/11/12 Fabien Bodard > >> the mysql driver does not depend on gambas but on the installation of >> libmysqlclient !! >> >> >> >> 2009/11/12 Robert JUHASZ : >> ?> Hello, >> > >> > I'm still suffering with making the correct installation package. It is >> > painful as I'd like to share my application with my colleagues. >> > >> > I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 >> but >> > same problem: it notes that no driver for mysql. >> > I'd highly appreciate if someone can help. >> > >> > Robi >> > >> > 2009/11/2 Robert JUHASZ >> > >> >> Hello, >> >> >> >> I use Gambas 2.16 and 2.17 (I work on two machines). >> >> I installed the application on these machines i.e. the gambas IDE was >> >> already on the machine. Is it possible that it was the problem? I may >> try to >> >> make an install on a "virgin" machine. >> >> >> >> Robi >> >> >> >> 2009/11/1 Beno?t Minisini >> >> >> >> ?> 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 >> >>> > >> >>> > >> >>> >> >>> You must use at least Gambas 2.14 to be able to add a dependency on >> >>> gb.db.mysql in your project. The bug has been fixed in that release. >> >>> >> >>> The package you created will install all the dependencies needed to run >> >>> *your* >> >>> program, but not the Gambas IDE. If you want to run the Gambas IDE on >> the >> >>> destination system, you must install the gambas2-ide package. >> >>> >> >>> If you have installed the gambas2-ide package, and can't run Gambas, >> then >> >>> the >> >>> package is buggy. >> >>> >> >>> 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 >> >>> >> >> >> >> >> > >> ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> > trial. Simplify your report design, integration and deployment - and >> focus on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> ?_______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert1juhasz at ...626... Fri Nov 13 12:37:53 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Fri, 13 Nov 2009 12:37:53 +0100 Subject: [Gambas-user] packaging In-Reply-To: <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> Message-ID: <68652a0b0911130337y66f3036an72328ebfc28ebc2c@...627...> Superb, thanks in advance! The packed project is attached in a previous mail of this thread (dated 30 of October). Can you catch it or should I resend? The source is normally included in the package. Starting from the Gambas IDE it should work. If installed and started (will appear on the "others" category) then i should show the error message immediately as for the login I use mysql. The "bad" message is not that the database doesn't exists (it's normal for the first connection) but that the driver doesn't exists. If it can launch and requires login and password, the first time it works with "administrator" and "rendszergazda". It created it's database after in the "administrator" sheet. If you meet the same troube as I do then you'll have problem even to use Gambas with mysql (same message: no driver for mysql). When removing the application with the Janitor and also the dependencies proposed by the Janitor then everything becomes normal with Gambas. Many thank, Robi 2009/11/13 Fabien Bodard > i can try > > 2009/11/13 Robert JUHASZ : > > The installation failed also on computers where I had > > - mysql server / client > > - gambas > > > > Could someone pack my project for testing or trying to install the > package I > > did to identify which end is inproperly done? > > > > Thx, > > Robi > > > > 2009/11/12 Fabien Bodard > > > >> the mysql driver does not depend on gambas but on the installation of > >> libmysqlclient !! > >> > >> > >> > >> 2009/11/12 Robert JUHASZ : > >> > Hello, > >> > > >> > I'm still suffering with making the correct installation package. It > is > >> > painful as I'd like to share my application with my colleagues. > >> > > >> > I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 > >> but > >> > same problem: it notes that no driver for mysql. > >> > I'd highly appreciate if someone can help. > >> > > >> > Robi > >> > > >> > 2009/11/2 Robert JUHASZ > >> > > >> >> Hello, > >> >> > >> >> I use Gambas 2.16 and 2.17 (I work on two machines). > >> >> I installed the application on these machines i.e. the gambas IDE was > >> >> already on the machine. Is it possible that it was the problem? I may > >> try to > >> >> make an install on a "virgin" machine. > >> >> > >> >> Robi > >> >> > >> >> 2009/11/1 Beno?t Minisini > >> >> > >> >> > 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 > >> >>> > > >> >>> > > >> >>> > >> >>> You must use at least Gambas 2.14 to be able to add a dependency on > >> >>> gb.db.mysql in your project. The bug has been fixed in that release. > >> >>> > >> >>> The package you created will install all the dependencies needed to > run > >> >>> *your* > >> >>> program, but not the Gambas IDE. If you want to run the Gambas IDE > on > >> the > >> >>> destination system, you must install the gambas2-ide package. > >> >>> > >> >>> If you have installed the gambas2-ide package, and can't run Gambas, > >> then > >> >>> the > >> >>> package is buggy. > >> >>> > >> >>> 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 > >> >>> > >> >> > >> >> > >> > > >> > ------------------------------------------------------------------------------ > >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >> 30-Day > >> > trial. Simplify your report design, integration and deployment - and > >> focus on > >> > what you do best, core application coding. Discover what's new with > >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > >> trial. Simplify your report design, integration and deployment - and > focus > >> on > >> what you do best, core application coding. Discover what's new with > >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 13 12:54:12 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 13 Nov 2009 12:54:12 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0911130337y66f3036an72328ebfc28ebc2c@...627...> References: <25695659.post@...1379...> <200910292229.40958.gambas@...1...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> <68652a0b0911130337y66f3036an72328ebfc28ebc2c@...627...> Message-ID: <6324a42a0911130354u30bfa7e7r351a0c7e765f73ef@...627...> no problem here on gambas2.17 with ubuntu 9.10 please install the gambas-db-mysql package 2009/11/13 Robert JUHASZ : > Superb, thanks in advance! > > The packed project is attached in a previous mail of this thread (dated 30 > of October). Can you catch it or should I resend? > The source is normally included in the package. Starting from the Gambas IDE > it should work. > > If installed and started (will appear on the "others" category) then i > should show the error message immediately as for the login I use mysql. > > The "bad" message is not that the database doesn't exists (it's normal for > the first connection) but that the driver doesn't exists. > > If it can launch and requires login and password, the first time it works > with "administrator" and "rendszergazda". It created it's database after in > the "administrator" sheet. > > If you meet the same troube as I do then you'll have problem even to use > Gambas with mysql (same message: no driver for mysql). When removing the > application with the Janitor and also the dependencies proposed by the > Janitor then everything becomes normal with Gambas. > > Many thank, > Robi > > 2009/11/13 Fabien Bodard > >> i can ?try >> >> 2009/11/13 Robert JUHASZ : >> ?> The installation failed also on computers where I had >> > - mysql server / client >> > - gambas >> > >> > Could someone pack my project for testing or trying to install the >> package I >> > did to identify which end is inproperly done? >> > >> > Thx, >> > Robi >> > >> > 2009/11/12 Fabien Bodard >> > >> >> the mysql driver does not depend on gambas but on the installation of >> >> libmysqlclient !! >> >> >> >> >> >> >> >> 2009/11/12 Robert JUHASZ : >> >> ?> Hello, >> >> > >> >> > I'm still suffering with making the correct installation package. It >> is >> >> > painful as I'd like to share my application with my colleagues. >> >> > >> >> > I tried to do the install on an other virgin (gambas-free) ubuntu 9.04 >> >> but >> >> > same problem: it notes that no driver for mysql. >> >> > I'd highly appreciate if someone can help. >> >> > >> >> > Robi >> >> > >> >> > 2009/11/2 Robert JUHASZ >> >> > >> >> >> Hello, >> >> >> >> >> >> I use Gambas 2.16 and 2.17 (I work on two machines). >> >> >> I installed the application on these machines i.e. the gambas IDE was >> >> >> already on the machine. Is it possible that it was the problem? I may >> >> try to >> >> >> make an install on a "virgin" machine. >> >> >> >> >> >> Robi >> >> >> >> >> >> 2009/11/1 Beno?t Minisini >> >> >> >> >> >> ?> 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 >> >> >>> > >> >> >>> > >> >> >>> >> >> >>> You must use at least Gambas 2.14 to be able to add a dependency on >> >> >>> gb.db.mysql in your project. The bug has been fixed in that release. >> >> >>> >> >> >>> The package you created will install all the dependencies needed to >> run >> >> >>> *your* >> >> >>> program, but not the Gambas IDE. If you want to run the Gambas IDE >> on >> >> the >> >> >>> destination system, you must install the gambas2-ide package. >> >> >>> >> >> >>> If you have installed the gambas2-ide package, and can't run Gambas, >> >> then >> >> >>> the >> >> >>> package is buggy. >> >> >>> >> >> >>> 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 >> >> >>> >> >> >> >> >> >> >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> >> 30-Day >> >> > trial. Simplify your report design, integration and deployment - and >> >> focus on >> >> > what you do best, core application coding. Discover what's new with >> >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> >> trial. Simplify your report design, integration and deployment - and >> focus >> >> on >> >> what you do best, core application coding. Discover what's new with >> >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> >> ?_______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> > trial. Simplify your report design, integration and deployment - and >> focus on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From robert1juhasz at ...626... Fri Nov 13 13:07:57 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Fri, 13 Nov 2009 13:07:57 +0100 Subject: [Gambas-user] packaging In-Reply-To: <6324a42a0911130354u30bfa7e7r351a0c7e765f73ef@...627...> References: <25695659.post@...1379...> <68652a0b0910300147t468a8662qa5b4ec2f2be72bbb@...627...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> <68652a0b0911130337y66f3036an72328ebfc28ebc2c@...627...> <6324a42a0911130354u30bfa7e7r351a0c7e765f73ef@...627...> Message-ID: <68652a0b0911130407q4330b5e1g9a135d7aeb4e84d3@...627...> Good news! Do you mean that you installed and runs normally or tried from the source code? How can I have installed the gambas-db-mysql on computers where I don't have the gambas? (I just started with Ubuntu as well) On the PC I develop (Gambas installed) is it possible that this component is missing? From the IDE I can fairly acces the mysql. I also use Gambas 2.17 but I'm not 100% sure if I installed correcly. Do you have a link where can I find a complete version? The links on the wiki are broken for me. Sorry for the lots of questions.. Thx, Robi 2009/11/13 Fabien Bodard > no problem here on gambas2.17 with ubuntu 9.10 > > please install the gambas-db-mysql package > > 2009/11/13 Robert JUHASZ : > > Superb, thanks in advance! > > > > The packed project is attached in a previous mail of this thread (dated > 30 > > of October). Can you catch it or should I resend? > > The source is normally included in the package. Starting from the Gambas > IDE > > it should work. > > > > If installed and started (will appear on the "others" category) then i > > should show the error message immediately as for the login I use mysql. > > > > The "bad" message is not that the database doesn't exists (it's normal > for > > the first connection) but that the driver doesn't exists. > > > > If it can launch and requires login and password, the first time it works > > with "administrator" and "rendszergazda". It created it's database after > in > > the "administrator" sheet. > > > > If you meet the same troube as I do then you'll have problem even to use > > Gambas with mysql (same message: no driver for mysql). When removing the > > application with the Janitor and also the dependencies proposed by the > > Janitor then everything becomes normal with Gambas. > > > > Many thank, > > Robi > > > > 2009/11/13 Fabien Bodard > > > >> i can try > >> > >> 2009/11/13 Robert JUHASZ : > >> > The installation failed also on computers where I had > >> > - mysql server / client > >> > - gambas > >> > > >> > Could someone pack my project for testing or trying to install the > >> package I > >> > did to identify which end is inproperly done? > >> > > >> > Thx, > >> > Robi > >> > > >> > 2009/11/12 Fabien Bodard > >> > > >> >> the mysql driver does not depend on gambas but on the installation of > >> >> libmysqlclient !! > >> >> > >> >> > >> >> > >> >> 2009/11/12 Robert JUHASZ : > >> >> > Hello, > >> >> > > >> >> > I'm still suffering with making the correct installation package. > It > >> is > >> >> > painful as I'd like to share my application with my colleagues. > >> >> > > >> >> > I tried to do the install on an other virgin (gambas-free) ubuntu > 9.04 > >> >> but > >> >> > same problem: it notes that no driver for mysql. > >> >> > I'd highly appreciate if someone can help. > >> >> > > >> >> > Robi > >> >> > > >> >> > 2009/11/2 Robert JUHASZ > >> >> > > >> >> >> Hello, > >> >> >> > >> >> >> I use Gambas 2.16 and 2.17 (I work on two machines). > >> >> >> I installed the application on these machines i.e. the gambas IDE > was > >> >> >> already on the machine. Is it possible that it was the problem? I > may > >> >> try to > >> >> >> make an install on a "virgin" machine. > >> >> >> > >> >> >> Robi > >> >> >> > >> >> >> 2009/11/1 Beno?t Minisini > >> >> >> > >> >> >> > 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 > >> >> >>> > > >> >> >>> > > >> >> >>> > >> >> >>> You must use at least Gambas 2.14 to be able to add a dependency > on > >> >> >>> gb.db.mysql in your project. The bug has been fixed in that > release. > >> >> >>> > >> >> >>> The package you created will install all the dependencies needed > to > >> run > >> >> >>> *your* > >> >> >>> program, but not the Gambas IDE. If you want to run the Gambas > IDE > >> on > >> >> the > >> >> >>> destination system, you must install the gambas2-ide package. > >> >> >>> > >> >> >>> If you have installed the gambas2-ide package, and can't run > Gambas, > >> >> then > >> >> >>> the > >> >> >>> package is buggy. > >> >> >>> > >> >> >>> 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 > >> >> >>> > >> >> >> > >> >> >> > >> >> > > >> >> > >> > ------------------------------------------------------------------------------ > >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > >> >> 30-Day > >> >> > trial. Simplify your report design, integration and deployment - > and > >> >> focus on > >> >> > what you do best, core application coding. Discover what's new with > >> >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > > >> >> > >> >> > >> >> > >> > ------------------------------------------------------------------------------ > >> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >> 30-Day > >> >> trial. Simplify your report design, integration and deployment - and > >> focus > >> >> on > >> >> what you do best, core application coding. Discover what's new with > >> >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > > >> > ------------------------------------------------------------------------------ > >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >> 30-Day > >> > trial. Simplify your report design, integration and deployment - and > >> focus on > >> > what you do best, core application coding. Discover what's new with > >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> > >> > ------------------------------------------------------------------------------ > >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > >> trial. Simplify your report design, integration and deployment - and > focus > >> on > >> what you do best, core application coding. Discover what's new with > >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 13 15:46:50 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 13 Nov 2009 15:46:50 +0100 Subject: [Gambas-user] packaging In-Reply-To: <68652a0b0911130407q4330b5e1g9a135d7aeb4e84d3@...627...> References: <25695659.post@...1379...> <200911011538.30572.gambas@...1...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> <68652a0b0911130337y66f3036an72328ebfc28ebc2c@...627...> <6324a42a0911130354u30bfa7e7r351a0c7e765f73ef@...627...> <68652a0b0911130407q4330b5e1g9a135d7aeb4e84d3@...627...> Message-ID: <6324a42a0911130646v22e8eedaob728a9f4660fec5f@...627...> my gambas2 is the ubuntu one... :/ nothing special all is working well here 2009/11/13 Robert JUHASZ : > Good news! Do you mean that you installed and runs normally or tried from > the source code? > > How can I have installed the gambas-db-mysql on computers where I don't have > the gambas? (I just started with Ubuntu as well) > > On the PC I develop (Gambas installed) is it possible that this component is > missing? From the IDE I can fairly acces the mysql. > > I also use Gambas 2.17 but I'm not 100% sure if I installed correcly. Do you > have a link where can I find a complete version? The links on the wiki are > broken for me. > Sorry for the lots of questions.. > > Thx, Robi > > 2009/11/13 Fabien Bodard > >> no problem here on gambas2.17 with ubuntu 9.10 >> >> please install the gambas-db-mysql package >> >> 2009/11/13 Robert JUHASZ : >> > Superb, thanks in advance! >> > >> > The packed project is attached in a previous mail of this thread (dated >> 30 >> > of October). Can you catch it or should I resend? >> > The source is normally included in the package. Starting from the Gambas >> IDE >> > it should work. >> > >> > If installed and started (will appear on the "others" category) then i >> > should show the error message immediately as for the login I use mysql. >> > >> > The "bad" message is not that the database doesn't exists (it's normal >> for >> > the first connection) but that the driver doesn't exists. >> > >> > If it can launch and requires login and password, the first time it works >> > with "administrator" and "rendszergazda". It created it's database after >> in >> > the "administrator" sheet. >> > >> > If you meet the same troube as I do then you'll have problem even to use >> > Gambas with mysql (same message: no driver for mysql). When removing the >> > application with the Janitor and also the dependencies proposed by the >> > Janitor then everything becomes normal with Gambas. >> > >> > Many thank, >> > Robi >> > >> > 2009/11/13 Fabien Bodard >> > >> >> i can ?try >> >> >> >> 2009/11/13 Robert JUHASZ : >> >> ?> The installation failed also on computers where I had >> >> > - mysql server / client >> >> > - gambas >> >> > >> >> > Could someone pack my project for testing or trying to install the >> >> package I >> >> > did to identify which end is inproperly done? >> >> > >> >> > Thx, >> >> > Robi >> >> > >> >> > 2009/11/12 Fabien Bodard >> >> > >> >> >> the mysql driver does not depend on gambas but on the installation of >> >> >> libmysqlclient !! >> >> >> >> >> >> >> >> >> >> >> >> 2009/11/12 Robert JUHASZ : >> >> >> ?> Hello, >> >> >> > >> >> >> > I'm still suffering with making the correct installation package. >> It >> >> is >> >> >> > painful as I'd like to share my application with my colleagues. >> >> >> > >> >> >> > I tried to do the install on an other virgin (gambas-free) ubuntu >> 9.04 >> >> >> but >> >> >> > same problem: it notes that no driver for mysql. >> >> >> > I'd highly appreciate if someone can help. >> >> >> > >> >> >> > Robi >> >> >> > >> >> >> > 2009/11/2 Robert JUHASZ >> >> >> > >> >> >> >> Hello, >> >> >> >> >> >> >> >> I use Gambas 2.16 and 2.17 (I work on two machines). >> >> >> >> I installed the application on these machines i.e. the gambas IDE >> was >> >> >> >> already on the machine. Is it possible that it was the problem? I >> may >> >> >> try to >> >> >> >> make an install on a "virgin" machine. >> >> >> >> >> >> >> >> Robi >> >> >> >> >> >> >> >> 2009/11/1 Beno?t Minisini >> >> >> >> >> >> >> >> ?> 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 >> >> >> >>> > >> >> >> >>> > >> >> >> >>> >> >> >> >>> You must use at least Gambas 2.14 to be able to add a dependency >> on >> >> >> >>> gb.db.mysql in your project. The bug has been fixed in that >> release. >> >> >> >>> >> >> >> >>> The package you created will install all the dependencies needed >> to >> >> run >> >> >> >>> *your* >> >> >> >>> program, but not the Gambas IDE. If you want to run the Gambas >> IDE >> >> on >> >> >> the >> >> >> >>> destination system, you must install the gambas2-ide package. >> >> >> >>> >> >> >> >>> If you have installed the gambas2-ide package, and can't run >> Gambas, >> >> >> then >> >> >> >>> the >> >> >> >>> package is buggy. >> >> >> >>> >> >> >> >>> 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 >> >> >> >>> >> >> >> >> >> >> >> >> >> >> >> > >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 >> >> >> 30-Day >> >> >> > trial. Simplify your report design, integration and deployment - >> and >> >> >> focus on >> >> >> > what you do best, core application coding. Discover what's new with >> >> >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> >> >> > _______________________________________________ >> >> >> > Gambas-user mailing list >> >> >> > Gambas-user at lists.sourceforge.net >> >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> >> 30-Day >> >> >> trial. Simplify your report design, integration and deployment - and >> >> focus >> >> >> on >> >> >> what you do best, core application coding. Discover what's new with >> >> >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> >> >> ?_______________________________________________ >> >> >> Gambas-user mailing list >> >> >> Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> > >> >> >> ------------------------------------------------------------------------------ >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> >> 30-Day >> >> > trial. Simplify your report design, integration and deployment - and >> >> focus on >> >> > what you do best, core application coding. Discover what's new with >> >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> >> trial. Simplify your report design, integration and deployment - and >> focus >> >> on >> >> what you do best, core application coding. Discover what's new with >> >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > >> ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> > trial. Simplify your report design, integration and deployment - and >> focus on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 13 17:08:41 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 13 Nov 2009 17:08:41 +0100 Subject: [Gambas-user] packaging In-Reply-To: <6324a42a0911130646v22e8eedaob728a9f4660fec5f@...627...> References: <25695659.post@...1379...> <68652a0b0911011857s5b347fa1i9791a5f355dcdc60@...627...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> <68652a0b0911130337y66f3036an72328ebfc28ebc2c@...627...> <6324a42a0911130354u30bfa7e7r351a0c7e765f73ef@...627...> <68652a0b0911130407q4330b5e1g9a135d7aeb4e84d3@...627...> <6324a42a0911130646v22e8eedaob728a9f4660fec5f@...627...> Message-ID: <6324a42a0911130808h5df2a78bx5602104c2b75bdd9@...627...> Cannot load component 'gb.form.dialog': cannot find library you need to install this component too / 2009/11/13 Fabien Bodard : > my gambas2 is the ubuntu one... :/ > > nothing special > > all is working well here > > 2009/11/13 Robert JUHASZ : >> Good news! Do you mean that you installed and runs normally or tried from >> the source code? >> >> How can I have installed the gambas-db-mysql on computers where I don't have >> the gambas? (I just started with Ubuntu as well) >> >> On the PC I develop (Gambas installed) is it possible that this component is >> missing? From the IDE I can fairly acces the mysql. >> >> I also use Gambas 2.17 but I'm not 100% sure if I installed correcly. Do you >> have a link where can I find a complete version? The links on the wiki are >> broken for me. >> Sorry for the lots of questions.. >> >> Thx, Robi >> >> 2009/11/13 Fabien Bodard >> >>> no problem here on gambas2.17 with ubuntu 9.10 >>> >>> please install the gambas-db-mysql package >>> >>> 2009/11/13 Robert JUHASZ : >>> > Superb, thanks in advance! >>> > >>> > The packed project is attached in a previous mail of this thread (dated >>> 30 >>> > of October). Can you catch it or should I resend? >>> > The source is normally included in the package. Starting from the Gambas >>> IDE >>> > it should work. >>> > >>> > If installed and started (will appear on the "others" category) then i >>> > should show the error message immediately as for the login I use mysql. >>> > >>> > The "bad" message is not that the database doesn't exists (it's normal >>> for >>> > the first connection) but that the driver doesn't exists. >>> > >>> > If it can launch and requires login and password, the first time it works >>> > with "administrator" and "rendszergazda". It created it's database after >>> in >>> > the "administrator" sheet. >>> > >>> > If you meet the same troube as I do then you'll have problem even to use >>> > Gambas with mysql (same message: no driver for mysql). When removing the >>> > application with the Janitor and also the dependencies proposed by the >>> > Janitor then everything becomes normal with Gambas. >>> > >>> > Many thank, >>> > Robi >>> > >>> > 2009/11/13 Fabien Bodard >>> > >>> >> i can ?try >>> >> >>> >> 2009/11/13 Robert JUHASZ : >>> >> ?> The installation failed also on computers where I had >>> >> > - mysql server / client >>> >> > - gambas >>> >> > >>> >> > Could someone pack my project for testing or trying to install the >>> >> package I >>> >> > did to identify which end is inproperly done? >>> >> > >>> >> > Thx, >>> >> > Robi >>> >> > >>> >> > 2009/11/12 Fabien Bodard >>> >> > >>> >> >> the mysql driver does not depend on gambas but on the installation of >>> >> >> libmysqlclient !! >>> >> >> >>> >> >> >>> >> >> >>> >> >> 2009/11/12 Robert JUHASZ : >>> >> >> ?> Hello, >>> >> >> > >>> >> >> > I'm still suffering with making the correct installation package. >>> It >>> >> is >>> >> >> > painful as I'd like to share my application with my colleagues. >>> >> >> > >>> >> >> > I tried to do the install on an other virgin (gambas-free) ubuntu >>> 9.04 >>> >> >> but >>> >> >> > same problem: it notes that no driver for mysql. >>> >> >> > I'd highly appreciate if someone can help. >>> >> >> > >>> >> >> > Robi >>> >> >> > >>> >> >> > 2009/11/2 Robert JUHASZ >>> >> >> > >>> >> >> >> Hello, >>> >> >> >> >>> >> >> >> I use Gambas 2.16 and 2.17 (I work on two machines). >>> >> >> >> I installed the application on these machines i.e. the gambas IDE >>> was >>> >> >> >> already on the machine. Is it possible that it was the problem? I >>> may >>> >> >> try to >>> >> >> >> make an install on a "virgin" machine. >>> >> >> >> >>> >> >> >> Robi >>> >> >> >> >>> >> >> >> 2009/11/1 Beno?t Minisini >>> >> >> >> >>> >> >> >> ?> 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 >>> >> >> >>> > >>> >> >> >>> > >>> >> >> >>> >>> >> >> >>> You must use at least Gambas 2.14 to be able to add a dependency >>> on >>> >> >> >>> gb.db.mysql in your project. The bug has been fixed in that >>> release. >>> >> >> >>> >>> >> >> >>> The package you created will install all the dependencies needed >>> to >>> >> run >>> >> >> >>> *your* >>> >> >> >>> program, but not the Gambas IDE. If you want to run the Gambas >>> IDE >>> >> on >>> >> >> the >>> >> >> >>> destination system, you must install the gambas2-ide package. >>> >> >> >>> >>> >> >> >>> If you have installed the gambas2-ide package, and can't run >>> Gambas, >>> >> >> then >>> >> >> >>> the >>> >> >> >>> package is buggy. >>> >> >> >>> >>> >> >> >>> 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 >>> >> >> >>> >>> >> >> >> >>> >> >> >> >>> >> >> > >>> >> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports >>> 2008 >>> >> >> 30-Day >>> >> >> > trial. Simplify your report design, integration and deployment - >>> and >>> >> >> focus on >>> >> >> > what you do best, core application coding. Discover what's new with >>> >> >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>> >> >> > _______________________________________________ >>> >> >> > Gambas-user mailing list >>> >> >> > Gambas-user at lists.sourceforge.net >>> >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > >>> >> >> >>> >> >> >>> >> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> >> 30-Day >>> >> >> trial. Simplify your report design, integration and deployment - and >>> >> focus >>> >> >> on >>> >> >> what you do best, core application coding. Discover what's new with >>> >> >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>> >> >> ?_______________________________________________ >>> >> >> Gambas-user mailing list >>> >> >> Gambas-user at lists.sourceforge.net >>> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >>> >> > >>> >> >>> ------------------------------------------------------------------------------ >>> >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> >> 30-Day >>> >> > trial. Simplify your report design, integration and deployment - and >>> >> focus on >>> >> > what you do best, core application coding. Discover what's new with >>> >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>> >> > _______________________________________________ >>> >> > Gambas-user mailing list >>> >> > Gambas-user at lists.sourceforge.net >>> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> > >>> >> >>> >> >>> >> >>> ------------------------------------------------------------------------------ >>> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> >> trial. Simplify your report design, integration and deployment - and >>> focus >>> >> on >>> >> what you do best, core application coding. Discover what's new with >>> >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>> >> _______________________________________________ >>> >> Gambas-user mailing list >>> >> Gambas-user at lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >>> > >>> ------------------------------------------------------------------------------ >>> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day >>> > trial. Simplify your report design, integration and deployment - and >>> focus on >>> > what you do best, core application coding. Discover what's new with >>> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>> trial. Simplify your report design, integration and deployment - and focus >>> on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From arosa at ...2015... Sat Nov 14 02:27:49 2009 From: arosa at ...2015... (Toni) Date: Sat, 14 Nov 2009 02:27:49 +0100 Subject: [Gambas-user] 2 forms closing at the same time. Is it a bug? Message-ID: <4AFE0795.7010505@...2015...> Hi, I'm not sure whether this is a bug or it's me doing something wrong... When I want to show two (or more) Forms from a module set as "Startup class" in its main function, whenever a "ME.close" is called within one of the forms, the other(s) one gets closed too. To me this isn't the expected behavior... Just one of them should get closed (the ME part is what made me expect it). I attach a simple project to illustrate my point, but basically it's as follows: 1st.- Module1 ( as startup class) PUBLIC FUNCTION Main() Form1.Show FMain.Show END 2nd.- In Form1 "ME.Close" is executed 3th.- The FMain form gets closed too and the application finishes. Instead I would expect Fmain not being closed and the application left running until Fmain gets closed by its own means. Regards, Toni P.S.: I'm testing it in an Ubuntu 8.10 64bits with Gambas version 2.17 (revision 2415) -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-gzip Size: 9247 bytes Desc: not available URL: From 12ukwn at ...626... Sat Nov 14 02:41:57 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 02:41:57 +0100 Subject: [Gambas-user] tags Message-ID: <4AFE0AE5.7030009@...626...> Hi, Is it possible to recover any kind of widget's value only from its tag (as far as tags are all numerics 0,1,2...) from into a loop? -- Debian Hint #6: There is no hint #6. Submit a hint today ! From doriano.blengino at ...1909... Sat Nov 14 08:27:22 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 14 Nov 2009 08:27:22 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFE0AE5.7030009@...626...> References: <4AFE0AE5.7030009@...626...> Message-ID: <4AFE5BDA.3080802@...1909...> Jean-Yves F. Barbier ha scritto: > Hi, > > Is it possible to recover any kind of widget's value only from > its tag (as far as tags are all numerics 0,1,2...) from into a loop? > > I am not sure about what you want... anyway... It seems to me that the TAG property is a variant, so you can assign any kind of value to it (at least in code); using the GUI designer seems to let you only use strings. When you later access the TAG property, its value will retain the type of data you assigned to it. For example, I just tried this: PUBLIC SUB Form_Open() TextArea1.Tag = listview1 TextBox1.Text = TextArea1.Tag.name TextBox1.Text = TextArea1.Tag END The first line shows that you can assign an arbitrary object to the TAG field. The second line shows that you can read what is stored in TAG; having you stored a ListView, then you can read its Name property, The text of TextBox1 now gets assigned to the string "Listview1". The third line fires an error, but only at runtime; during compilation gambas can not know what the content of Textarea1.Tag is, so it can not decide if this content is compatible to a string (to be stored in TextBox1.text). At runtime, instead, gambas reads the content of TextArea1.tag and it finds it is an object: the object ListView1; now, it can not assign an object to a string, so it rises an errore (expected string, got ListView instead...). About "recover any kind [...] from into a loop", I don't understand. Perhaps you want to scan all the controls residing on a form - there is the Controls[] property for that. Or you want to stream out all the properties of an object, perhaps to a file? This is possible too, I think - look at the Object class (or the Class class, can't remember), which has method to inspect... objects. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From dosida at ...626... Sat Nov 14 09:07:34 2009 From: dosida at ...626... (Dimitris Anogiatis) Date: Sat, 14 Nov 2009 01:07:34 -0700 Subject: [Gambas-user] 2 forms closing at the same time. Is it a bug? In-Reply-To: <4AFE0795.7010505@...2015...> References: <4AFE0795.7010505@...2015...> Message-ID: <82bffccf0911140007w3fbbc5fbl649c5ddb1398d888@...627...> Hey Toni, Fmail closes because it was loaded last. If you move FMain.Show first ie FMain.Show Form1.Show Form1.closein(8) then FMain remains after Form1 closes I tried your program in Debian Lenny 5.0.3 in Gambas 2.16 It should work in 2.17 as well but give it a try I hope this helps Regards, Dimitris On Fri, Nov 13, 2009 at 6:27 PM, Toni wrote: > Hi, > I'm not sure whether this is a bug or it's me doing something wrong... > > When I want to show two (or more) Forms from a module set as "Startup > class" in its main function, whenever a "ME.close" is called within one of > the forms, the other(s) one gets closed too. > To me this isn't the expected behavior... Just one of them should get > closed (the ME part is what made me expect it). > > I attach a simple project to illustrate my point, but basically it's as > follows: > > 1st.- Module1 ( as startup class) > PUBLIC FUNCTION Main() > > Form1.Show > FMain.Show > > END > > 2nd.- In Form1 "ME.Close" is executed > > 3th.- The FMain form gets closed too and the application finishes. > > Instead I would expect Fmain not being closed and the application left > running until Fmain gets closed by its own means. > > Regards, > Toni > > > P.S.: I'm testing it in an Ubuntu 8.10 64bits with Gambas version 2.17 > (revision 2415) > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Sat Nov 14 10:15:47 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 14 Nov 2009 10:15:47 +0100 Subject: [Gambas-user] 2 forms closing at the same time. Is it a bug? In-Reply-To: <82bffccf0911140007w3fbbc5fbl649c5ddb1398d888@...627...> References: <4AFE0795.7010505@...2015...> <82bffccf0911140007w3fbbc5fbl649c5ddb1398d888@...627...> Message-ID: <6324a42a0911140115w8ca126bx9e234e328b5a469f@...627...> this is a bug and a veature too... Benoit have set the first windows to be the main one ..; so it manage the whole program.. nevertheless if we start from a module ... it will not do that ! 2009/11/14 Dimitris Anogiatis : > Hey Toni, > > Fmail closes because it was loaded last. > If you move FMain.Show first ie > > ?FMain.Show > ?Form1.Show > ?Form1.closein(8) > > then FMain remains after Form1 closes > > I tried your program in Debian Lenny 5.0.3 in Gambas 2.16 > > It should work in 2.17 as well but give it a try > > I hope this helps > > Regards, > Dimitris > > On Fri, Nov 13, 2009 at 6:27 PM, Toni wrote: > >> Hi, >> I'm not sure whether this is a bug or it's me doing something wrong... >> >> When I want to show two (or more) Forms from a module set as "Startup >> class" in its main function, ?whenever a "ME.close" is called within one of >> the forms, the other(s) one gets closed too. >> To me this isn't the expected behavior... Just one of them should get >> closed (the ME part is what made me expect it). >> >> I attach a simple project to illustrate my point, but basically it's as >> follows: >> >> 1st.- Module1 ( as startup class) >> PUBLIC FUNCTION Main() >> >> ?Form1.Show >> ?FMain.Show >> >> END >> >> 2nd.- In Form1 "ME.Close" is executed >> >> 3th.- The FMain form gets closed too and the application finishes. >> >> Instead I would expect Fmain not being closed and the application left >> running until Fmain gets closed by its own means. >> >> Regards, >> Toni >> >> >> P.S.: I'm testing it in an Ubuntu 8.10 64bits with Gambas version 2.17 >> (revision 2415) >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sat Nov 14 11:49:02 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 14 Nov 2009 11:49:02 +0100 Subject: [Gambas-user] 2 forms closing at the same time. Is it a bug? In-Reply-To: <4AFE0795.7010505@...2015...> References: <4AFE0795.7010505@...2015...> Message-ID: <200911141149.02220.gambas@...1...> > Hi, > I'm not sure whether this is a bug or it's me doing something wrong... > > When I want to show two (or more) Forms from a module set as "Startup > class" in its main function, whenever a "ME.close" is called within one > of the forms, the other(s) one gets closed too. > To me this isn't the expected behavior... Just one of them should get > closed (the ME part is what made me expect it). > > I attach a simple project to illustrate my point, but basically it's as > follows: > > 1st.- Module1 ( as startup class) > PUBLIC FUNCTION Main() > > Form1.Show > FMain.Show > > END > > 2nd.- In Form1 "ME.Close" is executed > > 3th.- The FMain form gets closed too and the application finishes. > > Instead I would expect Fmain not being closed and the application left > running until Fmain gets closed by its own means. > > Regards, > Toni > > > P.S.: I'm testing it in an Ubuntu 8.10 64bits with Gambas version 2.17 > (revision 2415) > The first shown window is the "main window", and closing it automatically close all other opened windows. Maybe I should have made this feature optional. Regards, -- Beno?t Minisini From 12ukwn at ...626... Sat Nov 14 16:22:39 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 16:22:39 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFE5BDA.3080802@...1909...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> Message-ID: <4AFECB3F.6080907@...626...> Doriano Blengino a ?crit : .... > About "recover any kind [...] from into a loop", I don't understand. > Perhaps you want to scan all the controls residing on a form - there is > the Controls[] property for that. Or you want to stream out all the Yes you got it Doriano! :D > properties of an object, perhaps to a file? This is possible too, I > think - look at the Object class (or the Class class, can't remember), > which has method to inspect... objects. Thanks -- You will gain money by a fattening action. From doriano.blengino at ...1909... Sat Nov 14 17:15:37 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 14 Nov 2009 17:15:37 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFECB3F.6080907@...626...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> Message-ID: <4AFED7A9.7090704@...1909...> Jean-Yves F. Barbier ha scritto: > Doriano Blengino a ?crit : > .... > >> About "recover any kind [...] from into a loop", I don't understand. >> Perhaps you want to scan all the controls residing on a form - there is >> the Controls[] property for that. Or you want to stream out all the >> > > I am suspecting you are transferring data from and to a database... don't know why I suspect... May be the following routines can act as a base, if this is your duty. The first one, load_record(), takes a container and a Result as parameters, and fills every control in the container with the corresponding data from the current record of Result. In the container, relevant controls must be named "edDBxxxx", where "xxxx" is the name of the field from database; other controls are ignored. For every kind of control different code is used, so you can use specialized controls, as I did with TDbCalcBox, which is a special control of mines. ' transfers a record from a result to a page; TRUE if error PUBLIC SUB load_record(hCont AS Container, res AS Result) AS Boolean DIM obj AS Object FOR EACH obj IN hCont.Children IF obj.name LIKE "edDB*" THEN SELECT Lower(object.Type(obj)) CASE "textbox", "tdbsimplebox" TRY obj.text = res[Mid(obj.name, 5)] CASE "tdbcalcbox" obj.text = "0" TRY obj.text = utils.formatdecimal(res[Mid(obj.name, 5)], "#,0", obj.decimals) CASE "tdbdatebox" IF dateformat = "" THEN calculate_dateseparator obj.text = "" ' TRY obj.text = Format(res[Mid(obj.name, 5)], dateformat) TRY obj.text = canonicaldate(Format(res[Mid(obj.name, 5)], gb.GeneralDate)) CASE "checkbox" obj.value = FALSE IF res[Mid(obj.name, 5)] THEN obj.value = TRUE CASE "label" obj.text = "?" TRY obj.text = res[Mid(obj.name, 5)] END SELECT ENDIF NEXT RETURN FALSE CATCH Message.Error("Errore " & error.Text & " in " & error.Where) RETURN TRUE END This is the counterpart of the previous, to write a record out to a database. ' transfers a record from page to database; TRUE if error PUBLIC SUB save_record(hCont AS Container, recmod AS Result) AS Boolean DIM obj AS Object DIM st AS String FOR EACH obj IN hCont.Children IF obj.name LIKE "edDB*" THEN SELECT Lower(object.Type(obj)) CASE "textbox", "tdbsimplebox" recmod[Mid(obj.name, 5)] = obj.text CASE "tdbcalcbox" recmod[Mid(obj.name, 5)] = utils.formatted2float(obj.text) CASE "tdbdatebox" st = canonicaldate(obj.text) IF st <> "" THEN recmod[Mid(obj.name, 5)] = Val(st) CASE "checkbox" recmod[Mid(obj.name, 5)] = obj.value END SELECT ENDIF NEXT recmod.Update RETURN FALSE CATCH Message.Error("Errore " & error.Text & " in " & error.Where) RETURN TRUE END This last one fills a grid, displaying a Result in tabular form. ' prepare and fill a grid with data from a result ' columns are defined as "dbfield/title!width" ' dbfield is the field name in recordset ' title is the column title; if absent, same as dbfield ' width is the column width. If absent, equally spaced columns are used ' example: "id/Unique code!120 ' columns are modified only if col[0].text is empty PUBLIC SUB fill_rec_grid(gvDB AS GridView, Columns AS String, res AS result) DIM i, k, width AS Integer DIM fields AS String[] DIM st, title AS String DIM managecols AS Boolean managecols = TRUE IF gvdb.Columns.Count THEN managecols = gvdb.Columns[0].Text = "" fields = Split(columns, ",", "", FALSE) gvDB.Columns.Count = fields.Count FOR i = 0 TO fields.count - 1 st = fields[i] k = InStr(st, "!") width = gvdb.Width \ fields.Count ' default IF k THEN width = Val(Mid(st, k + 1)) st = Left(st, k - 1) ENDIF IF managecols THEN gvdb.Columns[i].Width = width k = InStr(st, "/") IF k THEN title = Mid(st, k + 1) st = Left(st, k - 1) ELSE title = st ENDIF IF managecols THEN gvdb.Columns[i].text = title title = Upper(Left(title, 1)) & Mid(title, 2) ENDIF fields[i] = st NEXT gvDB.Rows.Count = res.Count FOR i = 0 TO res.Count - 1 res.MoveTo(i) FOR k = 0 TO fields.Count - 1 title = fields[k] TRY st = res[title] IF NOT ERROR THEN width = res.Fields[title].Type ' find correct formatting SELECT width CASE 8 ' date field st = Format(res[title], gb.GeneralDate) gvDB[i, k].Text = " " & st CASE 7 ' float - align right st = " " & res[title] WHILE gvdb.font.Width(st) + 8 < gvdb.Columns[k].Width st = " " & st WEND gvDB[i, k].Text = Mid(st, 2) DEFAULT ' normal field ' do NOT format! Sometimes text is used as database key TRY gvDB[i, k].Text = res[title] END SELECT ENDIF NEXT NEXT END If this is not what you needed, simply ignore it - but may be you can see something useful. 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 Nov 14 17:19:38 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 14 Nov 2009 17:19:38 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFED7A9.7090704@...1909...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> Message-ID: <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> the same but with a collection to share the result 2009/11/14 Doriano Blengino : > Jean-Yves F. Barbier ha scritto: >> Doriano Blengino a ?crit : >> .... >> >>> About "recover any kind [...] from into a loop", I don't understand. >>> Perhaps you want to scan all the controls residing on a form - there is >>> the Controls[] property for that. Or you want to stream out all the >>> >> >> > I am suspecting you are transferring data from and to a database... > don't know why ?I suspect... > > May be the following routines can act as a base, if this is your duty. > > The first one, load_record(), takes a container and a Result as > parameters, and fills every control in the container with the > corresponding data from the current record of Result. In the container, > relevant controls must be named "edDBxxxx", where "xxxx" is the name of > the field from database; other controls are ignored. > > For every kind of control different code is used, so you can use > specialized controls, as I did with TDbCalcBox, which is a special > control of mines. > > > ? ?' transfers a record from a result to a page; TRUE if error > ? ?PUBLIC SUB load_record(hCont AS Container, res AS Result) AS Boolean > ? ? ?DIM obj AS Object > > ? ? ?FOR EACH obj IN hCont.Children > ? ? ? ?IF obj.name LIKE "edDB*" THEN > ? ? ? ? ?SELECT Lower(object.Type(obj)) > ? ? ? ? ? ?CASE "textbox", "tdbsimplebox" > ? ? ? ? ? ?TRY obj.text = res[Mid(obj.name, 5)] > > ? ? ? ? ? ?CASE "tdbcalcbox" > ? ? ? ? ? ?obj.text = "0" > ? ? ? ? ? ?TRY obj.text = utils.formatdecimal(res[Mid(obj.name, 5)], > ? ?"#,0", obj.decimals) > > ? ? ? ? ? ?CASE "tdbdatebox" > ? ? ? ? ? ?IF dateformat = "" THEN calculate_dateseparator > ? ? ? ? ? ?obj.text = "" > ? ? ? ? ? ?' TRY obj.text = Format(res[Mid(obj.name, 5)], dateformat) > ? ? ? ? ? ?TRY obj.text = canonicaldate(Format(res[Mid(obj.name, 5)], > ? ?gb.GeneralDate)) > > ? ? ? ? ? ?CASE "checkbox" > ? ? ? ? ? ?obj.value = FALSE > ? ? ? ? ? ?IF res[Mid(obj.name, 5)] THEN obj.value = TRUE > > ? ? ? ? ? ?CASE "label" > ? ? ? ? ? ?obj.text = "?" > ? ? ? ? ? ?TRY obj.text = res[Mid(obj.name, 5)] > > ? ? ? ? ?END SELECT > ? ? ? ?ENDIF > ? ? ?NEXT > ? ? ?RETURN FALSE > > ? ? ?CATCH > ? ? ?Message.Error("Errore " & error.Text & " in " & error.Where) > ? ? ?RETURN TRUE > ? ?END > > This is the counterpart of the previous, to write a record out to a > database. > > > ? ?' transfers a record from page to database; TRUE if error > ? ?PUBLIC SUB save_record(hCont AS Container, recmod AS Result) AS Boolean > ? ? ?DIM obj AS Object > ? ? ?DIM st AS String > > ? ? ?FOR EACH obj IN hCont.Children > ? ? ? ?IF obj.name LIKE "edDB*" THEN > ? ? ? ? ?SELECT Lower(object.Type(obj)) > ? ? ? ? ? ?CASE "textbox", "tdbsimplebox" > ? ? ? ? ? ?recmod[Mid(obj.name, 5)] = obj.text > > ? ? ? ? ? ?CASE "tdbcalcbox" > ? ? ? ? ? ?recmod[Mid(obj.name, 5)] = utils.formatted2float(obj.text) > > ? ? ? ? ? ?CASE "tdbdatebox" > ? ? ? ? ? ?st = canonicaldate(obj.text) > ? ? ? ? ? ?IF st <> "" THEN recmod[Mid(obj.name, 5)] = Val(st) > > ? ? ? ? ? ?CASE "checkbox" > ? ? ? ? ? ?recmod[Mid(obj.name, 5)] = obj.value > > ? ? ? ? ?END SELECT > ? ? ? ?ENDIF > ? ? ?NEXT > ? ? ?recmod.Update > ? ? ?RETURN FALSE > > ? ? ?CATCH > ? ? ?Message.Error("Errore " & error.Text & " in " & error.Where) > ? ? ?RETURN TRUE > ? ?END > > This last one fills a grid, displaying a Result in tabular form. > > ? ?' prepare and fill a grid with data from a result > ? ?' columns are defined as "dbfield/title!width" > ? ?' dbfield is the field name in recordset > ? ?' title is the column title; if absent, same as dbfield > ? ?' width is the column width. If absent, equally spaced columns are used > ? ?' example: "id/Unique code!120 > ? ?' columns are modified only if col[0].text is empty > ? ?PUBLIC SUB fill_rec_grid(gvDB AS GridView, Columns AS String, res AS > ? ?result) > ? ? ?DIM i, k, width AS Integer > ? ? ?DIM fields AS String[] > ? ? ?DIM st, title AS String > ? ? ?DIM managecols AS Boolean > > ? ? ?managecols = TRUE > ? ? ?IF gvdb.Columns.Count THEN managecols = gvdb.Columns[0].Text = "" > > ? ? ?fields = Split(columns, ",", "", FALSE) > ? ? ?gvDB.Columns.Count = fields.Count > > ? ? ?FOR i = 0 TO fields.count - 1 > ? ? ? ?st = fields[i] > ? ? ? ?k = InStr(st, "!") > ? ? ? ?width = gvdb.Width \ fields.Count ? ' default > ? ? ? ?IF k THEN > ? ? ? ? ?width = Val(Mid(st, k + 1)) > ? ? ? ? ?st = Left(st, k - 1) > ? ? ? ?ENDIF > ? ? ? ?IF managecols THEN gvdb.Columns[i].Width = width > ? ? ? ?k = InStr(st, "/") > ? ? ? ?IF k THEN > ? ? ? ? ?title = Mid(st, k + 1) > ? ? ? ? ?st = Left(st, k - 1) > ? ? ? ?ELSE > ? ? ? ? ?title = st > ? ? ? ?ENDIF > ? ? ? ?IF managecols THEN > ? ? ? ? ?gvdb.Columns[i].text = title > ? ? ? ? ?title = Upper(Left(title, 1)) & Mid(title, 2) > ? ? ? ?ENDIF > ? ? ? ?fields[i] = st > ? ? ?NEXT > ? ? ?gvDB.Rows.Count = res.Count > > ? ? ?FOR i = 0 TO res.Count - 1 > ? ? ? ?res.MoveTo(i) > ? ? ? ?FOR k = 0 TO fields.Count - 1 > ? ? ? ? ?title = fields[k] > ? ? ? ? ?TRY st = res[title] > ? ? ? ? ?IF NOT ERROR THEN > ? ? ? ? ? ?width = res.Fields[title].Type > ? ? ? ? ? ?' find correct formatting > ? ? ? ? ? ?SELECT width > ? ? ? ? ? ? ?CASE 8 > ? ? ? ? ? ? ? ?' date field > ? ? ? ? ? ? ? ?st = Format(res[title], gb.GeneralDate) > ? ? ? ? ? ? ? ?gvDB[i, k].Text = " " & st > > ? ? ? ? ? ? ?CASE 7 > ? ? ? ? ? ? ? ?' float - align right > ? ? ? ? ? ? ? ?st = " " & res[title] > ? ? ? ? ? ? ? ?WHILE gvdb.font.Width(st) + 8 < gvdb.Columns[k].Width > ? ? ? ? ? ? ? ? ?st = " " & st > ? ? ? ? ? ? ? ?WEND > ? ? ? ? ? ? ? ?gvDB[i, k].Text = Mid(st, 2) > > ? ? ? ? ? ? ?DEFAULT > ? ? ? ? ? ? ? ?' normal field > ? ? ? ? ? ? ? ?' do NOT format! Sometimes text is used as database key > ? ? ? ? ? ? ? ?TRY gvDB[i, k].Text = res[title] > ? ? ? ? ? ?END SELECT > ? ? ? ? ?ENDIF > ? ? ? ?NEXT > ? ? ?NEXT > ? ?END > > If this is not what you needed, simply ignore it - but may be you can > see something useful. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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: analyserecursive-0.0.1.tar.gz Type: application/x-gzip Size: 8265 bytes Desc: not available URL: From 12ukwn at ...626... Sat Nov 14 17:31:05 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 17:31:05 +0100 Subject: [Gambas-user] tags In-Reply-To: <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> Message-ID: <4AFEDB49.2080503@...626...> Fabien Bodard a ?crit : > the same but with a collection to share the result yes that is my (new) question > 2009/11/14 Doriano Blengino : >> Jean-Yves F. Barbier ha scritto: >>> Doriano Blengino a ?crit : >>> .... >>> >>>> About "recover any kind [...] from into a loop", I don't understand. >>>> Perhaps you want to scan all the controls residing on a form - there is >>>> the Controls[] property for that. Or you want to stream out all the >>>> >>> >> I am suspecting you are transferring data from and to a database... >> don't know why I suspect... you're right :) under python, I used a very usefull class: storage; it gives some' like that: jytest1g = Storage(view="jytest1g", ovldim=(900,400), fld=[]) jytest1g.fld.append(Storage(type='ST', name='name', lenmax=65, lensup=1, nn=True)) jytest1g.fld.append(Storage(type='ST', name='note', lenmax=128, lensup=1, nn=True)) I wanna make the same thing to recover DB user's rights (per schemas, tables and per fields), but I don't see how to make it under gambas -- Q: What do you do if an Irishman throws a pin at you? A: Run like hell, he's got a grenade in his mouth!! From 12ukwn at ...626... Sat Nov 14 17:35:09 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 17:35:09 +0100 Subject: [Gambas-user] tags In-Reply-To: <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> Message-ID: <4AFEDC3D.7030009@...626...> Fabien Bodard a ?crit : > the same but with a collection to share the result the access is also *very* easy: >>> o = Storage(a=1) >>> o.a 1 >>> o['a'] 1 >>> o.a = 2 >>> o['a'] 2 >>> del o.a >>> o.a None -- Sensible and responsible women do not want to vote. -- Grover Cleveland, 1905 From doriano.blengino at ...1909... Sat Nov 14 20:25:38 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 14 Nov 2009 20:25:38 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFEDC3D.7030009@...626...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> Message-ID: <4AFF0432.9050508@...1909...> Jean-Yves F. Barbier ha scritto: > Fabien Bodard a ?crit : > >> the same but with a collection to share the result >> > > the access is also *very* easy: > > >>> o = Storage(a=1) > >>> o.a > 1 > >>> o['a'] > 1 > >>> o.a = 2 > >>> o['a'] > 2 > >>> del o.a > >>> o.a > None > > > You can do the same in gambas, using Object[] or Collection, and creating a class for every kind of record. Unfortunately I don't know them enough to explain to you. But I can spend two words about python and ruby, and in general these "agile" languages. They are very handy, but also two problems arise. The first is that, in your example, if you write "o.a", where "o" and "a" are two identifiers (because they are not surrounded by apices or quotes), they don't resolve to two fixed address in memory - so they are no more identifiers. This wastes a lot of CPU cycles, because the interpreter must scan all pool of objects to find them. In other words, python is *slow*. Good to explain concepts, but in practical, heavy applications it is a pain. We can compare two programming IDEs: gambas and some other written in python (Boa? or others I can't remember...). On my machine, they simply suck - when gambas is quick and responsive. And think that an IDE is not a particulary heavy application. The second problem is that, I think, they don't check enough at compile time (because they can't). For me, coming from pascal, this is a big issue. Most of the time the compiler (pascal, or C) catches all my typing errors, and the rest is ok. But if the compiler does not catch errors, you are never sure that your code is ok. I am already critic with some constructs that gambas does not check enough (for me) - so I really can't stand with less rigid languages. Just a simple opinion. I think that if you investigate well your needs, you will find a clean and effective way to solve with gambas. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From 12ukwn at ...626... Sat Nov 14 20:42:04 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 20:42:04 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFF0432.9050508@...1909...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> <4AFF0432.9050508@...1909...> Message-ID: <4AFF080C.4010000@...626...> Doriano Blengino a ?crit : ... > You can do the same in gambas, using Object[] or Collection, and > creating a class for every kind of record. I found coll["key"]=value and I think that could do the trick, I'm gonna test this tonite > Unfortunately I don't know them enough to explain to you. But I can > spend two words about python and ruby, and in general these "agile" > languages. They are very handy, but also two problems arise. The first > is that, in your example, if you write "o.a", where "o" and "a" are two > identifiers (because they are not surrounded by apices or quotes), they > don't resolve to two fixed address in memory - so they are no more > identifiers. This wastes a lot of CPU cycles, because the interpreter > must scan all pool of objects to find them. In other words, python is > *slow*. Good to explain concepts, but in practical, heavy applications Yeah, I agree; it is easy to see that on my old C2.4GHz > it is a pain. We can compare two programming IDEs: gambas and some other > written in python (Boa? or others I can't remember...). On my machine, > they simply suck - when gambas is quick and responsive. And think that > an IDE is not a particulary heavy application. > > The second problem is that, I think, they don't check enough at compile > time (because they can't). For me, coming from pascal, this is a big > issue. Most of the time the compiler (pascal, or C) catches all my > typing errors, and the rest is ok. But if the compiler does not catch well, that doesn't prevent mallocs missing... > errors, you are never sure that your code is ok. I am already critic > with some constructs that gambas does not check enough (for me) - so I > really can't stand with less rigid languages. there should be 2 modes: regular (work as of now, useful when you just have one proc to test, even if syntax doesn't match for similar things) and strict (check every detail). > Just a simple opinion. I think that if you investigate well your needs, > you will find a clean and effective way to solve with gambas. this is the "problem": I learn it while making my pgm. -- Good news. Ten weeks from Friday will be a pretty good day. From doriano.blengino at ...1909... Sat Nov 14 21:18:07 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 14 Nov 2009 21:18:07 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFF080C.4010000@...626...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> <4AFF0432.9050508@...1909...> <4AFF080C.4010000@...626...> Message-ID: <4AFF107F.2020300@...1909...> Jean-Yves F. Barbier ha scritto: > Doriano Blengino a ?crit : > > >> identifiers. This wastes a lot of CPU cycles, because the interpreter >> must scan all pool of objects to find them. In other words, python is >> *slow*. Good to explain concepts, but in practical, heavy applications >> > > Yeah, I agree; it is easy to see that on my old C2.4GHz > Your old blah blah 4Ghz? I am using a Duron 900... :-)) > >> issue. Most of the time the compiler (pascal, or C) catches all my >> typing errors, and the rest is ok. But if the compiler does not catch >> > > well, that doesn't prevent mallocs missing... > Nobody wants the impossible... but at least what *is* possible... Anyway, the majority of my code is for small CPUs (with 128 bytes of ram there is not so much malloc() you can do...). And on PCs, gambas manages memory perfectly (or so it seems), without having to pay for source inconsistencies. True, there is no malloc() in gambas: who needs it? >> errors, you are never sure that your code is ok. I am already critic >> with some constructs that gambas does not check enough (for me) - so I >> really can't stand with less rigid languages. >> > > there should be 2 modes: regular (work as of now, useful when you just have > one proc to test, even if syntax doesn't match for similar things) and strict > (check every detail). > I can't see two modes for this. My best thought about compilers is the Borland Delphi 3 pascal compiler. It compiled something 4000 lines per second on pentium II, which means that for an average project you didn't even notice the compiling time. And I never found a bug in the compiler, or language. Up to now, I didn't find something so fast, solid, reliable. But I leaved the windows world, so I must adapt myself to something else. > >> Just a simple opinion. I think that if you investigate well your needs, >> you will find a clean and effective way to solve with gambas. >> > > this is the "problem": I learn it while making my pgm. > And this is the best way to learn - when you have a problem to solve. But back to your problem: why you talked about the Tag property? It seems to me that that does not gets in so much? Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From 12ukwn at ...626... Sat Nov 14 21:32:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 21:32:30 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFF107F.2020300@...1909...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> <4AFF0432.9050508@...1909...> <4AFF080C.4010000@...626...> <4AFF107F.2020300@...1909...> Message-ID: <4AFF13DE.9020007@...626...> Doriano Blengino a ?crit : ... > But back to your problem: why you talked about the Tag property? It > seems to me that that does not gets in so much? because I've got some forms that display data coming from multiple tables, so using Tag property looks like the easiest solution to store schema.table.field -- From 12ukwn at ...626... Sat Nov 14 21:36:32 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 21:36:32 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFF107F.2020300@...1909...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> <4AFF0432.9050508@...1909...> <4AFF080C.4010000@...626...> <4AFF107F.2020300@...1909...> Message-ID: <4AFF14D0.3050804@...626...> Doriano Blengino a ?crit : ... > I can't see two modes for this. My best thought about compilers is the > Borland Delphi 3 pascal compiler. It compiled something 4000 lines per > second on pentium II, which means that for an average project you didn't > even notice the compiling time. And I never found a bug in the compiler, > or language. Up to now, I didn't find something so fast, solid, > reliable. But I leaved the windows world, so I must adapt myself to > something else. This is because Beno?t is not working hard enough. We could go in together for a pot and buy him ball and chain, also tie him to his desk, send him pizzas and have a webcam survey with a buzzer to awake him. -- Love is not enough, but it sure helps. From gambas.fr at ...626... Sat Nov 14 23:06:32 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 14 Nov 2009 23:06:32 +0100 Subject: [Gambas-user] tags In-Reply-To: <4AFF14D0.3050804@...626...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> <4AFF0432.9050508@...1909...> <4AFF080C.4010000@...626...> <4AFF107F.2020300@...1909...> <4AFF14D0.3050804@...626...> Message-ID: <6324a42a0911141406j927ad96k897730c75e62e7a0@...627...> 2009/11/14 Jean-Yves F. Barbier <12ukwn at ...626...>: > Doriano Blengino a ?crit : > ... > >> I can't see two modes for this. My best thought about compilers is the >> Borland Delphi 3 pascal compiler. It compiled something 4000 lines per i've not done the test but gambas compile quickly ! with gbs : gbs make a virtual project in tmp, compile it, execute the byte code... and take less time than python for just execute the script >> second on pentium II, which means that for an average project you didn't >> even notice the compiling time. And I never found a bug in the compiler, >> or language. Up to now, I didn't find something so fast, solid, >> reliable. But I leaved the windows world, so I must adapt myself to >> something else. yes delphi was a great experience !... wath about freepascal and lazarus ? > > This is because Beno?t is not working hard enough. > We could go in together for a pot and buy him ball and chain, also tie him > to his desk, send him pizzas and have a webcam survey with a buzzer to > awake him. arf... scarry ! From 12ukwn at ...626... Sat Nov 14 23:21:13 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sat, 14 Nov 2009 23:21:13 +0100 Subject: [Gambas-user] tags In-Reply-To: <6324a42a0911141406j927ad96k897730c75e62e7a0@...627...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> <4AFF0432.9050508@...1909...> <4AFF080C.4010000@...626...> <4AFF107F.2020300@...1909...> <4AFF14D0.3050804@...626...> <6324a42a0911141406j927ad96k897730c75e62e7a0@...627...> Message-ID: <4AFF2D59.3060105@...626...> Fabien Bodard a ?crit : ... >> This is because Beno?t is not working hard enough. >> We could go in together for a pot and buy him ball and chain, also tie him >> to his desk, send him pizzas and have a webcam survey with a buzzer to >> awake him. > > > arf... scarry ! I also saw a transparent poo chair on a Japaneese site, so we could check if everything's alright for him, and at the same time earn money for his pizzas by selling connexions to scat perverts; nice doubleshot ain't it? -- From doriano.blengino at ...1909... Sat Nov 14 23:20:46 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 14 Nov 2009 23:20:46 +0100 Subject: [Gambas-user] tags In-Reply-To: <6324a42a0911141406j927ad96k897730c75e62e7a0@...627...> References: <4AFE0AE5.7030009@...626...> <4AFE5BDA.3080802@...1909...> <4AFECB3F.6080907@...626...> <4AFED7A9.7090704@...1909...> <6324a42a0911140819h69f62f34ne3e5db7ede15d563@...627...> <4AFEDC3D.7030009@...626...> <4AFF0432.9050508@...1909...> <4AFF080C.4010000@...626...> <4AFF107F.2020300@...1909...> <4AFF14D0.3050804@...626...> <6324a42a0911141406j927ad96k897730c75e62e7a0@...627...> Message-ID: <4AFF2D3E.6080202@...1909...> Fabien Bodard ha scritto: > >>> second on pentium II, which means that for an average project you didn't >>> even notice the compiling time. And I never found a bug in the compiler, >>> or language. Up to now, I didn't find something so fast, solid, >>> reliable. But I leaved the windows world, so I must adapt myself to >>> something else. >>> > > yes delphi was a great experience !... wath about freepascal and lazarus ? > I tried both. Freepascal is not too bad and I am using it right now to make an IDE. A little slow. Lazarus is too slow for me, ugly and unstable; the debugger is almost unexistent. May be I didn't used the right version - I stick with Debian stable. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From joshiggins at ...1601... Sun Nov 15 12:02:39 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 15 Nov 2009 11:02:39 +0000 Subject: [Gambas-user] form_open not raised when embedding form Message-ID: <4247f5440911150302g2b2fb58wbf5742edea8df816@...627...> Hi list I just upgraded to Ubuntu Karmic, from Gambas 2.8 to 2.13. I'm embedding a form into my main form like this: DIM hForm AS FChild hForm = NEW FChild(Panel1) However in Gambas 2.13, the FChild's Form_Open event does not run. Is this expected or is there a way round it? Thanks. -- joshua higgins >>>>>>------ From Karl.Reinl at ...9... Sun Nov 15 12:42:17 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 15 Nov 2009 12:42:17 +0100 Subject: [Gambas-user] relative path Message-ID: <1258285337.6408.28.camel@...40...> Salut, I looking for a function or switch in gambas, which gives me the path-string as relative path and not the whole path up from / -- Amicalment Charlie From gambas at ...1... Sun Nov 15 14:45:09 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 15 Nov 2009 14:45:09 +0100 Subject: [Gambas-user] form_open not raised when embedding form In-Reply-To: <4247f5440911150302g2b2fb58wbf5742edea8df816@...627...> References: <4247f5440911150302g2b2fb58wbf5742edea8df816@...627...> Message-ID: <200911151445.09498.gambas@...1...> > Hi list > > I just upgraded to Ubuntu Karmic, from Gambas 2.8 to 2.13. I'm embedding a > form into my main form like this: > > DIM hForm AS FChild > > hForm = NEW FChild(Panel1) > > However in Gambas 2.13, the FChild's Form_Open event does not run. Is this > expected or is there a way round it? > > Thanks. > > >>>>>>------ > I think that bug has been fixed since, but I'm not 100% sure, because it maybe related to the new uncompatible GTK+ provided wuth Ubuntu 9.10. Can you try to run your program by putting GDK_NATIVE_WINDOWS=1 in your environment? -- Beno?t Minisini From gambas at ...1... Sun Nov 15 15:23:51 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 15 Nov 2009 15:23:51 +0100 Subject: [Gambas-user] Misc Bugs: GTK In-Reply-To: <1257298692.4024.8.camel@...2273...> References: <1257298692.4024.8.camel@...2273...> Message-ID: <200911151523.51108.gambas@...1...> > I have noticed these little annoying problems. > > Again it is with the GTK component and how it inherits settings. > > 1. Textboxes, comboboxes ... - they correctly do not inherit the > background color but they incorrectly inherit the foreground colour. > I.E text boxes and any other input boxes need not inherit foreground and > background colours. You are right, in gb.qt TextBox, ListView... do not inherit background nor foreground color. But the problem may comes from GTK+, so I'm not sure I can fix it. > > 2. Frames - Do inherit background or foreground colours from their > parent. > Actually Frame inherits the background color, but not the foreground color. It should inherit both, I will check that. > > In a nut shell. I think that ... > > All input controls need not inherit foreground and background colours. > Containers need to inherit foreground and background colours. > All controls should inherit the font and size from the parent. This should be the case, isn't it? Regards, -- Beno?t Minisini From arosa at ...2015... Sun Nov 15 15:45:56 2009 From: arosa at ...2015... (Toni) Date: Sun, 15 Nov 2009 15:45:56 +0100 Subject: [Gambas-user] 2 forms closing at the same time. Is it a bug? In-Reply-To: <200911141149.02220.gambas@...1...> References: <4AFE0795.7010505@...2015...> <200911141149.02220.gambas@...1...> Message-ID: <4B001424.2030102@...2015...> Hi Beno?t and others, Thanks for the info. > The first shown window is the "main window", and closing it automatically > close all other opened windows. > Maybe I should have made this feature optional. It seems to me that when an application is set to start using a Module instead of a form, it doesn't make sense to treat any from as "main". On the other hand, I'm not sure how this would mix with the "persistent" property in the forms.. but well, in anycase, for now I'll just reorder the creation of my forms. (even if it's doing something like "FMain.Visible = FALSE" right at the beginning of my application) Regards, Toni En/na Beno?t Minisini ha escrit: >> Hi, >> I'm not sure whether this is a bug or it's me doing something wrong... >> >> When I want to show two (or more) Forms from a module set as "Startup >> class" in its main function, whenever a "ME.close" is called within one >> of the forms, the other(s) one gets closed too. >> To me this isn't the expected behavior... Just one of them should get >> closed (the ME part is what made me expect it). >> >> I attach a simple project to illustrate my point, but basically it's as >> follows: >> >> 1st.- Module1 ( as startup class) >> PUBLIC FUNCTION Main() >> >> Form1.Show >> FMain.Show >> >> END >> >> 2nd.- In Form1 "ME.Close" is executed >> >> 3th.- The FMain form gets closed too and the application finishes. >> >> Instead I would expect Fmain not being closed and the application left >> running until Fmain gets closed by its own means. >> >> Regards, >> Toni >> >> >> P.S.: I'm testing it in an Ubuntu 8.10 64bits with Gambas version 2.17 >> (revision 2415) >> >> > > The first shown window is the "main window", and closing it automatically > close all other opened windows. > > Maybe I should have made this feature optional. > > Regards, > > From rospolosco at ...152... Sun Nov 15 15:40:36 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 15 Nov 2009 15:40:36 +0100 Subject: [Gambas-user] relative path In-Reply-To: <1258285337.6408.28.camel@...40...> References: <1258285337.6408.28.camel@...40...> Message-ID: <200911151540.36567.rospolosco@...152...> Il domenica 15 novembre 2009 12:42:17 Charlie Reinl ha scritto: > Salut, > > I looking for a function or switch in gambas, > which gives me the path-string as relative path > and not the whole path up from / I'm not sure I understood. Do you mean PRINT File.BaseName("/home/user/mydocuments") --> mydocuments ? Stefano From Karl.Reinl at ...9... Sun Nov 15 17:05:00 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 15 Nov 2009 17:05:00 +0100 Subject: [Gambas-user] relative path In-Reply-To: <200911151540.36567.rospolosco@...152...> References: <1258285337.6408.28.camel@...40...> <200911151540.36567.rospolosco@...152...> Message-ID: <1258301100.6408.38.camel@...40...> Am Sonntag, den 15.11.2009, 15:40 +0100 schrieb Stefano Palmeri: > Il domenica 15 novembre 2009 12:42:17 Charlie Reinl ha scritto: > > Salut, > > > > I looking for a function or switch in gambas, > > which gives me the path-string as relative path > > and not the whole path up from / > > I'm not sure I understood. Do you mean > > PRINT File.BaseName("/home/user/mydocuments") > > --> mydocuments > > ? > > Stefano Salut, I mean "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" to make "allOtherFiles/ThisDoc.txt" or "/home/user/mydocuments/allOtherFiles/ThisDoc.txt" out of "/home/user/myNiceProject" to make "../mydocuments/allOtherFiles/ThisDoc.txt" Hope that's clearer now! Even the "/home/user" replaced by "~" could be. But in a format, that all other functions which need a file as argument can handle it. -- Amicalment Charlie From rospolosco at ...152... Sun Nov 15 17:23:26 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 15 Nov 2009 17:23:26 +0100 Subject: [Gambas-user] relative path In-Reply-To: <1258301100.6408.38.camel@...40...> References: <1258285337.6408.28.camel@...40...> <200911151540.36567.rospolosco@...152...> <1258301100.6408.38.camel@...40...> Message-ID: <200911151723.26877.rospolosco@...152...> Il domenica 15 novembre 2009 17:05:00 Charlie Reinl ha scritto: > Am Sonntag, den 15.11.2009, 15:40 +0100 schrieb Stefano Palmeri: > > Il domenica 15 novembre 2009 12:42:17 Charlie Reinl ha scritto: > > > Salut, > > > > > > I looking for a function or switch in gambas, > > > which gives me the path-string as relative path > > > and not the whole path up from / > > > > I'm not sure I understood. Do you mean > > > > PRINT File.BaseName("/home/user/mydocuments") > > > > --> mydocuments > > > > ? > > > > Stefano > > Salut, > > I mean "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" > to make "allOtherFiles/ThisDoc.txt" > DIM sFullPath, sRelativePath as string sFullPath = "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" sRelativePath= File.BaseName(File.Dir(sFullPath)) &/ file.name(sFullPath) PRINT sRelativePath --> allOtherFiles/ThisDoc.txt Saluti, Stefano > or "/home/user/mydocuments/allOtherFiles/ThisDoc.txt" > out of "/home/user/myNiceProject" to make > "../mydocuments/allOtherFiles/ThisDoc.txt" > > Hope that's clearer now! > > Even the "/home/user" replaced by "~" could be. > But in a format, that all other functions which need a file as argument > can handle it. From rospolosco at ...152... Sun Nov 15 17:51:32 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Sun, 15 Nov 2009 17:51:32 +0100 Subject: [Gambas-user] relative path In-Reply-To: <200911151723.26877.rospolosco@...152...> References: <1258285337.6408.28.camel@...40...> <1258301100.6408.38.camel@...40...> <200911151723.26877.rospolosco@...152...> Message-ID: <200911151751.33164.rospolosco@...152...> Il domenica 15 novembre 2009 17:23:26 Stefano Palmeri ha scritto: > Il domenica 15 novembre 2009 17:05:00 Charlie Reinl ha scritto: > > Am Sonntag, den 15.11.2009, 15:40 +0100 schrieb Stefano Palmeri: > > > Il domenica 15 novembre 2009 12:42:17 Charlie Reinl ha scritto: > > > > Salut, > > > > > > > > I looking for a function or switch in gambas, > > > > which gives me the path-string as relative path > > > > and not the whole path up from / > > > > > > I'm not sure I understood. Do you mean > > > > > > PRINT File.BaseName("/home/user/mydocuments") > > > > > > --> mydocuments > > > > > > ? > > > > > > Stefano > > > > Salut, > > > > I mean "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" > > to make "allOtherFiles/ThisDoc.txt" Errata corrige: DIM sFullPath, sRelativePath AS String sFullPath = "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" sRelativePath = File.Name(File.Dir(sFullPath)) &/ File.Name(sFullPath) PRINT sRelativePath Saluti. > > DIM sFullPath, sRelativePath as string > > sFullPath = "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" > > sRelativePath= File.BaseName(File.Dir(sFullPath)) &/ file.name(sFullPath) > > PRINT sRelativePath > > --> allOtherFiles/ThisDoc.txt > > Saluti, > > Stefano > > > or "/home/user/mydocuments/allOtherFiles/ThisDoc.txt" > > out of "/home/user/myNiceProject" to make > > "../mydocuments/allOtherFiles/ThisDoc.txt" > > > > Hope that's clearer now! > > > > Even the "/home/user" replaced by "~" could be. > > But in a format, that all other functions which need a file as argument > > can handle it. > > --------------------------------------------------------------------------- >--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - and > focus on what you do best, core application coding. Discover what's new > with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From arosa at ...2168... Sun Nov 15 19:15:09 2009 From: arosa at ...2168... (Toni Rosa) Date: Sun, 15 Nov 2009 19:15:09 +0100 (Hora estándar romance) Subject: [Gambas-user] Setting and environment variable in a Gambas app. Message-ID: <.213.98.208.179.1258308909.squirrel@...2167...> Hi, I would like to automatically set and environment variable whenever my gambas application gets launched (I want to make sure that GDK_NATIVE_WINDOWS=1) and I have tried executing SHELL("export GDK_NATIVE_WINDOWS=1") . Unfortunately it doesn't seem to work. I'm trying to accomplish that anyone installing my app into a system with the latest version of gtk don't have to manually set this variable. Any suggestion about how could I accomplish it? Cheers, Toni From Karl.Reinl at ...9... Sun Nov 15 22:22:22 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 15 Nov 2009 22:22:22 +0100 Subject: [Gambas-user] relative path In-Reply-To: <200911151751.33164.rospolosco@...152...> References: <1258285337.6408.28.camel@...40...> <1258301100.6408.38.camel@...40...> <200911151723.26877.rospolosco@...152...> <200911151751.33164.rospolosco@...152...> Message-ID: <1258320142.6408.60.camel@...40...> Am Sonntag, den 15.11.2009, 17:51 +0100 schrieb Stefano Palmeri: > Il domenica 15 novembre 2009 17:23:26 Stefano Palmeri ha scritto: > > Il domenica 15 novembre 2009 17:05:00 Charlie Reinl ha scritto: > > > Am Sonntag, den 15.11.2009, 15:40 +0100 schrieb Stefano Palmeri: > > > > Il domenica 15 novembre 2009 12:42:17 Charlie Reinl ha scritto: > > > > > Salut, > > > > > > > > > > I looking for a function or switch in gambas, > > > > > which gives me the path-string as relative path > > > > > and not the whole path up from / > > > > > > > > I'm not sure I understood. Do you mean > > > > > > > > PRINT File.BaseName("/home/user/mydocuments") > > > > > > > > --> mydocuments > > > > > > > > ? > > > > > > > > Stefano > > > > > > Salut, > > > > > > I mean "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" > > > to make "allOtherFiles/ThisDoc.txt" > > Errata corrige: > > DIM sFullPath, sRelativePath AS String > > sFullPath = "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" > > sRelativePath = File.Name(File.Dir(sFullPath)) &/ File.Name(sFullPath) > > PRINT sRelativePath > > > Saluti. > > > > > > > > > DIM sFullPath, sRelativePath as string > > > > sFullPath = "/home/user/myNiceProject/allOtherFiles/ThisDoc.txt" > > > > sRelativePath= File.BaseName(File.Dir(sFullPath)) &/ file.name(sFullPath) > > > > PRINT sRelativePath > > > > --> allOtherFiles/ThisDoc.txt > > > > Saluti, > > > > Stefano > > > > > or "/home/user/mydocuments/allOtherFiles/ThisDoc.txt" > > > out of "/home/user/myNiceProject" to make > > > "../mydocuments/allOtherFiles/ThisDoc.txt" > > > > > > Hope that's clearer now! > > > > > > Even the "/home/user" replaced by "~" could be. > > > But in a format, that all other functions which need a file as argument > > > can handle it. > > Salut Stefano, thanks for the code, I attached you my result. And I remarked, that SQLite at least the gambas.Part couldn't handle with ~/SQLite3/TestDB. -- Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: firstTry-0.0.1.RelativePath.tar.gz Type: application/x-compressed-tar Size: 9580 bytes Desc: not available URL: From joshiggins at ...1601... Sun Nov 15 23:19:00 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 15 Nov 2009 22:19:00 +0000 Subject: [Gambas-user] form_open not raised when embedding form In-Reply-To: <200911151445.09498.gambas@...1...> References: <4247f5440911150302g2b2fb58wbf5742edea8df816@...627...> <200911151445.09498.gambas@...1...> Message-ID: <4247f5440911151419xfe80233gb8ec4a73d41d43a8@...627...> Thanks for the reply. GDK_NATIVE_WINDOWS=1 makes no difference. I'll try the latest Gambas version and reply back with the results. -- joshua higgins >>>>>>------ From joshiggins at ...1601... Sun Nov 15 23:23:49 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 15 Nov 2009 22:23:49 +0000 Subject: [Gambas-user] form_open not raised when embedding form In-Reply-To: <4247f5440911151419xfe80233gb8ec4a73d41d43a8@...627...> References: <4247f5440911150302g2b2fb58wbf5742edea8df816@...627...> <200911151445.09498.gambas@...1...> <4247f5440911151419xfe80233gb8ec4a73d41d43a8@...627...> Message-ID: <4247f5440911151423l7f03e2cfv5fea52af50154911@...627...> Forget last message. Setting GDK_NATIVE_WINDOWS=1 makes the Form_Open event run! But theres a few glitches like columnview and textarea background colours not being right. Thanks. -- joshua higgins >>>>>>------ From joshiggins at ...1601... Sun Nov 15 23:26:36 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 15 Nov 2009 22:26:36 +0000 Subject: [Gambas-user] Setting and environment variable in a Gambas app. In-Reply-To: <.213.98.208.179.1258308909.squirrel@...2167...> References: <.213.98.208.179.1258308909.squirrel@...2167...> Message-ID: <4247f5440911151426i9a02d0w7618091767ce09f@...627...> Under Ubuntu at least you can put it in ~/.gnomerc http://ubuntuforums.org/showthread.php?t=1299284 Hope this helps. -- joshua higgins >>>>>>------ From 12ukwn at ...626... Sun Nov 15 23:53:21 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Sun, 15 Nov 2009 23:53:21 +0100 Subject: [Gambas-user] use a string as a var Message-ID: <4B008661.70007@...626...> Hi, I'm building a string and I'd like to use this string as a var, how could I do that? myclass = class1 mystr = class1 & "." & class1member res = mystr ' PB: copy 'mystr' into 'res' instead of getting result -- BOFH excuse #51: Cosmic ray particles crashed through the hard disk platter From bbruen at ...2308... Mon Nov 16 01:00:10 2009 From: bbruen at ...2308... (bbb888) Date: Sun, 15 Nov 2009 16:00:10 -0800 (PST) Subject: [Gambas-user] Setting and environment variable in a Gambas app. In-Reply-To: <.213.98.208.179.1258308909.squirrel@...2167...> References: <.213.98.208.179.1258308909.squirrel@...2167...> Message-ID: <26365046.post@...1379...> Toni Rosa wrote: > > Hi, > I would like to automatically set and environment variable whenever my > gambas application gets launched (I want to make sure that > GDK_NATIVE_WINDOWS=1) and I have tried executing SHELL("export > GDK_NATIVE_WINDOWS=1") . Unfortunately it doesn't seem to work. > I'm trying to accomplish that anyone installing my app into a system with > the latest version of gtk don't have to manually set this variable. > Any suggestion about how could I accomplish it? > > Cheers, > Toni > > Application.Env["GDK_NATIVE_WINDOWS"]=1 -- View this message in context: http://old.nabble.com/Setting-and-environment-variable-in-a-Gambas-app.-tp26361693p26365046.html Sent from the gambas-user mailing list archive at Nabble.com. From robert1juhasz at ...626... Mon Nov 16 04:43:42 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Mon, 16 Nov 2009 04:43:42 +0100 Subject: [Gambas-user] packaging In-Reply-To: <6324a42a0911130808h5df2a78bx5602104c2b75bdd9@...627...> References: <25695659.post@...1379...> <68652a0b0911120553q325d88a4j1abaeff74d3d7229@...627...> <6324a42a0911120813n5ddcd06h952a3be16b1cc163@...627...> <68652a0b0911121515i6e532352qbf761f11de604bec@...627...> <6324a42a0911130312k437e2d99gafc6fff8d9a05043@...627...> <68652a0b0911130337y66f3036an72328ebfc28ebc2c@...627...> <6324a42a0911130354u30bfa7e7r351a0c7e765f73ef@...627...> <68652a0b0911130407q4330b5e1g9a135d7aeb4e84d3@...627...> <6324a42a0911130646v22e8eedaob728a9f4660fec5f@...627...> <6324a42a0911130808h5df2a78bx5602104c2b75bdd9@...627...> Message-ID: <68652a0b0911151943v274d622dkeb8ddc9ad997770d@...627...> Fabien, Thanks for your help, now it works properly! Robi 2009/11/13 Fabien Bodard > Cannot > load component 'gb.form.dialog': cannot find library > > you need to install this component too / > > 2009/11/13 Fabien Bodard : > > my gambas2 is the ubuntu one... :/ > > > > nothing special > > > > all is working well here > > > > 2009/11/13 Robert JUHASZ : > >> Good news! Do you mean that you installed and runs normally or tried > from > >> the source code? > >> > >> How can I have installed the gambas-db-mysql on computers where I don't > have > >> the gambas? (I just started with Ubuntu as well) > >> > >> On the PC I develop (Gambas installed) is it possible that this > component is > >> missing? From the IDE I can fairly acces the mysql. > >> > >> I also use Gambas 2.17 but I'm not 100% sure if I installed correcly. Do > you > >> have a link where can I find a complete version? The links on the wiki > are > >> broken for me. > >> Sorry for the lots of questions.. > >> > >> Thx, Robi > >> > >> 2009/11/13 Fabien Bodard > >> > >>> no problem here on gambas2.17 with ubuntu 9.10 > >>> > >>> please install the gambas-db-mysql package > >>> > >>> 2009/11/13 Robert JUHASZ : > >>> > Superb, thanks in advance! > >>> > > >>> > The packed project is attached in a previous mail of this thread > (dated > >>> 30 > >>> > of October). Can you catch it or should I resend? > >>> > The source is normally included in the package. Starting from the > Gambas > >>> IDE > >>> > it should work. > >>> > > >>> > If installed and started (will appear on the "others" category) then > i > >>> > should show the error message immediately as for the login I use > mysql. > >>> > > >>> > The "bad" message is not that the database doesn't exists (it's > normal > >>> for > >>> > the first connection) but that the driver doesn't exists. > >>> > > >>> > If it can launch and requires login and password, the first time it > works > >>> > with "administrator" and "rendszergazda". It created it's database > after > >>> in > >>> > the "administrator" sheet. > >>> > > >>> > If you meet the same troube as I do then you'll have problem even to > use > >>> > Gambas with mysql (same message: no driver for mysql). When removing > the > >>> > application with the Janitor and also the dependencies proposed by > the > >>> > Janitor then everything becomes normal with Gambas. > >>> > > >>> > Many thank, > >>> > Robi > >>> > > >>> > 2009/11/13 Fabien Bodard > >>> > > >>> >> i can try > >>> >> > >>> >> 2009/11/13 Robert JUHASZ : > >>> >> > The installation failed also on computers where I had > >>> >> > - mysql server / client > >>> >> > - gambas > >>> >> > > >>> >> > Could someone pack my project for testing or trying to install the > >>> >> package I > >>> >> > did to identify which end is inproperly done? > >>> >> > > >>> >> > Thx, > >>> >> > Robi > >>> >> > > >>> >> > 2009/11/12 Fabien Bodard > >>> >> > > >>> >> >> the mysql driver does not depend on gambas but on the > installation of > >>> >> >> libmysqlclient !! > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> 2009/11/12 Robert JUHASZ : > >>> >> >> > Hello, > >>> >> >> > > >>> >> >> > I'm still suffering with making the correct installation > package. > >>> It > >>> >> is > >>> >> >> > painful as I'd like to share my application with my colleagues. > >>> >> >> > > >>> >> >> > I tried to do the install on an other virgin (gambas-free) > ubuntu > >>> 9.04 > >>> >> >> but > >>> >> >> > same problem: it notes that no driver for mysql. > >>> >> >> > I'd highly appreciate if someone can help. > >>> >> >> > > >>> >> >> > Robi > >>> >> >> > > >>> >> >> > 2009/11/2 Robert JUHASZ > >>> >> >> > > >>> >> >> >> Hello, > >>> >> >> >> > >>> >> >> >> I use Gambas 2.16 and 2.17 (I work on two machines). > >>> >> >> >> I installed the application on these machines i.e. the gambas > IDE > >>> was > >>> >> >> >> already on the machine. Is it possible that it was the > problem? I > >>> may > >>> >> >> try to > >>> >> >> >> make an install on a "virgin" machine. > >>> >> >> >> > >>> >> >> >> Robi > >>> >> >> >> > >>> >> >> >> 2009/11/1 Beno?t Minisini > >>> >> >> >> > >>> >> >> >> > 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 > >>> >> >> >>> > > >>> >> >> >>> > > >>> >> >> >>> > >>> >> >> >>> You must use at least Gambas 2.14 to be able to add a > dependency > >>> on > >>> >> >> >>> gb.db.mysql in your project. The bug has been fixed in that > >>> release. > >>> >> >> >>> > >>> >> >> >>> The package you created will install all the dependencies > needed > >>> to > >>> >> run > >>> >> >> >>> *your* > >>> >> >> >>> program, but not the Gambas IDE. If you want to run the > Gambas > >>> IDE > >>> >> on > >>> >> >> the > >>> >> >> >>> destination system, you must install the gambas2-ide package. > >>> >> >> >>> > >>> >> >> >>> If you have installed the gambas2-ide package, and can't run > >>> Gambas, > >>> >> >> then > >>> >> >> >>> the > >>> >> >> >>> package is buggy. > >>> >> >> >>> > >>> >> >> >>> 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 > >>> >> >> >>> > >>> >> >> >> > >>> >> >> >> > >>> >> >> > > >>> >> >> > >>> >> > >>> > ------------------------------------------------------------------------------ > >>> >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports > >>> 2008 > >>> >> >> 30-Day > >>> >> >> > trial. Simplify your report design, integration and deployment > - > >>> and > >>> >> >> focus on > >>> >> >> > what you do best, core application coding. Discover what's new > with > >>> >> >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> >> >> > _______________________________________________ > >>> >> >> > Gambas-user mailing list > >>> >> >> > Gambas-user at lists.sourceforge.net > >>> >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> >> >> > > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> > >>> > ------------------------------------------------------------------------------ > >>> >> >> Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > >>> >> 30-Day > >>> >> >> trial. Simplify your report design, integration and deployment - > and > >>> >> focus > >>> >> >> on > >>> >> >> what you do best, core application coding. Discover what's new > with > >>> >> >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> >> >> _______________________________________________ > >>> >> >> Gambas-user mailing list > >>> >> >> Gambas-user at lists.sourceforge.net > >>> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> >> >> > >>> >> > > >>> >> > >>> > ------------------------------------------------------------------------------ > >>> >> > Let Crystal Reports handle the reporting - Free Crystal Reports > 2008 > >>> >> 30-Day > >>> >> > trial. Simplify your report design, integration and deployment - > and > >>> >> focus on > >>> >> > what you do best, core application coding. Discover what's new > with > >>> >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> >> > _______________________________________________ > >>> >> > Gambas-user mailing list > >>> >> > Gambas-user at lists.sourceforge.net > >>> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> >> > > >>> >> > >>> >> > >>> >> > >>> > ------------------------------------------------------------------------------ > >>> >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >>> 30-Day > >>> >> trial. Simplify your report design, integration and deployment - and > >>> focus > >>> >> on > >>> >> what you do best, core application coding. Discover what's new with > >>> >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> >> _______________________________________________ > >>> >> Gambas-user mailing list > >>> >> Gambas-user at lists.sourceforge.net > >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> >> > >>> > > >>> > ------------------------------------------------------------------------------ > >>> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >>> 30-Day > >>> > trial. Simplify your report design, integration and deployment - and > >>> focus on > >>> > what you do best, core application coding. Discover what's new with > >>> > Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> > _______________________________________________ > >>> > Gambas-user mailing list > >>> > Gambas-user at lists.sourceforge.net > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > >>> trial. Simplify your report design, integration and deployment - and > focus > >>> on > >>> what you do best, core application coding. Discover what's new with > >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> > ------------------------------------------------------------------------------ > >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > >> trial. Simplify your report design, integration and deployment - and > focus on > >> what you do best, core application coding. Discover what's new with > >> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Nov 16 10:42:28 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 16 Nov 2009 10:42:28 +0100 Subject: [Gambas-user] use a string as a var In-Reply-To: <4B008661.70007@...626...> References: <4B008661.70007@...626...> Message-ID: <6324a42a0911160142i5b0fcb2eqa333b7e82c3bd837@...627...> do you nean : mystr=Object.Call(Class1, class1Member) ?? 2009/11/15 Jean-Yves F. Barbier <12ukwn at ...626...>: > Hi, > > I'm building a string and I'd like to use this string as a var, > how could I do that? > > myclass = class1 > mystr = class1 & "." & class1member > res = mystr ' PB: copy 'mystr' into 'res' instead of getting result > > -- > BOFH excuse #51: > Cosmic ray particles crashed through the hard disk platter > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Mon Nov 16 12:35:05 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 16 Nov 2009 12:35:05 +0100 Subject: [Gambas-user] use a string as a var In-Reply-To: <6324a42a0911160142i5b0fcb2eqa333b7e82c3bd837@...627...> References: <4B008661.70007@...626...> <6324a42a0911160142i5b0fcb2eqa333b7e82c3bd837@...627...> Message-ID: <4B0138E9.5010808@...1909...> You can also look at the EVAL function (only in gambas3 perhaps?) - more general (and more slow). Regards. > do you nean : > > mystr=Object.Call(Class1, class1Member) > > ?? > > 2009/11/15 Jean-Yves F. Barbier <12ukwn at ...626...>: > >> Hi, >> >> I'm building a string and I'd like to use this string as a var, >> how could I do that? >> >> myclass = class1 >> mystr = class1 & "." & class1member >> res = mystr ' PB: copy 'mystr' into 'res' instead of getting result >> >> -- >> BOFH excuse #51: >> Cosmic ray particles crashed through the hard disk platter >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Nov 16 12:46:24 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 16 Nov 2009 12:46:24 +0100 Subject: [Gambas-user] use a string as a var In-Reply-To: <4B0138E9.5010808@...1909...> References: <4B008661.70007@...626...> <6324a42a0911160142i5b0fcb2eqa333b7e82c3bd837@...627...> <4B0138E9.5010808@...1909...> Message-ID: <6324a42a0911160346h2c261655o791fc24e6837adc6@...627...> 2009/11/16 Doriano Blengino : > You can also look at the EVAL function (only in gambas3 perhaps?) - more no it exist in gb1 too ;) > general (and more slow). > > Regards. >> do you nean : >> >> mystr=Object.Call(Class1, class1Member) >> >> ?? >> >> 2009/11/15 Jean-Yves F. Barbier <12ukwn at ...626...>: >> >>> Hi, >>> >>> I'm building a string and I'd like to use this string as a var, >>> how could I do that? >>> >>> myclass = class1 >>> mystr = class1 & "." & class1member >>> res = mystr ' PB: copy 'mystr' into 'res' instead of getting result >>> >>> -- >>> BOFH excuse #51: >>> Cosmic ray particles crashed through the hard disk platter >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >>> trial. Simplify your report design, integration and deployment - and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From joshiggins at ...1601... Mon Nov 16 15:07:44 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Mon, 16 Nov 2009 14:07:44 +0000 Subject: [Gambas-user] Setting and environment variable in a Gambas app. In-Reply-To: <26365046.post@...1379...> References: <.213.98.208.179.1258308909.squirrel@...2167...> <26365046.post@...1379...> Message-ID: <4247f5440911160607w1c540346r5ce5e9d7dd31f109@...627...> > > Application.Env["GDK_NATIVE_WINDOWS"]=1 > I can't seem to get this working. Instead, I put it in the environment tab of the project properties in the IDE, and that works. From arosa at ...2015... Mon Nov 16 22:58:20 2009 From: arosa at ...2015... (Toni) Date: Mon, 16 Nov 2009 22:58:20 +0100 Subject: [Gambas-user] Setting and environment variable in a Gambas app. In-Reply-To: <4247f5440911160607w1c540346r5ce5e9d7dd31f109@...627...> References: <.213.98.208.179.1258308909.squirrel@...2167...> <26365046.post@...1379...> <4247f5440911160607w1c540346r5ce5e9d7dd31f109@...627...> Message-ID: <4B01CAFC.3000808@...2015...> Hi, Setting the GDK_NATIVE_WINDOWS var in the environment tab of the project only works while using the gambas app within the IDE but with the generated executable this var doesn't get set, and so the controls get erroneously rendered. About setting it in ~/.gnomerc the point was not having to set it manually in each affected system... or did you suggest adding the var programatically to this file? Regards, Toni En/na Joshua Higgins ha escrit: >> Application.Env["GDK_NATIVE_WINDOWS"]=1 >> >> > > I can't seem to get this working. Instead, I put it in the environment tab > of the project properties in the IDE, and that works. > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Tue Nov 17 02:25:48 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 17 Nov 2009 02:25:48 +0100 Subject: [Gambas-user] bug? Message-ID: <4B01FB9C.7040506@...626...> Debian sid gb 2.17 ========== Hi, I've got a module with public string & connection: PUBLIC $DBConn AS NEW Connection PUBLIC MyHost AS String PUBLIC MyDB AS String PUBLIC MyUsr AS String PUBLIC MyPass AS String '--------------------------------- PUBLIC FUNCTION DBConnect() AS Boolean PRINT MyDB & "." & MyHost & "." & MyUsr & ":" & MyPass WITH $DBConn .Type = "postgresql" .Host = MyHost .Name = MyDB .Port = "5432" .Login = MyUsr .Password = MyPass END WITH TRY $DBConn.Open IF ERROR THEN Message.Error(("Can't connect to DB") & "\n\n" & Error.Text) RETURN FALSE ELSE RETURN TRUE ENDIF END If I forget to fill MyHost & MyDB from the class that calls it, the function don't raise any error and returns TRUE (?) How can that be? JY -- I don't care what star you're following, get that camel off my front lawn! -- Heard in Bethlehem From 12ukwn at ...626... Tue Nov 17 10:21:01 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 17 Nov 2009 10:21:01 +0100 Subject: [Gambas-user] strange behaviour property visible Message-ID: <4B026AFD.5030808@...626...> gb 2.17 debian sid ================== Hi, I've got something strange: if I don't add a wait line between a visible property and a call, it don't work at all: PUBLIC SUB btnOk_Click() MDB.MyHost = txtbHost.Text MDB.MyDB = txtbDB.Text MDB.MyUsr = txtbLogin.Text MDB.MyPass = txtbPass.Text IF MDB.DBConnect() THEN lblWait.Visible = TRUE WAIT 0.01 ' mandatory otherwise lblWait don't appear MDB.Fill_DB_Tree() lblWait.Visible = FALSE ME.Close ENDIF END -- Angels we have heard on High Tell us to go out and Buy. -- Tom Lehrer From doriano.blengino at ...1909... Tue Nov 17 10:49:56 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 17 Nov 2009 10:49:56 +0100 Subject: [Gambas-user] strange behaviour property visible In-Reply-To: <4B026AFD.5030808@...626...> References: <4B026AFD.5030808@...626...> Message-ID: <4B0271C4.4040900@...1909...> Jean-Yves F. Barbier ha scritto: > gb 2.17 debian sid > ================== > > Hi, > > I've got something strange: if I don't add a wait line between > a visible property and a call, it don't work at all: > > PUBLIC SUB btnOk_Click() > MDB.MyHost = txtbHost.Text > MDB.MyDB = txtbDB.Text > MDB.MyUsr = txtbLogin.Text > MDB.MyPass = txtbPass.Text > IF MDB.DBConnect() THEN > lblWait.Visible = TRUE > WAIT 0.01 ' mandatory otherwise lblWait don't appear > MDB.Fill_DB_Tree() > lblWait.Visible = FALSE > ME.Close > ENDIF > END > > It is not strange - it is simply normal. Screen refresh is done in the main loop (every graphical application does so, even in other OSes), so you will not see screen changes when your code is running an event handler. If you really want, you put a WAIT (may be without parameters: in this case it only calls the main loop, which updates the screen, with no added delay). Regards, Doriano From 12ukwn at ...626... Tue Nov 17 11:06:51 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 17 Nov 2009 11:06:51 +0100 Subject: [Gambas-user] strange behaviour property visible In-Reply-To: <4B0271C4.4040900@...1909...> References: <4B026AFD.5030808@...626...> <4B0271C4.4040900@...1909...> Message-ID: <4B0275BB.50405@...626...> Doriano Blengino a ?crit : > It is not strange - it is simply normal. > Screen refresh is done in the main loop (every graphical application > does so, even in other OSes), so you will not see screen changes when > your code is running an event handler. If you really want, you put a > WAIT (may be without parameters: in this case it only calls the main > loop, which updates the screen, with no added delay). Thanks Doriano, I didn't understood the doc about that :) -- From 12ukwn at ...626... Tue Nov 17 15:55:03 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 17 Nov 2009 15:55:03 +0100 Subject: [Gambas-user] wish Message-ID: <4B02B947.4010102@...626...> Hi, It would be (very) nice to have the possibility to freely format text in ValueBox for I/O (may be the same syntax as in DBase screens). -- From jmcbride at ...2309... Tue Nov 17 23:49:27 2009 From: jmcbride at ...2309... (Jerry McBride) Date: Tue, 17 Nov 2009 18:49:27 -0400 Subject: [Gambas-user] wish In-Reply-To: <4B02B947.4010102@...626...> References: <4B02B947.4010102@...626...> Message-ID: <200911171749.27214.jmcbride@...2309...> On Tuesday 17 November 2009 09:55:03 Jean-Yves F. Barbier wrote: > Hi, > > It would be (very) nice to have the possibility to freely format text > in ValueBox for I/O (may be the same syntax as in DBase screens). > My wish would be the ability to compile gambas and not have to drag in anything from KDE or Gnome.... It should be optional.... -- ***************************************************************************** From the desk of: Jerome D. McBride 17:48:42 up 51 days, 31 min, 5 users, load average: 0.12, 0.03, 0.01 ***************************************************************************** From ronstk at ...239... Wed Nov 18 13:02:17 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 18 Nov 2009 13:02:17 +0100 Subject: [Gambas-user] wish In-Reply-To: <200911171749.27214.jmcbride@...2309...> References: <4B02B947.4010102@...626...> <200911171749.27214.jmcbride@...2309...> Message-ID: <200911181302.18383.ronstk@...239...> On Tuesday 17 November 2009, Jerry McBride wrote: > On Tuesday 17 November 2009 09:55:03 Jean-Yves F. Barbier wrote: > > Hi, > > > > It would be (very) nice to have the possibility to freely format text > > in ValueBox for I/O (may be the same syntax as in DBase screens). > > > > > My wish would be the ability to compile gambas and not have to drag in > anything from KDE or Gnome.... > > It should be optional.... > > It can be compiled as you wish and optional is also true. :) But think seriously about you question. If you want to make a program and it must be visible in a graphical way, how should it been shown?. QT/KDE is uded for the IDE so that one must be drag in. QT as toolkit and for KDE the basic libs at least. Gambas is simple a Basic language to interact with the box. People use it as replacement for the bash/python/perl/awk scripts and C/Java/Pascal/Delphi program languages. Both can make shell and graphical programs. If you do not want KDE/Gnome drag in then you can program your files with VI/VIM/Emacs/nano/joe as you like and manage on your own the files and structure of them. Ohh and don't cry if you can't use it on the desktop because missing QT/GTK. Best regards, Ron_1st -- From tomascostarivas at ...626... Wed Nov 18 17:52:45 2009 From: tomascostarivas at ...626... (Tomas Costa rivas) Date: Wed, 18 Nov 2009 17:52:45 +0100 Subject: [Gambas-user] DataCombo, key_press Message-ID: <94a144920911180852q5d618b1bjfd53a0219f62f3f5@...627...> Hello: Does'nt work a datacombo with key events? How can I solve this problem? Regards From Karl.Reinl at ...9... Wed Nov 18 19:41:18 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 18 Nov 2009 19:41:18 +0100 Subject: [Gambas-user] Exist says OK, but the File.Load fails Message-ID: <1258569678.6480.12.camel@...40...> Salut, this is my code (I added the line numbers) Exist says OK but the File.Load fails with : File or directory does not exist args[0] = Reports/US-presidents-3.xml is a relative path If I use the Fullpath it works. AND: this only happens if the code is used in a component ! In the project-code it works. 807 IF Exist(args[0]) THEN 808 809 sString = File.Load(args[0]) This I get if I run it : args[0] = Reports/US-presidents-3.xml CLogic.FromXML.809: #45: File or directory does not exist -- Amicalment Charlie [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.24-25-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 rev 2424 Gambas2Path=/usr/local/bin/gbx2 Gambas3=2.99.0 Gambas3Path=/usr/local/bin/gbx3 From ron at ...1740... Wed Nov 18 20:38:49 2009 From: ron at ...1740... (Ron) Date: Wed, 18 Nov 2009 20:38:49 +0100 Subject: [Gambas-user] Gambas XMLRPC Server and method with more than 1 parameter Message-ID: <4B044D49.1070607@...1740...> Hi, anyone has the above working by any chance? It works with parameter (NULL) and 1 parameter but not with more than 1. The XMLRPC Client is ok, I have tested it against a non Gambas XMLRPC server. But if you post more than one parameter to the Gambas XMLRPC server, it doesn't check the correct amount, and it only passes the first one to the Callback routine. I need it for my project, but I'm afraid I have to dive into the Component again. ;-( The code I made: --- PUBLIC FUNCTION Connect() AS Boolean DIM hRpcFunc AS RpcFunction hXMLRPC = NEW RpcServer AS "hXMLRPC" hRpcFunc = NEW RpcFunction("send.email", [XmlRpc.xString, XmlRpc.xString, XmlRpc.xString], XmlRpc.xBoolean) hRpcFunc.Help = ("send email to param1, with subject param2 and body param3") hXMLRPC.Register(hRpcFunc) TRY hXMLRPC.Listen(iHTTPPort, iMaxConn) IF NOT hXMLRPC.Listening THEN RETURN FALSE END IF RETURN TRUE END --- --- PUBLIC SUB hXMLRPC_RemoteCall(sName AS String, sData AS Variant[]) SELECT CASE sName CASE "send.email" SendEmail(sData) ... END SELECT END --- PRIVATE SUB SendEmail(sParams AS Variant[]) DIM sParam AS String ' it only contains the first parameter param1 FOR EACH sParam IN sParams PRINT sParam NEXT END Kind Regards, Ron_2nd. From ron at ...1740... Wed Nov 18 22:24:14 2009 From: ron at ...1740... (Ron) Date: Wed, 18 Nov 2009 22:24:14 +0100 Subject: [Gambas-user] Bug fixed XMLRPC server Message-ID: <4B0465FE.2060904@...1740...> Benoit, I have found a bug in the file gambas/2.0/gb.xml/src/rpc/gb.xml.rpc/RpcServer.class I had to comment out one line to get more than one parameter to work. This line ' IF Xml.Node.Type = XmlReaderNodeType.EndElement THEN BREAK in the code snippet below is responsable for a premature break of parseing the xml data file. With this line, after looping once it breaks out there always and the rest of the fields (if any) are not processed. --- PUBLIC SUB miniSrv_ProcessData(Data AS String) DIM Xml AS NEW XmlReader DIM Bucle AS Integer DIM hPar AS NEW Variant[] DIM hP AS RpcAtom DIM Counter AS Integer Xml = NEW XmlReader Xml.FromString(Data) tools.Find(Xml, "methodCall") TRY Xml.Read() IF NOT tools.Find(Xml, "params") THEN miniSrv.SetReply(tools.FaultReply(4, "params field not found")) CurrIndex = - 1 RETURN END IF TRY Xml.Read() DO WHILE TRUE ' IF Xml.Node.Type = XmlReaderNodeType.EndElement THEN BREAK <----------------------- IF NOT Tools.Find(Xml, "param") THEN BREAK hP = Tools.GetParam(Xml) IF hP = NULL THEN miniSrv.SetReply(tools.FaultReply(5, "malformed parameters")) CurrIndex = - 1 RETURN END IF hPar.Add(hP.Data) --- Have tested it without, with one and with more than one (3) parameters of type boolean, string and integer and it seems to works ok. Using Gambas 2.17, but I think the Gambas 3 component code is the same. Kind regards, Ron_2nd. From gambas at ...1... Wed Nov 18 22:32:52 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 18 Nov 2009 22:32:52 +0100 Subject: [Gambas-user] Bug fixed XMLRPC server In-Reply-To: <4B0465FE.2060904@...1740...> References: <4B0465FE.2060904@...1740...> Message-ID: <200911182232.52101.gambas@...1...> > Benoit, > > I have found a bug in the file > gambas/2.0/gb.xml/src/rpc/gb.xml.rpc/RpcServer.class > > I had to comment out one line to get more than one parameter to work. > > This line ' IF Xml.Node.Type = XmlReaderNodeType.EndElement THEN BREAK > in the code snippet below > is responsable for a premature break of parseing the xml data file. > > With this line, after looping once it breaks out there always and the > rest of the fields (if any) are not processed. > --- > PUBLIC SUB miniSrv_ProcessData(Data AS String) > > DIM Xml AS NEW XmlReader > DIM Bucle AS Integer > DIM hPar AS NEW Variant[] > DIM hP AS RpcAtom > DIM Counter AS Integer > > Xml = NEW XmlReader > Xml.FromString(Data) > > tools.Find(Xml, "methodCall") > TRY Xml.Read() > IF NOT tools.Find(Xml, "params") THEN > miniSrv.SetReply(tools.FaultReply(4, "params field not found")) > CurrIndex = - 1 > RETURN > END IF > > TRY Xml.Read() > > DO WHILE TRUE > > ' IF Xml.Node.Type = XmlReaderNodeType.EndElement THEN BREAK > <----------------------- > IF NOT Tools.Find(Xml, "param") THEN BREAK > hP = Tools.GetParam(Xml) > IF hP = NULL THEN > miniSrv.SetReply(tools.FaultReply(5, "malformed parameters")) > CurrIndex = - 1 > RETURN > END IF > > hPar.Add(hP.Data) > --- > > Have tested it without, with one and with more than one (3) parameters > of type boolean, string and integer and it seems to works ok. > > Using Gambas 2.17, but I think the Gambas 3 component code is the same. > > Kind regards, > Ron_2nd. > Of course, I have just created the 2.18 package! :-) I will remake the package with your fix. Regards, -- Beno?t Minisini From gambas at ...1... Wed Nov 18 22:40:31 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 18 Nov 2009 22:40:31 +0100 Subject: [Gambas-user] Bug fixed XMLRPC server In-Reply-To: <4B0465FE.2060904@...1740...> References: <4B0465FE.2060904@...1740...> Message-ID: <200911182240.31867.gambas@...1...> > Benoit, > > I have found a bug in the file > gambas/2.0/gb.xml/src/rpc/gb.xml.rpc/RpcServer.class > > I had to comment out one line to get more than one parameter to work. > > This line ' IF Xml.Node.Type = XmlReaderNodeType.EndElement THEN BREAK > in the code snippet below > is responsable for a premature break of parseing the xml data file. > > With this line, after looping once it breaks out there always and the > rest of the fields (if any) are not processed. > --- > PUBLIC SUB miniSrv_ProcessData(Data AS String) > > DIM Xml AS NEW XmlReader > DIM Bucle AS Integer > DIM hPar AS NEW Variant[] > DIM hP AS RpcAtom > DIM Counter AS Integer > > Xml = NEW XmlReader > Xml.FromString(Data) > > tools.Find(Xml, "methodCall") > TRY Xml.Read() > IF NOT tools.Find(Xml, "params") THEN > miniSrv.SetReply(tools.FaultReply(4, "params field not found")) > CurrIndex = - 1 > RETURN > END IF > > TRY Xml.Read() > > DO WHILE TRUE > > ' IF Xml.Node.Type = XmlReaderNodeType.EndElement THEN BREAK > <----------------------- > IF NOT Tools.Find(Xml, "param") THEN BREAK > hP = Tools.GetParam(Xml) > IF hP = NULL THEN > miniSrv.SetReply(tools.FaultReply(5, "malformed parameters")) > CurrIndex = - 1 > RETURN > END IF > > hPar.Add(hP.Data) > --- > > Have tested it without, with one and with more than one (3) parameters > of type boolean, string and integer and it seems to works ok. > > Using Gambas 2.17, but I think the Gambas 3 component code is the same. > > Kind regards, > Ron_2nd. > By reading the code, I'm not sure that your fix is the cleanest, but if it works... -- Beno?t Minisini From ron at ...1740... Wed Nov 18 22:54:16 2009 From: ron at ...1740... (Ron) Date: Wed, 18 Nov 2009 23:54:16 +0200 Subject: [Gambas-user] Bug fixed XMLRPC server In-Reply-To: <200911182240.31867.gambas@...1...> References: <4B0465FE.2060904@...1740...> <200911182240.31867.gambas@...1...> Message-ID: <68696c50911181354j5d1a1f05u8eecfe6cfcfedad7@...627...> I agree, but couldn't create a scenario in where that line was needed, but it looks like its useful. It would also be better to check for the exact amount of parameters, now it doesn't detect this (faultreply 6) Regards, Ron_2nd --- This e-mail is sent from my mobile phone. On Nov 18, 2009 10:41 PM, "Beno?t Minisini" wrote: > Benoit, > > I have found a bug in the file > gambas/2.0/gb.xml/src/rpc/gb.xml.rpc/RpcServer.class... By reading the code, I'm not sure that your fix is the cleanest, but if it works... -- Beno?t Minisini ------------------------------------------------------------------------------... From gambas at ...1... Thu Nov 19 00:24:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 00:24:41 +0100 Subject: [Gambas-user] Release of Gambas 2.18 Message-ID: <200911190024.41181.gambas@...1...> Hi, Here is a new release of Gambas 2. The goal of this release is mainly making the GTK+ component works with GTK+ 2.18, i.e. with recent distributions like Ubuntu 9.10 or Mandriva 2010.0. There a few changes and bug fixes too. Here is the ChangeLog: ------------------------------------------------------------------------------- [CONFIGURATION] * NEW: "GB_DIR" is a new environment variable that allows to define the Gambas installation directory. If this variable is not defined, the Gambas programs will act as usual. [DEVELOPMENT ENVIRONMENT] * BUG: The make executable dialog options are correctly refreshed depending on whether the project is a component or not. * BUG: Removing a source file removes correctly the translation file from version control too now. * NEW: Add support for Ukrainian language. [EXAMPLES] * BUG: The hour hand follows the minutes now in the Clock example. [INTERPRETER] * BUG: Compute the Gambas installation directory correctly in all cases. * BUG: The thousand separator is only printed between digits now. [GB.DEBUG] * BUG: Try to open debugger fifo longer so that the IDE debugger can start on slow systems. [GB.GTK] * BUG: Disable GDK native windows on GTK+ 2.18, so that gb.gtk works correctly. * BUG: Control.Reparent() works correctly now. * BUG: Frame label inherits foreground color correctly. [GB.NET.SMTP] * BUG: Add the GNU LGPL 2.1 license file. [GB.XML.RPC] * BUG: The RpcServer class sends all arguments to its RemoteCall callback, not the first one only. ------------------------------------------------------------------------------- Enjoy it! -- Beno?t Minisini From oceanosoftlapalma at ...626... Thu Nov 19 09:14:47 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 19 Nov 2009 08:14:47 +0000 Subject: [Gambas-user] DataCombo, key_press In-Reply-To: <94a144920911180852q5d618b1bjfd53a0219f62f3f5@...627...> References: <94a144920911180852q5d618b1bjfd53a0219f62f3f5@...627...> Message-ID: distro? gambas version? 2009/11/18 Tomas Costa rivas > Hello: > > Does'nt work a datacombo with key events? > > How can I solve this problem? > > Regards > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From oceanosoftlapalma at ...626... Thu Nov 19 09:22:28 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 19 Nov 2009 08:22:28 +0000 Subject: [Gambas-user] bug? In-Reply-To: <4B01FB9C.7040506@...626...> References: <4B01FB9C.7040506@...626...> Message-ID: Looks like all is ok. Maybe you can try writing Error.Clear() on before of TRY $DBConn.Open I'm not sure if problem is related with posgresql because I'm using mysql in my apps. Hope this help you. Regards, Ricardo 2009/11/17 Jean-Yves F. Barbier <12ukwn at ...626...> > Debian sid > gb 2.17 > ========== > > Hi, > > I've got a module with public string & connection: > > PUBLIC $DBConn AS NEW Connection > PUBLIC MyHost AS String > PUBLIC MyDB AS String > PUBLIC MyUsr AS String > PUBLIC MyPass AS String > '--------------------------------- > PUBLIC FUNCTION DBConnect() AS Boolean > PRINT MyDB & "." & MyHost & "." & MyUsr & ":" & MyPass > WITH $DBConn > .Type = "postgresql" > .Host = MyHost > .Name = MyDB > .Port = "5432" > .Login = MyUsr > .Password = MyPass > END WITH > TRY $DBConn.Open > IF ERROR THEN > Message.Error(("Can't connect to DB") & "\n\n" & Error.Text) > RETURN FALSE > ELSE > RETURN TRUE > ENDIF > END > > If I forget to fill MyHost & MyDB from the class that calls it, the > function don't raise any error and returns TRUE (?) > > How can that be? > > JY > -- > I don't care what star you're following, get that camel off my front lawn! > -- Heard in Bethlehem > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Nov 19 09:52:40 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 19 Nov 2009 09:52:40 +0100 Subject: [Gambas-user] bug? In-Reply-To: References: <4B01FB9C.7040506@...626...> Message-ID: <4B050758.5030305@...626...> Ricardo D?az Mart?n a ?crit : > Looks like all is ok. Maybe you can try writing Error.Clear() on before of > TRY $DBConn.Open it don't change anything: this time I stripped the DB name and it goes its way to 1st reading and failed (result is unavailable) > I'm not sure if problem is related with posgresql because I'm using mysql in > my apps. may be -- Offer may end without notice. From bbruen at ...2308... Thu Nov 19 12:34:20 2009 From: bbruen at ...2308... (bbb888) Date: Thu, 19 Nov 2009 03:34:20 -0800 (PST) Subject: [Gambas-user] DataCombo, key_press In-Reply-To: <94a144920911180852q5d618b1bjfd53a0219f62f3f5@...627...> References: <94a144920911180852q5d618b1bjfd53a0219f62f3f5@...627...> Message-ID: <26421293.post@...1379...> Try setting .type as the last assignment, don't know, works for me in postgresql. It seems that as soon as you give it a type and host and user postgresql makes a connect. Anyway, as I said, dont know works for me. b -- View this message in context: http://old.nabble.com/DataCombo%2C-key_press-tp26411440p26421293.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Nov 19 13:08:55 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:08:55 +0100 Subject: [Gambas-user] wish Message-ID: <200911191308.55865.gambas@...1...> > On Tuesday 17 November 2009 09:55:03 Jean-Yves F. Barbier wrote: > > Hi, > > > > It would be (very) nice to have the possibility to freely format text > > in ValueBox for I/O (may be the same syntax as in DBase screens). > > My wish would be the ability to compile gambas and not have to drag in > anything from KDE or Gnome.... > > It should be optional.... > It is optional. Just type ./configure --help, and you will see that you can disable the compilation of any component. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:09:25 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:09:25 +0100 Subject: [Gambas-user] wish Message-ID: <200911191309.25068.gambas@...1...> > Hi, > > It would be (very) nice to have the possibility to freely format text > in ValueBox for I/O (may be the same syntax as in DBase screens). > The ValueBox should be redone, but it must be carefully designed before. So ideas are welcome! And if I don't do it, aren't there other people that can program a control in Gambas? -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:09:42 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:09:42 +0100 Subject: [Gambas-user] wish Message-ID: <200911191309.42108.gambas@...1...> > On Tuesday 17 November 2009, Jerry McBride wrote: > > On Tuesday 17 November 2009 09:55:03 Jean-Yves F. Barbier wrote: > > > Hi, > > > > > > It would be (very) nice to have the possibility to freely format text > > > in ValueBox for I/O (may be the same syntax as in DBase screens). > > > > My wish would be the ability to compile gambas and not have to drag in > > anything from KDE or Gnome.... > > > > It should be optional.... > > It can be compiled as you wish and optional is also true. :) > > But think seriously about you question. > If you want to make a program and it must be visible in > a graphical way, how should it been shown?. > > QT/KDE is uded for the IDE so that one must be drag in. > QT as toolkit and for KDE the basic libs at least. > > Gambas is simple a Basic language to interact with the box. > People use it as replacement for the bash/python/perl/awk > scripts and C/Java/Pascal/Delphi program languages. > Both can make shell and graphical programs. > > If you do not want KDE/Gnome drag in then you can program your files > with VI/VIM/Emacs/nano/joe as you like and manage on your own the > files and structure of them. > > Ohh and don't cry if you can't use it on the desktop because missing > QT/GTK. > > > Best regards, > > Ron_1st > Gambas IDE does not need KDE, only QT. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:09:52 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:09:52 +0100 Subject: [Gambas-user] Licensing problems in Gambas Message-ID: <200911191309.52169.gambas@...1...> Hi, There are two licensing problems in Gambas that must be solved. 1) The first one should not be difficult: we must find a license for the gambas wiki documentation that makes it free. I need suggestions... 2) The bad problem: gb.db.firebird uses two sources files from www.ibpp.org whose license (the Borland Interbase Public License) is not compatible with the GPL. This point was raised by Kelly Hopkins, the maintainer of the gnu.org free software directory. I'm afraid Gambas will have to lose firebird support, but maybe we should ask www.ibpp.org about that. I need help there too! Thanks in advance for your comments. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:10:06 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:10:06 +0100 Subject: [Gambas-user] Gambas XMLRPC Server and method with more than 1 parameter Message-ID: <200911191310.06480.gambas@...1...> > Hi, > > anyone has the above working by any chance? > > It works with parameter (NULL) and 1 parameter but not with more than 1. > > The XMLRPC Client is ok, I have tested it against a non Gambas XMLRPC > server. > But if you post more than one parameter to the Gambas XMLRPC server, it > doesn't check the correct amount, and it only passes the first one to > the Callback routine. > > I need it for my project, but I'm afraid I have to dive into the > Component again. ;-( > Yes, it would be cool. :-) If you want to trace both your project and the gb.xml.rpc source code, put the gb.xml.rpc source code in your project, or put your project source code in gb.xml.rpc project. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:10:23 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:10:23 +0100 Subject: [Gambas-user] Exist says OK, but the File.Load fails Message-ID: <200911191310.23788.gambas@...1...> > Salut, > > this is my code (I added the line numbers) > Exist says OK > but the File.Load fails with : File or directory does not exist > > args[0] = Reports/US-presidents-3.xml is a relative path > If I use the Fullpath it works. > > AND: this only happens if the code is used in a component ! > In the project-code it works. > > 807 IF Exist(args[0]) THEN > 808 > 809 sString = File.Load(args[0]) > > This I get if I run it : > > args[0] = Reports/US-presidents-3.xml > > CLogic.FromXML.809: #45: File or directory does not exist > A relative path is resolved inside the project. So if you use your project as a component, the file must be inside the component, otherwise it won't work. If you want a component to access a file located inside the project that uses this component, there is a trick: starting the relative path with "../". But Exist() should be coherent with File.Load(), so can you send me the code, so that I have a clear view of what you do? Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:10:32 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:10:32 +0100 Subject: [Gambas-user] DataCombo, key_press Message-ID: <200911191310.32777.gambas@...1...> > Hello: > > Does'nt work a datacombo with key events? > > How can I solve this problem? > > Regards What do you want to achieve exactly? -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:10:48 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:10:48 +0100 Subject: [Gambas-user] XML-RPC component bug? Message-ID: <200911191310.48196.gambas@...1...> > Hi, > I'm having problems with the XML-RPC component. > The same piece of code (and actually the compiled program too) works > fine in one computer an gives an error in another. > > System where it works: Ubuntu 9.10 32bits > System where it fails: Ubuntu 8.10 64bits > Both systems have the same Gambas version: Gambas 2.17 (revision 2415) > > With exactly the same XML, the RpcStruct that the RpcClient.Call method > returns is alright in one of the systems but in the other, all its > dataType are incorretly set to xStruct, and so I always get "Type > mismatch: wanted XXX got RpcStruct instead" when trying to use the > "Value" property. > > Is it a bug in the component? Does the component relay on a system > package that is broken in one of my two systems? If so, which one? > > Thanks! > Toni > > P.S. Maybe it's already "doable", but I think that it would be really > nice if there was the possibility of "stepping into" the Gambas > components code while debugging an application. > Hi, I tried your project on my Mandriva 2010.0 32 bits and on my Ubuntu 9.10 64 bits, and I don't have any error. I use the latest revision, but it should not make any difference with revision 2415. So, it is strange. Can you try to recompile Gambas from scratch on the faulty system? -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:11:04 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:11:04 +0100 Subject: [Gambas-user] Compiling Gambas3 Message-ID: <200911191311.04409.gambas@...1...> > Benoit, > > How can we add something to wiki? > > This is explained on the main page of the wiki. Send me your full name and your password, and I will create a write account for you. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:11:14 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:11:14 +0100 Subject: [Gambas-user] bug? Message-ID: <200911191311.14647.gambas@...1...> > Debian sid > gb 2.17 > ========== > > Hi, > > I've got a module with public string & connection: > > PUBLIC $DBConn AS NEW Connection > PUBLIC MyHost AS String > PUBLIC MyDB AS String > PUBLIC MyUsr AS String > PUBLIC MyPass AS String > '--------------------------------- > PUBLIC FUNCTION DBConnect() AS Boolean > PRINT MyDB & "." & MyHost & "." & MyUsr & ":" & MyPass > WITH $DBConn > .Type = "postgresql" > .Host = MyHost > .Name = MyDB > .Port = "5432" > .Login = MyUsr > .Password = MyPass > END WITH > TRY $DBConn.Open > IF ERROR THEN > Message.Error(("Can't connect to DB") & "\n\n" & Error.Text) > RETURN FALSE > ELSE > RETURN TRUE > ENDIF > END > > If I forget to fill MyHost & MyDB from the class that calls it, the > function don't raise any error and returns TRUE (?) > > How can that be? > > JY > Because there is a default host (localhost) and a default database. It works that way so that you can connect to the database server to get the list of existing databases. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:11:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:11:41 +0100 Subject: [Gambas-user] Setting and environment variable in a Gambas app. Message-ID: <200911191311.41665.gambas@...1...> > Hi, > Setting the GDK_NATIVE_WINDOWS var in the environment tab of the project > only works while using the gambas app within the IDE but with the > generated executable this var doesn't get set, and so the controls get > erroneously rendered. > About setting it in ~/.gnomerc the point was not having to set it > manually in each affected system... or did you suggest adding the var > programatically to this file? > Regards, > Toni > Logically, doing: Application.Env["GDK_NATIVE_WINDOWS"]=1 before showing your first form should work. If not, you will have to wait for the next release (soon!), where this setting will be automatically done. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:11:51 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:11:51 +0100 Subject: [Gambas-user] form_open not raised when embedding form Message-ID: <200911191311.51761.gambas@...1...> > Forget last message. Setting GDK_NATIVE_WINDOWS=1 makes the Form_Open event > run! > > But theres a few glitches like columnview and textarea background colours > not being right. > > Thanks. > Please send a project that shows these glitches so that I can fix them. Regards, -- Beno?t Minisini From gambas at ...1... Thu Nov 19 13:12:08 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 13:12:08 +0100 Subject: [Gambas-user] Optional arguments and IDE Message-ID: <200911191312.08329.gambas@...1...> > Optional arguments now shows as wished, thanks! > But byref arguments are not showing correctly, > I'm not sure if this is new problem... maybe I just haven't notice it > earlier (I don't use byref much). > This problem occurs generally with byref arguments, not just optional > byref arguments. > They show like this "BYREF As AS". > > Jussi > This was finally fixed in revision 2424. Regards, -- Beno?t Minisini From david_villalobos_c at ...43... Thu Nov 19 15:05:36 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 19 Nov 2009 06:05:36 -0800 (PST) Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <200911191309.52169.gambas@...1...> References: <200911191309.52169.gambas@...1...> Message-ID: <597905.81564.qm@...1657...> Maybe not too usefull but.... 1- Can we use GPL 3 for wiki? 2- I think the first stet will be write a mail to www.ibpp.org and ask them for permition. :) And we can make a list of all gb.db.firebird users to see if they how many their are, and maybe write a Letter in name of all of them to let know their will to use Firebird & Gambas. Regards -- David ----- Original Message ---- From: Beno?t Minisini To: gambas-user at lists.sourceforge.net Sent: Thu, November 19, 2009 6:09:52 AM Subject: [Gambas-user] Licensing problems in Gambas Hi, There are two licensing problems in Gambas that must be solved. 1) The first one should not be difficult: we must find a license for the gambas wiki documentation that makes it free. I need suggestions... 2) The bad problem: gb.db.firebird uses two sources files from www.ibpp.org whose license (the Borland Interbase Public License) is not compatible with the GPL. This point was raised by Kelly Hopkins, the maintainer of the gnu.org free software directory. I'm afraid Gambas will have to lose firebird support, but maybe we should ask www.ibpp.org about that. I need help there too! Thanks in advance for your comments. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From wdahn at ...1000... Thu Nov 19 15:21:36 2009 From: wdahn at ...1000... (Werner) Date: Thu, 19 Nov 2009 22:21:36 +0800 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <200911191309.52169.gambas@...1...> References: <200911191309.52169.gambas@...1...> Message-ID: <4B055470.8040806@...1000...> On 19/11/09 20:09, Beno?t Minisini wrote: > Hi, > > There are two licensing problems in Gambas that must be solved. > > 1) The first one should not be difficult: we must find a license for the > gambas wiki documentation that makes it free. I need suggestions... > The most obvious choice would be some sort of Creative Commons license, I think. http://en.wikipedia.org/wiki/Creative_Commons_licenses > 2) The bad problem: gb.db.firebird uses two sources files from www.ibpp.org > whose license (the Borland Interbase Public License) is not compatible with > the GPL. This point was raised by Kelly Hopkins, the maintainer of the gnu.org > free software directory. I'm afraid Gambas will have to lose firebird support, > but maybe we should ask www.ibpp.org about that. I need help there too! > > Thanks in advance for your comments. > > Regards, > > From arosa at ...2015... Thu Nov 19 15:52:03 2009 From: arosa at ...2015... (Toni) Date: Thu, 19 Nov 2009 15:52:03 +0100 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <4B055470.8040806@...1000...> References: <200911191309.52169.gambas@...1...> <4B055470.8040806@...1000...> Message-ID: <4B055B93.4030406@...2015...> I would go for the GNU Free Documentation License (GNU FDL http://www.gnu.org/licenses/fdl.html) Creative commons (CC) isn't a bad choice either and it's quite popular nowadays. But it has 2 issues, the first one is that it isn't exactly the same in every country, and the second is that when choosing a CC license, you have to take a combination of the four major conditions: - Attribution (BY): if selected the use of materials will have to contain attribution to the original author. - Share Alike (SA): if selected derivative works will have to be released under the same or a similar license (later or jurisdiction version). - Non-Commercial (NC): if selected no commercial work can be done with the material. - No Derivative Works (ND): if selected no Derivative works of the material are allowed. If NC or NC are choosen then the resulting Creative commons license can't be considered a free license. Further I think that some people won't consider as a "valid free license" a Creative commons with condition of Attribution (BY). Regards, Toni En/na Werner ha escrit: > On 19/11/09 20:09, Beno?t Minisini wrote: > >> Hi, >> >> There are two licensing problems in Gambas that must be solved. >> >> 1) The first one should not be difficult: we must find a license for the >> gambas wiki documentation that makes it free. I need suggestions... >> >> > The most obvious choice would be some sort of Creative Commons license, > I think. > http://en.wikipedia.org/wiki/Creative_Commons_licenses > > >> 2) The bad problem: gb.db.firebird uses two sources files from www.ibpp.org >> whose license (the Borland Interbase Public License) is not compatible with >> the GPL. This point was raised by Kelly Hopkins, the maintainer of the gnu.org >> free software directory. I'm afraid Gambas will have to lose firebird support, >> but maybe we should ask www.ibpp.org about that. I need help there too! >> >> Thanks in advance for your comments. >> >> Regards, >> >> >> > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Thu Nov 19 16:06:40 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 19 Nov 2009 10:06:40 -0500 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <200911191309.52169.gambas@...1...> References: <200911191309.52169.gambas@...1...> Message-ID: <200911191006.41064.sourceforge-raindog2@...94...> On Thursday 19 November 2009 07:09 am, Beno?t Minisini wrote: > There are two licensing problems in Gambas that must be solved. > 1) The first one should not be difficult: we must find a license for the > gambas wiki documentation that makes it free. I need suggestions... Wikipedia uses the GNU FDL, and of course there are the various Creative Commons licenses that are better suited to documentation than programs. I guess the next question is whether everyone who's contributed to the wiki will go for whichever license you pick; I'm certainly okay with the GFDL or CC-BY-SA, but I have no idea how other people would feel. I thought I had some text in the old Wiki on the editor page that required the user to submit their entries under some free license, but that page wasn't included in the static dumps for obvious reasons and I can't find the old tarballs of our TWiki installation that I made after the spammers attacked. At any rate, I don't see anything like that in the current Wiki's editor. > 2) The bad problem: gb.db.firebird uses two sources files from > www.ibpp.org whose license (the Borland Interbase Public License) is > not compatible with the GPL. This point was raised by Kelly Hopkins, > the maintainer of the gnu.org free software directory. I'm afraid > Gambas will have to lose firebird support, but maybe we should ask > www.ibpp.org about that. I need help there too! Who wrote gb.db.firebird? Maybe they could maintain it as a separate package, though I guess whichever Gambas headers they built against would have to be relicensed as LGPL in that case. I didn't know anyone used firebird anymore. Rob From sourceforge-raindog2 at ...94... Thu Nov 19 16:16:33 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 19 Nov 2009 10:16:33 -0500 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <4B055B93.4030406@...2015...> References: <200911191309.52169.gambas@...1...> <4B055470.8040806@...1000...> <4B055B93.4030406@...2015...> Message-ID: <200911191016.34114.sourceforge-raindog2@...94...> On Thursday 19 November 2009 09:52 am, Toni wrote: > If NC or NC are choosen then the resulting Creative commons license > can't be considered a free license. Further I think that some people > won't consider as a "valid free license" a Creative commons with > condition of Attribution (BY). The CC-BY license is essentially a BSD-style license for non-code uses, and CC-BY-SA is meant as a copyleft like the GPL, though it's fundamentally less stringent because it doesn't require source materials to be provided (I've been looking for that kind of license for my music for years and no one has come up with one, probably because of the difficulty in establishing what constitutes source materials for artistic works). As far as BY goes, there are no CC licenses without attribution anymore, see here: http://creativecommons.org/licenses/ Rob From pinozollo at ...626... Thu Nov 19 16:22:52 2009 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 19 Nov 2009 12:22:52 -0300 Subject: [Gambas-user] File select broken ? Message-ID: <200911191222.52292.pinozollo@...626...> I have just realized that my old code does not work any more in selecting .jpg files. Now I am using Gambas 2.17 but I do not know which release made it wrong. Selecting the directory with my .jpg files it appears empty. I have to select All Graphics .* to see them and then the selection works. Here is a segment of the code. Regards Pino ------------------------- ' Filter for our user file open dialog. All image types supported by Gambas PRIVATE FUNCTION FileFilter(OPTIONAL All AS Boolean = FALSE) AS String[] DIM filter AS NEW String[] IF All THEN filter.Add("*.png *.jpeg *.jpg *.bmp *.gif *.xpm") filter.Add("All Graphics") END IF filter.Add("*.png") filter.Add("Portable Network Graphics") filter.Add("*.jpeg *.jpg") filter.Add("Joint Photographic Experts Group") filter.Add("*.bmp") filter.Add("Windows Bitmap") filter.Add("*.gif") filter.Add("Graphics Interchange Format") filter.Add("*.xpm") filter.Add("X PixMap") IF All THEN filter.Add("*") filter.Add("All Files") END IF RETURN filter END PUBLIC SUB ToolButtonQSLa_Click() DIM scale AS Float Dialog.Filter = FileFilter(TRUE) Dialog.Title = "Select the front side QSL image" IF Dialog.OpenFile() THEN RETURN PictureBoxQSLa.Picture = Picture.Load(Dialog.Path) PictureBoxQSLa.Resize(PictureBoxQSLa.Picture.Width, PictureBoxQSLa.Picture.Height) img = Image.Load(Dialog.Path) qsl_afile = Dialog.Path tempFile = User.Home &/ "thumb.png" ' PostgreSQL has no rights to read in Temp() IF img.Width > thumbSize OR img.Height > thumbSize THEN '----- Calc factor to scale isotropic scale = Min(ThumbSize / img.Width, ThumbSize / img.Height) img = img.Stretch(img.Width * scale, img.Height * scale, TRUE) END IF img.Save(tempFile) EXEC ["chmod", "666", tempFile] WAIT ' give rights to PostgreSQL PictureBoxThumb.Picture = Picture.Load(tempFile) CATCH Message.Warning("Error loading image:\n\n" & ERROR.Text) END ---------------------------- -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From Karl.Reinl at ...9... Thu Nov 19 16:36:12 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 19 Nov 2009 16:36:12 +0100 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <200911191006.41064.sourceforge-raindog2@...94...> References: <200911191309.52169.gambas@...1...> <200911191006.41064.sourceforge-raindog2@...94...> Message-ID: <1258644972.1159.1.camel@...40...> Am Donnerstag, den 19.11.2009, 10:06 -0500 schrieb Rob: > On Thursday 19 November 2009 07:09 am, Beno?t Minisini wrote: > > There are two licensing problems in Gambas that must be solved. > > 1) The first one should not be difficult: we must find a license for the > > gambas wiki documentation that makes it free. I need suggestions... > > Wikipedia uses the GNU FDL, and of course there are the various Creative > Commons licenses that are better suited to documentation than programs. > > I guess the next question is whether everyone who's contributed to the wiki > will go for whichever license you pick; I'm certainly okay with the GFDL or > CC-BY-SA, but I have no idea how other people would feel. > > I thought I had some text in the old Wiki on the editor page that required > the user to submit their entries under some free license, but that page > wasn't included in the static dumps for obvious reasons and I can't find > the old tarballs of our TWiki installation that I made after the spammers > attacked. At any rate, I don't see anything like that in the current > Wiki's editor. > > > 2) The bad problem: gb.db.firebird uses two sources files from > > www.ibpp.org whose license (the Borland Interbase Public License) is > > not compatible with the GPL. This point was raised by Kelly Hopkins, > > the maintainer of the gnu.org free software directory. I'm afraid > > Gambas will have to lose firebird support, but maybe we should ask > > www.ibpp.org about that. I need help there too! > > Who wrote gb.db.firebird? Maybe they could maintain it as a separate > package, though I guess whichever Gambas headers they built against would > have to be relicensed as LGPL in that case. I didn't know anyone used > firebird anymore. > > Rob Salut Rob, gambas-1.0.17/help/VisualIntroductionToGambas.html is this what your looking for ? -- Amicalment Charlie From sourceforge-raindog2 at ...94... Thu Nov 19 16:54:49 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 19 Nov 2009 10:54:49 -0500 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <1258644972.1159.1.camel@...40...> References: <200911191309.52169.gambas@...1...> <200911191006.41064.sourceforge-raindog2@...94...> <1258644972.1159.1.camel@...40...> Message-ID: <200911191054.49656.sourceforge-raindog2@...94...> On Thursday 19 November 2009 10:36 am, Charlie Reinl wrote: > gambas-1.0.17/help/VisualIntroductionToGambas.html > is this what your looking for ? No, by "the editor page" I meant the page that lets you enter stuff into the wiki, not the page with screenshots of the IDE. Rob From matteo.lisi at ...2324... Thu Nov 19 17:45:01 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Thu, 19 Nov 2009 17:45:01 +0100 Subject: [Gambas-user] Gambas on ARM 9 In-Reply-To: <200911191311.14647.gambas@...1...> References: <200911191311.14647.gambas@...1...> Message-ID: <4B05760D.9060905@...2324...> Hi to all! I have to port the gambas core (I need to execute only a gambas script) on an ARM 9 platform. Does someone port gambas on ARM 9 platform ? thanks From gambas at ...1... Thu Nov 19 17:54:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 19 Nov 2009 17:54:24 +0100 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <200911191006.41064.sourceforge-raindog2@...94...> References: <200911191309.52169.gambas@...1...> <200911191006.41064.sourceforge-raindog2@...94...> Message-ID: <200911191754.24207.gambas@...1...> > On Thursday 19 November 2009 07:09 am, Beno?t Minisini wrote: > > There are two licensing problems in Gambas that must be solved. > > 1) The first one should not be difficult: we must find a license for the > > gambas wiki documentation that makes it free. I need suggestions... > > Wikipedia uses the GNU FDL, and of course there are the various Creative > Commons licenses that are better suited to documentation than programs. It is difficult to determine the attribution of each page. By reading the page history, you can know all users that modified something on a specific page. But sometimes it is an error, so you cannot automate the process. I suggest the following: - Using the GNU FDL, as it is used by Wikipedia. - All users having a write access to the wiki will be considered as an author. Now I think all wiki users should tell if he agrees with the license. Or maybe should we fix a date in the future, and if nobody explicitely disagrees until that date, we apply the license. Because I'm not sure that all wiki users do modify it. > > I guess the next question is whether everyone who's contributed to the wiki > will go for whichever license you pick; I'm certainly okay with the GFDL or > CC-BY-SA, but I have no idea how other people would feel. > > I thought I had some text in the old Wiki on the editor page that required > the user to submit their entries under some free license, but that page > wasn't included in the static dumps for obvious reasons and I can't find > the old tarballs of our TWiki installation that I made after the spammers > attacked. At any rate, I don't see anything like that in the current > Wiki's editor. > > > 2) The bad problem: gb.db.firebird uses two sources files from > > www.ibpp.org whose license (the Borland Interbase Public License) is > > not compatible with the GPL. This point was raised by Kelly Hopkins, > > the maintainer of the gnu.org free software directory. I'm afraid > > Gambas will have to lose firebird support, but maybe we should ask > > www.ibpp.org about that. I need help there too! > > Who wrote gb.db.firebird? Maybe they could maintain it as a separate > package, though I guess whichever Gambas headers they built against would > have to be relicensed as LGPL in that case. I didn't know anyone used > firebird anymore. > Daniel Vostanikian wrote it, Laurent Carlier and I did some little changes. But personnally I don't want to manage a non GPL package, I don't use firebird at all, and I don't have time. So firebird users are welcome to deal with that problem! Regards, -- Beno?t Minisini From wdahn at ...1000... Thu Nov 19 18:16:09 2009 From: wdahn at ...1000... (Werner) Date: Fri, 20 Nov 2009 01:16:09 +0800 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <200911191754.24207.gambas@...1...> References: <200911191309.52169.gambas@...1...> <200911191006.41064.sourceforge-raindog2@...94...> <200911191754.24207.gambas@...1...> Message-ID: <4B057D59.2070800@...1000...> On 20/11/09 00:54, Beno?t Minisini wrote: >> On Thursday 19 November 2009 07:09 am, Beno?t Minisini wrote: >> >>> There are two licensing problems in Gambas that must be solved. >>> 1) The first one should not be difficult: we must find a license for the >>> gambas wiki documentation that makes it free. I need suggestions... >>> >> Wikipedia uses the GNU FDL, and of course there are the various Creative >> Commons licenses that are better suited to documentation than programs. >> > It is difficult to determine the attribution of each page. By reading the page > history, you can know all users that modified something on a specific page. > But sometimes it is an error, so you cannot automate the process. > > I suggest the following: > > - Using the GNU FDL, as it is used by Wikipedia. > > - All users having a write access to the wiki will be considered as an author. > > Now I think all wiki users should tell if he agrees with the license. Or maybe > should we fix a date in the future, and if nobody explicitely disagrees until > that date, we apply the license. Because I'm not sure that all wiki users do > modify it. > > If you want a date, it should be in the near future, (months max). If someone disagrees, that person is free to remove their entries. Then, the wiki editor should have a text on the top that says that if a user commits an entry it means acceptance to the xxx license (IANAL). From sv1jsb at ...626... Thu Nov 19 20:45:08 2009 From: sv1jsb at ...626... (=?ISO-8859-7?B?we3k8d3h8iDQ7/Hl9fzw7/Xr7/I=?=) Date: Thu, 19 Nov 2009 21:45:08 +0200 Subject: [Gambas-user] qte disabled Message-ID: Hello everybody on the list and congrats to the developers of this excellent package. I have downloaded and compiled successfully 2.17 and today 2.18 of Gambas. I have installed all the necessary packages for my system kubuntu 9.10 with KDE 4.3.3 but at the end of configure I am getting the message "gb.gte disabled". This happened at both versions. Is there an extra library for this that I have to download? Also, if qte is disabled how come I can select the corresponding box at my project's preferences? Best Regards, Andreas From gambas at ...1... Fri Nov 20 01:04:19 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 20 Nov 2009 01:04:19 +0100 Subject: [Gambas-user] File select broken ? In-Reply-To: <200911191222.52292.pinozollo@...626...> References: <200911191222.52292.pinozollo@...626...> Message-ID: <200911200104.19451.gambas@...1...> > I have just realized that my old code does not work any more in selecting > .jpg files. > > Now I am using Gambas 2.17 but I do not know which release made it wrong. > > Selecting the directory with my .jpg files it appears empty. > > I have to select All Graphics .* to see them and then the selection works. > > Here is a segment of the code. > > Regards > > Pino > ------------------------- > ' Filter for our user file open dialog. All image types supported by Gambas > PRIVATE FUNCTION FileFilter(OPTIONAL All AS Boolean = FALSE) AS String[] > DIM filter AS NEW String[] > IF All THEN > filter.Add("*.png *.jpeg *.jpg *.bmp *.gif *.xpm") > filter.Add("All Graphics") > END IF > filter.Add("*.png") > filter.Add("Portable Network Graphics") > filter.Add("*.jpeg *.jpg") > filter.Add("Joint Photographic Experts Group") > filter.Add("*.bmp") > filter.Add("Windows Bitmap") > filter.Add("*.gif") > filter.Add("Graphics Interchange Format") > filter.Add("*.xpm") > filter.Add("X PixMap") > IF All THEN > filter.Add("*") > filter.Add("All Files") > END IF > RETURN filter > END > Filters must be separated by semicolons, not spaces. Try with semicolons, it should normally work. filter.Add("*.jpeg;*.jpg") Regards, -- Beno?t Minisini From gambas at ...1... Fri Nov 20 01:05:43 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 20 Nov 2009 01:05:43 +0100 Subject: [Gambas-user] qte disabled In-Reply-To: References: Message-ID: <200911200105.43575.gambas@...1...> > Hello everybody on the list and congrats to the developers of this > excellent package. > I have downloaded and compiled successfully 2.17 and today 2.18 of Gambas. > I have installed all the necessary packages for my system kubuntu 9.10 with > KDE 4.3.3 > but at the end of configure I am getting the message "gb.gte disabled". > This happened at both versions. > > Is there an extra library for this that I have to download? > Also, if qte is disabled how come I can select the corresponding box at my > project's preferences? > > Best Regards, > Andreas > --------------------------------------------------------------------------- > --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - > and focus on what you do best, core application coding. Discover what's > new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > gb.qte is not important at all, it uses the Qt/Embedded library, and I never see packages for that library. Now, with Qt4, this library is deprecated, and gb.qte was removed from Gambas 3. So, just don't care! But it is strange that you see gb.qte in the list of components in the IDE project property dialog, if gb.qte was not installed! Regards, -- Beno?t Minisini From bbruen at ...2308... Fri Nov 20 05:16:23 2009 From: bbruen at ...2308... (bbb888) Date: Thu, 19 Nov 2009 20:16:23 -0800 (PST) Subject: [Gambas-user] Changing the key value in a collection Message-ID: <26422299.post@...1379...> I have a situation where the key for an item in a collection is an editable value in the collection item. Obviously, when that value changes, I need to update the collection and change the key. However, when I do this the item is in a new position in the collection. This is a problem because the collection is "sorted" via a different item field. I can handle the sort when the collection is built from the database, but is there any way to get the collection back into the correct order when the key value changes? I don't want to persist the changes at the point where the user changes one item. The goal is to have them work with the set of items, make adjustments to one or more and then persist their changes under their control when they are happy with the overall set. Alternatively, is there a way to sort a gridview? (This is the real problem I suppose, as when the key value or any other value in the item changes, I reload the gridview by iterating the collection.) tia bruce -- View this message in context: http://old.nabble.com/Changing-the-key-value-in-a-collection-tp26422299p26422299.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Fri Nov 20 05:20:38 2009 From: bbruen at ...2308... (bbb888) Date: Thu, 19 Nov 2009 20:20:38 -0800 (PST) Subject: [Gambas-user] Howto: Cancel a keypress in a textarea Message-ID: <26422301.post@...1379...> I'm trying to capture and ignore, textwise, use of the tab key in a textarea control. I have set up an OnKeyPress handler that moves the focus to the next control, but the tab is still inserted in the textarea.text. tia bruce -- View this message in context: http://old.nabble.com/Howto%3A-Cancel-a-keypress-in-a-textarea-tp26422301p26422301.html Sent from the gambas-user mailing list archive at Nabble.com. From horst at ...2298... Fri Nov 20 04:35:23 2009 From: horst at ...2298... (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Fri, 20 Nov 2009 14:35:23 +1100 Subject: [Gambas-user] Licensing problems in Gambas In-Reply-To: <200911191309.52169.gambas@...1...> References: <200911191309.52169.gambas@...1...> Message-ID: <1258688123.12131.1146.camel@...2299...> On Thu, 2009-11-19 at 13:09 +0100, Beno?t Minisini wrote: > Hi, > > There are two licensing problems in Gambas that must be solved. > > 1) The first one should not be difficult: we must find a license for the > gambas wiki documentation that makes it free. I need suggestions... Creative Commons - Attribution - Sharealike. GPL compatible, and definitely free. -- 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 shordi at ...626... Fri Nov 20 10:03:16 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Fri, 20 Nov 2009 10:03:16 +0100 Subject: [Gambas-user] Howto: Cancel a keypress in a textarea In-Reply-To: <26422301.post@...1379...> References: <26422301.post@...1379...> Message-ID: Use STOP EVENT after you code. Regards 2009/11/20 bbb888 > > I'm trying to capture and ignore, textwise, use of the tab key in a > textarea > control. > I have set up an OnKeyPress handler that moves the focus to the next > control, but the tab is still inserted in the textarea.text. > > tia > bruce > -- > View this message in context: > http://old.nabble.com/Howto%3A-Cancel-a-keypress-in-a-textarea-tp26422301p26422301.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wdahn at ...1000... Fri Nov 20 10:28:30 2009 From: wdahn at ...1000... (Werner) Date: Fri, 20 Nov 2009 17:28:30 +0800 Subject: [Gambas-user] Problem building Gambas3 on openSUSE 11.2 Message-ID: <4B06613E.3000801@...1000...> Suse 11.2 came out last week. I seem to remember that it worked fine with 11.1 using qt3. My problem is that I can't configure support for Qt (I don't care about the other parts). I am trying this now with trunk rev 2429 but have also tried it with a trunk from maybe 10 days ago. The trouble seems to start at reconf-all: ./reconf-all autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: adding subdirectory main to autoreconf autoreconf: Entering directory `main' autoreconf: running: aclocal -I m4 --install autoreconf: configure.ac: not running libtoolize: --install not given I have attached the console and config logs. Not knowing what information is needed I supply a few bits that may or may not be relevant: echo $PATH /home/werda/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin uname -a Linux bandit 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 x86_64 x86_64 x86_64 GNU/Linux glibc 2.10.1-10.4 libtool 2.2.6-47.7 qt 4.5.3 Any help is much appreciated. Regards Werner -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 13421 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: console_log.txt.tar.gz Type: application/x-gzip Size: 12095 bytes Desc: not available URL: From pinozollo at ...626... Fri Nov 20 11:25:01 2009 From: pinozollo at ...626... (Pino Zollo) Date: Fri, 20 Nov 2009 07:25:01 -0300 Subject: [Gambas-user] File select broken ? In-Reply-To: <200911200104.19451.gambas@...1...> References: <200911191222.52292.pinozollo@...626...> <200911200104.19451.gambas@...1...> Message-ID: <200911200725.01159.pinozollo@...626...> Il gioved? 19 novembre 2009 21:04:19 hai scritto: > > ------------------------- > > ' Filter for our user file open dialog. All image types supported by > > Gambas PRIVATE FUNCTION FileFilter(OPTIONAL All AS Boolean = FALSE) AS > > String[] DIM filter AS NEW String[] > > ? IF All THEN > > ? ? filter.Add("*.png *.jpeg *.jpg *.bmp *.gif *.xpm") > > ? ? filter.Add("All Graphics") > > ? END IF > > ? filter.Add("*.png") > > ? filter.Add("Portable Network Graphics") > > ? filter.Add("*.jpeg *.jpg") > > ? filter.Add("Joint Photographic Experts Group") > > ? filter.Add("*.bmp") > > ? filter.Add("Windows Bitmap") > > ? filter.Add("*.gif") > > ? filter.Add("Graphics Interchange Format") > > ? filter.Add("*.xpm") > > ? filter.Add("X PixMap") > > ? IF All THEN > > ? ? filter.Add("*") > > ? ? filter.Add("All Files") > > ? END IF > > ? RETURN filter > > END > > Filters must be separated by semicolons, not spaces. Try with semicolons, > it should normally work. > > ? filter.Add("*.jpeg;*.jpg") Good ! It works....just semicolon and no space... So you should correct the example "PictureDatabase" from where I took the PRIVATE FUNCTION FileFilter. Regards Pino -- Key ID: 0xF6768208 Key fingerprint = B16D 0A7C 5B29 A334 CE6A 71F6 EAF8 3D88 F676 8208 Key server: hkp://wwwkeys.eu.pgp.net From jussi.lahtinen at ...626... Fri Nov 20 16:13:14 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 20 Nov 2009 17:13:14 +0200 Subject: [Gambas-user] Changing the key value in a collection In-Reply-To: <26422299.post@...1379...> References: <26422299.post@...1379...> Message-ID: <384d3900911200713h3913acbar318f539fdb089326@...627...> Probably not good answer, but can you use something else as key? Maybe you should add ID value for those items. If value you use for key is editable, you should be aware that collection can't have same key twice... Jussi On Fri, Nov 20, 2009 at 06:16, bbb888 wrote: > > I have a situation where the key for an item in a collection is an editable > value in the collection item. ?Obviously, when that value changes, I need to > update the collection and change the key. ?However, when I do this the item > is in a new position in the collection. ?This is a problem because the > collection is "sorted" via a different item field. > > I can handle the sort when the collection is built from the database, but is > there any way to get the collection back into the correct order when the key > value changes? ?I don't want to persist the changes at the point where the > user changes one item. ?The goal is to have them work with the set of items, > make adjustments to one or more and then persist their changes under their > control when they are happy with the overall set. > > Alternatively, is there a way to sort a gridview? ?(This is the real problem > I suppose, as when the key value or any other value in the item changes, I > reload the gridview by iterating the collection.) > > tia > bruce > > -- > View this message in context: http://old.nabble.com/Changing-the-key-value-in-a-collection-tp26422299p26422299.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rospolosco at ...152... Fri Nov 20 16:39:14 2009 From: rospolosco at ...152... (Stefano Palmeri) Date: Fri, 20 Nov 2009 16:39:14 +0100 Subject: [Gambas-user] Howto: Cancel a keypress in a textarea In-Reply-To: <26422301.post@...1379...> References: <26422301.post@...1379...> Message-ID: <200911201639.15190.rospolosco@...152...> Il venerd? 20 novembre 2009 05:20:38 bbb888 ha scritto: > I'm trying to capture and ignore, textwise, use of the tab key in a > textarea control. > I have set up an OnKeyPress handler that moves the focus to the next > control, but the tab is still inserted in the textarea.text. > > tia > bruce PUBLIC SUB TextArea1_KeyPress() IF key.Code = Key.Tab THEN STOP EVENT END From tomascostarivas at ...626... Fri Nov 20 19:31:13 2009 From: tomascostarivas at ...626... (Tomas Costa rivas) Date: Fri, 20 Nov 2009 19:31:13 +0100 Subject: [Gambas-user] DataCombo, key_press In-Reply-To: <200911191310.32777.gambas@...1...> References: <200911191310.32777.gambas@...1...> Message-ID: <94a144920911201031r8788f4dr9374a4e09ea300d6@...627...> I have a list of items( over 8000) . Each item starts by a numeric part(two digits) that are used to classify the item, and according to this digits certain textbox are visible and certain other not. I want a event when I write the second digit. I write in a datacombo instead of "expand(popup) and click" it because the written text filters another list Apart, I want the return key works like a tab key(move to next textbox) Thanks Beno?t 2009/11/19 Beno?t Minisini > > Hello: > > > > Does'nt work a datacombo with key events? > > > > How can I solve this problem? > > > > Regards > > What do you want to achieve exactly? > > -- > Beno?t Minisini > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bbruen at ...2308... Fri Nov 20 19:50:01 2009 From: bbruen at ...2308... (bbb888) Date: Fri, 20 Nov 2009 10:50:01 -0800 (PST) Subject: [Gambas-user] Howto: Cancel a keypress in a textarea In-Reply-To: References: <26422301.post@...1379...> Message-ID: <26443625.post@...1379...> Thanks Shordi, Amazingly obvious now I have the answer :clap: bruce -- View this message in context: http://old.nabble.com/Howto%3A-Cancel-a-keypress-in-a-textarea-tp26422301p26443625.html Sent from the gambas-user mailing list archive at Nabble.com. From wdahn at ...1000... Sat Nov 21 11:26:46 2009 From: wdahn at ...1000... (Werner) Date: Sat, 21 Nov 2009 18:26:46 +0800 Subject: [Gambas-user] Problem building Gambas3 on openSUSE 11.2 In-Reply-To: <4B06613E.3000801@...1000...> References: <4B06613E.3000801@...1000...> Message-ID: <4B07C066.2030903@...1000...> On 20/11/09 17:28, Werner wrote: > Suse 11.2 came out last week. I seem to remember that it worked fine > with 11.1 using qt3. > > My problem is that I can't configure support for Qt (I don't care about > the other parts). > > I am trying this now with trunk rev 2429 but have also tried it with a > trunk from maybe 10 days ago. > Update: I have built Gambas3 with Suse11.1/qt3 and Suse11.2/qt4 side by side. On 11.1 moc is found in /usr/lib/qt3/bin/ On 11.2 moc is in /usr/bin (for Qt Creator, very nice, btw) and also in /usr/lib64/qt4/bin but it is not found. I've tried ./configure --with-moc=/usr/lib64/qt4/bin/moc but that made no difference. I can build and run an example program with Qt Creator so the building apps all seem to be there. Also, there does not seem to be any libqt-mt.so in qt4. Best Regards Werner From gambas at ...1... Sat Nov 21 11:43:00 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 Nov 2009 11:43:00 +0100 Subject: [Gambas-user] Problem building Gambas3 on openSUSE 11.2 In-Reply-To: <4B07C066.2030903@...1000...> References: <4B06613E.3000801@...1000...> <4B07C066.2030903@...1000...> Message-ID: <200911211143.00824.gambas@...1...> > On 20/11/09 17:28, Werner wrote: > > Suse 11.2 came out last week. I seem to remember that it worked fine > > with 11.1 using qt3. > > > > My problem is that I can't configure support for Qt (I don't care about > > the other parts). > > > > I am trying this now with trunk rev 2429 but have also tried it with a > > trunk from maybe 10 days ago. > > Update: > I have built Gambas3 with Suse11.1/qt3 and Suse11.2/qt4 side by side. > On 11.1 moc is found in /usr/lib/qt3/bin/ > > On 11.2 moc is in /usr/bin (for Qt Creator, very nice, btw) and also in > /usr/lib64/qt4/bin > but it is not found. I've tried > ./configure --with-moc=/usr/lib64/qt4/bin/moc but that made no difference. > > I can build and run an example program with Qt Creator so the building > apps all seem to be there. > > Also, there does not seem to be any libqt-mt.so in qt4. > > > Best Regards > > Werner > What are you talking about? Compiling gb.qt (Qt3) or compiling gb.qt4 (Qt4)? Qt3 moc is found by searching in a list of hard-coded directories. Qt4 moc is found by using pkg-config. So please be clearer so that I can see what happens exactly! Regards, -- Beno?t Minisini From wdahn at ...1000... Sat Nov 21 13:01:08 2009 From: wdahn at ...1000... (Werner) Date: Sat, 21 Nov 2009 20:01:08 +0800 Subject: [Gambas-user] Problem building Gambas3 on openSUSE 11.2 In-Reply-To: <200911211143.00824.gambas@...1...> References: <4B06613E.3000801@...1000...> <4B07C066.2030903@...1000...> <200911211143.00824.gambas@...1...> Message-ID: <4B07D684.8020109@...1000...> On 21/11/09 18:43, Beno?t Minisini wrote: >> On 20/11/09 17:28, Werner wrote: >> >>> Suse 11.2 came out last week. I seem to remember that it worked fine >>> with 11.1 using qt3. >>> >>> My problem is that I can't configure support for Qt (I don't care about >>> the other parts). >>> >>> I am trying this now with trunk rev 2429 but have also tried it with a >>> trunk from maybe 10 days ago. >>> >> Update: >> I have built Gambas3 with Suse11.1/qt3 and Suse11.2/qt4 side by side. >> On 11.1 moc is found in /usr/lib/qt3/bin/ >> >> On 11.2 moc is in /usr/bin (for Qt Creator, very nice, btw) and also in >> /usr/lib64/qt4/bin >> but it is not found. I've tried >> ./configure --with-moc=/usr/lib64/qt4/bin/moc but that made no difference. >> >> I can build and run an example program with Qt Creator so the building >> apps all seem to be there. >> >> Also, there does not seem to be any libqt-mt.so in qt4. >> >> >> Best Regards >> >> Werner >> >> > What are you talking about? Compiling gb.qt (Qt3) or compiling gb.qt4 (Qt4)? > > Qt3 moc is found by searching in a list of hard-coded directories. > > Qt4 moc is found by using pkg-config. > > So please be clearer so that I can see what happens exactly! > > Regards, > > Suse 11.2 comes with Qt 4.5.3 which is what I would prefer to use. Regards, Werner From bbruen at ...2308... Sat Nov 21 13:05:11 2009 From: bbruen at ...2308... (bbb888) Date: Sat, 21 Nov 2009 04:05:11 -0800 (PST) Subject: [Gambas-user] Setting a checkbox value Message-ID: <26455936.post@...1379...> Benoit, Why oh why should setting checkbox value in code generate a click event? bruce -- View this message in context: http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26455936.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Sat Nov 21 13:29:23 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 21 Nov 2009 13:29:23 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <26455936.post@...1379...> References: <26455936.post@...1379...> Message-ID: <4B07DD23.8010209@...1909...> bbb888 ha scritto: > Benoit, > > Why oh why should setting checkbox value in code generate a click event? > > bruce > I join. I think that events should be fired by user, never by code. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From nando_f at ...951... Sat Nov 21 14:04:51 2009 From: nando_f at ...951... (nando) Date: Sat, 21 Nov 2009 08:04:51 -0500 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <26455936.post@...1379...> References: <26455936.post@...1379...> Message-ID: <20091121130129.M41263@...951...> Workaround I use. 1. Use an OPTIONAL boolean in the Click Event. 2. The user clicking defaults to false but you manually send a true in code. 3. Then your click event simply returns if the optional is true. -Fernando ---------- Original Message ----------- From: bbb888 To: gambas-user at lists.sourceforge.net Sent: Sat, 21 Nov 2009 04:05:11 -0800 (PST) Subject: [Gambas-user] Setting a checkbox value > Benoit, > > Why oh why should setting checkbox value in code generate a click event? > > bruce > -- > View this message in context: http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26455936.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Sat Nov 21 14:10:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 21 Nov 2009 14:10:57 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <4B07DD23.8010209@...1909...> References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> Message-ID: <200911211410.57134.gambas@...1...> > bbb888 ha scritto: > > Benoit, > > > > Why oh why should setting checkbox value in code generate a click event? > > > > bruce > > I join. > I think that events should be fired by user, never by code. > > Regards, > Why should we make a difference between the user and the code? Most of the time it is useless, so when you need that, just block events explicitely. Regards, -- Beno?t Minisini From esafwan at ...626... Sat Nov 21 14:26:07 2009 From: esafwan at ...626... (safwan erooth) Date: Sat, 21 Nov 2009 05:26:07 -0800 (PST) Subject: [Gambas-user] Invitation to connect on LinkedIn Message-ID: <857208358.4690211.1258809967942.JavaMail.app@...2325...> LinkedIn ------------ safwan erooth souhaite se connecter ? vous sur LinkedIn?: ------------------------------------------ Joan Luc?, I'd like to add you to my professional network on LinkedIn. - safwan Accepter l'invitation de safwan erooth http://www.linkedin.com/e/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I434713988_3/6lColZJrmZznQNdhjRQnOpBtn9QfmhBt71BoSd1p65Lr6lOfPdve3wVcP4Td3cQiiZKc4B9iAZSdiYQejAOdjAUdPwLrCBxbOYWrSlI/EML_comm_afe/ Voir l'invitation de safwan erooth http://www.linkedin.com/e/uKC-86hQN3QmxE2auJ6zQ6pkPe-4UnCG632_CXVQxQl4RrKxeh/blk/I434713988_3/0PnPwUejcNdPgPd4ALqnpPbOYWrSlI/svi/ ------------------------------------------ Quel est l' int?r?t de faire partie du r?seau de safwan erooth?? Vous avez une question?? Le r?seau de safwan erooth a probablement une r?ponse?: La rubrique R?ponses de LinkedIn vous permet de vous informer aupr?s de safwan erooth et de votre r?seau. Obtenez l'information que vous recherchez aupr?s de professionnels exp?riment?s. http://www.linkedin.com/e/ash/inv19_ayn/ ------ (c) 2009, LinkedIn Corporation From gambas.fr at ...626... Sat Nov 21 15:47:54 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 21 Nov 2009 15:47:54 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <200911211410.57134.gambas@...1...> References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> <200911211410.57134.gambas@...1...> Message-ID: <6324a42a0911210647o204cdc01ua0470a903166af82@...627...> Le 21 novembre 2009 14:10, Beno?t Minisini a ?crit : >> bbb888 ha scritto: >> > Benoit, >> > >> > Why oh why should setting checkbox value in code generate a click event? >> > >> > bruce >> >> I join. >> I think that events should be fired by user, never by code. >> >> Regards, >> > > Why should we make a difference between the user and the code? Most of the > time it is useless, so when you need that, just block events explicitely. Object.Lock Object.UnLock > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kb2scs at ...2326... Sat Nov 21 16:43:01 2009 From: kb2scs at ...2326... (John) Date: Sat, 21 Nov 2009 10:43:01 -0500 Subject: [Gambas-user] Resizing a form Message-ID: <1258818181.2453.31.camel@...2329...> Hi All I have joined this list this morning. I have tried to find the answer to the following question. Sorry if this has been asked many times in the past. When a user changes the size of a form by dragging its corner or by clicking on the maximum button I would like the controls on the form to get bigger or smaller along with the form. vb.net has the anchor property. vb6 has the form resize event. What I am asking is how to I do the same in Gambas? Thank you for your time in reading this E-Mail. -- Let us hope we never witness the "Silence Of The Hams" 73 DE John KB2SCS Packet: KB2SCS at ...2327...,#NLI.NY.USA.NOAM E-Mail: kb2scs at ...2328... Web Page: http://www.qsl.net/kb2scs From kb2scs at ...2326... Sat Nov 21 16:54:10 2009 From: kb2scs at ...2326... (John) Date: Sat, 21 Nov 2009 10:54:10 -0500 Subject: [Gambas-user] Please Disregard my last E-Mail Message-ID: <1258818850.2453.33.camel@...2329...> Hi all I have just found the form resize event. So please disregard my last E-Mail Thanks -- Let us hope we never witness the "Silence Of The Hams" 73 DE John KB2SCS Packet: KB2SCS at ...2327...,#NLI.NY.USA.NOAM E-Mail: kb2scs at ...2328... Web Page: http://www.qsl.net/kb2scs From wdahn at ...1000... Sat Nov 21 17:03:47 2009 From: wdahn at ...1000... (Werner) Date: Sun, 22 Nov 2009 00:03:47 +0800 Subject: [Gambas-user] Resizing a form In-Reply-To: <1258818181.2453.31.camel@...2329...> References: <1258818181.2453.31.camel@...2329...> Message-ID: <4B080F63.4070803@...1000...> On 21/11/09 23:43, John wrote: > Hi All > I have joined this list this morning. > I have tried to find the answer to the following question. > Sorry if this has been asked many times in the past. > > When a user changes the size of a form by dragging its corner or by > clicking on the maximum button I would like the controls on the form to > get bigger or smaller along with the form. > > vb.net has the anchor property. vb6 has the form resize event. > > What I am asking is how to I do the same in Gambas? > > Thank you for your time in reading this E-Mail. > > Hello John and welcome. When you are in design mode of the ide and you have the form in question in front of you please right-click on the form. A popup menu will appear, whose second entry is "Event". use that and a list of events pertaining to a form come up. There is a resize event. If you select that you will be thrown into the code editor with a skeleton resize event routine waiting for you. The form also has a "Scaled" property which might help to keep order in the jungle. I've never used it. Regards Werner Dahn From doriano.blengino at ...1909... Sat Nov 21 17:29:12 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 21 Nov 2009 17:29:12 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <6324a42a0911210647o204cdc01ua0470a903166af82@...627...> References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> <200911211410.57134.gambas@...1...> <6324a42a0911210647o204cdc01ua0470a903166af82@...627...> Message-ID: <4B081558.5010301@...1909...> Fabien Bodard ha scritto: > Le 21 novembre 2009 14:10, Beno?t Minisini > a ?crit : > >>> bbb888 ha scritto: >>> >>>> Benoit, >>>> >>>> Why oh why should setting checkbox value in code generate a click event? >>>> >>>> bruce >>>> >>> I join. >>> I think that events should be fired by user, never by code. >>> >>> Regards, >>> >>> >> Why should we make a difference between the user and the code? Most of the >> time it is useless, so when you need that, just block events explicitely. >> > > > Object.Lock > Object.UnLock > These methods locks even the useful events too. I wrote a file manager having this issue. In a treeview, if you click on an item, a fileview gets filled with filenames. If you doubleclick on a item in a treeview, the treeview branch expands. By using Object.Lock() (I don't remember why I used it, but the original DirTreeView uses it as well), a double click is lost by the time the first click is fired to fill the fileview. I should use a boolean variable instead of lock()/unlock(). But this reminds to me the microsoft way: at first they do the bad thing, and then they do another thing to circumvent the first, instead of correcting it. Here the bad thing is to fire event from code, and then prohibit them from code again. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From kb2scs at ...2326... Sat Nov 21 18:12:05 2009 From: kb2scs at ...2326... (John) Date: Sat, 21 Nov 2009 12:12:05 -0500 Subject: [Gambas-user] Resizing a form In-Reply-To: <4B080F63.4070803@...1000...> References: <1258818181.2453.31.camel@...2329...> <4B080F63.4070803@...1000...> Message-ID: <1258823525.2453.36.camel@...2329...> Hi Werner Thank you for your fast reply and your help. Both are greatly appreciated. On Sun, 2009-11-22 at 00:03 +0800, Werner wrote: > Hello John and welcome > > When you are in design mode of the ide and you have the form in question > in front of you please right-click on the form. > A popup menu will appear, whose second entry is "Event". > use that and a list of events pertaining to a form come up. There is a > resize event. > > If you select that you will be thrown into the code editor with a > skeleton resize event routine waiting for you. > > The form also has a "Scaled" property which might help to keep order in > the jungle. I've never used it. > > Regards > > Werner Dahn -- Let us hope we never witness the "Silence Of The Hams" 73 DE John KB2SCS Packet: KB2SCS at ...2327...,#NLI.NY.USA.NOAM E-Mail: kb2scs at ...2328... Web Page: http://www.qsl.net/kb2scs From gambas.fr at ...626... Sat Nov 21 23:01:36 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 21 Nov 2009 23:01:36 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <4B081558.5010301@...1909...> References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> <200911211410.57134.gambas@...1...> <6324a42a0911210647o204cdc01ua0470a903166af82@...627...> <4B081558.5010301@...1909...> Message-ID: <6324a42a0911211401i47d91fbald523f4457ba6ba74@...627...> but in this case it will work Object.lock(checkbox) Checkbox.value=true Object.Unlock(checkbox) so then the events are fired ... it is just blocked during the variable setting 2009/11/21 Doriano Blengino : > Fabien Bodard ha scritto: >> Le 21 novembre 2009 14:10, Beno?t Minisini >> a ?crit : >> >>>> bbb888 ha scritto: >>>> >>>>> Benoit, >>>>> >>>>> Why oh why should setting checkbox value in code generate a click event? >>>>> >>>>> bruce >>>>> >>>> I join. >>>> I think that events should be fired by user, never by code. >>>> >>>> Regards, >>>> >>>> >>> Why should we make a difference between the user and the code? Most of the >>> time it is useless, so when you need that, just block events explicitely. >>> >> >> >> Object.Lock >> Object.UnLock >> > These methods locks even the useful events too. I wrote a file manager > having this issue. In a treeview, if you click on an item, a fileview > gets filled with filenames. If you doubleclick on a item in a treeview, > the treeview branch expands. By using Object.Lock() (I don't remember > why I used it, but the original DirTreeView uses it as well), a double > click is lost by the time the first click is fired to fill the fileview. > I should use a boolean variable instead of lock()/unlock(). But this > reminds to me the microsoft way: at first they do the bad thing, and > then they do another thing to circumvent the first, instead of > correcting it. Here the bad thing is to fire event from code, and then > prohibit them from code again. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1946... Sat Nov 21 23:09:59 2009 From: rterry at ...1946... (richard terry) Date: Sun, 22 Nov 2009 09:09:59 +1100 Subject: [Gambas-user] Menu editor - not a bug but annoying Message-ID: <200911220909.59805.rterry@...1946...> Hi benoit, Just a comment re menu-editor which when doing large menu's I find annoying. The default action for the return/enter key in the textboxes is to trigger the OK button in the menu editor, so if one hits enter and not tab to get to the next box > hasty exit from the menu editor. Not that important but maybe could be put in the todo basket. Regards Richard From rterry at ...1946... Sat Nov 21 23:59:37 2009 From: rterry at ...1946... (richard terry) Date: Sun, 22 Nov 2009 09:59:37 +1100 Subject: [Gambas-user] Wizard source code Message-ID: <200911220959.37669.rterry@...1946...> Hi List, I wondered if the wizard was a gambas component or qt, if gambas is it possible to access the source code? Regards Richard From joshiggins at ...1601... Sun Nov 22 01:23:10 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 22 Nov 2009 00:23:10 +0000 Subject: [Gambas-user] file.save saves in DOS format Message-ID: <4247f5440911211623i57772595u18e05e63e580dbe5@...627...> I'm using a File.Save to write the /etc/exports file, but its not reading it. Opening it with nano says its "converted from DOS format". How do I write to a text file in linux format? -- joshua higgins >>>>>>------ From shordi at ...626... Sun Nov 22 03:30:42 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Sun, 22 Nov 2009 03:30:42 +0100 Subject: [Gambas-user] file.save saves in DOS format In-Reply-To: <4247f5440911211623i57772595u18e05e63e580dbe5@...627...> References: <4247f5440911211623i57772595u18e05e63e580dbe5@...627...> Message-ID: Joshue: The difference between Dos an Unix format is de end of line. In Dos format are two characters , ascii 13 and ascii 10, and in Unix (linux) format is only one, ascii 10. Review your file about that end of lines. Regards 2009/11/22 Joshua Higgins > I'm using a File.Save to write the /etc/exports file, but its not reading > it. Opening it with nano says its "converted from DOS format". How do I > write to a text file in linux format? > > -- > joshua higgins > >>>>>>------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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 Nov 22 08:00:53 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 18:00:53 +1100 Subject: [Gambas-user] Licensing problems in Gambas References: <200911191309.52169.gambas@...1...> Message-ID: Beno?t Minisini wrote: > Hi, > > There are two licensing problems in Gambas that must be solved. > > 1) The first one should not be difficult: we must find a license for > the gambas wiki documentation that makes it free. I need > suggestions... Claim the documentation copyright for yourself then use the GNU FDL. > 2) The bad problem: gb.db.firebird uses two sources files from > www.ibpp.org whose license (the Borland Interbase Public License) is > not compatible with the GPL. This point was raised by Kelly Hopkins, > the maintainer of the gnu.org free software directory. I'm afraid > Gambas will have to lose firebird support, but maybe we should ask > www.ibpp.org about that. I need help there too! You won't know until you ask, hey. > Thanks in advance for your comments. > > Regards, From nospam.nospam.nospam at ...626... Sun Nov 22 08:15:37 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 18:15:37 +1100 Subject: [Gambas-user] Setting a checkbox value References: <26455936.post@...1379...> Message-ID: bbb888 wrote: > Benoit, > > Why oh why should setting checkbox value in code generate a click > event? Because setting a checkbox value in code is a pseudo-click. How would you feel if it didn't genrate a click but you wanted it to? Set a flag before setting the checkbox then check the flag in the event code. The behaviour is normal and expected in a GUI. From nospam.nospam.nospam at ...626... Sun Nov 22 08:18:41 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 18:18:41 +1100 Subject: [Gambas-user] DataCombo, key_press References: <94a144920911180852q5d618b1bjfd53a0219f62f3f5@...627...> <26421293.post@...1379...> Message-ID: <9B8728116DC748A8895170AD660DD077@...2330...> bbb888 wrote: > > > Try setting .type as the last assignment, don't know, works for me in > postgresql. It seems that as soon as you give it a type and host and > user postgresql makes a connect. Anyway, as I said, dont know works > for me. Perhaps it does work for you. Perhaps the poster isn't using PostgreSQL. Perhaps the poster doesn't even know or care what PostgreSQL is. Perhaps the problem is to do with the user's understanding of the DataCombo and nothing to do with the underlying database. Perhaps there is a Santa Claus... From nospam.nospam.nospam at ...626... Sun Nov 22 08:22:53 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 18:22:53 +1100 Subject: [Gambas-user] Setting a checkbox value References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> Message-ID: Doriano Blengino wrote: > bbb888 ha scritto: >> Benoit, >> >> Why oh why should setting checkbox value in code generate a click >> event? >> >> bruce >> > I join. > I think that events should be fired by user, never by code. You'd be saying exactly the opposite if gambas was badly designed and didn't generate the event on a coded change when you needed it to. You would have no way in hell of easily detecting it, not ever. Besides that, firing events for code-set attributes is normal practice in a GUI. All you need do is set a flag and test it in the event code. From nospam.nospam.nospam at ...626... Sun Nov 22 08:28:01 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 18:28:01 +1100 Subject: [Gambas-user] Either I am blind or... Message-ID: ...menus don't support drag. Please tell me I am blind. From bbruen at ...2308... Sun Nov 22 08:46:05 2009 From: bbruen at ...2308... (bbb888) Date: Sat, 21 Nov 2009 23:46:05 -0800 (PST) Subject: [Gambas-user] DataCombo, key_press In-Reply-To: <9B8728116DC748A8895170AD660DD077@...2330...> References: <94a144920911180852q5d618b1bjfd53a0219f62f3f5@...627...> <26421293.post@...1379...> <9B8728116DC748A8895170AD660DD077@...2330...> Message-ID: <26463358.post@...1379...> Amended. Thank you for so gently pointing out my error. b nospam.nospam.nospam wrote: > > bbb888 wrote: >> >> >> Try setting .type as the last assignment, don't know, works for me in >> postgresql. It seems that as soon as you give it a type and host and >> user postgresql makes a connect. Anyway, as I said, dont know works >> for me. > > Perhaps it does work for you. Perhaps the poster isn't using PostgreSQL. > Perhaps the poster doesn't even know or care what PostgreSQL is. Perhaps > the > problem is to do with the user's understanding of the DataCombo and > nothing > to do with the underlying database. Perhaps there is a Santa Claus... > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/DataCombo%2C-key_press-tp26411440p26463358.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Sun Nov 22 09:07:55 2009 From: bbruen at ...2308... (bbb888) Date: Sun, 22 Nov 2009 00:07:55 -0800 (PST) Subject: [Gambas-user] Setting a checkbox value In-Reply-To: References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> Message-ID: <26463423.post@...1379...> nospam.nospam.nospam wrote: > > > You'd be saying exactly the opposite if gambas was badly designed and > didn't > generate the event on a coded change when you needed it to. You would have > no way in hell of easily detecting it, not ever. Besides that, firing > events > for code-set attributes is normal practice in a GUI. All you need do is > set > a flag and test it in the event code. > > Using that theory one should expect that changing a forms Title should fire the Activate event or changing a textbox's content should fire the Change event. I think not. What I do in code in entirely my responsibility. IMHO that includes raising events when I desire, not killing off events when I don't desire them. I found your reply of no value and would ask that you please ignore any post from myself in the future. tia bruce -- View this message in context: http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26463423.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Sun Nov 22 09:56:10 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 19:56:10 +1100 Subject: [Gambas-user] Setting a checkbox value References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> <26463423.post@...1379...> Message-ID: bbb888 wrote: > nospam.nospam.nospam wrote: >> >> >> You'd be saying exactly the opposite if gambas was badly designed and >> didn't >> generate the event on a coded change when you needed it to. You >> would have no way in hell of easily detecting it, not ever. Besides >> that, firing events >> for code-set attributes is normal practice in a GUI. All you need do >> is set >> a flag and test it in the event code. >> >> > > Using that theory one should expect that changing a forms Title > should fire the Activate event or changing a textbox's content should > fire the Change event. I think not. > > What I do in code in entirely my responsibility. IMHO that includes > raising events when I desire, not killing off events when I don't > desire them. Welcome to GUI programming. > I found your reply of no value and would ask that you please ignore > any post from myself in the future. I don't feel that way about your posts, only about you. > tia > bruce From robert1juhasz at ...626... Sun Nov 22 10:03:48 2009 From: robert1juhasz at ...626... (yuhej) Date: Sun, 22 Nov 2009 01:03:48 -0800 (PST) Subject: [Gambas-user] Split Message-ID: <26463657.post@...1379...> Hello, The Split function baheves strange for me. I receive data fon an equipment throu RS232 and I need to extract the information from a string. The data groups are separated by 4 chr(10) character (originally it was 2 CrLf but when reading in Gambas it became 4 chr(10) - this is also strange). So I take the string and I use Split(myString, chr(10) & chr(10) & chr(10) & chr(10)). The result is the same what as I use Split(myString, chr(10)), so the first character only: 0. item is one data 1,2,3. item empty 4. item data 5, 6, 7. empty etc. To solve the problem I used Replace function to replace the 4 chr(10) with only one character and the Split function on the redefined string - so finally my code works. Please let me know if this is a bug, a normal behaviour or I have made a mistake when using the Split function. Regards, Robi -- View this message in context: http://old.nabble.com/Split-tp26463657p26463657.html Sent from the gambas-user mailing list archive at Nabble.com. From Karl.Reinl at ...9... Sun Nov 22 10:42:43 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 22 Nov 2009 10:42:43 +0100 Subject: [Gambas-user] Wizard source code In-Reply-To: <200911220959.37669.rterry@...1946...> References: <200911220959.37669.rterry@...1946...> Message-ID: <1258882963.6419.3.camel@...40...> Am Sonntag, den 22.11.2009, 09:59 +1100 schrieb richard terry: > Hi List, > > I wondered if the wizard was a gambas component or qt, if gambas is it > possible to access the source code? > > Regards > > Richard > Salut Richard, if you have the package from http://gambas.sourceforge.net/ or by svn then you will find it here: /app/src/ or for components /comp/src/ You find a wizard /comp/src/gb.form -- Amicalement Charlie From Karl.Reinl at ...9... Sun Nov 22 11:10:40 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 22 Nov 2009 11:10:40 +0100 Subject: [Gambas-user] Split In-Reply-To: <26463657.post@...1379...> References: <26463657.post@...1379...> Message-ID: <1258884640.6419.10.camel@...40...> Am Sonntag, den 22.11.2009, 01:03 -0800 schrieb yuhej: > Hello, > > The Split function baheves strange for me. > I receive data fon an equipment throu RS232 and I need to extract the > information from a string. > > The data groups are separated by 4 chr(10) character (originally it was 2 > CrLf but when reading in Gambas it became 4 chr(10) - this is also strange). > > So I take the string and I use Split(myString, chr(10) & chr(10) & chr(10) & > chr(10)). > The result is the same what as I use Split(myString, chr(10)), so the first > character only: > 0. item is one data > 1,2,3. item empty > 4. item data > 5, 6, 7. empty > etc. > > To solve the problem I used Replace function to replace the 4 chr(10) with > only one character and the Split function on the redefined string - so > finally my code works. > > Please let me know if this is a bug, a normal behaviour or I have made a > mistake when using the Split function. > > Regards, Robi Salut Robi, file:///usr/local/share/gambas2/help/help/lang/split.html says : Split ( String AS String [ , Separators AS String , Escape AS String , IgnoreVoids AS Boolean ] ) hope that gambas3 does also. I think your received data are ending sometimes with a ',' so Split entered an empty Item. -- Amicalement Charlie From nospam.nospam.nospam at ...626... Sun Nov 22 11:11:48 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 21:11:48 +1100 Subject: [Gambas-user] SetFocus on DataBrowser Message-ID: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...> Okie dokey, this one is giving me so much heartburn that even rude suggestions are welcome. There is a form with a tab control (tsMain) that has a number of tabs. There is code in tsMain_Click that sets the focus to the default control on the tab that was selected. If the default control is, say, a ComboBox, the ComboBox will immediately accept keystrokes such as up and down arrow, which is correct. If the default control is a DataBrowser, the DataBrowser will not accept keystrokes. It must be clicked before it will accept keystrokes. How do I get the the DataBrowser to accept keystrokes so that user does not have to click the control first? An example replicating the behaviour is attached. The database will need to be copied into /tmp/. -------------- next part -------------- A non-text attachment was scrubbed... Name: FocusTrouble.tar.gz Type: application/x-gzip Size: 9937 bytes Desc: not available URL: From arosa at ...2015... Sun Nov 22 11:24:09 2009 From: arosa at ...2015... (Toni) Date: Sun, 22 Nov 2009 11:24:09 +0100 Subject: [Gambas-user] SetFocus on DataBrowser In-Reply-To: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...> References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...> Message-ID: <4B091149.9050502@...2015...> Hi there, I think it's got to do with the order that events fire... In any case, if you use the event "GotFocus" of the TabStrip, it should work as you expect. Regards, Toni En/na nospam.nospam.nospam at ...626... ha escrit: > Okie dokey, this one is giving me so much heartburn that even rude > suggestions are welcome. > > There is a form with a tab control (tsMain) that has a number of tabs. > > There is code in tsMain_Click that sets the focus to the default > control on the tab that was selected. > > If the default control is, say, a ComboBox, the ComboBox will > immediately accept keystrokes such as up and down arrow, which is > correct. > > If the default control is a DataBrowser, the DataBrowser will not > accept keystrokes. It must be clicked before it will accept keystrokes. > > How do I get the the DataBrowser to accept keystrokes so that user > does not have to click the control first? > > An example replicating the behaviour is attached. The database will > need to be copied into /tmp/. > > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Sun Nov 22 11:26:29 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 22 Nov 2009 11:26:29 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> Message-ID: <4B0911D5.1040205@...1909...> nospam.nospam.nospam at ...626... ha scritto: > Doriano Blengino wrote: > >> bbb888 ha scritto: >> >>> Benoit, >>> >>> Why oh why should setting checkbox value in code generate a click >>> event? >>> >>> >> I join. >> I think that events should be fired by user, never by code. >> > > You'd be saying exactly the opposite if gambas was badly designed and didn't > generate the event on a coded change when you needed it to. You would have > no way in hell of easily detecting it, not ever. Besides that, firing events > for code-set attributes is normal practice in a GUI. All you need do is set > a flag and test it in the event code. > No. How can you say I would say the opposite? Are you a magician? Probably you think I am counter-gambas in every situation, but this is not true. Anyway, who cares. I give you permission of thinking and saying whatever you want about me. Your words will speak for yourself. Automatic firing of events could be a matter of taste - ok. Without it, you can set a property and, if you want, call the relevant event handler. With automatic firing, you must declare a global variable, set it before setting the property, reset it just after, and modify the event handler to check for the global variable. Again, the microsoft way: to complicate simple things. To Fabien, which wrote: > but in this case it will work > > Object.lock(checkbox) > Checkbox.value=true > Object.Unlock(checkbox) > > so then the events are fired ... it is just blocked during the variable setting > You say so, and you are 99% right, because "Checkbox.value" is a single and fast instruction. But I still think that there is a probability of 1% that the user clicks on the checkbox exactly in that moment, and user clicks should never be ignored. This 1% raises to 100% in my filemanager. I would like to know an explanation from Benoit: why, at a certain point of gambas developing, he needed to invent an object.lock() and object.unlock()? I think because GTK and probably QT do this stupid thing of automatically firing events. If you want to prevent the user to click a button, for example, you disable it - the botton goes gray and the user is notified of that. I don't see a reason to have lock and unlock, apart from that quirk of GTK and QT. In Delphi under windows there is a mix of things. Some widgets (checkboxes for example) raise an event when modified by code. Others (trackbars, for example) do not. My thought about this is a mix of things too: I do respect Borland and I hate microsoft, so I can not know where this inconsistency rises up - probably from win32, and Borland simply reflected it. But I am sure that, using trackbars which don't raise events, if I need them I add a "tbSpeed.Change(NIL)": 6 keystrokes and no worries. With checkboxes and perhaps others, if I don't want automatic events, I have to modify the code in at least three points, and this is frustrating. Regards (especially to Nospam -:), -- 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 Nov 22 12:06:36 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 22:06:36 +1100 Subject: [Gambas-user] SetFocus on DataBrowser References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...> <4B091149.9050502@...2015...> Message-ID: <05A044CAA25A4BAF91642201348612C0@...2330...> Toni wrote: > Hi there, > > I think it's got to do with the order that events fire... In any case, > if you use the event "GotFocus" of the TabStrip, it should work as you > expect. Ok, that's far better than it was, many, many thanks. However after moving the code into GotFocus the first row of the DataBrowser is never highlighted. When the down arrow is pressed first on entering the tab, the second row is highlighted, even though the first was not highlighted. When the up arrow is pressed first on entering the tab, the first row highlights. I see no methods available that will allow me to force the first row to highlight :( I tried moving rows and refreshing the datasource. I still can't get that first row to highlight. I could send fake keyboard events to fix it but that's hardly kosher. From Karl.Reinl at ...9... Sun Nov 22 12:53:49 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 22 Nov 2009 12:53:49 +0100 Subject: [Gambas-user] SetFocus on DataBrowser In-Reply-To: <05A044CAA25A4BAF91642201348612C0@...2330...> References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...> <4B091149.9050502@...2015...> <05A044CAA25A4BAF91642201348612C0@...2330...> Message-ID: <1258890829.6419.13.camel@...40...> Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb nospam.nospam.nospam at ...626...: > Toni wrote: > > Hi there, > > > > I think it's got to do with the order that events fire... In any case, > > if you use the event "GotFocus" of the TabStrip, it should work as you > > expect. > > Ok, that's far better than it was, many, many thanks. However after moving > the code into GotFocus the first row of the DataBrowser is never > highlighted. When the down arrow is pressed first on entering the tab, the > second row is highlighted, even though the first was not highlighted. When > the up arrow is pressed first on entering the tab, the first row highlights. > > > > I see no methods available that will allow me to force the first row to > highlight :( > > I tried moving rows and refreshing the datasource. I still can't get that > first row to highlight. > > I could send fake keyboard events to fix it but that's hardly kosher. Salut, in you example give DataBrowser1.GridView.Rows[0].Selected = TRUE a chance but inot in GotFocus, that raise when start the form. SET it in Tab_Click. -- Amicalement Charlie From nospam.nospam.nospam at ...626... Sun Nov 22 13:05:19 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 23:05:19 +1100 Subject: [Gambas-user] SetFocus on DataBrowser References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...><4B091149.9050502@...2015...> <05A044CAA25A4BAF91642201348612C0@...2330...> <1258890829.6419.13.camel@...40...> Message-ID: Charlie Reinl wrote: > Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb > nospam.nospam.nospam at ...626...: >> Toni wrote: >>> Hi there, >>> >>> I think it's got to do with the order that events fire... In any >>> case, if you use the event "GotFocus" of the TabStrip, it should >>> work as you expect. >> >> Ok, that's far better than it was, many, many thanks. However after >> moving the code into GotFocus the first row of the DataBrowser is >> never highlighted. When the down arrow is pressed first on entering >> the tab, the second row is highlighted, even though the first was >> not highlighted. When the up arrow is pressed first on entering the >> tab, the first row highlights. >> >> >> >> I see no methods available that will allow me to force the first row >> to highlight :( >> >> I tried moving rows and refreshing the datasource. I still can't get >> that first row to highlight. >> >> I could send fake keyboard events to fix it but that's hardly kosher. > > Salut, > > in you example give DataBrowser1.GridView.Rows[0].Selected = TRUE > a chance but inot in GotFocus, that raise when start the form. > SET it in Tab_Click. Well, that highlighted the first row all right, but now the DataBrowser will not accept keystrokes unless I click first, which is the same problem I had originally except that the the first row is now highlighted. From joshiggins at ...1601... Sun Nov 22 13:10:36 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 22 Nov 2009 12:10:36 +0000 Subject: [Gambas-user] file.save saves in DOS format In-Reply-To: References: <4247f5440911211623i57772595u18e05e63e580dbe5@...627...> Message-ID: <4247f5440911220410s6956c617y242cdd2c1c1ea700@...627...> Thanks for the info. My program generates the /etc/exports file from a list of IP addresses and allowed shares. For some reason, when I'm using File.Save to save the contents of a TextArea to /etc/exports, it is putting the two end of line characters like the DOS format, instead of one, so the NFS server cannot read the configuration file. -- joshua higgins >>>>>>------ From nospam.nospam.nospam at ...626... Sun Nov 22 13:25:23 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Sun, 22 Nov 2009 23:25:23 +1100 Subject: [Gambas-user] file.save saves in DOS format References: <4247f5440911211623i57772595u18e05e63e580dbe5@...627...> <4247f5440911220410s6956c617y242cdd2c1c1ea700@...627...> Message-ID: <4BF24741D8AD41F7B63BD30EB6EBABFE@...2330...> Joshua Higgins wrote: > Thanks for the info. My program generates the /etc/exports file from > a list of IP addresses and allowed shares. For some reason, when I'm > using File.Save to save the contents of a TextArea to /etc/exports, > it is putting the two end of line characters like the DOS format, > instead of one, so the NFS server cannot read the configuration file. So just Replace(TextArea1.Text, "\r\n", "\n") From Karl.Reinl at ...9... Sun Nov 22 13:41:39 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sun, 22 Nov 2009 13:41:39 +0100 Subject: [Gambas-user] SetFocus on DataBrowser In-Reply-To: References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...> <4B091149.9050502@...2015...> <05A044CAA25A4BAF91642201348612C0@...2330...> <1258890829.6419.13.camel@...40...> Message-ID: <1258893699.10105.4.camel@...40...> Am Sonntag, den 22.11.2009, 23:05 +1100 schrieb nospam.nospam.nospam at ...626...: > Charlie Reinl wrote: > > Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb > > nospam.nospam.nospam at ...626...: > >> Toni wrote: > >>> Hi there, > >>> > >>> I think it's got to do with the order that events fire... In any > >>> case, if you use the event "GotFocus" of the TabStrip, it should > >>> work as you expect. > >> > >> Ok, that's far better than it was, many, many thanks. However after > >> moving the code into GotFocus the first row of the DataBrowser is > >> never highlighted. When the down arrow is pressed first on entering > >> the tab, the second row is highlighted, even though the first was > >> not highlighted. When the up arrow is pressed first on entering the > >> tab, the first row highlights. > >> > >> > >> > >> I see no methods available that will allow me to force the first row > >> to highlight :( > >> > >> I tried moving rows and refreshing the datasource. I still can't get > >> that first row to highlight. > >> > >> I could send fake keyboard events to fix it but that's hardly kosher. > > > > Salut, > > > > in you example give DataBrowser1.GridView.Rows[0].Selected = TRUE > > a chance but inot in GotFocus, that raise when start the form. > > SET it in Tab_Click. > > Well, that highlighted the first row all right, but now the DataBrowser will > not accept keystrokes unless I click first, which is the same problem I had > originally except that the the first row is now highlighted. Salut yes highlighted is not having the focus, so add just DataBrowser1.GridView.SetFocus that should do it. -- Amicalement Charlie From gambas at ...1... Sun Nov 22 15:17:13 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 Nov 2009 15:17:13 +0100 Subject: [Gambas-user] SetFocus on DataBrowser In-Reply-To: <05A044CAA25A4BAF91642201348612C0@...2330...> References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...> <4B091149.9050502@...2015...> <05A044CAA25A4BAF91642201348612C0@...2330...> Message-ID: <200911221517.13246.gambas@...1...> > Toni wrote: > > Hi there, > > > > I think it's got to do with the order that events fire... In any case, > > if you use the event "GotFocus" of the TabStrip, it should work as you > > expect. > > Ok, that's far better than it was, many, many thanks. However after moving > the code into GotFocus the first row of the DataBrowser is never > highlighted. Yes, this is a known bug I never fixed... -- Beno?t Minisini From gambas at ...1... Sun Nov 22 15:18:28 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 Nov 2009 15:18:28 +0100 Subject: [Gambas-user] Either I am blind or... In-Reply-To: References: Message-ID: <200911221518.28689.gambas@...1...> > ...menus don't support drag. > > Please tell me I am blind. > They don't, no toolkit supports drag & drop on menus natively. -- Beno?t Minisini From gambas at ...1... Sun Nov 22 15:26:17 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 Nov 2009 15:26:17 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <200911211410.57134.gambas@...1...> References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> <200911211410.57134.gambas@...1...> Message-ID: <200911221526.17309.gambas@...1...> > > bbb888 ha scritto: > > > Benoit, > > > > > > Why oh why should setting checkbox value in code generate a click > > > event? > > > > > > bruce > > > > I join. > > I think that events should be fired by user, never by code. > > > > Regards, > > Why should we make a difference between the user and the code? Most of the > time it is useless, so when you need that, just block events explicitely. > > Regards, > To give more details about my point of view... 1) You cannot know that an event comes "from the user" in every case. 2) This time, I agree with nospam x 3 :-). If events coming from the user do not raise events, how could you catch them when needed? After many years of GUI programming, I find my way the better one. 3) It is more consistent to always raise events, as do the underlying toolkits used by Gambas, than sometimes raising them, especially when you can't be sure that an event comes from the user or not. Regards, -- Beno?t Minisini From gambas at ...1... Sun Nov 22 15:30:15 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 Nov 2009 15:30:15 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <26463423.post@...1379...> References: <26455936.post@...1379...> <26463423.post@...1379...> Message-ID: <200911221530.15431.gambas@...1...> > nospam.nospam.nospam wrote: > > You'd be saying exactly the opposite if gambas was badly designed and > > didn't > > generate the event on a coded change when you needed it to. You would > > have no way in hell of easily detecting it, not ever. Besides that, > > firing events > > for code-set attributes is normal practice in a GUI. All you need do is > > set > > a flag and test it in the event code. > > Using that theory one should expect that changing a forms Title should fire > the Activate event or changing a textbox's content should fire the Change > event. I think not. > > What I do in code in entirely my responsibility. IMHO that includes > raising events when I desire, not killing off events when I don't desire > them. > No, because you break the control encapsulation then. Events are "owned" by the control, not by the code using it. Only him decideds when he raises its events. > I found your reply of no value and would ask that you please ignore any > post from myself in the future. nospam x 3 is always a bit rude. I told him that it is useless to do that on a mailing-list, but apparently he does not see why. Please don't enter the game of who has the biggest ones. :-) Or do that privately! Regards, -- Beno?t Minisini From doriano.blengino at ...1909... Sun Nov 22 16:42:37 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 22 Nov 2009 16:42:37 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <200911221526.17309.gambas@...1...> References: <26455936.post@...1379...> <4B07DD23.8010209@...1909...> <200911211410.57134.gambas@...1...> <200911221526.17309.gambas@...1...> Message-ID: <4B095BED.9060703@...1909...> Beno?t Minisini ha scritto: >>> bbb888 ha scritto: >>> >>>> Benoit, >>>> >>>> Why oh why should setting checkbox value in code generate a click >>>> event? >>>> >>>> bruce >>>> >>> I join. >>> I think that events should be fired by user, never by code. >>> >>> Regards, >>> >> Why should we make a difference between the user and the code? Most of the >> time it is useless, so when you need that, just block events explicitely. >> >> Regards, >> >> > > To give more details about my point of view... > > 1) You cannot know that an event comes "from the user" in every case. > Unless you know that events *always* come from user - I am speaking of "click", "change" and so on, not "data" event or "icon". > 2) This time, I agree with nospam x 3 :-). If events coming from the user do > not raise events, how could you catch them when needed? After many years of > GUI programming, I find my way the better one. > Events coming from the user *should always* raise events. > 3) It is more consistent to always raise events, as do the underlying toolkits > used by Gambas, than sometimes raising them, especially when you can't be sure > that an event comes from the user or not. > When needed: you don't raise an event - you call the event handler directly (which is different, and impossible in gambas). There is a subtle distinction between events, hooks and methods. A button lies on a form awaiting for an event (a user click). When the click arrives, the button executes a method which repaints it depressed, and calls a hook to let the main program do something useful. The confusion arrives when event, hook and method are not separated. Intercepting the event, we make the button insensitive, because it never sees a user clicked on it. Intercepting the hook we can launch our handler, to make our program do useful things. Lastly, we can call the button method to repaint it depressed. By having these three elements (event, hook and method) separated, we have all the control on the button - think that a button is a really simple gadget. It would be ok to have event-hook-method connected by default. If we want to simplify this scheme, forcibly we have to loose some functionality. Note that in other cases, such as the Data event or Icon event, they should not be events - they should be hooks. Events are asynchronous and queueable, while hooks are not. Characters arriving from a serial port are events (asynchronous) and, if the program does not handle them fast enough, they should be stacked or queued. In fact, serial ports always have a buffer. Icon event is not an event: who raises those events (treeview or fileview) can not stack them - it waits until the main program handles them (a hook). And, in fact, they do not have a buffer. Now, it is nice to simplify GUI programming by eliminating three things and have only one: most of the time it is ok; but this doesn't mean event and hooks are the same... Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Nov 22 16:59:36 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 Nov 2009 16:59:36 +0100 Subject: [Gambas-user] Setting a checkbox value In-Reply-To: <4B095BED.9060703@...1909...> References: <26455936.post@...1379...> <200911221526.17309.gambas@...1...> <4B095BED.9060703@...1909...> Message-ID: <200911221659.36805.gambas@...1...> > Beno?t Minisini ha scritto: > >>> bbb888 ha scritto: > >>>> Benoit, > >>>> > >>>> Why oh why should setting checkbox value in code generate a click > >>>> event? > >>>> > >>>> bruce > >>> > >>> I join. > >>> I think that events should be fired by user, never by code. > >>> > >>> Regards, > >> > >> Why should we make a difference between the user and the code? Most of > >> the time it is useless, so when you need that, just block events > >> explicitely. > >> > >> Regards, > > > > To give more details about my point of view... > > > > 1) You cannot know that an event comes "from the user" in every case. > > Unless you know that events *always* come from user - I am speaking of > "click", "change" and so on, not "data" event or "icon". It does not matter if *you* know that an event comes from the user. The toolkit just receives events from X-Window : it cannot know if this event comes directly from an input device (i.e. from the user) or if it is a consequence of running code previously. Of course, *some* events do not come from X-Window, but are internally managed by the toolkit. But no toolkit behave the same, and so you cannot be sure that a X-Window event comes "from the user", and so there is no way to know that for Gambas events too. > > > 2) This time, I agree with nospam x 3 :-). If events coming from the user > > do not raise events, how could you catch them when needed? After many > > years of GUI programming, I find my way the better one. > > Events coming from the user *should always* raise events. Sorry, I forgot a "not" before "coming". > > > 3) It is more consistent to always raise events, as do the underlying > > toolkits used by Gambas, than sometimes raising them, especially when you > > can't be sure that an event comes from the user or not. > > When needed: you don't raise an event - you call the event handler > directly (which is different, and impossible in gambas). > > There is a subtle distinction between events, hooks and methods. A > button lies on a form awaiting for an event (a user click). When the > click arrives, the button executes a method which repaints it depressed, > and calls a hook to let the main program do something useful. The > confusion arrives when event, hook and method are not separated. > Intercepting the event, we make the button insensitive, because it never > sees a user clicked on it. Intercepting the hook we can launch our > handler, to make our program do useful things. Lastly, we can call the > button method to repaint it depressed. By having these three elements > (event, hook and method) separated, we have all the control on the > button - think that a button is a really simple gadget. It would be ok > to have event-hook-method connected by default. If we want to simplify > this scheme, forcibly we have to loose some functionality. > > Note that in other cases, such as the Data event or Icon event, they > should not be events - they should be hooks. Events are asynchronous and > queueable, while hooks are not. Characters arriving from a serial port > are events (asynchronous) and, if the program does not handle them fast > enough, they should be stacked or queued. In fact, serial ports always > have a buffer. Icon event is not an event: who raises those events > (treeview or fileview) can not stack them - it waits until the main > program handles them (a hook). And, in fact, they do not have a buffer. > > Now, it is nice to simplify GUI programming by eliminating three things > and have only one: most of the time it is ok; but this doesn't mean > event and hooks are the same... I agree that I merged hooks and event handler in Gambas. For simplicity, and because Gambas events are not queued. Unless of course if the toolkit does that, but the interpreter has no control on that. And for delayed events, but this is an exception mainly used for having event sbehave the same in gb.qt and in gb.gtk. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sun Nov 22 21:23:13 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 23 Nov 2009 07:23:13 +1100 Subject: [Gambas-user] SetFocus on DataBrowser References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...><4B091149.9050502@...2015...> <05A044CAA25A4BAF91642201348612C0@...2330...><1258890829.6419.13.camel@...40...> <1258893699.10105.4.camel@...40...> Message-ID: <159F441DC60E4D999A7B30E93CDC94A5@...2330...> Charlie Reinl wrote: > Am Sonntag, den 22.11.2009, 23:05 +1100 schrieb > nospam.nospam.nospam at ...626...: >> Charlie Reinl wrote: >>> Am Sonntag, den 22.11.2009, 22:06 +1100 schrieb >>> nospam.nospam.nospam at ...626...: >>>> Toni wrote: >>>>> Hi there, >>>>> >>>>> I think it's got to do with the order that events fire... In any >>>>> case, if you use the event "GotFocus" of the TabStrip, it should >>>>> work as you expect. >>>> >>>> Ok, that's far better than it was, many, many thanks. However after >>>> moving the code into GotFocus the first row of the DataBrowser is >>>> never highlighted. When the down arrow is pressed first on entering >>>> the tab, the second row is highlighted, even though the first was >>>> not highlighted. When the up arrow is pressed first on entering the >>>> tab, the first row highlights. >>>> >>>> >>>> >>>> I see no methods available that will allow me to force the first >>>> row to highlight :( >>>> >>>> I tried moving rows and refreshing the datasource. I still can't >>>> get that first row to highlight. >>>> >>>> I could send fake keyboard events to fix it but that's hardly >>>> kosher. >>> >>> Salut, >>> >>> in you example give DataBrowser1.GridView.Rows[0].Selected = >>> TRUE a chance but inot in GotFocus, that raise when start the form. >>> SET it in Tab_Click. >> >> Well, that highlighted the first row all right, but now the >> DataBrowser will not accept keystrokes unless I click first, which >> is the same problem I had originally except that the the first row >> is now highlighted. > > Salut > > yes highlighted is not having the focus, so add just > DataBrowser1.GridView.SetFocus > that should do it. And do it, it did. Thank you very much. Appreciated. From nospam.nospam.nospam at ...626... Sun Nov 22 21:30:35 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 23 Nov 2009 07:30:35 +1100 Subject: [Gambas-user] Either I am blind or... References: <200911221518.28689.gambas@...1...> Message-ID: <7C83B0031B3E462EB96F634529408B7D@...2330...> Beno?t Minisini wrote: >> ...menus don't support drag. >> >> Please tell me I am blind. >> > > They don't, no toolkit supports drag & drop on menus natively. I'm looking to drag menu items off a menu, not drag them onto a menu. The gnome panel menus do it. Pity. I'm rewriting a Windows app that makes use of that feature. I'll have to think up an alternative. From nospam.nospam.nospam at ...626... Sun Nov 22 21:46:31 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 23 Nov 2009 07:46:31 +1100 Subject: [Gambas-user] SetFocus on DataBrowser References: <3760BBC8F86C4BF9BB855C5F0B154DC2@...2330...><4B091149.9050502@...2015...><05A044CAA25A4BAF91642201348612C0@...2330...> <200911221517.13246.gambas@...1...> Message-ID: Beno?t Minisini wrote: >> Toni wrote: >>> Hi there, >>> >>> I think it's got to do with the order that events fire... In any >>> case, if you use the event "GotFocus" of the TabStrip, it should >>> work as you expect. >> >> Ok, that's far better than it was, many, many thanks. However after >> moving the code into GotFocus the first row of the DataBrowser is >> never highlighted. > > Yes, this is a known bug I never fixed... NP. Charlie Reinl gave me a workaround. From gambas at ...1... Sun Nov 22 21:58:47 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 Nov 2009 21:58:47 +0100 Subject: [Gambas-user] Either I am blind or... In-Reply-To: <7C83B0031B3E462EB96F634529408B7D@...2330...> References: <200911221518.28689.gambas@...1...> <7C83B0031B3E462EB96F634529408B7D@...2330...> Message-ID: <200911222158.47660.gambas@...1...> > Beno?t Minisini wrote: > >> ...menus don't support drag. > >> > >> Please tell me I am blind. > > > > They don't, no toolkit supports drag & drop on menus natively. > > I'm looking to drag menu items off a menu, not drag them onto a menu. The > gnome panel menus do it. > > Pity. I'm rewriting a Windows app that makes use of that feature. I'll have > to think up an alternative. > I remember that in KDE3 this was a global UI option. I don't know if it exists in KDE4. I will add a property to the Menu class to enable the TearOff handle. I will tell you when it is done. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sun Nov 22 22:02:52 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 23 Nov 2009 08:02:52 +1100 Subject: [Gambas-user] Either I am blind or... References: <200911221518.28689.gambas@...1...><7C83B0031B3E462EB96F634529408B7D@...2330...> <200911222158.47660.gambas@...1...> Message-ID: <6883939F79A144C9BFED39326E68E409@...2330...> Beno?t Minisini wrote: >> Beno?t Minisini wrote: >>>> ...menus don't support drag. >>>> >>>> Please tell me I am blind. >>> >>> They don't, no toolkit supports drag & drop on menus natively. >> >> I'm looking to drag menu items off a menu, not drag them onto a >> menu. The gnome panel menus do it. >> >> Pity. I'm rewriting a Windows app that makes use of that feature. >> I'll have to think up an alternative. >> > > I remember that in KDE3 this was a global UI option. I don't know if > it exists in KDE4. > > I will add a property to the Menu class to enable the TearOff handle. > I will tell you when it is done. :) That would be great, thank you. > Regards, From gambas at ...1... Sun Nov 22 22:18:01 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 22 Nov 2009 22:18:01 +0100 Subject: [Gambas-user] Either I am blind or... In-Reply-To: <6883939F79A144C9BFED39326E68E409@...2330...> References: <200911222158.47660.gambas@...1...> <6883939F79A144C9BFED39326E68E409@...2330...> Message-ID: <200911222218.02032.gambas@...1...> > Beno?t Minisini wrote: > >> Beno?t Minisini wrote: > >>>> ...menus don't support drag. > >>>> > >>>> Please tell me I am blind. > >>> > >>> They don't, no toolkit supports drag & drop on menus natively. > >> > >> I'm looking to drag menu items off a menu, not drag them onto a > >> menu. The gnome panel menus do it. > >> > >> Pity. I'm rewriting a Windows app that makes use of that feature. > >> I'll have to think up an alternative. > > > > I remember that in KDE3 this was a global UI option. I don't know if > > it exists in KDE4. > > > > I will add a property to the Menu class to enable the TearOff handle. > > I will tell you when it is done. > > > :) > > That would be great, thank you. > Sorry, but I can't make it work correctly, both in gb.qt4 and gb.gtk. I will try again, but I'm afraid you will have to find a solution yourself... Regards, -- Beno?t Minisini From rterry at ...1946... Sun Nov 22 22:23:16 2009 From: rterry at ...1946... (richard terry) Date: Mon, 23 Nov 2009 08:23:16 +1100 Subject: [Gambas-user] Either I am blind or... In-Reply-To: <200911222158.47660.gambas@...1...> References: <7C83B0031B3E462EB96F634529408B7D@...2330...> <200911222158.47660.gambas@...1...> Message-ID: <200911230823.16052.rterry@...1946...> On Monday 23 November 2009 07:58:47 Beno?t Minisini wrote: > > Beno?t Minisini wrote: > > >> ...menus don't support drag. > > >> > > >> Please tell me I am blind. > > > > > > They don't, no toolkit supports drag & drop on menus natively. > > > > I'm looking to drag menu items off a menu, not drag them onto a menu. The > > gnome panel menus do it. > > > > Pity. I'm rewriting a Windows app that makes use of that feature. I'll > > have to think up an alternative. > > I remember that in KDE3 this was a global UI option. I don't know if it > exists in KDE4. > > I will add a property to the Menu class to enable the TearOff handle. I > will tell you when it is done. > > Regards, > Can you post to the list about this as I've a use for that as well. Richard From klaine8 at ...626... Mon Nov 23 04:50:24 2009 From: klaine8 at ...626... (Kari Laine) Date: Mon, 23 Nov 2009 05:50:24 +0200 Subject: [Gambas-user] Serial ports in Gambas Message-ID: <61452b690911221950j13e8d3fame86bc025e7b69866@...627...> Hi, after not being active with Gambas for some time now. I am thinking of making a program with it. I am learning products from http://www.byvac.com especially the BV513, which is PIC-based microcontroller programmed in basic. The sofware from Byvac is for Windows only. I tried with minicom but it sends something weird to BV513 so it does not work. So my need is to write a simple terminal program. For that I need serial port support - is there that in Gambas? I looked at the examples and could not find any example. What control should I use as central control where user types commands and results which are received from the device are printed? Sorry for these stupid questions. Best Regards Kari Laine From robert1juhasz at ...626... Mon Nov 23 06:22:10 2009 From: robert1juhasz at ...626... (Robert JUHASZ) Date: Mon, 23 Nov 2009 06:22:10 +0100 Subject: [Gambas-user] Serial ports in Gambas In-Reply-To: <61452b690911221950j13e8d3fame86bc025e7b69866@...627...> References: <61452b690911221950j13e8d3fame86bc025e7b69866@...627...> Message-ID: <68652a0b0911222122k45bb1418mf7bdc44d0f962c0f@...627...> Hello, In the examples you find one for the serial port: Open Example \ Networking \ SerialPort. It shows the basics. You can send commands from your code (by taking them for example from a textbox filled by the user) with PRINT or WRITE, you can read from the serial port with READ. Regards, Robi 2009/11/23 Kari Laine > Hi, > > after not being active with Gambas for some time now. I am thinking of > making a program with it. > > I am learning products from http://www.byvac.com especially the BV513, > which is PIC-based microcontroller programmed in basic. > > The sofware from Byvac is for Windows only. I tried with minicom but > it sends something weird to BV513 so it does not work. So my need is > to write a simple terminal program. For that I need serial port > support - is there that in Gambas? I looked at the examples and could > not find any example. > > What control should I use as central control where user types commands > and results which are received from the device are printed? > > Sorry for these stupid questions. > > Best Regards > Kari Laine > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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 Nov 23 07:59:14 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 23 Nov 2009 17:59:14 +1100 Subject: [Gambas-user] Either I am blind or... References: <200911222158.47660.gambas@...1...><6883939F79A144C9BFED39326E68E409@...2330...> <200911222218.02032.gambas@...1...> Message-ID: Beno?t Minisini wrote: >> Beno?t Minisini wrote: >>>> Beno?t Minisini wrote: >>>>>> ...menus don't support drag. >>>>>> >>>>>> Please tell me I am blind. >>>>> >>>>> They don't, no toolkit supports drag & drop on menus natively. >>>> >>>> I'm looking to drag menu items off a menu, not drag them onto a >>>> menu. The gnome panel menus do it. >>>> >>>> Pity. I'm rewriting a Windows app that makes use of that feature. >>>> I'll have to think up an alternative. >>> >>> I remember that in KDE3 this was a global UI option. I don't know if >>> it exists in KDE4. >>> >>> I will add a property to the Menu class to enable the TearOff >>> handle. I will tell you when it is done. >>> >> :) >> >> That would be great, thank you. >> > > Sorry, but I can't make it work correctly, both in gb.qt4 and gb.gtk. > > I will try again, but I'm afraid you will have to find a solution > yourself... That's ok. I'll devise some kind of UI for it. From nospam.nospam.nospam at ...626... Mon Nov 23 08:27:04 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Mon, 23 Nov 2009 18:27:04 +1100 Subject: [Gambas-user] [SOLVED] Socket Horror! Message-ID: Some of you will know that I've had truckloads of socket horror with a proxy server I've written in gambas. Well I had more socket horror just now. Everything was working fine last night but not when I booted up this afternoon. The server socket starts and listens. The server socket detects an incoming client connection. The server socket is established and ready. A connection to a remote server is established. After some time, the client gets no response so the client closes the connection. The client reconnects. The server socket starts and listens... And round and round it went. Socket_Read() never fired, and I know nothing changed because I was using the proxy for several hours in runtime mode and it was running flawlessly, then I went to bed without ever touching the source code. It turns out that the remote server IP address had changed. It now makes sense that Socket_Read() never fired because the client application must wait for the server to respond, which is the correct behaviour specified by a certain RFC, but since the server was no longer on the same IP address there was no response; the server wasn't there, it was on some other IP address. I checked the server and it was on a very short lease, which explains why it appeared to work and not work at no particular time. At one point everything started working when I set a single property in the client socket. I now believe that the two events (me setting the property, and the proxy starting to work) were independent and mere coincidence was what caused it to work, i.e. the server acquired a new lease and, it just so happens, it got the same IP address that we expected it to have. I have now given the server a permanent IP. So there you have it. You now know how it is that a remote server not being on the IP address that you expect it to be on can cause the client Socket_Read() to never fire. Thanks to all those who offered commonsense suggestions. I could have sorted this problem much quicker if I had bothered to check the Status property of the socket that connects to the remote server. But hey, it's not even in alpha stage yet :) From gambas at ...1... Mon Nov 23 11:53:19 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 Nov 2009 11:53:19 +0100 Subject: [Gambas-user] Either I am blind or... In-Reply-To: References: <200911222218.02032.gambas@...1...> Message-ID: <200911231153.19992.gambas@...1...> > Beno?t Minisini wrote: > >> Beno?t Minisini wrote: > >>>> Beno?t Minisini wrote: > >>>>>> ...menus don't support drag. > >>>>>> > >>>>>> Please tell me I am blind. > >>>>> > >>>>> They don't, no toolkit supports drag & drop on menus natively. > >>>> > >>>> I'm looking to drag menu items off a menu, not drag them onto a > >>>> menu. The gnome panel menus do it. > >>>> > >>>> Pity. I'm rewriting a Windows app that makes use of that feature. > >>>> I'll have to think up an alternative. > >>> > >>> I remember that in KDE3 this was a global UI option. I don't know if > >>> it exists in KDE4. > >>> > >>> I will add a property to the Menu class to enable the TearOff > >>> handle. I will tell you when it is done. > >>> > >> :) > >> > >> That would be great, thank you. > > > > Sorry, but I can't make it work correctly, both in gb.qt4 and gb.gtk. > > > > I will try again, but I'm afraid you will have to find a solution > > yourself... > > That's ok. I'll devise some kind of UI for it. > The problems are the following: - In GTK+, you can tell a menu to go in its own window, but you have to implement the tear-off handle and management yourself apparently. I don't have time to do that! - In Qt4, you officially have support for tear-off menus, but when you activate it, it behaves strangely. Apparently, it's buggy. Regards, -- Beno?t Minisini From matteo.lisi at ...2324... Mon Nov 23 16:57:29 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Mon, 23 Nov 2009 16:57:29 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <200911231153.19992.gambas@...1...> References: <200911222218.02032.gambas@...1...> <200911231153.19992.gambas@...1...> Message-ID: <4B0AB0E9.6050708@...2324...> Hi ! I tried to build gambas for ARM, but the Make the procedure give me this error: make[4]: Entering directory `/home/user/gambas2-2.18.0/main/gbc' /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl gbi2-gbi.o: In function `analyze_native_component': /home/user/gambas2-2.18.0/main/gbc/gbi.c:360: undefined reference to `lt_dlopenext' /home/user/gambas2-2.18.0/main/gbc/gbi.c:363: undefined reference to `lt_dlerror' /home/user/gambas2-2.18.0/main/gbc/gbi.c:367: undefined reference to `lt_dlsym' /home/user/gambas2-2.18.0/main/gbc/gbi.c:375: undefined reference to `lt_dlsym' gbi2-gbi.o: In function `init': /home/user/gambas2-2.18.0/main/gbc/gbi.c:160: undefined reference to `lt_dlinit' /home/user/gambas2-2.18.0/main/gbc/gbi.c:161: undefined reference to `lt_dlerror' collect2: ld returned 1 exit status make[4]: *** [gbi2] Error 1 make[4]: Leaving directory `/home/user/gambas2-2.18.0/main/gbc' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/gambas2-2.18.0/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/gambas2-2.18.0/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/gambas2-2.18.0' make: *** [all] Error 2 How I can solve ? Thanks From gambas at ...1... Mon Nov 23 17:02:03 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 Nov 2009 17:02:03 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <4B0AB0E9.6050708@...2324...> References: <200911231153.19992.gambas@...1...> <4B0AB0E9.6050708@...2324...> Message-ID: <200911231702.03967.gambas@...1...> > Hi ! > > I tried to build gambas for ARM, but the Make the procedure give me > this error: > > make[4]: Entering directory `/home/user/gambas2-2.18.0/main/gbc' > /bin/sh ../libtool --tag=CC --mode=link gcc > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o > gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o > gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl > libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall > -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os > -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o > gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o > gbi2-gbi.o -ldl > gbi2-gbi.o: In function `analyze_native_component': > /home/user/gambas2-2.18.0/main/gbc/gbi.c:360: undefined reference to > `lt_dlopenext' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:363: undefined reference to > `lt_dlerror' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:367: undefined reference to > `lt_dlsym' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:375: undefined reference to > `lt_dlsym' > gbi2-gbi.o: In function `init': > /home/user/gambas2-2.18.0/main/gbc/gbi.c:160: undefined reference to > `lt_dlinit' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:161: undefined reference to > `lt_dlerror' > collect2: ld returned 1 exit status > make[4]: *** [gbi2] Error 1 > make[4]: Leaving directory `/home/user/gambas2-2.18.0/main/gbc' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/user/gambas2-2.18.0/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/user/gambas2-2.18.0/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/user/gambas2-2.18.0' > make: *** [all] Error 2 > > > How I can solve ? > > Thanks > Please provide the full output of ./configure and make. I have no ARM there, so I need as many informations as possible to help you. Regards, -- Beno?t Minisini From matteo.lisi at ...2324... Mon Nov 23 17:26:20 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Mon, 23 Nov 2009 17:26:20 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <200911231702.03967.gambas@...1...> References: <200911231153.19992.gambas@...1...> <4B0AB0E9.6050708@...2324...> <200911231702.03967.gambas@...1...> Message-ID: <4B0AB7AC.4050304@...2324...> Thanks for your quickly response.... attached to this email the output of ./configure and make Regards Beno?t Minisini ha scritto: Hi ! I tried to build gambas for ARM, but the Make the procedure give me this error: make[4]: Entering directory `/home/user/gambas2-2.18.0/main/gbc' /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl gbi2-gbi.o: In function `analyze_native_component': /home/user/gambas2-2.18.0/main/gbc/gbi.c:360: undefined reference to `lt_dlopenext' /home/user/gambas2-2.18.0/main/gbc/gbi.c:363: undefined reference to `lt_dlerror' /home/user/gambas2-2.18.0/main/gbc/gbi.c:367: undefined reference to `lt_dlsym' /home/user/gambas2-2.18.0/main/gbc/gbi.c:375: undefined reference to `lt_dlsym' gbi2-gbi.o: In function `init': /home/user/gambas2-2.18.0/main/gbc/gbi.c:160: undefined reference to `lt_dlinit' /home/user/gambas2-2.18.0/main/gbc/gbi.c:161: undefined reference to `lt_dlerror' collect2: ld returned 1 exit status make[4]: *** [gbi2] Error 1 make[4]: Leaving directory `/home/user/gambas2-2.18.0/main/gbc' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/gambas2-2.18.0/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/gambas2-2.18.0/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/gambas2-2.18.0' make: *** [all] Error 2 How I can solve ? Thanks Please provide the full output of ./configure and make. I have no ARM there, so I need as many informations as possible to help you. Regards, -------------- next part -------------- configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. configure: WARNING: bzlib2 component is disabled configure: WARNING: zlib component is disabled configure: WARNING: mysql component is disabled configure: WARNING: odbc component is disabled configure: WARNING: postgresql component is disabled configure: WARNING: sqlite2 component is disabled configure: WARNING: sqlite3 component is disabled configure: WARNING: firebird component is disabled configure: WARNING: gtk component is disabled configure: WARNING: gtksvg component is disabled configure: WARNING: pdf component is disabled configure: WARNING: net component is disabled configure: WARNING: curl component is disabled configure: WARNING: smtp component is disabled configure: WARNING: pcre component is disabled configure: WARNING: qt component is disabled configure: WARNING: qte component is disabled configure: WARNING: kde component is disabled configure: WARNING: sdl component is disabled configure: WARNING: sdlsound component is disabled configure: WARNING: xml component is disabled configure: WARNING: v4l component is disabled configure: WARNING: crypt component is disabled configure: WARNING: opengl component is disabled configure: WARNING: corba component is disabled configure: WARNING: image component is disabled configure: WARNING: desktop component is disabled checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for arm-strip... no checking for strip... strip checking build system type... i686-pc-linux-gnu checking host system type... arm-unknown-none configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged === configuring in main (/home/user/gambas2-2.18.0/main) configure: running /bin/sh ./configure '--prefix=/usr/local' '--host=arm' '--disable-bzlib2' '--disable-zlib' '--disable-mysql' '--disable-odbc' '--disable-postgresql' '--disable-sqlite2' '--disable-sqlite3' '--disable-firebird' '--disable-gtk' '--disable-gtksvg' '--disable-pdf' '--disable-net' '--disable-curl' '--disable-smtp' '--disable-pcre' '--disable-qt' '--disable-qte' '--disable-kde' '--disable-sdl' '--disable-sdlsound' '--disable-xml' '--disable-v4l' '--disable-crypt' '--disable-opengl' '--disable-corba' '--disable-image' '--disable-desktop' '--disable-maintainer-mode' 'host_alias=arm' --cache-file=/dev/null --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking for style of include used by make... GNU checking for arm-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... arm-unknown-none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking how to run the C preprocessor... gcc -E checking for arm-g++... no checking for arm-c++... no checking for arm-gpp... no checking for arm-aCC... no checking for arm-CC... no checking for arm-cxx... no checking for arm-cc++... no checking for arm-cl.exe... no checking for arm-FCC... no checking for arm-KCC... no checking for arm-RCC... no checking for arm-xlC_r... no checking for arm-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for arm-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking whether make sets $(MAKE)... (cached) yes checking for setenv... yes checking for unsetenv... yes checking for getdomainname... yes checking for getpt... yes checking for ccache... no checking for main in -lm... yes checking for main in -lz... yes checking for main in -lgcc_s... yes checking for main in -lstdc++... yes checking target system... UNKNOWN checking which extension is used for shared libraries... .so checking for threading compiler options... -D_REENTRANT checking for threading linker options... -lpthread checking for mathematic libraries... -lm checking for external gettext library... checking CFLAGS for gcc -fvisibility=hidden... -fvisibility=hidden checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... no checking for arm-dumpbin... no checking for arm-link... no checking for dumpbin... no checking for link... link -dump -symbols checking the name lister (link -dump -symbols) interface... BSD nm checking the maximum length of command line arguments... 98304 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for arm-objdump... objdump checking how to recognize dependent libraries... unknown checking for arm-ar... no checking for ar... ar checking for arm-strip... no checking for strip... strip checking for arm-ranlib... no checking for ranlib... ranlib checking command to parse link -dump -symbols output from gcc object... failed checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes checking dependency style of g++... (cached) gcc3 checking how to run the C++ preprocessor... g++ -E checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking for shl_load... no checking for shl_load in -ldld... no checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... no checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking whether gcc and cc understand -c and -o together... yes checking for external internationalization library headers... /usr/include/ checking for external internationalization library libraries... no configure: WARNING: Unable to find file: libintl.so configure: This library may be located inside the system C library, so let's go on... checking for optional external charset conversion library headers... /usr/include/ checking for optional external charset conversion library libraries... no configure: WARNING: Unable to find file: libiconv.so configure: This library may be located inside the system C library, so let's go on... checking for foreign function interface component with pkg-config... no configure: Cannot find libffi support with pkg-config checking for foreign function interface headers... no configure: WARNING: Unable to find file: ffi.h checking for foreign function interface libraries... no configure: WARNING: Unable to find file: libffi.so configure: WARNING: *** foreign function interface is disabled checking for xdg-mime... xdg-mime configure: creating ./config.status config.status: creating Makefile config.status: creating share/Makefile config.status: creating gbc/Makefile config.status: creating gbx/Makefile config.status: creating lib/Makefile config.status: creating lib/debug/Makefile config.status: creating lib/eval/Makefile config.status: creating lib/db/Makefile config.status: creating lib/vb/Makefile config.status: creating lib/compress/Makefile config.status: creating lib/option/Makefile config.status: creating lib/draw/Makefile config.status: creating lib/gui/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands === configuring in comp (/home/user/gambas2-2.18.0/comp) configure: running /bin/sh ./configure '--prefix=/usr/local' '--host=arm' '--disable-bzlib2' '--disable-zlib' '--disable-mysql' '--disable-odbc' '--disable-postgresql' '--disable-sqlite2' '--disable-sqlite3' '--disable-firebird' '--disable-gtk' '--disable-gtksvg' '--disable-pdf' '--disable-net' '--disable-curl' '--disable-smtp' '--disable-pcre' '--disable-qt' '--disable-qte' '--disable-kde' '--disable-sdl' '--disable-sdlsound' '--disable-xml' '--disable-v4l' '--disable-crypt' '--disable-opengl' '--disable-corba' '--disable-image' '--disable-desktop' '--disable-maintainer-mode' 'host_alias=arm' --cache-file=/dev/null --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for arm-strip... no checking for strip... strip checking host system type... arm-unknown-none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged === configuring in app (/home/user/gambas2-2.18.0/app) configure: running /bin/sh ./configure '--prefix=/usr/local' '--host=arm' '--disable-bzlib2' '--disable-zlib' '--disable-mysql' '--disable-odbc' '--disable-postgresql' '--disable-sqlite2' '--disable-sqlite3' '--disable-firebird' '--disable-gtk' '--disable-gtksvg' '--disable-pdf' '--disable-net' '--disable-curl' '--disable-smtp' '--disable-pcre' '--disable-qt' '--disable-qte' '--disable-kde' '--disable-sdl' '--disable-sdlsound' '--disable-xml' '--disable-v4l' '--disable-crypt' '--disable-opengl' '--disable-corba' '--disable-image' '--disable-desktop' '--disable-maintainer-mode' 'host_alias=arm' --cache-file=/dev/null --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for arm-strip... no checking for strip... strip checking host system type... arm-unknown-none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for xdg-mime... xdg-mime configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged === configuring in examples (/home/user/gambas2-2.18.0/examples) configure: running /bin/sh ./configure '--prefix=/usr/local' '--host=arm' '--disable-bzlib2' '--disable-zlib' '--disable-mysql' '--disable-odbc' '--disable-postgresql' '--disable-sqlite2' '--disable-sqlite3' '--disable-firebird' '--disable-gtk' '--disable-gtksvg' '--disable-pdf' '--disable-net' '--disable-curl' '--disable-smtp' '--disable-pcre' '--disable-qt' '--disable-qte' '--disable-kde' '--disable-sdl' '--disable-sdlsound' '--disable-xml' '--disable-v4l' '--disable-crypt' '--disable-opengl' '--disable-corba' '--disable-image' '--disable-desktop' '--disable-maintainer-mode' 'host_alias=arm' --cache-file=/dev/null --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for arm-strip... no checking for strip... strip checking host system type... arm-unknown-none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: config.h is unchanged === configuring in help (/home/user/gambas2-2.18.0/help) configure: running /bin/sh ./configure '--prefix=/usr/local' '--host=arm' '--disable-bzlib2' '--disable-zlib' '--disable-mysql' '--disable-odbc' '--disable-postgresql' '--disable-sqlite2' '--disable-sqlite3' '--disable-firebird' '--disable-gtk' '--disable-gtksvg' '--disable-pdf' '--disable-net' '--disable-curl' '--disable-smtp' '--disable-pcre' '--disable-qt' '--disable-qte' '--disable-kde' '--disable-sdl' '--disable-sdlsound' '--disable-xml' '--disable-v4l' '--disable-crypt' '--disable-opengl' '--disable-corba' '--disable-image' '--disable-desktop' '--disable-maintainer-mode' 'host_alias=arm' --cache-file=/dev/null --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking whether to enable maintainer-specific portions of Makefiles... no checking for arm-strip... no checking for strip... strip checking host system type... arm-unknown-none checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes configure: creating ./config.status config.status: creating Makefile config.status: creating help/Makefile config.status: creating config.h config.status: config.h is unchanged ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.compress.bzlib2 - gb.corba - gb.db.firebird - gb.db.mysql - gb.db.odbc - gb.db.postgresql - gb.db.sqlite2 - gb.db.sqlite3 - gb.desktop - gb.gtk - gb.gtk.svg - gb.net.curl - gb.net.smtp - gb.opengl - gb.pcre - gb.pdf - gb.qt - gb.qt.kde - gb.qte - gb.sdl - gb.sdl.sound - gb.v4l - gb.xml ************************************************************ make all-recursive make[1]: Entering directory `/home/user/gambas2-2.18.0' Making all in main make[2]: Entering directory `/home/user/gambas2-2.18.0/main' make all-recursive make[3]: Entering directory `/home/user/gambas2-2.18.0/main' Making all in gbx make[4]: Entering directory `/home/user/gambas2-2.18.0/main/gbx' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c -o gb_la-gbx_c_class.lo `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_class.lo -MD -MP -MF .deps/gb_la-gbx_c_class.Tpo -c gbx_c_class.c -o gb_la-gbx_c_class.o mv -f .deps/gb_la-gbx_c_class.Tpo .deps/gb_la-gbx_c_class.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_collection.lo -MD -MP -MF .deps/gb_la-gbx_c_collection.Tpo -c -o gb_la-gbx_c_collection.lo `test -f 'gbx_c_collection.c' || echo './'`gbx_c_collection.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_collection.lo -MD -MP -MF .deps/gb_la-gbx_c_collection.Tpo -c gbx_c_collection.c -o gb_la-gbx_c_collection.o mv -f .deps/gb_la-gbx_c_collection.Tpo .deps/gb_la-gbx_c_collection.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_error.lo -MD -MP -MF .deps/gb_la-gbx_c_error.Tpo -c -o gb_la-gbx_c_error.lo `test -f 'gbx_c_error.c' || echo './'`gbx_c_error.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_error.lo -MD -MP -MF .deps/gb_la-gbx_c_error.Tpo -c gbx_c_error.c -o gb_la-gbx_c_error.o mv -f .deps/gb_la-gbx_c_error.Tpo .deps/gb_la-gbx_c_error.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_gambas.lo -MD -MP -MF .deps/gb_la-gbx_c_gambas.Tpo -c -o gb_la-gbx_c_gambas.lo `test -f 'gbx_c_gambas.c' || echo './'`gbx_c_gambas.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_gambas.lo -MD -MP -MF .deps/gb_la-gbx_c_gambas.Tpo -c gbx_c_gambas.c -o gb_la-gbx_c_gambas.o mv -f .deps/gb_la-gbx_c_gambas.Tpo .deps/gb_la-gbx_c_gambas.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_file.lo -MD -MP -MF .deps/gb_la-gbx_c_file.Tpo -c -o gb_la-gbx_c_file.lo `test -f 'gbx_c_file.c' || echo './'`gbx_c_file.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_file.lo -MD -MP -MF .deps/gb_la-gbx_c_file.Tpo -c gbx_c_file.c -o gb_la-gbx_c_file.o mv -f .deps/gb_la-gbx_c_file.Tpo .deps/gb_la-gbx_c_file.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_application.lo -MD -MP -MF .deps/gb_la-gbx_c_application.Tpo -c -o gb_la-gbx_c_application.lo `test -f 'gbx_c_application.c' || echo './'`gbx_c_application.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_application.lo -MD -MP -MF .deps/gb_la-gbx_c_application.Tpo -c gbx_c_application.c -o gb_la-gbx_c_application.o mv -f .deps/gb_la-gbx_c_application.Tpo .deps/gb_la-gbx_c_application.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_array.lo -MD -MP -MF .deps/gb_la-gbx_c_array.Tpo -c -o gb_la-gbx_c_array.lo `test -f 'gbx_c_array.c' || echo './'`gbx_c_array.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_array.lo -MD -MP -MF .deps/gb_la-gbx_c_array.Tpo -c gbx_c_array.c -o gb_la-gbx_c_array.o mv -f .deps/gb_la-gbx_c_array.Tpo .deps/gb_la-gbx_c_array.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_process.lo -MD -MP -MF .deps/gb_la-gbx_c_process.Tpo -c -o gb_la-gbx_c_process.lo `test -f 'gbx_c_process.c' || echo './'`gbx_c_process.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_process.lo -MD -MP -MF .deps/gb_la-gbx_c_process.Tpo -c gbx_c_process.c -o gb_la-gbx_c_process.o mv -f .deps/gb_la-gbx_c_process.Tpo .deps/gb_la-gbx_c_process.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_string.lo -MD -MP -MF .deps/gb_la-gbx_c_string.Tpo -c -o gb_la-gbx_c_string.lo `test -f 'gbx_c_string.c' || echo './'`gbx_c_string.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_string.lo -MD -MP -MF .deps/gb_la-gbx_c_string.Tpo -c gbx_c_string.c -o gb_la-gbx_c_string.o mv -f .deps/gb_la-gbx_c_string.Tpo .deps/gb_la-gbx_c_string.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_subcollection.lo -MD -MP -MF .deps/gb_la-gbx_c_subcollection.Tpo -c -o gb_la-gbx_c_subcollection.lo `test -f 'gbx_c_subcollection.c' || echo './'`gbx_c_subcollection.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_subcollection.lo -MD -MP -MF .deps/gb_la-gbx_c_subcollection.Tpo -c gbx_c_subcollection.c -o gb_la-gbx_c_subcollection.o mv -f .deps/gb_la-gbx_c_subcollection.Tpo .deps/gb_la-gbx_c_subcollection.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_enum.lo -MD -MP -MF .deps/gb_la-gbx_c_enum.Tpo -c -o gb_la-gbx_c_enum.lo `test -f 'gbx_c_enum.c' || echo './'`gbx_c_enum.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_enum.lo -MD -MP -MF .deps/gb_la-gbx_c_enum.Tpo -c gbx_c_enum.c -o gb_la-gbx_c_enum.o mv -f .deps/gb_la-gbx_c_enum.Tpo .deps/gb_la-gbx_c_enum.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_timer.lo -MD -MP -MF .deps/gb_la-gbx_c_timer.Tpo -c -o gb_la-gbx_c_timer.lo `test -f 'gbx_c_timer.c' || echo './'`gbx_c_timer.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_timer.lo -MD -MP -MF .deps/gb_la-gbx_c_timer.Tpo -c gbx_c_timer.c -o gb_la-gbx_c_timer.o mv -f .deps/gb_la-gbx_c_timer.Tpo .deps/gb_la-gbx_c_timer.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_quote.lo -MD -MP -MF .deps/gb_la-gbx_c_quote.Tpo -c -o gb_la-gbx_c_quote.lo `test -f 'gbx_c_quote.c' || echo './'`gbx_c_quote.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_c_quote.lo -MD -MP -MF .deps/gb_la-gbx_c_quote.Tpo -c gbx_c_quote.c -o gb_la-gbx_c_quote.o mv -f .deps/gb_la-gbx_c_quote.Tpo .deps/gb_la-gbx_c_quote.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_class_info.lo -MD -MP -MF .deps/gb_la-gbx_class_info.Tpo -c -o gb_la-gbx_class_info.lo `test -f 'gbx_class_info.c' || echo './'`gbx_class_info.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -MT gb_la-gbx_class_info.lo -MD -MP -MF .deps/gb_la-gbx_class_info.Tpo -c gbx_class_info.c -o gb_la-gbx_class_info.o mv -f .deps/gb_la-gbx_class_info.Tpo .deps/gb_la-gbx_class_info.Plo /bin/sh ../libtool --tag=CC --mode=link gcc -DGBX_INFO -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -O0 -module -no-undefined -o gb.la -rpath /usr/local/lib/gambas2 gb_la-gbx_c_class.lo gb_la-gbx_c_collection.lo gb_la-gbx_c_error.lo gb_la-gbx_c_gambas.lo gb_la-gbx_c_file.lo gb_la-gbx_c_application.lo gb_la-gbx_c_array.lo gb_la-gbx_c_process.lo gb_la-gbx_c_string.lo gb_la-gbx_c_subcollection.lo gb_la-gbx_c_enum.lo gb_la-gbx_c_timer.lo gb_la-gbx_c_quote.lo gb_la-gbx_class_info.lo -lm -ldl -lpthread libtool: link: ar cru .libs/libgb.a gb_la-gbx_c_class.o gb_la-gbx_c_collection.o gb_la-gbx_c_error.o gb_la-gbx_c_gambas.o gb_la-gbx_c_file.o gb_la-gbx_c_application.o gb_la-gbx_c_array.o gb_la-gbx_c_process.o gb_la-gbx_c_string.o gb_la-gbx_c_subcollection.o gb_la-gbx_c_enum.o gb_la-gbx_c_timer.o gb_la-gbx_c_quote.o gb_la-gbx_class_info.o libtool: link: ranlib .libs/libgb.a libtool: link: ( cd ".libs" && rm -f "gb.la" && ln -s "../gb.la" "gb.la" ) /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -O3 -I../share -MT libgbxopt_la-gbx_exec_loop.lo -MD -MP -MF .deps/libgbxopt_la-gbx_exec_loop.Tpo -c -o libgbxopt_la-gbx_exec_loop.lo `test -f 'gbx_exec_loop.c' || echo './'`gbx_exec_loop.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -O3 -I../share -MT libgbxopt_la-gbx_exec_loop.lo -MD -MP -MF .deps/libgbxopt_la-gbx_exec_loop.Tpo -c gbx_exec_loop.c -o libgbxopt_la-gbx_exec_loop.o mv -f .deps/libgbxopt_la-gbx_exec_loop.Tpo .deps/libgbxopt_la-gbx_exec_loop.Plo /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -O3 -I../share -o libgbxopt.la libgbxopt_la-gbx_exec_loop.lo libtool: link: ar cru .libs/libgbxopt.a libgbxopt_la-gbx_exec_loop.o libtool: link: ranlib .libs/libgbxopt.a libtool: link: ( cd ".libs" && rm -f "libgbxopt.la" && ln -s "../libgbxopt.la" "libgbxopt.la" ) gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_common.o -MD -MP -MF .deps/gbx2-gb_common.Tpo -c -o gbx2-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c mv -f .deps/gbx2-gb_common.Tpo .deps/gbx2-gb_common.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_debug.o -MD -MP -MF .deps/gbx2-gbx_debug.Tpo -c -o gbx2-gbx_debug.o `test -f 'gbx_debug.c' || echo './'`gbx_debug.c mv -f .deps/gbx2-gbx_debug.Tpo .deps/gbx2-gbx_debug.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_error.o -MD -MP -MF .deps/gbx2-gb_error.Tpo -c -o gbx2-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/gbx2-gb_error.Tpo .deps/gbx2-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_alloc.o -MD -MP -MF .deps/gbx2-gb_alloc.Tpo -c -o gbx2-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c mv -f .deps/gbx2-gb_alloc.Tpo .deps/gbx2-gb_alloc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_array.o -MD -MP -MF .deps/gbx2-gb_array.Tpo -c -o gbx2-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c mv -f .deps/gbx2-gb_array.Tpo .deps/gbx2-gb_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stack.o -MD -MP -MF .deps/gbx2-gbx_stack.Tpo -c -o gbx2-gbx_stack.o `test -f 'gbx_stack.c' || echo './'`gbx_stack.c mv -f .deps/gbx2-gbx_stack.Tpo .deps/gbx2-gbx_stack.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_buffer.o -MD -MP -MF .deps/gbx2-gb_buffer.Tpo -c -o gbx2-gb_buffer.o `test -f 'gb_buffer.c' || echo './'`gb_buffer.c mv -f .deps/gbx2-gb_buffer.Tpo .deps/gbx2-gb_buffer.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_replace.o -MD -MP -MF .deps/gbx2-gbx_replace.Tpo -c -o gbx2-gbx_replace.o `test -f 'gbx_replace.c' || echo './'`gbx_replace.c mv -f .deps/gbx2-gbx_replace.Tpo .deps/gbx2-gbx_replace.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_list.o -MD -MP -MF .deps/gbx2-gb_list.Tpo -c -o gbx2-gb_list.o `test -f 'gb_list.c' || echo './'`gb_list.c mv -f .deps/gbx2-gb_list.Tpo .deps/gbx2-gb_list.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_hash.o -MD -MP -MF .deps/gbx2-gb_hash.Tpo -c -o gbx2-gb_hash.o `test -f 'gb_hash.c' || echo './'`gb_hash.c mv -f .deps/gbx2-gb_hash.Tpo .deps/gbx2-gb_hash.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_table.o -MD -MP -MF .deps/gbx2-gb_table.Tpo -c -o gbx2-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c mv -f .deps/gbx2-gb_table.Tpo .deps/gbx2-gb_table.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_type.o -MD -MP -MF .deps/gbx2-gbx_type.Tpo -c -o gbx2-gbx_type.o `test -f 'gbx_type.c' || echo './'`gbx_type.c mv -f .deps/gbx2-gbx_type.Tpo .deps/gbx2-gbx_type.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_value.o -MD -MP -MF .deps/gbx2-gbx_value.Tpo -c -o gbx2-gbx_value.o `test -f 'gbx_value.c' || echo './'`gbx_value.c mv -f .deps/gbx2-gbx_value.Tpo .deps/gbx2-gbx_value.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subst.o -MD -MP -MF .deps/gbx2-gbx_subst.Tpo -c -o gbx2-gbx_subst.o `test -f 'gbx_subst.c' || echo './'`gbx_subst.c mv -f .deps/gbx2-gbx_subst.Tpo .deps/gbx2-gbx_subst.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_exec.o -MD -MP -MF .deps/gbx2-gbx_exec.Tpo -c -o gbx2-gbx_exec.o `test -f 'gbx_exec.c' || echo './'`gbx_exec.c mv -f .deps/gbx2-gbx_exec.Tpo .deps/gbx2-gbx_exec.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_exec_push.o -MD -MP -MF .deps/gbx2-gbx_exec_push.Tpo -c -o gbx2-gbx_exec_push.o `test -f 'gbx_exec_push.c' || echo './'`gbx_exec_push.c mv -f .deps/gbx2-gbx_exec_push.Tpo .deps/gbx2-gbx_exec_push.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_exec_enum.o -MD -MP -MF .deps/gbx2-gbx_exec_enum.Tpo -c -o gbx2-gbx_exec_enum.o `test -f 'gbx_exec_enum.c' || echo './'`gbx_exec_enum.c mv -f .deps/gbx2-gbx_exec_enum.Tpo .deps/gbx2-gbx_exec_enum.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_exec_pop.o -MD -MP -MF .deps/gbx2-gbx_exec_pop.Tpo -c -o gbx2-gbx_exec_pop.o `test -f 'gbx_exec_pop.c' || echo './'`gbx_exec_pop.c mv -f .deps/gbx2-gbx_exec_pop.Tpo .deps/gbx2-gbx_exec_pop.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_class_init.o -MD -MP -MF .deps/gbx2-gbx_class_init.Tpo -c -o gbx2-gbx_class_init.o `test -f 'gbx_class_init.c' || echo './'`gbx_class_init.c mv -f .deps/gbx2-gbx_class_init.Tpo .deps/gbx2-gbx_class_init.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_class.o -MD -MP -MF .deps/gbx2-gbx_class.Tpo -c -o gbx2-gbx_class.o `test -f 'gbx_class.c' || echo './'`gbx_class.c mv -f .deps/gbx2-gbx_class.Tpo .deps/gbx2-gbx_class.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_class_native.o -MD -MP -MF .deps/gbx2-gbx_class_native.Tpo -c -o gbx2-gbx_class_native.o `test -f 'gbx_class_native.c' || echo './'`gbx_class_native.c mv -f .deps/gbx2-gbx_class_native.Tpo .deps/gbx2-gbx_class_native.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_class_load.o -MD -MP -MF .deps/gbx2-gbx_class_load.Tpo -c -o gbx2-gbx_class_load.o `test -f 'gbx_class_load.c' || echo './'`gbx_class_load.c mv -f .deps/gbx2-gbx_class_load.Tpo .deps/gbx2-gbx_class_load.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_event.o -MD -MP -MF .deps/gbx2-gbx_event.Tpo -c -o gbx2-gbx_event.o `test -f 'gbx_event.c' || echo './'`gbx_event.c mv -f .deps/gbx2-gbx_event.Tpo .deps/gbx2-gbx_event.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gb_file.o -MD -MP -MF .deps/gbx2-gb_file.Tpo -c -o gbx2-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c mv -f .deps/gbx2-gb_file.Tpo .deps/gbx2-gb_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stream.o -MD -MP -MF .deps/gbx2-gbx_stream.Tpo -c -o gbx2-gbx_stream.o `test -f 'gbx_stream.c' || echo './'`gbx_stream.c mv -f .deps/gbx2-gbx_stream.Tpo .deps/gbx2-gbx_stream.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stream_direct.o -MD -MP -MF .deps/gbx2-gbx_stream_direct.Tpo -c -o gbx2-gbx_stream_direct.o `test -f 'gbx_stream_direct.c' || echo './'`gbx_stream_direct.c mv -f .deps/gbx2-gbx_stream_direct.Tpo .deps/gbx2-gbx_stream_direct.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stream_buffer.o -MD -MP -MF .deps/gbx2-gbx_stream_buffer.Tpo -c -o gbx2-gbx_stream_buffer.o `test -f 'gbx_stream_buffer.c' || echo './'`gbx_stream_buffer.c mv -f .deps/gbx2-gbx_stream_buffer.Tpo .deps/gbx2-gbx_stream_buffer.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stream_memory.o -MD -MP -MF .deps/gbx2-gbx_stream_memory.Tpo -c -o gbx2-gbx_stream_memory.o `test -f 'gbx_stream_memory.c' || echo './'`gbx_stream_memory.c mv -f .deps/gbx2-gbx_stream_memory.Tpo .deps/gbx2-gbx_stream_memory.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stream_arch.o -MD -MP -MF .deps/gbx2-gbx_stream_arch.Tpo -c -o gbx2-gbx_stream_arch.o `test -f 'gbx_stream_arch.c' || echo './'`gbx_stream_arch.c mv -f .deps/gbx2-gbx_stream_arch.Tpo .deps/gbx2-gbx_stream_arch.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stream_process.o -MD -MP -MF .deps/gbx2-gbx_stream_process.Tpo -c -o gbx2-gbx_stream_process.o `test -f 'gbx_stream_process.c' || echo './'`gbx_stream_process.c mv -f .deps/gbx2-gbx_stream_process.Tpo .deps/gbx2-gbx_stream_process.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_stream_pipe.o -MD -MP -MF .deps/gbx2-gbx_stream_pipe.Tpo -c -o gbx2-gbx_stream_pipe.o `test -f 'gbx_stream_pipe.c' || echo './'`gbx_stream_pipe.c mv -f .deps/gbx2-gbx_stream_pipe.Tpo .deps/gbx2-gbx_stream_pipe.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_project.o -MD -MP -MF .deps/gbx2-gbx_project.Tpo -c -o gbx2-gbx_project.o `test -f 'gbx_project.c' || echo './'`gbx_project.c mv -f .deps/gbx2-gbx_project.Tpo .deps/gbx2-gbx_project.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_library.o -MD -MP -MF .deps/gbx2-gbx_library.Tpo -c -o gbx2-gbx_library.o `test -f 'gbx_library.c' || echo './'`gbx_library.c mv -f .deps/gbx2-gbx_library.Tpo .deps/gbx2-gbx_library.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr.o -MD -MP -MF .deps/gbx2-gbx_subr.Tpo -c -o gbx2-gbx_subr.o `test -f 'gbx_subr.c' || echo './'`gbx_subr.c mv -f .deps/gbx2-gbx_subr.Tpo .deps/gbx2-gbx_subr.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_file.o -MD -MP -MF .deps/gbx2-gbx_subr_file.Tpo -c -o gbx2-gbx_subr_file.o `test -f 'gbx_subr_file.c' || echo './'`gbx_subr_file.c mv -f .deps/gbx2-gbx_subr_file.Tpo .deps/gbx2-gbx_subr_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_string.o -MD -MP -MF .deps/gbx2-gbx_subr_string.Tpo -c -o gbx2-gbx_subr_string.o `test -f 'gbx_subr_string.c' || echo './'`gbx_subr_string.c mv -f .deps/gbx2-gbx_subr_string.Tpo .deps/gbx2-gbx_subr_string.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_conv.o -MD -MP -MF .deps/gbx2-gbx_subr_conv.Tpo -c -o gbx2-gbx_subr_conv.o `test -f 'gbx_subr_conv.c' || echo './'`gbx_subr_conv.c mv -f .deps/gbx2-gbx_subr_conv.Tpo .deps/gbx2-gbx_subr_conv.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_time.o -MD -MP -MF .deps/gbx2-gbx_subr_time.Tpo -c -o gbx2-gbx_subr_time.o `test -f 'gbx_subr_time.c' || echo './'`gbx_subr_time.c mv -f .deps/gbx2-gbx_subr_time.Tpo .deps/gbx2-gbx_subr_time.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_extern.o -MD -MP -MF .deps/gbx2-gbx_subr_extern.Tpo -c -o gbx2-gbx_subr_extern.o `test -f 'gbx_subr_extern.c' || echo './'`gbx_subr_extern.c mv -f .deps/gbx2-gbx_subr_extern.Tpo .deps/gbx2-gbx_subr_extern.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_misc.o -MD -MP -MF .deps/gbx2-gbx_subr_misc.Tpo -c -o gbx2-gbx_subr_misc.o `test -f 'gbx_subr_misc.c' || echo './'`gbx_subr_misc.c mv -f .deps/gbx2-gbx_subr_misc.Tpo .deps/gbx2-gbx_subr_misc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_math.o -MD -MP -MF .deps/gbx2-gbx_math.Tpo -c -o gbx2-gbx_math.o `test -f 'gbx_math.c' || echo './'`gbx_math.c mv -f .deps/gbx2-gbx_math.Tpo .deps/gbx2-gbx_math.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_math.o -MD -MP -MF .deps/gbx2-gbx_subr_math.Tpo -c -o gbx2-gbx_subr_math.o `test -f 'gbx_subr_math.c' || echo './'`gbx_subr_math.c mv -f .deps/gbx2-gbx_subr_math.Tpo .deps/gbx2-gbx_subr_math.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_subr_test.o -MD -MP -MF .deps/gbx2-gbx_subr_test.Tpo -c -o gbx2-gbx_subr_test.o `test -f 'gbx_subr_test.c' || echo './'`gbx_subr_test.c mv -f .deps/gbx2-gbx_subr_test.Tpo .deps/gbx2-gbx_subr_test.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_api.o -MD -MP -MF .deps/gbx2-gbx_api.Tpo -c -o gbx2-gbx_api.o `test -f 'gbx_api.c' || echo './'`gbx_api.c mv -f .deps/gbx2-gbx_api.Tpo .deps/gbx2-gbx_api.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_local.o -MD -MP -MF .deps/gbx2-gbx_local.Tpo -c -o gbx2-gbx_local.o `test -f 'gbx_local.c' || echo './'`gbx_local.c mv -f .deps/gbx2-gbx_local.Tpo .deps/gbx2-gbx_local.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_regexp.o -MD -MP -MF .deps/gbx2-gbx_regexp.Tpo -c -o gbx2-gbx_regexp.o `test -f 'gbx_regexp.c' || echo './'`gbx_regexp.c mv -f .deps/gbx2-gbx_regexp.Tpo .deps/gbx2-gbx_regexp.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_archive.o -MD -MP -MF .deps/gbx2-gbx_archive.Tpo -c -o gbx2-gbx_archive.o `test -f 'gbx_archive.c' || echo './'`gbx_archive.c mv -f .deps/gbx2-gbx_archive.Tpo .deps/gbx2-gbx_archive.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_watch.o -MD -MP -MF .deps/gbx2-gbx_watch.Tpo -c -o gbx2-gbx_watch.o `test -f 'gbx_watch.c' || echo './'`gbx_watch.c mv -f .deps/gbx2-gbx_watch.Tpo .deps/gbx2-gbx_watch.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_eval.o -MD -MP -MF .deps/gbx2-gbx_eval.Tpo -c -o gbx2-gbx_eval.o `test -f 'gbx_eval.c' || echo './'`gbx_eval.c mv -f .deps/gbx2-gbx_eval.Tpo .deps/gbx2-gbx_eval.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_compare.o -MD -MP -MF .deps/gbx2-gbx_compare.Tpo -c -o gbx2-gbx_compare.o `test -f 'gbx_compare.c' || echo './'`gbx_compare.c mv -f .deps/gbx2-gbx_compare.Tpo .deps/gbx2-gbx_compare.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx.o -MD -MP -MF .deps/gbx2-gbx.Tpo -c -o gbx2-gbx.o `test -f 'gbx.c' || echo './'`gbx.c mv -f .deps/gbx2-gbx.Tpo .deps/gbx2-gbx.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_number.o -MD -MP -MF .deps/gbx2-gbx_number.Tpo -c -o gbx2-gbx_number.o `test -f 'gbx_number.c' || echo './'`gbx_number.c mv -f .deps/gbx2-gbx_number.Tpo .deps/gbx2-gbx_number.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_object.o -MD -MP -MF .deps/gbx2-gbx_object.Tpo -c -o gbx2-gbx_object.o `test -f 'gbx_object.c' || echo './'`gbx_object.c mv -f .deps/gbx2-gbx_object.Tpo .deps/gbx2-gbx_object.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_string.o -MD -MP -MF .deps/gbx2-gbx_string.Tpo -c -o gbx2-gbx_string.o `test -f 'gbx_string.c' || echo './'`gbx_string.c mv -f .deps/gbx2-gbx_string.Tpo .deps/gbx2-gbx_string.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_date.o -MD -MP -MF .deps/gbx2-gbx_date.Tpo -c -o gbx2-gbx_date.o `test -f 'gbx_date.c' || echo './'`gbx_date.c mv -f .deps/gbx2-gbx_date.Tpo .deps/gbx2-gbx_date.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_array.o -MD -MP -MF .deps/gbx2-gbx_array.Tpo -c -o gbx2-gbx_array.o `test -f 'gbx_array.c' || echo './'`gbx_array.c mv -f .deps/gbx2-gbx_array.Tpo .deps/gbx2-gbx_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_class.o -MD -MP -MF .deps/gbx2-gbx_c_class.Tpo -c -o gbx2-gbx_c_class.o `test -f 'gbx_c_class.c' || echo './'`gbx_c_class.c mv -f .deps/gbx2-gbx_c_class.Tpo .deps/gbx2-gbx_c_class.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_collection.o -MD -MP -MF .deps/gbx2-gbx_c_collection.Tpo -c -o gbx2-gbx_c_collection.o `test -f 'gbx_c_collection.c' || echo './'`gbx_c_collection.c mv -f .deps/gbx2-gbx_c_collection.Tpo .deps/gbx2-gbx_c_collection.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_error.o -MD -MP -MF .deps/gbx2-gbx_c_error.Tpo -c -o gbx2-gbx_c_error.o `test -f 'gbx_c_error.c' || echo './'`gbx_c_error.c mv -f .deps/gbx2-gbx_c_error.Tpo .deps/gbx2-gbx_c_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_gambas.o -MD -MP -MF .deps/gbx2-gbx_c_gambas.Tpo -c -o gbx2-gbx_c_gambas.o `test -f 'gbx_c_gambas.c' || echo './'`gbx_c_gambas.c mv -f .deps/gbx2-gbx_c_gambas.Tpo .deps/gbx2-gbx_c_gambas.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_file.o -MD -MP -MF .deps/gbx2-gbx_c_file.Tpo -c -o gbx2-gbx_c_file.o `test -f 'gbx_c_file.c' || echo './'`gbx_c_file.c mv -f .deps/gbx2-gbx_c_file.Tpo .deps/gbx2-gbx_c_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_application.o -MD -MP -MF .deps/gbx2-gbx_c_application.Tpo -c -o gbx2-gbx_c_application.o `test -f 'gbx_c_application.c' || echo './'`gbx_c_application.c mv -f .deps/gbx2-gbx_c_application.Tpo .deps/gbx2-gbx_c_application.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_array.o -MD -MP -MF .deps/gbx2-gbx_c_array.Tpo -c -o gbx2-gbx_c_array.o `test -f 'gbx_c_array.c' || echo './'`gbx_c_array.c mv -f .deps/gbx2-gbx_c_array.Tpo .deps/gbx2-gbx_c_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_process.o -MD -MP -MF .deps/gbx2-gbx_c_process.Tpo -c -o gbx2-gbx_c_process.o `test -f 'gbx_c_process.c' || echo './'`gbx_c_process.c mv -f .deps/gbx2-gbx_c_process.Tpo .deps/gbx2-gbx_c_process.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_subcollection.o -MD -MP -MF .deps/gbx2-gbx_c_subcollection.Tpo -c -o gbx2-gbx_c_subcollection.o `test -f 'gbx_c_subcollection.c' || echo './'`gbx_c_subcollection.c mv -f .deps/gbx2-gbx_c_subcollection.Tpo .deps/gbx2-gbx_c_subcollection.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_string.o -MD -MP -MF .deps/gbx2-gbx_c_string.Tpo -c -o gbx2-gbx_c_string.o `test -f 'gbx_c_string.c' || echo './'`gbx_c_string.c mv -f .deps/gbx2-gbx_c_string.Tpo .deps/gbx2-gbx_c_string.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_component.o -MD -MP -MF .deps/gbx2-gbx_component.Tpo -c -o gbx2-gbx_component.o `test -f 'gbx_component.c' || echo './'`gbx_component.c mv -f .deps/gbx2-gbx_component.Tpo .deps/gbx2-gbx_component.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_extern.o -MD -MP -MF .deps/gbx2-gbx_extern.Tpo -c -o gbx2-gbx_extern.o `test -f 'gbx_extern.c' || echo './'`gbx_extern.c gbx_extern.c:194: warning: ???get_function??? defined but not used mv -f .deps/gbx2-gbx_extern.Tpo .deps/gbx2-gbx_extern.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_print.o -MD -MP -MF .deps/gbx2-gbx_print.Tpo -c -o gbx2-gbx_print.o `test -f 'gbx_print.c' || echo './'`gbx_print.c mv -f .deps/gbx2-gbx_print.Tpo .deps/gbx2-gbx_print.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_enum.o -MD -MP -MF .deps/gbx2-gbx_c_enum.Tpo -c -o gbx2-gbx_c_enum.o `test -f 'gbx_c_enum.c' || echo './'`gbx_c_enum.c mv -f .deps/gbx2-gbx_c_enum.Tpo .deps/gbx2-gbx_c_enum.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_timer.o -MD -MP -MF .deps/gbx2-gbx_c_timer.Tpo -c -o gbx2-gbx_c_timer.o `test -f 'gbx_c_timer.c' || echo './'`gbx_c_timer.c mv -f .deps/gbx2-gbx_c_timer.Tpo .deps/gbx2-gbx_c_timer.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -MT gbx2-gbx_c_quote.o -MD -MP -MF .deps/gbx2-gbx_c_quote.Tpo -c -o gbx2-gbx_c_quote.o `test -f 'gbx_c_quote.c' || echo './'`gbx_c_quote.c mv -f .deps/gbx2-gbx_c_quote.Tpo .deps/gbx2-gbx_c_quote.Po /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx2 gbx2-gb_common.o gbx2-gbx_debug.o gbx2-gb_error.o gbx2-gb_alloc.o gbx2-gb_array.o gbx2-gbx_stack.o gbx2-gb_buffer.o gbx2-gbx_replace.o gbx2-gb_list.o gbx2-gb_hash.o gbx2-gb_table.o gbx2-gbx_type.o gbx2-gbx_value.o gbx2-gbx_subst.o gbx2-gbx_exec.o gbx2-gbx_exec_push.o gbx2-gbx_exec_enum.o gbx2-gbx_exec_pop.o gbx2-gbx_class_init.o gbx2-gbx_class.o gbx2-gbx_class_native.o gbx2-gbx_class_load.o gbx2-gbx_event.o gbx2-gb_file.o gbx2-gbx_stream.o gbx2-gbx_stream_direct.o gbx2-gbx_stream_buffer.o gbx2-gbx_stream_memory.o gbx2-gbx_stream_arch.o gbx2-gbx_stream_process.o gbx2-gbx_stream_pipe.o gbx2-gbx_project.o gbx2-gbx_library.o gbx2-gbx_subr.o gbx2-gbx_subr_file.o gbx2-gbx_subr_string.o gbx2-gbx_subr_conv.o gbx2-gbx_subr_time.o gbx2-gbx_subr_extern.o gbx2-gbx_subr_misc.o gbx2-gbx_math.o gbx2-gbx_subr_math.o gbx2-gbx_subr_test.o gbx2-gbx_api.o gbx2-gbx_local.o gbx2-gbx_regexp.o gbx2-gbx_archive.o gbx2-gbx_watch.o gbx2-gbx_eval.o gbx2-gbx_compare.o gbx2-gbx.o gbx2-gbx_number.o gbx2-gbx_object.o gbx2-gbx_string.o gbx2-gbx_date.o gbx2-gbx_array.o gbx2-gbx_c_class.o gbx2-gbx_c_collection.o gbx2-gbx_c_error.o gbx2-gbx_c_gambas.o gbx2-gbx_c_file.o gbx2-gbx_c_application.o gbx2-gbx_c_array.o gbx2-gbx_c_process.o gbx2-gbx_c_subcollection.o gbx2-gbx_c_string.o gbx2-gbx_component.o gbx2-gbx_extern.o gbx2-gbx_print.o gbx2-gbx_c_enum.o gbx2-gbx_c_timer.o gbx2-gbx_c_quote.o libgbxopt.la -lm -ldl -lpthread libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -D_REENTRANT -o gbx2 gbx2-gb_common.o gbx2-gbx_debug.o gbx2-gb_error.o gbx2-gb_alloc.o gbx2-gb_array.o gbx2-gbx_stack.o gbx2-gb_buffer.o gbx2-gbx_replace.o gbx2-gb_list.o gbx2-gb_hash.o gbx2-gb_table.o gbx2-gbx_type.o gbx2-gbx_value.o gbx2-gbx_subst.o gbx2-gbx_exec.o gbx2-gbx_exec_push.o gbx2-gbx_exec_enum.o gbx2-gbx_exec_pop.o gbx2-gbx_class_init.o gbx2-gbx_class.o gbx2-gbx_class_native.o gbx2-gbx_class_load.o gbx2-gbx_event.o gbx2-gb_file.o gbx2-gbx_stream.o gbx2-gbx_stream_direct.o gbx2-gbx_stream_buffer.o gbx2-gbx_stream_memory.o gbx2-gbx_stream_arch.o gbx2-gbx_stream_process.o gbx2-gbx_stream_pipe.o gbx2-gbx_project.o gbx2-gbx_library.o gbx2-gbx_subr.o gbx2-gbx_subr_file.o gbx2-gbx_subr_string.o gbx2-gbx_subr_conv.o gbx2-gbx_subr_time.o gbx2-gbx_subr_extern.o gbx2-gbx_subr_misc.o gbx2-gbx_math.o gbx2-gbx_subr_math.o gbx2-gbx_subr_test.o gbx2-gbx_api.o gbx2-gbx_local.o gbx2-gbx_regexp.o gbx2-gbx_archive.o gbx2-gbx_watch.o gbx2-gbx_eval.o gbx2-gbx_compare.o gbx2-gbx.o gbx2-gbx_number.o gbx2-gbx_object.o gbx2-gbx_string.o gbx2-gbx_date.o gbx2-gbx_array.o gbx2-gbx_c_class.o gbx2-gbx_c_collection.o gbx2-gbx_c_error.o gbx2-gbx_c_gambas.o gbx2-gbx_c_file.o gbx2-gbx_c_application.o gbx2-gbx_c_array.o gbx2-gbx_c_process.o gbx2-gbx_c_subcollection.o gbx2-gbx_c_string.o gbx2-gbx_component.o gbx2-gbx_extern.o gbx2-gbx_print.o gbx2-gbx_c_enum.o gbx2-gbx_c_timer.o gbx2-gbx_c_quote.o ./.libs/libgbxopt.a -lm -ldl -lpthread make[4]: Leaving directory `/home/user/gambas2-2.18.0/main/gbx' Making all in gbc make[4]: Entering directory `/home/user/gambas2-2.18.0/main/gbc' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -O3 -I../share -MT libgbcopt_la-gb_table.lo -MD -MP -MF .deps/libgbcopt_la-gb_table.Tpo -c -o libgbcopt_la-gb_table.lo `test -f 'gb_table.c' || echo './'`gb_table.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -O3 -I../share -MT libgbcopt_la-gb_table.lo -MD -MP -MF .deps/libgbcopt_la-gb_table.Tpo -c gb_table.c -o libgbcopt_la-gb_table.o mv -f .deps/libgbcopt_la-gb_table.Tpo .deps/libgbcopt_la-gb_table.Plo /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -O3 -I../share -o libgbcopt.la libgbcopt_la-gb_table.lo libtool: link: ar cru .libs/libgbcopt.a libgbcopt_la-gb_table.o libtool: link: ranlib .libs/libgbcopt.a libtool: link: ( cd ".libs" && rm -f "libgbcopt.la" && ln -s "../libgbcopt.la" "libgbcopt.la" ) gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gb_error.o -MD -MP -MF .deps/gbc2-gb_error.Tpo -c -o gbc2-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/gbc2-gb_error.Tpo .deps/gbc2-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gb_alloc.o -MD -MP -MF .deps/gbc2-gb_alloc.Tpo -c -o gbc2-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c mv -f .deps/gbc2-gb_alloc.Tpo .deps/gbc2-gb_alloc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gb_array.o -MD -MP -MF .deps/gbc2-gb_array.Tpo -c -o gbc2-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c mv -f .deps/gbc2-gb_array.Tpo .deps/gbc2-gb_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_read.o -MD -MP -MF .deps/gbc2-gbc_read.Tpo -c -o gbc2-gbc_read.o `test -f 'gbc_read.c' || echo './'`gbc_read.c mv -f .deps/gbc2-gbc_read.Tpo .deps/gbc2-gbc_read.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_reserved.o -MD -MP -MF .deps/gbc2-gbc_reserved.Tpo -c -o gbc2-gbc_reserved.o `test -f 'gbc_reserved.c' || echo './'`gbc_reserved.c mv -f .deps/gbc2-gbc_reserved.Tpo .deps/gbc2-gbc_reserved.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_compile.o -MD -MP -MF .deps/gbc2-gbc_compile.Tpo -c -o gbc2-gbc_compile.o `test -f 'gbc_compile.c' || echo './'`gbc_compile.c mv -f .deps/gbc2-gbc_compile.Tpo .deps/gbc2-gbc_compile.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_type.o -MD -MP -MF .deps/gbc2-gbc_type.Tpo -c -o gbc2-gbc_type.o `test -f 'gbc_type.c' || echo './'`gbc_type.c mv -f .deps/gbc2-gbc_type.Tpo .deps/gbc2-gbc_type.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gb_buffer.o -MD -MP -MF .deps/gbc2-gb_buffer.Tpo -c -o gbc2-gb_buffer.o `test -f 'gb_buffer.c' || echo './'`gb_buffer.c mv -f .deps/gbc2-gb_buffer.Tpo .deps/gbc2-gb_buffer.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_dump.o -MD -MP -MF .deps/gbc2-gbc_dump.Tpo -c -o gbc2-gbc_dump.o `test -f 'gbc_dump.c' || echo './'`gbc_dump.c mv -f .deps/gbc2-gbc_dump.Tpo .deps/gbc2-gbc_dump.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_class.o -MD -MP -MF .deps/gbc2-gbc_class.Tpo -c -o gbc2-gbc_class.o `test -f 'gbc_class.c' || echo './'`gbc_class.c mv -f .deps/gbc2-gbc_class.Tpo .deps/gbc2-gbc_class.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_code.o -MD -MP -MF .deps/gbc2-gbc_code.Tpo -c -o gbc2-gbc_code.o `test -f 'gbc_code.c' || echo './'`gbc_code.c mv -f .deps/gbc2-gbc_code.Tpo .deps/gbc2-gbc_code.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_trans.o -MD -MP -MF .deps/gbc2-gbc_trans.Tpo -c -o gbc2-gbc_trans.o `test -f 'gbc_trans.c' || echo './'`gbc_trans.c mv -f .deps/gbc2-gbc_trans.Tpo .deps/gbc2-gbc_trans.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_header.o -MD -MP -MF .deps/gbc2-gbc_header.Tpo -c -o gbc2-gbc_header.o `test -f 'gbc_header.c' || echo './'`gbc_header.c mv -f .deps/gbc2-gbc_header.Tpo .deps/gbc2-gbc_header.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_trans_code.o -MD -MP -MF .deps/gbc2-gbc_trans_code.Tpo -c -o gbc2-gbc_trans_code.o `test -f 'gbc_trans_code.c' || echo './'`gbc_trans_code.c mv -f .deps/gbc2-gbc_trans_code.Tpo .deps/gbc2-gbc_trans_code.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_trans_expr.o -MD -MP -MF .deps/gbc2-gbc_trans_expr.Tpo -c -o gbc2-gbc_trans_expr.o `test -f 'gbc_trans_expr.c' || echo './'`gbc_trans_expr.c mv -f .deps/gbc2-gbc_trans_expr.Tpo .deps/gbc2-gbc_trans_expr.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_trans_tree.o -MD -MP -MF .deps/gbc2-gbc_trans_tree.Tpo -c -o gbc2-gbc_trans_tree.o `test -f 'gbc_trans_tree.c' || echo './'`gbc_trans_tree.c mv -f .deps/gbc2-gbc_trans_tree.Tpo .deps/gbc2-gbc_trans_tree.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_trans_ctrl.o -MD -MP -MF .deps/gbc2-gbc_trans_ctrl.Tpo -c -o gbc2-gbc_trans_ctrl.o `test -f 'gbc_trans_ctrl.c' || echo './'`gbc_trans_ctrl.c mv -f .deps/gbc2-gbc_trans_ctrl.Tpo .deps/gbc2-gbc_trans_ctrl.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_trans_subr.o -MD -MP -MF .deps/gbc2-gbc_trans_subr.Tpo -c -o gbc2-gbc_trans_subr.o `test -f 'gbc_trans_subr.c' || echo './'`gbc_trans_subr.c mv -f .deps/gbc2-gbc_trans_subr.Tpo .deps/gbc2-gbc_trans_subr.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_output.o -MD -MP -MF .deps/gbc2-gbc_output.Tpo -c -o gbc2-gbc_output.o `test -f 'gbc_output.c' || echo './'`gbc_output.c mv -f .deps/gbc2-gbc_output.Tpo .deps/gbc2-gbc_output.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_pcode.o -MD -MP -MF .deps/gbc2-gbc_pcode.Tpo -c -o gbc2-gbc_pcode.o `test -f 'gbc_pcode.c' || echo './'`gbc_pcode.c mv -f .deps/gbc2-gbc_pcode.Tpo .deps/gbc2-gbc_pcode.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gb_file.o -MD -MP -MF .deps/gbc2-gb_file.Tpo -c -o gbc2-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c mv -f .deps/gbc2-gb_file.Tpo .deps/gbc2-gb_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_form.o -MD -MP -MF .deps/gbc2-gbc_form.Tpo -c -o gbc2-gbc_form.o `test -f 'gbc_form.c' || echo './'`gbc_form.c mv -f .deps/gbc2-gbc_form.Tpo .deps/gbc2-gbc_form.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gb_str.o -MD -MP -MF .deps/gbc2-gb_str.Tpo -c -o gbc2-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c mv -f .deps/gbc2-gb_str.Tpo .deps/gbc2-gb_str.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc_chown.o -MD -MP -MF .deps/gbc2-gbc_chown.Tpo -c -o gbc2-gbc_chown.o `test -f 'gbc_chown.c' || echo './'`gbc_chown.c mv -f .deps/gbc2-gbc_chown.Tpo .deps/gbc2-gbc_chown.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gb_common.o -MD -MP -MF .deps/gbc2-gb_common.Tpo -c -o gbc2-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c mv -f .deps/gbc2-gb_common.Tpo .deps/gbc2-gb_common.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbc2-gbc.o -MD -MP -MF .deps/gbc2-gbc.Tpo -c -o gbc2-gbc.o `test -f 'gbc.c' || echo './'`gbc.c mv -f .deps/gbc2-gbc.Tpo .deps/gbc2-gbc.Po /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc2 gbc2-gb_error.o gbc2-gb_alloc.o gbc2-gb_array.o gbc2-gbc_read.o gbc2-gbc_reserved.o gbc2-gbc_compile.o gbc2-gbc_type.o gbc2-gb_buffer.o gbc2-gbc_dump.o gbc2-gbc_class.o gbc2-gbc_code.o gbc2-gbc_trans.o gbc2-gbc_header.o gbc2-gbc_trans_code.o gbc2-gbc_trans_expr.o gbc2-gbc_trans_tree.o gbc2-gbc_trans_ctrl.o gbc2-gbc_trans_subr.o gbc2-gbc_output.o gbc2-gbc_pcode.o gbc2-gb_file.o gbc2-gbc_form.o gbc2-gb_str.o gbc2-gbc_chown.o gbc2-gb_common.o gbc2-gbc.o libgbcopt.la -lm libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbc2 gbc2-gb_error.o gbc2-gb_alloc.o gbc2-gb_array.o gbc2-gbc_read.o gbc2-gbc_reserved.o gbc2-gbc_compile.o gbc2-gbc_type.o gbc2-gb_buffer.o gbc2-gbc_dump.o gbc2-gbc_class.o gbc2-gbc_code.o gbc2-gbc_trans.o gbc2-gbc_header.o gbc2-gbc_trans_code.o gbc2-gbc_trans_expr.o gbc2-gbc_trans_tree.o gbc2-gbc_trans_ctrl.o gbc2-gbc_trans_subr.o gbc2-gbc_output.o gbc2-gbc_pcode.o gbc2-gb_file.o gbc2-gbc_form.o gbc2-gb_str.o gbc2-gbc_chown.o gbc2-gb_common.o gbc2-gbc.o ./.libs/libgbcopt.a -lm gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gb_error.o -MD -MP -MF .deps/gba2-gb_error.Tpo -c -o gba2-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/gba2-gb_error.Tpo .deps/gba2-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gb_alloc.o -MD -MP -MF .deps/gba2-gb_alloc.Tpo -c -o gba2-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c mv -f .deps/gba2-gb_alloc.Tpo .deps/gba2-gb_alloc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gb_array.o -MD -MP -MF .deps/gba2-gb_array.Tpo -c -o gba2-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c mv -f .deps/gba2-gb_array.Tpo .deps/gba2-gb_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gb_table.o -MD -MP -MF .deps/gba2-gb_table.Tpo -c -o gba2-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c mv -f .deps/gba2-gb_table.Tpo .deps/gba2-gb_table.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gb_str.o -MD -MP -MF .deps/gba2-gb_str.Tpo -c -o gba2-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c mv -f .deps/gba2-gb_str.Tpo .deps/gba2-gb_str.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gb_file.o -MD -MP -MF .deps/gba2-gb_file.Tpo -c -o gba2-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c mv -f .deps/gba2-gb_file.Tpo .deps/gba2-gb_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gbc_archive.o -MD -MP -MF .deps/gba2-gbc_archive.Tpo -c -o gba2-gbc_archive.o `test -f 'gbc_archive.c' || echo './'`gbc_archive.c mv -f .deps/gba2-gbc_archive.Tpo .deps/gba2-gbc_archive.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gbc_chown.o -MD -MP -MF .deps/gba2-gbc_chown.Tpo -c -o gba2-gbc_chown.o `test -f 'gbc_chown.c' || echo './'`gbc_chown.c mv -f .deps/gba2-gbc_chown.Tpo .deps/gba2-gbc_chown.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gb_common.o -MD -MP -MF .deps/gba2-gb_common.Tpo -c -o gba2-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c mv -f .deps/gba2-gb_common.Tpo .deps/gba2-gb_common.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gba2-gba.o -MD -MP -MF .deps/gba2-gba.Tpo -c -o gba2-gba.o `test -f 'gba.c' || echo './'`gba.c mv -f .deps/gba2-gba.Tpo .deps/gba2-gba.Po /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gba2 gba2-gb_error.o gba2-gb_alloc.o gba2-gb_array.o gba2-gb_table.o gba2-gb_str.o gba2-gb_file.o gba2-gbc_archive.o gba2-gbc_chown.o gba2-gb_common.o gba2-gba.o libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gba2 gba2-gb_error.o gba2-gb_alloc.o gba2-gb_array.o gba2-gb_table.o gba2-gb_str.o gba2-gb_file.o gba2-gbc_archive.o gba2-gbc_chown.o gba2-gb_common.o gba2-gba.o gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gb_error.o -MD -MP -MF .deps/gbi2-gb_error.Tpo -c -o gbi2-gb_error.o `test -f 'gb_error.c' || echo './'`gb_error.c mv -f .deps/gbi2-gb_error.Tpo .deps/gbi2-gb_error.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gb_alloc.o -MD -MP -MF .deps/gbi2-gb_alloc.Tpo -c -o gbi2-gb_alloc.o `test -f 'gb_alloc.c' || echo './'`gb_alloc.c mv -f .deps/gbi2-gb_alloc.Tpo .deps/gbi2-gb_alloc.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gb_array.o -MD -MP -MF .deps/gbi2-gb_array.Tpo -c -o gbi2-gb_array.o `test -f 'gb_array.c' || echo './'`gb_array.c mv -f .deps/gbi2-gb_array.Tpo .deps/gbi2-gb_array.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gb_str.o -MD -MP -MF .deps/gbi2-gb_str.Tpo -c -o gbi2-gb_str.o `test -f 'gb_str.c' || echo './'`gb_str.c mv -f .deps/gbi2-gb_str.Tpo .deps/gbi2-gb_str.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gb_file.o -MD -MP -MF .deps/gbi2-gb_file.Tpo -c -o gbi2-gb_file.o `test -f 'gb_file.c' || echo './'`gb_file.c mv -f .deps/gbi2-gb_file.Tpo .deps/gbi2-gb_file.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gb_table.o -MD -MP -MF .deps/gbi2-gb_table.Tpo -c -o gbi2-gb_table.o `test -f 'gb_table.c' || echo './'`gb_table.c mv -f .deps/gbi2-gb_table.Tpo .deps/gbi2-gb_table.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gb_common.o -MD -MP -MF .deps/gbi2-gb_common.Tpo -c -o gbi2-gb_common.o `test -f 'gb_common.c' || echo './'`gb_common.c mv -f .deps/gbi2-gb_common.Tpo .deps/gbi2-gb_common.Po gcc -DHAVE_CONFIG_H -I. -I.. -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -MT gbi2-gbi.o -MD -MP -MF .deps/gbi2-gbi.Tpo -c -o gbi2-gbi.o `test -f 'gbi.c' || echo './'`gbi.c mv -f .deps/gbi2-gbi.Tpo .deps/gbi2-gbi.Po /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl gbi2-gbi.o: In function `analyze_native_component': /home/user/gambas2-2.18.0/main/gbc/gbi.c:360: undefined reference to `lt_dlopenext' /home/user/gambas2-2.18.0/main/gbc/gbi.c:363: undefined reference to `lt_dlerror' /home/user/gambas2-2.18.0/main/gbc/gbi.c:367: undefined reference to `lt_dlsym' /home/user/gambas2-2.18.0/main/gbc/gbi.c:375: undefined reference to `lt_dlsym' gbi2-gbi.o: In function `init': /home/user/gambas2-2.18.0/main/gbc/gbi.c:160: undefined reference to `lt_dlinit' /home/user/gambas2-2.18.0/main/gbc/gbi.c:161: undefined reference to `lt_dlerror' collect2: ld returned 1 exit status make[4]: *** [gbi2] Error 1 make[4]: Leaving directory `/home/user/gambas2-2.18.0/main/gbc' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/gambas2-2.18.0/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/gambas2-2.18.0/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/gambas2-2.18.0' make: *** [all] Error 2 Making install in main make[1]: Entering directory `/home/user/gambas2-2.18.0/main' Making install in gbx make[2]: Entering directory `/home/user/gambas2-2.18.0/main/gbx' make[3]: Entering directory `/home/user/gambas2-2.18.0/main/gbx' test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin" /bin/sh ../libtool --mode=install /usr/bin/install -c 'gbx2' '/usr/local/bin/gbx2' libtool: install: /usr/bin/install -c gbx2 /usr/local/bin/gbx2 test -z "/usr/local/lib/gambas2" || /bin/mkdir -p "/usr/local/lib/gambas2" /bin/sh ../libtool --mode=install /usr/bin/install -c 'gb.la' '/usr/local/lib/gambas2/gb.la' libtool: install: /usr/bin/install -c .libs/gb.lai /usr/local/lib/gambas2/gb.la libtool: install: /usr/bin/install -c .libs/libgb.a /usr/local/lib/gambas2/libgb.a libtool: install: chmod 644 /usr/local/lib/gambas2/libgb.a libtool: install: ranlib /usr/local/lib/gambas2/libgb.a ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas2 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make[3]: Leaving directory `/home/user/gambas2-2.18.0/main/gbx' make[2]: Leaving directory `/home/user/gambas2-2.18.0/main/gbx' Making install in gbc make[2]: Entering directory `/home/user/gambas2-2.18.0/main/gbc' /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl gbi2-gbi.o: In function `analyze_native_component': /home/user/gambas2-2.18.0/main/gbc/gbi.c:360: undefined reference to `lt_dlopenext' /home/user/gambas2-2.18.0/main/gbc/gbi.c:363: undefined reference to `lt_dlerror' /home/user/gambas2-2.18.0/main/gbc/gbi.c:367: undefined reference to `lt_dlsym' /home/user/gambas2-2.18.0/main/gbc/gbi.c:375: undefined reference to `lt_dlsym' gbi2-gbi.o: In function `init': /home/user/gambas2-2.18.0/main/gbc/gbi.c:160: undefined reference to `lt_dlinit' /home/user/gambas2-2.18.0/main/gbc/gbi.c:161: undefined reference to `lt_dlerror' collect2: ld returned 1 exit status make[2]: *** [gbi2] Error 1 make[2]: Leaving directory `/home/user/gambas2-2.18.0/main/gbc' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/user/gambas2-2.18.0/main' make: *** [install-recursive] Error 1 From gambas at ...1... Mon Nov 23 17:32:30 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 Nov 2009 17:32:30 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <4B0AB7AC.4050304@...2324...> References: <200911231702.03967.gambas@...1...> <4B0AB7AC.4050304@...2324...> Message-ID: <200911231732.30854.gambas@...1...> > Thanks for your quickly response.... > attached to this email the output of ./configure and make > Regards > Beno?t Minisini ha scritto: > > Hi ! > > I tried to build gambas for ARM, but the Make the procedure give me > this error: > > make[4]: Entering directory `/home/user/gambas2-2.18.0/main/gbc' > /bin/sh ../libtool --tag=CC --mode=link gcc > -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value > -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o > gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o > gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl > libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall > -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os > -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o > gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o > gbi2-gbi.o -ldl > gbi2-gbi.o: In function `analyze_native_component': > /home/user/gambas2-2.18.0/main/gbc/gbi.c:360: undefined reference to > `lt_dlopenext' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:363: undefined reference to > `lt_dlerror' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:367: undefined reference to > `lt_dlsym' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:375: undefined reference to > `lt_dlsym' > gbi2-gbi.o: In function `init': > /home/user/gambas2-2.18.0/main/gbc/gbi.c:160: undefined reference to > `lt_dlinit' > /home/user/gambas2-2.18.0/main/gbc/gbi.c:161: undefined reference to > `lt_dlerror' > collect2: ld returned 1 exit status > make[4]: *** [gbi2] Error 1 > make[4]: Leaving directory `/home/user/gambas2-2.18.0/main/gbc' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/user/gambas2-2.18.0/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/user/gambas2-2.18.0/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/user/gambas2-2.18.0' > make: *** [all] Error 2 > > > How I can solve ? > > Thanks > > > > Please provide the full output of ./configure and make. I have no ARM > there, so I need as many informations as possible to help you. > > Regards, > What is the output if you type: $ ./config.guess in the gambas source directory? -- Beno?t Minisini From matteo.lisi at ...2324... Mon Nov 23 17:37:18 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Mon, 23 Nov 2009 17:37:18 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <200911231732.30854.gambas@...1...> References: <200911231702.03967.gambas@...1...> <4B0AB7AC.4050304@...2324...> <200911231732.30854.gambas@...1...> Message-ID: <4B0ABA3E.200@...2324...> The output is: i686-pc-linux-gnu Beno?t Minisini ha scritto: Thanks for your quickly response.... attached to this email the output of ./configure and make Regards Beno?t Minisini ha scritto: Hi ! I tried to build gambas for ARM, but the Make the procedure give me this error: make[4]: Entering directory `/home/user/gambas2-2.18.0/main/gbc' /bin/sh ../libtool --tag=CC --mode=link gcc -DGAMBAS_PATH="\"/usr/local/bin\"" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl libtool: link: gcc -DGAMBAS_PATH=\"/usr/local/bin\" -pipe -Wall -Wno-unused-value -Wcast-align -fsigned-char -fvisibility=hidden -g -Os -I../share -o gbi2 gbi2-gb_error.o gbi2-gb_alloc.o gbi2-gb_array.o gbi2-gb_str.o gbi2-gb_file.o gbi2-gb_table.o gbi2-gb_common.o gbi2-gbi.o -ldl gbi2-gbi.o: In function `analyze_native_component': /home/user/gambas2-2.18.0/main/gbc/gbi.c:360: undefined reference to `lt_dlopenext' /home/user/gambas2-2.18.0/main/gbc/gbi.c:363: undefined reference to `lt_dlerror' /home/user/gambas2-2.18.0/main/gbc/gbi.c:367: undefined reference to `lt_dlsym' /home/user/gambas2-2.18.0/main/gbc/gbi.c:375: undefined reference to `lt_dlsym' gbi2-gbi.o: In function `init': /home/user/gambas2-2.18.0/main/gbc/gbi.c:160: undefined reference to `lt_dlinit' /home/user/gambas2-2.18.0/main/gbc/gbi.c:161: undefined reference to `lt_dlerror' collect2: ld returned 1 exit status make[4]: *** [gbi2] Error 1 make[4]: Leaving directory `/home/user/gambas2-2.18.0/main/gbc' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/user/gambas2-2.18.0/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/user/gambas2-2.18.0/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/gambas2-2.18.0' make: *** [all] Error 2 How I can solve ? Thanks Please provide the full output of ./configure and make. I have no ARM there, so I need as many informations as possible to help you. Regards, What is the output if you type: $ ./config.guess in the gambas source directory? From gambas at ...1... Mon Nov 23 17:49:49 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 Nov 2009 17:49:49 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <4B0ABA3E.200@...2324...> References: <200911231732.30854.gambas@...1...> <4B0ABA3E.200@...2324...> Message-ID: <200911231749.49829.gambas@...1...> > The output is: > i686-pc-linux-gnu > Beno?t Minisini ha scritto: > Is it normal, as you are compiling for ARM? -- Beno?t Minisini From jredrejo at ...1238... Mon Nov 23 17:56:02 2009 From: jredrejo at ...1238... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo_Rodr=C3=ADguez?=) Date: Mon, 23 Nov 2009 17:56:02 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <200911231749.49829.gambas@...1...> References: <200911231732.30854.gambas@...1...> <4B0ABA3E.200@...2324...> <200911231749.49829.gambas@...1...> Message-ID: <8eb28a500911230856ge17e183t361fd0f31f8a6b6a@...627...> Matteo, you should add: --host=arm-linux-gnueabi --build=arm-linux-gnueabi to your ./configure call. Anyway, at https://buildd.debian.org/fetch.cgi?pkg=gambas2;ver=2.17.0-1;arch=armel;stamp=1256678530you can see a complete compilation of gambas in armel. Maybe it helps you. Regards. Jos? L. 2009/11/23 Beno?t Minisini > > The output is: > > i686-pc-linux-gnu > > Beno?t Minisini ha scritto: > > > > Is it normal, as you are compiling for ARM? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From matteo.lisi at ...2324... Mon Nov 23 21:28:16 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Mon, 23 Nov 2009 21:28:16 +0100 Subject: [Gambas-user] Problems on gambas building for ARM In-Reply-To: <8eb28a500911230856ge17e183t361fd0f31f8a6b6a@...627...> References: <200911231732.30854.gambas@...1...> <4B0ABA3E.200@...2324...> <200911231749.49829.gambas@...1...> <8eb28a500911230856ge17e183t361fd0f31f8a6b6a@...627...> Message-ID: <4B0AF060.8010901@...2324...> Thanks for your reply... I have to run a gambas script on an ARM system. My goal is pass a text script on this system that use gambas for execute it. For do this I had to compile the gambas interpreter for ARM architecture. I did this steps, please tell me where I made a mistake: 1)Download the last gambas source code 2)I call ./configure --host=arm-none-linux-gnueabi (with some disable flag , I don't need the Gambas gui support for example) 3)I run make (and i have the first error that I post) If I call ./configure with --host=arm-none-linux-gnueabi --build=arm-none-linux-gnueabi the configure return me: If you meant to crosscompile use '--host' I'm sorry but It's first time that I try to crosscompile something and I have to understand many things yet.. Jos? Luis Redrejo Rodr?guez ha scritto: Matteo, you should add: --host=arm-linux-gnueabi --build=arm-linux-gnueabi to your ./configure call. Anyway, at [1]https://buildd.debian.org/fetch.cgi?pkg=gambas2;ver=2.17.0-1;arch=armel;stam p=1256678530you can see a complete compilation of gambas in armel. Maybe it helps you. Regards. Jos? L. 2009/11/23 Beno?t Minisini [2] The output is: i686-pc-linux-gnu Beno?t Minisini ha scritto: Is it normal, as you are compiling for ARM? -- Beno?t Minisini ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. [3]http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [4]Gambas-user at lists.sourceforge.net [5]https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. [6]http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [7]Gambas-user at lists.sourceforge.net [8]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. https://buildd.debian.org/fetch.cgi?pkg=gambas2;ver=2.17.0-1;arch=armel;stamp=1256678530you 2. mailto:gambas at ...1... 3. http://p.sf.net/sfu/bobj-july 4. mailto:Gambas-user at lists.sourceforge.net 5. https://lists.sourceforge.net/lists/listinfo/gambas-user 6. http://p.sf.net/sfu/bobj-july 7. mailto:Gambas-user at lists.sourceforge.net 8. https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at ...626... Mon Nov 23 21:36:35 2009 From: demosthenesk at ...626... (Demosthenes Koptsis) Date: Mon, 23 Nov 2009 22:36:35 +0200 Subject: [Gambas-user] Gambas as firefox plugin !!! Message-ID: Hi i have an idea but u will tell me if it is good or not. I saw the latest Quake game, named quake live http://www.quakelive.com/ The game is based on a firefox plugin and i wonder if Gambas applications can be run in a Gambas firefox plugin? Is this idea good? If there is a Gambas web browser plugin then the Gambas will be the first Basic language that can be run everywhere due to browser (firefox) and will have not limited only to Linux. Also this means that programmers can write easy known Basic applications that can be run in any hardware that runs a browser (any device from cell phone to pc). The hard work is to create such a Gambas (Basic) plugin for browsers. So tell is it a good idea? Is it possible something like that? -- ???? ???? ?? ?????!!! Regards, Demosthenes Koptsis From gambas.fr at ...626... Mon Nov 23 22:56:12 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 23 Nov 2009 22:56:12 +0100 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: References: Message-ID: <6324a42a0911231356j2a9b6d60l57742b697f2507cd@...627...> i think a better idea will be to allow gambas to generate ecma-script code... 2009/11/23 Demosthenes Koptsis : > Hi i have an idea but u will tell me if it is good or not. > > I saw the latest Quake game, named quake live > http://www.quakelive.com/ > > The game is based on a firefox plugin and i wonder if Gambas > applications can be run in a Gambas firefox plugin? > > Is this idea good? > If there is a Gambas web browser plugin then the Gambas will be the > first Basic language that can be run everywhere due to browser > (firefox) and will have not limited only to Linux. > > Also this means that programmers can write easy known Basic > applications that can be run in any hardware that runs a browser (any > device from cell phone to pc). > > The hard work is to create such a Gambas (Basic) plugin for browsers. > > So tell is it a good idea? > Is it possible something like that? > > -- > > ???? ???? ?? ?????!!! > > Regards, > > Demosthenes Koptsis > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Nov 23 22:57:42 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 23 Nov 2009 22:57:42 +0100 Subject: [Gambas-user] Either I am blind or... In-Reply-To: <200911231153.19992.gambas@...1...> References: <200911222218.02032.gambas@...1...> <200911231153.19992.gambas@...1...> Message-ID: <6324a42a0911231357x4074a2a3x588da3ea21aa3d05@...627...> http://library.gnome.org/devel/gtk/stable/GtkTearoffMenuItem.html it seem to have no need of special management ... just adding a special menu item in the submenu. From rterry at ...1946... Mon Nov 23 23:00:05 2009 From: rterry at ...1946... (richard terry) Date: Tue, 24 Nov 2009 09:00:05 +1100 Subject: [Gambas-user] File i/o problems Message-ID: <200911240900.05920.rterry@...1946...> Wonder if anyone could tell me why this comes up with the error 'type mismatch, wanted byte got a string' Image path would be something like /tmp/myimage.png Dim hFile As Stream hfile = Open ImagePath For Input While Not Eof(hFile) Read #hFile, buffer, Lof(hFile) **dies here with: 'type mismatch, wanted byte got a string' Thanks in anticipation. Regards Richard From nospam.nospam.nospam at ...626... Mon Nov 23 23:06:00 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 09:06:00 +1100 Subject: [Gambas-user] Gambas as firefox plugin !!! References: Message-ID: Demosthenes Koptsis wrote: > Hi i have an idea but u will tell me if it is good or not. > > I saw the latest Quake game, named quake live > http://www.quakelive.com/ > > The game is based on a firefox plugin and i wonder if Gambas > applications can be run in a Gambas firefox plugin? > > Is this idea good? My opinion is that it is a terrible idea. For starters, how do you plan to install the runtime libraries, using sudo apt-get or distribute the libraries as as part of the plugin? And once you've decided that, how many hours will users on slow connections have to wait while umpteen megabytes of support libraries are downloaded and installed? > If there is a Gambas web browser plugin then the Gambas will be the > first Basic language that can be run everywhere due to browser > (firefox) and will have not limited only to Linux. Really? So you plan to run a Google-sized freenx server farm for Windows users then? > Also this means that programmers can write easy known Basic > applications that can be run in any hardware that runs a browser (any > device from cell phone to pc). > > The hard work is to create such a Gambas (Basic) plugin for browsers. No. The hard work is going to be convincing you that it simply is not going to work. At all. > So tell is it a good idea? No, it is not a good idea. > Is it possible something like that? How much money have you got to spare? From nospam.nospam.nospam at ...626... Mon Nov 23 23:06:48 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 09:06:48 +1100 Subject: [Gambas-user] Either I am blind or... References: <200911222218.02032.gambas@...1...><200911231153.19992.gambas@...1...> <6324a42a0911231357x4074a2a3x588da3ea21aa3d05@...627...> Message-ID: <82C54E4AF5E24BCA8C0E4C58BDF5AC08@...2330...> Fabien Bodard wrote: > http://library.gnome.org/devel/gtk/stable/GtkTearoffMenuItem.html > > it seem to have no need of special management ... just adding a > special menu item in the submenu. Perhaps, but Benoit said he couldn't make it work. > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment > - and focus on what you do best, core application coding. Discover > what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From marcel.duffau at ...626... Mon Nov 23 23:07:41 2009 From: marcel.duffau at ...626... (Vackoy) Date: Mon, 23 Nov 2009 14:07:41 -0800 (PST) Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <6324a42a0911231356j2a9b6d60l57742b697f2507cd@...627...> References: <6324a42a0911231356j2a9b6d60l57742b697f2507cd@...627...> Message-ID: <26486874.post@...1379...> I think is an excellent idea but i don't know if it is possible. Sorry my ignorance but what is an ecma-script code?? Marcel -- View this message in context: http://old.nabble.com/Gambas-as-firefox-plugin-%21%21%21-tp26485369p26486874.html Sent from the gambas-user mailing list archive at Nabble.com. From sourceforge-raindog2 at ...94... Mon Nov 23 23:19:44 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 23 Nov 2009 17:19:44 -0500 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <26486874.post@...1379...> References: <6324a42a0911231356j2a9b6d60l57742b697f2507cd@...627...> <26486874.post@...1379...> Message-ID: <200911231719.44346.sourceforge-raindog2@...94...> On Monday 23 November 2009 05:07 pm, Vackoy wrote: > I think is an excellent idea but i don't know if it is possible. > Sorry my ignorance but what is an ecma-script code?? ECMAscript is the language used in web browsers as "Javascript" and in Flash applets as "Actionscript". I don't really think crosscompiling Gambas code to Javascript makes any more sense than crosscompiling Gambas code to Java. Rob From gambas at ...1... Mon Nov 23 23:29:29 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 Nov 2009 23:29:29 +0100 Subject: [Gambas-user] File i/o problems In-Reply-To: <200911240900.05920.rterry@...1946...> References: <200911240900.05920.rterry@...1946...> Message-ID: <200911232329.29774.gambas@...1...> > Wonder if anyone could tell me why this comes up with the error > 'type mismatch, wanted byte got a string' > > Image path would be something like /tmp/myimage.png > > Dim hFile As Stream > > hfile = Open ImagePath For Input > > While Not Eof(hFile) > Read #hFile, buffer, Lof(hFile) **dies here > with: > > 'type mismatch, wanted byte got a string' > > Thanks in anticipation. > > Regards > > Richard > The syntax of READ and WRITE has changed since revision 2344. Read the wiki documentation about READ and WRITE for the details. And I suggest you subscribe to the gambas-devel-svn mailing-list so that you can follow what changes in the development version day after day. Regards, -- Beno?t Minisini From gambas at ...1... Mon Nov 23 23:31:27 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 23 Nov 2009 23:31:27 +0100 Subject: [Gambas-user] Either I am blind or... In-Reply-To: <82C54E4AF5E24BCA8C0E4C58BDF5AC08@...2330...> References: <6324a42a0911231357x4074a2a3x588da3ea21aa3d05@...627...> <82C54E4AF5E24BCA8C0E4C58BDF5AC08@...2330...> Message-ID: <200911232331.27526.gambas@...1...> > Fabien Bodard wrote: > > http://library.gnome.org/devel/gtk/stable/GtkTearoffMenuItem.html > > > > it seem to have no need of special management ... just adding a > > special menu item in the submenu. > > Perhaps, but Benoit said he couldn't make it work. > I said that for Qt4, it seems to be buggy. But for GTK+ I didn't notice that there was a special menu item class for that. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Mon Nov 23 23:38:13 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 09:38:13 +1100 Subject: [Gambas-user] PING > Benoit - GUI Programming Productivity Feature Request Message-ID: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> Benoit, The Gambas programming environment would offer a major productivity boost to developers if code Bookmarks were supported in the text editor. Using my own situation as an example, where I am porting a Windows app that has 300+ classes and close to 120,000 lines of code, it is next to impossible to find related code when one is making a significant change. As an example, I might put a break point in the code and use the debug backtrace to walk my way back through the code looking for code parts that may be affected by my proposed change. Alternatively I might put an early break point in and forward trace the code by using debug stepping. In both cases I currently have to put manual comments in that are coded in a way so that they can be searched or I have to write down the references then go looking for them again when I'm ready to make the change, and that just takes up an awful lot of time that could otherwise be avoided by support for bookmarks. Even on a small project, having no support for bookmarks means you can't set visual clues in your code, so even when you're trying to find something simple you still have to continually scan the code by eye to find the exact spot you know was there earlier. What would it take to convince you to consider implementing such a feature? Of course, the book marks would need to be saved so that they are available the next time the project is opened in the development environment. Wine? Women? Song? Money? Or commonsense? :) From sourceforge-raindog2 at ...94... Tue Nov 24 02:33:58 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 23 Nov 2009 20:33:58 -0500 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: References: Message-ID: <200911232033.58527.sourceforge-raindog2@...94...> On Monday 23 November 2009 05:06 pm, nospam.nospam.nospam at ...626... wrote: > My opinion is that it is a terrible idea. For starters, how do you plan > to install the runtime libraries, using sudo apt-get or distribute the > libraries as as part of the plugin? And once you've decided that, how > many hours will users on slow connections have to wait while umpteen > megabytes of support libraries are downloaded and installed? Gambas as a plugin would have to include the barest minimum of components (maybe just SDL, some embeddable database, etc., and the Gambas-based components that require only those) and those components would have to all be based on libraries that can be statically linked, like all the other Netscape-style plugins out there. But having such a limited subset of components would keep the plugin pretty small in modern terms, certainly far smaller than Java, for example. And as with Java, there would have to be a mechanism for downloading other software components, whether at each runtime or cached on the disk. > > If there is a Gambas web browser plugin then the Gambas will be the > > first Basic language that can be run everywhere due to browser > > (firefox) and will have not limited only to Linux. > Really? So you plan to run a Google-sized freenx server farm for Windows > users then? Gambas has been built successfully under Windows, though getting gb.sdl and friends to work would be left as an exercise for.... well, someone who has a Windows machine, for starters. Not most people here. Still, that is possible. (Original poster wrote:) > > Also this means that programmers can write easy known Basic > > applications that can be run in any hardware that runs a browser (any > > device from cell phone to pc). This is a misconception: most cell phone browsers do not support Netscape- style plugins, and those that do (like the Palm Pre's) don't support standard x86 Netscape-style plugins. While I disagree with Mr. Nameless Angry Guy about the reasons why this isn't a sound idea, I do agree that it probably won't work too well. 1. This method of popularizing a language has been tried before with Tcl and Perl (probably others too, but those are the ones I know). I think that in both cases, it did more damage to the language's reputation than good, because of the impression it gives of "me too". 2. The functionality that would have to be removed to make it self- contained and small would take away a lot of its selling points. 3. Gambas hasn't been written with sandboxing or any other particular security concerns in mind. You need that in a language implemented as a browser plugin. 4. Plugins to add browser functionality are on their way out thanks to HTML5 and greater attention paid to standards by every vendor except Microsoft. In another year or two, even Flash will be regarded as a legacy technology as more people start running browsers with native video support. That said, I did start playing around with trying to hack the Gambas interpreter into a Palm Pre WebOS-compatible ARM Netscape plugin, since plugins are literally the only way to put non-Javascript code in your WebOS application. Didn't get very far (got hung up on the same ARM crosscompilation issue as someone else who recently posted, before even making any code changes). But I'm still looking at doing that, as well as trying to get a minimal Gambas/gb.sdl Nintendo DS port going which would be tougher, with little to no POSIX compatibility available. Rob From nospam.nospam.nospam at ...626... Tue Nov 24 04:14:32 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 14:14:32 +1100 Subject: [Gambas-user] Gambas as firefox plugin !!! References: <200911232033.58527.sourceforge-raindog2@...94...> Message-ID: Rob wrote: > Gambas as a plugin would have to include the barest minimum of > components The runtime counts as "umpteen megabytes of support libraries." > Still, that is possible. I didn't say it wasn't possible. I did imply it would be a time/money expensive endeavour. > While I disagree with Mr. Nameless Angry Guy Hey, I'm not angry. I'm to the point. You know, succinct, concise? Big difference there, Rob. Plus opinion was requested. Opinions do not need to have any basis in fact whatsoever. > That said, There was a lot of it said, hey. I prefer to get to the point but, when I do that, some people infer angry emotions that aren't there. > I did start playing around So did I but my wife caught me. From nospam.nospam.nospam at ...626... Tue Nov 24 04:24:54 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 14:24:54 +1100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar Message-ID: I can't find an answer to this problem, except for an old post on this list in French. My French is rustier than the wreck of the Titanic but I got the impression that the building of window title bars is under the control of the WM. Anyway, I have a window and I need to remove the Minimise button. The maximise button I have dealt with. Oddly, in the gambas design environment the window shows with only the close box, which will do, but as soon as I run the application, there's the pesky Minimise button again. Does anyone care to shed some light on this, please? From 12ukwn at ...626... Tue Nov 24 05:51:57 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 24 Nov 2009 05:51:57 +0100 Subject: [Gambas-user] keep forms into a form Message-ID: <4B0B666D.7010609@...626...> Hi, Is there a manner to keep my forms into my main form? other than using a workspace that apparently force children to appear as tabs. And to have them as icons (or anything else) into this main form when minimized? JY -- Every time you manage to close the door on Reality, it comes in through the window. From sourceforge-raindog2 at ...94... Tue Nov 24 06:37:05 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 24 Nov 2009 00:37:05 -0500 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: References: <200911232033.58527.sourceforge-raindog2@...94...> Message-ID: <200911240037.05880.sourceforge-raindog2@...94...> On Monday 23 November 2009 10:14 pm, nospam.nospam.nospam at ...626... wrote: > I do that, some people infer angry emotions that aren't there. Just because you're denying them doesn't mean they're not there. I wish you the best of luck with your healing process, at such time as you choose to embark upon it. Rob From nospam.nospam.nospam at ...626... Tue Nov 24 07:37:01 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 17:37:01 +1100 Subject: [Gambas-user] Gambas as firefox plugin !!! References: <200911232033.58527.sourceforge-raindog2@...94...> <200911240037.05880.sourceforge-raindog2@...94...> Message-ID: <200CBE13558A4E059052FBB89D0DAD5A@...2330...> Rob wrote: > On Monday 23 November 2009 10:14 pm, nospam.nospam.nospam at ...626... > wrote: >> I do that, some people infer angry emotions that aren't there. > > Just because you're denying them doesn't mean they're not there. I > wish > you the best of luck with your healing process, at such time as you > choose to embark upon it. lol From nospam.nospam.nospam at ...626... Tue Nov 24 07:44:18 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 17:44:18 +1100 Subject: [Gambas-user] keep forms into a form References: <4B0B666D.7010609@...626...> Message-ID: Jean-Yves F. Barbier wrote: > Hi, > > Is there a manner to keep my forms into my main form? > other than using a workspace that apparently force children > to appear as tabs. > And to have them as icons (or anything else) into this main > form when minimized? Rob wrote one for Gambas 1x some years ago as an add-on. I have no idea if it's been maintained so you'll have to wait for him to comment on that bit. Gambas, and rightly so IMO, chose to stay away from the traditional MDI interface, probably because they feel the same way about MDI as I do. My opinion is [CENSORED]. From shordi at ...626... Tue Nov 24 09:44:59 2009 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Tue, 24 Nov 2009 09:44:59 +0100 Subject: [Gambas-user] keep forms into a form In-Reply-To: References: <4B0B666D.7010609@...626...> Message-ID: Perhaps you can create your forms an store then in a array of variant[] in the Tag property of the main form. I can't see why it doesn't work... by I've do not try it. Regards 2009/11/24 > Jean-Yves F. Barbier wrote: > > Hi, > > > > Is there a manner to keep my forms into my main form? > > other than using a workspace that apparently force children > > to appear as tabs. > > And to have them as icons (or anything else) into this main > > form when minimized? > > Rob wrote one for Gambas 1x some years ago as an add-on. I have no idea if > it's been maintained so you'll have to wait for him to comment on that bit. > > Gambas, and rightly so IMO, chose to stay away from the traditional MDI > interface, probably because they feel the same way about MDI as I do. My > opinion is [CENSORED]. > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Nov 24 10:17:27 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 24 Nov 2009 10:17:27 +0100 Subject: [Gambas-user] keep forms into a form In-Reply-To: References: <4B0B666D.7010609@...626...> Message-ID: <6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> 2009/11/24 : > Jean-Yves F. Barbier wrote: >> Hi, >> >> Is there a manner to keep my forms into my main form? >> other than using a workspace that apparently force children >> to appear as tabs. >> And to have them as icons (or anything else) into this main >> form when minimized? > > Rob wrote one for Gambas 1x some years ago as an add-on. I have no idea if > it's been maintained so you'll have to wait for him to comment on that bit. > > Gambas, and rightly so IMO, chose to stay away from the traditional MDI > interface, probably because they feel the same way about MDI as I do. My > opinion is [CENSORED]. Right ! in the gb1 version, the workspace component was like the windows one ... with child windows.. in a working area... But it was too hardly linked to qt ... and not really used in Linux common interfaces... So Benoit and many of us, after a long long exchange of mail, have take the decision to use a tabbed MDI interface... Like you can see in the gambas ide, gedit, kate, quanta, web broswers, etc So, i think you can try to construct your interface around this idea > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From steven at ...1652... Tue Nov 24 10:07:23 2009 From: steven at ...1652... (Steven revimmo) Date: Tue, 24 Nov 2009 10:07:23 +0100 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <200CBE13558A4E059052FBB89D0DAD5A@...2330...> References: <200911232033.58527.sourceforge-raindog2@...94...> <200911240037.05880.sourceforge-raindog2@...94...> <200CBE13558A4E059052FBB89D0DAD5A@...2330...> Message-ID: <1259053643.6495.28.camel@...1936...> Hi, I think it would be the best thing ever. I did a lot of gambas development for one of my companies. The problem came with installation. We have sites all over France and all kinds of systems (Linux, Max, Windoze, ... whatever) I just could not maintain all that, it was to much work, to much traveling. So, I switched to eyeOS ( http://www.eyeos.org ). A cloud system that works very nice. It's true, the only thing really in common on all the user systems is a browser, and I think IE and Firefox are compatible enough to make things running smoothly. In eyeOS, the server-side is completely done in PHP, which is a nice language. It would, however be great to be able to use gambas there. This means that the widgets they made (eyeOS team) should communicate with gambas in stead of php. That would not be very hard to do, I think. However, the widgets they have now, do not have to do much with the quality of f.i. Qt widgets. As an example : The combo box only allows a list of items to choose from, not to enter new items. The grid-control is really really extremely basic. But it should be possible to improve that easy (if you know javascript / ecma ) well. F.i. the widgets of http://www.tecnick.com are a LOT better, I don't know there policy, but if one could use them, writing the gambas part would be a piece of cake ! So, for me it boils down to a question of widgets, a surmountable problem, that would give us an excellent platform with gambas to make cloud applications ! Steven ps: and you would not need any 'plugins' for Firefox, Ie or any other browser. Le mardi 24 novembre 2009 ? 17:37 +1100, nospam.nospam.nospam at ...626... a ?crit : > Rob wrote: > > On Monday 23 November 2009 10:14 pm, nospam.nospam.nospam at ...626... > > wrote: > >> I do that, some people infer angry emotions that aren't there. > > > > Just because you're denying them doesn't mean they're not there. I > > wish > > you the best of luck with your healing process, at such time as you > > choose to embark upon it. > > lol > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Tue Nov 24 11:04:11 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 24 Nov 2009 11:04:11 +0100 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <1259053643.6495.28.camel@...1936...> References: <200911232033.58527.sourceforge-raindog2@...94...> <200911240037.05880.sourceforge-raindog2@...94...> <200CBE13558A4E059052FBB89D0DAD5A@...2330...> <1259053643.6495.28.camel@...1936...> Message-ID: <6324a42a0911240204k32d37a1fg800b1194e21cb4ba@...627...> the google team idea seem to be the same ... cloud systems ... that's why gambas need to be a server side language that have some componants to design java/css2 widgets... for broswer interfaces... That's the idea of Benoit too i think... 2009/11/24 Steven revimmo : > Hi, > > I think it would be the best thing ever. > I did a lot of gambas development for one of my companies. > The problem came with installation. We have sites all over France and > all kinds of systems > (Linux, Max, Windoze, ... whatever) > > I just could not maintain all that, it was to much work, to much > traveling. > > So, I switched to eyeOS ( http://www.eyeos.org ). A cloud system that > works very nice. > It's true, the only thing really in common on all the user systems is a > browser, and I think > IE and Firefox are compatible enough to make things running smoothly. > > In eyeOS, the server-side is completely done in PHP, which is a nice > language. > It would, however be great to be able to use gambas there. > > This means that the widgets they made (eyeOS team) should communicate > with gambas in > stead of php. That would not be very hard to do, I think. > However, the widgets they have now, do not have to do much with the > quality of f.i. Qt widgets. > As an example : The combo box only allows a list of items to choose > from, not to enter > new items. The grid-control is really really extremely basic. > > But it should be possible to improve that easy (if you know javascript / > ecma ) well. > F.i. the widgets of http://www.tecnick.com are a LOT better, I don't > know there policy, but > if one could use them, writing the gambas part would be a piece of > cake ! > > So, for me it boils down to a question of widgets, a surmountable > problem, that would give us > an excellent platform with gambas to make cloud applications ! > > Steven > ps: and you would not need any 'plugins' for Firefox, Ie or any other > browser. > > > > Le mardi 24 novembre 2009 ? 17:37 +1100, nospam.nospam.nospam at ...626... > a ?crit : > >> Rob wrote: >> > On Monday 23 November 2009 10:14 pm, nospam.nospam.nospam at ...626... >> > wrote: >> >> ?I do that, some people infer angry emotions that aren't there. >> > >> > Just because you're denying them doesn't mean they're not there. ?I >> > wish >> > you the best of luck with your healing process, at such time as you >> > choose to embark upon it. >> >> lol >> >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue Nov 24 11:05:48 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 24 Nov 2009 11:05:48 +0100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar In-Reply-To: References: Message-ID: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> gambas version ? 2009/11/24 : > I can't find an answer to this problem, except for an old post on this list > in French. My French is rustier than the wreck of the Titanic but I got the > impression that the building of window title bars is under the control of > the WM. > > Anyway, I have a window and I need to remove the Minimise button. The > maximise button I have dealt with. Oddly, in the gambas design environment > the window shows with only the close box, which will do, but as soon as I > run the application, there's the pesky Minimise button again. > > Does anyone care to shed some light on this, please? > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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 Nov 24 11:10:00 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 21:10:00 +1100 Subject: [Gambas-user] keep forms into a form References: <4B0B666D.7010609@...626...> Message-ID: <4B575EBFCF8547069BE5E45A17CCCE18@...2330...> Jorge Carri?n wrote: > Perhaps you can create your forms an store then in a array of > variant[] in the Tag property of the main form. Perhaps he can, but is that going to give him what he wants? > I can't see why it doesn't work... by I've do not try it. [CENSORED] From nospam.nospam.nospam at ...626... Tue Nov 24 11:23:57 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 21:23:57 +1100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> Message-ID: Fabien Bodard wrote: > gambas version ? The latest, of course. 2.17. From nospam.nospam.nospam at ...626... Tue Nov 24 11:23:29 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 21:23:29 +1100 Subject: [Gambas-user] keep forms into a form References: <4B0B666D.7010609@...626...> <6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> Message-ID: Fabien Bodard wrote: > 2009/11/24 : >> Jean-Yves F. Barbier wrote: >>> Hi, >>> >>> Is there a manner to keep my forms into my main form? >>> other than using a workspace that apparently force children >>> to appear as tabs. >>> And to have them as icons (or anything else) into this main >>> form when minimized? >> >> Rob wrote one for Gambas 1x some years ago as an add-on. I have no >> idea if it's been maintained so you'll have to wait for him to >> comment on that bit. >> >> Gambas, and rightly so IMO, chose to stay away from the traditional >> MDI interface, probably because they feel the same way about MDI as >> I do. My opinion is [CENSORED]. > > Right ! :) > in the gb1 version, the workspace component was like the windows one > ... with child windows.. in a working area... > > But it was too hardly linked to qt ... and not really used in Linux > common interfaces... So Benoit and many of us, after a long long > exchange of mail, have take the decision to use a tabbed MDI > interface... Like you can see in the gambas ide, gedit, kate, quanta, > web broswers, etc Look, I cut my teeth on DOS before Windows was even dreamt of. The win3 MDI interface was the best anyone could come up with two full decades ago. Even Microsoft dropped it in SP2 (IIRC) of XP. If you knew the right call in SP1, your whole XP looked like win3, but its use was so rare that even MS had to kill it, several years ago. PS: I am a reformed windows developer of many decades experience. I had a hold of win3 when it was at 1.1. Back then, it was an advancement. Not now, it's just a few strides back. > So, i think you can try to construct your interface around this idea Oh, good grief! I would never do such a thing! :) About this: > and not really used in Linux > common interfaces IMO, there far too many attempts to make linux UIs look like Windows, KDE being one of them. After 30+ years in IT, and 25 years or so experience with Windows before it became well-known, Gnome is a Godsend. And it was a smart, pre-emptive move. Oh. I used to work for Ashton-Tate, now Borland. That's how I got my hands on Windows before anyone else. LONG LIVE LINUX! LONG LIVE GAMBAS! Even if Rob Kudla does think I'm an angry so and so. From matteo.lisi at ...2324... Tue Nov 24 11:54:48 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Tue, 24 Nov 2009 11:54:48 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> Message-ID: <4B0BBB78.5070201@...2324...> Hi ! Finally I crosscompiled the gambas for ARM, and I have on my arm system the "gbc2" file I tried to execute the following script: /**********************************************************************/ #!/usr/bin/ gbs2 ' This script returns the memory really used by the system, the cache and swap being excluded. FUNCTION GetUsedMemory() AS Integer DIM sRes AS String DIM aRes AS String[] DIM cVal AS NEW Collection DIM sVal AS String EXEC ["cat", "/proc/meminfo"] TO sRes FOR EACH sVal IN Split(sRes, "\n", "", TRUE) aRes = Split(sVal, " ", "", TRUE) cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) NEXT RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached END PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) /**********************************************************************/ but the gbc2 return me: gbc: project file not found: /gambas_prove/.project Where I made mistake ? From nospam.nospam.nospam at ...626... Tue Nov 24 11:57:04 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 21:57:04 +1100 Subject: [Gambas-user] Gambas as firefox plugin !!! References: <200911232033.58527.sourceforge-raindog2@...94...><200911240037.05880.sourceforge-raindog2@...94...><200CBE13558A4E059052FBB89D0DAD5A@...2330...> <1259053643.6495.28.camel@...1936...> Message-ID: Steven revimmo wrote: > So, for me it boils down to a question of widgets, a surmountable > problem, You don't read much of what Benoit has to say? Nor do you know much about Microsoft? They are questions, not assertions. > that would give us > an excellent platform with gambas to make cloud applications ! The "cloud" is a buzzword for storing your very private super sekrit stuff, such as pictures of your nekkid lover where your wife can't find them, on a server that offers no guarantee of any privacy whatosever, let alone any availability. Perhaps you are recently new to the world of computing? > Steven > ps: and you would not need any 'plugins' for Firefox, Ie or any other > browser. You assume that MS would convert windows to widgets? And kill their own monoply by their own free choice. Are you aware that even such a lowly entity as a label is a window in Windows? Perhaps not. From doriano.blengino at ...1909... Tue Nov 24 11:59:01 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 24 Nov 2009 11:59:01 +0100 Subject: [Gambas-user] keep forms into a form In-Reply-To: References: <4B0B666D.7010609@...626...> <6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> Message-ID: <4B0BBC75.2030802@...1909...> nospam.nospam.nospam at ...626... ha scritto: > Fabien Bodard wrote: > >> 2009/11/24 : >> >>> Jean-Yves F. Barbier wrote: >>> >>>> Hi, >>>> >>>> Is there a manner to keep my forms into my main form? >>>> other than using a workspace that apparently force children >>>> to appear as tabs. >>>> And to have them as icons (or anything else) into this main >>>> form when minimized? >>>> >> So, i think you can try to construct your interface around this idea >> > > Oh, good grief! I would never do such a thing! > I think he would mean "construct your interface around this new idea", i.e. tabs, not old MDI. It seems to me that this MDI interface is too much criticized. The classic workspace has its limits too; perhaps something in the middle should be the best. Think at your desktop: isn't it an MDI interface? Win32, gnome, kde, all are MDI interfaces. How would you feel with a desktop made up as a gambas workspace? If an app has something in common with a desktop (ie, many windows, of many types, and drag and drop between them), then an MDI interface is not so bad. Just trying to see the other face of the coin - if all the people say MDI is bad, why one should join without thinking a little more? Regards, Doriano From nospam.nospam.nospam at ...626... Tue Nov 24 11:59:24 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 21:59:24 +1100 Subject: [Gambas-user] Gambas script execution References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...> Message-ID: <7FBEFA8C0A6743659C2C7BCF53703B83@...2330...> Matteo Lisi wrote: > Hi ! > > Finally I crosscompiled the gambas for ARM, and I have on my arm > system > the "gbc2" file > > I tried to execute the following script: > > /**********************************************************************/ > #!/usr/bin/ gbs2 > > ' This script returns the memory really used by the system, the cache > and swap being excluded. > > FUNCTION GetUsedMemory() AS Integer > > DIM sRes AS String > DIM aRes AS String[] > DIM cVal AS NEW Collection > DIM sVal AS String > > EXEC ["cat", "/proc/meminfo"] TO sRes > > FOR EACH sVal IN Split(sRes, "\n", "", TRUE) > aRes = Split(sVal, " ", "", TRUE) > cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) > NEXT > > RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + > cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached > > END > > PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) > /**********************************************************************/ > > but the gbc2 return me: > > gbc: project file not found: /gambas_prove/.project > > Where I made mistake ? What do you see in /gambas_prove/.project when you show hidden files? From matteo.lisi at ...2324... Tue Nov 24 12:12:48 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Tue, 24 Nov 2009 12:12:48 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <7FBEFA8C0A6743659C2C7BCF53703B83@...2330...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...> <7FBEFA8C0A6743659C2C7BCF53703B83@...2330...> Message-ID: <4B0BBFB0.4070101@...2324...> Hi ! thanks for your reply I create an empty .project file on the directory , and the execution of script give me an "OK", but if I create a lock loop in my script the execution still return me OK ... I think that the gbc2 didn't process the file like a script... Regards [1]nospam.nospam.nospam at ...626... ha scritto: Matteo Lisi wrote: Hi ! Finally I crosscompiled the gambas for ARM, and I have on my arm system the "gbc2" file I tried to execute the following script: /**********************************************************************/ #!/usr/bin/ gbs2 ' This script returns the memory really used by the system, the cache and swap being excluded. FUNCTION GetUsedMemory() AS Integer DIM sRes AS String DIM aRes AS String[] DIM cVal AS NEW Collection DIM sVal AS String EXEC ["cat", "/proc/meminfo"] TO sRes FOR EACH sVal IN Split(sRes, "\n", "", TRUE) aRes = Split(sVal, " ", "", TRUE) cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) NEXT RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached END PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) /**********************************************************************/ but the gbc2 return me: gbc: project file not found: /gambas_prove/.project Where I made mistake ? What do you see in /gambas_prove/.project when you show hidden files? ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. [2]http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:nospam.nospam.nospam at ...626... 2. http://p.sf.net/sfu/bobj-july 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From nando_f at ...951... Tue Nov 24 12:40:22 2009 From: nando_f at ...951... (nando) Date: Tue, 24 Nov 2009 06:40:22 -0500 Subject: [Gambas-user] Serial ports in Gambas In-Reply-To: <61452b690911221950j13e8d3fame86bc025e7b69866@...627...> References: <61452b690911221950j13e8d3fame86bc025e7b69866@...627...> Message-ID: <20091124113840.M13917@...951...> Serial Port support in Gambas is 100% I've been using it 100% uptime for almost 5 years. Look at the NETWORKING Serial Port Example. -Fernando ---------- Original Message ----------- From: Kari Laine To: Gambas-user at lists.sourceforge.net Sent: Mon, 23 Nov 2009 05:50:24 +0200 Subject: [Gambas-user] Serial ports in Gambas > Hi, > > after not being active with Gambas for some time now. I am thinking of > making a program with it. > > I am learning products from http://www.byvac.com especially the BV513, > which is PIC-based microcontroller programmed in basic. > > The sofware from Byvac is for Windows only. I tried with minicom but > it sends something weird to BV513 so it does not work. So my need is > to write a simple terminal program. For that I need serial port > support - is there that in Gambas? I looked at the examples and could > not find any example. > > What control should I use as central control where user types commands > and results which are received from the device are printed? > > Sorry for these stupid questions. > > Best Regards > Kari Laine > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From nospam.nospam.nospam at ...626... Tue Nov 24 13:44:15 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 23:44:15 +1100 Subject: [Gambas-user] keep forms into a form References: <4B0B666D.7010609@...626...> <6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> <4B0BBC75.2030802@...1909...> Message-ID: Doriano Blengino wrote: > nospam.nospam.nospam at ...626... ha scritto: >> Fabien Bodard wrote: >> >>> 2009/11/24 : >>> >>>> Jean-Yves F. Barbier wrote: >>>> >>>>> Hi, >>>>> >>>>> Is there a manner to keep my forms into my main form? >>>>> other than using a workspace that apparently force children >>>>> to appear as tabs. >>>>> And to have them as icons (or anything else) into this main >>>>> form when minimized? >>>>> >>> So, i think you can try to construct your interface around this idea >>> >> >> Oh, good grief! I would never do such a thing! >> > I think he would mean "construct your interface around this new idea", > i.e. tabs, not old MDI. Yes, but the problem is I was being funny, but since I have to explain it, it's no longer funny. > It seems to me that this MDI interface is too much criticized. I would say that Microsoft dropping it in XP SP2 would be more than sufficient for everyone else to bury it. From Karl.Reinl at ...9... Tue Nov 24 13:47:21 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 24 Nov 2009 13:47:21 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <4B0BBB78.5070201@...2324...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...> Message-ID: <1259066841.7076.4.camel@...40...> Am Dienstag, den 24.11.2009, 11:54 +0100 schrieb Matteo Lisi: > > Hi ! > > Finally I crosscompiled the gambas for ARM, and I have on my arm system > the "gbc2" file > > I tried to execute the following script: > > /**********************************************************************/ > #!/usr/bin/ gbs2 > > ' This script returns the memory really used by the system, the cache > and swap being excluded. > > FUNCTION GetUsedMemory() AS Integer > > DIM sRes AS String > DIM aRes AS String[] > DIM cVal AS NEW Collection > DIM sVal AS String > > EXEC ["cat", "/proc/meminfo"] TO sRes > > FOR EACH sVal IN Split(sRes, "\n", "", TRUE) > aRes = Split(sVal, " ", "", TRUE) > cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) > NEXT > > RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + > cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached > > END > > PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) > /**********************************************************************/ > > but the gbc2 return me: > > gbc: project file not found: /gambas_prove/.project > > Where I made mistake ? > Salut Matteo, correct me if I'm wrong, I'v never dit anything with gambas-script. You have a "gbc2" file, but your file-header says #!/usr/bin/ gbs2 ( why that space ) That's what I'v remarked! -- Amicalement Charlie From nospam.nospam.nospam at ...626... Tue Nov 24 13:52:10 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 23:52:10 +1100 Subject: [Gambas-user] Gambas script execution References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...><7FBEFA8C0A6743659C2C7BCF53703B83@...2330...> <4B0BBFB0.4070101@...2324...> Message-ID: Matteo Lisi wrote: > Hi ! > thanks for your reply > I create an empty .project file on the directory , and the > execution of script give me an "OK", but if I create a lock loop > in my script the execution still return me OK ... >> RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + >> cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached What happens if you use early binding instead of late binding? From nospam.nospam.nospam at ...626... Tue Nov 24 13:55:02 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Tue, 24 Nov 2009 23:55:02 +1100 Subject: [Gambas-user] Gambas script execution References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...><4B0BBB78.5070201@...2324...> <1259066841.7076.4.camel@...40...> Message-ID: Charlie Reinl wrote: > Am Dienstag, den 24.11.2009, 11:54 +0100 schrieb Matteo Lisi: >> >> Hi ! >> >> Finally I crosscompiled the gambas for ARM, and I have on my arm >> system the "gbc2" file >> >> I tried to execute the following script: >> >> /**********************************************************************/ >> #!/usr/bin/ gbs2 > correct me if I'm wrong, I'v never dit anything with gambas-script. > You have a "gbc2" file, but your file-header says #!/usr/bin/ gbs2 > ( why that space ) > > That's what I'v remarked! Crikey. Eagle eyes, and then some. I'm sure you don't want to know what the Aussie vernacular for that is :) Great pick that. From matteo.lisi at ...2324... Tue Nov 24 13:56:07 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Tue, 24 Nov 2009 13:56:07 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <1259066841.7076.4.camel@...40...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...> <1259066841.7076.4.camel@...40...> Message-ID: <4B0BD7E7.8050701@...2324...> Hi ! The first line: #!/usr/bin/ gbs2 it's a typing error the right line is: #!/usr/bin/gbs2 Thanks Charlie , but the problem , unfortunatly is not the space ! Charlie Reinl ha scritto: Am Dienstag, den 24.11.2009, 11:54 +0100 schrieb Matteo Lisi: Hi ! Finally I crosscompiled the gambas for ARM, and I have on my arm system the "gbc2" file I tried to execute the following script: /**********************************************************************/ #!/usr/bin/ gbs2 ' This script returns the memory really used by the system, the cache and swap being excluded. FUNCTION GetUsedMemory() AS Integer DIM sRes AS String DIM aRes AS String[] DIM cVal AS NEW Collection DIM sVal AS String EXEC ["cat", "/proc/meminfo"] TO sRes FOR EACH sVal IN Split(sRes, "\n", "", TRUE) aRes = Split(sVal, " ", "", TRUE) cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) NEXT RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached END PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) /**********************************************************************/ but the gbc2 return me: gbc: project file not found: /gambas_prove/.project Where I made mistake ? Salut Matteo, correct me if I'm wrong, I'v never dit anything with gambas-script. You have a "gbc2" file, but your file-header says #!/usr/bin/ gbs2 ( why that space ) That's what I'v remarked! From matteo.lisi at ...2324... Tue Nov 24 13:59:53 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Tue, 24 Nov 2009 13:59:53 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...><7FBEFA8C0A6743659C2C7BCF53703B83@...2330...> <4B0BBFB0.4070101@...2324...> Message-ID: <4B0BD8C9.5060805@...2324...> Hi ! it's not a binding problem if I write a simple script like: PRINT "Hi from Gambas" the execution of script return me OK yet ... [1]nospam.nospam.nospam at ...626... ha scritto: Matteo Lisi wrote: Hi ! thanks for your reply I create an empty .project file on the directory , and the execution of script give me an "OK", but if I create a lock loop in my script the execution still return me OK ... RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached What happens if you use early binding instead of late binding? ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. [2]http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:nospam.nospam.nospam at ...626... 2. http://p.sf.net/sfu/bobj-july 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From nospam.nospam.nospam at ...626... Tue Nov 24 14:27:42 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 25 Nov 2009 00:27:42 +1100 Subject: [Gambas-user] Gambas script execution References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...><1259066841.7076.4.camel@...40...> <4B0BD7E7.8050701@...2324...> Message-ID: <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> Matteo Lisi wrote: > Hi ! > > The first line: > #!/usr/bin/ gbs2 > > it's a typing error > the right line is: > #!/usr/bin/gbs2 > > Thanks Charlie , but the problem , unfortunatly is not the space ! Could the problem be some other typing error? From nospam.nospam.nospam at ...626... Tue Nov 24 14:29:09 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 25 Nov 2009 00:29:09 +1100 Subject: [Gambas-user] Gambas script execution References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...><7FBEFA8C0A6743659C2C7BCF53703B83@...2330...> <4B0BBFB0.4070101@...2324...> <4B0BD8C9.5060805@...2324...> Message-ID: <9D7966AAA79F4BECB13B26D6335DD8C4@...2330...> Matteo Lisi wrote: > Hi ! > it's not a binding problem if I write a simple script like: > PRINT "Hi from Gambas" Correct, but what about this.. > RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + > cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached > > What happens if you use early binding instead of late binding? From ron at ...1740... Tue Nov 24 14:27:19 2009 From: ron at ...1740... (Ron) Date: Tue, 24 Nov 2009 14:27:19 +0100 Subject: [Gambas-user] gb.db.mysql not in .project Message-ID: <4B0BDF37.8040805@...1740...> Ok, something weird. My project uses mysql db from day one. And today I wanted to uncheck gb.v4l because it doesn't work with v4l2, so i ditched it in favor of embedded mplayer, so I went to my project properties and noticed gb.db.mysql was not checked! Huh, it wasn't in my .project file either, but mysql was working, otherwise I couldn't even start my project. Library=gb.qt Library=gb.form Library=gb.db Library=gb.db.form Library=gb.desktop Library=gb.form.dialog Library=gb.form.mdi Library=gb.net Library=gb.net.curl Library=gb.net.smtp Library=gb.qt.ext Library=gb.settings Library=gb.v4l Library=gb.xml Library=gb.xml.rpc I checked it, and it appeared in my .project file too. Unchecked it again and my project still runs without it... Whats the idea behind this? Doesn't this generate dependency problems if you create a package? Gambas 2.18.0 gb.qt Regards, Ron_2nd. From Karl.Reinl at ...9... Tue Nov 24 15:01:30 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 24 Nov 2009 15:01:30 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...><1259066841.7076.4.camel@...40...> <4B0BD7E7.8050701@...2324...> <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> Message-ID: <1259071290.7076.24.camel@...40...> Am Mittwoch, den 25.11.2009, 00:27 +1100 schrieb nospam.nospam.nospam at ...626...: > Matteo Lisi wrote: > > Hi ! > > > > The first line: > > #!/usr/bin/ gbs2 > > > > it's a typing error > > the right line is: > > #!/usr/bin/gbs2 > > > > Thanks Charlie , but the problem , unfortunatly is not the space ! > > Could the problem be some other typing error? Salut, 1.)------ full call -------- :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -c ~/gambas/2/f3/scriptTest/matteo.ga2script gbs2: warning: cannot find component dbreportviewer2 required by DBReportDesigner2 CComponent.CalcSortKey.171: #13: Null object 0: CComponent.CalcSortKey.171 1: CComponent.SortComponents.201 2: CComponent._init.123 3: MMain.MakeVirtualProject.180 4: MMain.Main.83 I'v no idea what, and why that gbs2: warning. The component exists as User-Component, and of course it has nothing to do with the script 2.)----- my gbs2 version [rev 2429] ------------------------ :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -V 2.14.0 3.)------ after a chmod +x and changing to #!/usr/local/bin/gbs2 ------ :~/gambas/2/f3/scriptTest$ ./matteo.ga2script ./matteo.gbs: line 3: syntax error near unexpected token `(' ./matteo.gbs: line 3: `FUNCTION GetUsedMemory() AS Integer' perhaps Benoit or Fabien have a Idea! -- Amicalement Charlie -------------- next part -------------- #!/usr/local/bin/gbs2 FUNCTION GetUsedMemory() AS Integer DIM sRes AS String DIM aRes AS String[] DIM cVal AS NEW Collection DIM sVal AS String EXEC ["cat", "/proc/meminfo"] TO sRes FOR EACH sVal IN Split(sRes, "\n", "", TRUE) aRes = Split(sVal, " ", "", TRUE) cVal[Left$(aRes[0], -1)] = CInt(aRes[1]) NEXT RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTotal - cVal!SwapFree - cVal!SwapCached END PRINT Subst("Used memory: &1 bytes", GetUsedMemory()) From matteo.lisi at ...2324... Tue Nov 24 14:38:05 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Tue, 24 Nov 2009 14:38:05 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...><1259066841.7076.4.camel@...40...> <4B0BD7E7.8050701@...2324...> <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> Message-ID: <4B0BE1BD.3040609@...2324...> Could the problem be some other typing error? Perhaps ! A dog ate my hands and I'm typing with two little wood rod... I tried to replace the return line with the one who you suggest me: RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTot al - cVal!SwapFree - cVal!SwapCached But I had the same result ! [1]nospam.nospam.nospam at ...626... ha scritto: Matteo Lisi wrote: Hi ! The first line: #!/usr/bin/ gbs2 it's a typing error the right line is: #!/usr/bin/gbs2 Thanks Charlie , but the problem , unfortunatly is not the space ! Could the problem be some other typing error? ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. [2]http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:nospam.nospam.nospam at ...626... 2. http://p.sf.net/sfu/bobj-july 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Tue Nov 24 15:07:20 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 24 Nov 2009 15:07:20 +0100 Subject: [Gambas-user] gb.db.mysql not in .project In-Reply-To: <4B0BDF37.8040805@...1740...> References: <4B0BDF37.8040805@...1740...> Message-ID: <1259071640.7076.29.camel@...40...> Am Dienstag, den 24.11.2009, 14:27 +0100 schrieb Ron: > Ok, something weird. > > My project uses mysql db from day one. > > And today I wanted to uncheck gb.v4l because it doesn't work with v4l2, > so i ditched it in favor of embedded mplayer, so I went to my project > properties and noticed gb.db.mysql was not checked! Huh, it wasn't in my > .project file either, but mysql was working, otherwise I couldn't even > start my project. > > Library=gb.qt > Library=gb.form > Library=gb.db > Library=gb.db.form > Library=gb.desktop > Library=gb.form.dialog > Library=gb.form.mdi > Library=gb.net > Library=gb.net.curl > Library=gb.net.smtp > Library=gb.qt.ext > Library=gb.settings > Library=gb.v4l > Library=gb.xml > Library=gb.xml.rpc > > I checked it, and it appeared in my .project file too. > Unchecked it again and my project still runs without it... > > Whats the idea behind this? > Doesn't this generate dependency problems if you create a package? > > Gambas 2.18.0 > gb.qt > > Regards, > Ron_2nd. Salut Ron, Benoit split gb.db into gb.db + gb.db.'s, some versions ago, have a look into ChangeLog. -- Amicalement Charlie From steven at ...1652... Tue Nov 24 15:16:55 2009 From: steven at ...1652... (Steven revimmo) Date: Tue, 24 Nov 2009 15:16:55 +0100 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: References: <200911232033.58527.sourceforge-raindog2@...94...> <200911240037.05880.sourceforge-raindog2@...94...> <200CBE13558A4E059052FBB89D0DAD5A@...2330...> <1259053643.6495.28.camel@...1936...> Message-ID: <1259072215.4144.8.camel@...1936...> You are a funny guy ;-) Le mardi 24 novembre 2009 ? 21:57 +1100, nospam.nospam.nospam at ...626... a ?crit : > Steven revimmo wrote: > > > So, for me it boils down to a question of widgets, a surmountable > > problem, > > You don't read much of what Benoit has to say? Nor do you know much about > Microsoft? > I do read what Benoit has to say, it's much more interesting as your post, but not so funny. > They are questions, not assertions. > > > that would give us > > an excellent platform with gambas to make cloud applications ! > > The "cloud" is a buzzword for storing your very private super sekrit stuff, > such as pictures of your nekkid lover where your wife can't find them, on a > server that offers no guarantee of any privacy whatosever, let alone any > availability. Perhaps you are recently new to the world of computing? > Are you aware that there are also 'cloud' applications that don't run with Google, you can run them on your own server (like eyeOS) so your problem only exists if you limit the sky to Google. > > Steven > > ps: and you would not need any 'plugins' for Firefox, Ie or any other > > browser. > > You assume that MS would convert windows to widgets? > No, not MS, and yes... I'm aware that everything is a window in the ms-world, so what ? That is just a question of terminology. > And kill their own monoply by their own free choice. > > Are you aware that even such a lowly entity as a label is a window in > Windows? > > Perhaps not. > Perhaps I might suggest you take a look at eyeOS, learn a bit, and then report back here. If you don't I might be even happier. Steven > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From 12ukwn at ...626... Tue Nov 24 15:36:11 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 24 Nov 2009 15:36:11 +0100 Subject: [Gambas-user] keep forms into a form In-Reply-To: <6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> References: <4B0B666D.7010609@...626...> <6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> Message-ID: <4B0BEF5B.3060601@...626...> Fabien Bodard a ?crit : > 2009/11/24 : ... > So, i think you can try to construct your interface around this idea NO: It don't fit my needs & I don't like the appearance. So, now tell me how I can recover the focus on hidden children-forms (SkipTaskbar = TRUE)???? I guess users won't use my program only, so they will need a readable taskbar to continue their work comfortably... -- "Let's show this prehistoric bitch how we do things downtown!" -- The Ghostbusters From sourceforge-raindog2 at ...94... Tue Nov 24 16:05:07 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 24 Nov 2009 10:05:07 -0500 Subject: [Gambas-user] keep forms into a form In-Reply-To: References: <4B0B666D.7010609@...626...> <6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> Message-ID: <200911241005.07639.sourceforge-raindog2@...94...> On Tuesday 24 November 2009 05:23 am, nospam.nospam.nospam at ...626... wrote: > Look, I cut my teeth on DOS before Windows was even dreamt of. The win3 > MDI interface was the best anyone could come up with two full decades > ago. And the "vomiting little windows all over the desktop" approach was the best anyone could come up with two and a half decades ago.... on the Mac. Rob From jredrejo at ...1238... Tue Nov 24 17:23:43 2009 From: jredrejo at ...1238... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo_Rodr=C3=ADguez?=) Date: Tue, 24 Nov 2009 17:23:43 +0100 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <200911231719.44346.sourceforge-raindog2@...94...> References: <6324a42a0911231356j2a9b6d60l57742b697f2507cd@...627...> <26486874.post@...1379...> <200911231719.44346.sourceforge-raindog2@...94...> Message-ID: <8eb28a500911240823j1a26774em8147c4b6aceeb02f@...627...> 2009/11/23 Rob > On Monday 23 November 2009 05:07 pm, Vackoy wrote: > > I think is an excellent idea but i don't know if it is possible. > > Sorry my ignorance but what is an ecma-script code?? > > ECMAscript is the language used in web browsers as "Javascript" and in > Flash applets as "Actionscript". > > I don't really think crosscompiling Gambas code to Javascript makes any > more sense than crosscompiling Gambas code to Java. > > Rob Hi Rob, there's a big difference, crosscompiling Gambas code to Javascript will allow you programming in Gambas and running your applications in any modern browser, without the overload of Java. That's the idea behind of GWT [1] or Pyjama [2], and I can assure you that both are good project, and GWT is very succesfully and is making me thinking of migrate some of my gambas applications to a web interface, even if I have to use Java (which I wouldn't say it's a language I love) to do the user frontend. More and more, everyday, users love the web interface, even if the application is not a real web interface. I.E: a small daemon running python with the twisted framework providing the user interface in javascript in the browser is prefered to a real desktop application. At least in the schools world where I spend most of my time. Regards. Jos? L. [1] http://code.google.com/webtoolkit/ [2] http://pyjs.org/ From jredrejo at ...626... Tue Nov 24 17:28:21 2009 From: jredrejo at ...626... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo?=) Date: Tue, 24 Nov 2009 17:28:21 +0100 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <200911231719.44346.sourceforge-raindog2@...94...> References: <6324a42a0911231356j2a9b6d60l57742b697f2507cd@...627...> <26486874.post@...1379...> <200911231719.44346.sourceforge-raindog2@...94...> Message-ID: <8eb28a500911240828q762a884ei79e6b29de41d67f5@...627...> 2009/11/23 Rob > On Monday 23 November 2009 05:07 pm, Vackoy wrote: > > I think is an excellent idea but i don't know if it is possible. > > Sorry my ignorance but what is an ecma-script code?? > > ECMAscript is the language used in web browsers as "Javascript" and in > Flash applets as "Actionscript". > > I don't really think crosscompiling Gambas code to Javascript makes any > more sense than crosscompiling Gambas code to Java. > > Rob > > Hi Rob, there's a big difference: crosscompiling Gambas code to Javascript will allow you programming in Gambas and running your applications in any modern browser, without the overload of Java. That's the idea behind of GWT [1] or Pyjama [2], and I can assure you that both are good projects, and GWT is very succesfully and is making me thinking of migrate some of my gambas applications to a web interface, even if I have to use Java (which I wouldn't say it's a language I love) to do the user frontend. More and more, everyday, users love the web interface, even if the application is not a real web interface. I.E: a small daemon running python with the twisted framework providing the user interface in javascript in the browser is prefered to a real desktop application. At least in the schools world where I spend most of my time. Regards. Jos? L. [1] http://code.google.com/webtoolkit/ [2] http://pyjs.org/ From gambas at ...1... Tue Nov 24 18:59:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Tue, 24 Nov 2009 18:59:24 +0100 Subject: [Gambas-user] gb.db.mysql not in .project In-Reply-To: <4B0BDF37.8040805@...1740...> References: <4B0BDF37.8040805@...1740...> Message-ID: <200911241859.24189.gambas@...1...> > Ok, something weird. > > My project uses mysql db from day one. > > And today I wanted to uncheck gb.v4l because it doesn't work with v4l2, > so i ditched it in favor of embedded mplayer, so I went to my project > properties and noticed gb.db.mysql was not checked! Huh, it wasn't in my > .project file either, but mysql was working, otherwise I couldn't even > start my project. > > Library=gb.qt > Library=gb.form > Library=gb.db > Library=gb.db.form > Library=gb.desktop > Library=gb.form.dialog > Library=gb.form.mdi > Library=gb.net > Library=gb.net.curl > Library=gb.net.smtp > Library=gb.qt.ext > Library=gb.settings > Library=gb.v4l > Library=gb.xml > Library=gb.xml.rpc > > I checked it, and it appeared in my .project file too. > Unchecked it again and my project still runs without it... > > Whats the idea behind this? > Doesn't this generate dependency problems if you create a package? > It will. But you may write a database program that does not care on the database backend (for example, the database manager). The gb.db component can automatically loads gb.db.* driver at first use, if they are present of course. But if you are sure which gb.db.* driver you need, you can check it in the project property dialog, so that you have the dependency. Regards, -- Beno?t Minisini From sourceforge-raindog2 at ...94... Tue Nov 24 19:26:01 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 24 Nov 2009 13:26:01 -0500 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <8eb28a500911240823j1a26774em8147c4b6aceeb02f@...627...> References: <200911231719.44346.sourceforge-raindog2@...94...> <8eb28a500911240823j1a26774em8147c4b6aceeb02f@...627...> Message-ID: <200911241326.01113.sourceforge-raindog2@...94...> On Tuesday 24 November 2009 11:23 am, Jos? Luis Redrejo Rodr?guez wrote: > That's the idea behind of GWT [1] or Pyjama [2], and I can assure you > that both are good project, and GWT is very succesfully and is making > me thinking of migrate some of my gambas applications to a web > interface, even if I have to use Java (which I wouldn't say it's a > language I love) to do the user frontend. I did write a script in 2004 to generate DHTML widgets out of Gambas 1.0 forms (HTML + Javascript + CSS + some perl CGI code -- the term "Ajax" hadn't been coined yet), but simply taking desktop apps and throwing them on a web page really didn't work that well as a user interface paradigm. But I forgot about GWT. I should have a look at the code it generates to see how awful it is, but it's still strange to me to think of a high-level interpreted language as a compilation target. Rob From 12ukwn at ...626... Tue Nov 24 19:30:52 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 24 Nov 2009 19:30:52 +0100 Subject: [Gambas-user] escape a picture Message-ID: <4B0C265C.1060306@...626...> Hi, How can I escape a picture in order to insert it into a BYTEA postgresql data field? -- Cocaine: using tomorrow's energy today. From rterry at ...1946... Tue Nov 24 21:46:31 2009 From: rterry at ...1946... (richard terry) Date: Wed, 25 Nov 2009 07:46:31 +1100 Subject: [Gambas-user] escape a picture In-Reply-To: <4B0C265C.1060306@...626...> References: <4B0C265C.1060306@...626...> Message-ID: <200911250746.31383.rterry@...1946...> On Wednesday 25 November 2009 05:30:52 Jean-Yves F. Barbier wrote: > Hi, > > How can I escape a picture in order to insert it into a BYTEA > postgresql data field? > Having mucked around with this interminably looking at different ways, the solution is in the picture database sample file, but basically do something like this and you won't need to manually escape anything. You would use a different connection method like in the picture db not my function (modDbconnect), I've commented this for you Public Function Image_Save(ImagePath As String, Optional fk_Image As Integer = 0) As Integer Dim newPicture As result Dim $Result As Result Dim img As Image Dim tempfile As String Dim conn As Connection 'get the connection to the backend conn = modDBConnect.Get_Connection() 'connect to the table newPicture = conn.Create("all_images") 'save the picture file to a tempory file img = Image.Load(ImagePath) tempFile = Temp() & ".png" img.Save(tempFile) 'save to the database If Not fk_image Then newPicture["image"] = File.Load(tempFile) newPicture.Update() 'don't worry about this I just needed the pk, perhaps there is an easier way $Result = modDBConnect.exec_query("Select currval('all_images_pk_seq') as pk_image") End If Return $Result!pk_image End Think that's ok, notify me if dosn't work, but follow the picture databas in samples line by line. Regards Richard From rterry at ...1946... Tue Nov 24 22:06:21 2009 From: rterry at ...1946... (richard terry) Date: Wed, 25 Nov 2009 08:06:21 +1100 Subject: [Gambas-user] escape a picture PS In-Reply-To: <200911250746.31383.rterry@...1946...> References: <4B0C265C.1060306@...626...> <200911250746.31383.rterry@...1946...> Message-ID: <200911250806.21622.rterry@...1946...> On Wednesday 25 November 2009 07:46:31 you wrote: > On Wednesday 25 November 2009 05:30:52 Jean-Yves F. Barbier wrote: > > Hi, > > > > How can I escape a picture in order to insert it into a BYTEA > > postgresql data field? > > Having mucked around with this interminably looking at different ways, the > solution is in the picture database sample file, but basically do something > like this and you won't need to manually escape anything. You would use a > different connection method like in the picture db not my function > (modDbconnect), I've commented this for you > > Public Function Image_Save(ImagePath As String, Optional fk_Image As > Integer = 0) As Integer > Dim newPicture As result > Dim $Result As Result > Dim img As Image > Dim tempfile As String > Dim conn As Connection > 'get the connection to the backend > conn = modDBConnect.Get_Connection() > 'connect to the table > newPicture = conn.Create("all_images") > 'save the picture file to a tempory file > img = Image.Load(ImagePath) > tempFile = Temp() & ".png" > img.Save(tempFile) > 'save to the database > If Not fk_image Then > newPicture["image"] = File.Load(tempFile) > newPicture.Update() > 'don't worry about this I just needed the pk, perhaps there is an easier > way $Result = modDBConnect.exec_query("Select currval('all_images_pk_seq') > as pk_image") > End If > Return $Result!pk_image > > End > > Think that's ok, notify me if dosn't work, but follow the picture databas > in samples line by line. > > Regards > > Richard > Don't forget to commit your transaction sample table: CREATE TABLE all_images ( pk serial NOT NULL, image bytea, deleted boolean, CONSTRAINT all_images_pkey PRIMARY KEY (pk) ) WITH ( OIDS=FALSE ); ALTER TABLE all_images OWNER TO easygp; GRANT ALL ON TABLE all_images TO easygp; GRANT ALL ON TABLE all_images TO staff; Note also with gambas. I've raised this with the list/devel/benoit and had no replies but after much angst it seems that you can't address schema.table, ie you cannot do this: newPicture = conn.Create("myschema.all_images") I got tripped up for many many hours trying to figure out why these damn things wouldn't save, even when I just put a table called "images" into public, until I realised that throughout my db (of 350 odd tables scattered over 28 schemas, I have several "image" tables in different schemas so gambas was baulking without an error message when it got to the reference to "image" as table. (hence the temporary name I've provided you "all_images" as I've not yet removed all the other tables due to my extensive use of views which I'll have to laboriously correct! So in the end I've decided single table for all bytea data which I keep in public and (touch wood) seems to work quickly and easily. apparently you can store up to 1GIG in a bytea field but I suspect putting it in there could be real slow. You can use client side lo_creat, and lo_import functionsto directly write to blobs (different to bytea) in postgres as user (not the server side functions) but though easy to do on the postgres command line, I've not figured out how to do it in sql, and no-one on the postgresql novice list seemed to know either. I spent probably 10 hours trawling the net to find a solution and though millions of references to it the 'smart ****$$%%^& ers' all sound really knowledgable by quoting the postgresl docs which in the end to idiots like myself mean nothing, but no-one seems to be able to offer a practicel sql solution. If you find out let me know. Hope this all helps. Regards Richard From 12ukwn at ...626... Tue Nov 24 22:19:14 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 24 Nov 2009 22:19:14 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <200911250746.31383.rterry@...1946...> References: <4B0C265C.1060306@...626...> <200911250746.31383.rterry@...1946...> Message-ID: <4B0C4DD2.1070002@...626...> richard terry a ?crit : No Richard, I can't do that for: * I already have a connection, and I wanna keep connection number as low as possible, * I do things as they should be done, so not any direct user permission on any DB schema/table/index/sequence/etc; So I can't insert anything directly, * I already have a big trigger on this table (ON INSERT) and I don't wanna bloat it (and this wouldn't solve the PB.) So I *really* need to send an escaped string to my procedure. Regards JY > On Wednesday 25 November 2009 05:30:52 Jean-Yves F. Barbier wrote: >> Hi, >> >> How can I escape a picture in order to insert it into a BYTEA >> postgresql data field? >> > Having mucked around with this interminably looking at different ways, the > solution is in the picture database sample file, but basically do something > like this and you won't need to manually escape anything. You would use a > different connection method like in the picture db not my function > (modDbconnect), I've commented this for you > > Public Function Image_Save(ImagePath As String, Optional fk_Image As Integer = > 0) As Integer > Dim newPicture As result > Dim $Result As Result > Dim img As Image > Dim tempfile As String > Dim conn As Connection > 'get the connection to the backend > conn = modDBConnect.Get_Connection() > 'connect to the table > newPicture = conn.Create("all_images") > 'save the picture file to a tempory file > img = Image.Load(ImagePath) > tempFile = Temp() & ".png" > img.Save(tempFile) > 'save to the database > If Not fk_image Then > newPicture["image"] = File.Load(tempFile) > newPicture.Update() > 'don't worry about this I just needed the pk, perhaps there is an easier way > $Result = modDBConnect.exec_query("Select currval('all_images_pk_seq') as > pk_image") > End If > Return $Result!pk_image > > End > > Think that's ok, notify me if dosn't work, but follow the picture databas in > samples line by line. -- A watched clock never boils. From 12ukwn at ...626... Tue Nov 24 22:31:40 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 24 Nov 2009 22:31:40 +0100 Subject: [Gambas-user] escape a picture PS In-Reply-To: <200911250806.21622.rterry@...1946...> References: <4B0C265C.1060306@...626...> <200911250746.31383.rterry@...1946...> <200911250806.21622.rterry@...1946...> Message-ID: <4B0C50BC.7000606@...626...> richard terry a ?crit : ... > Don't forget to commit your transaction > > > sample table: > > CREATE TABLE all_images > ( > pk serial NOT NULL, > image bytea, > deleted boolean, > CONSTRAINT all_images_pkey PRIMARY KEY (pk) > ) > WITH ( > OIDS=FALSE > ); > ALTER TABLE all_images OWNER TO easygp; > GRANT ALL ON TABLE all_images TO easygp; > GRANT ALL ON TABLE all_images TO staff; ^^^ You like to live *very* dangerously... > > Note also with gambas. I've raised this with the list/devel/benoit and had no > replies but after much angst it seems that you can't address schema.table, ie > you cannot do this: > > newPicture = conn.Create("myschema.all_images") This is not acceptable, nor usable! > I got tripped up for many many hours trying to figure out why these damn > things wouldn't save, even when I just put a table called "images" into > public, until I realised that throughout my db (of 350 odd tables scattered > over 28 schemas, I have several "image" tables in different schemas so gambas > was baulking without an error message when it got to the reference to "image" > as table. (hence the temporary name I've provided you "all_images" as I've > not yet removed all the other tables due to my extensive use of views which > I'll have to laboriously correct! > > So in the end I've decided single table for all bytea data which I keep in > public and (touch wood) seems to work quickly and easily. apparently you can > store up to 1GIG in a bytea field but I suspect putting it in there could be > real slow. I've got quite a same DB. Once again, this is not acceptable and a large flaw in design, not to mention the lack of security. > You can use client side lo_creat, and lo_import functionsto directly write > to blobs (different to bytea) in postgres as user (not the server side > functions) but though easy to do on the postgres command line, I've not > figured out how to do it in sql, and no-one on the postgresql novice list > seemed to know either. You can do that if your procedure gain the SU permissions, which, once again, is not acceptable (at all.) > I spent probably 10 hours trawling the net to find a solution and though > millions of references to it the 'smart ****$$%%^& ers' all sound really > knowledgable by quoting the postgresl docs which in the end to idiots like > myself mean nothing, but no-one seems to be able to offer a practicel sql > solution. If you find out let me know. I'm gonna ask the Pg ML; if there's no possibility I'll leave gambas and return to Python. > Hope this all helps. Unfortunately not :( Regards JY -- X-rated movies are all alike ... the only thing they leave to the imagination is the plot. From 12ukwn at ...626... Tue Nov 24 22:39:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Tue, 24 Nov 2009 22:39:30 +0100 Subject: [Gambas-user] escape a picture PS In-Reply-To: <200911250806.21622.rterry@...1946...> References: <4B0C265C.1060306@...626...> <200911250746.31383.rterry@...1946...> <200911250806.21622.rterry@...1946...> Message-ID: <4B0C5292.5060103@...626...> richard terry a ?crit : ... > Note also with gambas. I've raised this with the list/devel/benoit and had no > replies Ducking is never a good answer... -- The proof of the pudding is in the eating. -- Miguel de Cervantes From Karl.Reinl at ...9... Tue Nov 24 23:53:32 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 24 Nov 2009 23:53:32 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <4B0C265C.1060306@...626...> References: <4B0C265C.1060306@...626...> Message-ID: <1259103212.16013.9.camel@...40...> Am Dienstag, den 24.11.2009, 19:30 +0100 schrieb Jean-Yves F. Barbier: > Hi, > > How can I escape a picture in order to insert it into a BYTEA > postgresql data field? > Salut, no idea whats a BYTEA, I looked in the I-net, and found something in german. http://www.ms-office-forum.net/forum/sitemap/index.php?t-243720.html - encode the binary file using base64 and store as TEXT - is using ADODB.Stream (are there something like that in gambas ) Amicalement -- Charlie - growing old is mandatory, growing up is discretionary. - vieillir est obligatoire, Grandir est discr?tionnaire. - Altwerden ist obligatorisch, aufgewachsen ist Ermessenssache. From gambas at ...1... Wed Nov 25 00:22:40 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 25 Nov 2009 00:22:40 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <4B0C265C.1060306@...626...> References: <4B0C265C.1060306@...626...> Message-ID: <200911250022.40306.gambas@...1...> > Hi, > > How can I escape a picture in order to insert it into a BYTEA > postgresql data field? > Normally, if the postgresql field datatype is BYTEA, the gb.db component will see it as a blob. Let's suppose the field name is "Picture". You will do: MyResult!Picture = File.Load("/path/to/picture/file") Is it what you need? -- Beno?t Minisini From 12ukwn at ...626... Wed Nov 25 00:33:53 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 00:33:53 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <200911250022.40306.gambas@...1...> References: <4B0C265C.1060306@...626...> <200911250022.40306.gambas@...1...> Message-ID: <4B0C6D61.5090707@...626...> Beno?t Minisini a ?crit : >> Hi, >> >> How can I escape a picture in order to insert it into a BYTEA >> postgresql data field? >> > > Normally, if the postgresql field datatype is BYTEA, the gb.db component will > see it as a blob. > > Let's suppose the field name is "Picture". You will do: > > MyResult!Picture = File.Load("/path/to/picture/file") > > Is it what you need? NO, I need the opposite: sqlQry = "SELECT MyTable_ins(MyPicture); where MyTable_ins(TEXT) is a stored PLPGSQL procedure that do an indirect insert into myschema.mytable -- Every journalist has a novel in him, which is an excellent place for it. From 12ukwn at ...626... Wed Nov 25 00:35:30 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 00:35:30 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <1259103212.16013.9.camel@...40...> References: <4B0C265C.1060306@...626...> <1259103212.16013.9.camel@...40...> Message-ID: <4B0C6DC2.5040404@...626...> Charlie Reinl a ?crit : ... > http://www.ms-office-forum.net/forum/sitemap/index.php?t-243720.html > > - encode the binary file using base64 and store as TEXT > - is using ADODB.Stream (are there something like that in gambas ) Thanks Charlie -- Q: What does it say on the bottom of Coke cans in North Dakota? A: Open other end. From gambas at ...1... Wed Nov 25 00:42:47 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 25 Nov 2009 00:42:47 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <4B0C6D61.5090707@...626...> References: <4B0C265C.1060306@...626...> <200911250022.40306.gambas@...1...> <4B0C6D61.5090707@...626...> Message-ID: <200911250042.47394.gambas@...1...> > Beno?t Minisini a ?crit : > >> Hi, > >> > >> How can I escape a picture in order to insert it into a BYTEA > >> postgresql data field? > > > > Normally, if the postgresql field datatype is BYTEA, the gb.db component > > will see it as a blob. > > > > Let's suppose the field name is "Picture". You will do: > > > > MyResult!Picture = File.Load("/path/to/picture/file") > > > > Is it what you need? > > NO, I need the opposite: > sqlQry = "SELECT MyTable_ins(MyPicture); > > where MyTable_ins(TEXT) is a stored PLPGSQL procedure that do > an indirect insert into myschema.mytable > OK. So MyPicture must be a string including quoted binary data? Alas there is no public access to the internal driver function that quotes binary data for a blob. Do you want me to add it in Gambas 3? Something like DB.QuoteBlob()? -- Beno?t Minisini From 12ukwn at ...626... Wed Nov 25 00:50:13 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 00:50:13 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <200911250042.47394.gambas@...1...> References: <4B0C265C.1060306@...626...> <200911250022.40306.gambas@...1...> <4B0C6D61.5090707@...626...> <200911250042.47394.gambas@...1...> Message-ID: <4B0C7135.2040208@...626...> Beno?t Minisini a ?crit : >> Beno?t Minisini a ?crit : >>>> Hi, >>>> >>>> How can I escape a picture in order to insert it into a BYTEA >>>> postgresql data field? >>> Normally, if the postgresql field datatype is BYTEA, the gb.db component >>> will see it as a blob. >>> >>> Let's suppose the field name is "Picture". You will do: >>> >>> MyResult!Picture = File.Load("/path/to/picture/file") >>> >>> Is it what you need? >> NO, I need the opposite: >> sqlQry = "SELECT MyTable_ins(MyPicture); >> >> where MyTable_ins(TEXT) is a stored PLPGSQL procedure that do >> an indirect insert into myschema.mytable >> > > OK. So MyPicture must be a string including quoted binary data? > > Alas there is no public access to the internal driver function that quotes > binary data for a blob. Do you want me to add it in Gambas 3? Something like > DB.QuoteBlob()? As far as driver's orders aren't usable*, YES (and in 2 also) * Can't use a schema (as of Charlie) * Obliged to directly use the table -- Life is like a bowl of soup with hairs floating on it. You have to eat it nevertheless. -- Flaubert From 12ukwn at ...626... Wed Nov 25 02:32:56 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 02:32:56 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <200911250042.47394.gambas@...1...> References: <4B0C265C.1060306@...626...> <200911250022.40306.gambas@...1...> <4B0C6D61.5090707@...626...> <200911250042.47394.gambas@...1...> Message-ID: <4B0C8948.7090802@...626...> Beno?t Minisini a ?crit : >> Beno?t Minisini a ?crit : >>>> Hi, >>>> >>>> How can I escape a picture in order to insert it into a BYTEA >>>> postgresql data field? >>> Normally, if the postgresql field datatype is BYTEA, the gb.db component >>> will see it as a blob. >>> >>> Let's suppose the field name is "Picture". You will do: >>> >>> MyResult!Picture = File.Load("/path/to/picture/file") >>> >>> Is it what you need? >> NO, I need the opposite: >> sqlQry = "SELECT MyTable_ins(MyPicture); >> >> where MyTable_ins(TEXT) is a stored PLPGSQL procedure that do >> an indirect insert into myschema.mytable >> > > OK. So MyPicture must be a string including quoted binary data? > > Alas there is no public access to the internal driver function that quotes > binary data for a blob. Do you want me to add it in Gambas 3? Something like > DB.QuoteBlob()? What would also be nice would be direct conversions (ie: from String to Picture and reverse) -- Assume a virtue, if you have it not. -William Shakespeare From gambas at ...1... Wed Nov 25 03:14:09 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 25 Nov 2009 03:14:09 +0100 Subject: [Gambas-user] escape a picture In-Reply-To: <4B0C8948.7090802@...626...> References: <4B0C265C.1060306@...626...> <200911250042.47394.gambas@...1...> <4B0C8948.7090802@...626...> Message-ID: <200911250314.09642.gambas@...1...> > Beno?t Minisini a ?crit : > >> Beno?t Minisini a ?crit : > >>>> Hi, > >>>> > >>>> How can I escape a picture in order to insert it into a BYTEA > >>>> postgresql data field? > >>> > >>> Normally, if the postgresql field datatype is BYTEA, the gb.db > >>> component will see it as a blob. > >>> > >>> Let's suppose the field name is "Picture". You will do: > >>> > >>> MyResult!Picture = File.Load("/path/to/picture/file") > >>> > >>> Is it what you need? > >> > >> NO, I need the opposite: > >> sqlQry = "SELECT MyTable_ins(MyPicture); > >> > >> where MyTable_ins(TEXT) is a stored PLPGSQL procedure that do > >> an indirect insert into myschema.mytable > > > > OK. So MyPicture must be a string including quoted binary data? > > > > Alas there is no public access to the internal driver function that > > quotes binary data for a blob. Do you want me to add it in Gambas 3? > > Something like DB.QuoteBlob()? > > What would also be nice would be direct conversions (ie: from String > to Picture and reverse) > Maybe, but this is a lot of work for very little gain: using a temporary file to store the picture is faster than reading/writing the data in the database, as the binary data must be quoted in a string (SQL is so stupid!). Regards, -- Beno?t Minisini From bbruen at ...2308... Wed Nov 25 04:54:14 2009 From: bbruen at ...2308... (bbb888) Date: Tue, 24 Nov 2009 19:54:14 -0800 (PST) Subject: [Gambas-user] Frame where the first item is not Enabled - focus problem Message-ID: <26507190.post@...1379...> In this form I have - several misc controls - a textarea - a frame (with several checkboxes and buttons) - a listview in that order in the heirarchy. In certain conditions, the first item in the frame has it's Enabled property set to false. When this happens and I tab from the textarea to the frame (in actual fact it's done in code using textarea.Next.SetFocus as I have to trap TAB keys), the focus does not go to the first enabled item in the frame. In fact, it seems to disappear* and a second tab moves the focus to the first control in the form, not the listview. * even the listview_GotFocus handler is never invoked. If the first item in the frame is enabled, the form "works". Is this expected behaviour? If not, do you think it is something in gambas or in the KDE style (Highcolor Classic) that I am using ? tia Bruce -- View this message in context: http://old.nabble.com/Frame-where-the-first-item-is-not-Enabled---focus-problem-tp26507190p26507190.html Sent from the gambas-user mailing list archive at Nabble.com. From nospam.nospam.nospam at ...626... Wed Nov 25 05:52:48 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 25 Nov 2009 15:52:48 +1100 Subject: [Gambas-user] Gambas as firefox plugin !!! References: <200911232033.58527.sourceforge-raindog2@...94...><200911240037.05880.sourceforge-raindog2@...94...><200CBE13558A4E059052FBB89D0DAD5A@...2330...><1259053643.6495.28.camel@...1936...> <1259072215.4144.8.camel@...1936...> Message-ID: <94ED093E35A14D59928488292E83D419@...2330...> Steven revimmo wrote: > You are a funny guy ;-) > I do read what Benoit has to say, it's much more interesting as your > post, but not so funny. I'm glad I made you smile. >> They are questions, not assertions. >> >>> that would give us >>> an excellent platform with gambas to make cloud applications ! >> >> The "cloud" is a buzzword for storing your very private super sekrit >> stuff, such as pictures of your nekkid lover where your wife can't >> find them, on a server that offers no guarantee of any privacy >> whatosever, let alone any availability. Perhaps you are recently new >> to the world of computing? >> > > Are you aware that there are also 'cloud' applications that don't run > with Google, you can run them > on your own server (like eyeOS) so your problem only exists if you > limit > the sky to Google. Yes. >>> Steven >>> ps: and you would not need any 'plugins' for Firefox, Ie or any >>> other browser. >> >> You assume that MS would convert windows to widgets? >> > > No, not MS, and yes... I'm aware that everything is a window in the > ms-world, so what ? > That is just a question of terminology. Being new to Linux I don't know enough about widgets to honestly answer. >> And kill their own monoply by their own free choice. >> >> Are you aware that even such a lowly entity as a label is a window in >> Windows? >> >> Perhaps not. >> > > Perhaps I might suggest you take a look at eyeOS, learn a bit, and > then report back here. > If you don't I might be even happier. Yes, I took a look at it the other day. I don't think I'd ever be comfortable with the idea that the whole system lives in a web browser. Crikey, Internet Exploder is a web browser! From bbruen at ...2308... Wed Nov 25 05:53:01 2009 From: bbruen at ...2308... (bbb888) Date: Tue, 24 Nov 2009 20:53:01 -0800 (PST) Subject: [Gambas-user] Frame where the first item is not Enabled - focus problem In-Reply-To: <26507190.post@...1379...> References: <26507190.post@...1379...> Message-ID: <26507550.post@...1379...> bbb888 wrote: > > In this form I have > - several misc controls > - a textarea > - a frame (with several checkboxes and buttons) > - a listview > in that order in the heirarchy. > > In certain conditions, the first item in the frame has it's Enabled > property set to false. > When this happens and I tab from the textarea to the frame (in actual fact > it's done in code using textarea.Next.SetFocus as I have to trap TAB > keys), the focus does not go to the first enabled item in the frame. In > fact, it seems to disappear* and a second tab moves the focus to the first > control in the form, not the listview. > * even the listview_GotFocus handler is never invoked. > > If the first item in the frame is enabled, the form "works". > > Is this expected behaviour? If not, do you think it is something in > gambas or in the KDE style (Highcolor Classic) that I am using ? > > tia > Bruce > > Update: I've tried changing the Frame to a Panel, but apart from losing my > title the problem remains. > OK, Ive solved it with IF Panel2.Children[0].Enabled THEN Panel2.Children[0].SetFocus ELSE Panel2.Children[1].SetFocus ENDIF but I wouldn't have thought I'd need to go to thgat extreme? -- View this message in context: http://old.nabble.com/Frame-where-the-first-item-is-not-Enabled---focus-problem-tp26507190p26507550.html Sent from the gambas-user mailing list archive at Nabble.com. From 12ukwn at ...626... Wed Nov 25 07:54:58 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 07:54:58 +0100 Subject: [Gambas-user] base64 encoding/decoding Message-ID: <4B0CD4C2.9060404@...626...> Hi, I saw that gb.xml has base64 but there's no docs, does somebody have written encoding/decoding routines for strings? -- Really?? What a coincidence, I'm shallow too!! From 12ukwn at ...626... Wed Nov 25 09:42:36 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 09:42:36 +0100 Subject: [Gambas-user] base64 encoding/decoding In-Reply-To: <4B0CD4C2.9060404@...626...> References: <4B0CD4C2.9060404@...626...> Message-ID: <4B0CEDFC.2080206@...626...> Jean-Yves F. Barbier a ?crit : > Hi, > > I saw that gb.xml has base64 but there's no docs, does somebody > have written encoding/decoding routines for strings? Forget it: I find a pure Gambas one -- After all, all he did was string together a lot of old, well-known quotations. -- H. L. Mencken, on Shakespeare From 12ukwn at ...626... Wed Nov 25 09:49:22 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 09:49:22 +0100 Subject: [Gambas-user] problem with a file Message-ID: <4B0CEF92.4020208@...626...> Hi, I read an .png file, transform it into Base64, write it to a PG DB table through a stored procedure (as TEXT), and retrieve it. My PB is: the original file length is 298 Bytes and my reading is 234 and I don't know why (whatever method I use instead od Base64, file's always truncated.) Here are the Hex readings: ORIGINAL 00000000 89 50 4E 47 0D 0A 1A 0A 00 00 00 0D 49 48 44 52 00 00 00 18 00 00 00 18 08 06 00 00 .PNG........IHDR............ 0000001C 00 E0 77 3D F8 00 00 00 F1 49 44 41 54 48 89 B5 93 4B 0E C2 20 14 45 0F B5 89 13 E3 ..w=.....IDATH...K.. .E..... 00000038 C0 44 07 BA B5 2E 82 A5 B0 08 F6 67 34 0E 4C FD E0 A4 D4 7E A0 3C 2B BD 23 E0 DD 77 .D.........g4.L....~.<+.#..w 00000054 EE A3 A4 B0 B0 94 C4 E4 4C E5 82 CD DA 26 FB 27 0D 31 F0 2F 41 C1 82 14 2C 09 1A 1D ........L....&.'.1./A...,... 00000070 CC 85 C7 42 7A 9B 7F E1 A1 90 22 07 70 32 CC 2F 72 4D DF 82 9B 5B 94 13 86 76 ED 4C ...Bz.....".p2./rM...[...v.L 0000008C 35 DF D3 14 7B D3 77 1B 63 00 A1 47 2D FE 06 A3 80 D0 64 C3 73 89 27 1A 90 5B A3 80 5...{.w.c..G-.....d.s.'..[.. 000000A8 D8 63 75 CF 25 9E 68 40 6E 15 00 4A DB F5 D4 24 A1 C9 52 1E CF F4 FF C1 2A 05 08 29 .cu.%.h at ...2331...$..R.....*..) 000000C4 E1 29 81 DA 7F A2 97 D2 F6 98 24 0A A5 B4 3D 01 4F F8 BE 41 0D DC 73 05 34 AC BA 1B .)........$...=.O..A..s.4... 000000E0 00 70 55 DA EE FF 25 2B 6D 0F C0 B5 DD 0F EA 05 B0 75 A6 3A CF 84 EF 80 0B F0 8E 05 .pU...%+m........u.:........ 000000FC 78 95 C0 46 1A D4 80 6F C0 63 54 13 F4 AF 9C A9 9E 11 70 09 BC 24 43 2C A6 0F 34 AA x..F...o.cT.......p..$C,..4. 00000118 60 57 32 C0 EB 38 00 00 00 00 49 45 4E 44 AE 42 60 82 `W2..8....IEND.B`. RETRIEVED 00000000 89 50 4E 47 0D 0A 1A 0A 00 00 00 0D 49 48 44 52 00 00 00 18 00 00 00 18 08 06 00 00 .PNG........IHDR............ 0000001C 00 E0 77 3D F8 00 00 00 F1 49 44 41 54 48 89 B5 93 4B 0E C2 20 14 45 0F B5 89 13 E3 ..w=.....IDATH...K.. .E..... 00000038 C0 44 07 BA B5 2E 82 A5 B0 08 F6 67 34 0E 4C FD E0 A4 D4 7E A0 3C 2B BD 23 E0 DD 77 .D.........g4.L....~.<+.#..w 00000054 EE A3 A4 B0 B0 94 C4 E4 4C E5 82 CD DA 26 FB 27 0D 31 F0 2F 41 C1 82 14 2C 09 1A 1D ........L....&.'.1./A...,... 00000070 CC 85 C7 42 7A 9B 7F E1 A1 90 22 07 70 32 CC 2F 72 4D DF 82 9B 5B 94 13 86 76 ED 4C ...Bz.....".p2./rM...[...v.L 0000008C 35 DF D3 14 7B D3 77 1B 63 00 A1 47 2D FE 06 A3 80 D0 64 C3 73 89 27 1A 90 5B A3 80 5...{.w.c..G-.....d.s.'..[.. 000000A8 D8 63 75 CF 25 9E 68 40 6E 15 00 4A DB F5 D4 24 A1 C9 52 1E CF F4 FF C1 2A 05 08 29 .cu.%.h at ...2331...$..R.....*..) 000000C4 E1 29 81 DA 7F A2 97 D2 F6 98 24 0A A5 B4 3D 01 4F F8 BE 41 0D DC 73 05 34 AC BA 1B .)........$...=.O..A..s.4... 000000E0 00 70 55 DA EE FF 25 2B 6D 0F .pU...%+m. Could somebody tell me why this happens? JY -- You will be dead within a year. From nospam.nospam.nospam at ...626... Wed Nov 25 06:06:32 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 25 Nov 2009 16:06:32 +1100 Subject: [Gambas-user] keep forms into a form References: <4B0B666D.7010609@...626...><6324a42a0911240117w856744fn6252b9db2aee7e25@...627...> <200911241005.07639.sourceforge-raindog2@...94...> Message-ID: <8A458C19E7CA4D20BC8D57AE2740A112@...2330...> Rob wrote: > On Tuesday 24 November 2009 05:23 am, nospam.nospam.nospam at ...626... > wrote: >> Look, I cut my teeth on DOS before Windows was even dreamt of. The >> win3 MDI interface was the best anyone could come up with two full >> decades ago. > > And the "vomiting little windows all over the desktop" approach was > the > best anyone could come up with two and a half decades ago.... on the > Mac. Yes, but the mac was different. The fatal finder crash icon with the squinty eyes and sad face had a certain je ne sais quois about it. From nospam.nospam.nospam at ...626... Wed Nov 25 07:09:07 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 25 Nov 2009 17:09:07 +1100 Subject: [Gambas-user] qte disabled References: <200911200105.43575.gambas@...1...> Message-ID: Beno?t Minisini wrote: > But it is strange that you see gb.qte in the list of components in > the IDE project property dialog, if gb.qte was not installed! No, not strange. I get the same message, but I also assume you know what you're doing :) so I ignore it. From 12ukwn at ...626... Wed Nov 25 10:21:35 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 10:21:35 +0100 Subject: [Gambas-user] problem with a file In-Reply-To: <4B0CEF92.4020208@...626...> References: <4B0CEF92.4020208@...626...> Message-ID: <4B0CF71F.3090605@...626...> Jean-Yves F. Barbier a ?crit : ... > Could somebody tell me why this happens? I've the same problem with another file; so now I suspect the String to be utf-8 and to throw me out before the end of the conversion because of an odd combination of bytes. O_o SWELL: TextStr = Conv(TextStr, "utf-8", "ascii") returns a "Bad string conversion"... (d? for Conv$) What do I do now?? -- BOFH excuse #128: Power Company having EMP problems with their reactor From 12ukwn at ...626... Wed Nov 25 11:47:03 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 11:47:03 +0100 Subject: [Gambas-user] problem with a file In-Reply-To: <4B0CF71F.3090605@...626...> References: <4B0CEF92.4020208@...626...> <4B0CF71F.3090605@...626...> Message-ID: <4B0D0B27.8070405@...626...> Jean-Yves F. Barbier a ?crit : > Jean-Yves F. Barbier a ?crit : > ... >> Could somebody tell me why this happens? > > I've the same problem with another file; so now I suspect the String > to be utf-8 and to throw me out before the end of the conversion > because of an odd combination of bytes. A comparison between what's in DB and uuencode give the same result except uuencode has 3 more chars: DB is "==" and uuencode is "=====" (with a CR between 2nd and 3th "=") As = means a space, I may consider it is the same. So PB is located in base64 to string, but nothing seems wrong in the code. Counting Base64 Bytes gives 400 in and 400 out, but output string is 234 instead of 298. Arrghhhhh -- "I am ecstatic that some moron re-invented a 1995 windows fuckup." -- Alan Cox From nospam.nospam.nospam at ...626... Wed Nov 25 13:14:19 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Wed, 25 Nov 2009 23:14:19 +1100 Subject: [Gambas-user] problem with a file References: <4B0CEF92.4020208@...626...> <4B0CF71F.3090605@...626...> <4B0D0B27.8070405@...626...> Message-ID: <046360B884A84197842BBDD51202A5E0@...2330...> Jean-Yves F. Barbier wrote: > Arrghhhhh I wish I had a dollar for every time gambas has done that to me. Perhaps you might post the stored procedure. From 12ukwn at ...626... Wed Nov 25 15:02:27 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Wed, 25 Nov 2009 15:02:27 +0100 Subject: [Gambas-user] problem with a file In-Reply-To: <046360B884A84197842BBDD51202A5E0@...2330...> References: <4B0CEF92.4020208@...626...> <4B0CF71F.3090605@...626...> <4B0D0B27.8070405@...626...> <046360B884A84197842BBDD51202A5E0@...2330...> Message-ID: <4B0D38F3.6030600@...626...> nospam.nospam.nospam at ...626... a ?crit : > Jean-Yves F. Barbier wrote: > >> Arrghhhhh > > I wish I had a dollar for every time gambas has done that to me. > > Perhaps you might post the stored procedure. why? The string sent is the same as the one retrieved. My PB's not there: it is in the string processing, BUT the code's correct, so I strongly suspect it is an UTF-8 issue (as there's no possibility to read|convert into an ASCII string, so 2 bytes may be concatenated as one). I double checked and it always occurs at the same place, it also happens with other files, but the content of these files is "normal"... -- May I ask a question? From jussi.lahtinen at ...626... Wed Nov 25 16:35:34 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 25 Nov 2009 17:35:34 +0200 Subject: [Gambas-user] qte disabled In-Reply-To: References: <200911200105.43575.gambas@...1...> Message-ID: <384d3900911250735o3f1555c4k810fbd2461ccb5ff@...627...> > No, not strange. I get the same message, but I also assume you know what > you're doing :) so I ignore it. I think we all got that message when compiling, but strange thing is if you have it in IDE project property dialog. I don't see it in Gambas2 or Gambas3 IDE. Jussi From Karl.Reinl at ...9... Wed Nov 25 17:09:07 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 25 Nov 2009 17:09:07 +0100 Subject: [Gambas-user] qte disabled In-Reply-To: <384d3900911250735o3f1555c4k810fbd2461ccb5ff@...627...> References: <200911200105.43575.gambas@...1...> <384d3900911250735o3f1555c4k810fbd2461ccb5ff@...627...> Message-ID: <1259165347.6407.12.camel@...40...> Am Mittwoch, den 25.11.2009, 17:35 +0200 schrieb Jussi Lahtinen: > > No, not strange. I get the same message, but I also assume you know what > > you're doing :) so I ignore it. > > I think we all got that message when compiling, but strange thing is > if you have it in IDE project property dialog. > I don't see it in Gambas2 or Gambas3 IDE. > > Jussi > Salut, if he made a "normal" installation, he should look in /usr/local/lib/gambas2 if there are gb.qte.* files/links. And if YES he has to compare the file date of the gb.qte.* and the other gb.*.*. He said using kubuntu 9.10, which gambas package comes with that distro ? Did he install that package before compiling 2.17/2.18 ? On kubuntu 9.10, can one force to install that gb.qte package? If YES he can remove it. -- Amicalement Charlie From gambas.fr at ...626... Wed Nov 25 19:09:41 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 25 Nov 2009 19:09:41 +0100 Subject: [Gambas-user] Gambas as firefox plugin !!! In-Reply-To: <94ED093E35A14D59928488292E83D419@...2330...> References: <200911232033.58527.sourceforge-raindog2@...94...> <200911240037.05880.sourceforge-raindog2@...94...> <200CBE13558A4E059052FBB89D0DAD5A@...2330...> <1259053643.6495.28.camel@...1936...> <1259072215.4144.8.camel@...1936...> <94ED093E35A14D59928488292E83D419@...2330...> Message-ID: <6324a42a0911251009j6151fbahb484c68c68b5487a@...627...> What we need to do ?? In my idea : WebForms... tha the compiler traduce in webpage... like pyjama but not realy form the codesource in basis... The gb.report is working a littlebit like that ... the webform, inherit webHcontainer, inherit webcontainer, inherit webcontrol webcontrol manage all ajax event and javacode for control structure in the clientside. in fact it need a pseudo object tree in the client side that reflect the server side. so in the serverside we can receive some data events and transmit datas with rpc. yesteday i've learn about GWT ... it's really like what i've donne on gambasforge... functions, that draw basic components. then the power of GWT is the traduct of a part of code from java to javascript ... it's what is doing with pyjama too. I think there is a possible soluce with gambas... but we have to find it ... drawing it ... find time to do that !!! I see here many people with good ideas ... but ideas are not sufficient... we need also poeple that help in coding gambas components... gb.web.form can be a component writted in gambas. From leandrosansilva at ...626... Wed Nov 25 20:30:47 2009 From: leandrosansilva at ...626... (Leandro Santiago) Date: Wed, 25 Nov 2009 17:30:47 -0200 Subject: [Gambas-user] Questions about Gambas2 on ARM Message-ID: <4B0D85E7.5070604@...626...> Hello to all. I'm new in list (and in Gambas), and I want asking some things: - Does Gambas work on ARM based computers? I tested the command-line compiler and this works, but the generated program (or script?) doesn't work and I have a segmentation fault. I'm using an Debian Sid inside a QEMU (host => Ubuntu Karmic) machine with gambas 2.17 with all components installed from oficial debian repos. Gambas IDE doesn't work too, with the same segfault. - There is a way to run gtk or qt based gambas apps without X server? Maybe with fbdev with special versions of gtk and qt? ps: there is a brazilian mailing list about gambas? From gambas at ...1... Wed Nov 25 20:38:22 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Wed, 25 Nov 2009 20:38:22 +0100 Subject: [Gambas-user] Questions about Gambas2 on ARM In-Reply-To: <4B0D85E7.5070604@...626...> References: <4B0D85E7.5070604@...626...> Message-ID: <200911252038.22165.gambas@...1...> > Hello to all. I'm new in list (and in Gambas), and I want asking some > things: > > - Does Gambas work on ARM based computers? I tested the command-line > compiler and this works, but the generated program (or script?) doesn't > work and I have a segmentation fault. I'm using an Debian Sid inside a > QEMU (host => Ubuntu Karmic) machine with gambas 2.17 with all > components installed from oficial debian repos. Gambas IDE doesn't work > too, with the same segfault. > > - There is a way to run gtk or qt based gambas apps without X server? > Maybe with fbdev with special versions of gtk and qt? > > ps: there is a brazilian mailing list about gambas? > I have no ARM machine, so I need as many details and information as possible. The better would be that you compile Gambas from source and provide me an ssh access to your machine. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Wed Nov 25 20:40:05 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Thu, 26 Nov 2009 06:40:05 +1100 Subject: [Gambas-user] problem with a file References: <4B0CEF92.4020208@...626...><4B0CF71F.3090605@...626...> <4B0D0B27.8070405@...626...><046360B884A84197842BBDD51202A5E0@...2330...> <4B0D38F3.6030600@...626...> Message-ID: <94EB1F6312164B59942083FD91828A18@...2330...> Jean-Yves F. Barbier wrote: > nospam.nospam.nospam at ...626... a ?crit : >> Jean-Yves F. Barbier wrote: >> >>> Arrghhhhh >> >> I wish I had a dollar for every time gambas has done that to me. >> >> Perhaps you might post the stored procedure. > > why? The string sent is the same as the one retrieved. I'll take your word for it. From ubuntu at ...2332... Thu Nov 26 00:28:21 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Wed, 25 Nov 2009 18:28:21 -0500 Subject: [Gambas-user] rpmbuild and install package Message-ID: <4B0DBD95.1020903@...2332...> Howdy, everyone. I've been using Gambas for about a month but only joined the list about a week ago. I've really enjoyed playing around with Gambas. I used Windows (as well as Linux) and was a VB programmer (among other languages) for years until I finally couldn't take it anymore and ditched everything MS. I now run *only* Linux. I was writing a blackjack card game in Gambas, just for kicks and giggles, to see how it works. However, when I attempted to make an installation package, the only options I had available were Debian and Ubuntu. Fedora, Mandriva, OpenSUSE and Slackware were disabled with the message "rpmbuild is missing". I installed the librpmbuild package in Synaptic but I still get the same message. Is that the wrong package, or is there something else I am missing? Is it because I'm using Gambas3 and not the stable version? I'm running on Ubuntu 9.10. Mind you, this isn't anything critical. I'm not doing any type of production work. I'm just writing this as an exercise and for my own amusement. Thanks for any advice you can give this Gambas newbie. From leandrosansilva at ...626... Thu Nov 26 02:25:58 2009 From: leandrosansilva at ...626... (Leandro Santiago) Date: Wed, 25 Nov 2009 23:25:58 -0200 Subject: [Gambas-user] Questions about Gambas2 on ARM In-Reply-To: <200911252038.22165.gambas@...1...> References: <4B0D85E7.5070604@...626...> <200911252038.22165.gambas@...1...> Message-ID: <4B0DD926.4050804@...626...> Beno?t Minisini wrote: >> Hello to all. I'm new in list (and in Gambas), and I want asking some >> things: >> >> - Does Gambas work on ARM based computers? I tested the command-line >> compiler and this works, but the generated program (or script?) doesn't >> work and I have a segmentation fault. I'm using an Debian Sid inside a >> QEMU (host => Ubuntu Karmic) machine with gambas 2.17 with all >> components installed from oficial debian repos. Gambas IDE doesn't work >> too, with the same segfault. >> >> - There is a way to run gtk or qt based gambas apps without X server? >> Maybe with fbdev with special versions of gtk and qt? >> >> ps: there is a brazilian mailing list about gambas? >> >> > > I have no ARM machine, so I need as many details and information as possible. > The better would be that you compile Gambas from source and provide me an ssh > access to your machine. > > Regards, > > I don't have a ARM machine too :-) But I'm trying on a emulator. I will try another distro (my debian is bugged :-)) and do more tests with "lastest gambas snapshot" from svn and I want to send more informations. But today is Linux in arm fully - or officially - supported? Graphical components, etc? From arosa at ...2015... Thu Nov 26 03:00:26 2009 From: arosa at ...2015... (Toni) Date: Thu, 26 Nov 2009 03:00:26 +0100 Subject: [Gambas-user] rpmbuild and install package In-Reply-To: <4B0DBD95.1020903@...2332...> References: <4B0DBD95.1020903@...2332...> Message-ID: <4B0DE13A.90500@...2015...> Hi there, I think that rpmbuild is provided by "rpm" package in ubuntu. Regards, Toni En/na D. L. Fox ha escrit: > Howdy, everyone. I've been using Gambas for about a month but only > joined the list about a week ago. I've really enjoyed playing around > with Gambas. > > I used Windows (as well as Linux) and was a VB programmer (among other > languages) for years until I finally couldn't take it anymore and > ditched everything MS. I now run *only* Linux. > > I was writing a blackjack card game in Gambas, just for kicks and > giggles, to see how it works. However, when I attempted to make an > installation package, the only options I had available were Debian and > Ubuntu. Fedora, Mandriva, OpenSUSE and Slackware were disabled with the > message "rpmbuild is missing". I installed the librpmbuild package in > Synaptic but I still get the same message. > > Is that the wrong package, or is there something else I am missing? Is > it because I'm using Gambas3 and not the stable version? I'm running on > Ubuntu 9.10. > > Mind you, this isn't anything critical. I'm not doing any type of > production work. I'm just writing this as an exercise and for my own > amusement. > > Thanks for any advice you can give this Gambas newbie. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ubuntu at ...2332... Thu Nov 26 03:29:57 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Wed, 25 Nov 2009 21:29:57 -0500 Subject: [Gambas-user] rpmbuild and install package In-Reply-To: <4B0DE13A.90500@...2015...> References: <4B0DBD95.1020903@...2332...> <4B0DE13A.90500@...2015...> Message-ID: <4B0DE825.2000107@...2332...> Yep, that did the trick. Thanks, Toni. By the way, I was mistaken about the error given for the Slackware package. It says "tar 1.13 is missing". I think I recall reading somewhere that I would have to downgrade the version of tar that comes on the machine but I'm not going to worry about it. I'm just having fun with Gambas. I don't *need* it. Thanks again. Toni wrote: > Hi there, > > I think that rpmbuild is provided by "rpm" package in ubuntu. > > Regards, > Toni From arosa at ...2015... Thu Nov 26 03:56:20 2009 From: arosa at ...2015... (Toni) Date: Thu, 26 Nov 2009 03:56:20 +0100 Subject: [Gambas-user] rpmbuild and install package In-Reply-To: <4B0DE825.2000107@...2332...> References: <4B0DBD95.1020903@...2332...> <4B0DE13A.90500@...2015...> <4B0DE825.2000107@...2332...> Message-ID: <4B0DEE54.6010300@...2015...> Hi again, I think that there is no real need for that specific version of tar... thus a workaround to generate packages for Slackware without having to downgrade the tar utility would be creating a link named "tar-1.13" to the installed tar binary in order to fool the (silly) gambas check. Something like that should do the trick: sudo ln -s /bin/tar /bin/tar-1.13 Regards, Toni En/na D. L. Fox ha escrit: > Yep, that did the trick. Thanks, Toni. > > By the way, I was mistaken about the error given for the Slackware > package. It says "tar 1.13 is missing". I think I recall reading > somewhere that I would have to downgrade the version of tar that comes > on the machine but I'm not going to worry about it. I'm just having fun > with Gambas. I don't *need* it. Thanks again. > > Toni wrote: > >> Hi there, >> >> I think that rpmbuild is provided by "rpm" package in ubuntu. >> >> Regards, >> Toni >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ubuntu at ...2332... Thu Nov 26 04:20:15 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Wed, 25 Nov 2009 22:20:15 -0500 Subject: [Gambas-user] rpmbuild and install package In-Reply-To: <4B0DEE54.6010300@...2015...> References: <4B0DBD95.1020903@...2332...> <4B0DE13A.90500@...2015...> <4B0DE825.2000107@...2332...> <4B0DEE54.6010300@...2015...> Message-ID: <4B0DF3EF.1040304@...2332...> Toni, you are 2 for 2! :-) Added the link and now I have access to creating all the available packages. Many thanks! Toni wrote: > Hi again, > I think that there is no real need for that specific version of tar... > thus a workaround to generate packages for Slackware without having to > downgrade the tar utility would be creating a link named "tar-1.13" to > the installed tar binary in order to fool the (silly) gambas check. > Something like that should do the trick: > > sudo ln -s /bin/tar /bin/tar-1.13 > > Regards, > Toni From horst at ...2298... Thu Nov 26 05:07:43 2009 From: horst at ...2298... (Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III) Date: Thu, 26 Nov 2009 15:07:43 +1100 Subject: [Gambas-user] Questions about Gambas2 on ARM In-Reply-To: <4B0DD926.4050804@...626...> References: <4B0D85E7.5070604@...626...> <200911252038.22165.gambas@...1...> <4B0DD926.4050804@...626...> Message-ID: <1259208463.12131.3509.camel@...2299...> On Wed, 2009-11-25 at 23:25 -0200, Leandro Santiago wrote: > >> - There is a way to run gtk or qt based gambas apps without X server? > >> Maybe with fbdev with special versions of gtk and qt? No, but you may find it useful to use the kdrive minimal X server. > I don't have a ARM machine too :-) But I'm trying on a emulator. I will > try another distro (my debian is bugged :-)) and do more tests with > "lastest gambas snapshot" from svn and I want to send more informations. Well if you want to use the latest and greatest, dpkg is not the way to go about it - just compile Gambas yourself. (On a sidenote, gentoo is probably a nicer option for an ARM box than any binary distro.) > But today is Linux in arm fully - or officially - supported? Graphical > components, etc? Officially, most likely not - for want of brave testers like you to report what works. Graphical components depend on Gtk or Qt, which in turn have their own dependencies. As I said, the best way to deal with that particular issue is to use kdrive. Good luck, and let us know how you go! I'd personally love Gambas to work on Windows Mobile on my Xscale so I can do some programming for my phone :) -- 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... Thu Nov 26 07:47:05 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Thu, 26 Nov 2009 17:47:05 +1100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar Message-ID: nospam.nospam.nospam at ...626... wrote: > I can't find an answer to this problem, except for an old post on > this list in French. My French is rustier than the wreck of the > Titanic but I got the impression that the building of window title > bars is under the control of the WM. > > Anyway, I have a window and I need to remove the Minimise button. The > maximise button I have dealt with. Oddly, in the gambas design > environment the window shows with only the close box, which will do, > but as soon as I run the application, there's the pesky Minimise > button again. > > Does anyone care to shed some light on this, please? *bump* Anyone? From gambas.fr at ...626... Thu Nov 26 08:50:15 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 08:50:15 +0100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar In-Reply-To: References: Message-ID: <6324a42a0911252350v727cea4bkc5a709a6dbde202d@...627...> in fact it is a definition choice ... not resizable form in gambas have a minimalize button ... i'm agree with you... we will be able to choose if we want to see the minimalize button... 2009/11/26 : > nospam.nospam.nospam at ...626... wrote: >> I can't find an answer to this problem, except for an old post on >> this list in French. My French is rustier than the wreck of the >> Titanic but I got the impression that the building of window title >> bars is under the control of the WM. >> >> Anyway, I have a window and I need to remove the Minimise button. The >> maximise button I have dealt with. Oddly, in the gambas design >> environment the window shows with only the close box, which will do, >> but as soon as I run the application, there's the pesky Minimise >> button again. >> >> Does anyone care to shed some light on this, please? > > *bump* > > Anyone? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Thu Nov 26 08:49:33 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 26 Nov 2009 08:49:33 +0100 Subject: [Gambas-user] rpmbuild and install package In-Reply-To: <4B0DF3EF.1040304@...2332...> References: <4B0DBD95.1020903@...2332...> <4B0DE13A.90500@...2015...> <4B0DE825.2000107@...2332...> <4B0DEE54.6010300@...2015...> <4B0DF3EF.1040304@...2332...> Message-ID: <4B0E330D.8010502@...1909...> D. L. Fox ha scritto: > Toni, you are 2 for 2! :-) > > Added the link and now I have access to creating all the available > packages. Many thanks! > > Toni wrote: > >> Hi again, >> I think that there is no real need for that specific version of tar... >> thus a workaround to generate packages for Slackware without having to >> downgrade the tar utility would be creating a link named "tar-1.13" to >> the installed tar binary in order to fool the (silly) gambas check. >> Something like that should do the trick: >> >> sudo ln -s /bin/tar /bin/tar-1.13 >> >> Regards, >> Toni >> You should then test your package to see if it works. There is a specific reason why slackware refuses to use newer versions of tar(1); unfortunately I don't remember where it is explained (you can google for it), but I do remember it was a good reason. Regards, Doriano From oceanosoftlapalma at ...626... Thu Nov 26 09:24:49 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Thu, 26 Nov 2009 08:24:49 +0000 Subject: [Gambas-user] Pesky Minimize Button on TitleBar In-Reply-To: <6324a42a0911252350v727cea4bkc5a709a6dbde202d@...627...> References: <6324a42a0911252350v727cea4bkc5a709a6dbde202d@...627...> Message-ID: Me too. It's no possible to change this behaviour? Please do not change it only in gambas3, there are lot of people developing in gambas2 yet. 2009/11/26 Fabien Bodard > in fact it is a definition choice ... not resizable form in gambas > have a minimalize button ... i'm agree with you... we will be able to > choose if we want to see the minimalize button... > > 2009/11/26 : > > nospam.nospam.nospam at ...626... wrote: > >> I can't find an answer to this problem, except for an old post on > >> this list in French. My French is rustier than the wreck of the > >> Titanic but I got the impression that the building of window title > >> bars is under the control of the WM. > >> > >> Anyway, I have a window and I need to remove the Minimise button. The > >> maximise button I have dealt with. Oddly, in the gambas design > >> environment the window shows with only the close box, which will do, > >> but as soon as I run the application, there's the pesky Minimise > >> button again. > >> > >> Does anyone care to shed some light on this, please? > > > > *bump* > > > > Anyone? > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Thu Nov 26 10:34:54 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Thu, 26 Nov 2009 20:34:54 +1100 Subject: [Gambas-user] It looks like a bug, it walks like a bug... Message-ID: <9BA9F22366B74852BF278B3792C76FC2@...2330...> Now what on this planet would cause the behaviour shown in these three images and described below? 1) The fields in p1_ok are disabled in the design environment. The fields are as they should be. 2) The fields in p2_not_ok are enabled in code. 3) You can see the text is enabled, and it is editable in p2_not_ok. 4) The background colour does not revert to the default when the fields are enabled. The background colour stays at the disabled colour, yet foreground text colour is working ok. 5) I am not setting colours anywhere in my code, at all. So please don't suggest I look there. 6) The form is quite complex so I built a test application that replicates the design structure, and it works fine. Click Edit and the text fields go white in the test app. Click OK or Cancel and the fields disable and change colour, as they should. Click Edit again, and it's still working fine in test app. 7) If I add a line to manually change the background color in the main app when the Edit button is clicked, like this: txtRemoteServerUsername.BackColor = Color.TextBackground Then the background goes white. Ok, so now I know I can work around the issue, but I have quite a few fields to work around. 8) After setting txtRemoteServerUsername.BackColor = Color.TextBackground, I get the problem shown in p3_not_ok. The default disabled colour has changed, though that may be due to changing the enabled backcolour. Oddly, if I use this: txtRemoteServerUsername.BackColor = Color.Default I get the very same problem as shown in p2_not_ok. It would seem that something, either gambas (2.17) or GTK has forgotten what Color.Default is. Has anyone seen this before? -------------- next part -------------- A non-text attachment was scrubbed... Name: p2_not_ok.png Type: image/png Size: 28296 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: p1_ok.png Type: image/png Size: 26837 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: p3_not_ok.png.png Type: image/png Size: 27133 bytes Desc: not available URL: From arosa at ...2168... Thu Nov 26 12:59:00 2009 From: arosa at ...2168... (Toni Rosa) Date: Thu, 26 Nov 2009 12:59:00 +0100 (Hora estándar romance) Subject: [Gambas-user] rpmbuild and install package In-Reply-To: <4B0E330D.8010502@...1909...> References: <4B0DBD95.1020903@...2332...> <4B0DE13A.90500@...2015...> <4B0DE825.2000107@...2332...> <4B0DEE54.6010300@...2015...> <4B0DF3EF.1040304@...2332...> <4B0E330D.8010502@...1909...> Message-ID: <.77.224.23.61.1259236740.squirrel@...2167...> After reading some Slackware pkgtool docs (specifically where it says "pkgtools are unstable with tar > 1.13"), no doubt Doriano is right about the need of tar-1.13, or at least the need of giving the generated package a try... so the check wasn't that silly, after all :) Sorry about misleading you on this one. Toni > D. L. Fox ha scritto: >> Toni, you are 2 for 2! :-) >> >> Added the link and now I have access to creating all the available >> packages. Many thanks! >> >> Toni wrote: >> >>> Hi again, >>> I think that there is no real need for that specific version of tar... >>> thus a workaround to generate packages for Slackware without having to >>> downgrade the tar utility would be creating a link named "tar-1.13" to >>> the installed tar binary in order to fool the (silly) gambas check. >>> Something like that should do the trick: >>> >>> sudo ln -s /bin/tar /bin/tar-1.13 >>> >>> Regards, >>> Toni >>> > You should then test your package to see if it works. There is a > specific reason why slackware refuses to use newer versions of tar(1); > unfortunately I don't remember where it is explained (you can google for > it), but I do remember it was a good reason. > > Regards, > Doriano > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 26 13:03:59 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 13:03:59 +0100 Subject: [Gambas-user] It looks like a bug, it walks like a bug... In-Reply-To: <9BA9F22366B74852BF278B3792C76FC2@...2330...> References: <9BA9F22366B74852BF278B3792C76FC2@...2330...> Message-ID: <6324a42a0911260403m6a4975dbrb6d47cea92902072@...627...> Please don't forget some informations ... the gambas version, the component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ? and yes this is a true bug !.. can you send us a little project that show this ? 2009/11/26 : > Now what on this planet would cause the behaviour shown in these three > images and described below? > > 1) The fields in p1_ok are disabled in the design environment. > ?The fields are as they should be. > > 2) The fields in p2_not_ok are enabled in code. > > 3) You can see the text is enabled, and it is editable in > ?p2_not_ok. > > 4) The background colour does not revert to the default when > ?the fields are enabled. The background colour stays at the > ?disabled colour, yet foreground text colour is working ok. > > 5) I am not setting colours anywhere in my code, at all. So > ?please don't suggest I look there. > > 6) The form is quite complex so I built a test application that > ?replicates the design structure, and it works fine. Click > ?Edit and the text fields go white in the test app. Click OK or > ?Cancel and the fields disable and change colour, as they should. > ?Click Edit again, and it's still working fine in test app. > > 7) If I add a line to manually change the background color in the > ?main app when the Edit button is clicked, like this: > > ? ? ?txtRemoteServerUsername.BackColor = Color.TextBackground > > ?Then the background goes white. Ok, so now I know I can work around > ?the issue, but I have quite a few fields to work around. > > 8) After setting txtRemoteServerUsername.BackColor = Color.TextBackground, > ?I get the problem shown in p3_not_ok. The default disabled colour > ?has changed, though that may be due to changing the enabled backcolour. > > Oddly, if I use this: > > txtRemoteServerUsername.BackColor = Color.Default > > I get the very same problem as shown in p2_not_ok. It would seem that > something, either gambas (2.17) or GTK has forgotten what Color.Default is. > > Has anyone seen this before? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Thu Nov 26 13:07:38 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 13:07:38 +0100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar In-Reply-To: References: <6324a42a0911252350v727cea4bkc5a709a6dbde202d@...627...> Message-ID: <6324a42a0911260407s241eedc5l662b188e9ba93d37@...627...> 2009/11/26 Ricardo D?az Mart?n : > Me too. It's no possible to change this behaviour? Please do not change it > only in gambas3, there are lot of people developing in gambas2 yet. yes but gambas2 is not going to live for a long time as qt3 begin to became obsolete and this kind of change can make crashes on some already running gambas2 project... so if something is doing it will be only on gambas3 (maybe Benoit have another answer) > > 2009/11/26 Fabien Bodard > >> in fact it is a definition choice ... not resizable form in gambas >> have a minimalize button ... i'm agree with you... we will be able to >> choose if we want to see the minimalize button... >> >> 2009/11/26 ?: >> > nospam.nospam.nospam at ...626... wrote: >> >> I can't find an answer to this problem, except for an old post on >> >> this list in French. My French is rustier than the wreck of the >> >> Titanic but I got the impression that the building of window title >> >> bars is under the control of the WM. >> >> >> >> Anyway, I have a window and I need to remove the Minimise button. The >> >> maximise button I have dealt with. Oddly, in the gambas design >> >> environment the window shows with only the close box, which will do, >> >> but as soon as I run the application, there's the pesky Minimise >> >> button again. >> >> >> >> Does anyone care to shed some light on this, please? >> > >> > *bump* >> > >> > Anyone? >> > >> > >> ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> > trial. Simplify your report design, integration and deployment - and >> focus on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Thu Nov 26 13:08:50 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Thu, 26 Nov 2009 23:08:50 +1100 Subject: [Gambas-user] It looks like a bug, it walks like a bug... References: <9BA9F22366B74852BF278B3792C76FC2@...2330...> <6324a42a0911260403m6a4975dbrb6d47cea92902072@...627...> Message-ID: <5C69A9E2EEA442BFBF928B734DE529E3@...2330...> Fabien Bodard wrote: > Please don't forget some informations ... the gambas version, the > component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ? [QUOTE] gambas (2.17) [/QUOTE] [QUOTE] GTK [/QUOTE] > and yes this is a true bug !.. > > can you send us a little project that show this ? [QUOTE] The form is quite complex so I built a test application that replicates the design structure, and it works fine. [/QUOTE] > 2009/11/26 : >> Now what on this planet would cause the behaviour shown in these >> three images and described below? >> >> 1) The fields in p1_ok are disabled in the design environment. >> The fields are as they should be. >> >> 2) The fields in p2_not_ok are enabled in code. >> >> 3) You can see the text is enabled, and it is editable in >> p2_not_ok. >> >> 4) The background colour does not revert to the default when >> the fields are enabled. The background colour stays at the >> disabled colour, yet foreground text colour is working ok. >> >> 5) I am not setting colours anywhere in my code, at all. So >> please don't suggest I look there. >> >> 6) The form is quite complex so I built a test application that >> replicates the design structure, and it works fine. Click >> Edit and the text fields go white in the test app. Click OK or >> Cancel and the fields disable and change colour, as they should. >> Click Edit again, and it's still working fine in test app. >> >> 7) If I add a line to manually change the background color in the >> main app when the Edit button is clicked, like this: >> >> txtRemoteServerUsername.BackColor = Color.TextBackground >> >> Then the background goes white. Ok, so now I know I can work around >> the issue, but I have quite a few fields to work around. >> >> 8) After setting txtRemoteServerUsername.BackColor = >> Color.TextBackground, I get the problem shown in p3_not_ok. The >> default disabled colour >> has changed, though that may be due to changing the enabled >> backcolour. >> >> Oddly, if I use this: >> >> txtRemoteServerUsername.BackColor = Color.Default >> >> I get the very same problem as shown in p2_not_ok. It would seem that >> something, either gambas (2.17) or GTK has forgotten what >> Color.Default is. >> >> Has anyone seen this before? >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and >> deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment > - and focus on what you do best, core application coding. Discover > what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Thu Nov 26 13:32:21 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 13:32:21 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <4B0BE1BD.3040609@...2324...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...> <1259066841.7076.4.camel@...40...> <4B0BD7E7.8050701@...2324...> <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> <4B0BE1BD.3040609@...2324...> Message-ID: <6324a42a0911260432kcf83b64j4b85575b0b53880@...627...> the true syntax for the magic call is : /usr/bin/env gbs2 this way the gbs2 true path is alway good 2009/11/24 Matteo Lisi : > > Could the problem be some other typing error? > > ? Perhaps ! A dog ate my hands and I'm typing with two little wood rod... > ? I tried to replace the return line with the one who you suggest me: > RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + cVal!SwapTot > al - cVal!SwapFree - cVal!SwapCached > > ? But I had the same result ! > ? [1]nospam.nospam.nospam at ...626... ha scritto: > > Matteo Lisi wrote: > > > ?Hi ! > > ?The first line: > #!/usr/bin/ gbs2 > > ?it's a typing error > ?the right line is: > #!/usr/bin/gbs2 > > ?Thanks Charlie , but the problem , unfortunatly is not the space ! > > > Could the problem be some other typing error? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?[2]http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > [3]Gambas-user at lists.sourceforge.net > [4]https://lists.sourceforge.net/lists/listinfo/gambas-user > > References > > ? 1. mailto:nospam.nospam.nospam at ...626... > ? 2. http://p.sf.net/sfu/bobj-july > ? 3. mailto:Gambas-user at lists.sourceforge.net > ? 4. https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Nov 26 13:32:44 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 13:32:44 +0100 Subject: [Gambas-user] pb loading an picture into a string Message-ID: <4B0E756C.2080109@...626...> Hi, Here is a (very big) PB: ... ' Get picture /path/name.ext INfile = FileChooser1.SelectedPath FileSize = Stat(FileChooser1.SelectedPath).Size ' Read file into a string INstream = OPEN INfile FOR INPUT ' READ #INstream, INstring, Lof(INstream) ' NA: Returns 238 bytes READ #INstream, INstring, FileSize ' Erk: same thing :( CLOSE #INstream PRINT "INstring length (Len, String.Len) = " & Len(INstring) & " - " & String.Len(INstring) Returns "298 - 234" when I read a small picture.png file!?? How could I correctly read this image wothout any loss? Purpose is to read it correctly, convert it to base64 and send it to a postgresql procedure (and, of course, the opposite.) JY -- For a man to truly understand rejection, he must first be ignored by a cat. From gambas.fr at ...626... Thu Nov 26 13:39:07 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 13:39:07 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <1259071290.7076.24.camel@...40...> References: <6324a42a0911240205r5cc56d68q166fe82808318984@...627...> <4B0BBB78.5070201@...2324...> <1259066841.7076.4.camel@...40...> <4B0BD7E7.8050701@...2324...> <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> <1259071290.7076.24.camel@...40...> Message-ID: <6324a42a0911260439l47d9310es5eae38ce25ba0434@...627...> in fact when i've wrotted the gbs ... i've use gb2 calsortkey function and all the CComponent class from the ide to manage automatiquely the components d?pendence.. this way when you call : USE gb.qt.ext internally it call gb.qt too... but the function of Benoit have a bug i've detected there is only 3 week by reinstalling completly my system and where i've not compiled the gb.qt component ... this make the ide crashing, because gb.report need gb.qt and now i've only gb.qt4... so the calcsort key need to remove a component in the list when it is deficient. i will looking on that ... for gb3.. and if it work maybe Benoit can doing a Backport 2009/11/24 Charlie Reinl : > Am Mittwoch, den 25.11.2009, 00:27 +1100 schrieb > nospam.nospam.nospam at ...626...: >> Matteo Lisi wrote: >> > ? Hi ! >> > >> > ? The first line: >> > #!/usr/bin/ gbs2 >> > >> > ? it's a typing error >> > ? the right line is: >> > #!/usr/bin/gbs2 >> > >> > ? Thanks Charlie , but the problem , unfortunatly is not the space ! >> >> Could the problem be some other typing error? > > Salut, > > 1.)------ full call -------- > > :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -c > ~/gambas/2/f3/scriptTest/matteo.ga2script > gbs2: warning: cannot find component dbreportviewer2 required by > DBReportDesigner2 > CComponent.CalcSortKey.171: #13: Null object > 0: CComponent.CalcSortKey.171 > 1: CComponent.SortComponents.201 > 2: CComponent._init.123 > 3: MMain.MakeVirtualProject.180 > 4: MMain.Main.83 > > I'v no idea what, and why that gbs2: warning. > The component exists as User-Component, and of course it has nothing to > do with the script > > 2.)----- my gbs2 version [rev 2429] ------------------------ > > :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 ?-V > 2.14.0 > > 3.)------ after a chmod +x and changing to #!/usr/local/bin/gbs2 ------ > > :~/gambas/2/f3/scriptTest$ ./matteo.ga2script > ./matteo.gbs: line 3: syntax error near unexpected token `(' > ./matteo.gbs: line 3: `FUNCTION GetUsedMemory() AS Integer' > > perhaps Benoit or Fabien have a Idea! > > > -- > Amicalement > Charlie > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From nospam.nospam.nospam at ...626... Thu Nov 26 13:15:19 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Thu, 26 Nov 2009 23:15:19 +1100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar References: <6324a42a0911252350v727cea4bkc5a709a6dbde202d@...627...> <6324a42a0911260407s241eedc5l662b188e9ba93d37@...627...> Message-ID: Fabien Bodard wrote: > 2009/11/26 Ricardo D?az Mart?n : >> Me too. It's no possible to change this behaviour? Please do not >> change it only in gambas3, there are lot of people developing in >> gambas2 yet. > > yes but gambas2 is not going to live for a long time as qt3 begin to > became obsolete and this kind of change can make crashes on some > already running gambas2 project... > > so if something is doing it will be only on gambas3 (maybe Benoit have > another answer) Do you know where can I get my hands on gambas 3 and instructions on installing it on ubuntu? I'd love to take a look at it. From gambas.fr at ...626... Thu Nov 26 13:17:12 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 13:17:12 +0100 Subject: [Gambas-user] Frame where the first item is not Enabled - focus problem In-Reply-To: <26507550.post@...1379...> References: <26507190.post@...1379...> <26507550.post@...1379...> Message-ID: <6324a42a0911260417p1c791de4n89d80faaf927e18f@...627...> gambas manage the tab order with the zorder of childs... but the problem seem to be that gambas give focus to desabled controls... it's no a good behaviour. 2009/11/25 bbb888 : > > > > bbb888 wrote: >> >> In this form I have >> - several misc controls >> - a textarea >> - a frame (with several checkboxes and buttons) >> - a listview >> in that order in the heirarchy. >> >> In certain conditions, the first item in the frame has it's Enabled >> property set to false. >> When this happens and I tab from the textarea to the frame (in actual fact >> it's done in code using textarea.Next.SetFocus as I have to trap TAB >> keys), the focus does not go to the first enabled item in the frame. ?In >> fact, it seems to disappear* and a second tab moves the focus to the first >> control in the form, not the listview. >> * even the listview_GotFocus handler is never invoked. >> >> If the first item in the frame is enabled, the form "works". >> >> Is this expected behaviour? ?If not, do you think it is something in >> gambas or in the KDE style (Highcolor Classic) that I am using ? >> >> tia >> Bruce >> >> Update: I've tried changing the Frame to a Panel, but apart from losing my >> title the problem remains. >> > > OK, Ive solved it with > > ?IF Panel2.Children[0].Enabled THEN > ? ?Panel2.Children[0].SetFocus > ?ELSE > ? ?Panel2.Children[1].SetFocus > ?ENDIF > > but I wouldn't have thought I'd need to go to thgat extreme? > -- > View this message in context: http://old.nabble.com/Frame-where-the-first-item-is-not-Enabled---focus-problem-tp26507190p26507550.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 26 13:59:38 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 13:59:38 +0100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar In-Reply-To: References: <6324a42a0911252350v727cea4bkc5a709a6dbde202d@...627...> <6324a42a0911260407s241eedc5l662b188e9ba93d37@...627...> Message-ID: <6324a42a0911260459i604a4445l8894772afe1daacc@...627...> http://gambasdoc.org/help/install/ubuntu and be carefull this is an early alpha version... but stable as gb2 as the bug correction are making both in the stable and the development version another thing ... as gambas 3 doing some change on the gb2 project tree, make a copy of the project befor opening it... overwise you can't reopen it with gb2. after opening a gb2 project do a Tool> convert forms. as the form and some control properties have changed. That's all ... have fun ! i forget : ...or the latest current version being developed You need the svn client. $ mkdir trunk $ svn checkout https://gambas.svn.sourceforge.net/svnroot/[../../def/gambas]/gambas/trunk $ cd trunk 3. Compile and install it $ ./reconf-all $ ./configure -C $ make $ su -c "make install" Password: *** 2009/11/26 : > Fabien Bodard wrote: >> 2009/11/26 Ricardo D?az Mart?n : >>> Me too. It's no possible to change this behaviour? Please do not >>> change it only in gambas3, there are lot of people developing in >>> gambas2 yet. >> >> yes but gambas2 is not going to live for a long time as qt3 begin to >> became obsolete and this kind of change can make crashes on some >> already running gambas2 project... >> >> so if something is doing it will be only on gambas3 (maybe Benoit have >> another answer) > > Do you know where can I get my hands on gambas 3 and instructions on > installing it on ubuntu? > > I'd love to take a look at it. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 26 13:14:25 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 13:14:25 +0100 Subject: [Gambas-user] It looks like a bug, it walks like a bug... In-Reply-To: <5C69A9E2EEA442BFBF928B734DE529E3@...2330...> References: <9BA9F22366B74852BF278B3792C76FC2@...2330...> <6324a42a0911260403m6a4975dbrb6d47cea92902072@...627...> <5C69A9E2EEA442BFBF928B734DE529E3@...2330...> Message-ID: <6324a42a0911260414h76112dfaq890a0d368490d8fd@...627...> so send me the complete form ! ... i can't debug it without send it directly to me 2009/11/26 : > Fabien Bodard wrote: >> Please don't forget some informations ... the gambas version, the >> component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ? > > [QUOTE] > gambas (2.17) > [/QUOTE] > > [QUOTE] > GTK > [/QUOTE] > >> and yes this is a true bug !.. >> >> can you send us a little project that show this ? > > [QUOTE] > The form is quite complex so I built a test application that > replicates the design structure, and it works fine. > [/QUOTE] > >> 2009/11/26 ?: >>> Now what on this planet would cause the behaviour shown in these >>> three images and described below? >>> >>> 1) The fields in p1_ok are disabled in the design environment. >>> The fields are as they should be. >>> >>> 2) The fields in p2_not_ok are enabled in code. >>> >>> 3) You can see the text is enabled, and it is editable in >>> p2_not_ok. >>> >>> 4) The background colour does not revert to the default when >>> the fields are enabled. The background colour stays at the >>> disabled colour, yet foreground text colour is working ok. >>> >>> 5) I am not setting colours anywhere in my code, at all. So >>> please don't suggest I look there. >>> >>> 6) The form is quite complex so I built a test application that >>> replicates the design structure, and it works fine. Click >>> Edit and the text fields go white in the test app. Click OK or >>> Cancel and the fields disable and change colour, as they should. >>> Click Edit again, and it's still working fine in test app. >>> >>> 7) If I add a line to manually change the background color in the >>> main app when the Edit button is clicked, like this: >>> >>> txtRemoteServerUsername.BackColor = Color.TextBackground >>> >>> Then the background goes white. Ok, so now I know I can work around >>> the issue, but I have quite a few fields to work around. >>> >>> 8) After setting txtRemoteServerUsername.BackColor = >>> Color.TextBackground, I get the problem shown in p3_not_ok. The >>> default disabled colour >>> has changed, though that may be due to changing the enabled >>> backcolour. >>> >>> Oddly, if I use this: >>> >>> txtRemoteServerUsername.BackColor = Color.Default >>> >>> I get the very same problem as shown in p2_not_ok. It would seem that >>> something, either gambas (2.17) or GTK has forgotten what >>> Color.Default is. >>> >>> Has anyone seen this before? >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day trial. Simplify your report design, integration and >>> deployment - and focus on >>> what you do best, core application coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and deployment >> - and focus on what you do best, core application coding. Discover >> what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From doriano.blengino at ...1909... Thu Nov 26 14:03:20 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Thu, 26 Nov 2009 14:03:20 +0100 Subject: [Gambas-user] pb loading an picture into a string In-Reply-To: <4B0E756C.2080109@...626...> References: <4B0E756C.2080109@...626...> Message-ID: <4B0E7C98.6060109@...1909...> Jean-Yves F. Barbier ha scritto: > Hi, > > Here is a (very big) PB: > > ... > ' Get picture /path/name.ext > INfile = FileChooser1.SelectedPath > > FileSize = Stat(FileChooser1.SelectedPath).Size > > ' Read file into a string > INstream = OPEN INfile FOR INPUT > ' READ #INstream, INstring, Lof(INstream) ' NA: Returns 238 bytes > READ #INstream, INstring, FileSize ' Erk: same thing :( > CLOSE #INstream > PRINT "INstring length (Len, String.Len) = " & Len(INstring) & " - " & String.Len(INstring) > > Returns "298 - 234" when I read a small picture.png file!?? > How could I correctly read this image wothout any loss? > > Purpose is to read it correctly, convert it to base64 and send it to a postgresql > procedure (and, of course, the opposite.) > > JY > The old, normal operator len() returns the length of the string, which also *was* the number of characters. The String.len() returns the number of character in an UTF-8 string - which can be less if some non-ascii char is present, because UTF-8 uses two or more *bytes* for them. On the doc's pages of String there is a nice example (I can not do the same example - my name is only formed by ascii chars...) So, if you are dealing with UTF *text*, use String.XXXX. Otherwise, and especially if you use strings as memory buffer, use normal functions. I don't know is gambas strings deal correctly with NULLS - if not, then it is dangerous to use them as binary buffers. But the doc's page about Streams there is also an example on how to read a binary file. So I also deduce that gambas strings deal correctly with nulls. Regards, Doriano From gambas.fr at ...626... Thu Nov 26 14:04:39 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 14:04:39 +0100 Subject: [Gambas-user] PING > Benoit - GUI Programming Productivity Feature Request In-Reply-To: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> Message-ID: <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> shift F2 to go to the previous position F2 to get the function code or help about the function I don't know were it is documented lol 2009/11/23 : > Benoit, > > The Gambas programming environment would offer a major productivity boost to > developers if code Bookmarks were supported in the text editor. > > Using my own situation as an example, where I am porting a Windows app that > has 300+ classes and close to 120,000 lines of code, it is next to > impossible to find related code when one is making a significant change. > > As an example, I might put a break point in the code and use the debug > backtrace to walk my way back through the code looking for code parts that > may be affected by my proposed change. Alternatively I might put an early > break point in and forward trace the code by using debug stepping. In both > cases I currently have to put manual comments in that are coded in a way so > that they can be searched or I have to write down the references then go > looking for them again when I'm ready to make the change, and that just > takes up an awful lot of time that could otherwise be avoided by support for > bookmarks. > > Even on a small project, having no support for bookmarks means you can't set > visual clues in your code, so even when you're trying to find something > simple you still have to continually scan the code by eye to find the exact > spot you know was there earlier. > > What would it take to convince you to consider implementing such a feature? > > Of course, the book marks would need to be saved so that they are available > the next time the project is opened in the development environment. > > Wine? Women? Song? Money? Or commonsense? > > :) > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From 12ukwn at ...626... Thu Nov 26 14:32:05 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 14:32:05 +0100 Subject: [Gambas-user] pb loading an picture into a string In-Reply-To: <4B0E7C98.6060109@...1909...> References: <4B0E756C.2080109@...626...> <4B0E7C98.6060109@...1909...> Message-ID: <4B0E8355.3030804@...626...> Doriano Blengino a ?crit : ... Of that I'm aware Doriano, THE PB is I need each and every byte of the picture in order to cast it to a Base64 to send it to postgresql. Or just escape some chars, or whatever processing function I'll further need; because I know there are base64 functions in gb.xml (however totally undocumented) but what if I need to apply another process to a picture??... So it looks impossible, as each time I take a byte out from the string it is supposed to be an UTF8 one (so only 234 bytes are processed out of 298) AND I can't convert this string because Conv (& Conv$) fail as Bad string conversion... Now, if you have any clue, I'd be glad to ear about it. JY -- On the whole, I'd rather be in Philadelphia. -- W. C. Fields' epitaph From matteo.lisi at ...2324... Thu Nov 26 14:40:45 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Thu, 26 Nov 2009 14:40:45 +0100 Subject: [Gambas-user] Another question about Gambas on ARM In-Reply-To: <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> Message-ID: <4B0E855D.604@...2324...> Hi ! I'm still engaged on Gambas in ARM... This is my situation: I download the gambas source and I want to compile gambas for ARM 9 target. Usually I use a x86 linux machine for crosscompile my program. The crosscompile that I use is "arm-none-linux-gnuabi" . I configure the packet with this configure line (On the x86 Platform): ./configure --host=arm-none-linux-gnueabi -C --prefix=/data/GEA_M6425/ltib/rootfs/usr/local/ --exec-prefix=/data/GEA_M6425/ltib/rootfs/usr/local/ --with-sdl-includes=/usr/include/SDL/ --with-sdl-libraries=/usr/lib/ --with-libxml-includes=/usr/include/libxml2 --with-xslt-includes=/usr/include/libxslt --disable-corba --disable-qte --disable-kde --disable-sdl --disable-sdlsound --disable-xml --disable-v4l --disable-crypt --disable-opengl --disable-corba --disable-image --disable-desktop --disable-mysql --disable-odbc --disable-postgresql --disable-sqlite2 --disable-sqlite3 --disable-firebird --disable-gtk --disable-gtksvg --disable-bzlib2 --disable-zlib and the configure step ends without error. Next I "make" the source ,on the x86 platform yet ,and also this step ends without error. The situation is that now I have on the x86 some ARM's binaries like "gbi2", and when I "make install" the step ends with errors, because (I think !) the "make" invoke the gbi2 command that is an ARM binaries.... If what I said is correct how I can do for port gambas on ARM ? Is correct to crosscompile the gcc compile for ARM and then made "./configure make make install" on the ARM platform ? Did Someone do this operation , and if yes which compiler used ? From 12ukwn at ...626... Thu Nov 26 15:11:05 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 15:11:05 +0100 Subject: [Gambas-user] pb loading an picture into a string In-Reply-To: <4B0E7C98.6060109@...1909...> References: <4B0E756C.2080109@...626...> <4B0E7C98.6060109@...1909...> Message-ID: <4B0E8C79.4070407@...626...> Doriano Blengino a ?crit : ... Ok, I found what was wrong: as there is no conversion between a string and a picture, I must write the string to a file and read it as a picture, the string was written as of WRITE #INstream, OUTstring, String.Len(OUTstring) instead of: WRITE #INstream, OUTstring, Len(OUTstring) Sorry for the noise. JY -- Love cannot be much younger than the lust for murder. -- Sigmund Freud From ubuntu at ...2332... Thu Nov 26 14:58:23 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Thu, 26 Nov 2009 08:58:23 -0500 Subject: [Gambas-user] rpmbuild and install package In-Reply-To: <.77.224.23.61.1259236740.squirrel@...2167...> References: <4B0DBD95.1020903@...2332...> <4B0DE13A.90500@...2015...> <4B0DE825.2000107@...2332...> <4B0DEE54.6010300@...2015...> <4B0DF3EF.1040304@...2332...> <4B0E330D.8010502@...1909...> <.77.224.23.61.1259236740.squirrel@...2167...> Message-ID: <4B0E897F.3070207@...2332...> Thanks for the info, Doriano. That's good to know if I ever need to develop something for Slackware. Toni, it's not a big deal and I appreciate the help. I'm just playing around right now getting familiar with the IDE, and so forth. It's been awhile since I've programmed in Basic. Toni Rosa wrote: > After reading some Slackware pkgtool docs (specifically where it says > "pkgtools are unstable with tar > 1.13"), no doubt Doriano is right about > the need of tar-1.13, or at least the need of giving the generated package > a try... so the check wasn't that silly, after all :) > Sorry about misleading you on this one. > > Toni From sourceforge-raindog2 at ...94... Thu Nov 26 15:30:02 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 26 Nov 2009 09:30:02 -0500 Subject: [Gambas-user] Another question about Gambas on ARM In-Reply-To: <4B0E855D.604@...2324...> References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> <4B0E855D.604@...2324...> Message-ID: <200911260930.02637.sourceforge-raindog2@...94...> On Thursday 26 November 2009 08:40 am, Matteo Lisi wrote: > If what I said is correct how I can do for port gambas on ARM ? > Is correct to crosscompile the gcc compile for ARM and then made > "./configure make make install" > on the ARM platform ? Someone else suggested looking at the Debian ARM packages of Gambas, and I think that's a pretty good place to start. I would think you'd have to run "make install" on the target architecture, perhaps in an emulator environment if it's not available to you at build time. Rob From 12ukwn at ...626... Thu Nov 26 17:08:36 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 17:08:36 +0100 Subject: [Gambas-user] RAD PB Message-ID: <4B0EA804.4060207@...626...> Hi, I've got something strange: when I try to move my cursor with the mouse pointer it selects text between the current cursor place and the place I selected (even after a restart of gambas RAD) -- small, adj.: Is it in yet? From gambas at ...1... Thu Nov 26 17:13:24 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 26 Nov 2009 17:13:24 +0100 Subject: [Gambas-user] Another question about Gambas on ARM In-Reply-To: <4B0E855D.604@...2324...> References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> <4B0E855D.604@...2324...> Message-ID: <200911261713.24599.gambas@...1...> > Hi ! > > I'm still engaged on Gambas in ARM... > > This is my situation: > > I download the gambas source and I want to compile gambas for ARM 9 target. > > Usually I use a x86 linux machine for crosscompile my program. > The crosscompile that I use is "arm-none-linux-gnuabi" . > > I configure the packet with this configure line (On the x86 Platform): > > ./configure --host=arm-none-linux-gnueabi -C > --prefix=/data/GEA_M6425/ltib/rootfs/usr/local/ > --exec-prefix=/data/GEA_M6425/ltib/rootfs/usr/local/ > --with-sdl-includes=/usr/include/SDL/ > --with-sdl-libraries=/usr/lib/ > --with-libxml-includes=/usr/include/libxml2 > --with-xslt-includes=/usr/include/libxslt --disable-corba > --disable-qte --disable-kde > --disable-sdl --disable-sdlsound --disable-xml > --disable-v4l --disable-crypt > --disable-opengl --disable-corba --disable-image > --disable-desktop --disable-mysql > --disable-odbc --disable-postgresql --disable-sqlite2 > --disable-sqlite3 --disable-firebird > --disable-gtk --disable-gtksvg --disable-bzlib2 > --disable-zlib > > and the configure step ends without error. > > Next I "make" the source ,on the x86 platform yet ,and also this step > ends without error. > > The situation is that now I have on the x86 some ARM's binaries like > "gbi2", and when I > "make install" the step ends with errors, because (I think !) the "make" > invoke the gbi2 command > that is an ARM binaries.... > > If what I said is correct how I can do for port gambas on ARM ? > > Is correct to crosscompile the gcc compile for ARM and then made > "./configure make make install" > on the ARM platform ? > > Did Someone do this operation , and if yes which compiler used ? > Yes, the Gambas "make install" is special as it runs the Gambas compiler to compile everything made in Gambas in the source package, and the informer (gbi2) to create information about components. But as the automatic ARM builder of Debian succeeded in making ARM packages for Gambas, maybe Jose can tell you where (I don't remember the link) you can see the output of the compilation process. Maybe you will see which flag to use and when using them to make the installation process work. Regards, -- Beno?t Minisini From 12ukwn at ...626... Thu Nov 26 17:17:56 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 17:17:56 +0100 Subject: [Gambas-user] RAD PB In-Reply-To: <4B0EA804.4060207@...626...> References: <4B0EA804.4060207@...626...> Message-ID: <4B0EAA34.8090107@...626...> Jean-Yves F. Barbier a ?crit : > Hi, > > I've got something strange: when I try to move my cursor with > the mouse pointer it selects text between the current cursor > place and the place I selected (even after a restart of gambas RAD) It has gone (?), sorry for the noise -- From jredrejo at ...1238... Thu Nov 26 17:36:57 2009 From: jredrejo at ...1238... (=?UTF-8?Q?Jos=C3=A9_Luis_Redrejo_Rodr=C3=ADguez?=) Date: Thu, 26 Nov 2009 17:36:57 +0100 Subject: [Gambas-user] Another question about Gambas on ARM In-Reply-To: <200911261713.24599.gambas@...1...> References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> <4B0E855D.604@...2324...> <200911261713.24599.gambas@...1...> Message-ID: <8eb28a500911260836y27a2cb87i8093b21806dd697a@...627...> 2009/11/26 Beno?t Minisini > > Hi ! > > > > I'm still engaged on Gambas in ARM... > > > > This is my situation: > > > > I download the gambas source and I want to compile gambas for ARM 9 > target. > > > > Usually I use a x86 linux machine for crosscompile my program. > > The crosscompile that I use is "arm-none-linux-gnuabi" . > > > > I configure the packet with this configure line (On the x86 Platform): > > > > ./configure --host=arm-none-linux-gnueabi -C > > --prefix=/data/GEA_M6425/ltib/rootfs/usr/local/ > > --exec-prefix=/data/GEA_M6425/ltib/rootfs/usr/local/ > > --with-sdl-includes=/usr/include/SDL/ > > --with-sdl-libraries=/usr/lib/ > > --with-libxml-includes=/usr/include/libxml2 > > --with-xslt-includes=/usr/include/libxslt --disable-corba > > --disable-qte --disable-kde > > --disable-sdl --disable-sdlsound --disable-xml > > --disable-v4l --disable-crypt > > --disable-opengl --disable-corba --disable-image > > --disable-desktop --disable-mysql > > --disable-odbc --disable-postgresql --disable-sqlite2 > > --disable-sqlite3 --disable-firebird > > --disable-gtk --disable-gtksvg --disable-bzlib2 > > --disable-zlib > > > > and the configure step ends without error. > > > > Next I "make" the source ,on the x86 platform yet ,and also this step > > ends without error. > > > > The situation is that now I have on the x86 some ARM's binaries like > > "gbi2", and when I > > "make install" the step ends with errors, because (I think !) the "make" > > invoke the gbi2 command > > that is an ARM binaries.... > > > > If what I said is correct how I can do for port gambas on ARM ? > > > > Is correct to crosscompile the gcc compile for ARM and then made > > "./configure make make install" > > on the ARM platform ? > > > > Did Someone do this operation , and if yes which compiler used ? > > > > Yes, the Gambas "make install" is special as it runs the Gambas compiler to > compile everything made in Gambas in the source package, and the informer > (gbi2) to create information about components. > > But as the automatic ARM builder of Debian succeeded in making ARM packages > for Gambas, maybe Jose can tell you where (I don't remember the link) you > can > see the output of the compilation process. Maybe you will see which flag to > use and when using them to make the installation process work. > > Regards, > > > -- > Beno?t Minisini > > Hi again, the compiling logs of gambas in all the platforms Debian supports are at https://buildd.debian.org/pkg.cgi?pkg=gambas2 Regards. Jos? L: From Karl.Reinl at ...9... Thu Nov 26 17:42:35 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 26 Nov 2009 17:42:35 +0100 Subject: [Gambas-user] pb loading an picture into a string In-Reply-To: <4B0E8355.3030804@...626...> References: <4B0E756C.2080109@...626...> <4B0E7C98.6060109@...1909...> <4B0E8355.3030804@...626...> Message-ID: <1259253755.7636.16.camel@...40...> Am Donnerstag, den 26.11.2009, 14:32 +0100 schrieb Jean-Yves F. Barbier: > Doriano Blengino a ?crit : > ... > > Of that I'm aware Doriano, THE PB is I need each and every byte of the picture > in order to cast it to a Base64 to send it to postgresql. > Or just escape some chars, or whatever processing function I'll further need; > because I know there are base64 functions in gb.xml (however totally undocumented) > but what if I need to apply another process to a picture??... > > So it looks impossible, as each time I take a byte out from the string it is > supposed to be an UTF8 one (so only 234 bytes are processed out of 298) AND > I can't convert this string because Conv (& Conv$) fail as Bad string conversion... > > Now, if you have any clue, I'd be glad to ear about it. > > JY Salut, these three functions handle, the base64 function in gb.xml . A picture is stored/extracted in/from an XML-file. I'v never compared input / output, but the output-picture looked like the input. I just copied out of the project, you have to strip it down yourself to make it work. The first ToXML calls somewhere the second ToXML for writing. The *.xlst have nothing to do with the base64 stuff. SUB ToXML(args AS String[]) '<--- calls 2nd ToXML DIM xml AS NEW XmlWriter DIM item AS Object 'xml.Open(args[0] & ".xml",TRUE,"utf-8") xml.Open(modPath.FullPath(args[0]), TRUE, "utf-8") xml.StartElement("P") ToolBox.ToXML(xml, "*") FOR EACH item IN ide.GeneralParams item.ToXML(xml) NEXT Layout.ToXML(xml) xml.EndElement() ' ("P") xml.EndDocument() $fname = modPath.RelativePath(args[0]) 'ide.Push("LAYOUT.MODIFIED.CLEAR") layout.Modified = 0 IF $QuitOnSave THEN ide.Push("REPORT.QUIT") END PUBLIC FUNCTION ToXML(xml AS XmlWriter) AS Object '<--- is calls by 1st ToXML DIM p AS Variant DIM s AS String DIM props AS Collection props = ME.GetAll() xml.StartElement("I") FOR EACH p IN props xml.Attribute(props.Key, p) NEXT 'add image as base64 xml.Base64(file.Load(ME.ide.Logic.GetFile(ME.Get("Path")))) xml.EndElement() RETURN xml END 'Translate XML to CMD's SUB FromXML(args AS String[]) DIM Xml AS NEW XmlDocument DIM Xsl AS NEW XmlDocument DIM out AS XmlDocument DIM Xr AS NEW XmlReader DIM sString AS String DIM sPath AS String DIM htmlOut AS File DIM sTmpFile AS String IF Exist(modPath.FullPath(args[0])) THEN Xml.FromString(modPath.FullPath(File.Load(args[0]))) IF Exist(application.Path &/ "xml/xml2file.xslt") THEN Xsl.FromString(File.Load(application.Path &/ "xml/xml2file.xslt")) out = XSLT.Transform(Xml, Xsl) sTmpFile = Temp$() out.Write(sTmpFile) Xr.FromString(File.Load(sTmpFile)) WHILE NOT Xr.Eof SELECT CASE Xr.Node.Type CASE XmlReaderNodeType.Element FOR EACH Xr.Node.Attributes sPath = Xr.Node.Value NEXT CASE XmlReaderNodeType.Text IF NOT $TempFile.Exist(sPath) THEN $TempFile[sPath] = Temp() file.Save($TempFile[sPath], Xr.Decode(Xr.Node.Value, "base64")) 'PRINT "Temp: ";TempFile[sPath] END IF END SELECT Xr.Read() WEND IF Exist(application.Path &/ "xml/xml2macro.xslt") THEN Xsl.FromString(File.Load(application.Path &/ "xml/xml2macro.xslt")) out = XSLT.Transform(Xml, Xsl) sTmpFile = Temp$() out.Write(sTmpFile) sString = File.Load(sTmpFile) 'somes ent's not replaced, then replace them 'sString = Replace(sString," ","!") sString = Replace(sString, "<", "<") sString = Replace(sString, ">", ">") sString = Replace(sString, "&", "&") ide.Push(sString) ide.Push("TOOLBOX.PARAMSET.INIT") ide.Push("LAYOUT.SELECTION.REFRESH") $fname = args[0] ide.Push("LAYOUT.MODIFIED.CLEAR") ELSE message.Warning("can't find " & application.Path &/ "xml/xml2macro.xslt") END IF ELSE message.Warning("can't find " & application.Path &/ "xml/xml2file.xslt") END IF ELSE message.Warning("can't find " & args[0]) END IF END -- Amicalement Charlie From matteo.lisi at ...2324... Thu Nov 26 17:44:40 2009 From: matteo.lisi at ...2324... (Matteo Lisi) Date: Thu, 26 Nov 2009 17:44:40 +0100 Subject: [Gambas-user] Another question about Gambas on ARM In-Reply-To: <200911261713.24599.gambas@...1...> References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> <4B0E855D.604@...2324...> <200911261713.24599.gambas@...1...> Message-ID: <4B0EB078.10404@...2324...> I tried to execute the "make install" on the arm target (I copied the directory from x86 platform) but this action return an error.. The make didnt found the gcc compiler ... but it's necessary for the make install to have the gcc compiler on ARM target ? if I move the gbi2 gbx2 eccc. ecc. in the ARM platform it's possible to end without error the "make install" step ? How I can modify the script for do this ? thanks > Yes, the Gambas "make install" is special as it runs the Gambas compiler to > compile everything made in Gambas in the source package, and the informer > (gbi2) to create information about components. > > But as the automatic ARM builder of Debian succeeded in making ARM packages > for Gambas, maybe Jose can tell you where (I don't remember the link) you can > see the output of the compilation process. Maybe you will see which flag to > use and when using them to make the installation process work. > > Regards, > > > From 12ukwn at ...626... Thu Nov 26 18:21:31 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 18:21:31 +0100 Subject: [Gambas-user] pb loading an picture into a string In-Reply-To: <1259253755.7636.16.camel@...40...> References: <4B0E756C.2080109@...626...> <4B0E7C98.6060109@...1909...> <4B0E8355.3030804@...626...> <1259253755.7636.16.camel@...40...> Message-ID: <4B0EB91B.9030601@...626...> Charlie Reinl a ?crit : ... Thanks Charlie, I'll try it. -- The world really isn't any worse. It's just that the news coverage is so much better. From 12ukwn at ...626... Thu Nov 26 18:31:10 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 18:31:10 +0100 Subject: [Gambas-user] db retrieve Message-ID: <4B0EBB5E.6040207@...626...> Hi, How can I retrieve a "field" returned by a stored procedure? SP: CREATE OR REPLACE FUNCTION common.testbytea_sel(Pid OID) RETURNS TEXT AS $$ DECLARE MyPic BYTEA; MyString TEXT; BEGIN SELECT pic INTO MyPic FROM common.testbytea WHERE id = Pid; MyString = encode(MyPic, 'base64'); RETURN MyString; END; $$ LANGUAGE PLPGSQL STRICT SECURITY DEFINER; GB: sqlQry = "SELECT * FROM common.testbytea_sel(" & RowNb & ");" resQry = $DBConn.Exec(sqlQry) PB: what resQry!??? shall I ask for? -- Sorry, no fortune this time. From gambas.fr at ...626... Thu Nov 26 19:42:21 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 19:42:21 +0100 Subject: [Gambas-user] db retrieve In-Reply-To: <4B0EBB5E.6040207@...626...> References: <4B0EBB5E.6040207@...626...> Message-ID: <6324a42a0911261042k1ca29cdx72f2ee8d28c827d4@...627...> dim hField as ResultField For each hField in resQry.Fields Print hField.Name Next 2009/11/26 Jean-Yves F. Barbier <12ukwn at ...626...>: > Hi, > > How can I retrieve a "field" returned by a stored procedure? > > SP: > CREATE OR REPLACE FUNCTION common.testbytea_sel(Pid OID) RETURNS TEXT AS $$ > DECLARE > ? ? ? ?MyPic ? ? ? ? ? BYTEA; > ? ? ? ?MyString ? ? ? ?TEXT; > BEGIN > ? ? ? ?SELECT pic INTO MyPic FROM common.testbytea WHERE id = Pid; > ? ? ? ?MyString = encode(MyPic, 'base64'); > ? ? ? ?RETURN MyString; > END; > $$ LANGUAGE PLPGSQL STRICT SECURITY DEFINER; > > GB: > sqlQry = "SELECT * FROM common.testbytea_sel(" & RowNb & ");" > resQry = $DBConn.Exec(sqlQry) > > PB: what resQry!??? shall I ask for? > > -- > Sorry, no fortune this time. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Thu Nov 26 20:10:19 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 20:10:19 +0100 Subject: [Gambas-user] pb loading an picture into a string In-Reply-To: <4B0EB91B.9030601@...626...> References: <4B0E756C.2080109@...626...> <4B0E7C98.6060109@...1909...> <4B0E8355.3030804@...626...> <1259253755.7636.16.camel@...40...> <4B0EB91B.9030601@...626...> Message-ID: <6324a42a0911261110v6cd31cc0l3fbead7ec035ce85@...627...> ok this is a new test ... so your Base64 converting function is good... and more simple than taking the xml one... so the problem come from psql ... what is the charset of your database ? 2009/11/26 Jean-Yves F. Barbier <12ukwn at ...626...>: > Charlie Reinl a ?crit : > ... > Thanks Charlie, I'll try it. > > -- > The world really isn't any worse. ?It's just that the news coverage > is so much better. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nospam.nospam.nospam at ...626... Thu Nov 26 21:29:31 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 07:29:31 +1100 Subject: [Gambas-user] Pesky Minimize Button on TitleBar References: <6324a42a0911252350v727cea4bkc5a709a6dbde202d@...627...><6324a42a0911260407s241eedc5l662b188e9ba93d37@...627...> <6324a42a0911260459i604a4445l8894772afe1daacc@...627...> Message-ID: <9FE5339A9B1E47348F24B0271496E70B@...2330...> Fabien Bodard wrote: > i forget : > > ...or the latest current version being developed > > You need the svn client. > $ mkdir trunk > $ svn checkout > https://gambas.svn.sourceforge.net/svnroot/[../../def/gambas]/gambas/trunk > $ cd trunk Thank you. I owe you a beer. I'll drink it for you tonight :) From nospam.nospam.nospam at ...626... Thu Nov 26 21:31:07 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 07:31:07 +1100 Subject: [Gambas-user] It looks like a bug, it walks like a bug... References: <9BA9F22366B74852BF278B3792C76FC2@...2330...><6324a42a0911260403m6a4975dbrb6d47cea92902072@...627...><5C69A9E2EEA442BFBF928B734DE529E3@...2330...> <6324a42a0911260414h76112dfaq890a0d368490d8fd@...627...> Message-ID: <524DF7F4B305490BBFA112BB7800FBCB@...2330...> Fabien Bodard wrote: > so send me the complete form ! ... i can't debug it without > > send it directly to me Ok, I'll have to package it up over the weekend, Fabien. There is an awful lot of code to take out before I send it. > 2009/11/26 : >> Fabien Bodard wrote: >>> Please don't forget some informations ... the gambas version, the >>> component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ? >> >> [QUOTE] >> gambas (2.17) >> [/QUOTE] >> >> [QUOTE] >> GTK >> [/QUOTE] >> >>> and yes this is a true bug !.. >>> >>> can you send us a little project that show this ? >> >> [QUOTE] >> The form is quite complex so I built a test application that >> replicates the design structure, and it works fine. >> [/QUOTE] >> >>> 2009/11/26 : >>>> Now what on this planet would cause the behaviour shown in these >>>> three images and described below? >>>> >>>> 1) The fields in p1_ok are disabled in the design environment. >>>> The fields are as they should be. >>>> >>>> 2) The fields in p2_not_ok are enabled in code. >>>> >>>> 3) You can see the text is enabled, and it is editable in >>>> p2_not_ok. >>>> >>>> 4) The background colour does not revert to the default when >>>> the fields are enabled. The background colour stays at the >>>> disabled colour, yet foreground text colour is working ok. >>>> >>>> 5) I am not setting colours anywhere in my code, at all. So >>>> please don't suggest I look there. >>>> >>>> 6) The form is quite complex so I built a test application that >>>> replicates the design structure, and it works fine. Click >>>> Edit and the text fields go white in the test app. Click OK or >>>> Cancel and the fields disable and change colour, as they should. >>>> Click Edit again, and it's still working fine in test app. >>>> >>>> 7) If I add a line to manually change the background color in the >>>> main app when the Edit button is clicked, like this: >>>> >>>> txtRemoteServerUsername.BackColor = Color.TextBackground >>>> >>>> Then the background goes white. Ok, so now I know I can work around >>>> the issue, but I have quite a few fields to work around. >>>> >>>> 8) After setting txtRemoteServerUsername.BackColor = >>>> Color.TextBackground, I get the problem shown in p3_not_ok. The >>>> default disabled colour >>>> has changed, though that may be due to changing the enabled >>>> backcolour. >>>> >>>> Oddly, if I use this: >>>> >>>> txtRemoteServerUsername.BackColor = Color.Default >>>> >>>> I get the very same problem as shown in p2_not_ok. It would seem >>>> that something, either gambas (2.17) or GTK has forgotten what >>>> Color.Default is. >>>> >>>> Has anyone seen this before? >>>> >>>> ------------------------------------------------------------------------------ >>>> Let Crystal Reports handle the reporting - Free Crystal Reports >>>> 2008 30-Day trial. Simplify your report design, integration and >>>> deployment - and focus on >>>> what you do best, core application coding. Discover what's new with >>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day trial. Simplify your report design, integration and >>> deployment - and focus on what you do best, core application >>> coding. Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and >> deployment - and focus on what you do best, core application coding. >> Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nospam.nospam.nospam at ...626... Thu Nov 26 21:37:37 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 07:37:37 +1100 Subject: [Gambas-user] PING > Benoit - GUI Programming ProductivityFeature Request References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> Message-ID: Fabien Bodard wrote: > shift F2 to go to the previous position > > F2 to get the function code or help about the function I know about that feature, which is not bookmarks, nor even a facsimile of bookmarks. The go back function is very limited and highly unproductive. > I don't know were it is documented lol lol > 2009/11/23 : >> Benoit, >> >> The Gambas programming environment would offer a major productivity >> boost to developers if code Bookmarks were supported in the text >> editor. >> >> Using my own situation as an example, where I am porting a Windows >> app that has 300+ classes and close to 120,000 lines of code, it is >> next to impossible to find related code when one is making a >> significant change. >> >> As an example, I might put a break point in the code and use the >> debug backtrace to walk my way back through the code looking for >> code parts that may be affected by my proposed change. Alternatively >> I might put an early break point in and forward trace the code by >> using debug stepping. In both cases I currently have to put manual >> comments in that are coded in a way so that they can be searched or >> I have to write down the references then go looking for them again >> when I'm ready to make the change, and that just takes up an awful >> lot of time that could otherwise be avoided by support for bookmarks. >> >> Even on a small project, having no support for bookmarks means you >> can't set visual clues in your code, so even when you're trying to >> find something simple you still have to continually scan the code by >> eye to find the exact spot you know was there earlier. >> >> What would it take to convince you to consider implementing such a >> feature? >> >> Of course, the book marks would need to be saved so that they are >> available the next time the project is opened in the development >> environment. >> >> Wine? Women? Song? Money? Or commonsense? >> >> :) >> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and >> deployment - and focus on what you do best, core application coding. >> Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment > - and focus on what you do best, core application coding. Discover > what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Thu Nov 26 22:18:21 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 26 Nov 2009 22:18:21 +0100 Subject: [Gambas-user] PING > Benoit - GUI Programming ProductivityFeature Request In-Reply-To: References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...> <6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> Message-ID: <6324a42a0911261318m2300e29bnea9ac7394cb9e850@...627...> so i'll add a todo note :)... i've suggested already this idea there is more than 2 year.. maybe it can be 2009/11/26 : > Fabien Bodard wrote: >> shift F2 to go to the previous position >> >> F2 to get the function code or help about the function > > I know about that feature, which is not bookmarks, nor even a facsimile of > bookmarks. The go back function is very limited and highly unproductive. > >> I don't know were it is documented lol > > lol > >> 2009/11/23 ?: >>> Benoit, >>> >>> The Gambas programming environment would offer a major productivity >>> boost to developers if code Bookmarks were supported in the text >>> editor. >>> >>> Using my own situation as an example, where I am porting a Windows >>> app that has 300+ classes and close to 120,000 lines of code, it is >>> next to impossible to find related code when one is making a >>> significant change. >>> >>> As an example, I might put a break point in the code and use the >>> debug backtrace to walk my way back through the code looking for >>> code parts that may be affected by my proposed change. Alternatively >>> I might put an early break point in and forward trace the code by >>> using debug stepping. In both cases I currently have to put manual >>> comments in that are coded in a way so that they can be searched or >>> I have to write down the references then go looking for them again >>> when I'm ready to make the change, and that just takes up an awful >>> lot of time that could otherwise be avoided by support for bookmarks. >>> >>> Even on a small project, having no support for bookmarks means you >>> can't set visual clues in your code, so even when you're trying to >>> find something simple you still have to continually scan the code by >>> eye to find the exact spot you know was there earlier. >>> >>> What would it take to convince you to consider implementing such a >>> feature? >>> >>> Of course, the book marks would need to be saved so that they are >>> available the next time the project is opened in the development >>> environment. >>> >>> Wine? Women? Song? Money? Or commonsense? >>> >>> :) >>> >>> >>> ------------------------------------------------------------------------------ >>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day trial. Simplify your report design, integration and >>> deployment - and focus on what you do best, core application coding. >>> Discover what's new with >>> Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and deployment >> - and focus on what you do best, core application coding. Discover >> what's new with >> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Nov 26 23:11:10 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Thu, 26 Nov 2009 23:11:10 +0100 Subject: [Gambas-user] db retrieve In-Reply-To: <4B0EBB5E.6040207@...626...> References: <4B0EBB5E.6040207@...626...> Message-ID: <200911262311.10055.gambas@...1...> > Hi, > > How can I retrieve a "field" returned by a stored procedure? > > SP: > CREATE OR REPLACE FUNCTION common.testbytea_sel(Pid OID) RETURNS TEXT AS $$ > DECLARE > MyPic BYTEA; > MyString TEXT; > BEGIN > SELECT pic INTO MyPic FROM common.testbytea WHERE id = Pid; > MyString = encode(MyPic, 'base64'); > RETURN MyString; > END; > $$ LANGUAGE PLPGSQL STRICT SECURITY DEFINER; > > GB: > sqlQry = "SELECT * FROM common.testbytea_sel(" & RowNb & ");" > resQry = $DBConn.Exec(sqlQry) > > PB: what resQry!??? shall I ask for? > You can access result fields by index too: resQry[0], reqQry[1], ... -- Beno?t Minisini From 12ukwn at ...626... Thu Nov 26 23:21:06 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Thu, 26 Nov 2009 23:21:06 +0100 Subject: [Gambas-user] db retrieve In-Reply-To: <200911262311.10055.gambas@...1...> References: <4B0EBB5E.6040207@...626...> <200911262311.10055.gambas@...1...> Message-ID: <4B0EFF52.2020305@...626...> Beno?t Minisini a ?crit : ... > > You can access result fields by index too: > > resQry[0], reqQry[1], ... Haaa this sounds very good too :) -- Bringing your mate to a convention is like taking a game warden hunting. From nospam.nospam.nospam at ...626... Fri Nov 27 05:42:54 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 15:42:54 +1100 Subject: [Gambas-user] PING > Benoit - GUI ProgrammingProductivityFeature Request References: <0894B79E22A34F3A92A175B2580FE2D4@...2330...><6324a42a0911260504v7af92462uaee8bbcf93f608d1@...627...> <6324a42a0911261318m2300e29bnea9ac7394cb9e850@...627...> Message-ID: Fabien Bodard wrote: > so i'll add a todo note :)... i've suggested already this idea there > is more than 2 year.. maybe it can be I think it is such an important productivity improvement that I'm willing to invest my time fixing up the Gambas online help text in return :) From nospam.nospam.nospam at ...626... Fri Nov 27 05:57:13 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 15:57:13 +1100 Subject: [Gambas-user] It looks like a bug, it walks like a bug... References: <9BA9F22366B74852BF278B3792C76FC2@...2330...><6324a42a0911260403m6a4975dbrb6d47cea92902072@...627...><5C69A9E2EEA442BFBF928B734DE529E3@...2330...> <6324a42a0911260414h76112dfaq890a0d368490d8fd@...627...> Message-ID: Fabien Bodard wrote: > so send me the complete form ! ... i can't debug it without > > send it directly to me I sent it to the email address in your reply. gambas.fr @ gmail.com Thanks for taking the time. From nospam.nospam.nospam at ...626... Fri Nov 27 09:27:02 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 19:27:02 +1100 Subject: [Gambas-user] Ok, I'm stumped Message-ID: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> Gambas3 I have a GridView named gvOptions, and this code: Public Sub gvOptions_Menu() Debug Mouse.X Debug Mouse.Y End 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" I need to capture the mouse position to pop up a window. How do I do that in g3? 2) Where is the main body of documentation for Gambas3? I will update it as I go on my journey of learning. From nospam.nospam.nospam at ...626... Fri Nov 27 10:17:15 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 20:17:15 +1100 Subject: [Gambas-user] Gambas3 bug reports Message-ID: <1F4F627D2D4B4035A1A49A7BDB40BE2D@...2330...> I have a few. Where do they go? From Karl.Reinl at ...9... Fri Nov 27 11:01:29 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 27 Nov 2009 11:01:29 +0100 Subject: [Gambas-user] Gambas3 bug reports In-Reply-To: <1F4F627D2D4B4035A1A49A7BDB40BE2D@...2330...> References: <1F4F627D2D4B4035A1A49A7BDB40BE2D@...2330...> Message-ID: <1259316089.6408.4.camel@...40...> Am Freitag, den 27.11.2009, 20:17 +1100 schrieb nospam.nospam.nospam at ...626...: > I have a few. Where do they go? > Salut nospam, the office for "Gambas3 bug reports" is closed since September, because of extrem richness. And will only reopen after the last cent is spent. If you cant wait, post it here or to gambas-devel at ...65... -- Charlie - growing old is mandatory, growing up is discretionary. - vieillir est obligatoire, Grandir est discr?tionnaire. - Altwerden ist obligatorisch, aufgewachsen ist Ermessenssache. From emil at ...1913... Fri Nov 27 11:21:03 2009 From: emil at ...1913... (Emil Tchekov) Date: Fri, 27 Nov 2009 11:21:03 +0100 Subject: [Gambas-user] Gambas3 bug reports In-Reply-To: <1259316089.6408.4.camel@...40...> Message-ID: Salut Charlie, can help with spending? I have long term experience and very good contacts, that allow sure and fast loss of any amount. Just call me +123 (0456) 7890 :-D ;-) :-P have a lot of fun!!! cheers Emil -----Urspr?ngliche Nachricht----- Von: Charlie Reinl [mailto:Karl.Reinl at ...9...] Gesendet: Freitag, 27. November 2009 11:01 An: mailing list for gambas users Betreff: Re: [Gambas-user] Gambas3 bug reports Am Freitag, den 27.11.2009, 20:17 +1100 schrieb nospam.nospam.nospam at ...626...: > I have a few. Where do they go? > Salut nospam, the office for "Gambas3 bug reports" is closed since September, because of extrem richness. And will only reopen after the last cent is spent. If you cant wait, post it here or to gambas-devel at ...65... -- Charlie - growing old is mandatory, growing up is discretionary. - vieillir est obligatoire, Grandir est discr?tionnaire. - Altwerden ist obligatorisch, aufgewachsen ist Ermessenssache. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From ron at ...1740... Fri Nov 27 11:23:46 2009 From: ron at ...1740... (Ron) Date: Fri, 27 Nov 2009 11:23:46 +0100 Subject: [Gambas-user] Gambas3 bug reports In-Reply-To: References: Message-ID: <4B0FA8B2.7000700@...1740...> Emil Tchekov wrote: > > Just call me +123 (0456) 7890 > > That phone number must have cost you a small fortune to begin with ;-) ;-) > -----Urspr?ngliche Nachricht----- > Von: Charlie Reinl [mailto:Karl.Reinl at ...9...] > Gesendet: Freitag, 27. November 2009 11:01 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] Gambas3 bug reports > > > Am Freitag, den 27.11.2009, 20:17 +1100 schrieb > nospam.nospam.nospam at ...626...: > >> I have a few. Where do they go? >> >> > Salut nospam, > > the office for "Gambas3 bug reports" is closed since > September, because of extrem richness. > > And will only reopen after the last cent is spent. > > If you cant wait, post it here or to gambas-devel at ...65... > > > From nospam.nospam.nospam at ...626... Fri Nov 27 11:30:02 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 21:30:02 +1100 Subject: [Gambas-user] Gambas3 bug reports References: Message-ID: Emil Tchekov wrote: > Salut Charlie, > > can help with spending? > > I have long term experience and very good contacts, that allow sure > and fast loss of any amount. BWAHAHAHHAAHAHA! PMSL Too funny. > Just call me +123 (0456) 7890 > > :-D ;-) :-P > > have a lot of fun!!! > > cheers > > > Emil > > > > > -----Urspr?ngliche Nachricht----- > Von: Charlie Reinl [mailto:Karl.Reinl at ...9...] > Gesendet: Freitag, 27. November 2009 11:01 > An: mailing list for gambas users > Betreff: Re: [Gambas-user] Gambas3 bug reports > > > Am Freitag, den 27.11.2009, 20:17 +1100 schrieb > nospam.nospam.nospam at ...626...: >> I have a few. Where do they go? >> > Salut nospam, > > the office for "Gambas3 bug reports" is closed since > September, because of extrem richness. > > And will only reopen after the last cent is spent. > > If you cant wait, post it here or to > gambas-devel at ...65... From Karl.Reinl at ...9... Fri Nov 27 11:41:51 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 27 Nov 2009 11:41:51 +0100 Subject: [Gambas-user] Ok, I'm stumped In-Reply-To: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> Message-ID: <1259318511.6408.13.camel@...40...> Am Freitag, den 27.11.2009, 19:27 +1100 schrieb nospam.nospam.nospam at ...626...: > Gambas3 > > I have a GridView named gvOptions, and this code: > > Public Sub gvOptions_Menu() > > Debug Mouse.X > Debug Mouse.Y > > End > > 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" > > I need to capture the mouse position to pop up a window. How do I do > that in g3? > > 2) Where is the main body of documentation for Gambas3? > > I will update it as I go on my journey of learning. > Salut nospam, http://gambasdoc.org/help for 2) for 1) I just can tell you, if you have installed gambas2 or gambas3 from svn and or from http://gambas.sourceforge.net you should have the source code from C++ + gambas IDE where you can have a look. That's also for "GUI ProgrammingProductivityFeature Request" there you will find in /gb.qt/src/ext the source code for the Editor. -- Amicalement Charlie From nospam.nospam.nospam at ...626... Fri Nov 27 12:13:37 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 22:13:37 +1100 Subject: [Gambas-user] Ok, I'm stumped References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> <1259318511.6408.13.camel@...40...> Message-ID: <5F0FFA33A1004D398627C51FF742997E@...2330...> Charlie Reinl wrote: > Am Freitag, den 27.11.2009, 19:27 +1100 schrieb > nospam.nospam.nospam at ...626...: >> Gambas3 >> >> I have a GridView named gvOptions, and this code: >> >> Public Sub gvOptions_Menu() >> >> Debug Mouse.X >> Debug Mouse.Y >> >> End >> >> 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" >> >> I need to capture the mouse position to pop up a window. How do >> I do that in g3? >> >> 2) Where is the main body of documentation for Gambas3? >> >> I will update it as I go on my journey of learning. >> > > Salut nospam, > > http://gambasdoc.org/help for 2) > > for 1) I just can tell you, if you have installed gambas2 or gambas3 > from svn and or from http://gambas.sourceforge.net you should have > the source code from C++ + gambas IDE where you can have a look. Hey, Charlie. You need your assumptions pulled out from under you. That I have the C++ source code does not imply I can read it :) > That's also for "GUI ProgrammingProductivityFeature Request" there > you will find in /gb.qt/src/ext the > source code for the Editor. No doubt that is also in C++. Bad assumptions, Charlie. Bad assumptions. From nospam.nospam.nospam at ...626... Fri Nov 27 12:20:32 2009 From: nospam.nospam.nospam at ...626... (nospam.nospam.nospam at ...626...) Date: Fri, 27 Nov 2009 22:20:32 +1100 Subject: [Gambas-user] Ok, I'm stumped References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> <1259318511.6408.13.camel@...40...> Message-ID: Charlie Reinl wrote: > Am Freitag, den 27.11.2009, 19:27 +1100 schrieb > nospam.nospam.nospam at ...626...: >> Gambas3 >> >> I have a GridView named gvOptions, and this code: >> >> Public Sub gvOptions_Menu() >> >> Debug Mouse.X >> Debug Mouse.Y >> >> End >> >> 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" >> >> I need to capture the mouse position to pop up a window. How do >> I do that in g3? >> >> 2) Where is the main body of documentation for Gambas3? >> >> I will update it as I go on my journey of learning. >> > > Salut nospam, > > http://gambasdoc.org/help Yes, well... http://gambasdoc.org/help/comp/gb.qt/mouse/y?v3 STATIC PROPERTY READ Y AS Integer Returns the relative vertical position of the cursor of a mouse event. http://gambasdoc.org/help/comp/gb.qt/mouse/y STATIC PROPERTY READ Y AS Integer Returns the relative vertical position of the cursor of a mouse event. Very helpful, Charlie. Thank you. So, why do both Mouse.X and Mouse.Y tell me "no mouse event data"? From Karl.Reinl at ...9... Fri Nov 27 12:32:18 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 27 Nov 2009 12:32:18 +0100 Subject: [Gambas-user] Ok, I'm stumped In-Reply-To: <5F0FFA33A1004D398627C51FF742997E@...2330...> References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> <1259318511.6408.13.camel@...40...> <5F0FFA33A1004D398627C51FF742997E@...2330...> Message-ID: <1259321538.8100.4.camel@...40...> Am Freitag, den 27.11.2009, 22:13 +1100 schrieb nospam.nospam.nospam at ...626...: > Bad assumptions, Charlie. Bad assumptions. Salut nospam. Ok, you right , but not for the IDE part that's in gambas. /app/src/gambas -- Amicalement Charlie From Karl.Reinl at ...9... Fri Nov 27 13:43:15 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 27 Nov 2009 13:43:15 +0100 Subject: [Gambas-user] Ok, I'm stumped In-Reply-To: References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> <1259318511.6408.13.camel@...40...> Message-ID: <1259325795.8100.15.camel@...40...> Am Freitag, den 27.11.2009, 22:20 +1100 schrieb nospam.nospam.nospam at ...626...: > Charlie Reinl wrote: > > Am Freitag, den 27.11.2009, 19:27 +1100 schrieb > > nospam.nospam.nospam at ...626...: > >> Gambas3 > >> > >> I have a GridView named gvOptions, and this code: > >> > >> Public Sub gvOptions_Menu() > >> > >> Debug Mouse.X > >> Debug Mouse.Y > >> > >> End > >> > >> 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" > >> > >> I need to capture the mouse position to pop up a window. How do > >> I do that in g3? > >> > >> 2) Where is the main body of documentation for Gambas3? > >> > >> I will update it as I go on my journey of learning. > >> > > > > Salut nospam, > > > > http://gambasdoc.org/help > > Yes, well... > > http://gambasdoc.org/help/comp/gb.qt/mouse/y?v3 > STATIC PROPERTY READ Y AS Integer > Returns the relative vertical position of the cursor of a mouse event. > > http://gambasdoc.org/help/comp/gb.qt/mouse/y > STATIC PROPERTY READ Y AS Integer > Returns the relative vertical position of the cursor of a mouse event. > > Very helpful, Charlie. Thank you. So, why do both Mouse.X and Mouse.Y tell > me "no mouse event data"? Salut nospam, why do you need the mouse position ? You have pushed a right mouse button on an element who has a Menu event. Can you use Mouse.ScreenX / Mouse.ScreenY -- Amicalement Charlie From dag.jarle.johansen at ...2312... Fri Nov 27 13:49:33 2009 From: dag.jarle.johansen at ...2312... (Dag-Jarle Johansen) Date: Fri, 27 Nov 2009 09:49:33 -0300 Subject: [Gambas-user] Starting with F5 Message-ID: Hi out there, I have a minor problem, since I added the gb.qt.kde.html, I (almost) always have to start the programm twice to get it run. first time it sais, compiling..., the message disappears, and then - nada - nothing. stop and restart, then it works. Any ideas? (Ubuntu 9.10, Gambas 2.13) I am little afraid of upgrading Gambas, last time I tried, I always got a signal 11 error even on the most simple programs, and had to deinstall and install from synaptics again to get on with the work. Thanks and greatings, Dag-Jarle Johansen From davidmdell at ...626... Fri Nov 27 14:54:49 2009 From: davidmdell at ...626... (David Dell) Date: Fri, 27 Nov 2009 15:54:49 +0200 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? Message-ID: <9610272b0911270554p470027b2i54c9bea117f717cb@...627...> I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical application and I'm trying to create radio (mutually exclusive) menu items, with a radio icon instead of a check mark when selected. I can't find any property in the Menu documentation that does that. Can you help? Thank you, David From gambas.fr at ...626... Fri Nov 27 15:38:37 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 27 Nov 2009 15:38:37 +0100 Subject: [Gambas-user] Ok, I'm stumped In-Reply-To: <1259325795.8100.15.camel@...40...> References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> <1259318511.6408.13.camel@...40...> <1259325795.8100.15.camel@...40...> Message-ID: <6324a42a0911270638l33390a4dl95b7b0bfbe078403@...627...> so the answer is : private $MX as Integer Private $MY as integer Public sub gvOption_MouseDown $MX = mouse.x $MY=Mouse.Y END Public sub gvOption_Menu() MyForm.Move($Mx, $My) END Be carefull as Mouse.X is container relative... For a form in the whole screen ... use Mouse.ScreenX etc In fact mouse.events are (MouseDown, MouseUp, Click, MouseMove) and Menu was done to have a common Event that react to Menu key and right click in your case you can use MouseUp instead but it will not react to the key menu of the keyboard 2009/11/27 Charlie Reinl : > Am Freitag, den 27.11.2009, 22:20 +1100 schrieb > nospam.nospam.nospam at ...626...: >> Charlie Reinl wrote: >> > Am Freitag, den 27.11.2009, 19:27 +1100 schrieb >> > nospam.nospam.nospam at ...626...: >> >> Gambas3 >> >> >> >> I have a GridView named gvOptions, and this code: >> >> >> >> Public Sub gvOptions_Menu() >> >> >> >> ? Debug Mouse.X >> >> ? Debug Mouse.Y >> >> >> >> End >> >> >> >> 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" >> >> >> >> ? ? I need to capture the mouse position to pop up a window. How do >> >> I do that in g3? >> >> >> >> 2) Where is the main body of documentation for Gambas3? >> >> >> >> ? ? I will update it as I go on my journey of learning. >> >> >> > >> > Salut nospam, >> > >> > http://gambasdoc.org/help >> >> Yes, well... >> >> http://gambasdoc.org/help/comp/gb.qt/mouse/y?v3 >> STATIC PROPERTY READ Y AS Integer >> Returns the relative vertical position of the cursor of a mouse event. >> >> http://gambasdoc.org/help/comp/gb.qt/mouse/y >> STATIC PROPERTY READ Y AS Integer >> Returns the relative vertical position of the cursor of a mouse event. >> >> Very helpful, Charlie. Thank you. So, why do both Mouse.X and Mouse.Y tell >> me "no mouse event data"? > > Salut nospam, > > why do you need the mouse position ? You have pushed a right mouse > button on an element who has a Menu event. > Can you use Mouse.ScreenX / Mouse.ScreenY > > -- > Amicalement > Charlie > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Nov 27 15:40:32 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 27 Nov 2009 15:40:32 +0100 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <9610272b0911270554p470027b2i54c9bea117f717cb@...627...> References: <9610272b0911270554p470027b2i54c9bea117f717cb@...627...> Message-ID: <6324a42a0911270640o7a8c26a8l83fa0319ac74a3a0@...627...> it simply don't exist... you need to use the check mark and then compute the exclude by you self... it's not so complicated to do. 2009/11/27 David Dell : > I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical > application and I'm trying to create radio (mutually exclusive) menu > items, with a radio icon instead of a check mark when selected. I > can't find any property in the Menu documentation that does that. Can > you help? > > Thank you, > David > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Nov 27 17:55:23 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 Nov 2009 17:55:23 +0100 Subject: [Gambas-user] Ok, I'm stumped In-Reply-To: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> Message-ID: <200911271755.23709.gambas@...1...> > Gambas3 > > I have a GridView named gvOptions, and this code: > > Public Sub gvOptions_Menu() > > Debug Mouse.X > Debug Mouse.Y > > End > > 1) Both Mouse.X and Mouse.Y tell me "no mouse event data" > > I need to capture the mouse position to pop up a window. How do I do > that in g3? > There is no mouse information for the Menu event. You can even raise this event without using the mouse, you know. If you really need to know where is the mouse (but why?), you can use the Mouse.ScreenX and Mouse.ScreenY properties. On X11, knowing where the mouse is may be expensive, when there is Internet between the mouse and the process receiving the events. So you get them when you have real mouse events only. Otherwise you must explicitely ask the X11 server for them: that is done by the Mouse.ScreenX / Mouse.ScreenY properties. Regards, -- Beno?t Minisini From ulusoyab at ...43... Fri Nov 27 18:33:55 2009 From: ulusoyab at ...43... (abdurrahman ulusoy) Date: Fri, 27 Nov 2009 09:33:55 -0800 (PST) Subject: [Gambas-user] scrollview Message-ID: <708007.85655.qm@...2262...> ?my code is?ScrollView1.ScrollX= 100ScrollView1.Scrolly = 200 this codes are working in gambas2 but gambas3 not working. ? ___________________________________________________________________ Yahoo! T?rkiye a??ld?! http://yahoo.com.tr ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor! From gambas at ...1... Fri Nov 27 19:35:43 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 Nov 2009 19:35:43 +0100 Subject: [Gambas-user] Gambas 2 on ARM Message-ID: <200911271935.43459.gambas@...1...> Hi, I have made some changes relative to pointer casts and strict pointer aliasing that should make the interpreter behave better on ARM architecture. This is in revision 2440. ARM users, please compile that and tell me what happens! I will continue the same job with the compiler and the informer (gbi2) now. Regards, -- Beno?t Minisini From gambas at ...1... Fri Nov 27 19:55:45 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 Nov 2009 19:55:45 +0100 Subject: [Gambas-user] Frame where the first item is not Enabled - focus problem In-Reply-To: <26507550.post@...1379...> References: <26507190.post@...1379...> <26507550.post@...1379...> Message-ID: <200911271955.45755.gambas@...1...> > bbb888 wrote: > > In this form I have > > - several misc controls > > - a textarea > > - a frame (with several checkboxes and buttons) > > - a listview > > in that order in the heirarchy. > > > > In certain conditions, the first item in the frame has it's Enabled > > property set to false. > > When this happens and I tab from the textarea to the frame (in actual > > fact it's done in code using textarea.Next.SetFocus as I have to trap TAB > > keys), the focus does not go to the first enabled item in the frame. In > > fact, it seems to disappear* and a second tab moves the focus to the > > first control in the form, not the listview. > > * even the listview_GotFocus handler is never invoked. > > > > If the first item in the frame is enabled, the form "works". > > > > Is this expected behaviour? If not, do you think it is something in > > gambas or in the KDE style (Highcolor Classic) that I am using ? > > > > tia > > Bruce > > > > Update: I've tried changing the Frame to a Panel, but apart from losing > > my title the problem remains. > > OK, Ive solved it with > > IF Panel2.Children[0].Enabled THEN > Panel2.Children[0].SetFocus > ELSE > Panel2.Children[1].SetFocus > ENDIF > > but I wouldn't have thought I'd need to go to thgat extreme? > Yes, you have to do that, because TextArea.Next is the next control in z- order, and so in tab order, but the enable status of the control in not taken into account. Regards, -- Beno?t Minisini From gambas at ...1... Fri Nov 27 20:09:38 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 Nov 2009 20:09:38 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <1259071290.7076.24.camel@...40...> References: <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> <1259071290.7076.24.camel@...40...> Message-ID: <200911272009.38176.gambas@...1...> > Am Mittwoch, den 25.11.2009, 00:27 +1100 schrieb > > nospam.nospam.nospam at ...626...: > > Matteo Lisi wrote: > > > Hi ! > > > > > > The first line: > > > #!/usr/bin/ gbs2 > > > > > > it's a typing error > > > the right line is: > > > #!/usr/bin/gbs2 > > > > > > Thanks Charlie , but the problem , unfortunatly is not the space ! > > > > Could the problem be some other typing error? > > Salut, > > 1.)------ full call -------- > > :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -c > > ~/gambas/2/f3/scriptTest/matteo.ga2script > gbs2: warning: cannot find component dbreportviewer2 required by > DBReportDesigner2 > CComponent.CalcSortKey.171: #13: Null object > 0: CComponent.CalcSortKey.171 > 1: CComponent.SortComponents.201 > 2: CComponent._init.123 > 3: MMain.MakeVirtualProject.180 > 4: MMain.Main.83 > > I'v no idea what, and why that gbs2: warning. > The component exists as User-Component, and of course it has nothing to > do with the script > > 2.)----- my gbs2 version [rev 2429] ------------------------ > > :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -V > > 2.14.0 > > 3.)------ after a chmod +x and changing to #!/usr/local/bin/gbs2 ------ > > :~/gambas/2/f3/scriptTest$ ./matteo.ga2script > > ./matteo.gbs: line 3: syntax error near unexpected token `(' > ./matteo.gbs: line 3: `FUNCTION GetUsedMemory() AS Integer' > > perhaps Benoit or Fabien have a Idea! > I fixed the gbs2 scripter so that it does not crash in the CalcSortKey function when a component is missing, and continues its job. This is in revision #2441, if someone wants to test. Regards, -- Beno?t Minisini From Karl.Reinl at ...9... Fri Nov 27 21:39:26 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 27 Nov 2009 21:39:26 +0100 Subject: [Gambas-user] Gambas script execution In-Reply-To: <200911272009.38176.gambas@...1...> References: <9575A1A69D9D4F6CB448BFEF99A59539@...2330...> <1259071290.7076.24.camel@...40...> <200911272009.38176.gambas@...1...> Message-ID: <1259354366.6397.47.camel@...40...> Am Freitag, den 27.11.2009, 20:09 +0100 schrieb Beno?t Minisini: > > Am Mittwoch, den 25.11.2009, 00:27 +1100 schrieb > > > > nospam.nospam.nospam at ...626...: > > > Matteo Lisi wrote: > > > > Hi ! > > > > > > > > The first line: > > > > #!/usr/bin/ gbs2 > > > > > > > > it's a typing error > > > > the right line is: > > > > #!/usr/bin/gbs2 > > > > > > > > Thanks Charlie , but the problem , unfortunatly is not the space ! > > > > > > Could the problem be some other typing error? > > > > Salut, > > > > 1.)------ full call -------- > > > > :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -c > > > > ~/gambas/2/f3/scriptTest/matteo.ga2script > > gbs2: warning: cannot find component dbreportviewer2 required by > > DBReportDesigner2 > > CComponent.CalcSortKey.171: #13: Null object > > 0: CComponent.CalcSortKey.171 > > 1: CComponent.SortComponents.201 > > 2: CComponent._init.123 > > 3: MMain.MakeVirtualProject.180 > > 4: MMain.Main.83 > > > > I'v no idea what, and why that gbs2: warning. > > The component exists as User-Component, and of course it has nothing to > > do with the script > > > > 2.)----- my gbs2 version [rev 2429] ------------------------ > > > > :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -V > > > > 2.14.0 > > > > 3.)------ after a chmod +x and changing to #!/usr/local/bin/gbs2 ------ > > > > :~/gambas/2/f3/scriptTest$ ./matteo.ga2script > > > > ./matteo.gbs: line 3: syntax error near unexpected token `(' > > ./matteo.gbs: line 3: `FUNCTION GetUsedMemory() AS Integer' > > > > perhaps Benoit or Fabien have a Idea! > > > > I fixed the gbs2 scripter so that it does not crash in the CalcSortKey > function when a component is missing, and continues its job. > > This is in revision #2441, if someone wants to test. > > Regards, > Salut Benoit, here the results for #2441 with #!/usr/bin/env gbs2 in first line of the script :/opt/gambas/2$ ~/gambas/2/f3/scriptTest/matteo.ga2script gbs2: warning: cannot find component dbreportviewer2 required by DBReportDesigner2 gbs2: warning: cannot find component dbreportdesigner2 required by TestPage gbs2: warning: cannot find component dbreportviewer2 required by TestPage Used memory: 325720 bytes -------------------------------------------------------------------------------- !! Here: the who claims, are also components itself -------------------------------------------------------------------------------- :/opt/gambas/2$ /usr/bin/env gbs2 ~/gambas/2/f3/scriptTest/matteo.ga2script gbs2: warning: cannot find component dbreportviewer2 required by DBReportDesigner2 gbs2: warning: cannot find component dbreportdesigner2 required by TestPage gbs2: warning: cannot find component dbreportviewer2 required by TestPage Used memory: 381428 bytes -------------------------------------------------------------------------------- !! Here: the who claims, are also components itself -------------------------------------------------------------------------------- :/opt/gambas/2$ /usr/local/bin/gbs2 ~/gambas/2/f3/scriptTest/matteo.ga2script Used memory: 325724 bytes ================================================================================ with #!/usr/local/bin/gbs2 in first line of the script :/opt/gambas/2$ ~/gambas/2/f3/scriptTest/matteo.ga2script ~/gambas/2/f3/scriptTest/matteo.ga2script: line 3: syntax error near unexpected token `(' ~/gambas/2/f3/scriptTest/matteo.ga2script: line 3: `FUNCTION GetUsedMemory() AS Integer' -- Amicalement Charlie From davidmdell at ...626... Fri Nov 27 21:41:16 2009 From: davidmdell at ...626... (David Dell) Date: Fri, 27 Nov 2009 22:41:16 +0200 Subject: [Gambas-user] Get the index of a menu Message-ID: <9610272b0911271241u22c1ae8fhe51554584156803a@...627...> How can I get the index of a menu in the collection of children of its parent? There is no Menu.Index property. Thank you, David From davidmdell at ...626... Fri Nov 27 21:37:45 2009 From: davidmdell at ...626... (David Dell) Date: Fri, 27 Nov 2009 22:37:45 +0200 Subject: [Gambas-user] Modifying a picture assigned to a menu Message-ID: <9610272b0911271237ha80144ej87dbee7cb74c054b@...627...> Let's say first I assign a picture to a menu: DIM Pic AS Picture Pic = NEW Picture(18, 18) Pic.Fill(Color.Black) MenuCustomColor.Picture = Pic When I try to modify a picture assigned to a menu, if I use MenuCustomColor.Picture.Fill(Dialog.Color) it does not do anything. Instead I have to do: DIM Pic AS Picture Pic = MenuCustomColor.Picture Pic.Fill(Dialog.Color) MenuCustomColor.Picture = Pic Why is that? And is this the correct way to do this? Thank you, David From gambas at ...1... Fri Nov 27 22:36:23 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 Nov 2009 22:36:23 +0100 Subject: [Gambas-user] Modifying a picture assigned to a menu In-Reply-To: <9610272b0911271237ha80144ej87dbee7cb74c054b@...627...> References: <9610272b0911271237ha80144ej87dbee7cb74c054b@...627...> Message-ID: <200911272236.23827.gambas@...1...> > Let's say first I assign a picture to a menu: > > DIM Pic AS Picture > Pic = NEW Picture(18, 18) > Pic.Fill(Color.Black) > MenuCustomColor.Picture = Pic > > When I try to modify a picture assigned to a menu, if I use > > MenuCustomColor.Picture.Fill(Dialog.Color) > > it does not do anything. > > Instead I have to do: > > DIM Pic AS Picture > Pic = MenuCustomColor.Picture > Pic.Fill(Dialog.Color) > MenuCustomColor.Picture = Pic > > Why is that? Because the underlying toolkit uses its own "picture" object that is not automatically reassigned to the control automatically. In other words, assume that the Picture property returns a copy of the underlying picture. I did a workaround only for the Control.Font property. I mean, settings Control.Font.Bold for example automatically reassigns the control font so that you see the change. > > And is this the correct way to do this? So, yes! Regards, -- Beno?t Minisini From gambas at ...1... Fri Nov 27 22:39:48 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 Nov 2009 22:39:48 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <200911220909.59805.rterry@...1946...> References: <200911220909.59805.rterry@...1946...> Message-ID: <200911272239.48944.gambas@...1...> > Hi benoit, > > Just a comment re menu-editor which when doing large menu's I find > annoying. > > The default action for the return/enter key in the textboxes is to trigger > the OK button in the menu editor, so if one hits enter and not tab to get > to the next box > hasty exit from the menu editor. Why hitting Enter/Return to get to next box? That never does that. -- Beno?t Minisini From kb2scs at ...2326... Fri Nov 27 21:12:52 2009 From: kb2scs at ...2326... (John) Date: Fri, 27 Nov 2009 15:12:52 -0500 Subject: [Gambas-user] FileChooser1 Message-ID: <1259352772.1814.12.camel@...2329...> Hi All I have on the main form a Wizard1 control and in the first step of that Wizard1 control I have a Filechooser1 control. Here is the code ' Gambas class file PUBLIC Spath AS String PUBLIC SUB _new() END PUBLIC SUB Form_Open() END PUBLIC SUB Wizard1_Cancel() ME.Close END PUBLIC SUB Wizard1_Change() SELECT CASE Wizard1.Index CASE 1 Spath = FileChooser1.SelectedPath DEBUG Spath END SELECT END Here is what I do when I run the program. 1) choose a file using the Filechooser1 control. 2) click on the next button on the Wizard1 control. When I do the above the console window shows the following. VbtogambasFrm.Wizard1_Change.19: The variable Spath contains a Null. What am I doing wrong? From gambas at ...1... Fri Nov 27 22:44:54 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Fri, 27 Nov 2009 22:44:54 +0100 Subject: [Gambas-user] Problem building Gambas3 on openSUSE 11.2 In-Reply-To: <4B07D684.8020109@...1000...> References: <4B06613E.3000801@...1000...> <200911211143.00824.gambas@...1...> <4B07D684.8020109@...1000...> Message-ID: <200911272244.54194.gambas@...1...> > On 21/11/09 18:43, Beno?t Minisini wrote: > >> On 20/11/09 17:28, Werner wrote: > >>> Suse 11.2 came out last week. I seem to remember that it worked fine > >>> with 11.1 using qt3. > >>> > >>> My problem is that I can't configure support for Qt (I don't care about > >>> the other parts). > >>> > >>> I am trying this now with trunk rev 2429 but have also tried it with a > >>> trunk from maybe 10 days ago. > >> > >> Update: > >> I have built Gambas3 with Suse11.1/qt3 and Suse11.2/qt4 side by side. > >> On 11.1 moc is found in /usr/lib/qt3/bin/ > >> > >> On 11.2 moc is in /usr/bin (for Qt Creator, very nice, btw) and also in > >> /usr/lib64/qt4/bin > >> but it is not found. I've tried > >> ./configure --with-moc=/usr/lib64/qt4/bin/moc but that made no > >> difference. > >> > >> I can build and run an example program with Qt Creator so the building > >> apps all seem to be there. > >> > >> Also, there does not seem to be any libqt-mt.so in qt4. > >> > >> > >> Best Regards > >> > >> Werner > > > > What are you talking about? Compiling gb.qt (Qt3) or compiling gb.qt4 > > (Qt4)? > > > > Qt3 moc is found by searching in a list of hard-coded directories. > > > > Qt4 moc is found by using pkg-config. > > > > So please be clearer so that I can see what happens exactly! > > > > Regards, > > Suse 11.2 comes with Qt 4.5.3 which is what I would prefer to use. > > Regards, > Werner > You don't decide! The gb.qt component needs Qt3, and the gb.qt4 component needs Qt4. And I don't see where you have a problem: if Qt3 is not installed on your system, you won't have any gb.qt.* components: gb.qt, gb.qt.ext, gb.qt.opengl, gb.qt.kde... Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Fri Nov 27 22:49:43 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 27 Nov 2009 23:49:43 +0200 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <200911272239.48944.gambas@...1...> References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> Message-ID: <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> I think it is more like habit to end value input with enter, than assumption that enter will get you to next box. There are many GUIs where you must validate your input with enter. Example, if you send message with pidgin. I haven't use menu editor, but that sounds something I would find annoying too. I don't know. Jussi 2009/11/27 Beno?t Minisini : >> Hi benoit, >> >> Just a comment re menu-editor which when doing large menu's I find >> ?annoying. >> >> The default action for the return/enter key in the textboxes is to trigger >> ?the OK button in the menu editor, so if one hits enter and not tab to get >> ?to the next box > hasty exit from the menu editor. > > Why hitting Enter/Return to get to next box? That never does that. > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dag.jarle.johansen at ...2312... Sat Nov 28 00:33:08 2009 From: dag.jarle.johansen at ...2312... (Dag-Jarle Johansen) Date: Fri, 27 Nov 2009 20:33:08 -0300 Subject: [Gambas-user] Generator Message-ID: hi, I have tried out Gambas since about 1 1/2 month now, it mostly works fine. As an old VB6-programmer some issues are just new or different, depends on. It is fast, really fast, but perhaps this is a consequence of switching from windows to linux too, don't know. ( I just hate to do something on the kid's (still) windows-pc) . I am writing a budget-software for the moment, to get practice and use a lot of tables in the MySQL-Database, operating with all issues I find. I wrote my first programms in 1979, so I think i know what is needed, and what one can leave outside. still, I am a typical application programmer, I do not really care what is happening under the hood, if it works. a reason why I did not like C very much, though I had to write a lot, with unix and windows. too much to do before you see any results :) and that is what I am thinking about. my little software will contain about 50 tables, and most of them are to be handled by a user or admin. even though one can write a lot of functions or classes helping out, in my opinion it is easier to handle forms with the items visible on them, than to work all virtually, speak use only dynamic objects (consequently worked out you then only would use one basic form, but I would not like to have to read the source then). with 2 additional tables it would be possible to write a generator for typical data-apps, creating (at least the core) forms with menus, toolbars, statusbar, listarea and dataarea. I did that in VB6, and if the planning was good, the form was finished with a click. it is also likely to reverse the procedure - create one form by hand and then read out the elements to put them in the right tables. then make an copy-routine, and change the items as needed for the next form, whereby it would be possible to read out table-contents of the productivity-db to replace the fields (and tables if more than one) in the copied section. then all to do is labeling right. (mostly the field names are not very handsome for the end-user) my question to you - anyone interested in such a project? I am not so sure if I would write it for myself, the future is a little diffuse, it is not really certain what I am going to concentrate on. for me it is good chance to dive a little deeper in gambas, but it is necessary to get feedback - no fun in writing for months on something nobody wants. I am also making a little web-design, better, the technical part with php and so on, and there are other options too. I would like to hear a thought or two about this... if I hear nothing, I know what to do :) bye and regards dag-jarle johansen From nospam.nospam.nospam at ...626... Sat Nov 28 03:32:23 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 13:32:23 +1100 Subject: [Gambas-user] Ok, I'm stumped In-Reply-To: <200911271755.23709.gambas@...1...> References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> <200911271755.23709.gambas@...1...> Message-ID: 2009/11/28 Beno?t Minisini : > If you really need to know where is the mouse (but why?), you can use the > Mouse.ScreenX and Mouse.ScreenY properties. Meh. I'm a Windows developer of many years who's given up on M$ so I have assumptions about GUI programming that are extremely hard to lose :) I have two gridviews on two different forms. When the user right clicks on one gridview row on the main form I want to pop the other form and gridview right where they clicked. > On X11, knowing where the mouse is may be expensive, when there is Internet > between the mouse and the process receiving the events. So you get them when > you have real mouse events only. Otherwise you must explicitely ask the X11 > server for them: that is done by the Mouse.ScreenX / Mouse.ScreenY properties. I should be able to live with control-relative coordinates. From nospam.nospam.nospam at ...626... Sat Nov 28 03:34:19 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 13:34:19 +1100 Subject: [Gambas-user] Ok, I'm stumped In-Reply-To: <6324a42a0911270638l33390a4dl95b7b0bfbe078403@...627...> References: <996A9B174DE94BE1826CA3C9FD790CDF@...2330...> <1259318511.6408.13.camel@...40...> <1259325795.8100.15.camel@...40...> <6324a42a0911270638l33390a4dl95b7b0bfbe078403@...627...> Message-ID: 2009/11/28 Fabien Bodard : > so the answer is : > > private $MX as Integer > Private $MY as integer > > > Public sub gvOption_MouseDown > ?$MX = mouse.x > ?$MY=Mouse.Y > END > > Public sub gvOption_Menu() > > MyForm.Move($Mx, $My) > > END > > > Be carefull as Mouse.X is container relative... Ok, I'll give that a shot later in the day I was having the problem in gambas3 but I've gone back to g2. Many thanks for the help. From nospam.nospam.nospam at ...626... Sat Nov 28 03:59:34 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 13:59:34 +1100 Subject: [Gambas-user] Get the index of a menu In-Reply-To: <9610272b0911271241u22c1ae8fhe51554584156803a@...627...> References: <9610272b0911271241u22c1ae8fhe51554584156803a@...627...> Message-ID: 2009/11/28 David Dell : > How can I get the index of a menu in the collection of children of its > parent? There is no Menu.Index property. > > Thank you, Put the ID in the tag property. That way you don't have to go searching through a FOR EACH loop to get the ID. I have a similar issue with ComboBoxes, which don't support tags so you have to manage the information using collections. I solved the problem in this way: [CODE] PRIVATE $colKeysByLabel AS NEW Collection ' Keeps track of keys for menu item labels PRIVATE $colKeysByID AS NEW Collection ' Keeps track of keys for menu PRIVATE $SelectedID AS Integer ' Holds the currently selected ID for the combobox [...] ' This is done at startup if the cbo is static ' and it's done in a refresh routine if the cbo is dynamic ' for dynamic use: ' cboControlPanelServers.Clear ' $colKeysServersByLabel.Clear ' Load the combobox and the collections from a database table FOR nZ = 1 TO SystemDataManager.rServers.Count ' Build the list in the combobox cboControlPanelServers.Add(SystemDataManager.rServers!Label) ' The label is the key for this collection $colKeysByLabel.Add(SystemDataManager.rServers!ID, SystemDataManager.rServers!Label) ' The id is the key for this collection $colKeysByID.Add(SystemDataManager.rServers!Label, SystemDataManager.rServers!ID) SystemDataManager.rServers.MoveNext NEXT ' for each [...] ' The user has clicked on an item PUBLIC SUB cboControlPanelServers_Click() IF $bLoading THEN ' Leave if we are starting up RETURN ENDIF ' Store the ID $SelectedID = $colKeysByLabel[cboControlPanelServers.Current.Text] END [/CODE] If you have an ID and you want to find the label then use the $colKeysByID collection to return the label. From nospam.nospam.nospam at ...626... Sat Nov 28 04:08:10 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 14:08:10 +1100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> Message-ID: 2009/11/28 Jussi Lahtinen : > There are many GUIs where you must validate your input with enter. > Example, if you send message with pidgin. Enter means, "I am finished. It's your turn to do something, mister pooter." Tab means, "I am not finished. It's still my turn and I'm still doing stuff." Escape means, "I am finished, and you can throw all my work out, mister pooter." Based on that, can you see why pidgin sends text when you press enter? And can you now understand why windows with default buttons tend to close when you press enter? From dag.jarle.johansen at ...2312... Sat Nov 28 05:12:26 2009 From: dag.jarle.johansen at ...2312... (Dag-Jarle Johansen) Date: Sat, 28 Nov 2009 01:12:26 -0300 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> Message-ID: hi, I don't know if I have this right, but EVERYVERE you have to have to skip from one textfield to another, motsly by tab, PHP, HTML, every programm you know then you accept the entires. in gambas on ONE form perfectly easy, catch the Enter from a menu, as easy as that. and dont complain, when I show you my forms - hehe regards, dag-jarle johansen Kadaitcha Man schrieb: > 2009/11/28 Jussi Lahtinen : > > >> There are many GUIs where you must validate your input with enter. >> Example, if you send message with pidgin. >> > > Enter means, "I am finished. It's your turn to do something, mister pooter." > Tab means, "I am not finished. It's still my turn and I'm still doing stuff." > Escape means, "I am finished, and you can throw all my work out, mister pooter." > > Based on that, can you see why pidgin sends text when you press enter? > And can you now understand why windows with default buttons tend to > close when you press enter? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From dag.jarle.johansen at ...2312... Sat Nov 28 05:20:57 2009 From: dag.jarle.johansen at ...2312... (Dag-Jarle Johansen) Date: Sat, 28 Nov 2009 01:20:57 -0300 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> Message-ID: see what you mean, laughin to dead here, ok trying to get better. do you know how embarisning it is, to be narrowsighted and longsithed at once ok i try my best man, you have a looooot of options here, just ask, you alone knows what the software is doing at this point you have to decide! regards dag.jarle johansen Kadaitcha Man schrieb: > 2009/11/28 Jussi Lahtinen : > > >> There are many GUIs where you must validate your input with enter. >> Example, if you send message with pidgin. >> > > Enter means, "I am finished. It's your turn to do something, mister pooter." > Tab means, "I am not finished. It's still my turn and I'm still doing stuff." > Escape means, "I am finished, and you can throw all my work out, mister pooter." > > Based on that, can you see why pidgin sends text when you press enter? > And can you now understand why windows with default buttons tend to > close when you press enter? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From dag.jarle.johansen at ...2312... Sat Nov 28 05:31:38 2009 From: dag.jarle.johansen at ...2312... (Dag-Jarle Johansen) Date: Sat, 28 Nov 2009 01:31:38 -0300 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> Message-ID: you are a good guy, i'm not, very very b?se (german, means mean) while I try to help you, my own shit is coming in the only word I dont understand is pidgin? tell me Kadaitcha Man schrieb: > 2009/11/28 Jussi Lahtinen : > > >> There are many GUIs where you must validate your input with enter. >> Example, if you send message with pidgin. >> > > Enter means, "I am finished. It's your turn to do something, mister pooter." > Tab means, "I am not finished. It's still my turn and I'm still doing stuff." > Escape means, "I am finished, and you can throw all my work out, mister pooter." > > Based on that, can you see why pidgin sends text when you press enter? > And can you now understand why windows with default buttons tend to > close when you press enter? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From dag.jarle.johansen at ...2312... Sat Nov 28 05:55:14 2009 From: dag.jarle.johansen at ...2312... (Dag-Jarle Johansen) Date: Sat, 28 Nov 2009 01:55:14 -0300 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> Message-ID: aaand yet waiting for tomorrow Dag-Jarle Johansen schrieb: > you are a good guy, > i'm not, very very b?se > (german, means mean) > > while I try to help you, my own shit is coming in > the only word I dont understand is pidgin? tell me > > Kadaitcha Man schrieb: > >> 2009/11/28 Jussi Lahtinen : >> >> >> >>> There are many GUIs where you must validate your input with enter. >>> Example, if you send message with pidgin. >>> >>> >> Enter means, "I am finished. It's your turn to do something, mister pooter." >> Tab means, "I am not finished. It's still my turn and I'm still doing stuff." >> Escape means, "I am finished, and you can throw all my work out, mister pooter." >> >> Based on that, can you see why pidgin sends text when you press enter? >> And can you now understand why windows with default buttons tend to >> close when you press enter? >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day >> trial. Simplify your report design, integration and deployment - and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > > ------------------------------------------------------------------------------ > Let Crystal Reports hand > le the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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 Nov 28 06:18:51 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 16:18:51 +1100 Subject: [Gambas-user] Null Object Message-ID: I'm having trouble with editing a TableView. I found this when looking for a solution: http://old.nabble.com/tableview-edit-td25328595.html It's the same problem I've got. There is neither a class name nor any line number in the error message as the guy said, however he didn't respond back to the list. Attached is a screen dump, and code to reproduce the problem. Note: My main project has a Data event handler. The TableView.Edit([...]) causes the Data handler to fire: PUBLIC SUB tblvOptions_Data(Row AS Integer, Column AS Integer) Both Row and Column are zero when TableView.Edit([...]) is invoked. Gambas is 2.17, project is GTK, running on Ubuntu 9.10. -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot.png Type: image/png Size: 20336 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NullObject.tar.gz Type: application/x-gzip Size: 8349 bytes Desc: not available URL: From davidmdell at ...626... Sat Nov 28 09:13:42 2009 From: davidmdell at ...626... (David Dell) Date: Sat, 28 Nov 2009 10:13:42 +0200 Subject: [Gambas-user] Modifying a picture assigned to a menu In-Reply-To: <9610272b0911280009o457f8d9dp464c7d94c1c2105a@...627...> References: <9610272b0911280009o457f8d9dp464c7d94c1c2105a@...627...> Message-ID: <9610272b0911280013k5e14d899re84b7a1382afc1fc@...627...> > Because the underlying toolkit uses its own "picture" object that is not > automatically reassigned to the control automatically. In other words, assume > that the Picture property returns a copy of the underlying picture. I hope this doesn't create extra unneeded picture objects in memory, so I can perform code like: DIM Pic AS Picture Pic = MenuCustomColor.Picture Pic.Fill(Dialog.Color) MenuCustomColor.Picture = Pic for any number of times without memory penalties. Please confirm this. Thank you, David On Sat, Nov 28, 2009 at 10:09 AM, David Dell wrote: >> Let's say first I assign a picture to a menu: >> >> ? DIM Pic AS Picture >> ? Pic = NEW Picture(18, 18) >> ? Pic.Fill(Color.Black) >> ? MenuCustomColor.Picture = Pic >> >> When I try to modify a picture assigned to a menu, if I use >> >> ? MenuCustomColor.Picture.Fill(Dialog.Color) >> >> it does not do anything. >> >> Instead I have to do: >> >> ? DIM Pic AS Picture >> ? Pic = MenuCustomColor.Picture >> ? Pic.Fill(Dialog.Color) >> ? MenuCustomColor.Picture = Pic >> >> Why is that? > > Because the underlying toolkit uses its own "picture" object that is not > automatically reassigned to the control automatically. In other words, assume > that the Picture property returns a copy of the underlying picture. > > I did a workaround only for the Control.Font property. I mean, settings > Control.Font.Bold for example automatically reassigns the control font so that > you see the change. > >> >> And is this the correct way to do this? > > So, yes! > > Regards, > > -- > Beno?t Minisini > From davidmdell at ...626... Sat Nov 28 09:22:59 2009 From: davidmdell at ...626... (David Dell) Date: Sat, 28 Nov 2009 10:22:59 +0200 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> Message-ID: <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> OK, but how can I get the standard radio check icon for menus on the Linux operating system the program is running (for example in Ubuntu the one used in View menu of the Calculator program, etc.)? Is there a way to get if from the system using Gambas instead of including it in my program? Thank you, David > it simply don't exist... you need to use the check mark and then > compute the exclude by you self... it's not so complicated to do. > > 2009/11/27 David Dell : >> I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical >> application and I'm trying to create radio (mutually exclusive) menu >> items, with a radio icon instead of a check mark when selected. I >> can't find any property in the Menu documentation that does that. Can >> you help? >> >> Thank you, >> David > From gambas.fr at ...626... Sat Nov 28 09:32:42 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 28 Nov 2009 09:32:42 +0100 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> Message-ID: <6324a42a0911280032w4c69872sa453a8009ff543c3@...627...> i need to look about that 2009/11/28 David Dell : > OK, but how can I get the standard radio check icon for menus on the > Linux operating system the program is running (for example in Ubuntu > the one used in View menu of the Calculator program, etc.)? Is there a > way to get if from the system using Gambas instead of including it in > my program? > > Thank you, > David > >> it simply don't exist... you need to use the check mark and then >> compute the exclude by you self... it's not so complicated to do. >> >> 2009/11/27 David Dell : >>> I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical >>> application and I'm trying to create radio (mutually exclusive) menu >>> items, with a radio icon instead of a check mark when selected. I >>> can't find any property in the Menu documentation that does that. Can >>> you help? >>> >>> Thank you, >>> David >> > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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 Nov 28 09:48:59 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 19:48:59 +1100 Subject: [Gambas-user] Modifying a picture assigned to a menu In-Reply-To: <9610272b0911280013k5e14d899re84b7a1382afc1fc@...627...> References: <9610272b0911280009o457f8d9dp464c7d94c1c2105a@...627...> <9610272b0911280013k5e14d899re84b7a1382afc1fc@...627...> Message-ID: 2009/11/28 David Dell : >> the underlying toolkit > I hope this doesn't create extra unneeded picture objects in memory, > for any number of times without memory penalties. > > Please confirm this. He said "the underlying toolkit". that means it is out of Benoit's control. From gambas at ...1... Sat Nov 28 09:59:57 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 Nov 2009 09:59:57 +0100 Subject: [Gambas-user] Modifying a picture assigned to a menu In-Reply-To: <9610272b0911280013k5e14d899re84b7a1382afc1fc@...627...> References: <9610272b0911280009o457f8d9dp464c7d94c1c2105a@...627...> <9610272b0911280013k5e14d899re84b7a1382afc1fc@...627...> Message-ID: <200911280959.57730.gambas@...1...> > > Because the underlying toolkit uses its own "picture" object that is not > > automatically reassigned to the control automatically. In other words, > > assume that the Picture property returns a copy of the underlying > > picture. > > I hope this doesn't create extra unneeded picture objects in memory, > so I can perform code like: > > DIM Pic AS Picture > Pic = MenuCustomColor.Picture > Pic.Fill(Dialog.Color) > MenuCustomColor.Picture = Pic > > for any number of times without memory penalties. > > Please confirm this. > > Thank you, > David > Nothing is leaked in the process. At least as far as I am concerned! My explanations were simplified, so here is more details... When you do: MenuCustomColor.Picture = Pic Here is what happens internally (for gb.qt): 1) The old internal MenuCustomColor.Picture is dereferenced. 2) The Pic Gambas object is assigned to the internal MenuCustomColor.Picture and referenced. 3) The internal Qt QPixmap associated with MenuCustomColor.Picture is assigned to the internal Qt QMenu associated with MenuCustomColor with the setIcon() method. So the QPixmap has to be transformed into a QIcon before. When you do: MenuCustomColor.Picture.Fill(MyColor) It happens: 1) The internal MenuCustomColor.Picture is returned. 2) The picture is filled with MyColor, i.e. the internal Qt QPixmap associated with the picture object is filled. And that's all. As there is no link between that QPixmap and the icon associated with the Menu, you see no change on the screen. You must write MenuCustomColor.Picture = MenuCustomColor.Picture to repeat the step #3 above. You have the same problem with Button, PictureBox, TreeView, ListView... Note: It is actually a bit more complex than that, as a QPixmap is internally associated with the true X11 Pixmap resource that is stored on the server. But it is automatically managed by the toolkit, so it is out of my control. Regards, -- Beno?t Minisini From gambas at ...1... Sat Nov 28 10:08:45 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 Nov 2009 10:08:45 +0100 Subject: [Gambas-user] Null Object In-Reply-To: References: Message-ID: <200911281008.45585.gambas@...1...> > I'm having trouble with editing a TableView. I found this when looking > for a solution: > > http://old.nabble.com/tableview-edit-td25328595.html > > It's the same problem I've got. There is neither a class name nor any > line number in the error message as the guy said, however he didn't > respond back to the list. > > Attached is a screen dump, and code to reproduce the problem. > > Note: My main project has a Data event handler. The > TableView.Edit([...]) causes the Data handler to fire: > > PUBLIC SUB tblvOptions_Data(Row AS Integer, Column AS Integer) > > Both Row and Column are zero when TableView.Edit([...]) is invoked. > > Gambas is 2.17, project is GTK, running on Ubuntu 9.10. > It should be fixed in revision #2445. Regards, -- Beno?t Minisini From gambas at ...1... Sat Nov 28 10:09:36 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 Nov 2009 10:09:36 +0100 Subject: [Gambas-user] FileChooser1 In-Reply-To: <1259352772.1814.12.camel@...2329...> References: <1259352772.1814.12.camel@...2329...> Message-ID: <200911281009.36871.gambas@...1...> > Hi All > I have on the main form a Wizard1 control and in the first > step of that Wizard1 control I have a Filechooser1 control. > Here is the code > > ' Gambas class file > PUBLIC Spath AS String > PUBLIC SUB _new() > > END > > PUBLIC SUB Form_Open() > > END > PUBLIC SUB Wizard1_Cancel() > > ME.Close > > END > PUBLIC SUB Wizard1_Change() > SELECT CASE Wizard1.Index > CASE 1 > Spath = FileChooser1.SelectedPath > DEBUG Spath > END SELECT > END > Here is what I do when I run the program. > 1) choose a file using the Filechooser1 control. > 2) click on the next button on the Wizard1 control. > > When I do the above the console window shows the following. > VbtogambasFrm.Wizard1_Change.19: > > The variable Spath contains a Null. > What am I doing wrong? > Can you provide a full project that shows your problem? Thanks in advance. -- Beno?t Minisini From doriano.blengino at ...1909... Sat Nov 28 10:10:55 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 28 Nov 2009 10:10:55 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> Message-ID: <4B10E91F.4030209@...1909...> Kadaitcha Man ha scritto: > 2009/11/28 Jussi Lahtinen : > > >> There are many GUIs where you must validate your input with enter. >> Example, if you send message with pidgin. >> > > Enter means, "I am finished. It's your turn to do something, mister pooter." > Tab means, "I am not finished. It's still my turn and I'm still doing stuff." > Escape means, "I am finished, and you can throw all my work out, mister pooter." > > Based on that, can you see why pidgin sends text when you press enter? > And can you now understand why windows with default buttons tend to > close when you press enter? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Dear Kadaitcha, keep in mind that there is a lot of people out there which do not exactly understand what a keyboard is. Typically, when a message box with an OK button pops up, they leave up the right hand from the keyboard to grab the mouse and click the OK button. In this philosophy, you should not wonder when you see applications you can't use without a mouse, because the majority of people don't even notice. But the majority of people also believes to be a computer guru, and if you say "I think this is a mistake" they will reply "it's you who is wrong, because things have always been done this way". Being used to delphi, the first time I've seen the VB menu editor I laughed: it was crap compared to delphi's one. When I discovered gambas, I saw the same menu editor. But I didn't laugh anymore; there are many things I would love to change but, on the other hand, gambas has an unbeated productivity in the linux desktop. What you are saying is right - everyone would benefit from this change, but not everyone understands it. Salutations, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sat Nov 28 10:13:00 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 Nov 2009 10:13:00 +0100 Subject: [Gambas-user] Support for PostgreSQL schemas Message-ID: <200911281013.00531.gambas@...1...> > The support has landed in the revision 2438. > > It was not that simple, and at the moment there is a workaround in the IDE > because the DB.Quote() function cannot handle them. > > Allowing DB.Quote() to correctly quote table names with a schema name > inside needs a little change in the database driver interface, so I will > do that later. Maybe with the DB.QuoteBlob() function. > > Regards, > In revision #2443, the support for postgresql schema is now far better. Moreover, I added a FormatBlob() function to the Connection class to get the SQL string representation of binary data that you should use inside a blob. It's up to Richard and Jean-Yves to tell me if all that work as expected now! Note: this is for Gambas 3 only, because of the changes in the interface. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sat Nov 28 10:16:21 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 20:16:21 +1100 Subject: [Gambas-user] Null Object In-Reply-To: <200911281008.45585.gambas@...1...> References: <200911281008.45585.gambas@...1...> Message-ID: 2009/11/28 Beno?t Minisini : > It should be fixed in revision #2445. Thanks, Beno?t. I need a little more help. I can see rev #2445 on sourceforge but how do I get it? From gambas at ...1... Sat Nov 28 10:18:41 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 Nov 2009 10:18:41 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <4B10E91F.4030209@...1909...> References: <200911220909.59805.rterry@...1946...> <4B10E91F.4030209@...1909...> Message-ID: <200911281018.41972.gambas@...1...> > Kadaitcha Man ha scritto: > > 2009/11/28 Jussi Lahtinen : > >> There are many GUIs where you must validate your input with enter. > >> Example, if you send message with pidgin. > > > > Enter means, "I am finished. It's your turn to do something, mister > > pooter." Tab means, "I am not finished. It's still my turn and I'm still > > doing stuff." Escape means, "I am finished, and you can throw all my work > > out, mister pooter." > > > > Based on that, can you see why pidgin sends text when you press enter? > > And can you now understand why windows with default buttons tend to > > close when you press enter? > > > > ------------------------------------------------------------------------- > >----- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > > 30-Day trial. Simplify your report design, integration and deployment - > > and focus on what you do best, core application coding. Discover what's > > new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Dear Kadaitcha, keep in mind that there is a lot of people out there > which do not exactly understand what a keyboard is. Typically, when a > message box with an OK button pops up, they leave up the right hand from > the keyboard to grab the mouse and click the OK button. In this > philosophy, you should not wonder when you see applications you can't > use without a mouse, because the majority of people don't even notice. > But the majority of people also believes to be a computer guru, and if > you say "I think this is a mistake" they will reply "it's you who is > wrong, because things have always been done this way". > > Being used to delphi, the first time I've seen the VB menu editor I > laughed: it was crap compared to delphi's one. When I discovered gambas, > I saw the same menu editor. But I didn't laugh anymore; there are many > things I would love to change but, on the other hand, gambas has an > unbeated productivity in the linux desktop. What you are saying is right > - everyone would benefit from this change, but not everyone understands it. > > Salutations, > Yes, the IDE menu editor was copied from the VB one. But hey, this is some code that comes from Gambas 1, done even before the TreeView control, with just some little changes in it. I have never used Delphi, so I have no idea of how its menu editor looks like. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sat Nov 28 10:33:59 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 20:33:59 +1100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <4B10E91F.4030209@...1909...> References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> <4B10E91F.4030209@...1909...> Message-ID: 2009/11/28 Doriano Blengino : > Dear Kadaitcha Oh, not that again. Some troll stole my email address and spread it all over the planet. You have me mistaken with someone else. > keep in mind that there is a lot of people out there > which do not exactly understand what a keyboard is. You're not wrong. I'm having that very argument with some upstart developers in my office. They have pushed a .NET GUI application into production, which is used by highly skilled data-entry keyboard operators. There is complete chaos, and a lot of very upset operators. productivity went down from 100 forms filled in per day to an average of 12 per day per operator. > But the majority of people also believes to be a computer guru, and if > you say "I think this is a mistake" they will reply "it's you who is > wrong, because things have always been done this way". I'll agree with you if you can come up with a better way of deciding when to close the window. Mind reading, perhaps? Ok, it would be best not to close the menu window on a default keystroke. > Being used to delphi, the first time I've seen the VB menu editor I > laughed: it was crap compared to delphi's one. How do you think I felt when I saw it, being a COBOL and FORTRAN programmer from the 1970's? :) > When I discovered gambas, > I saw the same menu editor. But I didn't laugh anymore; there are many > things I would love to change but, on the other hand, gambas has an > unbeated productivity in the linux desktop. What you are saying is right > - everyone would benefit from this change, but not everyone understands it. Gambas is excellent. It takes some getting used to and the documentation really needs a lot of work. When I've finally got my project beyond the "proof of concept" stage I will be donating my time to fixing it. From nospam.nospam.nospam at ...626... Sat Nov 28 10:44:23 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 20:44:23 +1100 Subject: [Gambas-user] Null Object In-Reply-To: References: <200911281008.45585.gambas@...1...> Message-ID: 2009/11/28 Kadaitcha Man : > Thanks, Beno?t. I need a little more help. I can see rev #2445 on > sourceforge but how do I get it? I may or may not have figured it out. cd /usr/src/gambas-something svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 ./reconf-all If you don't hear from me within 24hrs I probably creamed my linux. From nospam.nospam.nospam at ...626... Sat Nov 28 11:23:35 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 21:23:35 +1100 Subject: [Gambas-user] Null Object In-Reply-To: References: <200911281008.45585.gambas@...1...> Message-ID: 2009/11/28 Kadaitcha Man : > 2009/11/28 Kadaitcha Man : > >> Thanks, Beno?t. I need a little more help. I can see rev #2445 on >> sourceforge but how do I get it? > > I may or may not have figured it out. > > cd /usr/src/gambas-something > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 > ./reconf-all > > If you don't hear from me within 24hrs I probably creamed my linux. Ok, I did that and it didn't work. Can you help me get #2445 downloaded, installend and running please? From Karl.Reinl at ...9... Sat Nov 28 11:26:30 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 28 Nov 2009 11:26:30 +0100 Subject: [Gambas-user] Null Object In-Reply-To: References: <200911281008.45585.gambas@...1...> Message-ID: <1259403990.6412.8.camel@...40...> Am Samstag, den 28.11.2009, 20:44 +1100 schrieb Kadaitcha Man: > I probably creamed my linux Salut, sent you 2 script (make them executable) copy then to the dir you will work. and call ./update20 ( edit {TARGET} first ) svnMake is copied every time you run ./update20 into {TARGET} so it takes very change you make (and you can clean up by rm {TARGET}) The script is writing every time a log The scripts work for ubuntu with sudo but please before installing the svn version, remove the existing gambas2 version. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: update20 Type: application/x-shellscript Size: 417 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: svnMake Type: application/x-shellscript Size: 1018 bytes Desc: not available URL: From nospam.nospam.nospam at ...626... Sat Nov 28 11:33:05 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 21:33:05 +1100 Subject: [Gambas-user] Null Object In-Reply-To: <1259403990.6412.8.camel@...40...> References: <200911281008.45585.gambas@...1...> <1259403990.6412.8.camel@...40...> Message-ID: 2009/11/28 Charlie Reinl : > sent you 2 script (make them executable) Brilliant, thank you. I'll look at those shortly because... > but please before installing the svn version, remove the existing > gambas2 version. Too late :) I think I neglected to cd 2.0 before compiling. We'll see. From doriano.blengino at ...1909... Sat Nov 28 12:03:15 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 28 Nov 2009 12:03:15 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <200911281018.41972.gambas@...1...> References: <200911220909.59805.rterry@...1946...> <4B10E91F.4030209@...1909...> <200911281018.41972.gambas@...1...> Message-ID: <4B110373.8090600@...1909...> Beno?t Minisini ha scritto: >> Kadaitcha Man ha scritto: >> >>> 2009/11/28 Jussi Lahtinen : >>> >>>> There are many GUIs where you must validate your input with enter. >>>> Example, if you send message with pidgin. >>>> >>> Enter means, "I am finished. It's your turn to do something, mister >>> pooter." Tab means, "I am not finished. It's still my turn and I'm still >>> doing stuff." Escape means, "I am finished, and you can throw all my work >>> out, mister pooter." >>> >>> Based on that, can you see why pidgin sends text when you press enter? >>> And can you now understand why windows with default buttons tend to >>> close when you press enter? >>> >>> ------------------------------------------------------------------------- >>> ----- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>> 30-Day trial. Simplify your report design, integration and deployment - >>> and focus on what you do best, core application coding. Discover what's >>> new with Crystal Reports now. http://p.sf.net/sfu/bobj-july >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> Dear Kadaitcha, keep in mind that there is a lot of people out there >> which do not exactly understand what a keyboard is. Typically, when a >> message box with an OK button pops up, they leave up the right hand from >> the keyboard to grab the mouse and click the OK button. In this >> philosophy, you should not wonder when you see applications you can't >> use without a mouse, because the majority of people don't even notice. >> But the majority of people also believes to be a computer guru, and if >> you say "I think this is a mistake" they will reply "it's you who is >> wrong, because things have always been done this way". >> >> Being used to delphi, the first time I've seen the VB menu editor I >> laughed: it was crap compared to delphi's one. When I discovered gambas, >> I saw the same menu editor. But I didn't laugh anymore; there are many >> things I would love to change but, on the other hand, gambas has an >> unbeated productivity in the linux desktop. What you are saying is right >> - everyone would benefit from this change, but not everyone understands it. >> >> Salutations, >> >> > > Yes, the IDE menu editor was copied from the VB one. But hey, this is some > code that comes from Gambas 1, done even before the TreeView control, with > just some little changes in it. > > I have never used Delphi, so I have no idea of how its menu editor looks like. > My intention was not to blame you - my mail was oscillating between criticizing some kind of people and award gambas of its merits. Back to the question; when I use the gambas menu editor I find it a little annoying: if the Enter key would confirm the current item instead of closing the form, it would be nice. I say it now because someone else did it before. In addition I think that, anyway, the gambas menu editor performs what it should perform: it *does* edit menus. It could be better, but probably there are other things more important just now (who knows... QT4?). The Delphi's way to edit menus is simply as follows: an empty form opens, which shows a menu bar (the one you are editing) exactly as you would see it in the real application - the only difference is that one of the main items, in the bar, is always "opened" (dropped down). Every item is managed like any other visual controls - you edit its properties in the property editor. You can drag and drop items around, and a double click opens the code editor the same way as any other event. I think that they had to rebuild "by hand" the whole menu management, because windows (tm) does not support drag and drop, non-transient menu pages, and so on. The same as GTK and perhaps QT, I think. I don't want to say that this is the best possible way, I only say that it seems better than the gambas current one. Just these days (or these months, should I say?) I am trying to write a GTK IDE for freepascal. Given that, I try to never miss a chance to see what others do in similar situations. I downloaded and tried many of the IDEs and programmer's editors I am aware of. Just to see and learn (or steal ideas...). Try to take a look at delphi: you will discover that in many things gambas is well designed (strange, if it was inspired by VB!) and will perform well; but may also happen that you get new ideas and, if not, you will be entitled to say "I know - but this is not good". 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 Nov 28 12:44:29 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 28 Nov 2009 12:44:29 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <4B110373.8090600@...1909...> References: <200911220909.59805.rterry@...1946...> <4B10E91F.4030209@...1909...> <200911281018.41972.gambas@...1...> <4B110373.8090600@...1909...> Message-ID: <6324a42a0911280344k1bba0656y58398177a37bc689@...627...> pour une explivation des menu delphi http://www.jmdoudoux.fr/delphi/menu/index.htm 2009/11/28 Doriano Blengino : > Beno?t Minisini ha scritto: >>> Kadaitcha Man ha scritto: >>> >>>> 2009/11/28 Jussi Lahtinen : >>>> >>>>> There are many GUIs where you must validate your input with enter. >>>>> Example, if you send message with pidgin. >>>>> >>>> Enter means, "I am finished. It's your turn to do something, mister >>>> pooter." Tab means, "I am not finished. It's still my turn and I'm still >>>> doing stuff." Escape means, "I am finished, and you can throw all my work >>>> out, mister pooter." >>>> >>>> Based on that, can you see why pidgin sends text when you press enter? >>>> And can you now understand why windows with default buttons tend to >>>> close when you press enter? >>>> >>>> ------------------------------------------------------------------------- >>>> ----- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >>>> 30-Day trial. Simplify your report design, integration and deployment - >>>> and focus on what you do best, core application coding. Discover what's >>>> new with Crystal Reports now. ?http://p.sf.net/sfu/bobj-july >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> Dear Kadaitcha, keep in mind that there is a lot of people out there >>> which do not exactly understand what a keyboard is. Typically, when a >>> message box with an OK button pops up, they leave up the right hand from >>> the keyboard to grab the mouse and click the OK button. In this >>> philosophy, you should not wonder when you see applications you can't >>> use without a mouse, because the majority of people don't even notice. >>> But the majority of people also believes to be a computer guru, and if >>> you say "I think this is a mistake" they will reply "it's you who is >>> wrong, because things have always been done this way". >>> >>> Being used to delphi, the first time I've seen the VB menu editor I >>> laughed: it was crap compared to delphi's one. When I discovered gambas, >>> I saw the same menu editor. But I didn't laugh anymore; there are many >>> things I would love to change but, on the other hand, gambas has an >>> unbeated productivity in the linux desktop. What you are saying is right >>> - everyone would benefit from this change, but not everyone understands it. >>> >>> Salutations, >>> >>> >> >> Yes, the IDE menu editor was copied from the VB one. But hey, this is some >> code that comes from Gambas 1, done even before the TreeView control, with >> just some little changes in it. >> >> I have never used Delphi, so I have no idea of how its menu editor looks like. >> > My intention was not to blame you - my mail was oscillating between > criticizing some kind of people and award gambas of its merits. > > Back to the question; when I use the gambas menu editor I find it a > little annoying: if the Enter key would confirm the current item instead > of closing the form, it would be nice. I say it now because someone else > did it before. In addition I think that, anyway, the gambas menu editor > performs what it should perform: it *does* edit menus. It could be > better, but probably there are other things more important just now (who > knows... QT4?). > > The Delphi's way to edit menus is simply as follows: an empty form > opens, which shows a menu bar (the one you are editing) exactly as you > would see it in the real application - the only difference is that one > of the main items, in the bar, is always "opened" (dropped down). Every > item is managed like any other visual controls - you edit its properties > in the property editor. You can drag and drop items around, and a double > click opens the code editor the same way as any other event. I think > that they had to rebuild "by hand" the whole menu management, because > windows (tm) does not support drag and drop, non-transient menu pages, > and so on. The same as GTK and perhaps QT, I think. > I don't want to say that this is the best possible way, I only say that > it seems better than the gambas current one. > > Just these days (or these months, should I say?) I am trying to write a > GTK IDE for freepascal. Given that, I try to never miss a chance to see > what others do in similar situations. I downloaded and tried many of the > IDEs and programmer's editors I am aware of. Just to see and learn (or > steal ideas...). Try to take a look at delphi: you will discover that in > many things gambas is well designed (strange, if it was inspired by VB!) > and will perform well; but may also happen that you get new ideas and, > if not, you will be entitled to say "I know - but this is not good". > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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 Nov 28 13:12:37 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sat, 28 Nov 2009 23:12:37 +1100 Subject: [Gambas-user] Null Object In-Reply-To: References: <200911281008.45585.gambas@...1...> <1259403990.6412.8.camel@...40...> Message-ID: 2009/11/28 Kadaitcha Man : > 2009/11/28 Charlie Reinl : > >> sent you 2 script (make them executable) I'm fairly certain I got it right without the scripts because gambas came up as 2.18. Nevertheless I will uninstall gambas and try your scripts. I got the same error in the version that said it was 2.18. I assume Benoit forked from 2.18. From kb2scs at ...2326... Sat Nov 28 14:11:28 2009 From: kb2scs at ...2326... (John) Date: Sat, 28 Nov 2009 08:11:28 -0500 Subject: [Gambas-user] FileChooser1 In-Reply-To: <200911281009.36871.gambas@...1...> References: <1259352772.1814.12.camel@...2329...> <200911281009.36871.gambas@...1...> Message-ID: <1259413888.1716.7.camel@...2329...> Hi Benoit Please find attached the following file Vbtogambas.tar.gz The version of Gambas 2.13 The version of operating system Ubuntu 9.10 Hope this is enough information for you. On Sat, 2009-11-28 at 10:09 +0100, Beno?t Minisini wrote: > > Hi All > > I have on the main form a Wizard1 control and in the first > > step of that Wizard1 control I have a Filechooser1 control. > > Here is the code > > > > ' Gambas class file > > PUBLIC Spath AS String > > PUBLIC SUB _new() > > > > END > > > > PUBLIC SUB Form_Open() > > > > END > > PUBLIC SUB Wizard1_Cancel() > > > > ME.Close > > > > END > > PUBLIC SUB Wizard1_Change() > > SELECT CASE Wizard1.Index > > CASE 1 > > Spath = FileChooser1.SelectedPath > > DEBUG Spath > > END SELECT > > END > > Here is what I do when I run the program. > > 1) choose a file using the Filechooser1 control. > > 2) click on the next button on the Wizard1 control. > > > > When I do the above the console window shows the following. > > VbtogambasFrm.Wizard1_Change.19: > > > > The variable Spath contains a Null. > > What am I doing wrong? > > > > Can you provide a full project that shows your problem? > > Thanks in advance. > -- Let us hope we never witness the "Silence Of The Hams" 73 DE John KB2SCS Packet: KB2SCS at ...2333...#NLI.NY.USA.NOAM E-Mail: kb2scs at ...2328... Web Page: http://www.qsl.net/kb2scs -------------- next part -------------- A non-text attachment was scrubbed... Name: Vbtogambas.tar.gz Type: application/x-compressed-tar Size: 581 bytes Desc: not available URL: From o.s.p at ...69... Sat Nov 28 14:09:06 2009 From: o.s.p at ...69... (o.s.p) Date: Sat, 28 Nov 2009 13:09:06 +0000 Subject: [Gambas-user] libtool problem Message-ID: <4B1120F2.6050502@...69...> hallo! frugalware (current) here with libtool 2.2.6b when in make install step i have this error: ..... libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from libtool 2.2.6b. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again. make[2]: *** [gbc3] Error 63 make[2]: Leaving directory `/home/god/Desktop/src/g/trunk/main/gbc' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/god/Desktop/src/g/trunk/main' make: *** [install-recursive] Error 1 thanks From jussi.lahtinen at ...626... Sat Nov 28 14:57:10 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 28 Nov 2009 15:57:10 +0200 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: References: <200911220909.59805.rterry@...1946...> <200911272239.48944.gambas@...1...> <384d3900911271349t31bc1a5fk1e5e27b62fce6980@...627...> Message-ID: <384d3900911280557q69812540j4919bc07816fdbec@...627...> Yes, it was clear to me. Like I said, it is more like habit. There is problem with scope, you can think "I am finished with this menu entry" and press enter. But of course you should think "I am not finished with this whole menu, just one entry" and press tab. Same thing with pidgin; "I am finnished with this sentence" and press enter, instead of "I am finnished with this message" and press enter (some might want multiple lines to one's message). Jussi On Sat, Nov 28, 2009 at 05:08, Kadaitcha Man wrote: > 2009/11/28 Jussi Lahtinen : > >> There are many GUIs where you must validate your input with enter. >> Example, if you send message with pidgin. > > Enter means, "I am finished. It's your turn to do something, mister pooter." > Tab means, "I am not finished. It's still my turn and I'm still doing stuff." > Escape means, "I am finished, and you can throw all my work out, mister pooter." > > Based on that, can you see why pidgin sends text when you press enter? > And can you now understand why windows with default buttons tend to > close when you press enter? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Sat Nov 28 14:59:58 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 28 Nov 2009 15:59:58 +0200 Subject: [Gambas-user] libtool problem In-Reply-To: <4B1120F2.6050502@...69...> References: <4B1120F2.6050502@...69...> Message-ID: <384d3900911280559p39a2a31le664afed436c1ba@...627...> Have you tried to run aclocal? Jussi On Sat, Nov 28, 2009 at 15:09, o.s.p wrote: > hallo! > frugalware (current) here with libtool 2.2.6b > when in make install step i have this error: > ..... > libtool: Version mismatch error. ?This is libtool 2.2.6, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > libtool: and run autoconf again. > make[2]: *** [gbc3] Error 63 > make[2]: Leaving directory `/home/god/Desktop/src/g/trunk/main/gbc' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/god/Desktop/src/g/trunk/main' > make: *** [install-recursive] Error 1 > > > thanks > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From Karl.Reinl at ...9... Sat Nov 28 15:04:09 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 28 Nov 2009 15:04:09 +0100 Subject: [Gambas-user] FileChooser1 In-Reply-To: <1259413888.1716.7.camel@...2329...> References: <1259352772.1814.12.camel@...2329...> <200911281009.36871.gambas@...1...> <1259413888.1716.7.camel@...2329...> Message-ID: <1259417050.6421.18.camel@...40...> Am Samstag, den 28.11.2009, 08:11 -0500 schrieb John: > Hi Benoit > Please find attached the following file Vbtogambas.tar.gz > The version of Gambas 2.13 > The version of operating system Ubuntu 9.10 > Hope this is enough information for you. > > On Sat, 2009-11-28 at 10:09 +0100, Beno?t Minisini wrote: > > > Hi All > > > I have on the main form a Wizard1 control and in the first > > > step of that Wizard1 control I have a Filechooser1 control. > > > Here is the code > > > > > > ' Gambas class file > > > PUBLIC Spath AS String > > > PUBLIC SUB _new() > > > > > > END > > > > > > PUBLIC SUB Form_Open() > > > > > > END > > > PUBLIC SUB Wizard1_Cancel() > > > > > > ME.Close > > > > > > END > > > PUBLIC SUB Wizard1_Change() > > > SELECT CASE Wizard1.Index > > > CASE 1 > > > Spath = FileChooser1.SelectedPath > > > DEBUG Spath > > > END SELECT > > > END > > > Here is what I do when I run the program. > > > 1) choose a file using the Filechooser1 control. > > > 2) click on the next button on the Wizard1 control. > > > > > > When I do the above the console window shows the following. > > > VbtogambasFrm.Wizard1_Change.19: > > > > > > The variable Spath contains a Null. > > > What am I doing wrong? > > > > > > > Can you provide a full project that shows your problem? > > > > Thanks in advance. > > Salut John, me again. Just 2 hints. 1.) it is better do provide a full project. What means, making a "source archive" from the menu or Ctrl+Alt+A, so it is easier and faster for testing, and so it will be tested quicker. To test your file, I had to create a new project, add your files as form into that project and sign it as starter. 2.) do you know the Debug Windows? they raise when you dblClick on an Object/Element with more then 1 property or item. (if there is only one the value is shown) Inside that Window you have the same functionality. Look at the 2 screen attached. Wish you a nice weekend. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto-FileChooser1 (FileChooser).png Type: image/png Size: 29517 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto-FileChooser1.SelectedPaths (String[]).png Type: image/png Size: 12183 bytes Desc: not available URL: From Karl.Reinl at ...9... Sat Nov 28 14:44:24 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Sat, 28 Nov 2009 14:44:24 +0100 Subject: [Gambas-user] FileChooser1 In-Reply-To: <1259413888.1716.7.camel@...2329...> References: <1259352772.1814.12.camel@...2329...> <200911281009.36871.gambas@...1...> <1259413888.1716.7.camel@...2329...> Message-ID: <1259415864.6421.2.camel@...40...> Am Samstag, den 28.11.2009, 08:11 -0500 schrieb John: > Hi Benoit > Please find attached the following file Vbtogambas.tar.gz > The version of Gambas 2.13 > The version of operating system Ubuntu 9.10 > Hope this is enough information for you. > > On Sat, 2009-11-28 at 10:09 +0100, Beno?t Minisini wrote: > > > Hi All > > > I have on the main form a Wizard1 control and in the first > > > step of that Wizard1 control I have a Filechooser1 control. > > > Here is the code > > > > > > ' Gambas class file > > > PUBLIC Spath AS String > > > PUBLIC SUB _new() > > > > > > END > > > > > > PUBLIC SUB Form_Open() > > > > > > END > > > PUBLIC SUB Wizard1_Cancel() > > > > > > ME.Close > > > > > > END > > > PUBLIC SUB Wizard1_Change() > > > SELECT CASE Wizard1.Index > > > CASE 1 > > > Spath = FileChooser1.SelectedPath > > > DEBUG Spath > > > END SELECT > > > END > > > Here is what I do when I run the program. > > > 1) choose a file using the Filechooser1 control. > > > 2) click on the next button on the Wizard1 control. > > > > > > When I do the above the console window shows the following. > > > VbtogambasFrm.Wizard1_Change.19: > > > > > > The variable Spath contains a Null. > > > What am I doing wrong? > > > > > > > Can you provide a full project that shows your problem? > > > > Thanks in advance. > > Salut John, if you add an s you have a String array, in which you find what you looking for. FileChooser1.SelectedPaths -- Amicalement Charlie From lordheavym at ...626... Sat Nov 28 15:14:51 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Sat, 28 Nov 2009 15:14:51 +0100 Subject: [Gambas-user] libtool problem In-Reply-To: <4B1120F2.6050502@...69...> References: <4B1120F2.6050502@...69...> Message-ID: <200911281514.52033.lordheavy@...1...> Le samedi 28 novembre 2009 14:09:06, o.s.p a ?crit : > hallo! > frugalware (current) here with libtool 2.2.6b > when in make install step i have this error: > ..... > libtool: Version mismatch error. This is libtool 2.2.6, but the > libtool: definition of this LT_INIT comes from libtool 2.2.6b. > libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 > libtool: and run autoconf again. > make[2]: *** [gbc3] Error 63 > make[2]: Leaving directory `/home/god/Desktop/src/g/trunk/main/gbc' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/god/Desktop/src/g/trunk/main' > make: *** [install-recursive] Error 1 > > > thanks > > --------------------------------------------------------------------------- > --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - > and focus on what you do best, core application coding. Discover what's > new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Put this file in the root of gambas dir and run ./reconf-all It's only a quick workaround but it's working. ++ -------------- next part -------------- A non-text attachment was scrubbed... Name: reconf Type: application/x-shellscript Size: 95 bytes Desc: not available URL: From nando_f at ...951... Sat Nov 28 19:19:17 2009 From: nando_f at ...951... (nando) Date: Sat, 28 Nov 2009 13:19:17 -0500 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <6324a42a0911280032w4c69872sa453a8009ff543c3@...627...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> <6324a42a0911280032w4c69872sa453a8009ff543c3@...627...> Message-ID: <20091128180820.M23857@...951...> Radio Buttons only make sense when you use more than ONE. Placing them on a PANEL container makes them a 'family' and are grouped together so that only one can be selected TRUE. If you don't want to see the panel border, you can have no border. If you use only ONE Radio Button, it will always be TRUE because there are no other radio buttons to select true thus making the first false. If you want to have a ON/OFF type of Radio Button, then use the CHECKBOX or TOGGLE Button. The Radio Button is not a correct use for such a case. -Fernando ---------- Original Message ----------- From: Fabien Bodard To: mailing list for gambas users Sent: Sat, 28 Nov 2009 09:32:42 +0100 Subject: Re: [Gambas-user] How can I create radio (mutually exclusive) menu? > i need to look about that > > 2009/11/28 David Dell : > > OK, but how can I get the standard radio check icon for menus on the > > Linux operating system the program is running (for example in Ubuntu > > the one used in View menu of the Calculator program, etc.)? Is there a > > way to get if from the system using Gambas instead of including it in > > my program? > > > > Thank you, > > David > > > >> it simply don't exist... you need to use the check mark and then > >> compute the exclude by you self... it's not so complicated to do. > >> > >> 2009/11/27 David Dell : > >>> I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical > >>> application and I'm trying to create radio (mutually exclusive) menu > >>> items, with a radio icon instead of a check mark when selected. I > >>> can't find any property in the Menu documentation that does that. Can > >>> you help? > >>> > >>> Thank you, > >>> David > >> > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Sat Nov 28 20:03:14 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 Nov 2009 20:03:14 +0100 Subject: [Gambas-user] Null Object In-Reply-To: References: Message-ID: <200911282003.14657.gambas@...1...> > 2009/11/28 Kadaitcha Man : > > 2009/11/28 Charlie Reinl : > >> sent you 2 script (make them executable) > > I'm fairly certain I got it right without the scripts because gambas > came up as 2.18. Nevertheless I will uninstall gambas and try your > scripts. I got the same error in the version that said it was 2.18. I > assume Benoit forked from 2.18. > Did you do exactly something like that? $ mkdir gambas $ cd gambas $ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0 $ cd 2.0 $ ./reconf && ./configure -C # There you must check that all components will be compiled. The configure # script prints a message after having done all its stuff. # For that, you must install all needed development packages, which depends # on your distribution. Look at "Compilation & Installation..." in the wiki # for more informations. # Note: only gb.qte is useless. $ make $ sudo make install # on Ubuntu $ su -c "make install" # on Mandriva ... Otherwise, you should learn a bit what is subversion and what configure scripts are, if you don't know yet. Regards, -- Beno?t Minisini From gambas at ...1... Sat Nov 28 20:10:45 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sat, 28 Nov 2009 20:10:45 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <200911220909.59805.rterry@...1946...> References: <200911220909.59805.rterry@...1946...> Message-ID: <200911282010.45259.gambas@...1...> > Hi benoit, > > Just a comment re menu-editor which when doing large menu's I find > annoying. > > The default action for the return/enter key in the textboxes is to trigger > the OK button in the menu editor, so if one hits enter and not tab to get > to the next box > hasty exit from the menu editor. > > Not that important but maybe could be put in the todo basket. > > Regards > > Richard > Revision #2446: The Gambas 2 IDE menu editor OK and Cancel buttons are not triggered anymore by the OK and CANCEL keys! The same thing for Gambas 3 will follow in a next revision. A big thread for just changing the Default property of a button from True to False! -- Beno?t Minisini From doriano.blengino at ...1909... Sat Nov 28 20:49:26 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sat, 28 Nov 2009 20:49:26 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <200911282010.45259.gambas@...1...> References: <200911220909.59805.rterry@...1946...> <200911282010.45259.gambas@...1...> Message-ID: <4B117EC6.20902@...1909...> Beno?t Minisini ha scritto: >> Hi benoit, >> >> Just a comment re menu-editor which when doing large menu's I find >> annoying. >> >> The default action for the return/enter key in the textboxes is to trigger >> the OK button in the menu editor, so if one hits enter and not tab to get >> to the next box > hasty exit from the menu editor. >> >> Not that important but maybe could be put in the todo basket. >> >> Regards >> >> Richard >> >> > > Revision #2446: The Gambas 2 IDE menu editor OK and Cancel buttons are not > triggered anymore by the OK and CANCEL keys! > > The same thing for Gambas 3 will follow in a next revision. > Thank you. > A big thread for just changing the Default property of a button from True to > False! > > You should be happy of this! :-) But it was interesting to hear different opinions... Cheers, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From ubuntu at ...2332... Sat Nov 28 22:01:57 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Sat, 28 Nov 2009 16:01:57 -0500 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <200911282010.45259.gambas@...1...> References: <200911220909.59805.rterry@...1946...> <200911282010.45259.gambas@...1...> Message-ID: <4B118FC5.1070407@...2332...> ...and while you're on the subject of Gambas3 revisions: How often is it revised? I haven't updated since I first installed it. Beno?t Minisini wrote: > The same thing for Gambas 3 will follow in a next revision. From nospam.nospam.nospam at ...626... Sat Nov 28 22:40:17 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 08:40:17 +1100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <200911282010.45259.gambas@...1...> References: <200911220909.59805.rterry@...1946...> <200911282010.45259.gambas@...1...> Message-ID: 2009/11/29 Beno?t Minisini : > A big thread for just changing the Default property of a button from True to > False! Sometimes you take a little more convincing than usual :) From nospam.nospam.nospam at ...626... Sun Nov 29 00:07:23 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 10:07:23 +1100 Subject: [Gambas-user] Null Object In-Reply-To: <200911282003.14657.gambas@...1...> References: <200911282003.14657.gambas@...1...> Message-ID: 2009/11/29 Beno?t Minisini : Le bug est mort. Vive le bug! > Did you do exactly something like that? I completely removed the original gambas and all the older source for 2.17 then followed the standard install instructions. It is now working fine; thank you very much for your time on this. > Otherwise, you should learn a bit what is subversion and what configure > scripts are, if you don't know yet. I'm getting there. Charlie kindly sent me his scripts so I'll look at modifying those for future use. Hey, Charlie, thank you too. From nospam.nospam.nospam at ...626... Sun Nov 29 01:12:22 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 11:12:22 +1100 Subject: [Gambas-user] Popup Menu Behaviour Issue Message-ID: Popup menus don't behave as expected. Gambas 2.18 on Ubuntu 9.10. If the right-button is let go then the menu immediately disappears. If I want to select an item I have to keep my right button pressed, which is a completely unnatural movement. The menu should stay open until I select an item or click outside of its border. Any chance of getting this rectified? I've tested it on four different controls that support the Menu event and it's the same in all of them. From gambas at ...1... Sun Nov 29 01:46:16 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 29 Nov 2009 01:46:16 +0100 Subject: [Gambas-user] Popup Menu Behaviour Issue In-Reply-To: References: Message-ID: <200911290146.16472.gambas@...1...> > Popup menus don't behave as expected. Gambas 2.18 on Ubuntu 9.10. If > the right-button is let go then the menu immediately disappears. > > If I want to select an item I have to keep my right button pressed, > which is a completely unnatural movement. The menu should stay open > until I select an item or click outside of its border. > > Any chance of getting this rectified? > > I've tested it on four different controls that support the Menu event > and it's the same in all of them. > Maybe it is a decision from GTK+? Try to compare with Qt first. -- Beno?t Minisini From nospam.nospam.nospam at ...626... Sun Nov 29 01:55:22 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 11:55:22 +1100 Subject: [Gambas-user] Popup Menu Behaviour Issue In-Reply-To: <200911290146.16472.gambas@...1...> References: <200911290146.16472.gambas@...1...> Message-ID: 2009/11/29 Beno?t Minisini : >> Popup menus don't behave as expected. Gambas 2.18 on Ubuntu 9.10. If >> the right-button is let go then the menu immediately disappears. > Maybe it is a decision from GTK+? Try to compare with Qt first. Yes, it seems to be GTK. I recreated exactly the same project in bot Qt and GTK+; the Qt project worked as expected but the GTK+ project didn't. Can anything be done about that? From nospam.nospam.nospam at ...626... Sun Nov 29 02:31:35 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 12:31:35 +1100 Subject: [Gambas-user] Creatable Menu Message-ID: Menus are creatable according to http://gambasdoc.org/help/comp/gb.qt/menu However I cannot see any methods anywhere that will allow me to add a menu item in code. For what I need to do, pre-defining the menus using the menu editor then hiding or showing the items is not practical. Have I missed something? From nospam.nospam.nospam at ...626... Sun Nov 29 02:35:50 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 12:35:50 +1100 Subject: [Gambas-user] Creatable Menu In-Reply-To: References: Message-ID: 2009/11/29 Kadaitcha Man : > Menus are creatable according to http://gambasdoc.org/help/comp/gb.qt/menu > > However I cannot see any methods anywhere that will allow me to add a > menu item in code. For what I need to do, pre-defining the menus using > the menu editor then hiding or showing the items is not practical. > > Have I missed something? Yes, you missed something. "Parent must be a Window or another menu." IM hMenu AS Menu hMenu = NEW Menu ( Parent AS Object [ , Hidden AS Boolean ] ) [ AS "event name" ] From leandrosansilva at ...626... Sun Nov 29 03:09:45 2009 From: leandrosansilva at ...626... (Leandro Santiago) Date: Sun, 29 Nov 2009 00:09:45 -0200 Subject: [Gambas-user] Gambas2 on (my) ARM processor: It Works! Message-ID: <4B11D7E9.2070307@...626...> I'm sorry by the mail subject, but I waited more than 20 hours by gambas2 compilation on my ARM system emulated in a ubuntu box. I tested a small gtk+ application in ArmedSlackware-current and it works fine (it has just a combobox and a simple button, but works). I couldn't test the IDE, because I don't have the qt3 libraries on emulated system. But, if gtk+ works, why not qt? :-) When I install gb.qt component I will send more information. I will send more feedbacks later, and now I will compile gambas3 and see if it works. But now I need go sleep (it's night in Brazil). Sorry by my bad English. Ps: Gambas2 SVN rev. 2441, ArmedSlackware, kernel 2.6.31, glibc-2.9, gcc-4.3.3, gtk+-2.14, libtool-1.5, on Versatile/PB emulated Processor From rterry at ...1946... Sun Nov 29 03:36:47 2009 From: rterry at ...1946... (richard terry) Date: Sun, 29 Nov 2009 13:36:47 +1100 Subject: [Gambas-user] Creatable Menu In-Reply-To: References: Message-ID: <200911291336.47429.rterry@...1946...> On Sunday 29 November 2009 12:31:35 Kadaitcha Man wrote: > Menus are creatable according to http://gambasdoc.org/help/comp/gb.qt/menu > > However I cannot see any methods anywhere that will allow me to add a > menu item in code. For what I need to do, pre-defining the menus using > the menu editor then hiding or showing the items is not practical. > > Have I missed something? > > --------------------------------------------------------------------------- > --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - > and focus on what you do best, core application coding. Discover what's > new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Perhaps not so strangely I need religions in a medical program (for some reason my local hospital needs it on their ante-natal sheet, so here is some code for you: This data is keep in two tables > 1 view in the backend. This code gives the picture shown. Public Sub Religions_Menu_Create() '------------------------------------------------------ 'There is a 1 to many relationship between the religion 'and subreligion but subreligion may be null 'This creates a menu of religions, with sub-religions 'as submenus '------------------------------------------------------ Dim mnu As menu Dim member As Collection dim Religions as collection Dim parent_menu As menu Dim fk_last_religion As Integer 'fetch view from backend Religions= modCommonDBI.Religions_Get() For Each member In Religions If fk_last_religion <> member!fk_religion Then fk_last_religion = member!fk_religion mnu = New Menu(mnuReligions) As "mnuReligions" parent_menu = mnu mnu.name = member!religion mnu.caption = member!religion mnu.tag = member!pk_view End If If Not IsNull(member!fk_lu_sub_religion) Then '----------------------------- 'Add sub-religions to the menu '----------------------------- mnu = New Menu(parent_menu) As "mnuReligions" mnu.name = member!sub_religion mnu.caption = member!sub_religion mnu.tag = member!pk_view End If Next End -------------- next part -------------- A non-text attachment was scrubbed... Name: religion_menu.png Type: image/png Size: 24725 bytes Desc: not available URL: From nospam.nospam.nospam at ...626... Sun Nov 29 03:46:12 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 13:46:12 +1100 Subject: [Gambas-user] Creatable Menu In-Reply-To: <200911291336.47429.rterry@...1946...> References: <200911291336.47429.rterry@...1946...> Message-ID: 2009/11/29 richard terry : > Perhaps not so strangely I need religions in a medical program No. Not strange. One would want to make the mistake of bringing in a Roman Catholic priest to administer the last rights to a Hindu or Moslem :) > This code gives the picture shown. Thanks for that. Appreciated. From ubuntu at ...2332... Sun Nov 29 06:05:10 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Sun, 29 Nov 2009 00:05:10 -0500 Subject: [Gambas-user] Custom Control Message-ID: <4B120106.1030202@...2332...> I've been messing with creating a custom control in Gambas3. I've read the documentation at: http://gambasdoc.org/help/dev/gambas I've looked at some of the source code for FileView and other components. I've even made my first one but it needs improving. Is there any other documentation someone could point me toward? I'd like to start with customizing a PictureBox control - basically just add some custom properties/methods. From what I can tell, the current control is written in C and I'm not very adept at that language. Any tips on the best way to go about it? From nospam.nospam.nospam at ...626... Sun Nov 29 07:28:53 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Sun, 29 Nov 2009 17:28:53 +1100 Subject: [Gambas-user] Custom Control In-Reply-To: <4B120106.1030202@...2332...> References: <4B120106.1030202@...2332...> Message-ID: 2009/11/29 D. L. Fox : > I'd like to start with customizing a PictureBox control - basically just > add some custom properties/methods. From what I can tell, the current > control is written in C and I'm not very adept at that language. > > Any tips on the best way to go about it? You don't need to know C. Simply inherit the control in Gambas code then wrap your methods and properties around it. From gambas.fr at ...626... Sun Nov 29 16:46:55 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 29 Nov 2009 16:46:55 +0100 Subject: [Gambas-user] Menu editor - not a bug but annoying In-Reply-To: <4B118FC5.1070407@...2332...> References: <200911220909.59805.rterry@...1946...> <200911282010.45259.gambas@...1...> <4B118FC5.1070407@...2332...> Message-ID: <6324a42a0911290746j35ee16cfxbd4af71129522ba5@...627...> 2009/11/28 D. L. Fox : > ...and while you're on the subject of Gambas3 revisions: How often is it > revised? I haven't updated since I first installed it. near to 3 times or more in a week :) From gambas at ...1... Sun Nov 29 17:23:50 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 29 Nov 2009 17:23:50 +0100 Subject: [Gambas-user] Gambas wiki license Message-ID: <200911291723.50376.gambas@...1...> Hi world, So that Gambas can be registered in the gnu.org free software repository, the license of the documentation must be clearly defined. So I decided to put the entire wiki under the Creative Commons Attribution- ShareAlike (CC-BY-SA) 3.0 license : http://creativecommons.org/licenses/by-sa/3.0/ I don't want to use different licenses for different part of the wiki, as it will be a nightmare to manage. So if some people that have written some pieces of the documentation do not agree, just tell me, and I will remove their contribution. I am not a free license guru, so if you have remarks, advices, and so on, please tell me. Regards, -- Beno?t Minisini From math.eber at ...221... Sun Nov 29 18:09:39 2009 From: math.eber at ...221... (Matti) Date: Sun, 29 Nov 2009 18:09:39 +0100 Subject: [Gambas-user] error in documentation Message-ID: <4B12AAD3.2030302@...221...> I think there is an error in http://gambasdoc.org/help/doc/locale About the charset it says: "All characters that follows the xx_YY string are ignored by Gambas." I had a big problem when I tried to run my prog in English, because with "en_GB" or "en_US" a wrong charset was loaded. One runtime error after the other with filenames that contained non-ASCII characters. After searching and reading a long time, I didn't know what to do and finally just tried the environment variable LANG = "en_GB.UTF-8" - and, voila, now it works wonderful! Gambas doesn't ignore this. Matti From ubuntu at ...2332... Sun Nov 29 19:12:46 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Sun, 29 Nov 2009 13:12:46 -0500 Subject: [Gambas-user] Custom Control In-Reply-To: References: <4B120106.1030202@...2332...> Message-ID: <4B12B99E.9020608@...2332...> Kadaitcha Man wrote: > You don't need to know C. Simply inherit the control in > Gambas code then wrap your methods and properties around it. DOH! I should have thought of that. Thanks! Either I've found a bug, or I'm not doing something right. The doc says: "To provide the icons of your component controls, you must create a /control directory at the root of your project, and put one PNG file for each control icon in it. The name of a control icon must be the class name of the control in lower case with the .png extension." I tried that but it just shows a black question mark in the IDE panel when I load the component. The component itself works as expected. Are there any other requirements needed of the icon? I'm currently using a 32 x 32 PNG file, named in all lowercase the same as the component. I'm running Gambas3 on Ubuntu 9.10. Am I allowed to use *optional* arguments in the _new sub of the component? Or am I not suppose to pass arguments to _new? I know I have to pass the name of the parent container when I use it at runtime. I currently have it working using arguments in the _new sub and passing the parent name at the end of the argument list. However, the last argument I was using is *optional*. If I leave the optional argument empty, the IDE says the parent name is 'unexpected'. If I pass Null as the optional argument just prior to the parent name, naturally it's the wrong data type for the argument. I'm probably missing something obvious again. Go ahead and smack me. From gambas at ...1... Sun Nov 29 19:32:33 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 29 Nov 2009 19:32:33 +0100 Subject: [Gambas-user] Custom Control In-Reply-To: <4B12B99E.9020608@...2332...> References: <4B120106.1030202@...2332...> <4B12B99E.9020608@...2332...> Message-ID: <200911291932.33339.gambas@...1...> > Kadaitcha Man wrote: > > You don't need to know C. Simply inherit the control in > > Gambas code then wrap your methods and properties around it. > > DOH! I should have thought of that. Thanks! > > Either I've found a bug, or I'm not doing something right. The doc says: > > "To provide the icons of your component controls, you must create a > /control directory at the root of your project, and put one PNG file for > each control icon in it. > > The name of a control icon must be the class name of the control in > lower case with the .png extension." > > I tried that but it just shows a black question mark in the IDE panel > when I load the component. The component itself works as expected. Are > there any other requirements needed of the icon? I'm currently using a > 32 x 32 PNG file, named in all lowercase the same as the component. I'm > running Gambas3 on Ubuntu 9.10. > In Gambas 3, the /control directory must be put inside the "Project" section. > Am I allowed to use *optional* arguments in the _new sub of the > component? Or am I not suppose to pass arguments to _new? > Arguments passed to the constructor are consumed by each inherited _new methods in reverse order. If you use optional arguments in inherited constructors, they must be provided too. > I know I have to pass the name of the parent container when I use it at > runtime. I currently have it working using arguments in the _new sub and > passing the parent name at the end of the argument list. However, the > last argument I was using is *optional*. If I leave the optional > argument empty, the IDE says the parent name is 'unexpected'. If I pass > Null as the optional argument just prior to the parent name, naturally > it's the wrong data type for the argument. I'm probably missing > something obvious again. Go ahead and smack me. Please provide the details of what you have done, and maybe I will tell you. Regards, -- Beno?t Minisini From math.eber at ...221... Sun Nov 29 19:26:08 2009 From: math.eber at ...221... (Matti) Date: Sun, 29 Nov 2009 19:26:08 +0100 Subject: [Gambas-user] Get the index of a menu In-Reply-To: <9610272b0911271241u22c1ae8fhe51554584156803a@...627...> References: <9610272b0911271241u22c1ae8fhe51554584156803a@...627...> Message-ID: <4B12BCC0.2090004@...221...> What is the need for the index? A menu has a name. You can react to the click event with PUBLIC SUB Menuname_Click() and do everything with the menu item with the properties Menuname.xxx = ... enable/disable, check, and so on. Matti David Dell schrieb: > How can I get the index of a menu in the collection of children of its > parent? There is no Menu.Index property. > > Thank you, > David From math.eber at ...221... Sun Nov 29 19:10:31 2009 From: math.eber at ...221... (Matti) Date: Sun, 29 Nov 2009 19:10:31 +0100 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> Message-ID: <4B12B917.2070805@...221...> David, why do you want to go the complicated way by all means? I simply use the "checked" property of the menu items (like Fabien told you), and then: PUBLIC SUB mnuSortA_Click() IF mnuSortA.Checked = FALSE THEN mnuSortT.Checked = FALSE mnuSortA.Checked = TRUE ..... It's easy, works fine, looks fine, and the user won't miss radio icons. Matti David Dell schrieb: > OK, but how can I get the standard radio check icon for menus on the > Linux operating system the program is running (for example in Ubuntu > the one used in View menu of the Calculator program, etc.)? Is there a > way to get if from the system using Gambas instead of including it in > my program? > > Thank you, > David > >> it simply don't exist... you need to use the check mark and then >> compute the exclude by you self... it's not so complicated to do. >> >> 2009/11/27 David Dell : >>> I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical >>> application and I'm trying to create radio (mutually exclusive) menu >>> items, with a radio icon instead of a check mark when selected. I >>> can't find any property in the Menu documentation that does that. Can >>> you help? >>> >>> Thank you, >>> David > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Sun Nov 29 21:28:42 2009 From: nando_f at ...951... (nando) Date: Sun, 29 Nov 2009 15:28:42 -0500 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <4B12B917.2070805@...221...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> <4B12B917.2070805@...221...> Message-ID: <20091129202352.M85050@...951...> A radio button is one thing. A Checkbox is another thing. Below, somebody wrote..."OK, but how can I get the standard 'radio check' icon" Someone is confused using Radio from radio button and Check from Checkbox. There is no check for radio... If you place two radio buttons on one panel, they are EXCLUSIVE automatically. No code required. -Fernando ---------- Original Message ----------- From: Matti To: mailing list for gambas users Sent: Sun, 29 Nov 2009 19:10:31 +0100 Subject: Re: [Gambas-user] How can I create radio (mutually exclusive) menu? > David, why do you want to go the complicated way by all means? > > I simply use the "checked" property of the menu items (like Fabien told you), > and then: > > PUBLIC SUB mnuSortA_Click() > IF mnuSortA.Checked = FALSE THEN > mnuSortT.Checked = FALSE > mnuSortA.Checked = TRUE > ..... > > It's easy, works fine, looks fine, and the user won't miss radio icons. > Matti > > David Dell schrieb: > > OK, but how can I get the standard radio check icon for menus on the > > Linux operating system the program is running (for example in Ubuntu > > the one used in View menu of the Calculator program, etc.)? Is there a > > way to get if from the system using Gambas instead of including it in > > my program? > > > > Thank you, > > David > > > >> it simply don't exist... you need to use the check mark and then > >> compute the exclude by you self... it's not so complicated to do. > >> > >> 2009/11/27 David Dell : > >>> I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical > >>> application and I'm trying to create radio (mutually exclusive) menu > >>> items, with a radio icon instead of a check mark when selected. I > >>> can't find any property in the Menu documentation that does that. Can > >>> you help? > >>> > >>> Thank you, > >>> David > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From ubuntu at ...2332... Sun Nov 29 21:35:19 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Sun, 29 Nov 2009 15:35:19 -0500 Subject: [Gambas-user] Custom Control In-Reply-To: <200911291932.33339.gambas@...1...> References: <4B120106.1030202@...2332...> <4B12B99E.9020608@...2332...> <200911291932.33339.gambas@...1...> Message-ID: <4B12DB07.9030005@...2332...> Beno?t Minisini wrote: > In Gambas 3, the /control directory must be put inside the "Project" section. Okay, that worked. I was using the control directory automatically created when I first created the project. Thanks. > Please provide the details of what you have done, and maybe I will tell you. I'm referring to code used when programming the component itself. For example, in the component code: Public Sub _new(lVal1 As Long, lVal2 As Long, Optional lVal3 As Long) If I make the component and try to use it in a project, I have to also pass the parent container name. So, if I use: oVar = New ComponentName(lVal1, lVal2, lVal3, FMain) It works fine. But if I try to leave out the *optional* argument: oVar = New ComponentName(lVal1, lVal2, FMain) I will get "Not enough arguments" from the IDE. If I try: oVar = New ComponentName(lVal1, lVal2, , FMain) I will get "Unexpected Comma" from the IDE. And, of course, if I pass NUll as the optional argument, it's the incorrect data type for the argument. I understand why I'm getting the messages I'm getting. I'm just asking is there any way to use an *optional* argument to the _new sub of a component. This isn't something critical. This is just a personal project I chose to do as an exercise, to get familiar with Gambas. I always do stuff like this whenever I'm learning a new language or (in this case) IDE, etc. From nospam.nospam.nospam at ...626... Sun Nov 29 21:37:13 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 30 Nov 2009 07:37:13 +1100 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <20091128180820.M23857@...951...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> <6324a42a0911280032w4c69872sa453a8009ff543c3@...627...> <20091128180820.M23857@...951...> Message-ID: 2009/11/29 nando : > Radio Buttons only make sense when you use more than ONE. > Placing them on a PANEL container makes them a 'family' and > are grouped together so that only one can be selected TRUE. > If you don't want to see the panel border, you can have no border. > If you use only ONE Radio Button, it will always be TRUE because there > are no other radio buttons to select true thus making the first false. > If you want to have a ON/OFF type of Radio Button, then use the CHECKBOX > or TOGGLE Button. ?The Radio Button is not a correct use for such a case. Take a look at the calculator View menu like he suggested. From nospam.nospam.nospam at ...626... Sun Nov 29 21:41:37 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 30 Nov 2009 07:41:37 +1100 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <20091129202352.M85050@...951...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> <4B12B917.2070805@...221...> <20091129202352.M85050@...951...> Message-ID: 2009/11/30 nando : > Someone is confused It's not the OP. So he misused a word. Did you look at the calculator yet like he suggested? -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot-Calculator - Scientific.png Type: image/png Size: 50367 bytes Desc: not available URL: From gambas at ...1... Sun Nov 29 21:55:15 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 29 Nov 2009 21:55:15 +0100 Subject: [Gambas-user] error in documentation In-Reply-To: <4B12AAD3.2030302@...221...> References: <4B12AAD3.2030302@...221...> Message-ID: <200911292155.15124.gambas@...1...> > I think there is an error in > http://gambasdoc.org/help/doc/locale > > About the charset it says: > "All characters that follows the xx_YY string are ignored by Gambas." > > I had a big problem when I tried to run my prog in English, because with > "en_GB" or "en_US" a wrong charset was loaded. One runtime error after the > other with filenames that contained non-ASCII characters. > > After searching and reading a long time, I didn't know what to do and > finally just tried the environment variable LANG = "en_GB.UTF-8" - and, > voila, now it works wonderful! Gambas doesn't ignore this. > > Matti > To be more precise: all characters that follows the xx_YY string are actually ignored by Gambas, but not by the system library. The system library uses the full $LANG, $LANGUAGE and $LC_* environment variables to decide which language and which charset to use. Gambas uses just the xx_YY part to find the translation file to use. Regards, -- Beno?t Minisini From gambas at ...1... Sun Nov 29 21:59:27 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Sun, 29 Nov 2009 21:59:27 +0100 Subject: [Gambas-user] Custom Control In-Reply-To: <4B12DB07.9030005@...2332...> References: <4B120106.1030202@...2332...> <200911291932.33339.gambas@...1...> <4B12DB07.9030005@...2332...> Message-ID: <200911292159.27526.gambas@...1...> > Beno?t Minisini wrote: > > In Gambas 3, the /control directory must be put inside the "Project" > > section. > > Okay, that worked. I was using the control directory automatically > created when I first created the project. Thanks. > > > Please provide the details of what you have done, and maybe I will tell > > you. > > I'm referring to code used when programming the component itself. > > For example, in the component code: > > Public Sub _new(lVal1 As Long, lVal2 As Long, Optional lVal3 As Long) > > If I make the component and try to use it in a project, I have to also > pass the parent container name. So, if I use: > > oVar = New ComponentName(lVal1, lVal2, lVal3, FMain) > > It works fine. But if I try to leave out the *optional* argument: > > oVar = New ComponentName(lVal1, lVal2, FMain) > > I will get "Not enough arguments" from the IDE. If I try: > > oVar = New ComponentName(lVal1, lVal2, , FMain) > > I will get "Unexpected Comma" from the IDE. And, of course, if I pass > NUll as the optional argument, it's the incorrect data type for the > argument. I understand why I'm getting the messages I'm getting. I'm > just asking is there any way to use an *optional* argument to the _new > sub of a component. > > This isn't something critical. This is just a personal project I chose > to do as an exercise, to get familiar with Gambas. I always do stuff > like this whenever I'm learning a new language or (in this case) IDE, etc. > You get a point there: optional arguments cannot really be used in constructors, unless you do not use inheritance. Because the rule is that if an argument is optional, all following arguments are. Which is a contradiction with the way arguments are used. Maybe I should change the way arguments are consumed by inherited constructors. I mean not inverting them, i.e. inverting them on the stack, so that you write New MyControl(FMain, lVal1, lVal2...). But this will uses some CPU. I must think about that... -- Beno?t Minisini From ubuntu at ...2332... Sun Nov 29 22:22:44 2009 From: ubuntu at ...2332... (D. L. Fox) Date: Sun, 29 Nov 2009 16:22:44 -0500 Subject: [Gambas-user] Custom Control In-Reply-To: <200911292159.27526.gambas@...1...> References: <4B120106.1030202@...2332...> <200911291932.33339.gambas@...1...> <4B12DB07.9030005@...2332...> <200911292159.27526.gambas@...1...> Message-ID: <4B12E624.6070103@...2332...> I apologize if I gave you the wrong impression. I didn't intend for you to change anything. I was just wondering if it could already be done and I was missing it. I really like Gambas and have been enjoying the learning experience. Thanks for creating it. Beno?t Minisini wrote: > You get a point there: optional arguments cannot really be used in > constructors, unless you do not use inheritance. Because the rule is that if > an argument is optional, all following arguments are. Which is a contradiction > with the way arguments are used. > > Maybe I should change the way arguments are consumed by inherited > constructors. I mean not inverting them, i.e. inverting them on the stack, so > that you write New MyControl(FMain, lVal1, lVal2...). But this will uses some > CPU. > > I must think about that... > From gambas.fr at ...626... Sun Nov 29 23:07:38 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 29 Nov 2009 23:07:38 +0100 Subject: [Gambas-user] Get the index of a menu In-Reply-To: <4B12BCC0.2090004@...221...> References: <9610272b0911271241u22c1ae8fhe51554584156803a@...627...> <4B12BCC0.2090004@...221...> Message-ID: <6324a42a0911291407t78382b95y719be245a807f9b7@...627...> better is to use the last key PUBLIC SUB Menuname_Click() and do everything with the menu item with the properties Last.xxx = ... 2009/11/29 Matti : > What is the need for the index? > A menu has a name. > You can react to the click event with > PUBLIC SUB Menuname_Click() > and do everything with the menu item with the properties > Menuname.xxx = ... > enable/disable, check, and so on. > > Matti > > > David Dell schrieb: >> How can I get the index of a menu in the collection of children of its >> parent? There is no Menu.Index property. >> >> Thank you, >> David > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sun Nov 29 23:18:56 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 29 Nov 2009 23:18:56 +0100 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> <4B12B917.2070805@...221...> <20091129202352.M85050@...951...> Message-ID: <6324a42a0911291418k630bbbc6r1699ca0630f340a9@...627...> it is complicated because off the actiongroup of qt how to define the children group in a simple sequence of menu entry... and it use a special actiongroup (exclude) http://doc.trolltech.com/4.5/qaction.html#checkable-prop then is there something like that in gtk ?... as we need to maintain the toolkits compatibility... yes : http://library.gnome.org/devel/gtk/stable/GtkRadioMenuItem.html 2009/11/29 Kadaitcha Man : > 2009/11/30 nando : > >> Someone is confused > > It's not the OP. So he misused a word. Did you look at the calculator > yet like he suggested? > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. ?http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Mon Nov 30 02:30:03 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 30 Nov 2009 02:30:03 +0100 Subject: [Gambas-user] Custom Control In-Reply-To: <4B12E624.6070103@...2332...> References: <4B120106.1030202@...2332...> <200911292159.27526.gambas@...1...> <4B12E624.6070103@...2332...> Message-ID: <200911300230.03255.gambas@...1...> > I apologize if I gave you the wrong impression. I didn't intend for you > to change anything. I was just wondering if it could already be done and > I was missing it. > > I really like Gambas and have been enjoying the learning experience. > Thanks for creating it. > No, you really shown me that there is some incoherence between OPTIONAL syntax and the way argument are used in inherited constructor. So I think I will invert that for Gambas 3, despite it will need a little bit of CPU for that. Regards, -- Beno?t Minisini From nospam.nospam.nospam at ...626... Mon Nov 30 06:34:45 2009 From: nospam.nospam.nospam at ...626... (Kadaitcha Man) Date: Mon, 30 Nov 2009 16:34:45 +1100 Subject: [Gambas-user] How can I create radio (mutually exclusive) menu? In-Reply-To: <6324a42a0911291418k630bbbc6r1699ca0630f340a9@...627...> References: <9610272b0911280018k5c51865fy755c90cfe97f18df@...627...> <9610272b0911280022g6058a08k72b44c3c4aafe195@...627...> <4B12B917.2070805@...221...> <20091129202352.M85050@...951...> <6324a42a0911291418k630bbbc6r1699ca0630f340a9@...627...> Message-ID: 2009/11/30 Fabien Bodard : > it is complicated because off the actiongroup of qt My view is that it's an unnecessary feature; a nice to have razzle-dazzle. If it's going to complicate the GTK toolkit I'd be inclined to give it a miss. but then, that's just my opinion. From o.s.p at ...69... Mon Nov 30 09:16:44 2009 From: o.s.p at ...69... (o.s.p) Date: Mon, 30 Nov 2009 08:16:44 +0000 Subject: [Gambas-user] libtool problem In-Reply-To: <200911281514.52033.lordheavy@...1...> References: <4B1120F2.6050502@...69...> <200911281514.52033.lordheavy@...1...> Message-ID: <4B137F6C.9000708@...69...> Le samedi 28 novembre 2009 14:09:06, o.s.p a ?crit : >> hallo! >> frugalware (current) here with libtool 2.2.6b >> when in make install step i have this error: >> ..... >> libtool: Version mismatch error. This is libtool 2.2.6, but the >> libtool: definition of this LT_INIT comes from libtool 2.2.6b. >> libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 >> libtool: and run autoconf again. >> make[2]: *** [gbc3] Error 63 >> make[2]: Leaving directory `/home/god/Desktop/src/g/trunk/main/gbc' >> make[1]: *** [install-recursive] Error 1 >> make[1]: Leaving directory `/home/god/Desktop/src/g/trunk/main' >> make: *** [install-recursive] Error 1 >> >> >> thanks >> >> --------------------------------------------------------------------------- >> --- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day trial. Simplify your report design, integration and deployment - >> and focus on what you do best, core application coding. Discover what's >> new with Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > Put this file in the root of gambas dir and run ./reconf-all > It's only a quick workaround but it's working. > > ++ > perfect! i've added the libtoolize command to my scripts attached here for those who whant to keep cool its gambas! but first check if the string at row 11 in svngb is correct for your language my 2 cents... thank you -------------- next part -------------- #!/bin/bash #$1 user #$2 url #$3 version set +x echo echo $1 echo $2 echo $3 echo $4 echo "-------------------------------------------" if [ "$4" = "-u" ];then echo "uninstalling!!!!" make uninstall exit fi if [ "$4" = "-r" ];then svn checkout $2 echo echo "svn refreshed; to do:" echo "1 \#make uninstall" echo "2 reconf-all" echo "3 configure -C" echo "4 make" echo "5 \#make install" exit fi if [ "$4" = "-c" ];then cd $3 echo " " echo "uninstall ----------------------------------" echo " " make uninstall echo " " echo "reconf -------------------------------------" echo " " su "$1" -c "./reconf-all" su "$1" -c "libtoolize --copy --force" echo " " echo "config -------------------------------------" echo " " su "$1" -c "./configure -C | tee config.log" echo " " echo "make ---------------------------------------" echo " " su "$1" -c "make | tee make.log" echo " " echo "install ------------------------------------" echo " " make install | tee install.log echo "done! --------------------------------------" exit fi cd $3 echo " " echo "uninstall ----------------------------------" echo " " make uninstall echo " " cd .. echo "going on svn -------------------------------" pwd su "$1" -c "svn checkout $2" cd $3 echo "reconf -------------------------------------" echo " " su "$1" -c "./reconf-all" su "$1" -c "libtoolize --copy --force" echo " " echo "config -------------------------------------" echo " " su "$1" -c "./configure -C | tee config.log" echo " " echo "make ---------------------------------------" echo " " su "$1" -c "make | tee make.log" echo " " echo "install ------------------------------------" echo " " make install | tee install.log echo "done all!-----------------------------------" -------------- next part -------------- #!/bin/bash #must run as root and do somethings as user #set -x echo "Params: -r scarica svn solamente" echo " -c compila e installa solamente" echo " -u disinstalla" echo #change this to match your language GRP="Revisione:" #V="2.0" #URL="https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/"$V"/" U=$USER V="trunk" URL="https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/"$V"/" if [ "$1" = "-u" ]; then if [ -d $V ]; then kdesu "konsole --noclose --nomenubar --notabbar -e nice -n 10 ./doit $U $URL $V $1" else echo "no folder for $V" exit fi fi if [ -d $V ]; then l=$(svn info $V | grep $GRP) else mkdir $V l="00000" fi if [ "$1" = "-c" ]; then r="00000" else ping -c 1 gambas.svn.sourceforge.net 2&>1 /dev/null if [ $? = 0 ]; then r=$(svn info $URL | grep $GRP) else echo "no net!" exit fi fi echo " local: $l" echo "remote: $r" if [ "$1" == "-r" ]; then echo else if [ "$l" == "$r" ]; then echo "same version or nothing to do!" exit fi fi echo "proceed? (Y/n):" read boh if [ "$boh" = "y" ] || [ "$boh" = "" ] || [ "$boh" = "Y" ]; then echo echo "procedure:" echo "(root) make unistall" echo "svn download" echo "./reconf-all" echo "./configure -C" echo "make" echo "(root) make install" echo if [ "$1" = "-r" ]; then nice 10 ./doit jondoe $URL $V $1 else kdesu "konsole --noclose --nomenubar --notabbar -e nice -n 10 ./doit $U $URL $V $1" fi else echo "bye..." fi echo " " From doriano.blengino at ...1909... Mon Nov 30 10:22:50 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 30 Nov 2009 10:22:50 +0100 Subject: [Gambas-user] Custom Control In-Reply-To: <200911292159.27526.gambas@...1...> References: <4B120106.1030202@...2332...> <200911291932.33339.gambas@...1...> <4B12DB07.9030005@...2332...> <200911292159.27526.gambas@...1...> Message-ID: <4B138EEA.7020207@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini wrote: >> >>> In Gambas 3, the /control directory must be put inside the "Project" >>> section. >>> >> Okay, that worked. I was using the control directory automatically >> created when I first created the project. Thanks. >> >> >>> Please provide the details of what you have done, and maybe I will tell >>> you. >>> >> I'm referring to code used when programming the component itself. >> >> For example, in the component code: >> >> Public Sub _new(lVal1 As Long, lVal2 As Long, Optional lVal3 As Long) >> >> If I make the component and try to use it in a project, I have to also >> pass the parent container name. So, if I use: >> >> oVar = New ComponentName(lVal1, lVal2, lVal3, FMain) >> >> It works fine. But if I try to leave out the *optional* argument: >> >> oVar = New ComponentName(lVal1, lVal2, FMain) >> >> I will get "Not enough arguments" from the IDE. If I try: >> >> oVar = New ComponentName(lVal1, lVal2, , FMain) >> >> I will get "Unexpected Comma" from the IDE. And, of course, if I pass >> NUll as the optional argument, it's the incorrect data type for the >> argument. I understand why I'm getting the messages I'm getting. I'm >> just asking is there any way to use an *optional* argument to the _new >> sub of a component. >> >> This isn't something critical. This is just a personal project I chose >> to do as an exercise, to get familiar with Gambas. I always do stuff >> like this whenever I'm learning a new language or (in this case) IDE, etc. >> >> > > You get a point there: optional arguments cannot really be used in > constructors, unless you do not use inheritance. Because the rule is that if > an argument is optional, all following arguments are. Which is a contradiction > with the way arguments are used. > > Maybe I should change the way arguments are consumed by inherited > constructors. I mean not inverting them, i.e. inverting them on the stack, so > that you write New MyControl(FMain, lVal1, lVal2...). But this will uses some > CPU. > > I must think about that... > Just my opinion... that may be wrong. An overriding method (and constructors too) should take the full control on what happens. So, the overriding method receives the arguments it needs (probably a parent window too, but who knows?), does with them whatever it likes, and in this process calls the inherited method when it likes. In this point of view, it would be not correct to have some automatic argument consuming. It is true that the programmer will have to explicitly call the inherited constructor, which in turn will call its inherited constructor and so on, but this is the whole philosophy. Suppose that you write a component which can be child only of certain parents (don't know... vboxes)? If you pass the wrong parent when instantiating it, the constructor can check for this and raise an exception. If the argument (parent in this case, but the same applies to any other argument) is consumed by something else, this check is not possible. I think this thought is more general than this stupid example I can produce just now. This would solve the optional parameters too. Regards, Doriano From oceanosoftlapalma at ...626... Mon Nov 30 11:32:13 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 30 Nov 2009 10:32:13 +0000 Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK Message-ID: Is there some way to cancell double-click event when an user is only scrolling a gridview? Think about this: You got a form with a gridview and you show into a database table. When user does double click in a line you open content of related record in other form. This is ok. But when you are only clicking over the scrollbar gridview's to show more rows, sometimes the doubleclick event is fired because the gridview thinks user has clicked over one of his rows. Any ideas to chek the place where user has clicked (scrollbar or row)? I'm working with gambas2. Regards, Ricardo D?az From gambas at ...1... Mon Nov 30 12:20:23 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 30 Nov 2009 12:20:23 +0100 Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK In-Reply-To: References: Message-ID: <200911301220.24008.gambas@...1...> > Is there some way to cancell double-click event when an user is only > scrolling a gridview? > > Think about this: > > You got a form with a gridview and you show into a database table. > When user does double click in a line you open content of related record in > other form. This is ok. But when you are only clicking over the scrollbar > gridview's to show more rows, sometimes the doubleclick event is fired > because the gridview thinks user has clicked over one of his rows. > > Any ideas to chek the place where user has clicked (scrollbar or row)? > > I'm working with gambas2. > > Regards, > > Ricardo D?az Which version of Gambas 2 do you use? -- Beno?t Minisini From gambas at ...1... Mon Nov 30 12:33:35 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 30 Nov 2009 12:33:35 +0100 Subject: [Gambas-user] Custom Control In-Reply-To: <4B138EEA.7020207@...1909...> References: <4B120106.1030202@...2332...> <200911292159.27526.gambas@...1...> <4B138EEA.7020207@...1909...> Message-ID: <200911301233.35411.gambas@...1...> > Beno?t Minisini ha scritto: > >> Beno?t Minisini wrote: > >>> In Gambas 3, the /control directory must be put inside the "Project" > >>> section. > >> > >> Okay, that worked. I was using the control directory automatically > >> created when I first created the project. Thanks. > >> > >>> Please provide the details of what you have done, and maybe I will tell > >>> you. > >> > >> I'm referring to code used when programming the component itself. > >> > >> For example, in the component code: > >> > >> Public Sub _new(lVal1 As Long, lVal2 As Long, Optional lVal3 As Long) > >> > >> If I make the component and try to use it in a project, I have to also > >> pass the parent container name. So, if I use: > >> > >> oVar = New ComponentName(lVal1, lVal2, lVal3, FMain) > >> > >> It works fine. But if I try to leave out the *optional* argument: > >> > >> oVar = New ComponentName(lVal1, lVal2, FMain) > >> > >> I will get "Not enough arguments" from the IDE. If I try: > >> > >> oVar = New ComponentName(lVal1, lVal2, , FMain) > >> > >> I will get "Unexpected Comma" from the IDE. And, of course, if I pass > >> NUll as the optional argument, it's the incorrect data type for the > >> argument. I understand why I'm getting the messages I'm getting. I'm > >> just asking is there any way to use an *optional* argument to the _new > >> sub of a component. > >> > >> This isn't something critical. This is just a personal project I chose > >> to do as an exercise, to get familiar with Gambas. I always do stuff > >> like this whenever I'm learning a new language or (in this case) IDE, > >> etc. > > > > You get a point there: optional arguments cannot really be used in > > constructors, unless you do not use inheritance. Because the rule is that > > if an argument is optional, all following arguments are. Which is a > > contradiction with the way arguments are used. > > > > Maybe I should change the way arguments are consumed by inherited > > constructors. I mean not inverting them, i.e. inverting them on the > > stack, so that you write New MyControl(FMain, lVal1, lVal2...). But this > > will uses some CPU. > > > > I must think about that... > > Just my opinion... that may be wrong. > > An overriding method (and constructors too) should take the full control > on what happens. So, the overriding method receives the arguments it > needs (probably a parent window too, but who knows?), does with them > whatever it likes, and in this process calls the inherited method when > it likes. In this point of view, it would be not correct to have some > automatic argument consuming. It is true that the programmer will have > to explicitly call the inherited constructor, which in turn will call > its inherited constructor and so on, but this is the whole philosophy. > Suppose that you write a component which can be child only of certain > parents (don't know... vboxes)? If you pass the wrong parent when > instantiating it, the constructor can check for this and raise an > exception. If the argument (parent in this case, but the same applies to > any other argument) is consumed by something else, this check is not > possible. I think this thought is more general than this stupid example > I can produce just now. This would solve the optional parameters too. > > Regards, > Doriano > The reason I did such a thing (each inherited constructor consume arguments) is encapsulation. Inheritance is fully dynamical: it is resolved at class loading, and you may have no idea of what you are really inherit - you see the interface only, think inheriting a native class. So, if the constructor of the new class had full control, it would break the encapsulation: the constructor of the inherited class may not be executed, or other strange things may happen. So I decided that if a class B inherits a class A, then instanciating B will execute at least the same code than instanciating the class A. And so come the idea of consuming constructor arguments when calling all inherited constructors one by one. By passing constructor arguments is order since the last revision, and not in reverse order as before, the last constructor can have optional arguments. The inherited constructors optional arguments must be pass anyway, they are not optional anymore. Regards, -- Beno?t Minisini From oceanosoftlapalma at ...626... Mon Nov 30 14:54:26 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 30 Nov 2009 13:54:26 +0000 Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK In-Reply-To: <200911301220.24008.gambas@...1...> References: <200911301220.24008.gambas@...1...> Message-ID: gambas2 2.17 with qt components. Regards 2009/11/30 Beno?t Minisini > > Is there some way to cancell double-click event when an user is only > > scrolling a gridview? > > > > Think about this: > > > > You got a form with a gridview and you show into a database table. > > When user does double click in a line you open content of related record > in > > other form. This is ok. But when you are only clicking over the scrollbar > > gridview's to show more rows, sometimes the doubleclick event is fired > > because the gridview thinks user has clicked over one of his rows. > > > > Any ideas to chek the place where user has clicked (scrollbar or row)? > > > > I'm working with gambas2. > > > > Regards, > > > > Ricardo D?az > > Which version of Gambas 2 do you use? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Nov 30 15:11:23 2009 From: gambas at ...1... (=?utf-8?q?Beno=C3=AEt_Minisini?=) Date: Mon, 30 Nov 2009 15:11:23 +0100 Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK In-Reply-To: References: <200911301220.24008.gambas@...1...> Message-ID: <200911301511.23280.gambas@...1...> > gambas2 2.17 with qt components. > > Regards > Normally, you should not get mouse events for scrollbars in GridView and other view controls, this is taken into account (at least in gb.qt). And I cannot reproduce your problem with my own GridView in the Gambas IDE. So can you send me a little project that shows your problem? -- Beno?t Minisini From doriano.blengino at ...1909... Mon Nov 30 15:27:48 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 30 Nov 2009 15:27:48 +0100 Subject: [Gambas-user] Custom Control In-Reply-To: <200911301233.35411.gambas@...1...> References: <4B120106.1030202@...2332...> <200911292159.27526.gambas@...1...> <4B138EEA.7020207@...1909...> <200911301233.35411.gambas@...1...> Message-ID: <4B13D664.2080603@...1909...> Beno?t Minisini ha scritto: >> Beno?t Minisini ha scritto: >> >>>> Beno?t Minisini wrote: >>>> >>>>> In Gambas 3, the /control directory must be put inside the "Project" >>>>> section. >>>>> >>>> Okay, that worked. I was using the control directory automatically >>>> created when I first created the project. Thanks. >>>> >>>> >>>>> Please provide the details of what you have done, and maybe I will tell >>>>> you. >>>>> >>>> I'm referring to code used when programming the component itself. >>>> >>>> For example, in the component code: >>>> >>>> Public Sub _new(lVal1 As Long, lVal2 As Long, Optional lVal3 As Long) >>>> >>>> If I make the component and try to use it in a project, I have to also >>>> pass the parent container name. So, if I use: >>>> >>>> oVar = New ComponentName(lVal1, lVal2, lVal3, FMain) >>>> >>>> It works fine. But if I try to leave out the *optional* argument: >>>> >>>> oVar = New ComponentName(lVal1, lVal2, FMain) >>>> >>>> I will get "Not enough arguments" from the IDE. If I try: >>>> >>>> oVar = New ComponentName(lVal1, lVal2, , FMain) >>>> >>>> I will get "Unexpected Comma" from the IDE. And, of course, if I pass >>>> NUll as the optional argument, it's the incorrect data type for the >>>> argument. I understand why I'm getting the messages I'm getting. I'm >>>> just asking is there any way to use an *optional* argument to the _new >>>> sub of a component. >>>> >>>> This isn't something critical. This is just a personal project I chose >>>> to do as an exercise, to get familiar with Gambas. I always do stuff >>>> like this whenever I'm learning a new language or (in this case) IDE, >>>> etc. >>>> >>> You get a point there: optional arguments cannot really be used in >>> constructors, unless you do not use inheritance. Because the rule is that >>> if an argument is optional, all following arguments are. Which is a >>> contradiction with the way arguments are used. >>> >>> Maybe I should change the way arguments are consumed by inherited >>> constructors. I mean not inverting them, i.e. inverting them on the >>> stack, so that you write New MyControl(FMain, lVal1, lVal2...). But this >>> will uses some CPU. >>> >>> I must think about that... >>> >> Just my opinion... that may be wrong. >> >> An overriding method (and constructors too) should take the full control >> on what happens. So, the overriding method receives the arguments it >> needs (probably a parent window too, but who knows?), does with them >> whatever it likes, and in this process calls the inherited method when >> it likes. In this point of view, it would be not correct to have some >> automatic argument consuming. It is true that the programmer will have >> to explicitly call the inherited constructor, which in turn will call >> its inherited constructor and so on, but this is the whole philosophy. >> Suppose that you write a component which can be child only of certain >> parents (don't know... vboxes)? If you pass the wrong parent when >> instantiating it, the constructor can check for this and raise an >> exception. If the argument (parent in this case, but the same applies to >> any other argument) is consumed by something else, this check is not >> possible. I think this thought is more general than this stupid example >> I can produce just now. This would solve the optional parameters too. >> >> Regards, >> Doriano >> >> > > The reason I did such a thing (each inherited constructor consume arguments) > is encapsulation. > > Inheritance is fully dynamical: it is resolved at class loading, and you may > have no idea of what you are really inherit - you see the interface only, > think inheriting a native class. > Uhm... don't know if it is a good idea to "have no idea of what you really inherit"... The encapsulation, in this case, would be extreme! The reason to inherit would cease. > So, if the constructor of the new class had full control, it would break the > encapsulation: the constructor of the inherited class may not be executed, or > other strange things may happen. > This is exactly the point. I wrote "the programmer will have to explicitly call the inherited constructor", and this is annoying, but this is the only way to let the programmer do things before and/or after the inherited method is called (I can think of other ways, but more complicated). There are no compromises - either you (Benoit) do the right thing for the programmer, keeping it from errors *and* versatility, or you give it full control, letting it make mistakes. Or is there a compromise? > So I decided that if a class B inherits a class A, then instanciating B will > execute at least the same code than instanciating the class A. And so come the > idea of consuming constructor arguments when calling all inherited > constructors one by one. > > By passing constructor arguments is order since the last revision, and not in > reverse order as before, the last constructor can have optional arguments. The > inherited constructors optional arguments must be pass anyway, they are not > optional anymore. > Things are valid sometimes yes and sometimes no? If I write a component having optional arguments in its constructor, and then inherit from it, those optional arguments are no more optional? Well, one could live with it... but this very case is the one which breaks encapsulation: optional (or default) values are the ones that let a software grow and get better without breaking dependent things. On the other hand, I think nobody wants that gambas grow up to be another java, so some simplicity is welcome. It seems that there is not many people that actually uses inheritance - the more complicated inheritance is, the less people will use it. Regards, Doriano From oceanosoftlapalma at ...626... Mon Nov 30 18:05:40 2009 From: oceanosoftlapalma at ...626... (=?ISO-8859-1?Q?Ricardo_D=EDaz_Mart=EDn?=) Date: Mon, 30 Nov 2009 17:05:40 +0000 Subject: [Gambas-user] GRIDVIEW: SCROLL & DOUBLE CLICK In-Reply-To: <200911301511.23280.gambas@...1...> References: <200911301220.24008.gambas@...1...> <200911301511.23280.gambas@...1...> Message-ID: Benoit, I send a little example. Run the app and try to scroll down the gridview by clicking in the scrollbar (don't click and move, only do click, click, click in the down or up arrows and you can see double click event is fired). I need when users are only clicking to move lines no double click event was fired. Thanks for your time. 2009/11/30 Beno?t Minisini > > gambas2 2.17 with qt components. > > > > Regards > > > > Normally, you should not get mouse events for scrollbars in GridView and > other > view controls, this is taken into account (at least in gb.qt). And I cannot > reproduce your problem with my own GridView in the Gambas IDE. > > So can you send me a little project that shows your problem? > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > 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: GridView.tar.gz Type: application/x-gzip Size: 10206 bytes Desc: not available URL: From math.eber at ...221... Mon Nov 30 20:43:32 2009 From: math.eber at ...221... (Matti) Date: Mon, 30 Nov 2009 20:43:32 +0100 Subject: [Gambas-user] error in documentation In-Reply-To: <200911292155.15124.gambas@...1...> References: <4B12AAD3.2030302@...221...> <200911292155.15124.gambas@...1...> Message-ID: <4B142064.4010000@...221...> Ah, I understand. Thanks. But this info in the doc would help beginners like me. Matti Beno?t Minisini schrieb: >> I think there is an error in >> http://gambasdoc.org/help/doc/locale >> >> About the charset it says: >> "All characters that follows the xx_YY string are ignored by Gambas." >> >> I had a big problem when I tried to run my prog in English, because with >> "en_GB" or "en_US" a wrong charset was loaded. One runtime error after the >> other with filenames that contained non-ASCII characters. >> >> After searching and reading a long time, I didn't know what to do and >> finally just tried the environment variable LANG = "en_GB.UTF-8" - and, >> voila, now it works wonderful! Gambas doesn't ignore this. >> >> Matti >> > > To be more precise: all characters that follows the xx_YY string are actually > ignored by Gambas, but not by the system library. The system library uses the > full $LANG, $LANGUAGE and $LC_* environment variables to decide which language > and which charset to use. Gambas uses just the xx_YY part to find the > translation file to use. > > Regards, > From 12ukwn at ...626... Mon Nov 30 23:51:10 2009 From: 12ukwn at ...626... (Jean-Yves F. Barbier) Date: Mon, 30 Nov 2009 23:51:10 +0100 Subject: [Gambas-user] Xview selection cursor info Message-ID: <4B144C5E.8040002@...626...> Hi, On a tableview, I need: * Make the selection cursor to appear on 1st line at opening, * Selection cursor's position (row) into the grid, * 1st & last rows visible into the grid I how could I get that? -- So, is the glass half empty, half full, or just twice as large as it needs to be?