From danielcampos at ...45... Thu May 6 08:50:47 2004 From: danielcampos at ...45... (danielcampos at ...45...) Date: Thu, 6 May 2004 08:50:47 CEST Subject: [Gambas-devel] A question about events Message-ID: Hello Benoit: Imagine that I would like to write a GTK component. What are exactly the events that I should not process when I'm in the WAIT hook? It seems to be all events sent by the user, but I really don't know what are they... Another question : at gambas component documentation, you say that 'WAIT' hook must call the event loop... what do you really mean with this? Actually, if I were working on GTK component I'd call to the gtk _main_iteration() to process events, and then sleep the 'long duration' time, but gambas would call my wait hook lots of times, as If I were not sleeping the 'duration' time... Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From matthias_faust at ...51... Thu May 6 08:53:54 2004 From: matthias_faust at ...51... (Matthias Faust) Date: Thu, 06 May 2004 08:53:54 +0200 Subject: [Gambas-devel] Re: compling new component Message-ID: <260363089@...51...> I got my component (SDL GFX) to compile by changing the configure.in (add your new directory, you will see where ;) in the gambas source root and the gambas/src/lib/lib.gb.component (add the name of your dir to SUBDIRS) Hope that will help. (And sorry for my terrible English ;) Matthias. _______________________________________________________________________ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 From matthias_faust at ...51... Thu May 6 10:01:34 2004 From: matthias_faust at ...51... (Matthias Faust) Date: Thu, 06 May 2004 10:01:34 +0200 Subject: [Gambas-devel] Re: compling new component Message-ID: <260415249@...51...>

gambas-devel at lists.sourceforge.net schrieb am 06.05.04 08:55:25:
>
> I got my component (SDL GFX) to compile by changing the configure.in (add your new directory, you will see where ;) in the gambas source root and the gambas/src/lib/lib.gb.component (add the name of your dir to SUBDIRS)
>
> Hope that will help. (And sorry for my terrible English ;)
>
> Matthias.
>
> _______________________________________________________________________
> ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail
> ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Eric! sson & Lucent use to deliver
> higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel

Sorry, not in the lib.gb.component ;) It is the Makefile.am in the src/lib dir...

