From gambas at ...2... Tue Jul 1 00:02:34 2003 From: gambas at ...2... (Benoit Minisini) Date: Tue, 1 Jul 2003 00:02:34 +0200 Subject: [Gambas-user] Copying an Instance of an Object In-Reply-To: <000001c33f2a$a7259420$000a0a0a@...171...> References: <000001c33f2a$a7259420$000a0a0a@...171...> Message-ID: <200307010002.34952.gambas@...2...> Le Lundi 30 Juin 2003 19:10, Nigel Gerrard a ?crit : > I maybe missing something here but I am trying make a copy of an Object for > holding in a collection whilst keeping the original object for > manipulation. > You must copy the object by hand. The cleanest way is to implement a constructor with an optional argument. ' MyClass.class PUBLIC X AS Integer PUBLIC Y AS String PUBLIC Z AS NEW Collection SUB _new(OPTIONAL hCopy AS MyClass) IF hCopy THEN X = hCopy.X Y = hCopy.Y Z = hCopy.Z ENDIF END Two problems remains: 1) Copying private fields is more complicated. 2) Copying a collection must be done by hand ! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Tue Jul 1 00:05:27 2003 From: gambas at ...2... (Benoit Minisini) Date: Tue, 1 Jul 2003 00:05:27 +0200 Subject: [Gambas-user] excluding components In-Reply-To: <3F0082EE.1050208@...137...> References: <3F0082EE.1050208@...137...> Message-ID: <200307010005.27637.gambas@...2...> Le Lundi 30 Juin 2003 20:35, Ken Schrock a ?crit : > I continue to have problems compiling Gambas on Debian > The problem is in the qt extensions part > How do I exclude just this piece? > The IDE needs the qt component, so excluding this piece is not very interesting. Can you recall all the problems you encounter ? Which Debian do you use ? Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Tue Jul 1 00:42:50 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 30 Jun 2003 18:42:50 -0400 Subject: [Gambas-user] Problems with class 'Connectio' In-Reply-To: <200306302354.22728.gambas@...2...> References: <200306290032.33086.pako67@...176...> <200306302354.22728.gambas@...2...> Message-ID: <200306301842.27755.sourceforge-raindog2@...94...> On Monday 30 June 2003 17:54, Benoit Minisini wrote: > > I'm working with Gambas 0.60 (installed via rpm) in my Mandrake 9.0. > Could you try with a gambas compiled from the source package ? I'd also like it if I could get a copy of your src.rpm, both so I can try to work out the problem and to avoid my having to duplicate your work (as I haven't gotten round to building 9.0 RPM's of Gambas 0.60 yet.) Rob From testing at ...177... Tue Jul 1 11:09:34 2003 From: testing at ...177... (tester gpl) Date: Tue, 01 Jul 2003 04:09:34 -0500 Subject: [Gambas-user] Dealing with columnview widget and accessing component in a form Message-ID: <20030701090935.69076.qmail@...178...> hi, I'm requesting your help, because i'm facing some problems when i want to use the columnview widget. I didn't find how to add text in the column of my choice. i can add text in the first column by doing columview.add(index,text) but i didn't find how to add text in the second, third, ... column. I've read in a previous post that we have to use ColumnView.Item[ColumnIndex] = "Text" but it doesn't work :-\ My second problem is when i want to access to a component situated in a form, from another module or another class. I thought it would be something like FMain.columview.add(index,text) for example, but it seems like it's not the good way. Thank you for you help -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup From gambas at ...2... Tue Jul 1 14:24:52 2003 From: gambas at ...2... (Benoit Minisini) Date: Tue, 1 Jul 2003 14:24:52 +0200 Subject: [Gambas-user] Dealing with columnview widget and accessing component in a form In-Reply-To: <20030701090935.69076.qmail@...178...> References: <20030701090935.69076.qmail@...178...> Message-ID: <200307011424.52328.gambas@...2...> Le Mardi 1 Juillet 2003 11:09, tester gpl a ?crit : > hi, Hi, > > I'm requesting your help, because i'm facing some problems when i want > to use the columnview widget. I didn't find how to add text in the column > of my choice. i can add text in the first column by doing > columview.add(index,text) but i didn't find how to add text in the second, > third, ... column. I've read in a previous post that we have to use > ColumnView.Item[ColumnIndex] = "Text" but it doesn't work :-\ It works, I use it in the IDE ! What do you mean by "it doesn't work" ? Try that : clvTest.Add("A", "Hello") clvTest["A"][1] = "World" clvTest["A"][2] = "!" > > My second problem is when i want to access to a component situated in a > form, from another module or another class. I thought it would be something > like FMain.columview.add(index,text) for example, but it seems like it's > not the good way. > You must check the "Form controls are public" option in the project properties dialog. > > Thank you for you help -- Benoit Minisini mailto:gambas at ...1... From secmon at ...169... Tue Jul 1 15:09:22 2003 From: secmon at ...169... (Henry Ismaili) Date: Tue, 1 Jul 2003 23:09:22 +1000 Subject: [Gambas-user] INC Application.Busy Message-ID: <200307012309.22663.secmon@...169...> INC Application.Busy DEC Application.Busy Can someone explain what this does ? Regards, Henry. From fj.cruz at ...179... Tue Jul 1 16:25:12 2003 From: fj.cruz at ...179... (F.J. Cruz) Date: Tue, 1 Jul 2003 16:25:12 +0200 Subject: [Gambas-user] Problems with class 'Connectio' In-Reply-To: <200306302354.22728.gambas@...2...> References: <200306290032.33086.pako67@...176...> <200306302354.22728.gambas@...2...> Message-ID: <200307011625.23677.fj.cruz@...179...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El Lunes, 30 de Junio de 2003 23:54, Benoit Minisini escribi?: > > Could you try with a gambas compiled from the source package ? The 0.57 version of Gambas was compiled form the source package, anda I've got the same problem, howeber, I'll to compile this one. Thanks. - -- .-. /v\ L I N U X // \\ > S p a i n < /( )\ > Linux user #188524 < ^^-^^ > Linux machine #83532 < -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/AZnMmrdP5kr8t+cRAluhAJ9IwCAvsqujjs4nBtJx4gHpk25zaACeJnBu qgUwCtFvMehCc/ic1ROvSSM= =eH4h -----END PGP SIGNATURE----- From fj.cruz at ...179... Tue Jul 1 16:27:23 2003 From: fj.cruz at ...179... (F.J. Cruz) Date: Tue, 1 Jul 2003 16:27:23 +0200 Subject: [Gambas-user] Problems with class 'Connectio' In-Reply-To: <200306301842.27755.sourceforge-raindog2@...94...> References: <200306290032.33086.pako67@...176...> <200306302354.22728.gambas@...2...> <200306301842.27755.sourceforge-raindog2@...94...> Message-ID: <200307011627.25110.fj.cruz@...179...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El Martes, 1 de Julio de 2003 00:42, Rob escribi?: > On Monday 30 June 2003 17:54, Benoit Minisini wrote: > > > I'm working with Gambas 0.60 (installed via rpm) in my Mandrake 9.0. > > > > Could you try with a gambas compiled from the source package ? > > I'd also like it if I could get a copy of your src.rpm, both so I can try > to work out the problem and to avoid my having to duplicate your work (as I > haven't gotten round to building 9.0 RPM's of Gambas 0.60 yet.) > > Rob > > Sorry Rob, I made a mistake in my message, my Mandrake is the 9.1 version, not 9.0 :-(. - -- .-. /v\ L I N U X // \\ > S p a i n < /( )\ > Linux user #188524 < ^^-^^ > Linux machine #83532 < -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/AZpLmrdP5kr8t+cRAqOKAJ42UhGlHjZhKsIH/Nz6yyZ5oHEh8QCfaEsI RBR8qiF9/cCuc+CuZ865Qus= =rlZ4 -----END PGP SIGNATURE----- From sourceforge-raindog2 at ...94... Tue Jul 1 16:46:21 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 1 Jul 2003 10:46:21 -0400 Subject: [Gambas-user] Problems with class 'Connectio' In-Reply-To: <200307011627.25110.fj.cruz@...179...> References: <200306290032.33086.pako67@...176...> <200306301842.27755.sourceforge-raindog2@...94...> <200307011627.25110.fj.cruz@...179...> Message-ID: <200307011046.21224.sourceforge-raindog2@...94...> On Tuesday 01 July 2003 10:27, F.J. Cruz wrote: > Sorry Rob, I made a mistake in my message, my Mandrake is the 9.1 version, > not 9.0 :-(. Ah. I suppose I need to test database connection functionality in my RPM then.... Rob From sourceforge-raindog2 at ...94... Tue Jul 1 16:44:37 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 1 Jul 2003 10:44:37 -0400 Subject: [Gambas-user] INC Application.Busy In-Reply-To: <200307012309.22663.secmon@...169...> References: <200307012309.22663.secmon@...169...> Message-ID: <200307011044.37064.sourceforge-raindog2@...94...> On Tuesday 01 July 2003 09:09, Henry Ismaili wrote: > INC Application.Busy > DEC Application.Busy > Can someone explain what this does ? INC adds 1 to the variable upon which it acts; DEC subtracts 1. C/Perl/Javascript people can think of it as Application.Busy++ Application.Busy-- and of course certain flavors of assembler programmers will also feel right at home, if only with these two operators ;) See: http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasINC http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasDEC for some illuminating example code... Rob From fj.cruz at ...179... Tue Jul 1 17:00:29 2003 From: fj.cruz at ...179... (F.J. Cruz) Date: Tue, 1 Jul 2003 17:00:29 +0200 Subject: [Gambas-user] Problems with class 'Connectio' In-Reply-To: <200307011046.21224.sourceforge-raindog2@...94...> References: <200306290032.33086.pako67@...176...> <200307011627.25110.fj.cruz@...179...> <200307011046.21224.sourceforge-raindog2@...94...> Message-ID: <200307011700.31701.fj.cruz@...179...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El Martes, 1 de Julio de 2003 16:46, Rob escribi?: > On Tuesday 01 July 2003 10:27, F.J. Cruz wrote: > > Sorry Rob, I made a mistake in my message, my Mandrake is the 9.1 > > version, not 9.0 :-(. > > Ah. I suppose I need to test database connection functionality in my RPM > then.... > > Rob > I don't know if this is really needed, since i've got the same problem with de sorurce package that I've just compiled by hand. - -- .-. /v\ L I N U X // \\ > S p a i n < /( )\ > Linux user #188524 < ^^-^^ > Linux machine #83532 < -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/AaIOmrdP5kr8t+cRAgMaAJ9fMAHHzew1EBDJaUR/Bz/Egmu3eACfebrM 6sz4RozmELDXPhEuQY+T8uY= =yN7m -----END PGP SIGNATURE----- From Gambasfr at ...11... Tue Jul 1 21:37:09 2003 From: Gambasfr at ...11... (Fabien) Date: Tue, 1 Jul 2003 21:37:09 +0200 Subject: [Gambas-user] INC Application.Busy In-Reply-To: <200307011044.37064.sourceforge-raindog2@...94...> References: <200307012309.22663.secmon@...169...> <200307011044.37064.sourceforge-raindog2@...94...> Message-ID: <200307012137.09556.Gambasfr@...11...> Le Mardi 1 Juillet 2003 16:44, Rob a ?crit : > On Tuesday 01 July 2003 09:09, Henry Ismaili wrote: > > INC Application.Busy > > DEC Application.Busy > > Can someone explain what this does ? > > INC adds 1 to the variable upon which it acts; DEC subtracts 1. > C/Perl/Javascript people can think of it as > > Application.Busy++ > Application.Busy-- > > and of course certain flavors of assembler programmers will also feel right > at home, if only with these two operators ;) > > See: > http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasINC > http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasDEC > > for some illuminating example code... > > Rob > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hem you forget something rob ! Application.busy : if application.busy = 0 then the mouse pointer is normal if application.busy > 0 then the mouse pointer show an hourglass. thats all ! so : INC Application.Busy 'the process is run (application.busy = 1) DEC Application.Busy ' End of the process (application.busy = 0) Fabien From fj.cruz at ...179... Tue Jul 1 23:22:51 2003 From: fj.cruz at ...179... (F.J. Cruz) Date: Tue, 1 Jul 2003 23:22:51 +0200 Subject: [Gambas-user] Problems with class 'Connectio' >- SOLVED In-Reply-To: <200306302354.22728.gambas@...2...> References: <200306290032.33086.pako67@...176...> <200306302354.22728.gambas@...2...> Message-ID: <200307012322.51604.fj.cruz@...179...> The problem with the class "Connection" has been solved....emmm, ok, I think I must say how I do it :-(, let me see......mmmmm.....in a few words: To all de newbies: if you are trying to develop a databse application with gambas you musn't forgett set the right component (gd.b) in the project properties pannel!!!. Sic.....sorry, I'm feel like a stupid. Thanks to Benoit and Rob ------- .-. /v\ L I N U X // \\ > S p a i n < /( )\ > Linux user #188524 < ^^-^^ > Linux machine #83532 < From secmon at ...169... Thu Jul 3 08:22:11 2003 From: secmon at ...169... (Henry Ismaili) Date: Thu, 3 Jul 2003 16:22:11 +1000 Subject: [Gambas-user] INC Application.Busy In-Reply-To: <200307012137.09556.Gambasfr@...11...> References: <200307012309.22663.secmon@...169...> <200307011044.37064.sourceforge-raindog2@...94...> <200307012137.09556.Gambasfr@...11...> Message-ID: <200307031622.12128.secmon@...169...> thanx Fabien, what i was after. On Wed, 2 Jul 2003 05:37, Fabien wrote: > Le Mardi 1 Juillet 2003 16:44, Rob a ?crit : > > On Tuesday 01 July 2003 09:09, Henry Ismaili wrote: > > > INC Application.Busy > > > DEC Application.Busy > > > Can someone explain what this does ? > > > > INC adds 1 to the variable upon which it acts; DEC subtracts 1. > > C/Perl/Javascript people can think of it as > > > > Application.Busy++ > > Application.Busy-- > > > > and of course certain flavors of assembler programmers will also feel > > right at home, if only with these two operators ;) > > > > See: > > http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasINC > > http://www.binara.com/gambas-wiki/bin/view/Gambas/GambasDEC > > > > for some illuminating example code... > > > > Rob > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hem you forget something rob ! > > Application.busy : > if application.busy = 0 then the mouse pointer is normal > if application.busy > 0 then the mouse pointer show an hourglass. > > thats all ! > > > so : > INC Application.Busy > 'the process is run (application.busy = 1) > > DEC Application.Busy > ' End of the process (application.busy = 0) > > Fabien > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From kannangn at ...154... Fri Jul 4 15:42:17 2003 From: kannangn at ...154... (Kannan S) Date: Fri, 04 Jul 2003 18:42:17 +0500 (IST) Subject: [Gambas-user] Tableview Message-ID: <1057324337.3f057d32007c7@...156...> Hi, In ref. to my earlier post, TableView with v0.57 ends the application when I click inside the grid area. The next 2 versions terminate application at form.load. TIA R S Kannan ------------------------------------------------- Sify Mail - now with Anti-virus protection powered by Trend Micro, USA. Know more at http://mail.sify.com Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com From kannangn at ...154... Fri Jul 4 15:42:23 2003 From: kannangn at ...154... (Kannan S) Date: Fri, 04 Jul 2003 18:42:23 +0500 (IST) Subject: [Gambas-user] Tableview Message-ID: <1057324343.3f057d37b7926@...156...> Hi, In ref. to my earlier post, TableView with v0.57 ends the application when I click inside the grid area. The next 2 versions terminate application at form.load. TIA R S Kannan ------------------------------------------------- Sify Mail - now with Anti-virus protection powered by Trend Micro, USA. Know more at http://mail.sify.com Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com From kannangn at ...154... Fri Jul 4 15:43:18 2003 From: kannangn at ...154... (Kannan S) Date: Fri, 04 Jul 2003 18:43:18 +0500 (IST) Subject: [Gambas-user] Tableview Message-ID: <1057324398.3f057d6e8b6c8@...156...> Hi, In ref. to my earlier post, TableView with v0.57 ends the application when I click inside the grid area. The next 2 versions terminate application at form.load. TIA R S Kannan ------------------------------------------------- Sify Mail - now with Anti-virus protection powered by Trend Micro, USA. Know more at http://mail.sify.com Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com From kannangn at ...154... Fri Jul 4 15:07:58 2003 From: kannangn at ...154... (Kannan S) Date: Fri, 04 Jul 2003 19:07:58 +0600 (IST) Subject: [Gambas-user] Tableview Message-ID: <1057325878.3f058336514f2@...180...> Tableview with 0.57 terminates the application when i click inside the grid area. The next 2 versions terminate at the form.load. TIA R S Kannan p.s. please ignore if this is a duplicate msg. ------------------------------------------------- Sify Mail - now with Anti-virus protection powered by Trend Micro, USA. Know more at http://mail.sify.com Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com From gambas at ...2... Fri Jul 4 22:21:18 2003 From: gambas at ...2... (Benoit Minisini) Date: Fri, 4 Jul 2003 22:21:18 +0200 Subject: [Gambas-user] Tableview In-Reply-To: <1057324398.3f057d6e8b6c8@...156...> References: <1057324398.3f057d6e8b6c8@...156...> Message-ID: <200307042221.18446.gambas@...2...> Le Vendredi 4 Juillet 2003 15:43, Kannan S a ?crit : > Hi, > > > In ref. to my earlier post, > > > TableView with v0.57 ends the application when I click inside the grid > area. > > > The next 2 versions terminate application at form.load. > > > TIA > > R S Kannan > If you don't send me a gambas project where the bug arises, I can't help you. How can you send four times the same e-mail ? Regards, -- Benoit Minisini mailto:gambas at ...1... From kannangn at ...154... Sat Jul 5 06:02:20 2003 From: kannangn at ...154... (Kannan S) Date: Sat, 05 Jul 2003 10:02:20 +0600 (IST) Subject: [Gambas-user] Tableview Message-ID: <1057379540.3f0654d4b7985@...180...> Hi Benoit, Sorry about the duplication in the mail and it wasnt voluntary to catch attention, LOL, my DSL connection slowed down to an extent that it reloaded the 'compose' screen instead of the 'confirmation' screen. Tableview - I used ur example pack. Application terminates after i enter the SQL query in the textbox and click on 'Run' button. Shd. be pretty 'elementary', but this is the first time i could get the 'mysql' devel. right and the hConn worked and surprised me. The patches with respect to 0.58 posted earlier with patching 'mainwindow.cpp' and 'cpicture.cpp' worked and even with 0.60. But the properties window doesnt show anything except a blank one when i click on any of the controls. I use RH 8.0, qt 3.1.1. Best wishes and Keep up the great work. Regards to all R S Kannan (kannanramaswamy - kannan62k at ...43... kannanrs at ...154...) ------------------------------------------------- Sify Mail - now with Anti-virus protection powered by Trend Micro, USA. Know more at http://mail.sify.com Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com From gambas at ...2... Sat Jul 5 13:18:00 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 5 Jul 2003 13:18:00 +0200 Subject: [Gambas-user] Tableview In-Reply-To: <1057379540.3f0654d4b7985@...180...> References: <1057379540.3f0654d4b7985@...180...> Message-ID: <200307051318.00681.gambas@...2...> Le Samedi 5 Juillet 2003 06:02, Kannan S a ?crit : > Hi Benoit, > > Sorry about the duplication in the mail and it wasnt voluntary to catch > attention, LOL, my DSL connection slowed down to an extent that it reloaded > the 'compose' screen instead of the 'confirmation' screen. > > > > Tableview - I used ur example pack. > Application terminates after i enter the SQL query in the textbox and click > on 'Run' button. > > > Shd. be pretty 'elementary', but this is the first time i could get the > 'mysql' devel. right and the hConn worked and surprised me. > > > > The patches with respect to 0.58 posted earlier with patching > 'mainwindow.cpp' and 'cpicture.cpp' worked and even with 0.60. > > > But the properties window doesnt show anything except a blank one when i > click on any of the controls. > > > I use RH 8.0, qt 3.1.1. > > > Best wishes and Keep up the great work. > > Regards to all > > > R S Kannan > (kannanramaswamy - kannan62k at ...43... > kannanrs at ...154...) > Hi Kannan, Could you upgrade to RedHat 9.0 ? Maybe your problems will be solve ! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Sun Jul 6 00:22:07 2003 From: gambas at ...2... (Benoit Minisini) Date: Sun, 6 Jul 2003 00:22:07 +0200 Subject: [Gambas-user] gambas 0.61 Message-ID: <200307060022.07430.gambas@...2...> Hi world, You can download gambas 0.61 at the web site. This version allows you to use any Gambas executable as a library, with the new USE instruction. I have created a quick & dirty InputBox for that. How does it work ? As I said in a previous e-mail ! USE "InputBox" IF NOT InputBox("Text", "Give me a text") THEN PRINT InputBox.Data ENDIF See ChangeLog for more details. Endianess management has been improved too. Now Gambas interpreter can run a class compiled on another system with a different endianess. Solaris users should try to test it and report me the problems... You can specify if you want to open a file with LITTLE or BIG endian data encoding. See ChangeLog too. Enjoy it ! -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Sun Jul 6 22:03:41 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 6 Jul 2003 16:03:41 -0400 Subject: [Gambas-user] Gambas and the GPL Message-ID: <200307061603.41966.sourceforge-raindog2@...94...> Gambas 0.61 is the first version of Gambas that makes it possible to write components in Gambas and share them with others in a precompiled state for use in their pwn projects. This got me thinking about Gambas and how its authors would like to interpret the GPL. Plainly, any components written using the component C API are GPL'ed because they're linked against Gambas itself. With compiled Gambas p-code it's not quite so obvious, and depends on whether any code contained within Gambas is included in that p-code. The output of compilers like GCC has long been held to be free of GPL restrictions but with a language that compiles to p-code it can go either way and I think the decision rests with Benoit and any other authors who have touched the interpreter/compiler. On top of that, we already have our first Gambas-written "library" in the form of InputBox, which I would assume is GPL since it's part of the Gambas distribution but it's unclear to me whether or not a project that uses InputBox would have to be GPL as well. I personally have no interest in releasing Gambas programs without making them GPL, but I'm also thinking that there will be some people who might have an interest in doing so or in promoting that practice *cough*Lindows*cough* and think it may be time for Benoit and the other Gambas developers to decide one way or the other whether Gambas output is GPL'ed automatically or not. Rob From gambas at ...2... Sun Jul 6 23:20:20 2003 From: gambas at ...2... (Benoit Minisini) Date: Sun, 6 Jul 2003 23:20:20 +0200 Subject: [Gambas-user] gambas 0.61 and Qt 3.0 Message-ID: <200307062320.20398.gambas@...2...> Hi everyone, Gambas 0.61 requires qt 3.1 at the moment. Here is a patch (two files to put in ./src/lib/qt) that should allow it to compile with qt 3.0. Sorry for the inconvenience, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: CWindow.cpp Type: text/x-c++src Size: 29292 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp Type: text/x-c++src Size: 9223 bytes Desc: not available URL: From gambas at ...2... Sun Jul 6 23:59:09 2003 From: gambas at ...2... (Benoit Minisini) Date: Sun, 6 Jul 2003 23:59:09 +0200 Subject: [Gambas-user] Gambas and the GPL In-Reply-To: <200307061603.41966.sourceforge-raindog2@...94...> References: <200307061603.41966.sourceforge-raindog2@...94...> Message-ID: <200307062359.09167.gambas@...2...> Le Dimanche 6 Juillet 2003 22:03, Rob a ?crit : > Gambas 0.61 is the first version of Gambas that makes it possible to write > components in Gambas and share them with others in a precompiled state for > use in their pwn projects. This got me thinking about Gambas and how its > authors would like to interpret the GPL. > > Plainly, any components written using the component C API are GPL'ed > because they're linked against Gambas itself. With compiled Gambas p-code > it's not quite so obvious, and depends on whether any code contained within > Gambas is included in that p-code. The output of compilers like GCC has > long been held to be free of GPL restrictions but with a language that > compiles to p-code it can go either way and I think the decision rests with > Benoit and any other authors who have touched the interpreter/compiler. On > top of that, we already have our first Gambas-written "library" in the form > of InputBox, which I would assume is GPL since it's part of the Gambas > distribution but it's unclear to me whether or not a project that uses > InputBox would have to be GPL as well. > > I personally have no interest in releasing Gambas programs without making > them GPL, but I'm also thinking that there will be some people who might > have an interest in doing so or in promoting that practice > *cough*Lindows*cough* and think it may be time for Benoit and the other > Gambas developers to decide one way or the other whether Gambas output is > GPL'ed automatically or not. > > Rob > Here is what I found on the Free Software Fundation site : ------------- I am writing free software that uses non-free libraries. What legal issues come up if I use the GPL? ------------- If the libraries that you link with fall within the following exception in the GPL: However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. then you don't have to do anything special to use them; the requirement to distribute source code for the whole program does not include those libraries, even if you distribute a linked executable containing them. Thus, if the libraries you need come with major parts of a proprietary operating system, the GPL says people can link your program with them without any conditions. If you want your program to link against a library not covered by that exception, you need to add your own exception, wholly outside of the GPL. This copyright notice and license notice give permission to link with the program FOO: Copyright (C) yyyy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA In addition, as a special exception, gives permission to link the code of this program with the FOO library (or with modified versions of FOO that use the same license as FOO), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than FOO. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. Only the copyright holders for the program can legally authorize this exception. If you wrote the whole program yourself, then assuming your employer or school does not claim the copyright, you are the copyright holder--so you can authorize the exception. But if you want to use parts of other GPL-covered programs by other authors in your code, you cannot authorize the exception for them. You have to get the approval of the copyright holders of those programs. When other people modify the program, they do not have to make the same exception for their code--it is their choice whether to do so. Adding this exception eliminates the legal issue, but does nothing about the more serious problem of using a non-free library: your program won't be fully usable in a free environment. If your program depends on a non-free library to do a certain job, it cannot do that job in the Free World. If it depends on a non-free library to run at all, it cannot be part of a free operating system such as GNU; it is entirely off limits to the Free World. So please consider: can you find a way to get the job done without using this library? Can you write a free replacement for that library? If the program is already written using the non-free library, perhaps it is too late to change the decision. You may as well release the program as it stands, rather than not release it. But please mention in the README that the need for the non-free library is a drawback, and suggest the task of changing the program so that it does the same job without the non-free library. Also please tell us () about the non-free library and what job it does. We could encourage people to develop a free library to do the same job. ------------- If a programming language interpreter is released under the GPL, does that mean programs written to be interpreted by it must be under GPL-compatible licenses? ------------- When the interpreter just interprets a language, the answer is no. The interpreted program, to the interpreter, is just data; a free software license like the GPL, based on copyright law, cannot limit what data you use the interpreter on. You can run it on any data (interpreted program), any way you like, and there are no requirements about licensing that data to anyone. However, when the interpreter is extended to provide "bindings" to other facilities (often, but not necessarily, libraries), the interpreted program is effectively linked to the facilities it uses through these bindings. So if these facilities are released under the GPL, the interpreted program that uses them must be released in a GPL-compatible way. The JNI or Java Native Interface is an example of such a facility; libraries that are accessed in this way are linked dynamically with the Java programs that call them. Another similar and very common case is to provide libraries with the interpreter which are themselves interpreted. For instance, Perl comes with many Perl modules, and a Java implementation comes with many Java classes. These libraries and the programs that call them are always dynamically linked together. A consequence is that if you choose to use GPL'd Perl modules or Java classes in your program, you must release the program in a GPL-compatible way, regardless of the license used in the Perl or Java interpreter that the combined Perl or Java program will run on. I hope it will be clear for everyone ! If you want translations of the two previous points, go to http://www.gnu.org/licenses/gpl-faq.html Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Mon Jul 7 00:28:16 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 6 Jul 2003 18:28:16 -0400 Subject: [Gambas-user] Gambas and the GPL In-Reply-To: <200307062359.09167.gambas@...2...> References: <200307061603.41966.sourceforge-raindog2@...94...> <200307062359.09167.gambas@...2...> Message-ID: <200307061828.16693.sourceforge-raindog2@...94...> On Sunday 06 July 2003 17:59, Benoit Minisini quoted the FSF: > However, when the interpreter is extended to provide "bindings" to > other facilities (often, but not necessarily, libraries), the interpreted > program is effectively linked to the facilities it uses through these > bindings. So if these facilities are released under the GPL, the > interpreted program that uses them must be released in a GPL-compatible That settles it, then; any Gambas program that uses the Qt component needs to be GPL-compatibly licensed because Qt is GPL'ed (for Gambas purposes.) That makes things pretty easy, at least till Gtk and other bindings start appearing ;) Rob From sourceforge-raindog2 at ...94... Mon Jul 7 02:39:02 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 6 Jul 2003 20:39:02 -0400 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch Message-ID: <200307062039.02050.sourceforge-raindog2@...94...> I posted binary packages of Gambas 0.61 for Mandrake 9.1 here: http://www.kudla.org/index.php?wl_mode=more&wl_eid=20 Thanks to Benoit's Qt 3.0 patch, I'm hoping to have 9.0 RPM's working tonight or tomorrow. Speaking of patches.... In response to some people complaining that the open project dialog doesn't work right under Mandrake, I've included a patch in the gambas-gui RPM that fixes that problem along with a couple other minor things that irritate me (the properties dialog's habit of clearing when you switch to the code window being the only one I can think of offhand.) I included the patch below just in case it might be of use to someone else who doesn't use packages. I know Fabien's working on a new file dialog but in the meantime, hopefully this will do the trick without breaking too much. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-gui-dialog-fix-0.61.patch Type: text/x-diff Size: 7585 bytes Desc: not available URL: From nicola.bisetto at ...69... Mon Jul 7 17:40:00 2003 From: nicola.bisetto at ...69... (Nicola Bisetto) Date: Mon, 7 Jul 2003 15:40:00 +0000 Subject: [Gambas-user] report Message-ID: <200307071540.00930.nicola.bisetto@...69...> Thanks to everyone is working on this project, that permitted to me to develope my first linux application. Now I finished the front-end of my application thanks to Gambas, and I would like to have some helps about the creation of reports. Someone can tell me about the best way to have report, including graphical elements, such as picture? Thank you Nicola From gambas at ...2... Mon Jul 7 21:19:35 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 7 Jul 2003 21:19:35 +0200 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307062039.02050.sourceforge-raindog2@...94...> References: <200307062039.02050.sourceforge-raindog2@...94...> Message-ID: <200307072119.35049.gambas@...2...> Le Lundi 7 Juillet 2003 02:39, Rob a ?crit : > I posted binary packages of Gambas 0.61 for Mandrake 9.1 here: > > http://www.kudla.org/index.php?wl_mode=more&wl_eid=20 > > Thanks to Benoit's Qt 3.0 patch, I'm hoping to have 9.0 RPM's working > tonight or tomorrow. Speaking of patches.... > > In response to some people complaining that the open project dialog doesn't > work right under Mandrake, I've included a patch in the gambas-gui RPM that > fixes that problem along with a couple other minor things that irritate me > (the properties dialog's habit of clearing when you switch to the code > window being the only one I can think of offhand.) I included the patch > below just in case it might be of use to someone else who doesn't use > packages. I know Fabien's working on a new file dialog but in the > meantime, hopefully this will do the trick without breaking too much. > > Rob Hi, Rob, It seems you did not like my new blue arrows ? :-) You have put back the old icons in your patch ! I thought clearing the property dialog when no control is selected was... clearer to the user. -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Mon Jul 7 21:56:39 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 7 Jul 2003 15:56:39 -0400 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307072119.35049.gambas@...2...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307072119.35049.gambas@...2...> Message-ID: <200307071556.39723.sourceforge-raindog2@...94...> On Monday 07 July 2003 15:19, Benoit Minisini wrote: > It seems you did not like my new blue arrows ? :-) You have put back the > old icons in your patch ! Oops, the truth comes out, no, I didn't like them ;) I think they're a step backward in usability, with all the icons for all the functions on the form being the same graphic. And one of the things that actually drew me to Gambas in the first place (circa 0.50) was what I saw as the welcome dialog's professional looking design. But I didn't mean to include my changes to the welcome form in my patch because I felt it would be stepping on your toes. I mean to start making RPM's of an alternative version of the IDE with a different name so people don't think it's official (essentially, my MDI version for VB5/6 fans once I get something similar to docking working...) and I will probably still include the old version of the welcome screen there, if not with your existing icons for new/open/recent/quit then with the KDE Crystal equivalents. The RPM (at least the one I do for Mandrake) will still require both gambas and gambas-gui to be installed and will likely only consist of an executable and a readme - it will only be meant as a slightly more VB-ish interface to the same features. > I thought clearing the property dialog when no control is selected was... > clearer to the user. Except when they're trying to reference the contents of the property dialog when they're editing their code... ;) This isn't just some freaky usability idea on my part, I actually had a couple VB users I've turned on to Gambas ask me about it so I looked into fixing it. If you'd rather I didn't distribute an executable called "gambas" with these changes, I could release a new RPM without them and save the non-dialog-related parts of my patch for when I put my alternative IDE out there. I really don't want to upset anyone with my "easy migration for VB users" agenda. Rob From fj.cruz at ...179... Mon Jul 7 22:13:46 2003 From: fj.cruz at ...179... (F.J. Cruz) Date: Mon, 7 Jul 2003 22:13:46 +0200 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307071556.39723.sourceforge-raindog2@...94...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307072119.35049.gambas@...2...> <200307071556.39723.sourceforge-raindog2@...94...> Message-ID: <200307072213.46329.fj.cruz@...179...> Hi Rob, Maybe you must take a look to the gui package, I'm not sure about this, but when I want to start a new project, I can't select my home directory to set the project in it. What do you think about this? Bye. -- .-. /v\ L I N U X // \\ > S p a i n < /( )\ > Linux user #188524 < ^^-^^ > Linux machine #83532 < From gambas at ...2... Mon Jul 7 22:22:38 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 7 Jul 2003 22:22:38 +0200 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307071556.39723.sourceforge-raindog2@...94...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307072119.35049.gambas@...2...> <200307071556.39723.sourceforge-raindog2@...94...> Message-ID: <200307072222.38337.gambas@...2...> Le Lundi 7 Juillet 2003 21:56, Rob a ?crit : > On Monday 07 July 2003 15:19, Benoit Minisini wrote: > > It seems you did not like my new blue arrows ? :-) You have put back the > > old icons in your patch ! > > Oops, the truth comes out, no, I didn't like them ;) I think they're a > step backward in usability, with all the icons for all the functions on the > form being the same graphic. And one of the things that actually drew me > to Gambas in the first place (circa 0.50) was what I saw as the welcome > dialog's professional looking design. Maybe blues icons, like Fabien wanted to have ? I think this will come after a stable release of Gambas. > > But I didn't mean to include my changes to the welcome form in my patch > because I felt it would be stepping on your toes. I mean to start making > RPM's of an alternative version of the IDE with a different name so people > don't think it's official (essentially, my MDI version for VB5/6 fans once > I get something similar to docking working...) and I will probably still > include the old version of the welcome screen there, if not with your > existing icons for new/open/recent/quit then with the KDE Crystal > equivalents. The RPM (at least the one I do for Mandrake) will still > require both gambas and gambas-gui to be installed and will likely only > consist of an executable and a readme - it will only be meant as a slightly > more VB-ish interface to the same features. Don't forget to respect the GPL, i.e. explain what you have changed is not mine but yours and give the sources. I will certainly modify the interface of the IDE in the MDI way, but I want to make a stable release first. > > > I thought clearing the property dialog when no control is selected was... > > clearer to the user. > > Except when they're trying to reference the contents of the property dialog > when they're editing their code... ;) This isn't just some freaky > usability idea on my part, I actually had a couple VB users I've turned on > to Gambas ask me about it so I looked into fixing it. I think I see what you mean. I will change the property dialog so that it keeps displaying the properties of the last opened form as you did. > > If you'd rather I didn't distribute an executable called "gambas" with > these changes, I could release a new RPM without them and save the > non-dialog-related parts of my patch for when I put my alternative IDE out > there. I really don't want to upset anyone with my "easy migration for VB > users" agenda. In fact, I don't want to support what you have changed, because it is already hard for me to support what I did ! :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From Gambasfr at ...11... Mon Jul 7 22:17:30 2003 From: Gambasfr at ...11... (Fabien BODARD) Date: Mon, 7 Jul 2003 22:17:30 +0200 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307072119.35049.gambas@...2...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307072119.35049.gambas@...2...> Message-ID: <200307072217.30599.Gambasfr@...11...> Le Lundi 7 Juillet 2003 21:19, Benoit Minisini a ?crit : > Le Lundi 7 Juillet 2003 02:39, Rob a ?crit : > > I posted binary packages of Gambas 0.61 for Mandrake 9.1 here: > > > > http://www.kudla.org/index.php?wl_mode=more&wl_eid=20 > > > > Thanks to Benoit's Qt 3.0 patch, I'm hoping to have 9.0 RPM's working > > tonight or tomorrow. Speaking of patches.... > > > > In response to some people complaining that the open project dialog > > doesn't work right under Mandrake, I've included a patch in the > > gambas-gui RPM that fixes that problem along with a couple other minor > > things that irritate me (the properties dialog's habit of clearing when > > you switch to the code window being the only one I can think of offhand.) > > I included the patch below just in case it might be of use to someone > > else who doesn't use packages. I know Fabien's working on a new file > > dialog but in the meantime, hopefully this will do the trick without > > breaking too much. > > > > Rob > > Hi, Rob, > > It seems you did not like my new blue arrows ? :-) You have put back the > old icons in your patch ! > > I thought clearing the property dialog when no control is selected was... > clearer to the user. Hi Rob ... I'm always here... Please give me all the doleance(reported problem), on my project box, so i can make a better work( hem i work on a mandrake station !). My new open dialog is near to be ready now , please wait... Fabien This last week i've look for a kpart implementation too .... I must to learn kde api better. :-) ++ From sourceforge-raindog2 at ...94... Mon Jul 7 22:22:24 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 7 Jul 2003 16:22:24 -0400 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307072213.46329.fj.cruz@...179...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307071556.39723.sourceforge-raindog2@...94...> <200307072213.46329.fj.cruz@...179...> Message-ID: <200307071622.24072.sourceforge-raindog2@...94...> On Monday 07 July 2003 16:13, F.J. Cruz wrote: > Maybe you must take a look to the gui package, I'm not sure about this, but > when I want to start a new project, I can't select my home directory to set > the project in it. What do you think about this? It Works For Me(tm)... (see attached screenshot) Do you at least get this far or does it not even let you navigate to your home dir? Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas061newprj.png Type: image/png Size: 45320 bytes Desc: not available URL: From fj.cruz at ...179... Mon Jul 7 22:31:44 2003 From: fj.cruz at ...179... (F.J. Cruz) Date: Mon, 7 Jul 2003 22:31:44 +0200 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307071622.24072.sourceforge-raindog2@...94...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307072213.46329.fj.cruz@...179...> <200307071622.24072.sourceforge-raindog2@...94...> Message-ID: <200307072231.44084.fj.cruz@...179...> El Lunes, 7 de Julio de 2003 22:22, Rob escribi?: > On Monday 07 July 2003 16:13, F.J. Cruz wrote: > > Maybe you must take a look to the gui package, I'm not sure about this, > > but when I want to start a new project, I can't select my home directory > > to set the project in it. What do you think about this? > > It Works For Me(tm)... > > (see attached screenshot) Do you at least get this far or does it not even > let you navigate to your home dir? > > Rob I can navigate my home directory, but not select it to put my new project in it, like you can see in the attached screenshot. Neke. -- .-. /v\ L I N U X // \\ > S p a i n < /( )\ > Linux user #188524 < ^^-^^ > Linux machine #83532 < -------------- next part -------------- A non-text attachment was scrubbed... Name: gmbdialog.png Type: image/png Size: 57018 bytes Desc: not available URL: From gambas at ...2... Mon Jul 7 22:37:46 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 7 Jul 2003 22:37:46 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas Message-ID: <200307072237.46659.gambas@...2...> Hi, everyone. I would like to make a stable release of Gambas in the near future. Could you tell me what you think about that ? What must/should be fixed before ? What must/should be developed before ? Here are my proposals: #1 - Finish one or two things into the IDE, but not big changes. #2 - Gambas must compile and run on all (or almost) distributions. #3 - Make a Gambas library for storing configuration files and use it in the IDE and in the database manager. #4 - Allowing classes to have properties like controls. #5 - Clean the user management part of the MySQL driver. Just after the stable release, I will : - Start documenting component programming on the Wiki (at least !) - Make a gb.net component to make servers and access the Internet :-) I need the feedback of everyone, especially on the point #2, even the one of those who never send mails ;-) Hmmm... Maybe my last sentence is not good English... Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Mon Jul 7 22:31:58 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 7 Jul 2003 16:31:58 -0400 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307072222.38337.gambas@...2...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307071556.39723.sourceforge-raindog2@...94...> <200307072222.38337.gambas@...2...> Message-ID: <200307071631.58809.sourceforge-raindog2@...94...> On Monday 07 July 2003 16:22, Benoit Minisini wrote: > Maybe blues icons, like Fabien wanted to have ? I think this will come > after a stable release of Gambas. I understand how you would want to wait for a stable release before doing all this eye candy stuff... it's just I keep showing it to people as it is already and their eyes start popping out of their heads, so I want to make them pop out further.... > Don't forget to respect the GPL, i.e. explain what you have changed is not > mine but yours and give the sources. I'm kind of a GPL nut so I'll do the right thing when the time comes ;) > In fact, I don't want to support what you have changed, because it is > already hard for me to support what I did ! :-) OK then, I'll pull mine back this evening and re-release with just the dialog fix (I know Fabien would like me to wait on that too, so maybe for the short term I'll release gambas-gui entirely unpatched and put out a "hackbas" or something with the changes...) Thanks Rob From sourceforge-raindog2 at ...94... Mon Jul 7 22:43:37 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 7 Jul 2003 16:43:37 -0400 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307072231.44084.fj.cruz@...179...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307071622.24072.sourceforge-raindog2@...94...> <200307072231.44084.fj.cruz@...179...> Message-ID: <200307071643.37880.sourceforge-raindog2@...94...> On Monday 07 July 2003 16:31, F.J. Cruz wrote: > I can navigate my home directory, but not select it to put my new project > in it, like you can see in the attached screenshot. Aha. Notice how your home directory has the Gambas logo on it instead of a folder. It sounds like your home directory itself got marked as a gambas-project somehow (probably a file called .project sitting in it.) If you rename that file I bet the problem goes away. Rob From fj.cruz at ...179... Mon Jul 7 22:53:54 2003 From: fj.cruz at ...179... (F.J. Cruz) Date: Mon, 7 Jul 2003 22:53:54 +0200 Subject: [Gambas-user] gambas 0.60 Mandrake RPM's and a patch In-Reply-To: <200307071643.37880.sourceforge-raindog2@...94...> References: <200307062039.02050.sourceforge-raindog2@...94...> <200307072231.44084.fj.cruz@...179...> <200307071643.37880.sourceforge-raindog2@...94...> Message-ID: <200307072253.54965.fj.cruz@...179...> El Lunes, 7 de Julio de 2003 22:43, Rob escribi?: > On Monday 07 July 2003 16:31, F.J. Cruz wrote: > > I can navigate my home directory, but not select it to put my new project > > in it, like you can see in the attached screenshot. > > Aha. Notice how your home directory has the Gambas logo on it instead of a > folder. It sounds like your home directory itself got marked as a > gambas-project somehow (probably a file called .project sitting in it.) If > you rename that file I bet the problem goes away. > > Rob > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Have you read my mind? :-), I was thinking about this, while take a look at the screenshot and now I was going to hunt that file. Thanks Robs. Neke. -- .-. /v\ L I N U X // \\ > S p a i n < /( )\ > Linux user #188524 < ^^-^^ > Linux machine #83532 < From sourceforge-raindog2 at ...94... Tue Jul 8 05:31:00 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 7 Jul 2003 23:31:00 -0400 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <200307072237.46659.gambas@...2...> References: <200307072237.46659.gambas@...2...> Message-ID: <200307072331.00584.sourceforge-raindog2@...94...> On Monday 07 July 2003 16:37, Benoit Minisini wrote: > What must/should be fixed before ? > What must/should be developed before ? I think your proposals are very sound. To me, getting the NVidia thing fixed and getting database access and watched processes/devices/files working (all of which you have already done) gets you 90% or more of the way to a full commercial quality BASIC. Even now, most of the missing functionality can be implemented by the user with pipes and helper applications much more easily than would be possible under Windows with VB. What you've given us to date is way better and more stable than the 1.0 releases we've seen from some other companies and projects. > - Start documenting component programming on the Wiki (at least !) I hope I can make this easier for you before you make the switch! > - Make a gb.net component to make servers and access the Internet :-) This would take you from 90% to 95% in my book ;) I'm not even sure the last version of proper VB came with a socket component. All the VB programmers I've known have had to license them from third parties... Rob From kannangn at ...154... Tue Jul 8 06:06:09 2003 From: kannangn at ...154... (Kannan S) Date: Tue, 08 Jul 2003 10:06:09 +0600 (IST) Subject: [Gambas-user] report Message-ID: <1057638969.3f0a4a39bcaab@...180...> Hi Nicola, This is the topic at my office as well. I've designed an ready-to-use payroll application with mysql back-end. The current options are :- a. HTML output, load thru. konquror. b. Open Office integration, if available/could be incorporated as we speak, will open a new world of functionality, jus like MS-Office applications. One can export/write reports using the spreadsheet, mail-merge with the Writer, graphics and presentations and the list will jus get growing. c. The ever usual 'Text File Reporting'. Hope this list is an easy achievable one and no hard tasks to our elite - Benoit and the cream team. Regards to all, R S Kannan kannangn at ...154... kannan62k at ...43... ------------------------------------------------- Sify Mail - now with Anti-virus protection powered by Trend Micro, USA. Know more at http://mail.sify.com Sify Power mail- a Premium Service from Sify Mail! know more at http://mail.sify.com From wolf at ...182... Tue Jul 8 08:56:33 2003 From: wolf at ...182... (wolf) Date: Mon, 7 Jul 2003 23:56:33 -0700 Subject: [Gambas-user] Let's make a stable release of Gambas Message-ID: <200307080556.h685uAaT017399@...183...> Hello, Benoit Minisini, Excelent idea. hope it has properties similer to winsock. While your at it how about reworking the grid control to allow importing a CSV file to populate a grid :). ======= At 2003-07-07, 22:37:00 you wrote: ======= >Hi, everyone. > >I would like to make a stable release of Gambas in the near future. > >Could you tell me what you think about that ? > >What must/should be fixed before ? >What must/should be developed before ? > >Here are my proposals: > >#1 - Finish one or two things into the IDE, but not big changes. >#2 - Gambas must compile and run on all (or almost) distributions. >#3 - Make a Gambas library for storing configuration files and use it in the >IDE and in the database manager. >#4 - Allowing classes to have properties like controls. >#5 - Clean the user management part of the MySQL driver. > >Just after the stable release, I will : > >- Start documenting component programming on the Wiki (at least !) >- Make a gb.net component to make servers and access the Internet :-) > >I need the feedback of everyone, especially on the point #2, even the one of >those who never send mails ;-) > >Hmmm... Maybe my last sentence is not good English... > >Regards, > >-- >Benoit Minisini >mailto:gambas at ...1... > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user = = = = = = = = = = = = = = = = = = = = Best regards. wolf wolf at ...182... 2003-07-07 From dimitribellini at ...69... Tue Jul 8 13:17:47 2003 From: dimitribellini at ...69... (Dimitri Bellini) Date: Tue, 8 Jul 2003 11:17:47 +0000 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <200307072237.46659.gambas@...2...> References: <200307072237.46659.gambas@...2...> Message-ID: <200307081117.47843.dimitribellini@...69...> Hi Benoit i try with Gambas 0.61 the new function for collect from RS232 "OPEN "/dev/ttyS0" FOR WRITE WATCH AS #hPort" but is the same as previus version. Thanks in advance Dimitri PS: I use MDK 9.1 and Project Dialog seems work well :-) I prefer The old Style icon .... From gambas at ...2... Tue Jul 8 15:47:14 2003 From: gambas at ...2... (Benoit Minisini) Date: Tue, 8 Jul 2003 15:47:14 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <200307081117.47843.dimitribellini@...69...> References: <200307072237.46659.gambas@...2...> <200307081117.47843.dimitribellini@...69...> Message-ID: <200307081547.14512.gambas@...2...> Le Mardi 8 Juillet 2003 13:17, Dimitri Bellini a ?crit : > Hi Benoit > i try with Gambas 0.61 the new function for collect from RS232 "OPEN > "/dev/ttyS0" FOR WRITE WATCH AS #hPort" but is the same as previus version. > Thanks in advance > Dimitri > > PS: I use MDK 9.1 and Project Dialog seems work well :-) > I prefer The old Style icon .... > What does not work exactly ? If the previous version, this line didn't compile. Now it compiles, but what's wrong then ? I tested this feature by watching one of my opened virtual terminals. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Tue Jul 8 15:46:01 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 8 Jul 2003 09:46:01 -0400 Subject: [Gambas-user] report In-Reply-To: <1057638969.3f0a4a39bcaab@...180...> References: <1057638969.3f0a4a39bcaab@...180...> Message-ID: <200307080946.01297.sourceforge-raindog2@...94...> On Tuesday 08 July 2003 00:06, Kannan S wrote: > b. Open Office integration, if available/could be incorporated as we > speak, will open a new world of functionality, jus like MS-Office > applications. One can export/write reports using the spreadsheet, > mail-merge with the Writer, graphics and presentations and the list will > jus get growing. The OpenOffice Writer format (*.sxw) is pretty easy to understand if you make a report mockup looking how you want it and then unzip the .sxw file. It's just a particular flavor of XML. I've been looking into it for generating printed reports off of the web lately. Also, you know, Gambas does have a Printer object that looks like it works more or less the same way as VB's. I've written any number of reporting engines using the VB printer object and keeping track of cursor position etc. in class variables. For your early experimentation at least this should be easier than options A or B. Finally, though I'd no longer recommend it, it's really not that difficult to pick up enough Postscript to roll your own print output and pipe it to Ghostscript to get your choice of output format (e.g. PDF.) I've done this for two web apps as well, neither of which I own or have access to anymore. It would be the hardest of these options but if someone came up with a consistent way of doing this it could result in a toolkit-independent printer library for Gambas. Once someone comes up with some best practices (heh, buzzword) for generating reports in Gambas maybe we can develop a standard reporting library, if not an actual report generator helper app like the database manager. I'm not volunteering yet, but if it's not out there by the time I need to do one of these things, I'll be writing it anyway ;) Rob From sourceforge-raindog2 at ...94... Tue Jul 8 15:47:59 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 8 Jul 2003 09:47:59 -0400 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <200307080556.h685uAaT017399@...183...> References: <200307080556.h685uAaT017399@...183...> Message-ID: <200307080947.59014.sourceforge-raindog2@...94...> On Tuesday 08 July 2003 02:56, wolf wrote: > Excelent idea. hope it has properties similer to winsock. While your at it > how about reworking the grid control to allow importing a CSV file to > populate a grid :). You need like 2 lines of code and a loop to do that ;) Rob From dimitribellini at ...69... Tue Jul 8 21:46:53 2003 From: dimitribellini at ...69... (Dimitri Bellini) Date: Tue, 8 Jul 2003 19:46:53 +0000 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <200307081547.14512.gambas@...2...> References: <200307072237.46659.gambas@...2...> <200307081117.47843.dimitribellini@...69...> <200307081547.14512.gambas@...2...> Message-ID: <200307081946.53948.dimitribellini@...69...> Hi Benoit i have the same compile error from the previous version. Thanks Dimitri On Tuesday 08 July 2003 13:47, Benoit Minisini wrote: > Le Mardi 8 Juillet 2003 13:17, Dimitri Bellini a ?crit : > > Hi Benoit > > i try with Gambas 0.61 the new function for collect from RS232 "OPEN > > "/dev/ttyS0" FOR WRITE WATCH AS #hPort" but is the same as previus > > version. Thanks in advance > > Dimitri > > > > PS: I use MDK 9.1 and Project Dialog seems work well :-) > > I prefer The old Style icon .... > > What does not work exactly ? If the previous version, this line didn't > compile. Now it compiles, but what's wrong then ? > > I tested this feature by watching one of my opened virtual terminals. > > Regards, From karl.reinl at ...9... Tue Jul 8 22:13:52 2003 From: karl.reinl at ...9... (Charlie) Date: Tue, 08 Jul 2003 22:13:52 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas References: <200307072237.46659.gambas@...2...> Message-ID: <3F0B2600.4000205@...9...> Benoit Minisini schrieb: >Hi, everyone. > >I would like to make a stable release of Gambas in the near future. > >Could you tell me what you think about that ? > >What must/should be fixed before ? >What must/should be developed before ? > >Here are my proposals: > >#1 - Finish one or two things into the IDE, but not big changes. > For your idea to make a MDI IDE I'm not pleased ( I allways hated this MDI - Stuff, whitch encoles you) Is It possible ( like in VB ) to have the choice to do it in SDI or MDI ? A close all open windows in the IDE would be helpfull. And one of my favorits, is a tool in the IDE to 'pretty print' the souce code for more readabillity (<- arg...is that english ?) without too much keyboard working. I made one in gambas, but if you could include such one in the gambas - editor it will be more powerfull. Oh yes the gambas - editor, hes not bad, but is more 1994 stile, when DOS was the king. But never mind ! >#2 - Gambas must compile and run on all (or almost) distributions. >#3 - Make a Gambas library for storing configuration files and use it in the >IDE and in the database manager. > > A INIT-File component I think is a MUST for a stable release, here I like the Billows way ( not all is bad, what commes from Redmond, the keyboards and the GetProfiles for example) . I hadn't a go with the USE, but I think that must be that I was allways asking for, reusing written code in other projects. >#4 - Allowing classes to have properties like controls. >#5 - Clean the user management part of the MySQL driver. > >Just after the stable release, I will : > >- Start documenting component programming on the Wiki (at least !) >- Make a gb.net component to make servers and access the Internet :-) > >I need the feedback of everyone, especially on the point #2, even the one of >those who never send mails ;-) > >Hmmm... Maybe my last sentence is not good English... > >Regards, > Surrounds like 'look' 'Icons' in the IDE, is not my main problem. Functionality YES. Amicalement Charlie From sourceforge-raindog2 at ...94... Tue Jul 8 22:53:51 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 8 Jul 2003 16:53:51 -0400 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <3F0B2600.4000205@...9...> References: <200307072237.46659.gambas@...2...> <3F0B2600.4000205@...9...> Message-ID: <200307081653.51056.sourceforge-raindog2@...94...> On Tuesday 08 July 2003 16:13, Charlie wrote: > Is It possible ( like in VB ) to have the choice to do it in SDI or MDI ? This was one of the things I hope to do in my non-official Gambas. > And one of my favorits, is a tool in the IDE to 'pretty print' the souce > code for more readabillity (<- arg...is that english ?) without too much > keyboard working. It was closer to English than a lot of Americans ever manage. One of the things I liked most about VB's editor was how it would change the capitalization of the symbols after you leave a line, so you'd know immediately if you'd mistyped something. But I'm wondering if it would tie the Gambas editor too closely to the Gambas interpreter. > I made one in gambas, but if you could include such one in the gambas - > editor it will be more powerfull. Make it a library and I'll certainly try to jam it into my non-Gambas ;) > Oh yes the gambas - editor, hes not bad, but is more 1994 stile, when > DOS was the king. But never mind ! The first thing I do whenever I install Gambas on a fresh machine is change all the editor colors.... black text, white background, green comments, blue symbols.... and Vera Sans Mono as the font.... do that and I bet it won't feel like a DOS editor anymore ;) Rob From nferraz at ...184... Tue Jul 8 23:52:20 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 08 Jul 2003 18:52:20 -0300 Subject: [Gambas-user] Embedded Database Message-ID: <1057701143.536.56.camel@...185...> Hello! I've created a "wish list" topic in the wiki, but Rob told me that the mailing list would be a better place to discuss ideas. So, here I am! :) And here's my last suggestion: --- ``There is an small open source relational database called SQLite. "SQLite is a C library that implements an embeddable SQL database engine. Programs that link with the SQLite library can have SQL database access without running a separate RDBMS process." It would be interesting to add SQLite support to Gambas.'' Rob Kudla replied: ``We have talked about this on the mailing list too. SQLite is interesting and so is Embedded MySQL which might be easier to get working since Gambas already has a MySQL (and Postgres) component. Please join the mailing list! ;)'' --- One of the advantages of SQLite is the small memory footprint: less than 25K lines of C code. (http://www.hwaci.com/sw/sqlite/) []s Nelson From sourceforge-raindog2 at ...94... Wed Jul 9 00:36:59 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 8 Jul 2003 18:36:59 -0400 Subject: [Gambas-user] Embedded Database In-Reply-To: <1057701143.536.56.camel@...185...> References: <1057701143.536.56.camel@...185...> Message-ID: <200307081836.59771.sourceforge-raindog2@...94...> On Tuesday 08 July 2003 17:52, Nelson Ferraz wrote: > One of the advantages of SQLite is the small memory footprint: less than > 25K lines of C code. (http://www.hwaci.com/sw/sqlite/) I see that SQLite also keeps all its tables in one big file (which has its advantages and disadvantages, but for distributing Gambas apps I would think the advantages would be greater) and supports subqueries already (mysql won't get that till the next version, though it's been pushed back for 3 major releases already.) So there's definitely a lot more merit to SQLite than I gave it credit for, though again I suspect it may be faster/easier to just jam embedded MySQL support in there since there's already normal MySQL support. I'd be happy working with either one, I think. Rob From nferraz at ...184... Wed Jul 9 02:05:43 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 08 Jul 2003 21:05:43 -0300 Subject: [Gambas-user] Embedded Database In-Reply-To: <200307081836.59771.sourceforge-raindog2@...94...> References: <1057701143.536.56.camel@...185...> <200307081836.59771.sourceforge-raindog2@...94...> Message-ID: <1057709145.537.84.camel@...185...> > So there's definitely a lot more merit to SQLite than I gave it credit for, > though again I suspect it may be faster/easier to just jam embedded MySQL > support in there since there's already normal MySQL support. I'd be happy > working with either one, I think. Another cool feature is that SQLite is typeless: http://www.hwaci.com/sw/sqlite/datatypes.html Here's a simple C program that demonstrates how to use the C/C++ interface to SQLite: http://www.hwaci.com/sw/sqlite/quickstart.html []s Nelson From pchapman at ...129... Wed Jul 9 04:24:37 2003 From: pchapman at ...129... (Philip A. Chapman) Date: 08 Jul 2003 21:24:37 -0500 Subject: [Gambas-user] Embedded Database In-Reply-To: <1057709145.537.84.camel@...185...> References: <1057701143.536.56.camel@...185...> <200307081836.59771.sourceforge-raindog2@...94...> <1057709145.537.84.camel@...185...> Message-ID: <1057717477.6084.70.camel@...148...> Everyone, As promised when I first brought up SQLite, I have been working on the ability to use the SQLite library through Gambas' db library. However, going has been slow for two reasons. One, my C skills are not as advanced as my VB and Java :-) Two, I've got some paying work which is taking up a lot of my time. The typelessness of SQLite is an interesting item. The exception to typlessness is when there is a primary key of type integer. The SQLite library reports the type as whatever the user specified in the CREATE TABLE statement; which can be anything. Therefore, I think that the driver should only report two data types: varchar and integer (for primary keys which are integer). How to determine when it should report the data type as integer is a problem I have not yet solved. The driver may have to report everything as a varchar. I will continue as I can. However, if anyone with more skill in the C language and/or more time wants to take the lead on this, I certainly would not be offended! On Tue, 2003-07-08 at 19:05, Nelson Ferraz wrote: > > So there's definitely a lot more merit to SQLite than I gave it credit for, > > though again I suspect it may be faster/easier to just jam embedded MySQL > > support in there since there's already normal MySQL support. I'd be happy > > working with either one, I think. > > Another cool feature is that SQLite is typeless: > > http://www.hwaci.com/sw/sqlite/datatypes.html > > Here's a simple C program that demonstrates how to use the C/C++ > interface to SQLite: > > http://www.hwaci.com/sw/sqlite/quickstart.html > > []s > > Nelson > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Philip A. Chapman Application Development: Java, Visual Basic, PostgreSQL, MySQL, MSSQL Linux, Windows 9x, Windows NT, Windows 2000, Windows XP -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From lasse at ...186... Wed Jul 9 13:59:54 2003 From: lasse at ...186... (Lasse Kim Christiansen) Date: Wed, 9 Jul 2003 13:59:54 +0200 Subject: [Gambas-user] How to create a graphical tail-like function Message-ID: <1057751994.3f0c03ba78577@...187...> I'm in the process of trying to build (for fun) a tool which will show incoming entries from syslog as well as trigger a popup on a specific text pattern match. My initial problem is how i should create the tail function. Which will open a file and continuously print new lines as they end up in the syslog. Regards Lasse From Carlos_Wagner at ...188... Wed Jul 9 19:21:50 2003 From: Carlos_Wagner at ...188... (Carlos Wagner) Date: Wed, 9 Jul 2003 14:21:50 -0300 Subject: [Gambas-user] qeventloop.h: No such file or directory Message-ID: <794C454376DCD6118B3200104B86ECFF028D9863@...189...> Dear Beno?t: Gambas is a great idea. I am trying to install and I get this error message : c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/lib/qt3/include/ -I../../../src/share -pipe -Wall -fno-exceptions -g -O0 -c main.cpp -fPIC -DPIC -o main.lo main.cpp:44:24: qeventloop.h: No such file or directory I am using Linux RedHat 8 and is up-to-date. Do you know why? Thank you, Carlos Eduardo Wagner carlos_wagner at ...188... From pchapman at ...129... Wed Jul 9 19:42:03 2003 From: pchapman at ...129... (Philip A. Chapman) Date: 09 Jul 2003 12:42:03 -0500 Subject: [Gambas-user] qeventloop.h: No such file or directory In-Reply-To: <794C454376DCD6118B3200104B86ECFF028D9863@...189...> References: <794C454376DCD6118B3200104B86ECFF028D9863@...189...> Message-ID: <1057772523.19957.34.camel@...130...> Carlos, From gambas at ...2... Wed Jul 9 19:55:04 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 9 Jul 2003 19:55:04 +0200 Subject: [Gambas-user] Embedded Database In-Reply-To: <1057717477.6084.70.camel@...148...> References: <1057701143.536.56.camel@...185...> <1057709145.537.84.camel@...185...> <1057717477.6084.70.camel@...148...> Message-ID: <200307091955.04389.gambas@...2...> Le Mercredi 9 Juillet 2003 04:24, Philip A. Chapman a ?crit : > Everyone, > > As promised when I first brought up SQLite, I have been working on the > ability to use the SQLite library through Gambas' db library. However, > going has been slow for two reasons. One, my C skills are not as > advanced as my VB and Java :-) Two, I've got some paying work which is > taking up a lot of my time. > > The typelessness of SQLite is an interesting item. The exception to > typlessness is when there is a primary key of type integer. The SQLite > library reports the type as whatever the user specified in the CREATE > TABLE statement; which can be anything. Therefore, I think that the > driver should only report two data types: varchar and integer (for > primary keys which are integer). How to determine when it should report > the data type as integer is a problem I have not yet solved. The driver > may have to report everything as a varchar. Gambas database drivers NEED datatypes. Hopefully, I think there is a workaround : Datatypes are specified in the CREATE TABLE statement, even if they are ignored by SQLite. The description of the table is stored in a SQLite system table WITH the original SQL statement that created the table. So, by analyzing the statement, we can deduce the type of each field. This analyze could be cached by the driver to speed things. > > I will continue as I can. However, if anyone with more skill in the C > language and/or more time wants to take the lead on this, I certainly > would not be offended! > It is an excellent way to learn C. But I must admit writing a database driver for Gambas needs a good understanding of what you do ! So be careful... And ask me all the questions you need. Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Wed Jul 9 19:59:18 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 9 Jul 2003 13:59:18 -0400 Subject: [Gambas-user] probably unreasonable requests Message-ID: <200307091359.18669.sourceforge-raindog2@...94...> So what are the chances that (a) Gambas' parser could be tweaked such that rather than erroring out if you try to refer to a class with an initial lowercase letter (the only case-sensitive part of the language as far as I can see) it tries to evaluate the reference as a symbol and if it fails, then check case insensitively against the available classes? (back in the commodore 64 BASIC days we used to call this an "error wedge"... ;) ) (b) event handlers such as KeyPress could optionally not automatically call the default event handler for the widget from which their class is derived? For example, if you want to implement a custom copy and paste routine, currently when the user types Ctl-V and your event handler does its thing, after it's done the control which generated the event gets the contents of the clipboard pasted to it again. Or more simply, if you want to put validation on a field such that a user is unable to type anything but digits, currently it's impossible. In VB, there's a ByRef "Cancel" parameter passed to the event handler which obviously wouldn't work in Gambas, but a mechanism to allow this would be nice. (c) in combination with (b), is it possible for a form to receive events before its child controls do? I know Qt has the concept of an event filter but I don't know how it would fit into Gambas' Qt component. I know, these are probably all issues for after the stable release, but I wanted to get them out there before I forgot. Rob From gambas at ...2... Wed Jul 9 23:10:53 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 9 Jul 2003 23:10:53 +0200 Subject: [Gambas-user] qeventloop.h: No such file or directory In-Reply-To: <1057772523.19957.34.camel@...130...> References: <794C454376DCD6118B3200104B86ECFF028D9863@...189...> <1057772523.19957.34.camel@...130...> Message-ID: <200307092310.53229.gambas@...2...> Le Mercredi 9 Juillet 2003 19:42, Philip A. Chapman a ?crit : > Carlos, > > From the "Important Notes" page on the gambas website > http://gambas.sourceforge.net/, 8.0 does not work because of strange > linking errors. Redhat 9.0 does work *BUT* you must upgrade your Qt > library from rawhide > http://distro.ibiblio.org/pub/Linux/distributions/redhat/rawhide/ before > compiling. > > Updating from rawhide can be a pain. The way I did it was to install > the apt-get port from freshrpms.net. I then updated my > /etc/apt/sources.list file. I commented out the updates from > ayo.freshrpms.net: > > #rpm http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms > #rpm-src http://ayo.freshrpms.net redhat/9/i386 os updates freshrpms > > and added an approriate rawhide apt repository: > > rpm ftp://ftp.uninett.no/pub/linux/apt redhat/rawhide/en/i386/redhat os > rpm-src ftp://ftp.uninett.no/pub/linux/apt redhat/rawhide/en/i386/redhat > os > > That is not three lines, but two. The last line is long and wrapped. > > Then issue the command apt-get install qt > > On Wed, 2003-07-09 at 12:21, Carlos Wagner wrote: > > Dear Beno?t: > > > > Gambas is a great idea. I am trying to install and I get this error > > message > > > > > > c++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/lib/qt3/include/ > > -I../../../src/share -pipe -Wall -fno-exceptions -g -O0 -c main.cpp > > -fPIC -DPIC -o main.lo > > main.cpp:44:24: qeventloop.h: No such file or directory > > > > I am using Linux RedHat 8 and is up-to-date. Do you know why? > > > > Thank you, > > > > Carlos Eduardo Wagner > > carlos_wagner at ...188... > > > > The problems come from code into the qt component that is not compatible with qt 3.0. I will try to make this component compatible with qt 3.0... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Wed Jul 9 23:19:53 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 9 Jul 2003 23:19:53 +0200 Subject: [Gambas-user] probably unreasonable requests In-Reply-To: <200307091359.18669.sourceforge-raindog2@...94...> References: <200307091359.18669.sourceforge-raindog2@...94...> Message-ID: <200307092319.53862.gambas@...2...> Le Mercredi 9 Juillet 2003 19:59, Rob a ?crit : > So what are the chances that > > (a) Gambas' parser could be tweaked such that rather than erroring out if > you try to refer to a class with an initial lowercase letter (the only > case-sensitive part of the language as far as I can see) it tries to > evaluate the reference as a symbol and if it fails, then check case > insensitively against the available classes? (back in the commodore 64 > BASIC days we used to call this an "error wedge"... ;) ) > Yes, this is a problem. I could not easily solve it, because it breaks the complete independance that exists between each compiled file. In other words, I must tell the compiler which symbols are classes when it compiles a file, because it cannot guess alone. I may fix it in the future... > (b) event handlers such as KeyPress could optionally not automatically call > the default event handler for the widget from which their class is derived? > For example, if you want to implement a custom copy and paste routine, > currently when the user types Ctl-V and your event handler does its thing, > after it's done the control which generated the event gets the contents of > the clipboard pasted to it again. Or more simply, if you want to put > validation on a field such that a user is unable to type anything but > digits, currently it's impossible. In VB, there's a ByRef "Cancel" > parameter passed to the event handler which obviously wouldn't work in > Gambas, but a mechanism to allow this would be nice. Declare the KeyPress event handler as a function that returns a boolean, and then returns TRUE to cancel the event propagation. > > (c) in combination with (b), is it possible for a form to receive events > before its child controls do? I know Qt has the concept of an event filter > but I don't know how it would fit into Gambas' Qt component. No. What for ? > > I know, these are probably all issues for after the stable release, but I > wanted to get them out there before I forgot. > > Rob > > > -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Thu Jul 10 00:04:27 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 9 Jul 2003 18:04:27 -0400 Subject: [Gambas-user] probably unreasonable requests In-Reply-To: <200307092319.53862.gambas@...2...> References: <200307091359.18669.sourceforge-raindog2@...94...> <200307092319.53862.gambas@...2...> Message-ID: <200307091804.27639.sourceforge-raindog2@...94...> On Wednesday 09 July 2003 17:19, Benoit Minisini wrote: > Declare the KeyPress event handler as a function that returns a boolean, > and then returns TRUE to cancel the event propagation. Thanks! I added a line to the event declaration page on the wiki to make this more obvious. It works like a champ. > > (c) in combination with (b), is it possible for a form to receive events > > before its child controls do? I know Qt has the concept of an event > > filter but I don't know how it would fit into Gambas' Qt component. > No. What for ? For example, I expect to be working on a program (re-implementation of a VB app) that makes an SSH connection to a remote machine (using a Process object), and lets you interact with the process on the remote machine. Rather than using the method in the example terminal applet where you have a textbox for the user's input, I'd like to catch keypress events as they happen and forward them to the ssh process, like in konsole or any other terminal emulator. VB has the "KeyPreview" property on forms which causes this to happen when set to true. I have done this in other languages/toolkits by making a transparent label that accepted keypress events and placing it over the output widget. Gambas labels seem to be opaque currently though, and at any rate it's not an ideal solution (e.g. you can't select text on the underlying output widget.) However, I see now that I can use the method from your response to (b) to get around this pretty easily, and the use of the "event group" feature should take care of most other applications that use the VB KeyPreview form property. Other VB programmers have asked me about it, though, so I'll have to revisit this after a few months to see if I've run into any cases where this method wouldn't work. Rob From nferraz at ...184... Fri Jul 11 02:55:40 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 10 Jul 2003 21:55:40 -0300 Subject: [Gambas-user] OFF: Perl 6 Design Philosophy Message-ID: <1057884940.592.39.camel@...57...> Hi, This article is a little off-topic, but I think you could find it interesting, since it summarizes some principles of natural languages and their impact on a programming language design. For instance, "natural languages grow and change over time. They respond to changes in the environment and to internal pressure. New vocabulary springs up to handle new communication needs. Old idioms die off as people forget them, and newer, more relevant idioms take their place. Complex parts of the system tend to break down and simplify over time. Change is what keeps language active and relevant to the people who use it. Only dead languages stop changing." The complete article is here: http://www.perl.com/pub/a/2003/06/25/perl6essentials.html From sourceforge-raindog2 at ...94... Fri Jul 11 03:44:05 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 10 Jul 2003 21:44:05 -0400 Subject: [Gambas-user] OFF: Perl 6 Design Philosophy In-Reply-To: <1057884940.592.39.camel@...57...> References: <1057884940.592.39.camel@...57...> Message-ID: <200307102144.05871.sourceforge-raindog2@...94...> On Thursday 10 July 2003 20:55, Nelson Ferraz wrote: > This article is a little off-topic, but I think you could find it > interesting, since it summarizes some principles of natural languages > and their impact on a programming language design. Of course (and speaking as a tremendous Perl fan here) I'm not sure Perl 6 should be held up as a *successful* evolutionary design. ;) Rob From sourceforge-raindog2 at ...94... Fri Jul 11 07:02:44 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 11 Jul 2003 01:02:44 -0400 Subject: [Gambas-user] using Perl to do regexes in Gambas Message-ID: <200307110102.44545.sourceforge-raindog2@...94...> I wrote a simple proof of concept of a (theoretically) reusable Gambas class that appears to the user to implement Perl regular expression matching, and a demo form with which you can try it out. It does this Perl stuff, conveniently enough, by EXEC'ing perl and passing stuff through it. I wouldn't recommend using it for big jobs because there's obviously a lot of overhead, but I think it could be a good prototype of an eventual Gambas regular expression class and let's face it, there are some times when you just want to write http://[^\s">]+ rather than 15 lines of code ;) Details and source here: http://www.kudla.org/blog.php?wl_mode=more&wl_eid=21 Rob From nferraz at ...184... Fri Jul 11 08:12:36 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 11 Jul 2003 03:12:36 -0300 Subject: [Gambas-user] using Perl to do regexes in Gambas In-Reply-To: <200307110102.44545.sourceforge-raindog2@...94...> References: <200307110102.44545.sourceforge-raindog2@...94...> Message-ID: <1057903955.23078.44.camel@...57...> > I wrote a simple proof of concept of a (theoretically) reusable Gambas class > that appears to the user to implement Perl regular expression matching, and a > demo form with which you can try it out. Cool! BTW, I've found this open source library called PCRE, which is used by projects like Python, Apache and PHP. "The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX regular expression API. The PCRE library is free, even for building commercial software." http://www.pcre.org/ []s Nelson From nicola.bisetto at ...69... Fri Jul 11 16:59:52 2003 From: nicola.bisetto at ...69... (Nicola Bisetto) Date: Fri, 11 Jul 2003 14:59:52 +0000 Subject: [Gambas-user] Printer object Message-ID: <200307111459.52989.nicola.bisetto@...69...> Some one may explain to me how to use the Printer object for printing strings and graphics. Thank you Nicola From bernard.pre at ...62... Fri Jul 11 18:39:06 2003 From: bernard.pre at ...62... (Bernard PRE) Date: Fri, 11 Jul 2003 18:39:06 +0200 Subject: [Gambas-user] Pb with version 0.61 - redhat 9.0 Message-ID: Hi, I have no pb, no warning when compiling, but when i execute gambas i have : "/usr/bin/gbx: relocation error :/usr/lib/qt-3.1/lib/libqt-mt.so.3: undefined symbol: _ZNs4_Rep11_S_terminalE" Help !!! Thanks Bernard From sourceforge-raindog2 at ...94... Fri Jul 11 18:38:33 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 11 Jul 2003 12:38:33 -0400 Subject: [Gambas-user] How to create a graphical tail-like function In-Reply-To: <1057751994.3f0c03ba78577@...187...> References: <1057751994.3f0c03ba78577@...187...> Message-ID: <200307111238.33488.sourceforge-raindog2@...94...> On Wednesday 09 July 2003 07:59, Lasse Kim Christiansen wrote: > My initial problem is how i should create the tail function. Which will > open a file and continuously print new lines as they end up in the syslog. Well, it's a little more than just a function, but you could just do EXEC [ "tail", "-f", "/var/log/syslog" ] FOR READ AS MyProcess and then public sub Process_Write(Data as string) ' append the data to whatever display control you're using, and then... if Data like "somepattern" then Message.info(data) end Of course you could probably do things easier with the watched files functionality which I haven't tried yet. Benoit, I noticed when messing with that perl regex thing that the Process.Write event seems to be static, i.e. it calls Process_Write back rather than (for example) MyProcess_Write. So if you have more than one process open all the output would end up in the same handler function. Is this right? Rob From gambas at ...2... Sat Jul 12 21:11:08 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 12 Jul 2003 21:11:08 +0200 Subject: [Gambas-user] Pb with version 0.61 - redhat 9.0 In-Reply-To: References: Message-ID: <200307122111.08241.gambas@...2...> Le Vendredi 11 Juillet 2003 18:39, Bernard PRE a ?crit : > Hi, > > I have no pb, no warning when compiling, but when i execute gambas i have : > "/usr/bin/gbx: relocation error :/usr/lib/qt-3.1/lib/libqt-mt.so.3: > undefined symbol: _ZNs4_Rep11_S_terminalE" > > Help !!! > > Thanks Bernard > Hi Bernard, You must upgrade your qt library. There is a link about that in the distribution notes on the website. Search the mailing-list, other Redhat users may have solved this problem. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Sat Jul 12 21:13:22 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 12 Jul 2003 21:13:22 +0200 Subject: [Gambas-user] Printer object In-Reply-To: <200307111459.52989.nicola.bisetto@...69...> References: <200307111459.52989.nicola.bisetto@...69...> Message-ID: <200307122113.22847.gambas@...2...> Le Vendredi 11 Juillet 2003 16:59, Nicola Bisetto a ?crit : > Some one may explain to me how to use the Printer object > for printing strings and graphics. > > Thank you > Nicola > > Printer.Page = "A4" Printer.Orientation = ... Printer.Resolution = ... ... Draw.Begin(Printer) ' draw page 1 with the Draw class Printer.NewPage ' draw page 2 with the Draw class Draw.End Be careful, the Printer class was not very tested, so you may find bugs. If so, write me so that I fix them. Regards, -- Benoit Minisini mailto:gambas at ...1... From karl.reinl at ...9... Sat Jul 12 21:21:07 2003 From: karl.reinl at ...9... (Charlie) Date: Sat, 12 Jul 2003 21:21:07 +0200 Subject: [Gambas-user] Re: gambas-0.61 for qt-3.0.x References: <3F0B1D03.8090805@...9...> <200307121508.51522.gambas@...2...> Message-ID: <3F105FA3.6080506@...9...> Benoit Minisini schrieb: >Le Mardi 8 Juillet 2003 21:35, vous avez ?crit : > > >>Salut Beno?t, >> >>sorry to send you that >> >>the attached error happend on my SuSE 7.2 , KDE 2.2.2 , qt-3.0.5 and gcc >>2.95.x >> >>I had a go with your 2 patched files copied to ...../src/lib/qt >> >>amicalement >> >>Charlie >> >> > >Hi, Charlie, > >Here is a patch that should solve your problem. >Tell me if it works with qt 3.0. > >Regards, > > Salut Beno?t, thanks the patch is OK, make finished without ERROR. But make install don't finish not properly while creating library info (see attachement) I configured without kde (running kde 2.2.2) without pgsql (no devel installed) I thing for a box with kde3 it will run. amicalement Charlie -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: make_install.log URL: From gambas at ...2... Sat Jul 12 21:51:43 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 12 Jul 2003 21:51:43 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <200307081946.53948.dimitribellini@...69...> References: <200307072237.46659.gambas@...2...> <200307081547.14512.gambas@...2...> <200307081946.53948.dimitribellini@...69...> Message-ID: <200307122151.43152.gambas@...2...> Le Mardi 8 Juillet 2003 21:46, Dimitri Bellini a ?crit : > Hi Benoit > i have the same compile error from the previous version. > Thanks > Dimitri > Could you send me your project at my own e-mail address ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Sat Jul 12 21:57:15 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 12 Jul 2003 21:57:15 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <200307081653.51056.sourceforge-raindog2@...94...> References: <200307072237.46659.gambas@...2...> <3F0B2600.4000205@...9...> <200307081653.51056.sourceforge-raindog2@...94...> Message-ID: <200307122157.15997.gambas@...2...> Le Mardi 8 Juillet 2003 22:53, Rob a ?crit : > On Tuesday 08 July 2003 16:13, Charlie wrote: > > Is It possible ( like in VB ) to have the choice to do it in SDI or MDI ? > > This was one of the things I hope to do in my non-official Gambas. > > > And one of my favorits, is a tool in the IDE to 'pretty print' the souce > > code for more readabillity (<- arg...is that english ?) without too much > > keyboard working. > > It was closer to English than a lot of Americans ever manage. One of the > things I liked most about VB's editor was how it would change the > capitalization of the symbols after you leave a line, so you'd know > immediately if you'd mistyped something. But I'm wondering if it would tie > the Gambas editor too closely to the Gambas interpreter. I think VB achieves that by partly compiling the code as you type it. I can't do that in Gambas, because everything is separated: interpreter, compiler, IDE. In VB, everything is the same program, so it is easier for them to have done that ! > > > I made one in gambas, but if you could include such one in the gambas - > > editor it will be more powerfull. > > Make it a library and I'll certainly try to jam it into my non-Gambas ;) If you have made a Gambas "pretty-printer" that works, send it me, and I will add it in the Tool menu of the IDE. > > > Oh yes the gambas - editor, hes not bad, but is more 1994 stile, when > > DOS was the king. But never mind ! > > The first thing I do whenever I install Gambas on a fresh machine is change > all the editor colors.... black text, white background, green comments, > blue symbols.... and Vera Sans Mono as the font.... do that and I bet it > won't feel like a DOS editor anymore ;) This remark gives me an idea :-) > > Rob > > -- Benoit Minisini mailto:gambas at ...1... From ozdilt at ...190... Sun Jul 13 12:09:44 2003 From: ozdilt at ...190... (=?windows-1254?B?1lpE3UwgVEFORVLd?=) Date: Sun, 13 Jul 2003 13:09:44 +0300 Subject: [Gambas-user] GAMBAS DOES NOT START Message-ID: <000801c34926$e353a300$0100a8c0@...191...> Hi, i did install gambas 6.0 from a rpm for mandrake 9.1 by using the software installing wizard in mandrake. then i installed gui add on when i type gambas to run it it says cannot load cconfig class or sth else like that what did i do wrong? thanx ozdil --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.493 / Virus Database: 292 - Release Date: 25.06.2003 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gardners at ...193... Mon Jul 14 03:34:23 2003 From: gardners at ...193... (Paul Gardner-Stephen) Date: Mon, 14 Jul 2003 11:04:23 +0930 (CST) Subject: [Gambas-user] GAMBAS stable release Message-ID: <200307140134.h6E1YNSx030348@...192...> Hi, I think an important step if you are going to make a stable release is that you do make the move to CVS, so that you can easily track the concurrent versions, and push bug fixes from one to another as appropriate. Besides that I think it would be good, but okay to wait for the next version, to get the endianness problems resolved to get good cross-platform support. I think this cross-platform support is an important feature of GAMBAS which has not been fully exploited yet. Having someone make a Windows version would be an excellent step forward in this area. Paul. From gambas at ...2... Mon Jul 14 13:44:16 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 14 Jul 2003 13:44:16 +0200 Subject: [Gambas-user] GAMBAS stable release In-Reply-To: <200307140134.h6E1YNSx030348@...192...> References: <200307140134.h6E1YNSx030348@...192...> Message-ID: <200307141344.17088.gambas@...2...> Le Lundi 14 Juillet 2003 03:34, Paul Gardner-Stephen a ?crit : > Hi, Hi, Paul, > > I think an important step if you are going to make a stable release is that > you do make the move to CVS, so that you can easily track the concurrent > versions, and push bug fixes from one to another as appropriate. > > Besides that I think it would be good, but okay to wait for the next > version, to get the endianness problems resolved to get good cross-platform > support. I think this cross-platform support is an important feature of > GAMBAS which has not been fully exploited yet. Having someone make a > Windows version would be an excellent step forward in this area. > > Paul. > Did you try to compile the last version of Gambas on a big-endian platform ? Elsewhere, you are right. I think I will make a CVS of Gambas for the 1.0 version, so that some people can port it to other platforms. But I think I will keep the unstable version on my hard disk, because I change too many internal things at the moment ! As for the Windows version, I'm not interested in doing such a job, but I will help anybody else who wants to do it. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Mon Jul 14 19:24:14 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 14 Jul 2003 19:24:14 +0200 Subject: [Gambas-user] gambas 0.62 Message-ID: <200307141924.14413.gambas@...2...> Hi world, gambas 0.62 is out ! You will find : - New icons in the welcome dialog. - New functions in the project browser. - A separated toolbar for the icon editor. - A simplified project properties dialog. - A fixed USE instruction. - The brazilian translation made by Nelson Ferraz. - Compatibility with qt 3.0 - I hope ;-) - A new gambas configuration file format. Note that the contents of the Wiki included in the source package is never up to date. Always refer to the Internet Wiki to have the last changes. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Mon Jul 14 19:39:29 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 14 Jul 2003 19:39:29 +0200 Subject: [Gambas-user] Re: Gambas and media files In-Reply-To: <5.2.0.9.0.20030713104216.00cec958@...196...> References: <5.2.0.9.0.20030713104216.00cec958@...196...> Message-ID: <200307141939.29948.gambas@...2...> Le Dimanche 13 Juillet 2003 16:48, vous avez ?crit : > Hi, > > I didn't see any references to playing a sound file, displaying graphics or > animation/video files. Can this be done within the Gambas environment? How > easy is it to distribute Gambas apps? I have been interested in Linux but > have been waiting for a VB like development environment before jumping in. > > thanks. > > Jim Allison Hi Jim, There is nothing completely integrated in Gambas for that at the moment. But you can play videos in Gambas with mplayer this way: 1) Create a form with a void Label named lblMPlayer, for example. 2) Do: EXEC [ "mplayer", "-wid", lblMPlayer.Id, "myvideo.avi" ] If you want to control mplayer, it has a slave mode. EXEC [ "mplayer", "-wid", lblMPlayer.Id, "-slave", "myvideo.avi" ] FOR WRITE AS #hProcess hProcess.Send("pause\n") ' Pause the movie Type "man mplayer" to get all the commands. To run a gambas app on a computer, this computer need having gambas installed. If this is done, then you just have to copy your executable to distribute it. Everything is included inside. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Tue Jul 15 00:18:29 2003 From: gambas at ...2... (Benoit Minisini) Date: Tue, 15 Jul 2003 00:18:29 +0200 Subject: [Gambas-user] Re: Gambas and media files In-Reply-To: <200307141939.29948.gambas@...2...> References: <5.2.0.9.0.20030713104216.00cec958@...196...> <200307141939.29948.gambas@...2...> Message-ID: <200307150018.29183.gambas@...2...> Le Lundi 14 Juillet 2003 19:39, Benoit Minisini a ?crit : > Le Dimanche 13 Juillet 2003 16:48, vous avez ?crit : > > Hi, > > > > I didn't see any references to playing a sound file, displaying graphics > > or animation/video files. Can this be done within the Gambas environment? > > How easy is it to distribute Gambas apps? I have been interested in Linux > > but have been waiting for a VB like development environment before > > jumping in. > > > > thanks. > > > > Jim Allison > > Hi Jim, > > There is nothing completely integrated in Gambas for that at the moment. > > But you can play videos in Gambas with mplayer this way: > > 1) Create a form with a void Label named lblMPlayer, for example. > 2) Do: EXEC [ "mplayer", "-wid", lblMPlayer.Id, "myvideo.avi" ] > > If you want to control mplayer, it has a slave mode. > > EXEC [ "mplayer", "-wid", lblMPlayer.Id, "-slave", "myvideo.avi" ] FOR > WRITE AS #hProcess > > hProcess.Send("pause\n") ' Pause the movie > > Type "man mplayer" to get all the commands. > > To run a gambas app on a computer, this computer need having gambas > installed. If this is done, then you just have to copy your executable to > distribute it. Everything is included inside. > > Regards, I have just tested what I said, and it does not works exactly this way. I know I should do the contrary, testing, then talking... :-) In fact, mplayer accepts being embedded into a window, but it hides the window it is embedded into without letting QT seeing that. So this window must be hidden and shown each time a movie starts, to force the window to be visible ! Moreover, the window passed to mplayer must no redraw itself. So I have modified the DrawingArea widget so that when it is disabled, it draws nothing on the screen. I have wrote a MoviePlayer example that will come with the next version of gambas. Regards, -- Benoit Minisini mailto:gambas at ...1... From gardners at ...193... Tue Jul 15 03:39:11 2003 From: gardners at ...193... (Paul Gardner-Stephen) Date: Tue, 15 Jul 2003 11:09:11 +0930 (CST) Subject: [Gambas-user] GAMBAS stable release Message-ID: Hi Benoit, > Did you try to compile the last version of Gambas on a big-endian > platform? I am about to try 0.62 today if I get the time. I am somewhat busy these days :/ > Elsewhere, you are right. I think I will make a CVS of Gambas for the > 1.0 version, so that some people can port it to other platforms. Goodo :) > But I think I will keep the unstable version on my hard disk, because I > change too many internal things at the moment ! Okay. It would still be nice if you push each 0.x version onto the cvs tree when it is released though. > As for the Windows version, I'm not interested in doing such a job, but I don't blame you ;) > I will help anybody else who wants to do it. :) Any enthusiastic volunteers? Paul. From nferraz at ...184... Tue Jul 15 07:10:28 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 15 Jul 2003 02:10:28 -0300 Subject: [Gambas-user] Gambas 0.62 - error in Project.Main.84 In-Reply-To: <200307141924.14413.gambas@...2...> References: <200307141924.14413.gambas@...2...> Message-ID: <1058245828.18584.83.camel@...57...> I got the following error when I tried to run Gambas 0.62: $ gambas Project.Main.84: #8: Illegal instruction If I understand this message correctly, it must be an error in app/gambas/Project.module line 84, which is: USE "Util" (BTW, I think this message could be better described as "Illegal instruction 'USE' found at Project.Main, line 84".) []s Nelson From gambas at ...2... Tue Jul 15 13:55:06 2003 From: gambas at ...2... (Benoit Minisini) Date: Tue, 15 Jul 2003 13:55:06 +0200 Subject: [Gambas-user] Gambas 0.62 - error in Project.Main.84 In-Reply-To: <1058245828.18584.83.camel@...57...> References: <200307141924.14413.gambas@...2...> <1058245828.18584.83.camel@...57...> Message-ID: <200307151355.07092.gambas@...2...> Le Mardi 15 Juillet 2003 07:10, Nelson Ferraz a ?crit : > I got the following error when I tried to run Gambas 0.62: > > $ gambas > Project.Main.84: #8: Illegal instruction > > If I understand this message correctly, it must be an error in > app/gambas/Project.module line 84, which is: > > USE "Util" > > (BTW, I think this message could be better described as "Illegal > instruction 'USE' found at Project.Main, line 84".) > > []s > > Nelson > Hi, Nelson. Everything seems good on my box :-) The error #8 generally implies that you try to execute a gambas program compiled with a compiler version different from the interpreter version. Type /usr/bin/gbx -v to get the interpreter version, /usr/bin/gbc -v to get the compiler version. Regards, -- Benoit Minisini mailto:gambas at ...1... From nferraz at ...184... Tue Jul 15 16:26:08 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 15 Jul 2003 11:26:08 -0300 Subject: [Gambas-user] Gambas 0.62 - error in Project.Main.84 In-Reply-To: <200307151355.07092.gambas@...2...> References: <200307141924.14413.gambas@...2...> <1058245828.18584.83.camel@...57...> <200307151355.07092.gambas@...2...> Message-ID: <1058279168.586.39.camel@...57...> > The error #8 generally implies that you try to execute a gambas program > compiled with a compiler version different from the interpreter version. > > Type /usr/bin/gbx -v to get the interpreter version, /usr/bin/gbc -v to get > the compiler version. The first result was: $ /usr/bin/gbc -v gbc: project file not found: /home/nferraz/.project $ /usr/bin/gbx -v ERROR: #45: File or directory does not exist: /home/nferraz/.project Then I figured out that the -v option stands for "--verbose", not "--version", I tried again with: $ /usr/bin/gbc --version gbc-0.62 $ /usr/bin/gbx --version ERROR: #45: File or directory does not exist: /home/nferraz/.project $ /usr/bin/gbx -V # uppercase gbx-0.62 So, versions seem okay. Then, I went to the ~/tmp/gambas-0.62/app/gambas directory and typed: $ /usr/bin/gbx ERROR: #2: Cannot load class 'Project': Unable to load class file Finally, I went to ~/tmp/gambas-0.62/app/InputBox, executed gbx, and the InputBox popped up as expected!!! It only seems to work with this small project, though. []s Nelson From gambas at ...2... Tue Jul 15 17:57:25 2003 From: gambas at ...2... (Benoit Minisini) Date: Tue, 15 Jul 2003 17:57:25 +0200 Subject: [Gambas-user] Gambas 0.62 - error in Project.Main.84 In-Reply-To: <1058279168.586.39.camel@...57...> References: <200307141924.14413.gambas@...2...> <200307151355.07092.gambas@...2...> <1058279168.586.39.camel@...57...> Message-ID: <200307151757.25782.gambas@...2...> Le Mardi 15 Juillet 2003 16:26, Nelson Ferraz a ?crit : > > The error #8 generally implies that you try to execute a gambas program > > compiled with a compiler version different from the interpreter version. > > > > Type /usr/bin/gbx -v to get the interpreter version, /usr/bin/gbc -v to > > get the compiler version. > > The first result was: > > $ /usr/bin/gbc -v > gbc: project file not found: /home/nferraz/.project > > $ /usr/bin/gbx -v > ERROR: #45: File or directory does not exist: /home/nferraz/.project > > Then I figured out that the -v option stands for "--verbose", not > "--version", I tried again with: > > $ /usr/bin/gbc --version > gbc-0.62 > > $ /usr/bin/gbx --version > ERROR: #45: File or directory does not exist: /home/nferraz/.project > > $ /usr/bin/gbx -V # uppercase > gbx-0.62 > > So, versions seem okay. Then, I went to the ~/tmp/gambas-0.62/app/gambas > directory and typed: > > $ /usr/bin/gbx > ERROR: #2: Cannot load class 'Project': Unable to load class file > > Finally, I went to ~/tmp/gambas-0.62/app/InputBox, executed gbx, and the > InputBox popped up as expected!!! > > It only seems to work with this small project, though. > > []s > > Nelson > Hi, Nelson, Sorry for the mistake ! (-v <-> -V) Could you try to recompile and reinstall from zero ? If it does not work, could you grant me a telnet or ssh access to your machine ? Regards, -- Benoit Minisini mailto:gambas at ...1... From nferraz at ...184... Tue Jul 15 21:18:12 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 15 Jul 2003 16:18:12 -0300 Subject: [Gambas-user] Gambas 0.62 - error in Project.Main.84 In-Reply-To: <200307151757.25782.gambas@...2...> References: <200307141924.14413.gambas@...2...> <200307151355.07092.gambas@...2...> <1058279168.586.39.camel@...57...> <200307151757.25782.gambas@...2...> Message-ID: <1058296696.534.11.camel@...185...> > Hi, Nelson, > > Sorry for the mistake ! (-v <-> -V) No problem. :) > Could you try to recompile and reinstall from zero ? If it does not work, > could you grant me a telnet or ssh access to your machine ? I did that, and the problem persisted. Regarding the ssh access, I'll do that as soon as I go back to home, where I'm playing with Gambas ;). []s Nelson From nferraz at ...184... Wed Jul 16 03:25:00 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 15 Jul 2003 22:25:00 -0300 Subject: [Gambas-user] OFF: Perl 6 Design Philosophy In-Reply-To: <200307102144.05871.sourceforge-raindog2@...94...> References: <1057884940.592.39.camel@...57...> <200307102144.05871.sourceforge-raindog2@...94...> Message-ID: <1058318699.619.21.camel@...57...> >From the Perl 6 design principles: ``Perl Should Stay Perl Everyone agrees that Perl 6 should still be Perl, but the question is, what exactly does that mean? It doesn't mean Perl 6 will have exactly the same syntax. It doesn't mean Perl 6 will have exactly the same features. If it did, Perl 6 would just be Perl 5. So, the core of the question is what makes Perl "Perl"?'' Therefore, _our_ core question is what makes Gambas "BASIC"? Here's a possible answer: it is BASIC if it remains true to the original purpose, is familiar to BASIC programmers, and is mechanically translatable from other BASICs. Rationale (from the original article): ``True to the original purpose Perl will stay true to its designer's original intended purpose. Larry wanted a language that would get the job done without getting in his way. The language had to be powerful enough to accomplish complex tasks, but still lightweight and flexible. As Larry is fond of saying, "Perl makes the easy things easy and the hard things possible." The fundamental design philosophy of Perl hasn't changed. In Perl 6, the easy things are a little easier and the hard things are more possible. Familiarity Perl 6 will be familiar to Perl 5 users. The fundamental syntax is still the same. It's just a little cleaner and a little more consistent. The basic feature set is still the same. It adds some powerful features that will probably change the way we code in Perl, but they aren't required. Learning Perl 6 will be like American English speakers learning Australian English, not English speakers learning Japanese. Sure, there are some vocabulary changes, and the tone is a little different, but it is still--without any doubt--English. Translatable Perl 6 will be mechanically translatable from Perl 5. In the long term, this isn't nearly as important as what it will be like to write code in Perl 6. But during the transition phase, automatic translation will be important. It will allow developers to start moving ahead before they understand every subtle nuance of every change. Perl has always been about learning what you need now and learning more as you go.'' http://www.perl.com/pub/a/2003/06/25/perl6essentials.html []s Nelson From sourceforge-raindog2 at ...94... Wed Jul 16 06:05:53 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 16 Jul 2003 00:05:53 -0400 Subject: [Gambas-user] OFF: Perl 6 Design Philosophy In-Reply-To: <1058318699.619.21.camel@...57...> References: <1057884940.592.39.camel@...57...> <200307102144.05871.sourceforge-raindog2@...94...> <1058318699.619.21.camel@...57...> Message-ID: <200307160005.53033.sourceforge-raindog2@...94...> On Tuesday 15 July 2003 21:25, Nelson Ferraz wrote: > Therefore, _our_ core question is what makes Gambas "BASIC"? > Here's a possible answer: it is BASIC if it remains true to the original > purpose, is familiar to BASIC programmers, and is mechanically > translatable from other BASICs. I don't completely agree. The article you cited was about differences from one release of a language to the next incremental version of that language. Let's call it equivalent of going from Gambas 0.65 (say) to Gambas 1.x. Gambas is going to be different than other BASICs. There's no way around it. The only popular BASICs with object extensions are pretty much VB and RealBasic for the Mac which has translation issues similar to those of Gambas. For VB's part, its object extensions are.... um.... I'll let Benoit address that if he likes. Now, that's not to say Gambas can't live up to the philosophy you posited. - BASIC's original purpose was to enable novice programmers to write useful programs while simultaneously learning something about programming. I would say Gambas probably exceeds most BASICs in this department thanks to its largely clean syntax and (despite us recovering VB users' influence) consistent, well-designed object model. - I have only a sample size of two here (myself and one client) but we both find Gambas very familiar and comfortable in almost all respects. - I do think I'll be able to at least get a VB form to Gambas form/class translator working, but what will be harder to convert from VB (or any other BASIC) will be all the external stuff people rely on to get their BASIC programs doing real work. On top of that, people trying to convert VB code to Gambas are typically doing so while also switching operating systems, which can complicate things further (though it's been my experience so far that those OS differences make Gambas more powerful than VB and thus easier to port stuff to.) Generally speaking, I'll be more in favor of things that make Gambas more like BASIC, and also things that make Gambas easier to use, especially for novices and people coming from other environments, and against things that make Gambas non-intuitive (like that old behavior where if you didn't instantiate a form in its own class, you could press F5 and nothing would happen) and/or impede the above design goals. I don't want to see Gambas become perl, for example, because if I want to write GUI programs in perl I have PerlQt and QtDesigner with which to do that (and I have already done so, and it's quite nice, but I wouldn't try to make a BASIC programmer try and figure it out.) Ultimately, though, unlike Perl, I think we're close enough to the genesis of the project that Gambas can be whatever Benoit would like it to be. Larry drove Perl's development through several major releases and is still arguably the dominant voice in its current development, for better or for worse. But he shaped perl's original form, and Benoit is now doing the same with Gambas. As far as I can see, he hasn't really missed any steps. Rob From nferraz at ...184... Wed Jul 16 07:59:58 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 16 Jul 2003 02:59:58 -0300 Subject: [Gambas-user] OFF: Perl 6 Design Philosophy In-Reply-To: <200307160005.53033.sourceforge-raindog2@...94...> References: <1057884940.592.39.camel@...57...> <200307102144.05871.sourceforge-raindog2@...94...> <1058318699.619.21.camel@...57...> <200307160005.53033.sourceforge-raindog2@...94...> Message-ID: <1058335198.619.103.camel@...57...> Rob, First of all, thanks for your insightful comments! > I don't completely agree. The article you cited was about differences from > one release of a language to the next incremental version of that language. > Let's call it equivalent of going from Gambas 0.65 (say) to Gambas 1.x. I hope the transition to Gambas 1.x won't be as dramatic! :) > Gambas is going to be different than other BASICs. There's no way around it. > The only popular BASICs with object extensions are pretty much VB and > RealBasic for the Mac which has translation issues similar to those of > Gambas. I Agree. The best thing to do here is to learn with succesful OO languages, and I think Benoit is already doing that. > - BASIC's original purpose was to enable novice programmers to write useful > programs while simultaneously learning something about programming. I would > say Gambas probably exceeds most BASICs in this department thanks to its > largely clean syntax and (despite us recovering VB users' influence) > consistent, well-designed object model. If the goal is to enable novice programmers, perhaps we should take a look at Python. Guido Van Rossum says that Python was influenced by a language called ABC. "ABC's design had a very clear, sharp focus. ABC was intended to be a programming language that could be taught to intelligent computer users who were not computer programmers or software developers in any sense." He also says: "I think my most innovative contribution to Python's success was making it easy to extend. That also came out of my frustration with ABC. ABC was a very monolithic design. There was a language design team, and they were God. They designed every language detail and there was no way to add to it. You could write your own programs, but you couldn't easily add low-level stuff." http://www.artima.com/intv/python.html Perl 6 will be more flexible: "The plan for Perl 6 explicitly includes plans for future language changes. No one believes that Perl 6.0.0 will be perfect, but at the same time, no one wants another change process quite as dramatic as Perl 6. So Perl 6 will be flexible and adaptable enough to allow gradual shifts over time. This has influenced a number of design decisions, including making it easy to modify how the language is parsed, lowering the distinctions between core operations and user-defined operations, and making it easy to define new operators." And "Gambas has a component architecture that allows to extend the language. Anyone can write components as shared libraries that dynamically add new native classes to the interpreter." (Benoit) > - I have only a sample size of two here (myself and one client) but we both > find Gambas very familiar and comfortable in almost all respects. "Almost"? :) > - I do think I'll be able to at least get a VB form to Gambas form/class > translator working, Great! A tool like this will be fundamental to attract VB developers. > Generally speaking, I'll be more in favor of things that make Gambas more like > BASIC, "The Principle of Familiarity". > and also things that make Gambas easier to use, especially for novices > and people coming from other environments, and against things that make > Gambas non-intuitive "The Principle of DWIM", or "Do What I Mean"! :) > I don't want to see Gambas become perl Neither do I! (But remember "The Principle of Borrowing"...) > Ultimately, though, unlike Perl, I think we're close enough to the genesis of > the project that Gambas can be whatever Benoit would like it to be. Larry > drove Perl's development through several major releases and is still arguably > the dominant voice in its current development, for better or for worse. But > he shaped perl's original form, and Benoit is now doing the same with Gambas. > As far as I can see, he hasn't really missed any steps. I completelly agree! []s Nelson From gambas at ...2... Wed Jul 16 20:02:57 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 16 Jul 2003 20:02:57 +0200 Subject: [Gambas-user] How to create a graphical tail-like function In-Reply-To: <200307111238.33488.sourceforge-raindog2@...94...> References: <1057751994.3f0c03ba78577@...187...> <200307111238.33488.sourceforge-raindog2@...94...> Message-ID: <200307162002.57274.gambas@...2...> Le Vendredi 11 Juillet 2003 18:38, Rob a ?crit : > On Wednesday 09 July 2003 07:59, Lasse Kim Christiansen wrote: > > My initial problem is how i should create the tail function. Which will > > open a file and continuously print new lines as they end up in the > > syslog. > > Well, it's a little more than just a function, but you could just do > > EXEC [ "tail", "-f", "/var/log/syslog" ] FOR READ AS MyProcess > > and then > > public sub Process_Write(Data as string) > ' append the data to whatever display control you're using, and then... > if Data like "somepattern" then Message.info(data) > end > > Of course you could probably do things easier with the watched files > functionality which I haven't tried yet. > > Benoit, I noticed when messing with that perl regex thing that the > Process.Write event seems to be static, i.e. it calls Process_Write back > rather than (for example) MyProcess_Write. So if you have more than one > process open all the output would end up in the same handler function. Is > this right? > > Rob > Yes. You can distinguish processes in the event handler with the LAST keyword. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Wed Jul 16 20:30:16 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 16 Jul 2003 20:30:16 +0200 Subject: [Gambas-user] Re: Gambas and some questions In-Reply-To: References: Message-ID: <200307162030.16258.gambas@...2...> Le Mercredi 16 Juillet 2003 09:57, vous avez ?crit : > Hello, > > I try'd Gambas and have a real problem using the ColumnView. Is there an > example available for this control? Showing the use of more columns, icons > in the table and some handling issues (Adding, Deleting, Moving, > Selecting)? There is no example, but you can browse the IDE source code. Here is how the ColumnView in the Project Properties dialog of the IDE is intialized then filled : ' Initialise the clvLibrary ColumnView WITH clvLibrary .Columns.Count = 3 ' Three columns, the first has the number 0. .Columns[1].Text = ("Component") .Columns[1].Width = 100 .Columns[2].Text = ("Description") END WITH ' Filling DIM sLib AS String DIM hComp AS CComponent DIM aRemove AS NEW String[] clvLibrary.Clear ' Clears the column view FOR EACH hComp IN CComponent.All sLib = CComponent.All.Key clvLibrary.Add(sLib, "", $hUncheck) ' Add an element clvLibrary[sLib][1] = sLib ' Modifies the text in the column #1 clvLibrary[sLib][2] = hComp.Name ' Modifies the text in the column #2 NEXT ...etc. To manage items, you have an internal cursor represented by the Item property. You can move this cursor by using the MoveXXX methods: MoveNext, MovePrevious, MoveFirst, MoveLast, MoveChild, MoveParent, MoveTo. See the help browser for more details. > > Some days ago I asked you for a Gambas-Forum. I found a Sourceforge-Program > (wxBasic) with a forum that definitely costs nothing and is hostet on the > sourceforge-webspace: > > http://wxbasic.sourceforge.net/phpBB2/index.php > > Maybe you can do this for Gambas, too? So I can post programming-questions > into the forum without bothering you. And I think there would be more > information-exchange with a forum than a mailing-list. You may be right, but, to be honest, I'm too busy to deal with it. If you can open a forum for me, do it, it will be a great help for me ! It seems that the wxbasic forum is made in PHP. Is it a sourceforge feature, or is it something they made themselves ? > > You told that a TCP/IP-or UDP-Protocoll-Control is on high priority. Do you > know, when it will be usable? No idea, I didn't start it yet ! You can spawn many 'curl' or 'wget' processes to download things at the moment. I plan to make a SERVER component, that will let people making TCP/IP or UDP servers the easiest possible ! > > Do you plan to integrate a popup-list ov available methods for an object? > It is really painfull, allways opening the help to look for a special > method of an object. If I type ColumnView1. there should be a list of all > available options. This would help Gambas very much to get closer to common > IDE's. And there should be the possibility to press F1 over a keyword and > then the help-window should open with this keyword in the search field. You are right. But it is a little job to implement it, because the IDE needs to analyze your code while you are typing it ! Automatic completion is a very coll feature. But by being compelled to browse help, you learn Gambas more quickly ! ;-) > > I hope I don't irritate ... No... > > Greetings, > > Volker Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Wed Jul 16 20:33:23 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 16 Jul 2003 20:33:23 +0200 Subject: [Gambas-user] OFF: Perl 6 Design Philosophy In-Reply-To: <1058335198.619.103.camel@...57...> References: <1057884940.592.39.camel@...57...> <200307160005.53033.sourceforge-raindog2@...94...> <1058335198.619.103.camel@...57...> Message-ID: <200307162033.23836.gambas@...2...> Le Mercredi 16 Juillet 2003 07:59, Nelson Ferraz a ?crit : > Rob, > > First of all, thanks for your insightful comments! > > > I don't completely agree. The article you cited was about differences > > from one release of a language to the next incremental version of that > > language. Let's call it equivalent of going from Gambas 0.65 (say) to > > Gambas 1.x. > > I hope the transition to Gambas 1.x won't be as dramatic! :) > > > Gambas is going to be different than other BASICs. There's no way around > > it. The only popular BASICs with object extensions are pretty much VB and > > RealBasic for the Mac which has translation issues similar to those of > > Gambas. > > I Agree. The best thing to do here is to learn with succesful OO > languages, and I think Benoit is already doing that. > > > - BASIC's original purpose was to enable novice programmers to write > > useful programs while simultaneously learning something about > > programming. I would say Gambas probably exceeds most BASICs in this > > department thanks to its largely clean syntax and (despite us recovering > > VB users' influence) consistent, well-designed object model. > > If the goal is to enable novice programmers, perhaps we should take a > look at Python. > > Guido Van Rossum says that Python was influenced by a language called > ABC. "ABC's design had a very clear, sharp focus. ABC was intended to be > a programming language that could be taught to intelligent computer > users who were not computer programmers or software developers in any > sense." > > He also says: "I think my most innovative contribution to Python's > success was making it easy to extend. That also came out of my > frustration with ABC. ABC was a very monolithic design. There was a > language design team, and they were God. They designed every language > detail and there was no way to add to it. You could write your own > programs, but you couldn't easily add low-level stuff." > > http://www.artima.com/intv/python.html > > Perl 6 will be more flexible: > > "The plan for Perl 6 explicitly includes plans for future language > changes. No one believes that Perl 6.0.0 will be perfect, but at the > same time, no one wants another change process quite as dramatic as Perl > 6. So Perl 6 will be flexible and adaptable enough to allow gradual > shifts over time. This has influenced a number of design decisions, > including making it easy to modify how the language is parsed, lowering > the distinctions between core operations and user-defined operations, > and making it easy to define new operators." > > And "Gambas has a component architecture that allows to extend the > language. Anyone can write components as shared libraries that > dynamically add new native classes to the interpreter." (Benoit) > > > - I have only a sample size of two here (myself and one client) but we > > both find Gambas very familiar and comfortable in almost all respects. > > "Almost"? :) > > > - I do think I'll be able to at least get a VB form to Gambas form/class > > translator working, > > Great! A tool like this will be fundamental to attract VB developers. > > > Generally speaking, I'll be more in favor of things that make Gambas more > > like BASIC, > > "The Principle of Familiarity". > > > and also things that make Gambas easier to use, especially for novices > > and people coming from other environments, and against things that make > > Gambas non-intuitive > > "The Principle of DWIM", or "Do What I Mean"! :) > > > I don't want to see Gambas become perl > > Neither do I! (But remember "The Principle of Borrowing"...) > > > Ultimately, though, unlike Perl, I think we're close enough to the > > genesis of the project that Gambas can be whatever Benoit would like it > > to be. Larry drove Perl's development through several major releases and > > is still arguably the dominant voice in its current development, for > > better or for worse. But he shaped perl's original form, and Benoit is > > now doing the same with Gambas. As far as I can see, he hasn't really > > missed any steps. > > I completelly agree! > > []s > > Nelson > And I must tell you that I have two secret projects for gambas, two "killer" features, maybe for the 2.0 version. -- Benoit Minisini mailto:gambas at ...1... From karl.reinl at ...9... Wed Jul 16 22:46:18 2003 From: karl.reinl at ...9... (Charlie) Date: Wed, 16 Jul 2003 22:46:18 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas References: <200307072237.46659.gambas@...2...> <3F0B2600.4000205@...9...> <200307081653.51056.sourceforge-raindog2@...94...> <200307122157.15997.gambas@...2...> Message-ID: <3F15B99A.8040301@...9...> Benoit Minisini schrieb: >Le Mardi 8 Juillet 2003 22:53, Rob a ?crit : > > >>On Tuesday 08 July 2003 16:13, Charlie wrote: >> >> >>>Is It possible ( like in VB ) to have the choice to do it in SDI or MDI ? >>> >>> >>This was one of the things I hope to do in my non-official Gambas. >> >> >> >>>And one of my favorits, is a tool in the IDE to 'pretty print' the souce >>>code for more readabillity (<- arg...is that english ?) without too much >>>keyboard working. >>> >>> >>It was closer to English than a lot of Americans ever manage. One of the >>things I liked most about VB's editor was how it would change the >>capitalization of the symbols after you leave a line, so you'd know >>immediately if you'd mistyped something. But I'm wondering if it would tie >>the Gambas editor too closely to the Gambas interpreter. >> >> > >I think VB achieves that by partly compiling the code as you type it. I can't >do that in Gambas, because everything is separated: interpreter, compiler, >IDE. In VB, everything is the same program, so it is easier for them to have >done that ! > > > >>>I made one in gambas, but if you could include such one in the gambas - >>>editor it will be more powerfull. >>> >>> >>Make it a library and I'll certainly try to jam it into my non-Gambas ;) >> >> > >If you have made a Gambas "pretty-printer" that works, send it me, and I will >add it in the Tool menu of the IDE. > > > >>>Oh yes the gambas - editor, hes not bad, but is more 1994 stile, when >>>DOS was the king. But never mind ! >>> >>> >>The first thing I do whenever I install Gambas on a fresh machine is change >>all the editor colors.... black text, white background, green comments, >>blue symbols.... and Vera Sans Mono as the font.... do that and I bet it >>won't feel like a DOS editor anymore ;) >> >> > >This remark gives me an idea :-) > > > >>Rob >> >> Salut Beno?t and Rob and all you out there listening gambas-user, send you my Gambas "pretty-printer" and for all you others too. I last testeed it under 0.58 today , hope I cleared it up so that all comments are real comments or code whos comment out, because he's to activate if you use him in the IDE. Actually I spent my spare time to set up my new box with gentoo 1.4 and I found out (today) that my box has a hardware problem with the 'Motherboard System Timer' which brought me laste three weeks several System freez and I spented a lot of time to find this out. Released from this problem, even it is not solved I gave me a 'good time' and had a review to the pretty printer under gambas. But only on a old version 0.58 ( since this version my old SuSE 7.2, could no more compile newer gambas versions) For any problem or question I hope I will find some time to answer you. Read the source-code for changes to make Hope you enjoy amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: Indenter.tar.gz Type: application/x-tar Size: 19194 bytes Desc: not available URL: From gambas at ...2... Thu Jul 17 00:05:55 2003 From: gambas at ...2... (Benoit Minisini) Date: Thu, 17 Jul 2003 00:05:55 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas In-Reply-To: <3F15B99A.8040301@...9...> References: <200307072237.46659.gambas@...2...> <200307122157.15997.gambas@...2...> <3F15B99A.8040301@...9...> Message-ID: <200307170005.55867.gambas@...2...> Le Mercredi 16 Juillet 2003 22:46, Charlie a ?crit : > But only on a old version 0.58 ( since this version my old SuSE 7.2, > could no more compile newer gambas versions) > Did you try the last 0.62 ? Ahmed Kamal told me that he succeeded in compiling and running it on a RedHat 8.0 with qt 3.0 ! Regards, -- Benoit Minisini mailto:gambas at ...1... From Gambasfr at ...11... Thu Jul 17 00:25:07 2003 From: Gambasfr at ...11... (Fabien BODARD) Date: Thu, 17 Jul 2003 00:25:07 +0200 Subject: [Gambas-user] GAMBAS DOES NOT START In-Reply-To: <000801c34926$e353a300$0100a8c0@...191...> References: <000801c34926$e353a300$0100a8c0@...191...> Message-ID: <200307170025.07894.Gambasfr@...11...> Le Dimanche 13 Juillet 2003 12:09, ?ZD?L TANER? a ?crit : > Hi, > i did install gambas 6.0 from a rpm for mandrake 9.1 > by using the software installing wizard in mandrake. > then i installed gui add on > when i type gambas to run it it says > cannot load cconfig class or sth else like that > what did i do wrong? > thanx > ozdil > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.493 / Virus Database: 292 - Release Date: 25.06.2003 Hello First ... Gambas 6.0 doesn't exist but i think you talk about 0.60 version. On mandrake the better is to use directly the source and compile it. Simply, because benoit (the autor) make gambas on a mandrake station. So .. download gambas at http://gambas.sourceforge.net/gambas-0.62.tar.gz , Decompress it in your home directory. After pass in root mode. enter in the gambas directory. (currently the gambas-0.62) type -> ./configure after on prompt type -> make finaly on prompt type -> make install just type gambas to run You must to have installed before all lib that gambas need. http://gambas.sourceforge.net/important.html so : Mysql ans postgresql devel lib kde devel libs libfam devel libs mabe is that you miss on mandrake (because it isn't installed by default). qt devel libs i mabe forgot one... Fabien Bodard From sourceforge-raindog2 at ...94... Thu Jul 17 04:39:49 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 16 Jul 2003 22:39:49 -0400 Subject: [Gambas-user] GAMBAS DOES NOT START In-Reply-To: <200307170025.07894.Gambasfr@...11...> References: <000801c34926$e353a300$0100a8c0@...191...> <200307170025.07894.Gambasfr@...11...> Message-ID: <200307162234.38863.sourceforge-raindog2@...94...> On Wednesday 16 July 2003 18:25, Fabien BODARD wrote: > On mandrake the better is to use directly the source and compile it. Nah, there's never an excuse to install anything outside the RPM system if you're running an RPM'based distribution.... IMHO ;) Seriously, I just bought a video capture thingy that needed a non-standard kernel module built to get it to work.... and I never even installed the kernel module until I had first built an RPM of it. Installing straight from tarballs is Evil(tm). Anyway, someone had this same problem compiling from source in Suse on 5/10 with Gambas 0.54, and no one responded to his complaint (I hadn't seen the problem myself, and still haven't) so I'm thinking it's neither a problem with my RPM nor with Gambas 0.62, but with some dependency I didn't manage to get in my RPM. Rob From sourceforge-raindog2 at ...94... Thu Jul 17 05:51:09 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 16 Jul 2003 23:51:09 -0400 Subject: [Gambas-user] Re: Gambas and media files In-Reply-To: <200307141939.29948.gambas@...2...> References: <5.2.0.9.0.20030713104216.00cec958@...196...> <200307141939.29948.gambas@...2...> Message-ID: <200307162351.09389.sourceforge-raindog2@...94...> On Monday 14 July 2003 13:39, Benoit Minisini wrote: > But you can play videos in Gambas with mplayer this way: > 1) Create a form with a void Label named lblMPlayer, for example. > 2) Do: EXEC [ "mplayer", "-wid", lblMPlayer.Id, "myvideo.avi" ] I just tried to do this, but (at least in Gambas 0.62) controls don't have the Id property. Also, I made a form and used it like a control in another form, and when I looked at its Id property it was zero. When I display the form on its own it gets an Id (in the 4 million range) and when I start the mplayer process, that form blinks for a second, and you can hear the sound from mplayer, but the video doesn't seem to make it into the form window. It's all right to display mplayer in its own window for now for what I'm doing, but it sounds like the Id property stuff might be a little funny right now. Rob From gambas at ...2... Thu Jul 17 08:14:09 2003 From: gambas at ...2... (Benoit Minisini) Date: Thu, 17 Jul 2003 08:14:09 +0200 Subject: [Gambas-user] Re: Gambas and media files In-Reply-To: <200307162351.09389.sourceforge-raindog2@...94...> References: <5.2.0.9.0.20030713104216.00cec958@...196...> <200307141939.29948.gambas@...2...> <200307162351.09389.sourceforge-raindog2@...94...> Message-ID: <200307170814.10015.gambas@...2...> Le Jeudi 17 Juillet 2003 05:51, Rob a ?crit : > On Monday 14 July 2003 13:39, Benoit Minisini wrote: > > But you can play videos in Gambas with mplayer this way: > > 1) Create a form with a void Label named lblMPlayer, for example. > > 2) Do: EXEC [ "mplayer", "-wid", lblMPlayer.Id, "myvideo.avi" ] > > I just tried to do this, but (at least in Gambas 0.62) controls don't have > the Id property. > > Also, I made a form and used it like a control in another form, and when I > looked at its Id property it was zero. When I display the form on its own > it gets an Id (in the 4 million range) and when I start the mplayer > process, that form blinks for a second, and you can hear the sound from > mplayer, but the video doesn't seem to make it into the form window. > > It's all right to display mplayer in its own window for now for what I'm > doing, but it sounds like the Id property stuff might be a little funny > right now. > > Rob > Don't worry, it will work in the next version. Mainly because this version HAS this Id property :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From rapto at ...198... Thu Jul 17 11:52:26 2003 From: rapto at ...198... (=?ISO-8859-1?Q?Marcos_S=E1nchez_Provencio?=) Date: Thu, 17 Jul 2003 11:52:26 +0200 Subject: [Gambas-user] I can't get gambas 0,62 going Message-ID: <3F1671DA.7060305@...198...> Hello from Madrid marcos at ...199...:~/src/gambas-0.62$ gambas ** Not yet implemented Project.Main.89: #2: Cannot load class 'Config': Unable to load class file The previous version worked fine.... ?Any pointers? From karl.reinl at ...9... Thu Jul 17 13:17:11 2003 From: karl.reinl at ...9... (karl.reinl at ...9...) Date: Thu, 17 Jul 2003 13:17:11 00200 Subject: [Gambas-user] Let's make a stable release of Gambas Message-ID: <3f1685b7.3523.0@...9...> >Le Mercredi 16 Juillet 2003 22:46, Charlie a ?crit : >> But only on a old version 0.58 ( since this version my old SuSE 7.2, >> could no more compile newer gambas versions) >> > >Did you try the last 0.62 ? Ahmed Kamal told me that he succeeded in compiling >and running it on a RedHat 8.0 with qt 3.0 ! > >Regards, > >-- >Benoit Minisini >mailto:gambas at ...1... > Salut Beno?t, you will have news about, if I get time to install the 0.62 Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From karl.reinl at ...9... Thu Jul 17 19:40:47 2003 From: karl.reinl at ...9... (Charlie) Date: Thu, 17 Jul 2003 19:40:47 +0200 Subject: [Gambas-user] Let's make a stable release of Gambas References: <200307072237.46659.gambas@...2...> <200307122157.15997.gambas@...2...> <3F15B99A.8040301@...9...> <200307170005.55867.gambas@...2...> Message-ID: <3F16DF9F.2040805@...9...> Benoit Minisini schrieb: >Le Mercredi 16 Juillet 2003 22:46, Charlie a ?crit : > > >>But only on a old version 0.58 ( since this version my old SuSE 7.2, >>could no more compile newer gambas versions) >> >> >> > >Did you try the last 0.62 ? Ahmed Kamal told me that he succeeded in compiling >and running it on a RedHat 8.0 with qt 3.0 ! > 'make install' don't finish not properly while creating library info (see attachement) ---------------- these are the error - lines ------------------ Creating the library info files... /opt/gambas/bin/gbi: error while loading shared libraries: /opt/kde/lib/libkdecore.so: undefined symbol: newItem__11QCollectionPv make[2]: *** [install-exec-local] Error 127 make[2]: Leaving directory `/opt/gambas/gambas-0.61' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/opt/gambas/gambas-0.61' make: *** [install-recursive] Error 1 ----------------------- I configured without kde (running kde 2.2.2) and without pgsql (no devel installed) I thing for a box without kde3 it will run or while creating library info files my --disable-kde-component is not used . amicalement Charlie -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: make_install.log URL: From gambas at ...2... Thu Jul 17 21:27:01 2003 From: gambas at ...2... (Benoit Minisini) Date: Thu, 17 Jul 2003 21:27:01 +0200 Subject: [Gambas-user] I can't get gambas 0,62 going In-Reply-To: <3F1671DA.7060305@...198...> References: <3F1671DA.7060305@...198...> Message-ID: <200307172127.01436.gambas@...2...> Le Jeudi 17 Juillet 2003 11:52, Marcos S?nchez Provencio a ?crit : > Hello from Madrid > > marcos at ...199...:~/src/gambas-0.62$ gambas > ** Not yet implemented > Project.Main.89: #2: Cannot load class 'Config': Unable to load class file > > The previous version worked fine.... > > ?Any pointers? > > Two other people has this problem. It is currently under investigation ! At the moment, I suspect a conflict with a previous installation of gambas. Maybe I'm wrong, I don't know... Regards, -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Thu Jul 17 21:50:00 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 17 Jul 2003 15:50:00 -0400 Subject: [Gambas-user] writing large files crashes gambas Message-ID: <200307171550.00315.sourceforge-raindog2@...94...> I have written (and am currently testing) a program that captures MPEG video from my USB capture device. I let it go while I went to lunch, and when I came back it had terminated with signal 27 (I think it was) and the file it had created was exactly 2GB. So I'm thinking Gambas keeps track of how many bytes you've written as a signed integer and that 27 is an overflow error. The filesystem it was getting written to supports much larger files, of course. I could see raising an error, but the message I got said something about terminating unexpectedly and reporting a bug. Next I'm going to try replacing the Open Filename For Create As Savefile with Exec [ "bash", "-c", "cat >" & Savefile ] For Write As Saveprocess and see if that's subject to the same issues (I was also operating mplayer over another process object and feeding it th same video so I'm guessing it's okay.) Rob From gambas at ...2... Thu Jul 17 22:19:03 2003 From: gambas at ...2... (Benoit Minisini) Date: Thu, 17 Jul 2003 22:19:03 +0200 Subject: [Gambas-user] writing large files crashes gambas In-Reply-To: <200307171550.00315.sourceforge-raindog2@...94...> References: <200307171550.00315.sourceforge-raindog2@...94...> Message-ID: <200307172219.03212.gambas@...2...> Le Jeudi 17 Juillet 2003 21:50, Rob a ?crit : > I have written (and am currently testing) a program that captures MPEG > video from my USB capture device. I let it go while I went to lunch, and > when I came back it had terminated with signal 27 (I think it was) and the > file it had created was exactly 2GB. So I'm thinking Gambas keeps track of > how many bytes you've written as a signed integer and that 27 is an > overflow error. The filesystem it was getting written to supports much > larger files, of course. I could see raising an error, but the message I > got said something about terminating unexpectedly and reporting a bug. > > Next I'm going to try replacing the Open Filename For Create As Savefile > with Exec [ "bash", "-c", "cat >" & Savefile ] For Write As Saveprocess and > see if that's subject to the same issues (I was also operating mplayer over > another process object and feeding it th same video so I'm guessing it's > okay.) > > Rob > Anyway, everything related to files are stored into signed integer in Gambas, so more than 2GB files will lead to many unexpected things, like crashes. It is the reason why the keyword LONG is reserved. It will be a 8 bytes integer datatype, and will be very useful to deal with files greater than 2GB ! When I have time to implement it :-) Maybe your second solution will save you ? Regards, -- Benoit Minisini mailto:gambas at ...1... From samuel.derous at ...27... Fri Jul 18 13:15:51 2003 From: samuel.derous at ...27... (Samuel Derous) Date: Fri, 18 Jul 2003 13:15:51 +0200 Subject: [Gambas-user] starting automatically: gambas project Message-ID: <200307181315.51517.samuel.derous@...27...> Hey there, I have written a gambas project, but I want that project to be started immediately after I logged into my graphical interface, but off cource, if I put him into the startup directory from .kde, I get the question, that he doesn't know wich program he has to use to open it... How can it be possible that this program automatically starts when I start KDE? Greetz, Samuel From eng_ak at ...200... Fri Jul 18 14:46:50 2003 From: eng_ak at ...200... (Ahmad Kamal) Date: Fri, 18 Jul 2003 15:46:50 +0300 Subject: Fwd: [Gambas-user] starting automatically: gambas project Message-ID: <5.1.0.14.2.20030718154539.00bb03f8@...201...> from the terminal: chmod +x ./my_app.exe I think u can make it executable from "Right click >> properties >> tick mark or something" >Hey there, > >I have written a gambas project, but I want that project to be started >immediately after I logged into my graphical interface, but off cource, if I >put him into the startup directory from .kde, I get the question, that he >doesn't know wich program he has to use to open it... How can it be possible >that this program automatically starts when I start KDE? > >Greetz, >Samuel From gambas at ...2... Fri Jul 18 13:38:32 2003 From: gambas at ...2... (Benoit Minisini) Date: Fri, 18 Jul 2003 13:38:32 +0200 Subject: [Gambas-user] starting automatically: gambas project In-Reply-To: <200307181315.51517.samuel.derous@...27...> References: <200307181315.51517.samuel.derous@...27...> Message-ID: <200307181338.32119.gambas@...2...> Le Vendredi 18 Juillet 2003 13:15, Samuel Derous a ?crit : > Hey there, > > I have written a gambas project, but I want that project to be started > immediately after I logged into my graphical interface, but off cource, if > I put him into the startup directory from .kde, I get the question, that he > doesn't know wich program he has to use to open it... How can it be > possible that this program automatically starts when I start KDE? > > Greetz, > Samuel > > As long as KDE knows nothing about gambas executable, you can't start a gambas executable directly - Note that you can do it in a shell. But there is a workaround: create into your startup directory a new "link to an application" (the menu entry with a gearing icon in the "create new..." entry in the popup menu of Konqueror). This a .desktop file. Then define the command of this link as the path to the program you want to start, and that's all. Regards, -- Benoit Minisini mailto:gambas at ...1... From shannara at ...202... Sat Jul 19 01:45:18 2003 From: shannara at ...202... (shannara at ...202...) Date: Fri, 18 Jul 2003 15:45:18 -0800 Subject: [Gambas-user] Windows version.. References: <200307181315.51517.samuel.derous@...27...> <200307181338.32119.gambas@...2...> Message-ID: <006c01c34d86$a62b2e30$ee8fed18@...203...> I am hoping that there is a Windows version of Gambas somewhere in the mix of all this? If so, that would rule.. I've been meaning to port over a few apps & game to linux & mac OSX, w/o using the lame .NET/Mono combo. From sourceforge-raindog2 at ...94... Sat Jul 19 02:46:05 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 18 Jul 2003 20:46:05 -0400 Subject: [Gambas-user] Windows version.. In-Reply-To: <006c01c34d86$a62b2e30$ee8fed18@...203...> References: <200307181315.51517.samuel.derous@...27...> <200307181338.32119.gambas@...2...> <006c01c34d86$a62b2e30$ee8fed18@...203...> Message-ID: <200307182046.05257.sourceforge-raindog2@...94...> On Friday 18 July 2003 19:45, shannara at ...202... wrote: > I am hoping that there is a Windows version of Gambas somewhere in the mix > of all this? If so, that would rule.. I've been meaning to port over a few > apps & game to linux & mac OSX, w/o using the lame .NET/Mono combo. I don't think anyone has volunteered to make a Windows component yet. If Trolltech provided a GPL version of Qt it would basically be already written, but they haven't and it's not. Someone on the PerlQt mailing list was able to port PerlQt to the commercial version of Qt for Windows, but since QtWin isn't GPL'ed he couldn't distribute his Windows version in binary form. There is a port of the GPL'ed version of Qt to Cygwin, and I suspect porting Gambas to it might not be that hard since cygwin implements a lot of the things that make Unix Unix and Linux Linux, but making your users download 200MB of stuff to run your 10K app is not nice ;) Better still would be if someone wrote a native Win32 replacement for the Qt component, since the GPL has an exception for linking against proprietary OS-provided libraries, but that would be an awful lot of work and would render projects not easily compilable on both without a preprocessor (since you'd be referencing gb.win32 all over the place rather than gb.qt.) On top of that, I gather from some of the issues with Nvidia owners and shared object loading that Gambas might be tied in some respects to Unix style linking, which would provide an additional challenge for would-be windows porters. I personally haven't done any Windows C++ work in 5 years or so, and wouldn't directly benefit from a Windows port of Gambas, but it sure would be cool to offer people a language that's not only aseasy as yet better than VB, but platform independent. Rob From sourceforge-raindog2 at ...94... Sat Jul 19 02:52:38 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 18 Jul 2003 20:52:38 -0400 Subject: [Gambas-user] announce: PVRec 0.1 Message-ID: <200307182052.38372.sourceforge-raindog2@...94...> I don't know if gambas-user is the place to mention projects we've released using Gambas, but since this is my first I figured I would. PVRec is basically a simple graphical interface to the Hauppauge WinTV PVR USB. It takes the stream of MPEG data from the pvrusb driver, and splits it out to your choice of file and/or mplayer simultaneously. You can stop and start saving and watching at any time, independent of each other. Obviously it's only useful to those people with this particular device but I think it's a pretty nifty proof of concept of what you can do with Gambas and a few pipes. Like all graphical Gambas projects, it's GPL'ed. More info here: http://www.kudla.org/index.php?wl_mode=more&wl_eid=24 Sorry about my choice of screenshot for those easily offended; it's just what I happened to be capturing while I was testing. Rob From bsnipes at ...21... Sat Jul 19 05:08:31 2003 From: bsnipes at ...21... (Brian Snipes) Date: 18 Jul 2003 22:08:31 -0500 Subject: [Gambas-user] Dynamic processes and killing them Message-ID: <1058584110.29562.4.camel@...73...> I am trying to code a program that will let you insert a host or ip to ping and show the results as items in a listbox. A process is spawned everytime a host is inserted in a text box and the insert button is clicked on. There is also a delete button that I want to remove the list item and kill the process that goes along with that item. I can't seem to figure out how to determine how to remove this process. Here is the class code so far and I know it needs help since there are several concepts in Gambas I haven't grasped. Any hints toward a solution would be appreciated. ' Gambas class file PRIVATE myProcess AS Process PUBLIC myPid AS Integer PUBLIC SUB Form_Open() END PUBLIC SUB btnInsert_Click() ' insert ping into list IF (txtInsert.text) THEN IF NOT (lvwPingList.exist(txtInsert.text)) THEN EXEC ["ping", txtInsert.text] FOR READ AS myProcess lvwPingList.add(myProcess.id, txtInsert.text) ENDIF ENDIF END PUBLIC SUB btnDelete_Click() IF lvwPingList.item THEN IF lvwPingList.item.selected THEN myPid = lvwPingList.current.key TRY Process.kill(myPid) lvwPingList.remove(lvwPingList.current.key) ENDIF ENDIF END PUBLIC SUB btnExit_Click() ME.close END '------------------------------------------------ ' if something is coming back ' the event 'Process.Write' of the class process calls this function PUBLIC SUB Process_Write(sData AS String) lvwPingList[LAST.id].text=Left$(sData, -1) END Brian From sourceforge-raindog2 at ...94... Sat Jul 19 05:43:58 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 18 Jul 2003 23:43:58 -0400 Subject: [Gambas-user] Dynamic processes and killing them In-Reply-To: <1058584110.29562.4.camel@...73...> References: <1058584110.29562.4.camel@...73...> Message-ID: <200307182343.58173.sourceforge-raindog2@...94...> On Friday 18 July 2003 23:08, Brian Snipes wrote: > clicked on. There is also a delete button that I want to remove the > list item and kill the process that goes along with that item. I can't > seem to figure out how to determine how to remove this process. Here is ... > EXEC ["ping", txtInsert.text] FOR READ AS myProcess ... > TRY Process.kill(myPid) Process.Kill isn't static, so you would need to be using myProcess.kill (with no argument.) Also, every time you insert a new process you're overwriting your public myProcess variable and thus losing the reference to the previous ping, so maybe you want to be doing an array or collection of process objects rather than just the one. Rob From gambas at ...2... Sat Jul 19 09:48:50 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 19 Jul 2003 09:48:50 +0200 Subject: [Gambas-user] Dynamic processes and killing them In-Reply-To: <200307182343.58173.sourceforge-raindog2@...94...> References: <1058584110.29562.4.camel@...73...> <200307182343.58173.sourceforge-raindog2@...94...> Message-ID: <200307190948.50703.gambas@...2...> Le Samedi 19 Juillet 2003 05:43, Rob a ?crit : > On Friday 18 July 2003 23:08, Brian Snipes wrote: > > clicked on. There is also a delete button that I want to remove the > > list item and kill the process that goes along with that item. I can't > > seem to figure out how to determine how to remove this process. Here is > > ... > > > EXEC ["ping", txtInsert.text] FOR READ AS myProcess > > ... > > > TRY Process.kill(myPid) > > Process.Kill isn't static, so you would need to be using myProcess.kill > (with no argument.) > > Also, every time you insert a new process you're overwriting your public > myProcess variable and thus losing the reference to the previous ping, so > maybe you want to be doing an array or collection of process objects rather > than just the one. > > Rob > Moreover, when you close your window, your spawn processes are not automatically killed, so you must kill them in the Form_Close event handler. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Sat Jul 19 09:58:27 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 19 Jul 2003 09:58:27 +0200 Subject: [Gambas-user] Windows version.. In-Reply-To: <200307182046.05257.sourceforge-raindog2@...94...> References: <200307181315.51517.samuel.derous@...27...> <006c01c34d86$a62b2e30$ee8fed18@...203...> <200307182046.05257.sourceforge-raindog2@...94...> Message-ID: <200307190958.27649.gambas@...2...> Le Samedi 19 Juillet 2003 02:46, Rob a ?crit : > On Friday 18 July 2003 19:45, shannara at ...202... wrote: > > I am hoping that there is a Windows version of Gambas somewhere in the > > mix of all this? If so, that would rule.. I've been meaning to port over > > a few apps & game to linux & mac OSX, w/o using the lame .NET/Mono combo. > > I don't think anyone has volunteered to make a Windows component yet. If > Trolltech provided a GPL version of Qt it would basically be already > written, but they haven't and it's not. > > Someone on the PerlQt mailing list was able to port PerlQt to the > commercial version of Qt for Windows, but since QtWin isn't GPL'ed he > couldn't distribute his Windows version in binary form. There is a port of > the GPL'ed version of Qt to Cygwin, and I suspect porting Gambas to it > might not be that hard since cygwin implements a lot of the things that > make Unix Unix and Linux Linux, but making your users download 200MB of > stuff to run your 10K app is not nice ;) > > Better still would be if someone wrote a native Win32 replacement for the > Qt component, since the GPL has an exception for linking against > proprietary OS-provided libraries, but that would be an awful lot of work > and would render projects not easily compilable on both without a > preprocessor (since you'd be referencing gb.win32 all over the place rather > than gb.qt.) It must be more complicated ! In Qt, you have almost every widget you need in one library. In Win32, you have less widgets, so maybe you must access other libraries or ActiveX component if you want to display rich text, etc. > > On top of that, I gather from some of the issues with Nvidia owners and > shared object loading that Gambas might be tied in some respects to Unix > style linking, which would provide an additional challenge for would-be > windows porters. What you name "Unix style linking" is the possibility to back-link a shared library, i.e. to get a symbol of the main program into a loaded shared library. I don't use that in Gambas, so there will be no linking problem on Windows. There is a flaw in the shared library loading implementation of Linux : it used malloc(). So if a shared library implements its own malloc(), then everything might unexpectedly crash. Example: the KDE libraries. The NVidia problem may be their fault, because their libraries does not accept not to be loaded at first time. How did I solve the problem ? When the interpreter detects a use of gb.qt or gb.qt.kde in a project, it restarts itself by asking the loader to preload these libraries as if they were linked to the interpreter, by using the LD_PRELOAD environment variable. I think the gambas interpreter could be ported on any platform. The components are a worse problem, especially the graphical one. Maybe one day somebody will make a GTK+ component ? And maybe when this day comes, everybody will use Linux ;-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Sat Jul 19 13:23:25 2003 From: gambas at ...2... (Benoit Minisini) Date: Sat, 19 Jul 2003 13:23:25 +0200 Subject: [Gambas-user] gambas 0.62 awful bug Message-ID: <200307191323.25549.gambas@...2...> I have made a very stupid and awful bug in gambas 0.62 compiler, that causes the problems many people encountered. (Of course, I saw nothing on my linux box !) I join a patch: you must put this file into the src/comp directory, recompile and install the package. Tell me if it works... Regards, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: trans_subr.c Type: text/x-csrc Size: 8019 bytes Desc: not available URL: From bsnipes at ...21... Sat Jul 19 16:43:12 2003 From: bsnipes at ...21... (Brian Snipes) Date: 19 Jul 2003 09:43:12 -0500 Subject: [Gambas-user] Dynamic processes and killing them In-Reply-To: <200307182343.58173.sourceforge-raindog2@...94...> References: <1058584110.29562.4.camel@...73...> <200307182343.58173.sourceforge-raindog2@...94...> Message-ID: <1058625792.29908.5.camel@...73...> On Fri, 2003-07-18 at 22:43, Rob wrote: > On Friday 18 July 2003 23:08, Brian Snipes wrote: > > clicked on. There is also a delete button that I want to remove the > > list item and kill the process that goes along with that item. I can't > > seem to figure out how to determine how to remove this process. Here is > ... > > EXEC ["ping", txtInsert.text] FOR READ AS myProcess > ... > > TRY Process.kill(myPid) > > Process.Kill isn't static, so you would need to be using myProcess.kill (with > no argument.) > > Also, every time you insert a new process you're overwriting your public > myProcess variable and thus losing the reference to the previous ping, so > maybe you want to be doing an array or collection of process objects rather > than just the one. > > Rob > I take it the declaration of the array would be : PRIVATE myProcess AS String[] But how do I add that to the EXEC line for keeping track of it. I've tried: EXEC ["ping", txtInsert.text] FOR READ WRITE AS myProcess().add but I get a 'Null Object' error on that line when it tries to execute. Thanks Rob and Benoit, Brian From Gambasfr at ...11... Thu Jul 17 22:34:59 2003 From: Gambasfr at ...11... (Fabien BODARD) Date: Thu, 17 Jul 2003 22:34:59 +0200 Subject: [Gambas-user] Re: GAMBAS DOES NOT START In-Reply-To: <200307162234.38863.sourceforge-raindog2@...94...> References: <000801c34926$e353a300$0100a8c0@...191...> <200307170025.07894.Gambasfr@...11...> <200307162234.38863.sourceforge-raindog2@...94...> Message-ID: <200307172221.19824.Gambasfr@...11...> Le Jeudi 17 Juillet 2003 04:39, Rob a ?crit : hi Rob > > On mandrake the better is to use directly the source and compile it. I say it for gambas.... Benoit make his devell on a mandrake box ! so generally there is less problem on it ! Fabien Bodard From nferraz at ...184... Sat Jul 19 19:19:58 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 19 Jul 2003 14:19:58 -0300 Subject: [Gambas-user] Windows version.. In-Reply-To: <200307182046.05257.sourceforge-raindog2@...94...> References: <200307181315.51517.samuel.derous@...27...> <200307181338.32119.gambas@...2...> <006c01c34d86$a62b2e30$ee8fed18@...203...> <200307182046.05257.sourceforge-raindog2@...94...> Message-ID: <1058635198.605.7.camel@...57...> > I don't think anyone has volunteered to make a Windows component yet. If > Trolltech provided a GPL version of Qt it would basically be already written, > but they haven't and it's not. Qt is open source, certified by the Open Source Initiative: http://www.opensource.org/licenses/qtpl.php []s Nelson From sourceforge-raindog2 at ...94... Sat Jul 19 19:26:49 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 19 Jul 2003 13:26:49 -0400 Subject: [Gambas-user] Dynamic processes and killing them In-Reply-To: <1058625792.29908.5.camel@...73...> References: <1058584110.29562.4.camel@...73...> <200307182343.58173.sourceforge-raindog2@...94...> <1058625792.29908.5.camel@...73...> Message-ID: <200307191326.49559.sourceforge-raindog2@...94...> On Saturday 19 July 2003 10:43, Brian Snipes wrote: > I take it the declaration of the array would be : > PRIVATE myProcess AS String[] No, more like PRIVATE myProcess AS Process[] I can't remember if you can directly declare an array of Process that way, so if not, PRIVATE myProcess AS Object[] > EXEC ["ping", txtInsert.text] FOR READ WRITE AS myProcess().add dim tmpProcess as Process EXEC ["ping", txtInsert.text] FOR READ WRITE AS tmpProcess myProcess.add(tmpProcess) would be my guess, but I haven't actually tried it. Rob From sourceforge-raindog2 at ...94... Sat Jul 19 20:01:14 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 19 Jul 2003 14:01:14 -0400 Subject: [Gambas-user] Windows version.. In-Reply-To: <1058635198.605.7.camel@...57...> References: <200307181315.51517.samuel.derous@...27...> <200307182046.05257.sourceforge-raindog2@...94...> <1058635198.605.7.camel@...57...> Message-ID: <200307191346.14517.sourceforge-raindog2@...94...> On Saturday 19 July 2003 13:19, Nelson Ferraz wrote: > > I don't think anyone has volunteered to make a Windows component yet. If > > Trolltech provided a GPL version of Qt it would basically be already > > written, but they haven't and it's not. > Qt is open source, certified by the Open Source Initiative: > http://www.opensource.org/licenses/qtpl.php Indeed it is. However, the native Windows version of Qt is not open source at all; it's the copyright holder's prerogative to release original code as closed source for certain platforms if they like, and Qt for Windows makes a lot of money for them. Of course, nothing is stopping users of the Mac and Linux versions of Qt from porting to Windows. It already works under Cygwin (Unix API emulation layer) but no one has ported it to Windows natively yet. See the following URL on Trolltech's website for more info. http://www.trolltech.com/developer/faqs/noncomm.html#q43 And the following article on kde.org about the port of the GPL version which is currently in progress, started only last week: http://dot.kde.org/1057919193/ Note: philosophically, I have mixed feelings about a GPL'ed port of Qt to Windows. On the one hand, it will allow KDE and Qt apps like Gambas to work under Windows which will allow Windows users to adopt them and make their migration to a free OS that much easier. On the other hand, it does give more apps to Windows and could take revenue away from Trolltech (since the GPL doesn't prevent you from writing a program for use in-house and never giving anyone the source, so the only people who'd have to pay for Qt are commercial software developers.) I am all for commercial software for Windows if it funds development of the same software in GPL form under Linux, and don't really want to jeopardize that. So it's a dilemma for me, but since I wouldn't be working on a Windows port it's a moot point ;) As a matter of fact, while I don't know if it's legally possible at this point, it seems to me that Benoit could make some money by selling a $99 port of Gambas to Windows using the commercial Qt toolkit. It really is a better language than VB and I think people are hungry for cross-platform RAD environments at this point (Delphi is nice and all but Pascal is closer to C than BASIC...) and it seems to me the biggest downside would be (a) kneejerk reaction from some parts of the community and (b) the tremendous influx of VB users looking for support, which we'd have to face anyway if someone ported Gambas to the eventual free Qt/Windows port. Even if someone does manage a free port, sticking it in a box with a manual for 50 bucks and getting it on retail shelves somehow (with binaries for multiple platforms and source on one CD) would change the face of RAD. I only suggest that because I suspect if you didn't, "Luxuriousity" (look on google and ebay) would. Incidentally, anyone thinking of trying to port Gambas to the eventual free Windows port of Qt who has already used the commercial or non-commercial Windows Qt versions needs to consult the license agreement you clicked through when you installed Qt, to make sure it doesn't prevent you from contributing to GPL'ed Qt based software for Windows. An earlier Qt port attempt had to be abandoned because of this. Sorry for the ramble. Rob From nferraz at ...184... Sat Jul 19 20:18:44 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 19 Jul 2003 15:18:44 -0300 Subject: [Gambas-user] gambas 0.62 awful bug In-Reply-To: <200307191323.25549.gambas@...2...> References: <200307191323.25549.gambas@...2...> Message-ID: <1058638724.605.29.camel@...57...> > I join a patch: you must put this file into the src/comp directory, recompile > and install the package. > > Tell me if it works... Yes, it works!!! []s Nelson From nferraz at ...184... Sat Jul 19 21:17:36 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 19 Jul 2003 16:17:36 -0300 Subject: [Gambas-user] Suggestion: Gambas IDE as a sample Message-ID: <1058642256.604.47.camel@...57...> Benoit, One of the greatest differentials of Gambas is the fact that its IDE is made in Gambas, and can be used as a demonstration of its features and capabilities. Therefore, I'd like to suggest the "app" directory to be copied to the "sample" directory during installation. This is something that we won't see in any other IDE, specially the proprietary ones. []s Nelson From sourceforge-raindog2 at ...94... Sun Jul 20 00:30:01 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 19 Jul 2003 18:30:01 -0400 Subject: [Gambas-user] gambas 0.62 packages for Mandrake 9.0 Message-ID: <200307191830.01927.sourceforge-raindog2@...94...> I finally got around to building packages for Mandrake 9.0 (the ones for 9.1 have been up most of the week, I just never got around to linking to them.) Here you go: http://www.kudla.org/index.php?wl_mode=more&wl_eid=25 Rob From sourceforge-raindog2 at ...94... Sun Jul 20 07:52:39 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 20 Jul 2003 01:52:39 -0400 Subject: [Gambas-user] updated component doc export Message-ID: <200307200152.39482.sourceforge-raindog2@...94...> Benoit, I finally updated my component export program to work with 0.62 (albeit with .help files from 0.58... I was able to generate .info files for 0.62 but not .help files since they're obsolete now.) So the component docs out there on GambasTest are from 0.62 and apart from a few minor cosmetic things like moving constants out of the events section like you asked, everything should be the same. Well, the new export is a little more up to date of course, too. The only big difference is that each class's page is just a shell that includes the exported data and invites people (in HTML comments) to add examples and commentary. My hope is that the change is not visible to the user unless they edit something. If it looks good to you, tomorrow or Monday I'll blow away the existing component documentation and replace it with this export. The next version of the extract will just be something that takes info files generated with gbi -f and produces export files for the classes and symbols that can be safely dropped into place in the wiki without overwriting people's comments. I think that'll be pretty easy (probably just a short perl script) but I guess the proof will be when 0.63 is ready ;) http://www.binara.com/gambas-wiki/bin/view/GambasTest/ should get you in.... of course, everything else besides component docs on that test wiki is terribly out of date, including the list of components and classes. I suppose I'll need to start generating that in the export for each component as well. Rob From sourceforge-raindog2 at ...94... Sun Jul 20 07:57:47 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 20 Jul 2003 01:57:47 -0400 Subject: [Gambas-user] updated component doc export In-Reply-To: <200307200152.39482.sourceforge-raindog2@...94...> References: <200307200152.39482.sourceforge-raindog2@...94...> Message-ID: <200307200157.47827.sourceforge-raindog2@...94...> On Sunday 20 July 2003 01:52, Rob wrote: > http://www.binara.com/gambas-wiki/bin/view/GambasTest/ should get you > in.... of course, everything else besides component docs on that test wiki > is terribly out of date, including the list of components and classes. I Oops, I only meant to send that to Benoit, not the whole list. I mean, everyone is welcome to look at the GambasTest wiki and offer suggestions, but I sure hope none of you tries to use it as a reference ;) Rob From eng_ak at ...200... Sun Jul 20 23:05:16 2003 From: eng_ak at ...200... (Ahmad Kamal) Date: Mon, 21 Jul 2003 00:05:16 +0300 Subject: [Gambas-user] Control arrays Message-ID: <5.1.0.14.2.20030721000219.00baa328@...201...> hi all, I am currently writing a TicTacToe game on GB. I already wrote it on VB, so it's a matter of porting. The game of course consists of 9 identical squares, in VB I made a control array. I know GB misses one, how can I do something like: for i =1 to 10 label(i).forecolor=vbGreen next From comercial at ...204... Sun Jul 20 23:34:57 2003 From: comercial at ...204... (=?iso-8859-1?q?Ram=F3n=20P=E9rez?=) Date: Sun, 20 Jul 2003 23:34:57 +0200 Subject: [Gambas-user] Compilation problem Message-ID: <200307202334.57786.comercial@...204...> My distro is Suse 8.2 Gambas 0.62 ./configure OK. When i write make libstdc++.so -L/usr/X11R6/lib -L/usr/lib -lqt-mt -Wl,-soname -Wl,lib.gb.qt.editor.so.0 -o .libs/lib.gb.qt.editor.so.0.0.0 /usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld: cannot find -lqt-mt collect2: ld returned 1 exit status make[5]: *** [lib.gb.qt.editor.la] Error 1 make[5]: Leaving directory `/home/ramon/Documents/gambas-0.62/src/lib/qt/editor' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/ramon/Documents/gambas-0.62/src/lib/qt' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/ramon/Documents/gambas-0.62/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/ramon/Documents/gambas-0.62/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/ramon/Documents/gambas-0.62' make: *** [all-recursive-am] Error 2 Thank you -- Ram?n P?rez RAM NET INFORM?TICA comercial at ...204... From gambas at ...2... Mon Jul 21 00:08:42 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 21 Jul 2003 00:08:42 +0200 Subject: [Gambas-user] Control arrays In-Reply-To: <5.1.0.14.2.20030721000219.00baa328@...201...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> Message-ID: <200307210008.42137.gambas@...2...> Le Dimanche 20 Juillet 2003 23:05, Ahmad Kamal a ?crit : > hi all, > > I am currently writing a TicTacToe game on GB. I already wrote it on VB, > so it's a matter of porting. The game of course consists of 9 identical > squares, in VB I made a control array. I know GB misses one, how can I do > something like: > > for i =1 to 10 > label(i).forecolor=vbGreen > next No control arrays, but controls can be put in the same group. Do you see the (Group) property in the IDE property sheet ? Every control in the same group has the same event handlers. The prefix of these event handlers is the name of the group. This is explained in one of the tips of the days... that you can translate into arabic too ;-) Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Mon Jul 21 00:06:17 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 21 Jul 2003 00:06:17 +0200 Subject: [Gambas-user] Compilation problem In-Reply-To: <200307202334.57786.comercial@...204...> References: <200307202334.57786.comercial@...204...> Message-ID: <200307210006.17857.gambas@...2...> Le Dimanche 20 Juillet 2003 23:34, Ram?n P?rez a ?crit : > My distro is Suse 8.2 > Gambas 0.62 ./configure OK. > > When i write make > > libstdc++.so -L/usr/X11R6/lib -L/usr/lib -lqt-mt -Wl,-soname > -Wl,lib.gb.qt.editor.so.0 -o .libs/lib.gb.qt.editor.so.0.0.0 > /usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld: > cannot find -lqt-mt > collect2: ld returned 1 exit status > make[5]: *** [lib.gb.qt.editor.la] Error 1 > make[5]: Leaving directory > `/home/ramon/Documents/gambas-0.62/src/lib/qt/editor' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/ramon/Documents/gambas-0.62/src/lib/qt' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/ramon/Documents/gambas-0.62/src/lib' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/home/ramon/Documents/gambas-0.62/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/ramon/Documents/gambas-0.62' > make: *** [all-recursive-am] Error 2 > > Thank you Have you got the following symbolic link on SuSE 8.2 ? /usr/lib/libqt-mt.so.3 -> /usr/lib/libqt-mt.so I think this link might miss on SuSE 8.2... Regards, -- Benoit Minisini mailto:gambas at ...1... From eng_ak at ...200... Mon Jul 21 00:16:01 2003 From: eng_ak at ...200... (Ahmad Kamal) Date: Mon, 21 Jul 2003 01:16:01 +0300 Subject: [Gambas-user] Control arrays In-Reply-To: <200307210008.42137.gambas@...2...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> <5.1.0.14.2.20030721000219.00baa328@...201...> Message-ID: <5.1.0.14.2.20030721011319.02cfa250@...201...> > >No control arrays, but controls can be put in the same group. Do you see the >(Group) property in the IDE property sheet ? > >Every control in the same group has the same event handlers. The prefix of >these event handlers is the name of the group. > >This is explained in one of the tips of the days... that you can translate >into arabic too ;-) Yes, but groups only handle multiple event handling, but changing the forecolor of a lot of labels is not doable by groups, or is it? DO I really have to label1.text="1" label2.text="2" label3.text="3" ... From sourceforge-raindog2 at ...94... Mon Jul 21 00:18:46 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 20 Jul 2003 18:18:46 -0400 Subject: [Gambas-user] Control arrays In-Reply-To: <5.1.0.14.2.20030721000219.00baa328@...201...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> Message-ID: <200307201818.46350.sourceforge-raindog2@...94...> On Sunday 20 July 2003 17:05, Ahmad Kamal wrote: > squares, in VB I made a control array. I know GB misses one, how can I do > something like: > for i =1 to 10 > label(i).forecolor=vbGreen > next Gambas doesn't have any way to make an array of controls graphically yet. You can assign them to groups for handling of events, but that doesn't really give you any of the other benefits of control arrays. The best I've come up with is to do it once in code and then treat it the same as in VB. Warning: pseudo-code ahead, I don't have any projects handy where this is done. public Labels as Object[] ... (in form load event handler) labels = new Object[10] labels[0] = Label0 labels[1] = Label1 ... labels[9] = Label9 ... (then, in some other routine) for i =1 to 10 labels(i).forecolor=Color.Green next If you have more than a handful of controls to be put into the array, it might be better to create the controls in code at runtime rather than using the form editor and manually putting them into the array. In any case, you would then want to put all those controls into a group (in code it's something like mycontrol = new Label as Labels) so that you can handle all the events with one bit of code. Rob From eng_ak at ...200... Mon Jul 21 00:41:19 2003 From: eng_ak at ...200... (Ahmad Kamal) Date: Mon, 21 Jul 2003 01:41:19 +0300 Subject: [Gambas-user] Control arrays In-Reply-To: <200307201818.46350.sourceforge-raindog2@...94...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> <5.1.0.14.2.20030721000219.00baa328@...201...> Message-ID: <5.1.0.14.2.20030721014002.038397e8@...201...> >In any case, you would then want to put all those controls into a group (in >code it's something like mycontrol = new Label as Labels) so that you can >handle all the events with one bit of code. > >Rob Thnx A LOT, Rob, but could u plz show how to put them in a group with code, in my specific case(labels)? I am new to not making an array graphically. From sourceforge-raindog2 at ...94... Mon Jul 21 01:59:56 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 20 Jul 2003 19:59:56 -0400 Subject: [Gambas-user] Control arrays In-Reply-To: <5.1.0.14.2.20030721014002.038397e8@...201...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> <5.1.0.14.2.20030721014002.038397e8@...201...> Message-ID: <200307201958.20096.sourceforge-raindog2@...94...> On Sunday 20 July 2003 18:41, Ahmad Kamal wrote: > Thnx A LOT, Rob, but could u plz show how to put them in a group with code, > in my specific case(labels)? I am new to not making an array graphically. Setting the group of a control must be done at control creation time. That means, if you create the control graphically you need to do it graphically (in the Properties dialog) and if you want to set the group in code you also have to create the control in code. In your case you would want to do something like this, supposing 100x100 labels (please refer to one of the Tips of the Day which has the exact syntax for grouping, if mine doesn't compile): Public Labels as Object[] and then in the form load event handler dim tmpLabel as Label labels = new Object[] tmpLabel = new Label(ME) as "Labels" tmpLabel.Move(0,0,100,100) tmpLabel.Text = "text of label 0" labels.Add(tmpLabel) ' this will add label 0 tmpLabel = new Label(ME) as "Labels" tmpLabel.Move(100,0,100,100) tmpLabel.Text = "text of label 1" labels.Add(tmpLabel) ' this will add label 1 ... tmpLabel = new Label(ME) as "Labels" tmpLabel.Move(200,200,100,100) tmpLabel.Text = "text of label 8" labels.Add(tmpLabel) ' this will add label 8 Then when it's time to set the event handlers, Public Sub Labels_Click() ... your handler code... END Obviously it's a lot more code intensive than just being able to set the index in the form designer, but it can be done. It actually works much better if you have like a hundred controls to create because then it's more efficient to do it in a loop. I guess what would be ideal as a workaround for the lack of design time control arrays would be either (a) a collection or object array automatically populated with the contents of the corresponding group name, or (b) the ability to add controls to a given array and set the index independently of the group feature. I think either could be implemented in the IDE (via code automatically generated and added to the form's class file) without needing changes to the language, if this proves unwieldy at the language level. (a) was pretty much how I mean to do it in my .frm to .form/.class converter which isn't really doing much of use yet, but (b) would probably work better for non-converted forms (since if you're converting from a VB project you already know which index each control is supposed to have.) Rob From nferraz at ...184... Mon Jul 21 04:45:44 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 20 Jul 2003 23:45:44 -0300 Subject: [Gambas-user] Control arrays In-Reply-To: <200307210008.42137.gambas@...2...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> <200307210008.42137.gambas@...2...> Message-ID: <1058755544.664.16.camel@...57...> > > for i =1 to 10 > > label(i).forecolor=vbGreen > > next > > No control arrays, but controls can be put in the same group. How do you iterate over controls? It would be interesting to treat containers as collections, allowing constructs like: FOR EACH f IN Form PRINT (f.name) NEXT It doesn't seem to work, though. []s Nelson From sourceforge-raindog2 at ...94... Mon Jul 21 04:55:40 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 20 Jul 2003 22:55:40 -0400 Subject: [Gambas-user] Control arrays In-Reply-To: <1058755544.664.16.camel@...57...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> <200307210008.42137.gambas@...2...> <1058755544.664.16.camel@...57...> Message-ID: <200307202255.40590.sourceforge-raindog2@...94...> On Sunday 20 July 2003 22:45, Nelson Ferraz wrote: > It would be interesting to treat containers as collections, allowing > constructs like: > FOR EACH f IN Form > PRINT (f.name) > NEXT > It doesn't seem to work, though. However, Form inherits Window which inherits Container, and Container has a "Children" property.... which I think you can iterate over. I wonder if I could include an "inherited members" section on each page.... hmmm. Rob From sourceforge-raindog2 at ...94... Mon Jul 21 05:57:03 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 20 Jul 2003 23:57:03 -0400 Subject: [Gambas-user] frm2form 0.01 Message-ID: <200307202352.32692.sourceforge-raindog2@...94...> Here is version 0.01 of frm2form.pl, which converts rudimentary VB forms into very, very rudimentary Gambas forms. It is a Perl program, and so you'll need Perl installed (but it should work on either Linux or Windows.) Here is what it does presently: - Copies all controls on the VB form onto the Gambas form. - Strips "VB." off of the beginning of VB class names. - Renames "CommandButton" controls to "Button". - Converts size and placement from twips (VB) to pixels (Gambas). - Special-cases the Timer control (in fact, that's the only control that's completely supported presently.... since it only has 3 properties.) - Makes a valid Gambas form, which (if you're only using controls that have direct Gambas equivalents) will pop up looking a little funny after you set it as your startup class and press F5. Here is what it does NOT do (yet): - Preserve (or generate) any code at all. - Preserve any properties other than X, Y, Width, Height and the timer's Delay/Interval. No fonts, colors, captions, disabled/invisible, or any of that other stuff yet. - Pull image data out of .frx files, e.g. for icons or Picture/Image controls. I'm not sure how far I'll get with that part of it, either, unless someone happens to have specs for the VB5/VB6 FRX format. - Map control names, except as noted above. - Create a .class file to go with your .form file. In fact, it dumps the form definition onto the console. You'll need to redirect it into a formname.form file and create a formname.class file (blank is okay) or else Gambas will crash when you double click a control in edit mode. - Handle control arrays. Since I didn't have a project handy that created a control array, I have no idea what it would look like in the .frm file and no idea what my filter (or Gambas) will do with it. Even though it scarcely even merits a 0.01 release, I wanted to get it out there so people know I'm working on it, and to encourage you guys to email me some .frm files (preferably with a screenshot of what they should look like) and .frx files that go with them, so I can work on it some more. (So far, this is based on two little unfinished VB projects I had sitting on my hard disk from the last time I had Windows installed 3 years ago.) Please DO NOT email me anything sensitive, anything to which you do not own the copyright, and in short, anything you wouldn't want the entire world to see. I don't intend on redistributing your code, but I don't want the added responsibility of keeping top secret stuff secret. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: frm2form001.pl Type: text/x-perl Size: 2697 bytes Desc: not available URL: From radoslav.dejanovic at ...116... Mon Jul 21 09:52:01 2003 From: radoslav.dejanovic at ...116... (Radoslav Dejanovic) Date: Mon, 21 Jul 2003 09:52:01 +0200 Subject: [Gambas-user] Suggestion: Gambas IDE as a sample In-Reply-To: <1058642256.604.47.camel@...57...> References: <1058642256.604.47.camel@...57...> Message-ID: <200307210952.01306.radoslav.dejanovic@...116...> On Saturday 19 July 2003 09:17 pm, Nelson Ferraz wrote: > Therefore, I'd like to suggest the "app" directory to be copied to the > "sample" directory during installation. > This is something that we won't see in any other IDE, specially the > proprietary ones. ... so you could fire Gambas, load IDE project, run it, load another IDE project into it, run it... now, *that* is what I would call a feature screenshot! :)) -- Radoslav Dejanovi? Operacijski sustavi d.o.o. http://www.opsus.hr From comercial at ...204... Mon Jul 21 09:56:52 2003 From: comercial at ...204... (=?iso-8859-1?q?Ram=F3n=20P=E9rez?=) Date: Mon, 21 Jul 2003 09:56:52 +0200 Subject: [Gambas-user] Compilation problem In-Reply-To: <200307210006.17857.gambas@...2...> References: <200307202334.57786.comercial@...204...> <200307210006.17857.gambas@...2...> Message-ID: <200307210956.53819.comercial@...204...> El Lunes, 21 de Julio de 2003 00:06, Benoit Minisini escribi?: Now it compile OK, but when I try to run gambas, it dysplay Project.Main.89: #2: Cannot load class 'Config': Unable to load class file Regards. > Le Dimanche 20 Juillet 2003 23:34, Ram?n P?rez a ?crit : > > My distro is Suse 8.2 > > Gambas 0.62 ./configure OK. > > > > When i write make > > > > libstdc++.so -L/usr/X11R6/lib -L/usr/lib -lqt-mt -Wl,-soname > > -Wl,lib.gb.qt.editor.so.0 -o .libs/lib.gb.qt.editor.so.0.0.0 > > /usr/lib/gcc-lib/i486-suse-linux/3.3/../../../../i486-suse-linux/bin/ld: > > cannot find -lqt-mt > > collect2: ld returned 1 exit status > > make[5]: *** [lib.gb.qt.editor.la] Error 1 > > make[5]: Leaving directory > > `/home/ramon/Documents/gambas-0.62/src/lib/qt/editor' > > make[4]: *** [all-recursive] Error 1 > > make[4]: Leaving directory `/home/ramon/Documents/gambas-0.62/src/lib/qt' > > make[3]: *** [all-recursive] Error 1 > > make[3]: Leaving directory `/home/ramon/Documents/gambas-0.62/src/lib' > > make[2]: *** [all-recursive] Error 1 > > make[2]: Leaving directory `/home/ramon/Documents/gambas-0.62/src' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/ramon/Documents/gambas-0.62' > > make: *** [all-recursive-am] Error 2 > > > > Thank you > > Have you got the following symbolic link on SuSE 8.2 ? > > /usr/lib/libqt-mt.so.3 -> /usr/lib/libqt-mt.so > > I think this link might miss on SuSE 8.2... > > Regards, -- Ram?n P?rez RAM NET INFORM?TICA comercial at ...204... From nferraz at ...184... Mon Jul 21 15:40:38 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 21 Jul 2003 10:40:38 -0300 Subject: [Gambas-user] frm2form 0.01 In-Reply-To: <200307202352.32692.sourceforge-raindog2@...94...> References: <200307202352.32692.sourceforge-raindog2@...94...> Message-ID: <1058794837.2365.28.camel@...57...> Em Seg, 2003-07-21 ?s 00:57, Rob escreveu: > Here is version 0.01 of frm2form.pl, which converts rudimentary VB forms into > very, very rudimentary Gambas forms. It is a Perl program, and so you'll > need Perl installed (but it should work on either Linux or Windows.) Coool!!! I've refactored your script, so it translate anything you put in the following hash: # Strings to translate (vb format => gb format) my %trans = ( 'VERSION (.+)' => '# Gambas Form File 1.0', 'VB\.(.+)\s+(.+)' => '$2 $1', 'Begin' => '{', 'End' => '}', 'BorderStyle' => 'Border', 'Caption' => 'Text', 'Command' => 'Button', '\"(.+)\"' => '("$1")' ); It also removes properties that we don't know how to handle (yet): # Strings we don't know how to translate my @nontrans = qw ( ClientHeight ClientLeft ClientTop ClientWidth LinkTopic MaxButton MinButton ScaleHeight ScaleMode ScaleWidth ShowInTaskbar TabIndex ); Attached is the script, a sample vb form, and the resulting gambas form. (Note: Gambas crashed when I tried to open it! :)) Regards, Nelson -------------- next part -------------- A non-text attachment was scrubbed... Name: vb2gb.pl Type: text/x-perl Size: 1173 bytes Desc: not available URL: -------------- next part -------------- VERSION 5.00 Begin VB.Form frmLogin BorderStyle = 3 'Fixed Dialog Caption = "System Login" ClientHeight = 2940 ClientLeft = 2940 ClientTop = 3330 ClientWidth = 6060 LinkTopic = "Form1" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 1737.049 ScaleMode = 0 'User ScaleWidth = 5690.012 ShowInTaskbar = 0 'False Begin VB.Frame Frame1 Caption = "Login" Height = 2895 Left = 0 TabIndex = 0 Top = 0 Width = 6015 Begin VB.CommandButton Command2 Caption = "Cancel" Height = 375 Left = 2880 TabIndex = 6 Top = 1800 Width = 1455 End Begin VB.CommandButton Command1 Caption = "Enter" Height = 375 Left = 600 TabIndex = 5 Top = 1800 Width = 1455 End Begin VB.TextBox Text2 Height = 285 Left = 1920 TabIndex = 3 Top = 960 Width = 1935 End Begin VB.TextBox Text1 Height = 285 Left = 1920 TabIndex = 1 Top = 480 Width = 2655 End Begin VB.Label Label2 Caption = "Password:" Height = 255 Left = 1080 TabIndex = 4 Top = 960 Width = 855 End Begin VB.Label Label1 Caption = "User Name:" Height = 255 Left = 960 TabIndex = 2 Top = 480 Width = 975 End End End Attribute VB_Name = "frmLogin" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Public LoginSucceeded As Boolean Private Sub cmdCancel_Click() 'set the global var to false 'to denote a failed login LoginSucceeded = False Me.Hide End Sub Private Sub cmdOK_Click() 'check for correct password If txtPassword = "password" Then 'place code to here to pass the 'success to the calling sub 'setting a global var is the easiest LoginSucceeded = True Me.Hide Else MsgBox "Invalid Password, try again!", , "Login" txtPassword.SetFocus SendKeys "{Home}+{End}" End If End Sub Private Sub lblLabels_Click(Index As Integer) End Sub -------------- next part -------------- # Gambas Form File 1.0 { frmLogin Form Border = 3 'Fixed Dialog Text = ("System Login") { Frame1 Frame Text = ("Login") Height = 2895 Left = 0 Top = 0 Width = 6015 { Button2 ButtonButton Text = ("Cancel") Height = 375 Left = 2880 Top = 1800 Width = 1455 } { Button1 ButtonButton Text = ("Enter") Height = 375 Left = 600 Top = 1800 Width = 1455 } { Text2 TextBox Height = 285 Left = 1920 Top = 960 Width = 1935 } { Text1 TextBox Height = 285 Left = 1920 Top = 480 Width = 2655 } { Label2 Label Text = ("Password:") Height = 255 Left = 1080 Top = 960 Width = 855 } { Label1 Label Text = ("User Name:") Height = 255 Left = 960 Top = 480 Width = 975 } } } From nferraz at ...184... Mon Jul 21 15:57:31 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 21 Jul 2003 10:57:31 -0300 Subject: [Gambas-user] frm2form 0.01 In-Reply-To: <1058794837.2365.28.camel@...57...> References: <200307202352.32692.sourceforge-raindog2@...94...> <1058794837.2365.28.camel@...57...> Message-ID: <1058795851.2368.34.camel@...57...> I'm trying to fix the previous script. Here is a new version, including new strings to translate: my %trans = ( 'VERSION (.+)' => '# Gambas Form File 1.0', 'VB\.(.+)\s+(.+)' => '$2 $1', 'Begin' => '{', 'End' => '}', 'BorderStyle' => 'Border', 'Caption' => 'Text', 'Command' => 'Button', 'CommandButton' => 'Button', 'ButtonButton' => 'Button', 'Label' => 'TextLabel', '\"(.+)\"' => '("$1")' ); The resulting form still crashes Gambas; I'm trying to spot the error. (Benoit, is it possible that Gambas raise an error, instead of simply dying?) Nelson -------------- next part -------------- A non-text attachment was scrubbed... Name: vb2gb.pl Type: text/x-perl Size: 1269 bytes Desc: not available URL: -------------- next part -------------- # Gambas Form File 1.0 { frmLogin Form Border = 3 'Fixed Dialog Text = ("System Login") { Frame1 Frame Text = ("Login") Height = 2895 Left = 0 Top = 0 Width = 6015 { Button2 Button Text = ("Cancel") Height = 375 Left = 2880 Top = 1800 Width = 1455 } { Button1 Button Text = ("Enter") Height = 375 Left = 600 Top = 1800 Width = 1455 } { Text2 TextBox Height = 285 Left = 1920 Top = 960 Width = 1935 } { Text1 TextBox Height = 285 Left = 1920 Top = 480 Width = 2655 } { TextLabel2 TextLabel Text = ("Password:") Height = 255 Left = 1080 Top = 960 Width = 855 } { TextLabel1 TextLabel Text = ("User Name:") Height = 255 Left = 960 Top = 480 Width = 975 } } } From nferraz at ...184... Mon Jul 21 16:28:47 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 21 Jul 2003 11:28:47 -0300 Subject: [Gambas-user] frm2form 0.01 In-Reply-To: <1058795851.2368.34.camel@...57...> References: <200307202352.32692.sourceforge-raindog2@...94...> <1058794837.2365.28.camel@...57...> <1058795851.2368.34.camel@...57...> Message-ID: <1058797727.2361.45.camel@...57...> Ok... I found the error: Gambas dies if the ".form" file doesn't have a corresponding ".class" file. D'oh! :) The latest version includes a function to convert twips to pixels (borrowed from Rob's script): # Twips properties that must be converted to pixels my @twips = qw (Top Left Width Height); # ... # Convert twips foreach my $t (@twips) { if ($input =~ /$t\s+\=\s+(\d+)/) { my $old_val = $1; my $new_val = int($old_val * 10 / 144); $input =~ s/$old_val/$new_val/g; } } I've successfully converted a simple VB form downloaded from the web! []s Nelson -------------- next part -------------- A non-text attachment was scrubbed... Name: vb2gb.pl Type: text/x-perl Size: 1566 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Mon Jul 21 16:11:59 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Jul 2003 10:11:59 -0400 Subject: [Gambas-user] frm2form 0.01 In-Reply-To: <1058795851.2368.34.camel@...57...> References: <200307202352.32692.sourceforge-raindog2@...94...> <1058794837.2365.28.camel@...57...> <1058795851.2368.34.camel@...57...> Message-ID: <200307211011.59015.sourceforge-raindog2@...94...> On Monday 21 July 2003 09:57, Nelson Ferraz wrote: > I'm trying to fix the previous script. Here is a new version, including > new strings to translate: Thanks for helping out with this! I noticed you had ClientHeight and ClientWidth in there as non-translatables. I was using those as the form's height and width fields (since they're always in twips, which I can convert, while ScaleHeight and ScaleWidth depend on the value of ScaleMode). What are you using for height and width presently? Also, be careful, if you just match on Begin and End you may match BeginProperty and EndProperty. That's why I did the ^\s*End\s*$ thing etc. I also am not sure it's safe to match the VB form files case sensitively; I know VB itself writes the stuff with consistent mixed case but I don't know about any third party tools people may have used. > The resulting form still crashes Gambas; I'm trying to spot the error. > (Benoit, is it possible that Gambas raise an error, instead of simply > dying?) Are you also creating a formname.class file? It can be empty, but Gambas gets mad if it doesn't find one (as in exits without error message.) But my guess would be your lack of Move(x,y,w,h) for each object on the form. ;) Here's the output of one of my unfinished VB frm's converted using my program; it doesn't crash Gambas for me (as long as I make a matching class file.) Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: emuform.class Type: application/x-java Size: 39 bytes Desc: not available URL: -------------- next part -------------- # Gambas Form File 1.0 { emuform Form Move(100, 100, 401, 292) Text = ("EmuDisk Command & Control Center") Persistent = True { Command1 Button Move(312, 254, 71, 34) } { Command2 Button Move(14, 254, 71, 34) } { GameList ListBox Move(208, 25, 167, 226) } { Romlist ListBox Move(4, 4, 167, 32) } { SystemCombo ListBox Move(6, 25, 167, 226) } { Timer1 Timer #X = 181 #Y = 262 Delay = 33 } { vgPicture Image Move(177, 33, 212, 212) } { vgText Label Move(183, 43, 210, 212) } From nferraz at ...184... Mon Jul 21 17:07:11 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 21 Jul 2003 12:07:11 -0300 Subject: [Gambas-user] frm2form 0.01 In-Reply-To: <200307211011.59015.sourceforge-raindog2@...94...> References: <200307202352.32692.sourceforge-raindog2@...94...> <1058794837.2365.28.camel@...57...> <1058795851.2368.34.camel@...57...> <200307211011.59015.sourceforge-raindog2@...94...> Message-ID: <1058800030.2365.62.camel@...57...> > Thanks for helping out with this! I noticed you had ClientHeight and > ClientWidth in there as non-translatables. I was using those as the form's > height and width fields (since they're always in twips, which I can convert, > while ScaleHeight and ScaleWidth depend on the value of ScaleMode). What are > you using for height and width presently? Yup! I included the following translation, and now the form is properly dimensioned: 'Client(\w+)' => '$1', > Also, be careful, if you just match on Begin and End you may match > BeginProperty and EndProperty. That's why I did the ^\s*End\s*$ thing etc. Thanks for the remark! I included a "\b" (word boundary) after the Begin and end, so it won't match BeginProperty and EndProperty: 'Begin\b' => '{', 'End\b' => '}', I'm removing everything between BeginProperty and EndProperty, since I'm not sure how Gambas would treat it: # Last touches { local $/; # Remove BeginProperty...EndProperty entire region $output =~ s/BeginProperty.+?EndProperty//gs; } > I also am not sure it's safe to match the VB form files case sensitively; I > know VB itself writes the stuff with consistent mixed case but I don't know > about any third party tools people may have used. Hmmm... it's working by now, but we could include a /i modifier in the regexps. > > The resulting form still crashes Gambas; I'm trying to spot the error. > > (Benoit, is it possible that Gambas raise an error, instead of simply > > dying?) > > Are you also creating a formname.class file? It can be empty, but Gambas gets > mad if it doesn't find one (as in exits without error message.) That was the problem! :) > But my guess would be your lack of Move(x,y,w,h) for each object on the form. No, that's okay; I'm using VB's Top, Left, Width and Height properties, and Gambas understand that. Here's the latest version of the script. I've managed to convert a relativelly complex form (attached), but I had to replace a scroll bar with a button. []s Nelson -------------- next part -------------- A non-text attachment was scrubbed... Name: vb2gb.pl Type: text/x-perl Size: 1815 bytes Desc: not available URL: -------------- next part -------------- VERSION 5.00 Begin VB.Form Form8 ClientHeight = 6510 ClientLeft = 60 ClientTop = 345 ClientWidth = 7350 LinkTopic = "Form8" Picture = "frmattendance.frx":0000 ScaleHeight = 6510 ScaleWidth = 7350 StartUpPosition = 3 'Windows Default Begin VB.Frame Frame1 BackColor = &H00FF0000& Height = 6495 Left = 0 TabIndex = 0 Top = 0 Width = 7335 Begin VB.Frame Frame2 Height = 4695 Left = 120 TabIndex = 1 Top = 1680 Width = 7095 Begin VB.Frame Frame3 Caption = "Attendance Roster" Height = 3015 Left = 120 TabIndex = 12 Top = 1560 Width = 6855 Begin VB.VScrollBar VScroll1 Height = 2895 Left = 6600 TabIndex = 13 Top = 120 Width = 255 End End Begin VB.TextBox Text1 Height = 285 Left = 3120 TabIndex = 11 Text = "MM/DD/YYYY" Top = 1080 Width = 1215 End Begin VB.ComboBox Combo1 Height = 315 Left = 1320 TabIndex = 9 Text = "CMPS 374" Top = 600 Width = 1695 End Begin VB.TextBox Text2 Height = 285 Left = 1320 TabIndex = 4 Text = "MM/DD/YYYY" Top = 1080 Width = 1215 End Begin VB.CommandButton Command2 Caption = "Get Attendance" Height = 375 Left = 4920 TabIndex = 3 Top = 360 Width = 1455 End Begin VB.CommandButton Command3 Caption = "Clear Form" Height = 375 Left = 4920 TabIndex = 2 Top = 1080 Width = 1455 End Begin VB.Label Label6 Alignment = 2 'Center Caption = "To" Height = 255 Left = 2400 TabIndex = 10 Top = 1080 Width = 735 End Begin VB.Label Label3 Caption = "Class:" Height = 255 Left = 120 TabIndex = 6 Top = 600 Width = 1335 End Begin VB.Label Label4 Caption = "Date Range:" Height = 255 Left = 120 TabIndex = 5 Top = 1080 Width = 1335 End End Begin VB.Label Label2 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Security Level: Faculty" BeginProperty Font Name = "MS Sans Serif" Size = 9.75 Charset = 0 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H000000FF& Height = 255 Left = 720 TabIndex = 8 Top = 1320 Width = 5295 End Begin VB.Label Label1 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Student Communicator and Tracker Attendance Menu" BeginProperty Font Name = "Comic Sans MS" Size = 20.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 1215 Left = 480 TabIndex = 7 Top = 120 Width = 6015 End End End Attribute VB_Name = "Form8" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub Form_Load() End Sub Private Sub Frame2_DragDrop(Source As Control, X As Single, Y As Single) End Sub From Gambasfr at ...11... Mon Jul 21 17:53:48 2003 From: Gambasfr at ...11... (Fabien BODARD) Date: Mon, 21 Jul 2003 17:53:48 +0200 Subject: [Gambas-user] Control arrays In-Reply-To: <200307202255.40590.sourceforge-raindog2@...94...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> <1058755544.664.16.camel@...57...> <200307202255.40590.sourceforge-raindog2@...94...> Message-ID: <200307211753.48473.Gambasfr@...11...> Le Lundi 21 Juillet 2003 04:55, Rob a ?crit : > On Sunday 20 July 2003 22:45, Nelson Ferraz wrote: > > It would be interesting to treat containers as collections, allowing > > constructs like: > > FOR EACH f IN Form > > PRINT (f.name) > > NEXT > > It doesn't seem to work, though. > > However, Form inherits Window which inherits Container, and Container has a > "Children" property.... which I think you can iterate over. > > I wonder if I could include an "inherited members" section on each page.... > hmmm. > > Rob > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Hi, There is another way ... With this : Public Image1 as Collection[] Public Const Zone_Size as Integer = 60 Public Sub New() Dim i as integer Dim j as integer Dim obj as Image For i = 0 to 2 For j = 0 to 2 Obj = New Image(Me) as "Image1" Obj.Move (i * Zone_Size, j * Zone_Size, Zone_Size, Zone_Size) Image1.Add(Obj) Next Next end So you can Manage the Image properties by : Image1[3] .Picture = Picture["img/cross.png"] And the events by : Public Sub Image1_Click() End With gambas we can emulate the vb controle usual use. Gambas is really today the beginning of a new powered basic implementation, in the little world of the good programming linguages. Fabien BODARD From nferraz at ...184... Mon Jul 21 18:18:57 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 21 Jul 2003 13:18:57 -0300 Subject: [Gambas-user] vb2gb.pl - VB conversion tool Message-ID: <1058804337.3116.10.camel@...57...> Here's the latest version of vb2gb. Just copy the three files to one directory. The most important change is that vb2gb will create both .form and .class files automatically. (Please note that it won't translate the VB code yet). Usage: ./vb2gb.pl You can translate many VB forms at once: ./vb2gb.pl *.frm Let me know how it works! []s Nelson -------------- next part -------------- package Frm2Class; use strict; ### Variables # Strings to translate (vb format => gb format) my %trans = ( '\r' => '', 'Caption' => 'Text', 'Command' => 'Button', 'CommandButton' => 'Button', 'ButtonButton' => 'Button', 'Label' => 'TextLabel', ); # Twips properties that must be converted to pixels my @twips = qw (Top Left Width Height); # Strings we don't know how to translate my @nontrans = qw ( LinkTopic MaxButton MinButton ScaleHeight ScaleMode ScaleWidth ShowInTaskbar TabIndex Picture StartUpPosition Alignment BackStyle ); ### Subs sub Translate_line { # Returns translated line my $input = shift; # Return if non translatable foreach my $nontrans (@nontrans) { return if $input =~ /$nontrans/; } # Translate foreach my $re (keys %trans) { my $regexp = "\$input =~ s/$re/$trans{$re}/g"; eval ($regexp); } # Convert twips foreach my $t (@twips) { if ($input =~ /$t\s+\=\s+(\d+)/) { my $old_val = $1; my $new_val = int($old_val * 10 / 144); $input =~ s/$old_val/$new_val/g; } } return $input; } ### sub Translate { # Returns translated line by line my $output; while (my $line = shift) { if ($line =~ /Attribute/) { $line = "' $line"; } $output .= &Translate_line($line); } # Last touches { local $/; # Remove anything until first Attribute $output =~ s/.+?Attribute/Attribute/gs; # Remove attributes $output =~ s/Attribute.+?\n//gs; } return $output; } 1; -------------- next part -------------- package Frm2Form; use strict; ### Variables # Strings to translate (vb format => gb format) my %trans = ( '\r' => '', 'VERSION (.+)' => '# Gambas Form File 1.0', 'VB\.(.+)\s+(.+)' => '$2 $1', 'Client(\w+)' => '$1', 'Begin\b' => '{', 'End\b' => '}', 'BorderStyle' => 'Border', 'Caption' => 'Text', 'Command' => 'Button', 'CommandButton' => 'Button', 'ButtonButton' => 'Button', 'Label' => 'TextLabel', '\"(.+)\"' => '("$1")', 'VScrollBar' => 'Button' # really ugly hack ); # Twips properties that must be converted to pixels my @twips = qw (Top Left Width Height); # Strings we don't know how to translate my @nontrans = qw ( LinkTopic MaxButton MinButton ScaleHeight ScaleMode ScaleWidth ShowInTaskbar TabIndex Picture StartUpPosition Alignment BackStyle ); ### Subs sub Translate_line { # Returns translated line my $input = shift; # Return if non translatable foreach my $nontrans (@nontrans) { return if $input =~ /$nontrans/; } # Translate foreach my $re (keys %trans) { my $regexp = "\$input =~ s/$re/$trans{$re}/g"; eval ($regexp); } # Convert twips foreach my $t (@twips) { if ($input =~ /$t\s+\=\s+(\d+)/) { my $old_val = $1; my $new_val = int($old_val * 10 / 144); $input =~ s/$old_val/$new_val/g; } } return $input; } ### sub Translate { # Returns translated line by line my $output; while (my $line = shift) { last if $line =~ /Attribute/; $output .= &Translate_line($line); } # Last touches { local $/; # Remove BeginProperty...EndProperty entire region $output =~ s/BeginProperty.+?EndProperty//gs; } return $output; } 1; -------------- next part -------------- A non-text attachment was scrubbed... Name: vb2gb.pl Type: text/x-perl Size: 858 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Mon Jul 21 18:09:34 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Jul 2003 12:09:34 -0400 Subject: [Gambas-user] frm2form 0.01 In-Reply-To: <1058800030.2365.62.camel@...57...> References: <200307202352.32692.sourceforge-raindog2@...94...> <200307211011.59015.sourceforge-raindog2@...94...> <1058800030.2365.62.camel@...57...> Message-ID: <200307211209.34168.sourceforge-raindog2@...94...> On Monday 21 July 2003 11:07, Nelson Ferraz wrote: > I'm removing everything between BeginProperty and EndProperty, since I'm > not sure how Gambas would treat it: I'm not sure whether it'll be possible to translate fonts from vb to gb, but if we can, we'll have to parse those blocks out eventually. Don't know what else falls between them. > Here's the latest version of the script. I've managed to convert a > relativelly complex form (attached), but I had to replace a scroll bar > with a button. Actually, if you make sure the gambas project you're bringing it into has the gb.qt.ext component, you can convert both HScrollBars and VScrollBars into Gambas ScrollBars (Gambas tells the difference by the height and width of the scrollbar, rather than having two separate controls.) Here's a modified version of the perl script and the resulting Gambas output, which Works For Me(tm) ;) I also changed back to <>. Hope you don't mind, but I really like <>'s ability to take filenames as parameters on the command line rather than having to do perl vb2gb.pl -------------- next part -------------- # Gambas Form File 1.0 { Form8 Form Height = 452 Left = 4 Top = 23 Width = 510 { Frame1 Frame BackColor = &H00FF0000& Height = 451 Left = 0 Top = 0 Width = 509 { Frame2 Frame Height = 326 Left = 8 Top = 116 Width = 492 { Frame3 Frame Text = ("Attendance Roster") Height = 209 Left = 8 Top = 108 Width = 476 { VScroll1 ScrollBar Height = 201 Left = 458 Top = 8 Width = 17 } } { Text1 TextBox Height = 19 Left = 216 Text = ("MM/DD/YYYY") Top = 75 Width = 84 } { Combo1 ComboBox Height = 21 Left = 91 Text = ("CMPS 374") Top = 41 Width = 117 } { Text2 TextBox Height = 19 Left = 91 Text = ("MM/DD/YYYY") Top = 75 Width = 84 } { Button2 Button Text = ("Get Attendance") Height = 26 Left = 341 Top = 25 Width = 101 } { Button3 Button Text = ("Clear Form") Height = 26 Left = 341 Top = 75 Width = 101 } { TextLabel6 TextLabel Text = ("To") Height = 17 Left = 166 Top = 75 Width = 51 } { TextLabel3 TextLabel Text = ("Class:") Height = 17 Left = 8 Top = 41 Width = 92 } { TextLabel4 TextLabel Text = ("Date Range:") Height = 17 Left = 8 Top = 75 Width = 92 } } { TextLabel2 TextLabel Text = ("Security Level: Faculty") ForeColor = &H000000FF& Height = 17 Left = 50 Top = 91 Width = 367 } { TextLabel1 TextLabel Text = ("Student Communicator and Tracker Attendance Menu") Height = 84 Left = 33 Top = 8 Width = 417 } } } From sourceforge-raindog2 at ...94... Mon Jul 21 18:14:45 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Jul 2003 12:14:45 -0400 Subject: [Gambas-user] vb2gb.pl - VB conversion tool In-Reply-To: <1058804337.3116.10.camel@...57...> References: <1058804337.3116.10.camel@...57...> Message-ID: <200307211214.45184.sourceforge-raindog2@...94...> On Monday 21 July 2003 12:18, Nelson Ferraz wrote: > The most important change is that vb2gb will create both .form and > .class files automatically. (Please note that it won't translate the VB > code yet). Heh, I guess we were both working on it at the same time. Here's a modified Frm2Form.pm that adds scrollbar support. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: Frm2Form.pm Type: text/x-perl Size: 1765 bytes Desc: not available URL: From nferraz at ...184... Mon Jul 21 18:37:39 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 21 Jul 2003 13:37:39 -0300 Subject: [Gambas-user] frm2form 0.01 In-Reply-To: <200307211209.34168.sourceforge-raindog2@...94...> References: <200307202352.32692.sourceforge-raindog2@...94...> <200307211011.59015.sourceforge-raindog2@...94...> <1058800030.2365.62.camel@...57...> <200307211209.34168.sourceforge-raindog2@...94...> Message-ID: <1058805459.3116.16.camel@...57...> > I also changed back to <>. Hope you don't mind, but I really like > <>'s ability to take filenames as parameters on the command line rather than > having to do perl vb2gb.pl References: <200307202334.57786.comercial@...204...> <200307210006.17857.gambas@...2...> <200307210956.53819.comercial@...204...> Message-ID: <200307211849.36886.gambas@...2...> Le Lundi 21 Juillet 2003 09:56, Ram?n P?rez a ?crit : > El Lunes, 21 de Julio de 2003 00:06, Benoit Minisini escribi?: > Now it compile OK, but when I try to run gambas, it dysplay > > Project.Main.89: #2: Cannot load class 'Config': Unable to load class file > > Regards. > Ah ! Mmmm... I forgot saying you must patch the 0.62 to let it work. You will find it in one of my previous posts. Sorry for the inconvenience... Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Mon Jul 21 20:53:13 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 21 Jul 2003 20:53:13 +0200 Subject: [Gambas-user] Control arrays In-Reply-To: <5.1.0.14.2.20030721000219.00baa328@...201...> References: <5.1.0.14.2.20030721000219.00baa328@...201...> Message-ID: <200307212053.13391.gambas@...2...> Le Dimanche 20 Juillet 2003 23:05, Ahmad Kamal a ?crit : > hi all, > > I am currently writing a TicTacToe game on GB. I already wrote it on VB, > so it's a matter of porting. The game of course consists of 9 identical > squares, in VB I made a control array. I know GB misses one, how can I do > something like: > > for i =1 to 10 > label(i).forecolor=vbGreen > next I'm not sure that arrays of controls defined at development time is useful. If all the controls have the same container, then the following is sufficient to browse the controls : FOR EACH hCtrl IN hContainer.Children ... NEXT If all the controls must have the same behaviour, the (Group) property is sufficient. In your case, if you want to use nine times the same control to make the TIC TAC TOE game, then I suggest you creating them at runtime. This way, you will be able to create a N x N game easily. ' Note: the following is a compound array, a VB-like array. This is completely ' different from Object[] that is a object array, ie a Java-like array. ' The compound array is allocated inside the object where it is declared. ' The other array is a real object allocated on the heap. PRIVATE hSquare[3, 3] AS Object FOR X = 0 TO 2 FOR Y = 0 TO 2 hSquare[X, Y] = NEW Label(hContainer) AS "TicTacToeSquare" ... NEXT NEXT Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Mon Jul 21 18:54:40 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 21 Jul 2003 18:54:40 +0200 Subject: [Gambas-user] vb2gb.pl - VB conversion tool In-Reply-To: <200307211214.45184.sourceforge-raindog2@...94...> References: <1058804337.3116.10.camel@...57...> <200307211214.45184.sourceforge-raindog2@...94...> Message-ID: <200307211854.40857.gambas@...2...> Le Lundi 21 Juillet 2003 18:14, Rob a ?crit : > On Monday 21 July 2003 12:18, Nelson Ferraz wrote: > > The most important change is that vb2gb will create both .form and > > .class files automatically. (Please note that it won't translate the VB > > code yet). > > Heh, I guess we were both working on it at the same time. Here's a > modified Frm2Form.pm that adds scrollbar support. > > Rob If I make a component to match Perl regexp, will you make a gambas version of this ? -- Benoit Minisini mailto:gambas at ...1... From nferraz at ...184... Mon Jul 21 21:30:09 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 21 Jul 2003 16:30:09 -0300 Subject: [Gambas-user] vb2gb.pl - VB conversion tool In-Reply-To: <200307211854.40857.gambas@...2...> References: <1058804337.3116.10.camel@...57...> <200307211214.45184.sourceforge-raindog2@...94...> <200307211854.40857.gambas@...2...> Message-ID: <1058815812.565.11.camel@...185...> > If I make a component to match Perl regexp, will you make a gambas version of > this ? YESSSS!!! []s Nelson From sourceforge-raindog2 at ...94... Mon Jul 21 21:37:09 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Jul 2003 15:37:09 -0400 Subject: [Gambas-user] vb2gb.pl - VB conversion tool In-Reply-To: <200307211854.40857.gambas@...2...> References: <1058804337.3116.10.camel@...57...> <200307211214.45184.sourceforge-raindog2@...94...> <200307211854.40857.gambas@...2...> Message-ID: <200307211537.09131.sourceforge-raindog2@...94...> On Monday 21 July 2003 12:54, Benoit Minisini wrote: > If I make a component to match Perl regexp, will you make a gambas version > of this ? Absolutely.... I was going to make a gambas wrapper for my perl script eventually but doing it all in one would be better. I could even try to make it into its own class so you could add a "File|Import VB Form..." to the gambas-ide ;) Rob From schrockk at ...137... Tue Jul 22 00:13:43 2003 From: schrockk at ...137... (Ken Schrock) Date: Mon, 21 Jul 2003 18:13:43 -0400 Subject: [Gambas-user] Debian Message-ID: <3F1C6597.9040507@...137...> Has anyone ever gotten Gambas to compile and run properly On Debian or any variant thereof (Lycoris, Lindows, Xandros)? From sourceforge-raindog2 at ...94... Tue Jul 22 01:09:09 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Jul 2003 19:09:09 -0400 Subject: [Gambas-user] Debian In-Reply-To: <3F1C6597.9040507@...137...> References: <3F1C6597.9040507@...137...> Message-ID: <200307211909.09380.sourceforge-raindog2@...94...> On Monday 21 July 2003 18:13, Ken Schrock wrote: > Has anyone ever gotten Gambas to compile and run properly > On Debian or any variant thereof (Lycoris, Lindows, Xandros)? I don't know how well it works, but Lindows added Gambas to "Click-n-Run" some time ago. http://www.lindows.com/lindows_products_details.php?id=9261 Of course it looks like they're currently 8 versions back... Rob From kschrock at ...149... Tue Jul 22 01:45:53 2003 From: kschrock at ...149... (Ken Schrock) Date: Mon, 21 Jul 2003 19:45:53 -0400 Subject: [Gambas-user] Debian In-Reply-To: <200307211909.09380.sourceforge-raindog2@...94...> References: <3F1C6597.9040507@...137...> <200307211909.09380.sourceforge-raindog2@...94...> Message-ID: <3F1C7B31.8030307@...149...> Rob wrote: >On Monday 21 July 2003 18:13, Ken Schrock wrote: > > >>Has anyone ever gotten Gambas to compile and run properly >>On Debian or any variant thereof (Lycoris, Lindows, Xandros)? >> >> >I don't know how well it works, but Lindows added Gambas to "Click-n-Run" some >time ago. > >http://www.lindows.com/lindows_products_details.php?id=9261 > >Of course it looks like they're currently 8 versions back... > Yes, quite old, beside, there is much one can't do with a binary package On top of that, since Gambas has a new version every 13 seconds And it seems to be a source oriented package in any case Not being able to compile it on ones distro of choice Is kind of a pita Also, this doesn't seem to be limited to the Deb line (including distors like libranet on top of the others which includes a lot of distros and Linux users) But tends to seem a general kind of thing (like hard to impossible on SuSe, etc) Adaptation of Gambas would be enhanced If it didn't seem like a RedHat \ Mandrake only kind of thing Particularly since Mandrake is currently in bankruptcy And RedHat is moving away from the desktop Not always using the bleeding edge versions of Qt and KDE Which nobody currently has, increasing the pita factor Would also help OMHO >Rob > > > > >------------------------------------------------------- >This SF.net email is sponsored by: VM Ware >With VMware you can run multiple operating systems on a single machine. >WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the >same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From sourceforge-raindog2 at ...94... Tue Jul 22 04:03:01 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Jul 2003 22:03:01 -0400 Subject: [Gambas-user] OT: and in the "too little too late" department Message-ID: <200307212201.53701.sourceforge-raindog2@...94...> ...RealBASIC announces Linux runtime support in the next version, but you'll have to build your projects under Mac or Windows: http://www.businesswire.com/cgi-bin/cb_headline.cgi?&story_file=bw.072103/232025288&directory=/google&header_file=header.htm&footer_file= They make a point of noting they already have a VB project, form and code converter, so we'd better get coding some more ;) I've been waiting for an announcement like this for about 3 years now, and would have been the first in line back then to pay for it if I could develop under Linux, but to announce so little when Gambas has come so far in recent months kind of underwhelms me. RealBASIC is a good product and one which no shop with both Macs and an IT staff should presently be without, in my book, and there are probably some people on this list for whom it could be a viable solution at $400, but this announcement just makes me want to work on Gambas more. Rob From sourceforge-raindog2 at ...94... Tue Jul 22 05:17:45 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 21 Jul 2003 23:17:45 -0400 Subject: [Gambas-user] Debian In-Reply-To: <3F1C7B31.8030307@...149...> References: <3F1C6597.9040507@...137...> <200307211909.09380.sourceforge-raindog2@...94...> <3F1C7B31.8030307@...149...> Message-ID: <200307212317.45458.sourceforge-raindog2@...94...> On Monday 21 July 2003 19:45, Ken Schrock wrote: > Yes, quite old, beside, there is much one can't do with a binary package > On top of that, since Gambas has a new version every 13 seconds > And it seems to be a source oriented package in any case > Not being able to compile it on ones distro of choice > Is kind of a pita I don't know what to tell you, there. There was no Mandrake package at the time I started playing with Gambas, and I don't install anything on my system that doesn't come from an RPM, so I built it myself and made it available for all the other Mandrake users. Nowadays it's easy because Benoit and I happen to be on the same Mandrake version, but when I started out I had to start from an out of date and not entirely correct SuSE spec file. That is to say, if you want a package for a distribution none of us (by which I mean people already using Gambas) uses, it kinda falls on you to make it. If you're running Woody, according to "important notes" you should be okay already. If you're running some older version of Debian, I again don't know what to tell you, except that it tends to be kinda difficult getting new desktop software working on "stable" Debian releases due to their being deliberately out of date. > Also, this doesn't seem to be limited to the Deb line > (including distors like libranet on top of the others > which includes a lot of distros and Linux users) > But tends to seem a general kind of thing > (like hard to impossible on SuSe, etc) Again, I only got my Mandrake package working by having the original Suse package available to work off of. Any RPM-based distribution should be able to take my source RPM's, tweak them just a little, and make binary packages. You may even be able to use "alien" to get a package working under Debian, though I have no experience with that (and very little with Debian.) See the Important Notes page on the website for the status of each distribution (he still has Mandrake 9.0 listed as a "waiting to hear from users" but it is working, the RPM's are up.) > Adaptation of Gambas would be enhanced > If it didn't seem like a RedHat \ Mandrake only kind of thing > Particularly since Mandrake is currently in bankruptcy > And RedHat is moving away from the desktop I think Red Hat has been one of the distributions that's been especially tough to get Gambas working with. There is going to be a focus on Mandrake for the foreseeable future because Benoit develops Gambas on it and I've been relatively quick making packages for it because of my anal-retentiveness about only installing software from packages. If I had been running Debian, maybe there would be Suse users on here complaining about the lack of RPM's or something. I don't know. It's just the luck of the draw that the author and a loudmouth packager are both using the same OS, but I am not inclined to switch distributions regardless of current bankruptcy proceedings or geekily correctness. I've run dozens of Linux distributions and I just keep coming back to the French, uh, excuse me, Freedom guys. As far as Debian goes, I notice from a little googling that there seem to be a lot of little Lindows programs popping up that require Gambas, not just LindowsBoy. I also have seen instructions for adding a Lindows apt source out there on the web. Maybe "apt-get source gambas" after adding their apt source would get you the Lindows people's Debian equivalent of a spec file. > Not always using the bleeding edge versions of Qt and KDE > Which nobody currently has, increasing the pita factor > Would also help For what it's worth, Mandrake 9.0 is presently about 9 months old and is based on KDE 3.0.2 or something like that, which itself is about a year old, and I can still build Gambas for it. This is in part because Benoit specifically fixed Gambas 0.62 so that it would work once again with Qt 3.0x. The only hard and fast requirements I can see presently are gcc 3.2 (already a year old) and Qt 3.x (about 18 months.) I expect Gambas' "optional" requirements to grow a lot as more components are added (regex, sockets, embedded database...) but the core should work on year-old software for a while yet. But surely you see the irony in not wanting to have to install bleeding-edge versions of other software in order to run bleeding-edge "alpha releases" of Gambas? After all, Lindows' ancient version of Gambas is still only about 3 months old.... We on the gambas-user list can't help users of other distributions with their build problems unless they come to the list with them, and when they do post, it seems to me Benoit helps rather enthusiastically. Three people reported the same bug in a couple days, Benoit produced a patch. Someone posted a weird compiler error, Benoit scratched his head and offered to ssh in and try to build it for them himself. In fact, you yourself asked for help on June 30. Benoit responded asking for more info, like which Debian you were running since we've had success reports on Woody, and you never posted anything back, at least not publicly, until this rant. I'd love to help people on whatever distribution to get Gambas running. Let's see some of your compile errors so we can figure out what you need to install or update or whatever. And if you're building on Debian and you succeed, please consider making and maintaining a .deb of it so other people won't have the same problems in the future. It'd be a shame if Gambas were "RPM only" after all. Rob From michael.thaler at ...205... Tue Jul 22 10:09:25 2003 From: michael.thaler at ...205... (Michael Thaler) Date: Tue, 22 Jul 2003 10:09:25 +0200 Subject: [Gambas-user] Bug in gambas 0.62:Project.Main.89: #2: Cannot load class 'Config': Unable to load class file Message-ID: <20030722100925.B1239@...206...> Hello, I installed gambas on Debian SID. ./configure && make && make install was fine, but when I try to start gambas, I get the following error: Project.Main.89: #2: Cannot load class 'Config': Unable to load class file I read some of the previous mails in the archive and I encountered, that other people did encounter this problem, too. But noone posted a solution (I saw a patch, but the mail was not clear: I do not know, if this patch addresses this problem). Does anyone know a solution for this problem? For the record: operating system: Debian SID with KDE 3.1.2, gcc version 3.3.1 20030626 (Debian prerelease), GNU Make 3.80, autoconf (GNU Autoconf) 2.57, automake (GNU automake) 1.4-p6, but I also have autmake 1.5, 1.6 and 1.7 installed. I installed gambas to /usr/local without postgresql and mysql drivers. This is the first time I try to install gambas. Would be nice if someone can give me a hint how I can get gambas working. Thanks in advance, Michael -- We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time. From nferraz at ...184... Tue Jul 22 14:19:40 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 22 Jul 2003 09:19:40 -0300 Subject: [Gambas-user] Bug in gambas 0.62:Project.Main.89: #2: Cannot load class 'Config': Unable to load class file In-Reply-To: <20030722100925.B1239@...206...> References: <20030722100925.B1239@...206...> Message-ID: <1058876379.613.6.camel@...57...> > I installed gambas on Debian SID. ./configure && make && make install > was fine, but when I try to start gambas, I get the following error: > > Project.Main.89: #2: Cannot load class 'Config': Unable to load class > file Michael, The patch provided by Benoit fixes this error. Just copy the file to the src/comp directory, as instructed in his message. []s Nelson From amelgar at ...207... Tue Jul 22 15:37:24 2003 From: amelgar at ...207... (Luis Alberto Melgar Garcia) Date: Tue, 22 Jul 2003 14:37:24 +0100 Subject: [Gambas-user] Bug in gambas 0.62:Project.Main.89: #2: Cannot load class 'Config': Unable to load class file In-Reply-To: <20030722100925.B1239@...206...> References: <20030722100925.B1239@...206...> Message-ID: <3F1D3E14.40502@...207...> Michael Thaler escribi?: > Hello, > > I installed gambas on Debian SID. ./configure && make && make install > was fine, but when I try to start gambas, I get the following error: > > Project.Main.89: #2: Cannot load class 'Config': Unable to load class > file > > I read some of the previous mails in the archive and I encountered, > that other people did encounter this problem, too. But noone posted a > solution (I saw a patch, but the mail was not clear: I do not know, if > this patch addresses this problem). > > Does anyone know a solution for this problem? > > For the record: operating system: Debian SID with KDE 3.1.2, gcc > version 3.3.1 20030626 (Debian prerelease), GNU Make 3.80, autoconf > (GNU Autoconf) 2.57, automake (GNU automake) 1.4-p6, but I also have > autmake 1.5, 1.6 and 1.7 installed. > > I installed gambas to /usr/local without postgresql and mysql drivers. > > This is the first time I try to install gambas. > > Would be nice if someone can give me a hint how I can get gambas > working. > > Thanks in advance, > Michael I think you have to put the file(patch) in the gambas where you decompres de gambas-0.62.tar.gz and compile and install again. sorry for my English :) hi from Canary Islands (spain) I love this program, thank you From michael.thaler at ...205... Tue Jul 22 15:01:30 2003 From: michael.thaler at ...205... (Michael Thaler) Date: Tue, 22 Jul 2003 15:01:30 +0200 Subject: [Gambas-user] Bug in gambas 0.62:Project.Main.89: #2: Cannot load class 'Config': Unable to load class file In-Reply-To: <1058876379.613.6.camel@...57...>; from Nelson Ferraz on Tue, Jul 22, 2003 at 09:19:40AM -0300 References: <20030722100925.B1239@...206...> <1058876379.613.6.camel@...57...> Message-ID: <20030722150129.F641@...206...> On Tue, Jul 22, 2003 at 09:19:40AM -0300, Nelson Ferraz wrote: > Michael, > > The patch provided by Benoit fixes this error. Just copy the file to the > src/comp directory, as instructed in his message. I copied the patch to src/comp and now everything works fine. Thank you very much for your help! Greetings from Germany, Michael -- We shall not cease from exploration, and the end of all our exploring will be to arrive where we started and know the place for the first time. From soporte at ...204... Wed Jul 23 01:21:13 2003 From: soporte at ...204... (=?iso-8859-1?q?Ram=F3n=20P=E9rez?=) Date: Wed, 23 Jul 2003 01:21:13 +0200 Subject: [Gambas-user] Compilation problem In-Reply-To: <200307211849.36886.gambas@...2...> References: <200307202334.57786.comercial@...204...> <200307210956.53819.comercial@...204...> <200307211849.36886.gambas@...2...> Message-ID: <200307230121.14123.soporte@...204...> El Lunes, 21 de Julio de 2003 18:49, Benoit Minisini escribi?: Thank you very much. All works fine. It's a great program. > Le Lundi 21 Juillet 2003 09:56, Ram?n P?rez a ?crit : > > El Lunes, 21 de Julio de 2003 00:06, Benoit Minisini escribi?: > > Now it compile OK, but when I try to run gambas, it dysplay > > > > Project.Main.89: #2: Cannot load class 'Config': Unable to load class > > file > > > > Regards. > > Ah ! Mmmm... I forgot saying you must patch the 0.62 to let it work. You > will find it in one of my previous posts. Sorry for the inconvenience... > > Regards, -- Ram?n P?rez RAM NET INFORM?TICA soporte at ...204... From rtsbasic at ...208... Wed Jul 23 01:49:54 2003 From: rtsbasic at ...208... (Richard Tough) Date: Wed, 23 Jul 2003 00:49:54 +0100 Subject: [Gambas-user] Compile error .62, Slack9/gcc3.2/QT3.1 Message-ID: <3F1DCDA2.80801@...208...> Hello, i'm attempting to compile Gambas .62 on Slackware-9, fails with the following "make" output: subr_string.o(.text+0x15af): In function `SUBR_sconv': /root/gambas-0.62/src/exec/subr_string.c:1215: undefined reference to `libiconv_open' subr_string.o(.text+0x160f):/root/gambas-0.62/src/exec/subr_string.c:1232: undefined reference to `libiconv' subr_string.o(.text+0x16b6):/root/gambas-0.62/src/exec/subr_string.c:1254: undefined reference to `libiconv_close' collect2: ld returned 1 exit status make[3]: *** [gbx] Error 1 I'm using gcc 3.2.2, QT 3.1.2, with "./configure --disable-pgsql-driver". Gambas .61 also fails to compile with an identical error. Please help! Richard From secmon at ...169... Wed Jul 23 12:57:33 2003 From: secmon at ...169... (Henry Ismaili) Date: Wed, 23 Jul 2003 20:57:33 +1000 Subject: [Gambas-user] Code Respository Message-ID: <200307232057.33576.secmon@...169...> Would it be an idea to start some sort of code repository for Gambas, like to search for code etc ... would prob help in regards to halting alot of "how do I ...?" q's when you could search for the code .... similiar to vbsearch.com etc ... my thoughts. Regards, Henry. From sourceforge-raindog2 at ...94... Wed Jul 23 14:33:25 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 23 Jul 2003 08:33:25 -0400 Subject: [Gambas-user] Code Respository In-Reply-To: <200307232057.33576.secmon@...169...> References: <200307232057.33576.secmon@...169...> Message-ID: <200307230833.25684.sourceforge-raindog2@...94...> On Wednesday 23 July 2003 06:57, Henry Ismaili wrote: > Would it be an idea to start some sort of code repository for Gambas, like > to search for code etc ... would prob help in regards to halting alot of > "how do I ...?" q's when you could search for the code .... > similiar to vbsearch.com etc ... Well, that was the point of theeasygambasdoku.de and I've been slowly incorporating Jochen's work there into the Gambas wiki. On the wiki, you and everyone else should feel free (and encouraged ;) ) to add code samples wherever you think it's relevant (though be warned that all the component documentation is going to be replaced shortly.) Both should be linked from the Gambas homepage. Rob From Gambasfr at ...11... Wed Jul 23 18:50:59 2003 From: Gambasfr at ...11... (Fabien BODARD) Date: Wed, 23 Jul 2003 18:50:59 +0200 Subject: [Gambas-user] Code Respository In-Reply-To: <200307230833.25684.sourceforge-raindog2@...94...> References: <200307232057.33576.secmon@...169...> <200307230833.25684.sourceforge-raindog2@...94...> Message-ID: <200307231851.00247.Gambasfr@...11...> Le Mercredi 23 Juillet 2003 14:33, Rob a ?crit : > On Wednesday 23 July 2003 06:57, Henry Ismaili wrote: > > Would it be an idea to start some sort of code repository for Gambas, > > like to search for code etc ... would prob help in regards to halting > > alot of "how do I ...?" q's when you could search for the code .... > > similiar to vbsearch.com etc ... > > Well, that was the point of theeasygambasdoku.de and I've been slowly > incorporating Jochen's work there into the Gambas wiki. On the wiki, you > and everyone else should feel free (and encouraged ;) ) to add code samples > wherever you think it's relevant (though be warned that all the component > documentation is going to be replaced shortly.) > > Both should be linked from the Gambas homepage. > > Rob > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > Gambas-user mailing list Salut There is a good french site who do that for vb php asp, etc (delphi). Its http://codes-sources.com/ and for vb : http://vbfrance.com I've learn all my vb with this kind of site... (I know i've not always a good touch... ;?)) Fabien Bodard > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From shannara at ...202... Wed Jul 23 22:53:21 2003 From: shannara at ...202... (shannara) Date: Wed, 23 Jul 2003 13:53:21 -0700 Subject: [Gambas-user] Windows Port Message-ID: Well, thanks for the info about the Windows port, sorry it took so long for me to write back :( I guess I'll take a peek at Real Basic then, since it offers cross-platform compilation :) Anyways, thanks for the answer, hopefully, if things (ie in the windows direction), I'll head on back here :) Anyways, thanks again for the answer! -S- From gambas at ...2... Wed Jul 23 21:48:11 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 23 Jul 2003 21:48:11 +0200 Subject: [Gambas-user] gambas 0.62a Message-ID: <200307232148.11966.gambas@...2...> Hello everyone, I uploaded a patched version of gambas 0.62 so that SuSE, Debian and other users could run gambas. Sorry for the inconvenience. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...2... Wed Jul 23 22:00:45 2003 From: gambas at ...2... (Benoit Minisini) Date: Wed, 23 Jul 2003 22:00:45 +0200 Subject: [Gambas-user] Compile error .62, Slack9/gcc3.2/QT3.1 In-Reply-To: <3F1DCDA2.80801@...208...> References: <3F1DCDA2.80801@...208...> Message-ID: <200307232200.45436.gambas@...2...> Le Mercredi 23 Juillet 2003 01:49, Richard Tough a ?crit : > Hello, i'm attempting to compile Gambas .62 on Slackware-9, fails with > the following "make" output: > > subr_string.o(.text+0x15af): In function `SUBR_sconv': > /root/gambas-0.62/src/exec/subr_string.c:1215: undefined reference to > `libiconv_open' > subr_string.o(.text+0x160f):/root/gambas-0.62/src/exec/subr_string.c:1232: > undefined reference to `libiconv' > subr_string.o(.text+0x16b6):/root/gambas-0.62/src/exec/subr_string.c:1254: > undefined reference to `libiconv_close' > collect2: ld returned 1 exit status > make[3]: *** [gbx] Error 1 > > I'm using gcc 3.2.2, QT 3.1.2, with "./configure > --disable-pgsql-driver". Gambas .61 also fails to compile with an > identical error. > Please help! > > Richard > > It is something missing in the configure script. You must add by hand the libiconv library while linking the gbx program in the Makefile.am files. I will try to solve this problem in the next version. -- Benoit Minisini mailto:gambas at ...1... From rtsbasic at ...208... Wed Jul 23 23:45:26 2003 From: rtsbasic at ...208... (Richard Tough) Date: Wed, 23 Jul 2003 22:45:26 +0100 Subject: [Gambas-user] Compile error .62, Slack9/gcc3.2/QT3.1 In-Reply-To: <200307232200.45436.gambas@...2...> References: <3F1DCDA2.80801@...208...> <200307232200.45436.gambas@...2...> Message-ID: <3F1F01F6.6040404@...208...> Benoit Minisini wrote: >Le Mercredi 23 Juillet 2003 01:49, Richard Tough a ?crit : > > >>Hello, i'm attempting to compile Gambas .62 on Slackware-9, fails with >>the following "make" output: >> >>subr_string.o(.text+0x15af): In function `SUBR_sconv': >>/root/gambas-0.62/src/exec/subr_string.c:1215: undefined reference to >>`libiconv_open' >>subr_string.o(.text+0x160f):/root/gambas-0.62/src/exec/subr_string.c:1232: >>undefined reference to `libiconv' >>subr_string.o(.text+0x16b6):/root/gambas-0.62/src/exec/subr_string.c:1254: >>undefined reference to `libiconv_close' >>collect2: ld returned 1 exit status >>make[3]: *** [gbx] Error 1 >> >>I'm using gcc 3.2.2, QT 3.1.2, with "./configure >>--disable-pgsql-driver". Gambas .61 also fails to compile with an >>identical error. >>Please help! >> >>Richard >> >> >> >> > >It is something missing in the configure script. You must add by hand the >libiconv library while linking the gbx program in the Makefile.am files. > >I will try to solve this problem in the next version. > > > Sorry but once it goes beyond ./configure && make && make install C++ programming/adjusting the files are way over my head, could you explain what reference I have to add to the Makefile.am files? (BTW, /usr/lib/libiconv.so which i assume it wants does exsist, and I checked out your new update - stops on same error, but figured was worth a try) Thanks for your help. Richard From gambas at ...162... Thu Jul 24 02:40:06 2003 From: gambas at ...162... (Wojtek) Date: Thu, 24 Jul 2003 02:40:06 +0200 Subject: [Gambas-user] Problem with codepage in Gambas-database-manager Message-ID: <200307240240.06735.gambas@...162...> Gambas-database-manager displays fields of database using UTF8 codepage. It's not important for databases created with Gambas. But if data included in database were previously inserted using another codepage, e.g. ISO8859-2 or windows-1250, then national characters are displayed incorrectly. Right now I don't have time to analyze and change this by myself. Would it be possible to add codepage auto-recognition of database and auto-conversion to UTF8? I suppose that it's not very complicated so maybe it would be possible to include such a patch in next version of Gambas-database-manager. In fact it wouldn't have to be full-auto. It could be solved using ComboBox with codepages as well. -- Wojciech Saltarski From vschmid at ...210... Sat Jul 26 09:34:13 2003 From: vschmid at ...210... (Volker Schmid) Date: Sat, 26 Jul 2003 09:34:13 +0200 Subject: [Gambas-user] Created a Forum for Gambas Message-ID: Hi, I'm new to Gambas and missed a forum. This would be much easier and faster to access than the mailinglist (my opinion). So I asked Benoit to do. But Benoit has not the time to do, so I decided to to it by myself. Here it is: http://pub63.ezboard.com/bgambasdiscussionforum After 30 days we get some advertising on this list. To prevent this I have to pay 10$ for three moths. I think everyone can use a popup-blocker (or use Opera 7.11. I use Opera on Mandrake 9.1 and it is great). Some advertising, I think, is ok to get a free forum. So, please use and read the forum. The more it is frequently used, the more people can see how great this product is and how good supported it is. I think, this is another step forward to make Gambas more public. Gr?sse, Volker Schmid From wizardmansite at ...43... Sun Jul 27 01:38:26 2003 From: wizardmansite at ...43... (Trax) Date: Sat, 26 Jul 2003 16:38:26 -0700 (PDT) Subject: [Gambas-user] Sound Message-ID: <20030726233826.49108.qmail@...211...> Hello my question is when will Gambas support MIDI and WAV sound files? --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Sun Jul 27 02:04:55 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 26 Jul 2003 20:04:55 -0400 Subject: [Gambas-user] Sound In-Reply-To: <20030726233826.49108.qmail@...211...> References: <20030726233826.49108.qmail@...211...> Message-ID: <200307262004.56000.sourceforge-raindog2@...94...> On Saturday 26 July 2003 19:38, Trax wrote: > Hello my question is when will Gambas support MIDI and WAV sound files? It's planned for eventual inclusion via SDL, but you can do it now by starting mplayer or xmms in "slave mode" and sending a play command (using the process object, much like writing to an open file) whenever you want to play a sample. I don't know about MIDI files, but playing those through timidity or something similar should be possible the same way. I have released a Gambas program PVRec that takes an MPEG stream and saves it to disk while simultaneously playing it in MPlayer in realtime, so this isn't just theoretical. Gambas doesn't have a million components written yet, but thankfully, Linux makes it a lot easier to control external programs than Windows does ;) Rob From sourceforge-raindog2 at ...94... Mon Jul 28 04:12:11 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 27 Jul 2003 22:12:11 -0400 Subject: [Gambas-user] Created a Forum for Gambas In-Reply-To: References: Message-ID: <200307272212.11365.sourceforge-raindog2@...94...> On Saturday 26 July 2003 03:34, Volker Schmid wrote: > After 30 days we get some advertising on this list. To prevent this I have > to pay 10$ for three moths. I think everyone can use a popup-blocker (or > use Opera 7.11. I use Opera on Mandrake 9.1 and it is great). Some > advertising, I think, is ok to get a free forum. If the ads bother people, I can certainly set up phpboard or something on the same site as the Gambas-wiki. I'd like to see people continue to bring technical questions here though, so we don't have to look in two different archives to find answers to our questions. Granted it's not as visible as a forum (sourceforge needs a better interface to their mailing lists) but Linux is kinda built by people on mailing lists ;) Rob From bsnipes at ...21... Mon Jul 28 05:45:33 2003 From: bsnipes at ...21... (Brian Snipes) Date: 27 Jul 2003 22:45:33 -0500 Subject: [Gambas-user] Created a Forum for Gambas In-Reply-To: <200307272212.11365.sourceforge-raindog2@...94...> References: <200307272212.11365.sourceforge-raindog2@...94...> Message-ID: <1059363933.9766.7.camel@...73...> I personally prefer forums for programming related questions but I don't like giving out my mailing address to sign up for a forum (which apparently ezboard wants). I can setup phpBB (or an alternate product) on my server if that is preferred by the majority. Brian On Sun, 2003-07-27 at 21:12, Rob wrote: > On Saturday 26 July 2003 03:34, Volker Schmid wrote: > > After 30 days we get some advertising on this list. To prevent this I have > > to pay 10$ for three moths. I think everyone can use a popup-blocker (or > > use Opera 7.11. I use Opera on Mandrake 9.1 and it is great). Some > > advertising, I think, is ok to get a free forum. > > If the ads bother people, I can certainly set up phpboard or something on the > same site as the Gambas-wiki. I'd like to see people continue to bring > technical questions here though, so we don't have to look in two different > archives to find answers to our questions. Granted it's not as visible as a > forum (sourceforge needs a better interface to their mailing lists) but Linux > is kinda built by people on mailing lists ;) > > Rob > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- C. Brian Snipes RHCE, MCNE, LCP, CCNA, MCP Dynamic Network Integration, Inc. Phone : 205.640.6913 Cell : 205.296.3493 From vschmid at ...210... Mon Jul 28 06:55:36 2003 From: vschmid at ...210... (Volker Schmid) Date: Mon, 28 Jul 2003 06:55:36 +0200 Subject: [Gambas-user] Created a Forum for Gambas In-Reply-To: <1059363933.9766.7.camel@...73...> References: <200307272212.11365.sourceforge-raindog2@...94...> <1059363933.9766.7.camel@...73...> Message-ID: Hi Brian, > I personally prefer forums for programming related questions but I don't > like giving out my mailing address to sign up for a forum (which I just testet to post without a login. No problem ('Other...'-Section of the board). Gr?sse, Volker From eng_ak at ...200... Mon Jul 28 16:54:23 2003 From: eng_ak at ...200... (Ahmad Kamal) Date: Mon, 28 Jul 2003 17:54:23 +0300 Subject: [Gambas-user] Types? Records? Message-ID: <3F25391F.50102@...200...> Hi all, Does Gambas support creating Types (records in C) to store data? From sourceforge-raindog2 at ...94... Mon Jul 28 17:39:33 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 28 Jul 2003 11:39:33 -0400 Subject: [Gambas-user] Types? Records? In-Reply-To: <3F25391F.50102@...200...> References: <3F25391F.50102@...200...> Message-ID: <200307281139.33856.sourceforge-raindog2@...94...> On Monday 28 July 2003 10:54, Ahmad Kamal wrote: > Does Gambas support creating Types (records in C) to store data? You would use classes for that. I don't know how to get a binary formatted concatenation of the whole record like in C automatically, but it shouldn't be too tough to write a function to do that and make it a property get function. See the following code from theeasygambasdoku: http://www.binara.com/gambas-wiki/pub/Gambas/HowDoIMakeAnObjectOfAClass/ccar.html It's worth mentioning that Gambas may have changed somewhat since that code was written, and Benoit plans in the near future to allow classes to have property functions like controls do in addition to public variables which they have already. If you wrote a class file, say CThingy.class, like so: PUBLIC Foo as Integer PUBLIC Bar as Float PUBLIC Baz as String PUBLIC SUB _new(OPTIONAL initFoo as Integer, OPTIONAL initBar as Float, OPTIONAL initBaz as String) Foo = initFoo Bar = initBar Baz = initBaz END you would then be able to go dim myThingy as CThingy myThingy = new CThingy(5, 3.14159, "This is a string") Message.Info("The cow says: " & myThingy.Baz) ' etc. For simpler types you could just use a collection as you would use a hash in Perl. Rob From nferraz at ...184... Mon Jul 28 18:51:30 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 28 Jul 2003 13:51:30 -0300 Subject: [Gambas-user] Types? Records? In-Reply-To: <200307281139.33856.sourceforge-raindog2@...94...> References: <3F25391F.50102@...200...> <200307281139.33856.sourceforge-raindog2@...94...> Message-ID: <1059411089.599.61.camel@...57...> > You would use classes for that. I don't know how to get a binary formatted > concatenation of the whole record like in C automatically, but it shouldn't > be too tough to write a function to do that and make it a property get > function. Hmmm... this may be off-topic, but it would be nice to add the concept of serializable, persistent and prevalent objects to Gambas: "Object prevalence is inherently and conceptually simple and can be implemented in any object-oriented programming language that can serialize an object -- a feature in many modern OO languages. In a prevalent system, everything is kept in RAM, as though you were just using a programming language. Serializable command objects manage all the necessary changes required for persistence." http://www-106.ibm.com/developerworks/web/library/wa-objprev/?loc=dwmain Nelson From sourceforge-raindog2 at ...94... Mon Jul 28 19:18:01 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 28 Jul 2003 13:18:01 -0400 Subject: [Gambas-user] Types? Records? In-Reply-To: <1059411089.599.61.camel@...57...> References: <3F25391F.50102@...200...> <200307281139.33856.sourceforge-raindog2@...94...> <1059411089.599.61.camel@...57...> Message-ID: <200307281318.01753.sourceforge-raindog2@...94...> On Monday 28 July 2003 12:51, Nelson Ferraz wrote: > Hmmm... this may be off-topic, but it would be nice to add the concept > of serializable, persistent and prevalent objects to Gambas: Could you describe (in IT terms rather than CS terms) what serializable/persistent/prevalent objects would do for us? All I can imagine is that "serializable" means "every object of a class gets a serial identifier" which I would assume is already the case, and that "persistent" means "every object has its own routines for saving its state to disk between runs", which I think is a Bad Idea(tm). I have no idea what prevalent means unless it means "everything's an object" which I think is already how Gambas works. ;) Yes, I did read the DeveloperWorks article, and it was completely over my head. Maybe it's because it seems to be aimed at Java/Websphere developers or maybe it's just me. Sorry, I got an A in my CS1 class where we learned Pascal on a Prime mini, then an A in my introduction to C, and I used to be able to implement Qsort from memory, but I never passed (or, indeed, finished) another CS class after that. ;) Which hasn't stopped me from writing a ton of code in Java/C++/assorted other OO languages, but I am only now getting past "OO programming sucks" and have a tough time grasping "Here's an esoteric way to add more functionality to your OO language." Rob From eng_ak at ...200... Mon Jul 28 19:53:00 2003 From: eng_ak at ...200... (Ahmad Kamal) Date: Mon, 28 Jul 2003 20:53:00 +0300 Subject: [Gambas-user] Dyn array Message-ID: <5.1.0.14.2.20030728205033.00bad510@...201...> Hi all, I am trying to make a dynamic array of integers, but it causing some problems. This one should be real easy, but I didn't find any example to help. Here is the code: Public pos as integer[] Public SUB form_open pos[1] = 100 '==>>> This causes "Null Object" Error?? regards From nferraz at ...184... Mon Jul 28 20:19:33 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 28 Jul 2003 15:19:33 -0300 Subject: [Gambas-user] Types? Records? In-Reply-To: <200307281318.01753.sourceforge-raindog2@...94...> References: <3F25391F.50102@...200...> <200307281139.33856.sourceforge-raindog2@...94...> <1059411089.599.61.camel@...57...> <200307281318.01753.sourceforge-raindog2@...94...> Message-ID: <1059416373.589.164.camel@...57...> > Could you describe (in IT terms rather than CS terms) what > serializable/persistent/prevalent objects would do for us? All I can imagine > is that "serializable" means "every object of a class gets a serial > identifier" which I would assume is already the case Not exactly that: The idea is that you can convert any complex object into a string, and then back into an object. (Think of Data::Dumper :)) > , and that "persistent" > means "every object has its own routines for saving its state to disk between > runs", which I think is a Bad Idea(tm). Almost that, but only the objects that you declare as "persistent" should have their own routines for saving their state. > I have no idea what prevalent means > unless it means "everything's an object" which I think is already how Gambas > works. ;) Prevalence goes one step further, by allowing ACID transactions, fault tolerance, replication, and load balancing. The Prevayler team claims to have achieved most of this with a really simple class (~ 350 lines of code). According to them, "You can use any language for which you are able to find or build a serialization mechanism. In languages where you can directly access the system's memory and if the business objects are held in a specific memory segment, you can also write that segment out to the snapshot file instead of using serialization." http://www.prevayler.org/wiki.jsp?topic=DoesPrevalenceOnlyWorkInJava Nelson From sourceforge-raindog2 at ...94... Mon Jul 28 20:17:11 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 28 Jul 2003 14:17:11 -0400 Subject: [Gambas-user] EXEC ... WAIT FOR READ Message-ID: <200307281417.11867.sourceforge-raindog2@...94...> I've started working on a CGI module for Gambas (not all that seriously, but I would like to get into a discussion about "Gambas Server Pages" eventually :) ), and the first thing I need to do is spawn a shell and run "set" so I can get a list of environment variables. But running EXEC [ "bash", "-c", "set" ] WAIT FOR READ AS BashProcess while it sparks the process, never causes Process_Write to be called. Removing the WAIT works, but I don't always get a complete set of variables (sometimes it cuts off after 2 or 3, sometimes it goes all the way.) Adding the lines Do While BashProcess.State = Process.Running Wait Loop in the calling sub has the exact same effect as adding the WAIT to the EXEC line, i.e. no output at all. The best results I've had have been without the WAIT but adding "; sleep 2" to the third EXEC array element. However, while I always seem to get complete output that way, it's no longer broken into lines for some reason, but comes down in (I would bet) 256 byte chunks which I need to append together and then split on \n to get my array of variables. So then I'm back to needing to wait till the process has ended again in order to parse the variables out, and I don't have a good way to do that. Suggestions? Also, is there a way to WATCH standard input the way you can add WATCH when opening device files now? Because POST forms provide their form variables on the standard input, and other stuff (like cookies) is the same way. Rob From Gambasfr at ...11... Mon Jul 28 20:40:03 2003 From: Gambasfr at ...11... (Fabien BODARD) Date: Mon, 28 Jul 2003 20:40:03 +0200 Subject: [Gambas-user] Dyn array In-Reply-To: <5.1.0.14.2.20030728205033.00bad510@...201...> References: <5.1.0.14.2.20030728205033.00bad510@...201...> Message-ID: <200307282040.03833.Gambasfr@...11...> Le Lundi 28 Juillet 2003 19:53, Ahmad Kamal a ?crit : > Hi all, > > I am trying to make a dynamic array of integers, but it causing some > problems. This one should be real easy, but I didn't find any example to > help. > > Here is the code: > > Public pos as integer[] > > Public SUB form_open > pos[1] = 100 '==>>> This causes "Null Object" Error?? > > > regards Type : Public pos as NEW Integer[] Fabien Bodard From sourceforge-raindog2 at ...94... Mon Jul 28 20:07:54 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Mon, 28 Jul 2003 14:07:54 -0400 Subject: [Gambas-user] Dyn array In-Reply-To: <5.1.0.14.2.20030728205033.00bad510@...201...> References: <5.1.0.14.2.20030728205033.00bad510@...201...> Message-ID: <200307281407.54430.sourceforge-raindog2@...94...> On Monday 28 July 2003 13:53, Ahmad Kamal wrote: > Public pos as integer[] > > Public SUB form_open ' add here: pos = new integer[] 'and all should be fine :) > pos[1] = 100 '==>>> This causes "Null Object" Error?? Rob From eng_ak at ...200... Mon Jul 28 20:22:19 2003 From: eng_ak at ...200... (Ahmad Kamal) Date: Mon, 28 Jul 2003 21:22:19 +0300 Subject: [Gambas-user] Created a Forum for Gambas In-Reply-To: <200307272212.11365.sourceforge-raindog2@...94...> References: Message-ID: <5.1.0.14.2.20030728212044.03860de0@...201...> At 05:12 AM 7/28/2003, you wrote: >On Saturday 26 July 2003 03:34, Volker Schmid wrote: > > After 30 days we get some advertising on this list. To prevent this I have > > to pay 10$ for three moths. I think everyone can use a popup-blocker (or > > use Opera 7.11. I use Opera on Mandrake 9.1 and it is great). Some > > advertising, I think, is ok to get a free forum. > >If the ads bother people, I can certainly set up phpboard or something on the >same site as the Gambas-wiki. I'd like to see people continue to bring >technical questions here though, so we don't have to look in two different >archives to find answers to our questions. Granted it's not as visible as a >forum (sourceforge needs a better interface to their mailing lists) but Linux >is kinda built by people on mailing lists ;) Totally agree, I personally prefer to read this stuff on my mailbox, and not on a forum. A perfect solution IMHO would be a forum that has a mail interface as well, i.e. mail get sync'ed with web interface, wherever u post. Don't know if this is possible though >Rob From gambas at ...2... Mon Jul 28 23:05:19 2003 From: gambas at ...2... (Benoit Minisini) Date: Mon, 28 Jul 2003 23:05:19 +0200 Subject: [Gambas-user] Types? Records? In-Reply-To: <1059411089.599.61.camel@...57...> References: <3F25391F.50102@...200...> <200307281139.33856.sourceforge-raindog2@...94...> <1059411089.599.61.camel@...57...> Message-ID: <200307282305.19508.gambas@...2...> Le Lundi 28 Juillet 2003 18:51, Nelson Ferraz a ?crit : > > You would use classes for that. I don't know how to get a binary > > formatted concatenation of the whole record like in C automatically, but > > it shouldn't be too tough to write a function to do that and make it a > > property get function. > > Hmmm... this may be off-topic, but it would be nice to add the concept > of serializable, persistent and prevalent objects to Gambas: > > "Object prevalence is inherently and conceptually simple and can be > implemented in any object-oriented programming language that can > serialize an object -- a feature in many modern OO languages. > > In a prevalent system, everything is kept in RAM, as though you were > just using a programming language. Serializable command objects manage > all the necessary changes required for persistence." > > http://www-106.ibm.com/developerworks/web/library/wa-objprev/?loc=dwmain > > Nelson > Great ! Fascinating as said M. Spock ! I have just downloaded the source package of the prevalent system to study it. I have already begun to study a simple persistent system for Gambas objects that maps them to relational databases. Prevalent systems may be a better solution ! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...162... Tue Jul 29 21:43:46 2003 From: gambas at ...162... (Wojtek) Date: Tue, 29 Jul 2003 21:43:46 +0200 Subject: [Gambas-user] libqt-mt.so.3 again Message-ID: <200307282026.52193.gambas@...162...> SuSE 8.1 / KDE 3.1 / QT 3.1.1 SHELL "cat /xxx | grep yyy > tempFile" WAIT or SHELL "ls -l /xxx > tempFile" WAIT is O.K. but SHELL "mount /media/dvd" WAIT or SHELL "umount /media/dvd" WAIT log -> mount: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory export LD_LIBRARY_PATH=/usr/lib/qt3/lib gbi didn't help ls -l /usr/lib | grep libqt-mt.s* lrwxrwxrwx 1 root root 28 2002-12-04 04:42 libqt-mt.so.2 -> ../lib/qt2/lib/libqt-mt.so.2 lrwxrwxrwx 1 root root 28 2003-01-29 01:57 libqt-mt.so.3 -> ../lib/qt3/lib/libqt-mt.so.3 I add link lrwxrwxrwx 1 root root 34 2003-07-28 18:14 libqt-mt.so -> /usr/lib/qt3/lib/libqt-mt.so.3.1.1 didn't help ls -l /bin | grep mount -rwsr-xr-x 1 root root 73032 2002-10-08 22:52 mount -rwsr-xr-x 1 root root 36968 2002-10-08 22:52 umount chmod -s /bin/mount log -> mount: must be superuser to use mount Why not "error while loading..." etc.? I don't understand it. Can anybody explain it to me? -- Wojciech Saltarski From nferraz at ...184... Wed Jul 30 17:01:09 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 30 Jul 2003 12:01:09 -0300 Subject: [Gambas-user] Larry Wall: Natural Language Principles in Perl Message-ID: <1059577269.597.14.camel@...57...> Here's an interesting article from Perl creator, Larry Wall, where he writes about the natural language principles behind Perl: - Learn it once, use it many times - Learn as you go - Many acceptable levels of competence - Multiple ways to say the same thing - No shame in borrowing - Indeterminate dimensionality - Local ambiguity is okay - Punctuation by prosody and inflection - Disambiguation by number, case and word order - Topicalization - Discourse structure - Pronominalization - No theoretical axes to grind - Style not enforced except by peer pressure - Cooperative design - ``Inevitable'' Divergence The article is well worth reading: http://www.wall.org/~larry/natural.html From vschmid at ...210... Thu Jul 31 17:32:37 2003 From: vschmid at ...210... (Volker Schmid) Date: Thu, 31 Jul 2003 17:32:37 +0200 Subject: [Gambas-user] Crashes with pictures Message-ID: Hi, I have a lot of strange problems using Gambas 0.62 (Madrake 9.1 with Kudla-RPM's). If I place a picture (PNG-Format with 800x800 pixels) in the project-folder and draw a simple Image-Control onto the form it is everything ok. But if I want to set the Picture-Property (pressing the [...] button) the whole IDE crashes. I think the picture is to great to handle for the file-requester? There are also many errors when I try to load this picture into a picture-control. I found no way to do this. The builtin Icon-Editor can open and display this picture with no problems (Right-Click and Edit). Then I try this: PicRennstrecke.Picture = Picture["Rennstrecke.png"] And after every error ("The program has returned the value: 1" followed by "Unknown Symbol 'Picture' in class 'DrawingArea'"), I have to restart the Gambas-IDE, because the program won't compile a second time to test something. If I set a Code like this: DIM KoordX[200] AS Integer KoordX[200]=10 The whole program says "The program has returned the value: 1" followed by "Out of bounds". This is ok, but after this error I can't compile anymore. I have to close and restart Gambas. How can I help to identify those problems? Gr?sse, Volker From sourceforge-raindog2 at ...94... Thu Jul 31 17:56:36 2003 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 31 Jul 2003 11:56:36 -0400 Subject: [Gambas-user] Crashes with pictures In-Reply-To: References: Message-ID: <200307311156.36532.sourceforge-raindog2@...94...> On Thursday 31 July 2003 11:32, Volker Schmid wrote: > I have a lot of strange problems using Gambas 0.62 (Madrake 9.1 with > Kudla-RPM's). I can't duplicate your first problem (could you post a link to a PNG file that crashes it?) but I was able to make the crash with the integer array happen both on my RPM version and on the raw source build. Rob From nferraz at ...184... Thu Jul 31 21:25:58 2003 From: nferraz at ...184... (Nelson Ferraz) Date: 31 Jul 2003 16:25:58 -0300 Subject: [Gambas-user] Wish List and RFEs Message-ID: <1059679557.660.74.camel@...57...> Benoit and Rob, Since Sourceforge has a RFE ("Requests For Enhancements") list, I moved the wish list from the wiki to there: http://sourceforge.net/tracker/?group_id=5417&atid=355417 BTW, I wonder if we shouldn't be using Sourceforge to manage bug reports? []s Nelson From jsz at ...464... Mon Jul 7 01:46:47 2003 From: jsz at ...464... (Janos Sztriko) Date: Mon, 7 Jul 2003 01:46:47 +0200 Subject: [Gambas-user] write to ServerSocket Message-ID: <20030707014647.00003f3d@...465...> Hi all, A short introduction fro me: I am a 31 year old electronic engineer. I found this great tool one week before, and now I try to use it for building HMIs (Human-Machine Interface). I started to implement a data server, which interprets the serial port traffic (now I'm going to use the protocol of the OMRON PLCs), and act as a data source for the user windows via TCP/IP. My starting points was the ServerSocket and KlientSocket examples. No I have a problem. My sender sub something like this: PUBLIC SUB Button1_Click() DIM outstring AS String IF Server.Status = Net.Connected THEN outstring = "message" WRITE #Server,outstring,Len(outstring) END IF END (Server is a ServerSocket) But I got this error: "Type mismatch: wanted .Stream, got ServerSocket instead" Is there somebody out there, who can explain the problem for me? What did I wrong? Thanks in advance, Janos