_____________________________________________________________________ Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-P! Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157 From gambas at ...1... Sun May 9 23:38:58 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 9 May 2004 23:38:58 +0200 Subject: [Gambas-devel] A question about events In-Reply-To: References: Message-ID: <200405092338.58706.gambas@...1...> On Thursday 06 May 2004 13:50, danielcampos at ...45... wrote: > Hello Benoit: > > Imagine that I would like to write a GTK component. What are exactly > the events that I should not process when I'm in the WAIT hook? It seems to > be all events sent by the user, but I really don't know what are they... QT has a fonction that just process pending events except the interactive one. > > Another question : at gambas component documentation, you say that 'WAIT' > hook must call the event loop... what do you really mean with this? It means that the wait hook must process event, or wait until a given duration elapses. > Actually, if I were working on GTK component I'd call to the gtk > _main_iteration() to process events, and then sleep the 'long duration' > time, but gambas would call my wait hook lots of times, as If I were not > sleeping the 'duration' time... Look in gbx_subr_misc.c at line 71: the wait hook is called repeatedly until duration really elapses. Maybe, liek the QT function, the GTK function exists immediately if it processes at least one event. > > Regards, > > Daniel Campos > Regards, -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Sat May 15 21:02:07 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sat, 15 May 2004 21:02:07 +0200 Subject: [Gambas-devel] Spanish translation 0.93 Message-ID: <1084647727.13028.1.camel@...102...> Here's the express-translation service :-) (no changes in the database manager) Regards, -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-es-0.93.po Type: text/x-po Size: 55367 bytes Desc: not available URL: From abidoo.too at ...4... Sun May 16 14:25:27 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Sun, 16 May 2004 14:25:27 +0200 Subject: [Gambas-devel] Spanish translation 0.93 In-Reply-To: <1084647727.13028.1.camel@...102...> References: <1084647727.13028.1.camel@...102...> Message-ID: <200405161425.28130.abidoo.too@...4...> Le samedi 15 Mai 2004 21:02, Daniel Campos a ?crit : > Here's the express-translation service :-) > > > (no changes in the database manager) > > Regards, Thank for the info.... So we can say ... GAMBAS 0.93 IS RELEASED !! Fabien From gambas at ...1... Sun May 16 22:16:07 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 22:16:07 +0200 Subject: [Gambas-devel] More Database Driver Changes In-Reply-To: <1082398358.14479.15.camel@...128...> References: <1082398358.14479.15.camel@...128...> Message-ID: <200405162216.07581.gambas@...1...> On Monday 19 April 2004 20:12, Nigel Gerrard wrote: > Benoit, > > Could you have a look at the following changes and feedback your > comments. The changes apply to gambas-0.92. > > The major change is an attempt to implement access to fields with the > same name contained in a multiple table query. e.g. > > select fred.field1, sid.field1 from fred, field. > > In order for this to work within Postgresql, version 7.4.1 or greater > needs to be available. > > Please note that I have defined the $ character to separate > tablename$filedname within the class. It would be better if '.' could > be used as $ is valid within field/tablename. In each of my attempts to > use '.' a syntax error is thrown (thus I've gone to $). I'm sure that > you will be able to get around this. > > Project.Module is a rouh demonstration of what I have been trying to > achieve. > > The other major change (and probably the one I have not tested enough) > is the use of parameters within .EXEC eg. .Exec("select * from &1", > table) would get evaluated as select * from 'table' which would throw an > error in mysql or postgresql. > > Have a look at the changelogs to see what else has been implemented. > Drop me a line if there is anything you need. > > Nigel Hi, Nigel. Excuse me, I completely forgot your patch. I think this is the the beginning of the Linus syndrome... I apologize, I apologize... Is it possible for you to send me a src/db directory updated for 0.93 ? I thnk you can send me a complete src/db source directory, without using diff files, as I didn't touch them since a while, and as I don't know how to apply them in one shot. I'm not sure for the gambas-database-manager. Could you send me it completely too, by taking the one in 0.93 ? Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Sun May 16 22:31:10 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 16 May 2004 22:31:10 +0200 Subject: [Gambas-devel] More Database Driver Changes In-Reply-To: <1082398358.14479.15.camel@...128...> References: <1082398358.14479.15.camel@...128...> Message-ID: <200405162231.10154.gambas@...1...> On Monday 19 April 2004 20:12, Nigel Gerrard wrote: > Benoit, > > Could you have a look at the following changes and feedback your > comments. The changes apply to gambas-0.92. > > The major change is an attempt to implement access to fields with the > same name contained in a multiple table query. e.g. > > select fred.field1, sid.field1 from fred, field. > > In order for this to work within Postgresql, version 7.4.1 or greater > needs to be available. > > Please note that I have defined the $ character to separate > tablename$filedname within the class. It would be better if '.' could > be used as $ is valid within field/tablename. In each of my attempts to > use '.' a syntax error is thrown (thus I've gone to $). I'm sure that > you will be able to get around this. > > Project.Module is a rouh demonstration of what I have been trying to > achieve. > > The other major change (and probably the one I have not tested enough) > is the use of parameters within .EXEC eg. .Exec("select * from &1", > table) would get evaluated as select * from 'table' which would throw an > error in mysql or postgresql. > > Have a look at the changelogs to see what else has been implemented. > Drop me a line if there is anything you need. > > Nigel Hi, Nigel I read more carefully what you wrote, and I don't really understand the need of doing `rData!Table$Field' if you can already do `rData["Table.Field"]' Regards, -- Benoit Minisini mailto:gambas at ...1... From nigel at ...2... Mon May 17 18:29:39 2004 From: nigel at ...2... (Nigel Gerrard) Date: Mon, 17 May 2004 17:29:39 +0100 Subject: [Gambas-devel] More Database Driver Changes References: <1082398358.14479.15.camel@...128...> <200405162216.07581.gambas@...1...> Message-ID: <004301c43c2c$282e7f60$030a0a0a@...97...> Benoit, Here you are. Following on from your later email about using rData["Table.Field"], I can confirm that I have changed the drivers and this now works for multitable fields. I have included ChangeLogs for the changes I have made. Nigel ----- Original Message ----- From: "Benoit Minisini" To: Sent: Sunday, May 16, 2004 9:16 PM Subject: Re: [Gambas-devel] More Database Driver Changes > On Monday 19 April 2004 20:12, Nigel Gerrard wrote: > > Benoit, > > > > Could you have a look at the following changes and feedback your > > comments. The changes apply to gambas-0.92. > > > > The major change is an attempt to implement access to fields with the > > same name contained in a multiple table query. e.g. > > > > select fred.field1, sid.field1 from fred, field. > > > > In order for this to work within Postgresql, version 7.4.1 or greater > > needs to be available. > > > > Please note that I have defined the $ character to separate > > tablename$filedname within the class. It would be better if '.' could > > be used as $ is valid within field/tablename. In each of my attempts to > > use '.' a syntax error is thrown (thus I've gone to $). I'm sure that > > you will be able to get around this. > > > > Project.Module is a rouh demonstration of what I have been trying to > > achieve. > > > > The other major change (and probably the one I have not tested enough) > > is the use of parameters within .EXEC eg. .Exec("select * from &1", > > table) would get evaluated as select * from 'table' which would throw an > > error in mysql or postgresql. > > > > Have a look at the changelogs to see what else has been implemented. > > Drop me a line if there is anything you need. > > > > Nigel > > Hi, Nigel. > > Excuse me, I completely forgot your patch. > > I think this is the the beginning of the Linus syndrome... > > I apologize, I apologize... > > Is it possible for you to send me a src/db directory updated for 0.93 ? > > I thnk you can send me a complete src/db source directory, without using diff > files, as I didn't touch them since a while, and as I don't know how to apply > them in one shot. > > I'm not sure for the gambas-database-manager. Could you send me it completely > too, by taking the one in 0.93 ? > > Regards, > > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: SourceForge.net Broadband > Sign-up now for SourceForge Broadband and get the fastest > 6.0/768 connection for only $19.95/mo for the first 3 months! > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel -------------- next part -------------- A non-text attachment was scrubbed... Name: db_changes.tar.bz2 Type: application/octet-stream Size: 48174 bytes Desc: not available URL: From gambas at ...1... Tue May 18 21:01:03 2004 From: gambas at ...1... (Benoit Minisini) Date: Tue, 18 May 2004 21:01:03 +0200 Subject: [Gambas-devel] More Database Driver Changes In-Reply-To: <004301c43c2c$282e7f60$030a0a0a@...97...> References: <1082398358.14479.15.camel@...128...> <200405162216.07581.gambas@...1...> <004301c43c2c$282e7f60$030a0a0a@...97...> Message-ID: <200405182101.04087.gambas@...1...> On Monday 17 May 2004 18:29, Nigel Gerrard wrote: > Benoit, > > Here you are. Following on from your later email about using > rData["Table.Field"], > I can confirm that I have changed the drivers and this now works for > multitable fields. > > I have included ChangeLogs for the changes I have made. > > Nigel > Sorry, but I really don't understand what you did about this "multitable fields" thing and it is really necessary. I thought that the old db component was already able to access these fields by using rData["Table.Field"]. What's the point exactly ? Another point: I'd like to make changes in the DB component to remove as much as possible the pseudo-collections like Database.User... to replace them with true collections (Database.Users), so that things are easier to use. The only pseudo-collection I want to keep is Result. I'd like to make a better interface for users and authorisations too, by allowing it to embrace the very different possibilites of MySQL and PostgreSQL: users have different authorisations, and these authorisations can differ between the connection location (localhost, ...). What do you think about that ? I'm not sure this is a good idea to do that before 1.0, but I find the current interface a bit weird. Regards, -- Benoit Minisini mailto:gambas at ...1... From nigel at ...2... Wed May 19 13:08:45 2004 From: nigel at ...2... (Nigel Gerrard) Date: Wed, 19 May 2004 12:08:45 +0100 Subject: [Gambas-devel] More Database Driver Changes References: <1082398358.14479.15.camel@...128...> <200405162216.07581.gambas@...1...> <004301c43c2c$282e7f60$030a0a0a@...97...> <200405182101.04087.gambas@...1...> Message-ID: <000e01c43d91$a8118810$d05e4254@...97...> Benoit, > > Sorry, but I really don't understand what you did about this "multitable > fields" thing and it is really necessary. > > I thought that the old db component was already able to access these fields by > using rData["Table.Field"]. > > What's the point exactly ? > Does this work in the current driver ( I have upgraded my postgresql to 7.4.1 and there are some changes that are needed to the driver to make things work...see my changelog...so I can no longer test the standard implementation) Create two tables. Table1 as ( Id Integer, Field1 text) Table2 as ( Id Integer, Field1 text, Field2 Integer) Then populate Table1: 1, "Group A" 2, "Group B" 3, "Group C" 4, "Group D" Table 2: 1, "Joe", 1 2, "Fred", 2 3, "Sid", 1 4, "Tim", 1 Now WHILE rData.Available rData = ....Exec("select * from Table1, Table2 where Table1.Id = Table2.Field2") PRINT rData["Table1.Field1"] & ":" & rData["Table2.Field1"] rData.MoveNext WEND What happens? I would expect to see: Group A : Joe Group B : Fred Group A : Sid Group A : Time If my memory serves me correctly this will not be the case with the standard implementation. > Another point: I'd like to make changes in the DB component to remove as much > as possible the pseudo-collections like Database.User... to replace them with > true collections (Database.Users), so that things are easier to use. The only > pseudo-collection I want to keep is Result. > > I'd like to make a better interface for users and authorisations too, by > allowing it to embrace the very different possibilites of MySQL and > PostgreSQL: users have different authorisations, and these authorisations can > differ between the connection location (localhost, ...). > > What do you think about that ? I'm not sure this is a good idea to do that > before 1.0, but I find the current interface a bit weird. > I'll need to get my head around this, before commenting :-) Nigel From nigel at ...2... Wed May 19 16:09:37 2004 From: nigel at ...2... (Nigel Gerrard) Date: Wed, 19 May 2004 15:09:37 +0100 Subject: [Gambas-devel] Minor Bug on DB Driver : Not setting Type Message-ID: <000a01c43daa$ecdfc880$c4954d51@...97...> Benoit, If the Database Type is not set (left blank), a segmentation fault will occur within DB_GetDriver of ../src/lib/db/main.c. The offending code is line 129 : char comp[strlen(type) + 8] I would suggest the following change: 129: char *comp; 137: GB.Alloc((void **)&comp, strlen(type) + 8); Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigel at ...2... Wed May 19 19:26:18 2004 From: nigel at ...2... (Nigel Gerrard) Date: Wed, 19 May 2004 18:26:18 +0100 Subject: [Gambas-devel] GB.Error Query Message-ID: <004501c43dc6$65b3aef0$c4954d51@...97...> Benoit, Something I noticed with the use of GB.Error() in the components is that the message will only be displayed if the qt component is being used. If no gui is being used then the message will not show. I can't identify the hook for this :-) Nigel -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu May 20 00:02:49 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 May 2004 00:02:49 +0200 Subject: [Gambas-devel] Minor Bug on DB Driver : Not setting Type In-Reply-To: <000a01c43daa$ecdfc880$c4954d51@...97...> References: <000a01c43daa$ecdfc880$c4954d51@...97...> Message-ID: <200405200002.49866.gambas@...1...> On Wednesday 19 May 2004 16:09, Nigel Gerrard wrote: > Benoit, > > If the Database Type is not set (left blank), a segmentation fault will > occur within DB_GetDriver of ../src/lib/db/main.c. > > The offending code is line 129 : char comp[strlen(type) + 8] > > I would suggest the following change: > > 129: char *comp; > 137: GB.Alloc((void **)&comp, strlen(type) + 8); > > > Nigel OK. Fixed... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 20 00:04:05 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 May 2004 00:04:05 +0200 Subject: [Gambas-devel] GB.Error Query In-Reply-To: <004501c43dc6$65b3aef0$c4954d51@...97...> References: <004501c43dc6$65b3aef0$c4954d51@...97...> Message-ID: <200405200004.05941.gambas@...1...> On Wednesday 19 May 2004 19:26, Nigel Gerrard wrote: > Benoit, > > Something I noticed with the use of GB.Error() in the components is that > the message will only be displayed if the qt component is being used. > If no gui is being used then the message will not show. Logical. Only the QT component can display a message box at the moment. > > I can't identify the hook for this :-) GB_HOOK_MESSAGE > > Nigel -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu May 20 00:04:34 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 May 2004 00:04:34 +0200 Subject: [Gambas-devel] GB.Error Query In-Reply-To: <004501c43dc6$65b3aef0$c4954d51@...97...> References: <004501c43dc6$65b3aef0$c4954d51@...97...> Message-ID: <200405200004.34624.gambas@...1...> On Wednesday 19 May 2004 19:26, Nigel Gerrard wrote: > Benoit, > > Something I noticed with the use of GB.Error() in the components is that > the message will only be displayed if the qt component is being used. If > no gui is being used then the message will not show. > > I can't identify the hook for this :-) > > Nigel Oops. I meant GB_HOOK_ERROR ! -- Benoit Minisini mailto:gambas at ...1... From mauriiiii3001 at ...112... Thu May 20 20:23:48 2004 From: mauriiiii3001 at ...112... (Pozzo) Date: Thu, 20 May 2004 20:23:48 +0200 Subject: [Gambas-devel] Italian translation Message-ID: <40ACF7B4.8010305@...112...> Hi Benoit Gambas 0.93b italian translations. I didn't translate a string (Pos.) because I don't understand what it means, Could you explain it to me? Thanks -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gambas-it.po URL: From gambas at ...1... Thu May 20 20:47:20 2004 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 May 2004 20:47:20 +0200 Subject: [Gambas-devel] Italian translation In-Reply-To: <40ACF7B4.8010305@...112...> References: <40ACF7B4.8010305@...112...> Message-ID: <200405202047.20022.gambas@...1...> On Thursday 20 May 2004 20:23, Pozzo wrote: > Hi Benoit > > Gambas 0.93b italian translations. > > I didn't translate a string (Pos.) because I don't understand what it > means, Could you explain it to me? > > Thanks Thanks! "Pos." is an abbreviation for "Position" -- Benoit Minisini mailto:gambas at ...1... From benno.luthiger at ...129... Fri May 21 10:27:51 2004 From: benno.luthiger at ...129... (benno.luthiger at ...129...) Date: Fri, 21 May 2004 10:27:51 +0200 (CEST) Subject: [Gambas-devel] FASD project: Online survey launched Message-ID: <27789929.1085128071350.JavaMail.luthiger@...131...> Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fasd at ...130... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ From gambas at ...1... Sat May 22 10:56:51 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 May 2004 10:56:51 +0200 Subject: [Gambas-devel] More Database Driver Changes In-Reply-To: <000e01c43d91$a8118810$d05e4254@...97...> References: <1082398358.14479.15.camel@...128...> <200405182101.04087.gambas@...1...> <000e01c43d91$a8118810$d05e4254@...97...> Message-ID: <200405221056.51757.gambas@...1...> On Wednesday 19 May 2004 13:08, Nigel Gerrard wrote: > Benoit, > > > Sorry, but I really don't understand what you did about this "multitable > > fields" thing and it is really necessary. > > > > I thought that the old db component was already able to access these > > fields by > > > using rData["Table.Field"]. > > > > What's the point exactly ? > > Does this work in the current driver ( I have upgraded my postgresql to > 7.4.1 and there are > some changes that are needed to the driver to make things work...see my > changelog...so I > can no longer test the standard implementation) > ... Hi, Nigel! I finally understood the problem :-) Let's suppose we have a table named "Table" with two fields "id" and "name". If we make the following request: "SELECT * FROM Table AS a, Table AS b", we get a result object with 4 fields named "id", "name", and yet "id" and "name". We do not have the needed unicity of names. This is the problem you pointed. If your solution works, I find it a bit non-optimized. For example, you must not do heavy things in field_index(), like getting the postgresql version, of checking if we have many different tables in mysql. And if you do "SELECT * FROM Table AS a, Table AS b", what the different database libraries tells you: that all fields come from the table "Table", or that some comes from "a" and others from "b". I hope the second case occurs, otherwise... Could you try to optimize what I talked about ? It would be cool :-) If this needs slightly modifying the driver interface, tell me. It should not be a problem. You added a optional Type parameter to Table.Create and used an hack for that. Modifying the driver interface is needed there. And did you add a equivalent property to get the table type too ? I find Table$Field == Table.Field really being unnecessary. As rData!FieldName and rData["FieldName"] compile to exactly the same code, the user could always use rData["Table.Field"] if needed. And the '$' character inside an indentifier may become forbidden in the future! You included "../CResult.h" in all drivers. This is a bad idea. We must modify the driver interface if you need something from CResult.h. Please explain me exactly what you need! I hope you are not overcame with my remarks :-) After all previous things corrected, I think we could start thinking about a better db component interface. And I you have really a lot of time, talking about an ODBC driver :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Sun May 23 20:12:31 2004 From: danielcampos at ...45... (Daniel Campos) Date: Sun, 23 May 2004 20:12:31 +0200 Subject: [Gambas-devel] About togglebuttons Message-ID: <1085335951.4923.4.camel@...102...> Hi: I've seen a difference between the 'Value' property in buttons and ToggleButtons: ->Using 'Button', when you set 'Value' to TRUE, the 'Click' event raises. ->Using 'ToggleButton', when you set 'Value' to TRUE' value changes, but 'Click' event does not raise. Is this a feature or a bug? should I emulate it in the GTK+ component (by default, GTK+ emits that event once you change 'toggled' state)? Regards, -- Daniel Campos From gambas at ...1... Sun May 23 20:33:57 2004 From: gambas at ...1... (Benoit Minisini) Date: Sun, 23 May 2004 20:33:57 +0200 Subject: [Gambas-devel] About togglebuttons In-Reply-To: <1085335951.4923.4.camel@...102...> References: <1085335951.4923.4.camel@...102...> Message-ID: <200405232034.01395.gambas@...1...> On Sunday 23 May 2004 20:12, Daniel Campos wrote: > Hi: > > I've seen a difference between the 'Value' property in buttons and > ToggleButtons: > > > ->Using 'Button', when you set 'Value' to TRUE, the 'Click' event > raises. > > ->Using 'ToggleButton', when you set 'Value' to TRUE' value changes, > but 'Click' event does not raise. > > Is this a feature or a bug? should I emulate it in the GTK+ component > (by default, GTK+ emits that event once you change 'toggled' state)? > > Regards, Well, the current principle is that changing the value of a control programatically should raise the event, as if the user did it by hand. So I must change the QT component so that setting the value of a toggle button raises the Click event. The GTK behaviour is correct. Regards -- Benoit Minisini mailto:gambas at ...1... From danielcampos at ...45... Thu May 27 12:10:25 2004 From: danielcampos at ...45... (danielcampos at ...45...) Date: Thu, 27 May 2004 12:10:25 CEST Subject: [Gambas-devel] System Tray integration Message-ID: I can't remember when, but somebody asked for a system tray class. I've found an interesting thing: http://www.freedesktop.org/Standards/systemtray-spec System tray from KDE, GNOME and IceWM seems to be compatible, so creating a class for this should work on all freedesktop-compatible WM. Regards, Daniel Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From danielcampos at ...45... Thu May 27 18:45:29 2004 From: danielcampos at ...45... (Daniel Campos) Date: Thu, 27 May 2004 18:45:29 +0200 Subject: [Gambas-devel] Bug in QT component 0.93b Message-ID: <1085676329.4156.3.camel@...102...> Hello: QT component documentation says: EVENT Delete ( ) Raised just before the control is deleted. So, the control is not yet deleted. However, I've created a project with two buttons, and just that code: PUBLIC SUB Button1_Click() Button2.Delete END PUBLIC SUB Button2_Delete() Message.Info (Button2.Text) END I should be able to read 'Text' property, as Button2 already exists. However, the program crashes with a segmentation fault. Regards, Daniel Campos -- Daniel Campos From abidoo.too at ...4... Thu May 27 20:45:31 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Thu, 27 May 2004 20:45:31 +0200 Subject: [Gambas-devel] Bug in QT component 0.93b In-Reply-To: <1085676329.4156.3.camel@...102...> References: <1085676329.4156.3.camel@...102...> Message-ID: <200405272045.31376.abidoo.too@...4...> Le jeudi 27 Mai 2004 18:45, Daniel Campos a ?crit : > Hello: > > > QT component documentation says: > > > EVENT Delete ( ) > > Raised just before the control is deleted. > > > So, the control is not yet deleted. However, I've created a project > with two buttons, and just that code: > > > PUBLIC SUB Button1_Click() > > Button2.Delete > > END > > PUBLIC SUB Button2_Delete() > > Message.Info (Button2.Text) > > END > > > I should be able to read 'Text' property, as Button2 already exists. > However, the program crashes with a segmentation fault. > > Regards, > > Daniel Campos I remember a thing like this... when i've modified the menu.cpp to add the _hide event.... Fabien ps : to old ... to exactly remember it. From abidoo.too at ...4... Thu May 27 20:47:05 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Thu, 27 May 2004 20:47:05 +0200 Subject: [Gambas-devel] System Tray integration In-Reply-To: References: Message-ID: <200405272047.05084.abidoo.too@...4...> Le jeudi 27 Mai 2004 17:10, danielcampos at ...45... a ?crit : > I can't remember when, but somebody asked for a system tray class. I've > found an interesting thing: > > http://www.freedesktop.org/Standards/systemtray-spec > > System tray from KDE, GNOME and IceWM seems to be compatible, so creating a > class for this should work on all freedesktop-compatible WM. > > Regards, > > Daniel Campos > > ------------------------------------------------------------- > NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, > Toolbar... Web/Wap : www.netcourrier.com > T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) > Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id149&alloc_id?66&op=Click > _______________________________________________ > Gambas-devel mailing list > Gambas-devel at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-devel Yes but it need a new class, because it's not qt and not gtk ... so what is it ? Or mabe a class for each toolkit ? Fabien From abidoo.too at ...4... Sat May 29 21:32:38 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Sat, 29 May 2004 21:32:38 +0200 Subject: [Gambas-devel] Corection de bug 0.93 Message-ID: <200405292132.38164.abidoo.too@...4...> PRIVATE SUB ListInit() WITH cvwFindList .ScrollBar = Scroll.Both .Resizable = TRUE .Columns.Sort=0 .Columns.Ascending=TRUE ' .Columns.Adjust '?????? how to .Columns.Count=4 .Columns[0].text=("Class / Line") .Columns[0].width=100 ' .Columns[0].Align=align.Right .Columns[1].text=("Line") .Columns[1].width=0'60 .Columns[1].Alignment=align.Right .Columns[2].text=("Pos.") .Columns[2].width=60 .Columns[2].Alignment=align.Right .Columns[3].Text=("Text") .Columns[3].width=300 END WITH END Patch For FFind.Class Crash when trying to use list... Regards, Fabien From gambas at ...1... Sat May 29 23:35:08 2004 From: gambas at ...1... (Benoit Minisini) Date: Sat, 29 May 2004 23:35:08 +0200 Subject: [Gambas-devel] Bug in QT component 0.93b In-Reply-To: <1085676329.4156.3.camel@...102...> References: <1085676329.4156.3.camel@...102...> Message-ID: <200405292335.08293.gambas@...1...> On Thursday 27 May 2004 18:45, Daniel Campos wrote: > Hello: > > > QT component documentation says: > > > EVENT Delete ( ) > > Raised just before the control is deleted. > > > So, the control is not yet deleted. However, I've created a project > with two buttons, and just that code: > > > PUBLIC SUB Button1_Click() > > Button2.Delete > > END > > PUBLIC SUB Button2_Delete() > > Message.Info (Button2.Text) > > END > > > I should be able to read 'Text' property, as Button2 already exists. > However, the program crashes with a segmentation fault. > > Regards, > > Daniel Campos Well, after having read carefully the QT documentation, I saw that this event cannot work as written in the documentation. When QT emits the destroy signal, the QT object is not in a safe state, so you can't use any of its properties. I will fix the crash by making the object invalid before raising the event. Regards, -- Benoit Minisini mailto:gambas at ...1... From abidoo.too at ...4... Sun May 30 03:03:41 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Sun, 30 May 2004 03:03:41 +0200 Subject: [Gambas-devel] need a little help Message-ID: <200405300303.41758.abidoo.too@...4...> hi all I don't remember how to free a class (close) I've put classes in an array... but how to free them... Just delete the entry is not sufficient. and the _free event don't work in this case.... Fabien From abidoo.too at ...4... Sun May 30 17:28:30 2004 From: abidoo.too at ...4... (Fabien Bodard) Date: Sun, 30 May 2004 17:28:30 +0200 Subject: [Gambas-devel] An idea... but it sould work Message-ID: <200405301728.30146.abidoo.too@...4...> Give me your opinion about this code. Fabien (I know it is certainly buddy, whith a bad writing... but just for the idea...) After i'll add the draw n drop process. -------------- next part -------------- A non-text attachment was scrubbed... Name: capture22.png Type: image/png Size: 12993 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Genecode-0.0.1.tar.gz Type: application/x-tgz Size: 7091 bytes Desc: not available URL: From danielcampos at ...45... Mon May 31 12:56:43 2004 From: danielcampos at ...45... (Daniel Campos) Date: Mon, 31 May 2004 12:56:43 +0200 Subject: [Gambas-devel] QT component / Bug Message-ID: <1086001003.23960.12.camel@...102...> This is a Bug (I think): When Copying a Picture in another picture, transparency (alpha) information is lost. Try the first example (with an icon called 'execution.png' in the project, having alpha): PUBLIC SUB Button1_Click() DIM Pepe AS NEW Picture Pepe.Load("execution.png") ME.Icon=Pepe END You will see that the form icon has a transparent icon. Now try this: PUBLIC SUB Button1_Click() DIM Pepe AS NEW Picture DIM Jose AS Picture Pepe.Load("execution.png") Jose=pepe.Copy() ME.Icon=Jose END The new icon is not transparent! Regards, (Icon taken from 'Genecode') -- Daniel Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: execution.png Type: image/png Size: 1468 bytes Desc: not available URL: From gambas at ...1... Mon May 31 13:23:26 2004 From: gambas at ...1... (Benoit Minisini) Date: Mon, 31 May 2004 13:23:26 +0200 Subject: [Gambas-devel] QT component / Bug In-Reply-To: <1086001003.23960.12.camel@...102...> References: <1086001003.23960.12.camel@...102...> Message-ID: <200405311323.27015.gambas@...1...> On Monday 31 May 2004 12:56, Daniel Campos wrote: > This is a Bug (I think): > > When Copying a Picture in another picture, transparency (alpha) > information is lost. Try the first example (with an icon called > 'execution.png' in the project, having alpha): > > PUBLIC SUB Button1_Click() > DIM Pepe AS NEW Picture > > Pepe.Load("execution.png") > ME.Icon=Pepe > > END > > > You will see that the form icon has a transparent icon. > > Now try this: > > PUBLIC SUB Button1_Click() > DIM Pepe AS NEW Picture > DIM Jose AS Picture > > Pepe.Load("execution.png") > Jose=pepe.Copy() > ME.Icon=Jose > > END > > The new icon is not transparent! > > Regards, > > > (Icon taken from 'Genecode') OK. Fixed... -- Benoit Minisini mailto:gambas at ...1... From grahame at ...132... Mon May 31 13:44:13 2004 From: grahame at ...132... (Grahame White) Date: Mon, 31 May 2004 12:44:13 +0100 Subject: [Gambas-devel] [Gambas-user] Properties window vanishes Message-ID: <200405311244.13460.grahame@...132...> I'm getting a problem with gambas where after I run my program the properties window vanishes and all attempts, short of exiting gambas, fail to bring it back. I don't know if anyone else has noticed this behaviour. Every now and then I also have a problem where a class file I've edited wont open after I've run my program. As above it takes restarting gambas to be able to open the class again. Grahame ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user