From gambasfr at ...11... Sun Jan 1 01:57:47 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Sun, 1 Jan 2006 01:57:47 +0100 Subject: [Gambas-user] Happy new year Message-ID: <200601010157.48237.gambasfr@...11...> I whish an happy new year to all the Gambas users and Team We are now in 2006, and i hope it will be a great year for our prefered shrimp with many and many new feature and kind of uses... Regards, Fabien Bodard From picander78 at ...325... Sun Jan 1 23:18:26 2006 From: picander78 at ...325... (Marco Gusy) Date: Sun, 1 Jan 2006 23:18:26 +0100 Subject: [Gambas-user] Default dates format In-Reply-To: <200512300006.34096.gambas@...1...> References: <200512292358.45610.picander78@...325...> <200512300006.34096.gambas@...1...> Message-ID: <200601012318.26610.picander78@...325...> ok, but if i'm doing someting like this treeview.add("a",result["date"]) the program auto-converts to string using the cdate behaviour, and not the localized one... Don't know if this is a bug or a feature.... ;-) From gambas at ...1... Mon Jan 2 02:21:29 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jan 2006 02:21:29 +0100 Subject: [Gambas-user] Release of gambas 1.9.23 Message-ID: <200601020221.29979.gambas@...1...> Happy new year to everyone! (Well... for those who have the same calendar than me) Here is a new release of the development version: The main change in this version is the support for auto-increment and blob fields in the database component. To create a serial field, use the 'db.Serial' constant as field datatype. And to create a blob field, use the 'db.Blob' constant. Because of underlying database limits, you can only have one autoincrement field by table, and it must be the primary key. Moreover, the blob support is not perfect: it uses SQL requests, and so wastes memory and CPU. Especially in the sqlite driver, which have many problems about that... A blob field returns a Blob object, which have a Data property, that represents the blob data as a string. There is a Length property too, that returns the length of the blob data. The returned Blob object is valid as long as you don't move or release the Result object it comes from. Here is a little example: res = DB.Find("MyTable") PRINT res!BlobField.Data res!BlobField.Data = File.Load("picture.png") ' The following is a shortcut for the previous line res!BlobField = File.Load("picture.png") The following drivers were modified to support autoincrement fields and blobs: * MySQL * PostgreSQL * SQLite ODBC and Firebird driver do not support it yet. I will post some explanation about what to do in the development mailing-list for Niggel, Andrea and Daniel Otherwise, there are many other little changes you will see in the ChangeLog. The more important is that now you can declare several local variables of the same datatype on the same line. This way: DIM i, j, k AS Integer Maybe I should allow this syntax too: DIM i AS Integer, s, a AS String I will see if it is possible... So... try it and report the problems... :-) -- Benoit Minisini From gambas at ...1... Mon Jan 2 02:41:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jan 2006 02:41:23 +0100 Subject: [Gambas-user] Release of gambas 1.9.23 In-Reply-To: <200601020221.29979.gambas@...1...> References: <200601020221.29979.gambas@...1...> Message-ID: <200601020241.23605.gambas@...1...> On Monday 02 January 2006 02:21, Benoit Minisini wrote: > [...] > > The more important is that now you can declare several local variables of > the same datatype on the same line. This way: > > DIM i, j, k AS Integer > > Maybe I should allow this syntax too: > > DIM i AS Integer, s, a AS String > > I will see if it is possible... > It is: I have just done it! :-) Let's go to bed now, it's late... -- Benoit Minisini From jfabiani at ...1109... Mon Jan 2 07:58:36 2006 From: jfabiani at ...1109... (johnf) Date: Sun, 1 Jan 2006 22:58:36 -0800 Subject: [Gambas-user] After install 1.9.22 still shows Message-ID: <200601012258.36386.jfabiani@...1109...> Hi, I think I have complied and installed gambas 1.9.23 because I'm able to use DIM a,b,c, As String But my gambas2 still reports 1.9.22 Could it be that you forgot to change the version # John From gambas at ...1... Mon Jan 2 11:08:56 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jan 2006 11:08:56 +0100 Subject: [Gambas-user] After install 1.9.22 still shows In-Reply-To: <200601012258.36386.jfabiani@...1109...> References: <200601012258.36386.jfabiani@...1109...> Message-ID: <200601021108.57076.gambas@...1...> On Monday 02 January 2006 07:58, johnf wrote: > Hi, > I think I have complied and installed gambas 1.9.23 because I'm able to use > DIM a,b,c, As String > > But my gambas2 still reports 1.9.22 > > Could it be that you forgot to change the version # > > John > I have just uploaded a new package with correct version numbers... And because of that, lucky guys, now you can do: DIM s AS String, i, j AS Integer Regards, -- Benoit Minisini From gambasfr at ...11... Mon Jan 2 12:50:01 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Mon, 2 Jan 2006 12:50:01 +0100 Subject: [Gambas-user] Default dates format In-Reply-To: <200601012318.26610.picander78@...325...> References: <200512292358.45610.picander78@...325...> <200512300006.34096.gambas@...1...> <200601012318.26610.picander78@...325...> Message-ID: <200601021250.01828.gambasfr@...11...> Le Dimanche 1 Janvier 2006 23:18, Marco Gusy a ?crit?: > ok, but if i'm doing someting like this > treeview.add("a",result["date"]) > the program auto-converts to string using the cdate behaviour, and not the > localized one... Don't know if this is a bug or a feature.... ;-) it's a feature use : treeview.add("a",str(result["date"])) the date is stored in US format... it's a standart... Regards, Fabien Bodard > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From tetsuo at ...756... Mon Jan 2 18:02:29 2006 From: tetsuo at ...756... (tetsuo) Date: Mon, 02 Jan 2006 18:02:29 +0100 Subject: [Gambas-user] could it be a BUG? Message-ID: <43B95CA5.80109@...756...> hi Benoit, i met this problem with aritmetical operations with gambas 1.9.23 and OLD releases... DIM tempBUG AS Float tempBUG = 200 * 0.07 tempBUG = tempBUG - 14 PRINT tempBUG print-result on the gambas console is '1,7763568394E-15' , but it would be '0' help me please. Regards. From jfabiani at ...1109... Mon Jan 2 19:11:10 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 10:11:10 -0800 Subject: [Gambas-user] Compiling with sound? Message-ID: <200601021011.10193.jfabiani@...1109...> Hi, I am able to compile apparently without any real issues. But at the end of the build I get SDL not used (or something like that) also something about cobra. I have very little knowledge with respect to configure, make, make install commands. So do I need to add something to the commands (like add sdl). SUSE 10.0 , Gambas 1.9.23 Thanks in advance John From gambas at ...1... Mon Jan 2 19:27:00 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jan 2006 19:27:00 +0100 Subject: [Gambas-user] Compiling with sound? In-Reply-To: <200601021011.10193.jfabiani@...1109...> References: <200601021011.10193.jfabiani@...1109...> Message-ID: <200601021927.00203.gambas@...1...> On Monday 02 January 2006 19:11, johnf wrote: > Hi, > > I am able to compile apparently without any real issues. But at the end of > the build I get SDL not used (or something like that) also something about > cobra. I have very little knowledge with respect to configure, make, make > install commands. So do I need to add something to the commands (like add > sdl). SUSE 10.0 , Gambas 1.9.23 > > Thanks in advance > John > Hmm... Did you read the README file? -- Benoit Minisini From jfabiani at ...1109... Mon Jan 2 19:27:33 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 10:27:33 -0800 Subject: [Gambas-user] could it be a BUG? In-Reply-To: <43B95CA5.80109@...756...> References: <43B95CA5.80109@...756...> Message-ID: <200601021027.34060.jfabiani@...1109...> On Monday 02 January 2006 09:02, tetsuo wrote: > DIM tempBUG AS Float > > ? ?tempBUG = 200 * 0.07 > ? ?tempBUG = tempBUG - 14 I can confirm that tempBUG is not zero. I'm a newbie and I might be missing something. But I think this is a bug??? But this works: DIM tempBUG, mynum AS Float tempBUG = 200 * 0.07 mynum = 200 * 0.07 tempBUG = (tempBUG) - mynum message(Str(tempBUG)) ' messagebox prints 0 I'm using 1.9.23 John From jfabiani at ...1109... Mon Jan 2 19:55:24 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 10:55:24 -0800 Subject: [Gambas-user] Compiling with sound? In-Reply-To: <200601021927.00203.gambas@...1...> References: <200601021011.10193.jfabiani@...1109...> <200601021927.00203.gambas@...1...> Message-ID: <200601021055.24970.jfabiani@...1109...> On Monday 02 January 2006 10:27, Benoit Minisini wrote: > On Monday 02 January 2006 19:11, johnf wrote: > > Hi, > > > > I am able to compile apparently without any real issues. But at the end > > of the build I get SDL not used (or something like that) also something > > about cobra. I have very little knowledge with respect to configure, > > make, make install commands. So do I need to add something to the > > commands (like add sdl). SUSE 10.0 , Gambas 1.9.23 > > > > Thanks in advance > > John > > Hmm... Did you read the README file? I think my problem is the file names do not exactly match the names in the readme file? Such as I have the following: libSDL_mixer-1.2.so.0 and Gambas needs: libSDL_mixer.so So do I create some sort of link ( I saw something about links dealing with another issue)? John From tetsuo at ...756... Mon Jan 2 19:59:22 2006 From: tetsuo at ...756... (tetsuo) Date: Mon, 02 Jan 2006 19:59:22 +0100 Subject: [Gambas-user] could it be a BUG? In-Reply-To: <43B95CA5.80109@...756...> References: <43B95CA5.80109@...756...> Message-ID: <43B9780A.2070407@...756...> tetsuo wrote: > hi Benoit, > i met this problem with aritmetical operations with gambas 1.9.23 and > OLD releases... > > > > > DIM tempBUG AS Float > > tempBUG = 200 * 0.07 > tempBUG = tempBUG - 14 > PRINT tempBUG > > > > print-result on the gambas console is '1,7763568394E-15' , but it would > be '0' > > i tried : 200 * 0.07 - 14 in the xcalc application, and there is the same problem.... 1,776356e-15 i tried also in a minimal c printf call: printf("%'.18f", (200 * 0.07) - 14) and there is the same problem... 0.000000000000001776 why????? ... i don't know where is the problem From gambas at ...1... Mon Jan 2 20:23:53 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jan 2006 20:23:53 +0100 Subject: [Gambas-user] could it be a BUG? In-Reply-To: <43B9780A.2070407@...756...> References: <43B95CA5.80109@...756...> <43B9780A.2070407@...756...> Message-ID: <200601022023.53318.gambas@...1...> On Monday 02 January 2006 19:59, tetsuo wrote: > tetsuo wrote: > > hi Benoit, > > i met this problem with aritmetical operations with gambas 1.9.23 and > > OLD releases... > > > > > > > > > > DIM tempBUG AS Float > > > > tempBUG = 200 * 0.07 > > tempBUG = tempBUG - 14 > > PRINT tempBUG > > > > > > > > print-result on the gambas console is '1,7763568394E-15' , but it would > > be '0' > > i tried : > 200 * 0.07 - 14 > in the xcalc application, and there is the same problem.... 1,776356e-15 > > i tried also in a minimal c printf call: > printf("%'.18f", (200 * 0.07) - 14) > and there is the same problem... 0.000000000000001776 > > why????? > > ... i don't know where is the problem > The CPU computes by using binary , and not the base 10 like us, humans. And in binary, 0.07 is like 1/3 in base 10. You cannot write it with a finite number of digits: 0.07 in base 2 is written 0.00[01000111101011100001]... So the calcul can never be exact, and sometimes rounding errors can appear when displaying a Float in decimal. Regards, -- Benoit Minisini From gambas at ...1... Mon Jan 2 20:31:29 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 2 Jan 2006 20:31:29 +0100 Subject: [Gambas-user] Compiling with sound? In-Reply-To: <200601021055.24970.jfabiani@...1109...> References: <200601021011.10193.jfabiani@...1109...> <200601021927.00203.gambas@...1...> <200601021055.24970.jfabiani@...1109...> Message-ID: <200601022031.29372.gambas@...1...> On Monday 02 January 2006 19:55, johnf wrote: > On Monday 02 January 2006 10:27, Benoit Minisini wrote: > > On Monday 02 January 2006 19:11, johnf wrote: > > > Hi, > > > > > > I am able to compile apparently without any real issues. But at the > > > end of the build I get SDL not used (or something like that) also > > > something about cobra. I have very little knowledge with respect to > > > configure, make, make install commands. So do I need to add something > > > to the commands (like add sdl). SUSE 10.0 , Gambas 1.9.23 > > > > > > Thanks in advance > > > John > > > > Hmm... Did you read the README file? > > I think my problem is the file names do not exactly match the names in the > readme file? Such as I have the following: > libSDL_mixer-1.2.so.0 > and Gambas needs: > libSDL_mixer.so > > So do I create some sort of link ( I saw something about links dealing with > another issue)? > John > Which distribution do you use? Actually I saw that in my Mandriva I have effectively 'libSDL_mixer.so' being a link to 'libSDL_mixer-1.2.so'. And so for many other SDL libraries. But I think this was not the case when I wrote the configure.ac file... -- Benoit Minisini From jfabiani at ...1109... Mon Jan 2 21:23:44 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 12:23:44 -0800 Subject: [Gambas-user] Compiling with sound? In-Reply-To: <200601022031.29372.gambas@...1...> References: <200601021011.10193.jfabiani@...1109...> <200601021055.24970.jfabiani@...1109...> <200601022031.29372.gambas@...1...> Message-ID: <200601021223.44953.jfabiani@...1109...> On Monday 02 January 2006 11:31, Benoit Minisini wrote: > On Monday 02 January 2006 19:55, johnf wrote: > > On Monday 02 January 2006 10:27, Benoit Minisini wrote: > > > On Monday 02 January 2006 19:11, johnf wrote: > > > > Hi, > > > > > > > > I am able to compile apparently without any real issues. But at the > > > > end of the build I get SDL not used (or something like that) also > > > > something about cobra. I have very little knowledge with respect to > > > > configure, make, make install commands. So do I need to add > > > > something to the commands (like add sdl). SUSE 10.0 , Gambas 1.9.23 > > > > > > > > Thanks in advance > > > > John > > > > > > Hmm... Did you read the README file? > > > > I think my problem is the file names do not exactly match the names in > > the readme file? Such as I have the following: > > libSDL_mixer-1.2.so.0 > > and Gambas needs: > > libSDL_mixer.so > > > > So do I create some sort of link ( I saw something about links dealing > > with another issue)? > > John > > Which distribution do you use? > > Actually I saw that in my Mandriva I have effectively 'libSDL_mixer.so' > being a link to 'libSDL_mixer-1.2.so'. And so for many other SDL libraries. > But I think this was not the case when I wrote the configure.ac file... I'm using SUSE 10.0. But I think my problem was the header files were missing. So I used YAST and added everything that had to do with SDL. The compile now works (good learning experience). But the CD example does not work. Actually all I want is a beep. So is there an example of a beep some where? John From drmad at ...1302... Mon Jan 2 23:15:18 2006 From: drmad at ...1302... (Oliver Etchebarne Bejarano) Date: Mon, 02 Jan 2006 17:15:18 -0500 Subject: [Gambas-user] Access controls outside a form Message-ID: <43B9A5F6.9090101@...1302...> Hello, I was googling a little, but I didn't find any solution to this :( My starting class is not a form (I have a Sub Main() ), but I want to fill data on a listbox inside a form. In VB (*ugh*) you could do: form.listboxcontrol.additem ("foobar") but I can't do that in Gambas :( Any idea? Thanks, -- Oliver Etchebarne Bejarano drmad/paperclip www.paperclip.com.pe From jfabiani at ...1109... Mon Jan 2 23:49:32 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 14:49:32 -0800 Subject: [Gambas-user] Editor class error Message-ID: <200601021449.32923.jfabiani@...1109...> Hi, Editor1.Text = Trim(myresult!notes1) causes a signal 11. Where myresult!notes1 is a text field from postgres. John From jfabiani at ...1109... Mon Jan 2 23:53:03 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 14:53:03 -0800 Subject: [Gambas-user] Editor class error In-Reply-To: <200601021449.32923.jfabiani@...1109...> References: <200601021449.32923.jfabiani@...1109...> Message-ID: <200601021453.03296.jfabiani@...1109...> On Monday 02 January 2006 14:49, johnf wrote: > Hi, > Editor1.Text = Trim(myresult!notes1) causes a signal 11. > > Where myresult!notes1 is a text field from postgres. > > John > > also Editor1.Text = "hello world" also causes a signal 11... John From karl at ...1303... Tue Jan 3 02:58:53 2006 From: karl at ...1303... (karl at ...1303...) Date: Tue, 03 Jan 2006 12:58:53 +1100 Subject: [Gambas-user] Newbie question * 3 Message-ID: <43BA750D.26074.103E042@...40...> Hi All, I've got a few queries for you guys: My System: AMD 2700+ 1Gig RAM Running SuSe 10.0 Gambas 'Release' v1.0.11-0 Gambas 'Devel' v1.9.21-0 Both are the current SuSe builds from: ftp://ftp.gwdg.de/pub/linux/misc/suser-gbv/rpms/ 1) It seems that the release version of Gambas does not trim trailing whitespace from lines whereas the devel version does. How can I stop the devel version from doing this? (in most cases it's there for a reason! :-) ) 2) Gambas seems to evaluate logical AND statements in a 'VB like' fashion rather than an 'other languages' kind of way. By this I mean that it evaluates both operands even if the first is false (and therefore the whole must be false). The result is that you end up with blocks of code nested more deeply than should be necessary. In the following example the inner conditional block is necessary because if colAttendee.Current.Selected is read while there is no selected item, an error is raised. Please note I'm just using this as a demonstration of what I mean by 'more deeply nested'. Eg: case a (current gambas)) DIM colAttendee AS ColumnView IF colAttendee.Count > 0 THEN IF colAttendee.Current.Selected = TRUE THEN ' Do more things END IF END IF case b ('ideal')) DIM colAttendee AS ColumnView IF colAttendee.Count > 0 AND colAttendee.Current.Selected = TRUE THEN ' Do more things END IF My query is: Is this the expected behaviour, and if so, are there any plans to ever make AND not evaluate it's right operand if the left is false? 3) The following code raises an error (and displays the "got foo" message) in my release version of gambas (as you might expect :-) ), but none is raised in the devel version. Is this a bug, or am I doing something wrong? PUBLIC SUB Form_Open() TRY foobar() IF ERROR THEN Message("got foo") END PUBLIC FUNCTION foobar() AS Boolean Error.Raise("foo") END Thanks for reading, Karl Martindale From jfabiani at ...1109... Tue Jan 3 03:26:33 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 18:26:33 -0800 Subject: [Gambas-user] Newbie question * 3 In-Reply-To: <43BA750D.26074.103E042@...40...> References: <43BA750D.26074.103E042@...40...> Message-ID: <200601021826.34078.jfabiani@...1109...> On Monday 02 January 2006 17:58, karl at ...1303... wrote: > Hi All, > > I've got a few queries for you guys: > > My System: > AMD 2700+ > 1Gig RAM > Running SuSe 10.0 > > Gambas 'Release' v1.0.11-0 > Gambas 'Devel' v1.9.21-0 > Both are the current SuSe builds from: > ftp://ftp.gwdg.de/pub/linux/misc/suser-gbv/rpms/ > > 1) It seems that the release version of Gambas does not trim > trailing whitespace from lines whereas the devel version does. How > can I stop the devel version from doing this? (in most cases it's > there for a reason! :-) ) > > 2) Gambas seems to evaluate logical AND statements in a 'VB like' > fashion rather than an 'other languages' kind of way. By this I mean > that it evaluates both operands even if the first is false (and > therefore the whole must be false). The result is that you end up > with blocks of code nested more deeply than should be necessary. In > the following example the inner conditional block is necessary > because if colAttendee.Current.Selected is read while there is no > selected item, an error is raised. Please note I'm just using this as > a demonstration of what I mean by 'more deeply nested'. > > Eg: > case a (current gambas)) > DIM colAttendee AS ColumnView > IF colAttendee.Count > 0 THEN > IF colAttendee.Current.Selected = TRUE THEN > ' Do more things > END IF > END IF > > case b ('ideal')) > DIM colAttendee AS ColumnView > IF colAttendee.Count > 0 AND colAttendee.Current.Selected = TRUE THEN > ' Do more things > END IF > > My query is: Is this the expected behaviour, and if so, are there any > plans to ever make AND not evaluate it's right operand if the left is > false? > > 3) The following code raises an error (and displays the "got foo" > message) in my release version of gambas (as you might expect :-) ), > but none is raised in the devel version. Is this a bug, or am I > doing something wrong? > > PUBLIC SUB Form_Open() > TRY foobar() > IF ERROR THEN Message("got foo") > END > > PUBLIC FUNCTION foobar() AS Boolean > Error.Raise("foo") > END > > > Thanks for reading, > Karl Martindale I'm a newbie too. So new that I don't completely understand what you are asking. But I do know that SUSE10.0 RPM's are far behind what's available. So please download the latest from sourceforge. On my SUSE 10.0 I just had to insure that all the development libraries were available. Make sure that you read the 'README' file on how to compile. It maybe that your issues will disappear - at least I hope so. John From rporticio at ...43... Tue Jan 3 04:19:48 2006 From: rporticio at ...43... (Ramon Orticio) Date: Mon, 2 Jan 2006 19:19:48 -0800 (PST) Subject: [Gambas-user] DataReport Example Message-ID: <20060103031948.16512.qmail@...1304...> Dear Fabien, Thanks for your help. ramon __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/ From jfabiani at ...1109... Tue Jan 3 08:01:39 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 23:01:39 -0800 Subject: [Gambas-user] casting, macro change from str to resultfield? Message-ID: <200601022301.39231.jfabiani@...1109...> Hi, FOR EACH hfield IN contactdata.Fields INC i loopfield = "contactdata!" & hfield.Name contacts[c, i].Text = loopfield NEXT contactdata = result contacts = gridview So I'm attempting to fill in the cells of the gridview with resultfields. But I don't understand how to convert the str ("contactdata!fieldname") to not a str but a resultfield as in contactdata!fieldname (which is not a str). In the Foxpro world I would use "&loopfield." and it would be evaluated as contactdata!fieldname (not a string). Surely there is a way to do this in Gambas? Maybe there is a better way? BTW I choose the gridview to allow editing - is this right? John From ronstk at ...239... Tue Jan 3 08:18:52 2006 From: ronstk at ...239... (ron) Date: Tue, 3 Jan 2006 08:18:52 +0100 Subject: [Gambas-user] casting, macro change from str to resultfield? In-Reply-To: <200601022301.39231.jfabiani@...1109...> References: <200601022301.39231.jfabiani@...1109...> Message-ID: <200601030818.52571.ronstk@...239...> On Tuesday 03 January 2006 08:01, johnf wrote: > FOR EACH hfield IN contactdata.Fields > ? ? ? ? INC i > ? ? ? ? loopfield = "contactdata!" & hfield.Name > ? ? ? ? contacts[c, i].Text = loopfield > ? ? ? NEXT > hField is the field you want and is a virtual claas. Members are .Name and .Value so > loopfield = "contactdata!" & hfield.Name should be > loopfield = hfield.Value in a more logical way ? Ron From jfabiani at ...1109... Tue Jan 3 08:30:38 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 23:30:38 -0800 Subject: [Gambas-user] casting, macro change from str to resultfield? In-Reply-To: <200601030818.52571.ronstk@...239...> References: <200601022301.39231.jfabiani@...1109...> <200601030818.52571.ronstk@...239...> Message-ID: <200601022330.38661.jfabiani@...1109...> On Monday 02 January 2006 23:18, ron wrote: > oopfield = hfield.Value Thanks that should work. But I also realized that Gambas is a compiled lang - therefore there is nothing like macro substitution.... Thanks again John From sourceforge-raindog2 at ...94... Tue Jan 3 08:27:24 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 3 Jan 2006 02:27:24 -0500 Subject: [Gambas-user] mandriva 2006 packages of 1.0.13 and 1.9.23 Message-ID: <200601030227.25080.sourceforge-raindog2@...94...> OK, I finally got current packages built. I haven't made a blog entry yet, but pick them up here: http://www.kudla.org/rpm/2006.0/ Also, I don't know if you meant this to happen, Benoit, but I actually got Gambas to build (without Qt/KDE support) under x86_64, and even compiled a project.... wouldn't run, of course (sizeof(CLASS) = 224 !), but I got a lot further than I expected. And it was a lot of fun writing a Gambas project by hand ;) The packages that are out there are all i586, naturally. Rob From jfabiani at ...1109... Tue Jan 3 08:34:15 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 2 Jan 2006 23:34:15 -0800 Subject: [Gambas-user] casting, macro change from str to resultfield? In-Reply-To: <200601022330.38661.jfabiani@...1109...> References: <200601022301.39231.jfabiani@...1109...> <200601030818.52571.ronstk@...239...> <200601022330.38661.jfabiani@...1109...> Message-ID: <200601022334.16019.jfabiani@...1109...> On Monday 02 January 2006 23:30, johnf wrote: > On Monday 02 January 2006 23:18, ron wrote: > > oopfield = hfield.Value > > Thanks that should work. > > But I also realized that Gambas is a compiled lang - therefore there is > nothing like macro substitution.... > > Thanks again > John > > Dam I thought you had the answer. But hfield does not have "Value". But I wonder if something else does? I'll continue to check. BTW I'm using 1.9.23 Thanks John From ronstk at ...239... Tue Jan 3 10:10:28 2006 From: ronstk at ...239... (ron) Date: Tue, 3 Jan 2006 10:10:28 +0100 Subject: [Gambas-user] casting, macro change from str to resultfield? In-Reply-To: <200601022334.16019.jfabiani@...1109...> References: <200601022301.39231.jfabiani@...1109...> <200601022330.38661.jfabiani@...1109...> <200601022334.16019.jfabiani@...1109...> Message-ID: <200601031010.28694.ronstk@...239...> On Tuesday 03 January 2006 08:34, johnf wrote: > On Monday 02 January 2006 23:30, johnf wrote: > > On Monday 02 January 2006 23:18, ron wrote: > > > oopfield = hfield.Value > > > > Thanks that should work. > > > > But I also realized that Gambas is a compiled lang - therefore there is > > nothing like macro substitution.... > > > > Thanks again > > John > > > > > Dam I thought you had the answer. But hfield does not have "Value". > > But I wonder if something else does? I'll continue to check. > BTW I'm using 1.9.23 > Thanks > John > > Did a look in the help gb.db.result: DIM hResult AS Result DIM aVariant AS Variant aVariant = hResult [ Field AS String ] Returns the value of a field in the current record of the Result object. should be then: FOR EACH hfield IN contactdata.Fields INC i loopfield = contactdata[hfield.Name] ? contacts[c, i].Text = loopfield NEXT contactdata = result contacts = gridview I hoop this wil do the job. Ron From gambas at ...1... Tue Jan 3 10:17:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jan 2006 10:17:50 +0100 Subject: [Gambas-user] Editor class error In-Reply-To: <200601021453.03296.jfabiani@...1109...> References: <200601021449.32923.jfabiani@...1109...> <200601021453.03296.jfabiani@...1109...> Message-ID: <200601031017.50633.gambas@...1...> On Monday 02 January 2006 23:53, johnf wrote: > On Monday 02 January 2006 14:49, johnf wrote: > > Hi, > > Editor1.Text = Trim(myresult!notes1) causes a signal 11. > > > > Where myresult!notes1 is a text field from postgres. > > > > John > > also > Editor1.Text = "hello world" also causes a signal 11... > John > That seems to work there... So please send me your project, and tell me which version you use. Thanks in advance, Regards. -- Benoit Minisini From gambas at ...1... Tue Jan 3 10:23:52 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jan 2006 10:23:52 +0100 Subject: [Gambas-user] Newbie question * 3 In-Reply-To: <43BA750D.26074.103E042@...40...> References: <43BA750D.26074.103E042@...40...> Message-ID: <200601031023.52625.gambas@...1...> On Tuesday 03 January 2006 02:58, karl at ...1303... wrote: > Hi All, > > I've got a few queries for you guys: > > My System: > AMD 2700+ > 1Gig RAM > Running SuSe 10.0 > > Gambas 'Release' v1.0.11-0 > Gambas 'Devel' v1.9.21-0 > Both are the current SuSe builds from: > ftp://ftp.gwdg.de/pub/linux/misc/suser-gbv/rpms/ > > 1) It seems that the release version of Gambas does not trim > trailing whitespace from lines whereas the devel version does. How > can I stop the devel version from doing this? (in most cases it's > there for a reason! :-) ) Why do you want whitespaces at the end of lines? > > 2) Gambas seems to evaluate logical AND statements in a 'VB like' > fashion rather than an 'other languages' kind of way. By this I mean > that it evaluates both operands even if the first is false (and > therefore the whole must be false). The result is that you end up > with blocks of code nested more deeply than should be necessary. In > the following example the inner conditional block is necessary > because if colAttendee.Current.Selected is read while there is no > selected item, an error is raised. Please note I'm just using this as > a demonstration of what I mean by 'more deeply nested'. > > Eg: > case a (current gambas)) > DIM colAttendee AS ColumnView > IF colAttendee.Count > 0 THEN > IF colAttendee.Current.Selected = TRUE THEN > ' Do more things > END IF > END IF > > case b ('ideal')) > DIM colAttendee AS ColumnView > IF colAttendee.Count > 0 AND colAttendee.Current.Selected = TRUE THEN > ' Do more things > END IF > > My query is: Is this the expected behaviour, and if so, are there any > plans to ever make AND not evaluate it's right operand if the left is > false? This is the expected behaviour. But you have an 'AND IF' / 'OF IF' syntax that does what you want. Look the 'IF' page in the documentation for more details. > > 3) The following code raises an error (and displays the "got foo" > message) in my release version of gambas (as you might expect :-) ), > but none is raised in the devel version. Is this a bug, or am I > doing something wrong? > > PUBLIC SUB Form_Open() > TRY foobar() > IF ERROR THEN Message("got foo") > END > > PUBLIC FUNCTION foobar() AS Boolean > Error.Raise("foo") > END > Cough! This is a bug... I will check it. Regards, -- Benoit Minisini From jfabiani at ...1109... Tue Jan 3 10:29:16 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 3 Jan 2006 01:29:16 -0800 Subject: [Gambas-user] casting, macro change from str to resultfield? In-Reply-To: <200601031010.28694.ronstk@...239...> References: <200601022301.39231.jfabiani@...1109...> <200601022334.16019.jfabiani@...1109...> <200601031010.28694.ronstk@...239...> Message-ID: <200601030129.16591.jfabiani@...1109...> On Tuesday 03 January 2006 01:10, ron wrote: > On Tuesday 03 January 2006 08:34, johnf wrote: > > On Monday 02 January 2006 23:30, johnf wrote: > > > On Monday 02 January 2006 23:18, ron wrote: > > > > oopfield = hfield.Value > > > > > > Thanks that should work. > > > > > > But I also realized that Gambas is a compiled lang - therefore there is > > > nothing like macro substitution.... > > > > > > Thanks again > > > John > > > > Dam I thought you had the answer. But hfield does not have "Value". > > > > But I wonder if something else does? I'll continue to check. > > BTW I'm using 1.9.23 > > Thanks > > John > > Did a look in the help > gb.db.result: > > > DIM hResult AS Result > DIM aVariant AS Variant > > aVariant = hResult [ Field AS String ] > > > Returns the value of a field in the current record of the Result object. > > should be then: > > FOR EACH hfield IN contactdata.Fields > INC i > loopfield = contactdata[hfield.Name] > ? contacts[c, i].Text = loopfield > NEXT > > contactdata = result > contacts = gridview > > I hoop this wil do the job. > > Ron This works thank you very much. It's 1:am here and I'm very tired so I'm going to bed. But I want to understand your process of determining the correct way to get to the field. I need to be able to do the same thing. But when I read the help file I did not understand the notation. But you did! So if you can take some more time could you explain it. If this like trying to explain OOP then don't of course. But maybe there is some link or text in the help file that will explain the notation? Again thanks PS I think have a little understanding as I re-read the message. Is aVariant one of my controls (or any data type?). John From jfabiani at ...1109... Tue Jan 3 10:34:16 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 3 Jan 2006 01:34:16 -0800 Subject: [Gambas-user] Editor class error In-Reply-To: <200601031017.50633.gambas@...1...> References: <200601021449.32923.jfabiani@...1109...> <200601021453.03296.jfabiani@...1109...> <200601031017.50633.gambas@...1...> Message-ID: <200601030134.16870.jfabiani@...1109...> On Tuesday 03 January 2006 01:17, Benoit Minisini wrote: > On Monday 02 January 2006 23:53, johnf wrote: > > On Monday 02 January 2006 14:49, johnf wrote: > > > Hi, > > > Editor1.Text = Trim(myresult!notes1) causes a signal 11. > > > > > > Where myresult!notes1 is a text field from postgres. > > > > > > John > > > > also > > Editor1.Text = "hello world" also causes a signal 11... > > John > > That seems to work there... So please send me your project, and tell me > which version you use. > > Thanks in advance, > > Regards. I'll send a small example tomorrow it's 1:30am here need a little sleep. Thanks for helping. I'm using 1.9.23 BTW exactly files make up my project? Question: Is there a keyboard shortcut to run a project like "ctrl s" is to save? John From gambas at ...1... Tue Jan 3 10:37:21 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jan 2006 10:37:21 +0100 Subject: [Gambas-user] casting, macro change from str to resultfield? In-Reply-To: <200601030129.16591.jfabiani@...1109...> References: <200601022301.39231.jfabiani@...1109...> <200601031010.28694.ronstk@...239...> <200601030129.16591.jfabiani@...1109...> Message-ID: <200601031037.21894.gambas@...1...> On Tuesday 03 January 2006 10:29, johnf wrote: > On Tuesday 03 January 2006 01:10, ron wrote: > > On Tuesday 03 January 2006 08:34, johnf wrote: > > > On Monday 02 January 2006 23:30, johnf wrote: > > > > On Monday 02 January 2006 23:18, ron wrote: > > > > > oopfield = hfield.Value > > > > > > > > Thanks that should work. > > > > > > > > But I also realized that Gambas is a compiled lang - therefore there > > > > is nothing like macro substitution.... > > > > > > > > Thanks again > > > > John > > > > > > Dam I thought you had the answer. But hfield does not have "Value". > > > > > > But I wonder if something else does? I'll continue to check. > > > BTW I'm using 1.9.23 > > > Thanks > > > John > > > > Did a look in the help > > gb.db.result: > > > > > > DIM hResult AS Result > > DIM aVariant AS Variant > > > > aVariant = hResult [ Field AS String ] > > > > > > Returns the value of a field in the current record of the Result object. > > > > should be then: > > > > FOR EACH hfield IN contactdata.Fields > > INC i > > loopfield = contactdata[hfield.Name] > > ? contacts[c, i].Text = loopfield > > NEXT > > > > contactdata = result > > contacts = gridview > > > > I hoop this wil do the job. > > > > Ron > > This works thank you very much. It's 1:am here and I'm very tired so I'm > going to bed. But I want to understand your process of determining the > correct way to get to the field. I need to be able to do the same thing. > But when I read the help file I did not understand the notation. But you > did! So if you can take some more time could you explain it. If this like > trying to explain OOP then don't of course. But maybe there is some link > or text in the help file that will explain the notation? > > Again thanks > > > > PS I think have a little understanding as I re-read the message. Is > aVariant one of my controls (or any data type?). > > John > The help is automatically generated, so the syntax is not very clear for array accessors, and sub-objects. What you wanted is just a matter of syntax: in Gambas, a[b] <=> a!b. It compiles the same code. Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 3 10:41:09 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jan 2006 10:41:09 +0100 Subject: [Gambas-user] Editor class error In-Reply-To: <200601030134.16870.jfabiani@...1109...> References: <200601021449.32923.jfabiani@...1109...> <200601031017.50633.gambas@...1...> <200601030134.16870.jfabiani@...1109...> Message-ID: <200601031041.09201.gambas@...1...> On Tuesday 03 January 2006 10:34, johnf wrote: > On Tuesday 03 January 2006 01:17, Benoit Minisini wrote: > > On Monday 02 January 2006 23:53, johnf wrote: > > > On Monday 02 January 2006 14:49, johnf wrote: > > > > Hi, > > > > Editor1.Text = Trim(myresult!notes1) causes a signal 11. > > > > > > > > Where myresult!notes1 is a text field from postgres. > > > > > > > > John > > > > > > also > > > Editor1.Text = "hello world" also causes a signal 11... > > > John > > > > That seems to work there... So please send me your project, and tell me > > which version you use. > > > > Thanks in advance, > > > > Regards. > > I'll send a small example tomorrow it's 1:30am here need a little sleep. > Thanks for helping. I'm using 1.9.23 > BTW exactly files make up my project? > > Question: Is there a keyboard shortcut to run a project like "ctrl s" is to > save? > John > Create an archive of all your project: look in the 'Project' menu. Run a project: F5 Regards, -- Benoit Minisini From karl at ...1303... Tue Jan 3 10:50:11 2006 From: karl at ...1303... (Karl Martindale) Date: Tue, 3 Jan 2006 20:50:11 +1100 Subject: [Gambas-user] Newbie question * 3 In-Reply-To: <200601031023.52625.gambas@...1...> References: <43BA750D.26074.103E042@...40...> <200601031023.52625.gambas@...1...> Message-ID: <200601032050.11377.karl@...1303...> On Tuesday 03 January 2006 20:23, Benoit Minisini wrote: > > 1) It seems that the release version of Gambas does not trim > > trailing whitespace from lines whereas the devel version does. How > > can I stop the devel version from doing this? (in most cases it's > > there for a reason! :-) ) > > Why do you want whitespaces at the end of lines? Maybe it's just me being quirky in the way I edit code sometimes, but the trimmed whitespace becomes a (slight) issue when, for example, I surround an assignment in spaces for readability: "foo = " then go and copy a variable name from elsewhere (because I've been a bit longwinded / descriptive in naming a variable) and paste my variable on the right side: "foo =bar" only to find my space trimmed. Or you press enter to get a new line, that's indented to your current level. If you move from that line before using it, all the indenting has been trimmed. Like I say, it's probably just me being quirky, but features that are meant to be helpful that can't be turned off when you don't like them seem to make an editor less 'comfy'. > > > My query is: Is this the expected behaviour, and if so, are there any > > plans to ever make AND not evaluate it's right operand if the left is > > false? > > This is the expected behaviour. But you have an 'AND IF' / 'OF IF' syntax > that does what you want. Look the 'IF' page in the documentation for more > details. > Thank you! A case of RTF http://gambas.sourceforge.net/ because I tried RTFM and that didn't tell me ;) And thank-you for an increasingly good tool, the project I'm hacking away at it starting to take shape! Regards, Karl. From abidoo.too at ...11... Tue Jan 3 11:48:48 2006 From: abidoo.too at ...11... (Muriel Bodard) Date: Tue, 3 Jan 2006 11:48:48 +0100 Subject: [Gambas-user] Access controls outside a form In-Reply-To: <43B9A5F6.9090101@...1302...> References: <43B9A5F6.9090101@...1302...> Message-ID: <200601031148.49033.abidoo.too@...11...> Le Lundi 02 Janvier 2006 23:15, Oliver Etchebarne Bejarano a ?crit?: > Hello, > > I was googling a little, but I didn't find any solution to this :( My > starting class is not a form (I have a Sub Main() ), but I want to fill > data on a listbox inside a form. In VB (*ugh*) you could do: > > form.listboxcontrol.additem ("foobar") > > but I can't do that in Gambas :( Any idea? if you want to work like in vb you must check public form in project options. But you need to know that is not a good way of programming..; 2 other ways are possibles : Pass an object reference to your procedure FillList(lst as listbox) lst.add("foobar") end or a public function accessible on your form : 'Gambas form Public sub ListAdd(sItem as string) ListBox1.Add(sItem) end in main : MyForm.ListAdd("FooBar") A big project like gambas ide don't work with public form, it take a wheel to forget that bad use but at term it's better and you can do more powerfull and more easy to maintain things. Regards, Fabien Bodard > > Thanks, From abidoo.too at ...11... Tue Jan 3 13:15:10 2006 From: abidoo.too at ...11... (Muriel Bodard) Date: Tue, 3 Jan 2006 13:15:10 +0100 Subject: [Gambas-user] casting, macro change from str to resultfield? In-Reply-To: <200601030129.16591.jfabiani@...1109...> References: <200601022301.39231.jfabiani@...1109...> <200601031010.28694.ronstk@...239...> <200601030129.16591.jfabiani@...1109...> Message-ID: <200601031315.10378.abidoo.too@...11...> Le Mardi 03 Janvier 2006 10:29, johnf a ?crit?: > On Tuesday 03 January 2006 01:10, ron wrote: > > On Tuesday 03 January 2006 08:34, johnf wrote: > > > On Monday 02 January 2006 23:30, johnf wrote: > > > > On Monday 02 January 2006 23:18, ron wrote: > > > > > oopfield = hfield.Value > > > > > > > > Thanks that should work. > > > > > > > > But I also realized that Gambas is a compiled lang - therefore there > > > > is nothing like macro substitution.... > > > > > > > > Thanks again > > > > John > > > > > > Dam I thought you had the answer. But hfield does not have "Value". > > > > > > But I wonder if something else does? I'll continue to check. > > > BTW I'm using 1.9.23 > > > Thanks > > > John > > > > Did a look in the help > > gb.db.result: > > > > > > DIM hResult AS Result > > DIM aVariant AS Variant > > > > aVariant = hResult [ Field AS String ] > > > > > > Returns the value of a field in the current record of the Result object. > > > > should be then: > > > > FOR EACH hfield IN contactdata.Fields > > INC i > > loopfield = contactdata[hfield.Name] > > ? contacts[c, i].Text = loopfield > > NEXT > > > > contactdata = result > > contacts = gridview > > > > I hoop this wil do the job. > > > > Ron > > This works thank you very much. It's 1:am here and I'm very tired so I'm > going to bed. But I want to understand your process of determining the > correct way to get to the field. I need to be able to do the same thing. > But when I read the help file I did not understand the notation. But you > did! So if you can take some more time could you explain it. If this like > trying to explain OOP then don't of course. But maybe there is some link > or text in the help file that will explain the notation? > > Again thanks > > > > PS I think have a little understanding as I re-read the message. Is > aVariant one of my controls (or any data type?). > > John What is this code ...; ? i understand that you can't understand that ! The code can work but is not writing on a good way to be use at a sample: First : What a Result : A result is a buffer that store a query result. (i think you have understand that. When you send a query like Myconnection.exec("Select id, user from mytable" ) You obtain a result with n records on 2 fields Result is a class too so: you can access to the current record by : - hResult!Field - hResult["field"] But you can access to the other result info like - record count - connection parent - Index of current record - Record walking functions - ResultFields (collection of the fields used in the result) ResultField - name - Length (max length) - Result (parent) - Type (type of data) this Fill a tableview with a gived result You need a form with a Tableview named TableView1 and a textBox named textbox1 ' Gambas class file PRIVATE hResult AS Result PRIVATE hCon AS NEW Connection PUBLIC SUB _New() DIM hrField AS ResultField hCon.Type = "sqlite" hCon.Login = "" hCon.PassWord = "" hCon.Host = "/home/fabien/.Gestion" hCon.Name = "Dossieryzf" hCon.Open hResult = hCon.Exec("SELECT * FROM Ecritures") 'Fill the columns headers of the Tableview an set number of columns FOR EACH hrField IN hResult.Fields INC TableView1.Columns.Count TableView1.Columns[TableView1.Columns.Count - 1].Text = hrField.Name NEXT 'Set The table view Number of Rows TableView1.Rows.Count = hResult.Count END PUBLIC SUB TableView1_Data(Row AS Integer, Column AS Integer) 'Move to the Queried Row value hResult.MoveTo(Row) 'Set The Current Cell Value With the current column header text for the 'fieldname TableView1.Data.Text = hResult[TableView1.Columns[Column].Text] 'Toggle Row Color 1 on 2 (more pretty) TableView1.Data.Background = IIf(row MOD 2 > 0, color.TextBackground, &HF0EEFF&) END PUBLIC SUB Form_Close() hResult = NULL hCon.Close END I hope it help you... Gambas is a powerfull tool to manage databases... Not so complete as a dedied tool but mabe one of the better db layer i know. The next Lesson ..; on how to add datas... and i'm going to try data management on big tables... Regards, Fabien Bodard From gambas at ...1... Tue Jan 3 17:33:06 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jan 2006 17:33:06 +0100 Subject: [Gambas-user] Changes in the name of wiki users Message-ID: <200601031733.06334.gambas@...1...> Hi, I changed the name of all users of the wiki. I just keep only the first letter of the first name, before the point, and remove the other letters. I keep the name too. So, if your login was "albert.einstein", it is now "a.einstein". Sorry for the inconvenience, Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 3 17:39:58 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jan 2006 17:39:58 +0100 Subject: [Gambas-user] I'm thinking... Message-ID: <200601031739.58496.gambas@...1...> You know probably that an object in Gambas has a constructor named '_new', and a destructor named '_free'. At the moment, '_free' is called just before the object is released. Now, you know probably too that an object in Gambas can become "invalid". An invalid object cannot be used anymore, but it is referenced again. I'm currently thinking about calling '_free' when an object becomes invalid (and then not calling it when the object is released of course). There are advantages... But I'm not sure it won't break some things in native classes (I will see) or in your Gambas code. So, what do you think about that? Do you use '_free'? What for? Tell me if you see any problem in this design change. Regards, -- Benoit Minisini From m.moeller at ...1299... Tue Jan 3 17:50:54 2006 From: m.moeller at ...1299... (Marcus Moeller) Date: Tue, 3 Jan 2006 17:50:54 +0100 Subject: [Gambas-user] German Gambas Forum Message-ID: <200601031750.54736.m.moeller@...1299...> Dear Gambas Lovers, We are proud to announce the first German gambas forum. If you are in need of help installing gambas, building your own applications or just want to hang arround with other German speaking gambas users, visit: http://www.roemi.de/gambas/forum/index.php This forum could also be used to share some code snippets. Best Wishes from Germany Roemi and Marcus From gambas at ...1... Tue Jan 3 17:55:07 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 3 Jan 2006 17:55:07 +0100 Subject: [Gambas-user] Newbie question * 3 In-Reply-To: <43BA750D.26074.103E042@...40...> References: <43BA750D.26074.103E042@...40...> Message-ID: <200601031755.07349.gambas@...1...> On Tuesday 03 January 2006 02:58, karl at ...1303... wrote: > [...] > > 3) The following code raises an error (and displays the "got foo" > message) in my release version of gambas (as you might expect :-) ), > but none is raised in the devel version. Is this a bug, or am I > doing something wrong? > > PUBLIC SUB Form_Open() > TRY foobar() > IF ERROR THEN Message("got foo") > END > > PUBLIC FUNCTION foobar() AS Boolean > Error.Raise("foo") > END > > I think I have fixed the bug. Here is a patch for you, and those who need it. Use it only on the last development version. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_exec.c Type: text/x-csrc Size: 30406 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Tue Jan 3 18:06:37 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 3 Jan 2006 12:06:37 -0500 Subject: [Gambas-user] I'm thinking... In-Reply-To: <200601031739.58496.gambas@...1...> References: <200601031739.58496.gambas@...1...> Message-ID: <200601031206.38690.sourceforge-raindog2@...94...> On Tue January 3 2006 11:39, Benoit Minisini wrote: > I'm currently thinking about calling '_free' when an object > becomes invalid (and then not calling it when the object is > released of course). > > There are advantages... But I'm not sure it won't break some > things in native classes (I will see) or in your Gambas code. I can't see where it'll hurt gb.pcre (which would probably make gbx segv if you referenced it while it was invalid anyway... I didn't even know it was possible to do so) but I'm not sure that's what you were asking. Rob From JamesWilson at ...1288... Tue Jan 3 19:00:49 2006 From: JamesWilson at ...1288... (James Wilson) Date: Tue, 3 Jan 2006 18:00:49 -0000 Subject: [Gambas-user] jpeg performance References: <20060103165708.558BA8928A@...763...> Message-ID: <9A7F7547B2BA7E4DAF12D61724A0C53BC718@...1289...> HI all I have the following code DIM image1 AS image DIM imagee1 AS Image DIM image2 AS image DIM imagee2 AS Image DIM image3 AS image DIM imagee3 AS Image DIM image4 AS image DIM imagee4 AS Image SHELL "wget 'http://127.0.0.1/cgi-bin/nph-zms?mode=single&monitor=2&scale=100' -O /tmp/cam1.jpg " WAIT SHELL "wget 'http://127.0.0.1/cgi-bin/nph-zms?mode=single&monitor=3&scale=100' -O /tmp/cam2.jpg " WAIT SHELL "wget 'http://127.0.0.1/cgi-bin/nph-zms?mode=single&monitor=4&scale=100' -O /tmp/cam3.jpg " WAIT SHELL "wget 'http://127.0.0.1/cgi-bin/nph-zms?mode=single&monitor=5&scale=100' -O /tmp/cam4.jpg " WAIT 'image1= NEW Picture 'image1.Load ("/tmp/cam1.jpg") imagee1 = NEW Image imagee1.Load ("/tmp/cam1.jpg") image1=imagee1.Stretch (desktop.Width /2,desktop.Height /2 ,[TRUE]) imagee2 = NEW Image imagee2.Load ("/tmp/cam2.jpg") image2=imagee2.Stretch (desktop.Width /2,desktop.Height /2 ) imagee3 = NEW Image imagee3.Load ("/tmp/cam3.jpg") image3=imagee3.Stretch (desktop.Width /2,desktop.Height /2 ) imagee4 = NEW Image imagee4.Load ("/tmp/cam4.jpg") image4=imagee4.Stretch (desktop.Width /2,desktop.Height /2 ) 'DIM image1 AS imagee1.Stretch (320,240,[TRUE]) AS image 'picturebox1.picture = image1 'picturebox2.picture= image1 'drawingarea1.Mask=picture["/tmp/cam1.jpg"] draw.Begin(drawingarea1) draw.Image(image1,0,0) draw.End draw.Begin(drawingarea2) draw.Image(image2,0,0) draw.End draw.Begin(drawingarea3) draw.Image(image3,0,0) draw.End draw.Begin(drawingarea4) draw.Image(image4,0,0) draw.End fps = fps+1 label1.Text = "refresh rate at " & fps &" fps" imagee1.Clear image1.Clear imagee2.Clear image2.Clear imagee3.Clear image3.Clear imagee4.Clear image4.Clear This is set on a timer to be called repeatedly. I have used wget as its the only way i know to get images from a url. The string above will download a jpeg approx 60k is size. They are pictures from my cctv system. Now the system runs but very slowly. I first tried picture boxes but these flickered badly and then i found the drawingarea. Im very new to programming, but have had some success with vb.net. What am i doing wrong as the refreshes take 3-4 seconds. I am hoping to achive 5 refreshes per second. Regards James -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3485 bytes Desc: not available URL: From dcamposf at ...626... Tue Jan 3 19:45:23 2006 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 3 Jan 2006 19:45:23 +0100 Subject: [Gambas-user] I'm thinking... In-Reply-To: <200601031739.58496.gambas@...1...> References: <200601031739.58496.gambas@...1...> Message-ID: <7259b5ae0601031045v2a396b32h@...627...> Well, it is sure that I'll will break things in the GTK+ component, and probably my current (not yet released) XML implementation, but I suppose I'll be able to fix the code without very much problems, it will even help to free data attached to some controls once they are not valid... Regards, D. Campos 2006/1/3, Benoit Minisini : > > You know probably that an object in Gambas has a constructor named '_new', > and > a destructor named '_free'. > > At the moment, '_free' is called just before the object is released. > > Now, you know probably too that an object in Gambas can become "invalid". > An > invalid object cannot be used anymore, but it is referenced again. > > I'm currently thinking about calling '_free' when an object becomes > invalid > (and then not calling it when the object is released of course). > > There are advantages... But I'm not sure it won't break some things in > native > classes (I will see) or in your Gambas code. > > So, what do you think about that? Do you use '_free'? What for? Tell me if > you > see any problem in this design change. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nando_f at ...951... Tue Jan 3 20:02:14 2006 From: nando_f at ...951... (nando) Date: Tue, 3 Jan 2006 14:02:14 -0500 Subject: [Gambas-user] jpeg performance In-Reply-To: <9A7F7547B2BA7E4DAF12D61724A0C53BC718@...1289...> References: <20060103165708.558BA8928A@...763...> <9A7F7547B2BA7E4DAF12D61724A0C53BC718@...1289...> Message-ID: <20060103183224.M11871@...951...> My experience is that using STRETCH is slower. (but if you need to use it - you need to use it) The picture requires more processing to alter/stretch. You may want to try the following idea so that it is threaded. Consider... Shelling to a 3-line Shell script (a different one for each camera): Line 1: RMDIR /tmp/cam1.done Line 2: wget 'http://127.0.0.1/cgi-bin/nph -zms?mode=single&monitor=2&scale=100' -O /tmp/cam1.jpg Line 3: MKDIR /tmp/cam1.done ..then in your GAMBAS program you have WHILE ActiveUpdate = TRUE SHELL "script for camera number 1" 'no WAIT..these 4 run independently SHELL "script for camera number 2" SHELL "script for camera number 3" SHELL "script for camera number 4" WAIT 0.1 IF Exist "/tmp/cam1.done" THEN ' the folder created is a signal that ' the script finished getting the picture imagee1 = NEW Image imagee1.Load ("/tmp/cam1.jpg") image1=imagee1.Stretch (desktop.Width /2,desktop.Height /2 ,[TRUE]) ENDIF ..repeat the if EXIST for other three. WEND SUB StopUpdating_Click() 'button called StopUpdating ActiveUpdate = False END 'Each 4 Shells runs indendently simultaneously..that is a speedup ...see how fast that goes?? -Fernando ---------- Original Message ----------- From: "James Wilson" To: Sent: Tue, 3 Jan 2006 18:00:49 -0000 Subject: [Gambas-user] jpeg performance > HI all > > I have the following code > > DIM image1 AS image > DIM imagee1 AS Image > DIM image2 AS image > DIM imagee2 AS Image > DIM image3 AS image > DIM imagee3 AS Image > DIM image4 AS image > DIM imagee4 AS Image > SHELL "wget 'http://127.0.0.1/cgi-bin/nph- > zms?mode=single&monitor=2&scale=100' -O /tmp/cam1.jpg " WAIT SHELL > "wget 'http://127.0.0.1/cgi-bin/nph- > zms?mode=single&monitor=3&scale=100' -O /tmp/cam2.jpg " WAIT SHELL > "wget 'http://127.0.0.1/cgi-bin/nph- > zms?mode=single&monitor=4&scale=100' -O /tmp/cam3.jpg " WAIT SHELL > "wget 'http://127.0.0.1/cgi-bin/nph- > zms?mode=single&monitor=5&scale=100' -O /tmp/cam4.jpg " WAIT > > 'image1= NEW Picture > 'image1.Load ("/tmp/cam1.jpg") > imagee1 = NEW Image > imagee1.Load ("/tmp/cam1.jpg") > image1=imagee1.Stretch (desktop.Width /2,desktop.Height /2 ,[TRUE]) > imagee2 = NEW Image > imagee2.Load ("/tmp/cam2.jpg") > image2=imagee2.Stretch (desktop.Width /2,desktop.Height /2 ) > imagee3 = NEW Image > imagee3.Load ("/tmp/cam3.jpg") > image3=imagee3.Stretch (desktop.Width /2,desktop.Height /2 ) > imagee4 = NEW Image > imagee4.Load ("/tmp/cam4.jpg") > image4=imagee4.Stretch (desktop.Width /2,desktop.Height /2 ) > > 'DIM image1 AS imagee1.Stretch (320,240,[TRUE]) AS image > 'picturebox1.picture = image1 > > 'picturebox2.picture= image1 > 'drawingarea1.Mask=picture["/tmp/cam1.jpg"] > draw.Begin(drawingarea1) > draw.Image(image1,0,0) > draw.End > draw.Begin(drawingarea2) > draw.Image(image2,0,0) > draw.End > draw.Begin(drawingarea3) > draw.Image(image3,0,0) > draw.End > draw.Begin(drawingarea4) > draw.Image(image4,0,0) > draw.End > fps = fps+1 > label1.Text = "refresh rate at " & fps &" fps" > imagee1.Clear > image1.Clear > imagee2.Clear > image2.Clear > imagee3.Clear > image3.Clear > imagee4.Clear > image4.Clear > > This is set on a timer to be called repeatedly. I have used wget as > its the only way i know to get images from a url. The string above > will download a jpeg approx 60k is size. They are pictures from my > cctv system. Now the system runs but very slowly. I first tried > picture boxes but these flickered badly and then i found the > drawingarea. Im very new to programming, but have had some success > with vb.net. What am i doing wrong as the refreshes take 3-4 seconds. > I am hoping to achive 5 refreshes per second. > > Regards > James ------- End of Original Message ------- From sourceforge-raindog2 at ...94... Tue Jan 3 20:55:03 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 3 Jan 2006 14:55:03 -0500 Subject: [Gambas-user] jpeg performance In-Reply-To: <20060103183224.M11871@...951...> References: <20060103165708.558BA8928A@...763...> <9A7F7547B2BA7E4DAF12D61724A0C53BC718@...1289...> <20060103183224.M11871@...951...> Message-ID: <200601031455.04131.sourceforge-raindog2@...94...> On Tue January 3 2006 14:02, nando wrote: > Shelling to a 3-line Shell script (a different one for each > camera): You might also consider using "convert" or some other ImageMagick tool run from a shell without a WAIT to do the stretching, so that 4 of those can be done at the same time too. It won't be any faster than Qt's stretching, but at least your program isn't frozen while it's happening. Also, using a drawing area is slower than using two picture boxes for each image and showing/hiding them (basically page flipping) in my experience. I wrote an app to capture and display frames from a security camera (by shelling out to some v4l capture utility), and I used that approach. Qt is still slow enough that when you make the picture full-screen you can see the redraw, but short of redoing it as an SDL app I don't see any other option. When gb.qt.opengl is mature, you might look into that for faster scaling as well. Rob From gambasfr at ...11... Tue Jan 3 21:18:54 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Tue, 3 Jan 2006 21:18:54 +0100 Subject: [Gambas-user] I'm thinking... In-Reply-To: <200601031739.58496.gambas@...1...> References: <200601031739.58496.gambas@...1...> Message-ID: <200601032118.54217.gambasfr@...11...> Le Mardi 3 Janvier 2006 17:39, Benoit Minisini a ?crit?: > You know probably that an object in Gambas has a constructor named '_new', > and a destructor named '_free'. > > At the moment, '_free' is called just before the object is released. > > Now, you know probably too that an object in Gambas can become "invalid". > An invalid object cannot be used anymore, but it is referenced again. > > I'm currently thinking about calling '_free' when an object becomes invalid > (and then not calling it when the object is released of course). > > There are advantages... But I'm not sure it won't break some things in > native classes (I will see) or in your Gambas code. > > So, what do you think about that? Do you use '_free'? What for? Tell me if > you see any problem in this design change. > > Regards, It's good for me :) I often forget to use the free part... But i know it's not a good programming use From Karl.Reinl at ...9... Tue Jan 3 21:58:33 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Tue, 3 Jan 2006 21:58:33 +0100 Subject: [Gambas-user] Why the dots don't do it ? Message-ID: <200601032158.34378.Karl.Reinl@...9...> Salut, gambas2-1.9.23 ? Format(CDate("10/10/05"), "dd.mm.yyyy") 10102005 ? Format(CDate("10/10/05"), "dd,mm,yyyy") 10,10,2005 ? Format(CDate("10/10/05"), "dd/mm/yyyy") 10.10.2005 ? Format(CDate("10/10/05"), "dd mm yyyy") 10 10 2005 Amicalment Charlie From gambas at ...1... Wed Jan 4 00:53:30 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jan 2006 00:53:30 +0100 Subject: [Gambas-user] I'm thinking... In-Reply-To: <7259b5ae0601031045v2a396b32h@...627...> References: <200601031739.58496.gambas@...1...> <7259b5ae0601031045v2a396b32h@...627...> Message-ID: <200601040053.30871.gambas@...1...> On Tuesday 03 January 2006 19:45, Daniel Campos wrote: > Well, it is sure that I'll will break things in the GTK+ component, and > probably my current (not yet released) XML implementation, but I suppose > I'll be able to fix the code without very much problems, it will even help > to free data attached to some controls once they are not valid... > > Regards, > > D. Campos > What are you doing exactly in _free() method that prevent it from being called before the Gambas object is really destroyed? Becoming invalid for a gb.gtk object means that the underlying GTK+ widget has been destroyed. So what are you doing between becoming invalid and dying ? Otherwise, I could add a new special method, named '_invalid'. But if it is not necessary, I won't do that. Regards, -- Benoit Minisini From lordheavy at ...512... Wed Jan 4 00:55:56 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 4 Jan 2006 00:55:56 +0100 Subject: [Gambas-user] I'm thinking... In-Reply-To: <200601031739.58496.gambas@...1...> References: <200601031739.58496.gambas@...1...> Message-ID: <200601040055.56476.lordheavy@...512...> Le Mardi 3 Janvier 2006 17:39, Benoit Minisini a ?crit?: > You know probably that an object in Gambas has a constructor named '_new', > and a destructor named '_free'. > > At the moment, '_free' is called just before the object is released. > > Now, you know probably too that an object in Gambas can become "invalid". > An invalid object cannot be used anymore, but it is referenced again. > > I'm currently thinking about calling '_free' when an object becomes invalid > (and then not calling it when the object is released of course). > > There are advantages... But I'm not sure it won't break some things in > native classes (I will see) or in your Gambas code. > > So, what do you think about that? Do you use '_free'? What for? Tell me if > you see any problem in this design change. > > Regards, no problems with sdl or opengl stuff :) Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From gambas at ...1... Wed Jan 4 01:01:44 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jan 2006 01:01:44 +0100 Subject: [Gambas-user] jpeg performance In-Reply-To: <200601031455.04131.sourceforge-raindog2@...94...> References: <20060103165708.558BA8928A@...763...> <20060103183224.M11871@...951...> <200601031455.04131.sourceforge-raindog2@...94...> Message-ID: <200601040101.45119.gambas@...1...> On Tuesday 03 January 2006 20:55, Rob Kudla wrote: > On Tue January 3 2006 14:02, nando wrote: > > Shelling to a 3-line Shell script (a different one for each > > camera): > > You might also consider using "convert" or some other ImageMagick > tool run from a shell without a WAIT to do the stretching, so > that 4 of those can be done at the same time too. It won't be > any faster than Qt's stretching, but at least your program isn't > frozen while it's happening. > > Also, using a drawing area is slower than using two picture boxes > for each image and showing/hiding them (basically page flipping) > in my experience. Cached drawing area or not? > I wrote an app to capture and display frames > from a security camera (by shelling out to some v4l capture > utility), and I used that approach. Qt is still slow enough > that when you make the picture full-screen you can see the > redraw, but short of redoing it as an SDL app I don't see any > other option. Maybe you could use the gb.v4l component of Daniel? First, by default, stretching is antialiazed. By passing FALSE as third argument of Stretch, things will be quicker. Anyway, stretching is slow, especially to half the size of the desktop. It is written in pure C, and does not use any MMX/SSE x86 instruction. A good idea would be integrating the stretch feature inside the X server. It would be faster: you will send only the initial image to the X server, not the result of the stretching, that may be very big. > > When gb.qt.opengl is mature, you might look into that for faster > scaling as well. Maybe you can already use it for that - I don't know, Laurent Carlier will tell about that. Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 4 01:07:39 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jan 2006 01:07:39 +0100 Subject: [Gambas-user] Why the dots don't do it ? In-Reply-To: <200601032158.34378.Karl.Reinl@...9...> References: <200601032158.34378.Karl.Reinl@...9...> Message-ID: <200601040107.40114.gambas@...1...> On Tuesday 03 January 2006 21:58, Charlie Reinl wrote: > Salut, > > gambas2-1.9.23 > > ? Format(CDate("10/10/05"), "dd.mm.yyyy") > 10102005 > > ? Format(CDate("10/10/05"), "dd,mm,yyyy") > 10,10,2005 > > > ? Format(CDate("10/10/05"), "dd/mm/yyyy") > 10.10.2005 > > ? Format(CDate("10/10/05"), "dd mm yyyy") > 10 10 2005 > > Amicalment > Charlie > Good question :-) '.' is the format character for printing the milliseconds. Now I can see that it was a very bad idea of not using a letter! I think I will replace the point by... I don't know. Why not 'u' ? It is a bit like '?' which means 'micro'. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Wed Jan 4 01:49:20 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 3 Jan 2006 19:49:20 -0500 Subject: [Gambas-user] jpeg performance In-Reply-To: <200601040101.45119.gambas@...1...> References: <20060103165708.558BA8928A@...763...> <200601031455.04131.sourceforge-raindog2@...94...> <200601040101.45119.gambas@...1...> Message-ID: <200601031949.21196.sourceforge-raindog2@...94...> On Tue January 3 2006 19:01, Benoit Minisini wrote: > Cached drawing area or not? I assume I was doing it cached, but I don't have the code available to me currently. > Maybe you could use the gb.v4l component of Daniel? Daniel's v4l component came out about 2 weeks after I finished the project I was talking about. Otherwise, sure ;) Rob From gambas at ...1... Wed Jan 4 15:02:04 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jan 2006 15:02:04 +0100 Subject: [Gambas-user] BUG: sqlite -> gb.serial Message-ID: <200601041502.04981.gambas@...1...> > Hi Benoit. > > First today I got time to test. Wanted to change my id field to > gb.serial but I got an > error. Thaught it was something with previous version of database so I > removed it and tried > to create a newone, but the same error. > Tried to set the default value to 1 but this was not alowed either. > Attachment screendump of error. > > I do not have gb.serial in gambas. I'm running ver....23. It says so in > gambas. m'I doing something wrong > or is it a 4legged living creature here (BUG) :) > > > Regards Rohnny Here is a patch for the gb.db.sqlite3 driver, which should fix this problem, and another problem with serial fields. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: src.tar.bz2 Type: application/x-tbz Size: 27483 bytes Desc: not available URL: From JamesWilson at ...1288... Wed Jan 4 15:28:45 2006 From: JamesWilson at ...1288... (James Wilson) Date: Wed, 4 Jan 2006 14:28:45 -0000 Subject: [Gambas-user] RE Jpeg Perfomance Message-ID: <9A7F7547B2BA7E4DAF12D61724A0C53B098391@...1289...> On Tuesday 03 January 2006 20:55, Rob Kudla wrote: > On Tue January 3 2006 14:02, nando wrote: > > Shelling to a 3-line Shell script (a different one for each > > camera): > > You might also consider using "convert" or some other ImageMagick tool > run from a shell without a WAIT to do the stretching, so that 4 of > those can be done at the same time too. It won't be any faster than > Qt's stretching, but at least your program isn't frozen while it's > happening. > > Also, using a drawing area is slower than using two picture boxes for > each image and showing/hiding them (basically page flipping) in my > experience. Cached drawing area or not? > I wrote an app to capture and display frames from a security camera > (by shelling out to some v4l capture utility), and I used that > approach. Qt is still slow enough that when you make the picture > full-screen you can see the redraw, but short of redoing it as an SDL > app I don't see any other option. Maybe you could use the gb.v4l component of Daniel? First, by default, stretching is antialiazed. By passing FALSE as third argument of Stretch, things will be quicker. Anyway, stretching is slow, especially to half the size of the desktop. It is written in pure C, and does not use any MMX/SSE x86 instruction. A good idea would be integrating the stretch feature inside the X server. It would be faster: you will send only the initial image to the X server, not the result of the stretching, that may be very big. > > When gb.qt.opengl is mature, you might look into that for faster > scaling as well. Maybe you can already use it for that - I don't know, Laurent Carlier will tell about that. Regards, -- Benoit Minisini I have tried it without the scale/stretch and things improve a bit but not by a huge amount. If there is only 1 image being shown it has acceptable performace, but ultimatly I want to have 16 images displayed this way. I think I need to find another way lol. I tried the show hide thing suggested but must have got the sequence wrong as it still flickered. As it currently stands you can see the image being refreshed vertically. Im assuming the stretch has already been performed before it gets to displaying it. IT seems to be a speed issue in actually drawing the images. Thanks for your answers though. BTW when running this app it gbx takes all available resources ie all available processor a 2200 XP (91%) and 50% of the 512Meg installed in my test machine From gambas at ...1... Wed Jan 4 15:42:29 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jan 2006 15:42:29 +0100 Subject: [Gambas-user] RE Jpeg Perfomance In-Reply-To: <9A7F7547B2BA7E4DAF12D61724A0C53B098391@...1289...> References: <9A7F7547B2BA7E4DAF12D61724A0C53B098391@...1289...> Message-ID: <200601041542.29769.gambas@...1...> On Wednesday 04 January 2006 15:28, James Wilson wrote: > I have tried it without the scale/stretch and things improve a bit but > not by a huge amount. If there is only 1 image being shown it has > acceptable performace, but ultimatly I want to have 16 images displayed > this way. I think I need to find another way lol. I tried the show hide > thing suggested but must have got the sequence wrong as it still > flickered. > As it currently stands you can see the image being refreshed vertically. > Im assuming the stretch has already been performed before it gets to > displaying it. IT seems to be a speed issue in actually drawing the > images. Thanks for your answers though. > > BTW when running this app it gbx takes all available resources ie all > available processor a 2200 XP (91%) and 50% of the 512Meg installed in > my test machine It is possible to do what you want, as Xine or mplayer do it! Maybe you should try to find how Xine or mplayer scale their video images so that things display quickly without flickering :-) -- Benoit Minisini From sourceforge-raindog2 at ...94... Wed Jan 4 16:06:00 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 4 Jan 2006 10:06:00 -0500 Subject: [Gambas-user] RE Jpeg Perfomance In-Reply-To: <9A7F7547B2BA7E4DAF12D61724A0C53B098391@...1289...> References: <9A7F7547B2BA7E4DAF12D61724A0C53B098391@...1289...> Message-ID: <200601041006.00691.sourceforge-raindog2@...94...> On Wed January 4 2006 09:28, James Wilson wrote: > As it currently stands you can see the image being refreshed > vertically. Im assuming the stretch has already been performed > before it gets to displaying it. IT seems to be a speed issue > in actually drawing the images. Thanks for your answers > though. Yeah, you're running into Qt's underlying slowness (the same is true of Gtk to a lesser extent, and most other toolkits I've worked with.) If your primary interface in this app is going to be 16 constantly refreshed images, then I really think you should look into gb.sdl which has much faster drawing performance. You'll have to handle your own widgets for now, but if performance is the most important thing, that's your best option. Or try gb.qt.opengl in the recent 1.9 releases.... I don't know how stable it is, but it sure ought to be faster than Qt's normal drawing abilities. Rob From ml at ...973... Wed Jan 4 16:11:43 2006 From: ml at ...973... (ML) Date: Wed, 04 Jan 2006 16:11:43 +0100 Subject: [Gambas-user] Rotated text? Message-ID: <43BBE5AF.6060206@...973...> Hi all, I need to draw some rotated text strings on a graphic canvas, but I can't find any suitable control or method. The only rotate method I found is in the Image control, but I can't draw anything on this object, can I? Does anybody have an idea how to accomplish this? TIA for your help, Piero From gambas at ...1... Wed Jan 4 16:18:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jan 2006 16:18:41 +0100 Subject: [Gambas-user] Rotated text? In-Reply-To: <43BBE5AF.6060206@...973...> References: <43BBE5AF.6060206@...973...> Message-ID: <200601041618.42453.gambas@...1...> On Wednesday 04 January 2006 16:11, ML wrote: > Hi all, > > I need to draw some rotated text strings on a graphic canvas, but I can't > find any suitable control or method. > > The only rotate method I found is in the Image control, but I can't draw > anything on this object, can I? > > Does anybody have an idea how to accomplish this? > > TIA for your help, > Piero > At the moment, you can do this trick: 1) Draw the text in a picture. 2) Transform this picture into an image. 3) Rotate the image. 4) Transform the image in a picture. And, of course, it is slow :-( Regards, -- Benoit Minisini From ml at ...973... Wed Jan 4 16:48:24 2006 From: ml at ...973... (ML) Date: Wed, 04 Jan 2006 16:48:24 +0100 Subject: [Gambas-user] Rotated text? In-Reply-To: <200601041618.42453.gambas@...1...> References: <43BBE5AF.6060206@...973...> <200601041618.42453.gambas@...1...> Message-ID: <43BBEE48.2080601@...973...> On 04/01/2006 16:18, Benoit Minisini wrote: > At the moment, you can do this trick: > > 1) Draw the text in a picture. > 2) Transform this picture into an image. > 3) Rotate the image. > 4) Transform the image in a picture. Thanks Benoit, I'll give it a try. Ciao, Piero From ml at ...973... Wed Jan 4 17:44:24 2006 From: ml at ...973... (ML) Date: Wed, 04 Jan 2006 17:44:24 +0100 Subject: [Gambas-user] Rotated text? In-Reply-To: <200601041618.42453.gambas@...1...> References: <43BBE5AF.6060206@...973...> <200601041618.42453.gambas@...1...> Message-ID: <43BBFB68.6050903@...973...> On 04/01/2006 16:18, Benoit Minisini wrote: > At the moment, you can do this trick: > > 1) Draw the text in a picture. > 2) Transform this picture into an image. > 3) Rotate the image. > 4) Transform the image in a picture. > > And, of course, it is slow :-( Not only is it slow, the text drawn is awfully jagged and with certain angles of rotation it becomes almost unreadable. Is there any trick for a better text rendering too in this case? Thanks, Piero From gambas at ...1... Wed Jan 4 17:58:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 4 Jan 2006 17:58:51 +0100 Subject: [Gambas-user] Rotated text? In-Reply-To: <43BBFB68.6050903@...973...> References: <43BBE5AF.6060206@...973...> <200601041618.42453.gambas@...1...> <43BBFB68.6050903@...973...> Message-ID: <200601041758.52265.gambas@...1...> On Wednesday 04 January 2006 17:44, ML wrote: > On 04/01/2006 16:18, Benoit Minisini wrote: > > At the moment, you can do this trick: > > > > 1) Draw the text in a picture. > > 2) Transform this picture into an image. > > 3) Rotate the image. > > 4) Transform the image in a picture. > > > > And, of course, it is slow :-( > > Not only is it slow, the text drawn is awfully jagged and with certain > angles of rotation it becomes almost unreadable. > > Is there any trick for a better text rendering too in this case? > > > Thanks, > Piero > I must add support for the transformation matrix to the qt component. I think it will solve this problem... Regards, -- Benoit Minisini From jfabiani at ...1109... Wed Jan 4 16:42:42 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 4 Jan 2006 07:42:42 -0800 Subject: [Gambas-user] Editor class error In-Reply-To: <200601031041.09201.gambas@...1...> References: <200601021449.32923.jfabiani@...1109...> <200601030134.16870.jfabiani@...1109...> <200601031041.09201.gambas@...1...> Message-ID: <200601040742.42603.jfabiani@...1109...> On Tuesday 03 January 2006 01:41, Benoit Minisini wrote: > On Tuesday 03 January 2006 10:34, johnf wrote: > > On Tuesday 03 January 2006 01:17, Benoit Minisini wrote: > > > On Monday 02 January 2006 23:53, johnf wrote: > > > > On Monday 02 January 2006 14:49, johnf wrote: > > > > > Hi, > > > > > Editor1.Text = Trim(myresult!notes1) causes a signal 11. > > > > > > > > > > Where myresult!notes1 is a text field from postgres. > > > > > > > > > > John > > > > > > > > also > > > > Editor1.Text = "hello world" also causes a signal 11... > > > > John > > > > > > That seems to work there... So please send me your project, and tell me > > > which version you use. > > > > > > Thanks in advance, > > > > > > Regards. > > > > I'll send a small example tomorrow it's 1:30am here need a little sleep. > > Thanks for helping. I'm using 1.9.23 > > BTW exactly files make up my project? > > > > Question: Is there a keyboard shortcut to run a project like "ctrl s" is > > to save? > > John > > Create an archive of all your project: look in the 'Project' menu. > Run a project: F5 > > Regards, Hi, I lost a day on my gambas project - but better late than not at all. Anyway you may not find it necessary to open the attached project. All I did was add two textboxes and a editor control to a form. In the first box. Add keypress code for the tab that has Editor1.Text = "hello World". That is what the attached project does. It gives a signal 11 on my computer. SUSE 10.0 gambas 1.9.23 John -------------- next part -------------- A non-text attachment was scrubbed... Name: edTest-0.0.1.tar.tar.gz Type: application/x-tgz Size: 698 bytes Desc: not available URL: From rohnny at ...1248... Wed Jan 4 22:33:25 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Wed, 04 Jan 2006 22:33:25 +0100 Subject: [Gambas-user] mdi/Workspace example Message-ID: <43BC3F25.5090200@...1248...> Hi group. Been looking for mdi/workspace and not found a complete example of this. Took some time and figure out one way of doing this. So for those that want this I have made a small project showing how this can be done. Working with latest gambas2 1.9.23 It can be found at http://forum.stormweb.no look under code snippets Enjoy it Rohnny From comtux at ...626... Wed Jan 4 23:02:05 2006 From: comtux at ...626... (Steve Starr) Date: Wed, 4 Jan 2006 17:02:05 -0500 Subject: [Gambas-user] Shell command help Message-ID: <78f4b7670601041402y4937317w125a7813b0cd236d@...627...> shell"cat /proc/partitions" Output: 8 0 1007616 sda 8 1 1007600 sda1 3 0 33027622 hda 3 1 14651248 hda1 3 2 14651280 hda2 3 3 3719047 hda3 Now i would just want to print the word hda to the screen. Thanks for any help From Karl.Reinl at ...9... Wed Jan 4 23:41:51 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 4 Jan 2006 23:41:51 +0100 Subject: [Gambas-user] Tip of the day still not solved Message-ID: <200601042341.51771.Karl.Reinl@...9...> Salut Benoit, Tip of the day don't find his texts. Still exists in gambas2-1.9.23. May be that happend when gambas2 IDE is started, without the option in 'Tip of the day' to start at startup. Check for a Var or something like that whos not set if you try to get the 'tips' by '?/Tip of the day' Amicalment Charlie From johnhedge at ...626... Thu Jan 5 00:46:54 2006 From: johnhedge at ...626... (john hedge) Date: Thu, 5 Jan 2006 10:46:54 +1100 Subject: [Gambas-user] libqt3-mt or libqt3c102-mt Message-ID: <6e3a096b0601041546g489af974sb13a1af94b51ec89@...627...> Hi, I'm trying to install Gambas but I get the following message: gambas-gb-qt: Depends: libqt3c102-mt (>= 3:3.3.3) but it is not installable Having Googled I find that libqt3c102-mt has been renamed libqt3-mt. Q. Is there a way to install Gambas with libqt3-mt? TIA John -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Jan 5 01:21:31 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 5 Jan 2006 01:21:31 +0100 Subject: [Gambas-user] Editor class error In-Reply-To: <200601040742.42603.jfabiani@...1109...> References: <200601021449.32923.jfabiani@...1109...> <200601031041.09201.gambas@...1...> <200601040742.42603.jfabiani@...1109...> Message-ID: <200601050121.31847.gambas@...1...> On Wednesday 04 January 2006 16:42, johnf wrote: > > Hi, > I lost a day on my gambas project - but better late than not at all. > Anyway you may not find it necessary to open the attached project. All I > did was add two textboxes and a editor control to a form. In the first > box. Add keypress code for the tab that has Editor1.Text = "hello World". > That is what the attached project does. It gives a signal 11 on my > computer. SUSE 10.0 gambas 1.9.23 > John If fixed the bug! Here are the patches... Put them in the ./src/gb.qt/src/ext source directory. Regards, -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gdocument.cpp Type: text/x-c++src Size: 18302 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gdocument.h Type: text/x-c++hdr Size: 4089 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gview.cpp Type: text/x-c++src Size: 21584 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gview.h Type: text/x-c++hdr Size: 4379 bytes Desc: not available URL: From jfabiani at ...1109... Thu Jan 5 02:37:41 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 4 Jan 2006 17:37:41 -0800 Subject: [Gambas-user] Editor class error In-Reply-To: <200601050121.31847.gambas@...1...> References: <200601021449.32923.jfabiani@...1109...> <200601040742.42603.jfabiani@...1109...> <200601050121.31847.gambas@...1...> Message-ID: <200601041737.41914.jfabiani@...1109...> On Wednesday 04 January 2006 16:21, Benoit Minisini wrote: > On Wednesday 04 January 2006 16:42, johnf wrote: > > Hi, > > I lost a day on my gambas project - but better late than not at all. > > Anyway you may not find it necessary to open the attached project. All I > > did was add two textboxes and a editor control to a form. In the first > > box. Add keypress code for the tab that has Editor1.Text = "hello > > World". That is what the attached project does. It gives a signal 11 on > > my computer. SUSE 10.0 gambas 1.9.23 > > John > > If fixed the bug! Here are the patches... Put them in the > ./src/gb.qt/src/ext source directory. > > Regards, thanks for the quick response. Are these patches in the current 1.9.23 download? John From karl at ...1303... Thu Jan 5 03:16:59 2006 From: karl at ...1303... (Karl Martindale) Date: Thu, 05 Jan 2006 13:16:59 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601032050.11377.karl@...1303...> References: <43BA750D.26074.103E042@...40...> <200601031023.52625.gambas@...1...> <200601032050.11377.karl@...1303...> Message-ID: <43BC819B.4060107@...1303...> Hi Guys, I've compiled and installed gambas v1.9.23 on a Slackware Linux 10.0 box. A project that runs on another machine fails with the error: Cannot find driver for database: postgresql When I compiled gambas the postgresql driver was compiled and wasn't listed as 'disabled' after ./configure This install will successfully talk to a MySQL host running on the same machine. The postgres driver appears to be in the lib directory: root at ...56...:/usr/local/lib/gambas2# ls -l gb.db.*sql* -rwxr-xr-x 1 root root 905 2006-01-05 01:29 gb.db.mysql.la* lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so -> gb.db.mysql.so.0.0.0* lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so.0 -> gb.db.mysql.so.0.0.0* -rwxr-xr-x 1 root root 74376 2006-01-05 01:29 gb.db.mysql.so.0.0.0* -rwxr-xr-x 1 root root 879 2006-01-05 01:29 gb.db.postgresql.la* lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so -> gb.db.postgresql.so.0.0.0* lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so.0 -> gb.db.postgresql.so.0.0.0* -rwxr-xr-x 1 root root 73938 2006-01-05 01:29 gb.db.postgresql.so.0.0.0* I have logged on to that database using the same credentials as in the project using the CLI program psql. Does anyone have a suggestion as to what I'm doing wrong? Thanks in advance, Karl. From jfabiani at ...1109... Thu Jan 5 05:34:42 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 4 Jan 2006 20:34:42 -0800 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <43BC819B.4060107@...1303...> References: <43BA750D.26074.103E042@...40...> <200601032050.11377.karl@...1303...> <43BC819B.4060107@...1303...> Message-ID: <200601042034.43021.jfabiani@...1109...> On Wednesday 04 January 2006 18:16, Karl Martindale wrote: > Hi Guys, > > I've compiled and installed gambas v1.9.23 on a Slackware Linux 10.0 box. > A project that runs on another machine fails with the error: Cannot find > driver for database: postgresql > > When I compiled gambas the postgresql driver was compiled and wasn't listed > as 'disabled' after ./configure > > This install will successfully talk to a MySQL host running on the same > machine. The postgres driver appears to be in the lib directory: > > root at ...56...:/usr/local/lib/gambas2# ls -l gb.db.*sql* > -rwxr-xr-x 1 root root 905 2006-01-05 01:29 gb.db.mysql.la* > lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so -> > gb.db.mysql.so.0.0.0* > lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so.0 -> > gb.db.mysql.so.0.0.0* > -rwxr-xr-x 1 root root 74376 2006-01-05 01:29 gb.db.mysql.so.0.0.0* > -rwxr-xr-x 1 root root 879 2006-01-05 01:29 gb.db.postgresql.la* > lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so -> > gb.db.postgresql.so.0.0.0* > lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so.0 -> > gb.db.postgresql.so.0.0.0* > -rwxr-xr-x 1 root root 73938 2006-01-05 01:29 gb.db.postgresql.so.0.0.0* > > I have logged on to that database using the same credentials as in the > project using the CLI program psql. > > Does anyone have a suggestion as to what I'm doing wrong? > > Thanks in advance, > Karl. I'm not sure but can you create a small project on the new computer and make sure the db property is checked - then check for access? John From karl at ...1303... Thu Jan 5 05:56:17 2006 From: karl at ...1303... (Karl Martindale) Date: Thu, 05 Jan 2006 15:56:17 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601042034.43021.jfabiani@...1109...> References: <43BA750D.26074.103E042@...40...> <200601032050.11377.karl@...1303...> <43BC819B.4060107@...1303...> <200601042034.43021.jfabiani@...1109...> Message-ID: <43BCA6F1.1080106@...1303...> johnf wrote: > On Wednesday 04 January 2006 18:16, Karl Martindale wrote: > >>Hi Guys, >> >>I've compiled and installed gambas v1.9.23 on a Slackware Linux 10.0 box. >>A project that runs on another machine fails with the error: Cannot find >>driver for database: postgresql >> >>When I compiled gambas the postgresql driver was compiled and wasn't listed >>as 'disabled' after ./configure >> >>This install will successfully talk to a MySQL host running on the same >>machine. The postgres driver appears to be in the lib directory: >> >>root at ...56...:/usr/local/lib/gambas2# ls -l gb.db.*sql* >>-rwxr-xr-x 1 root root 905 2006-01-05 01:29 gb.db.mysql.la* >>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so -> >>gb.db.mysql.so.0.0.0* >>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so.0 -> >>gb.db.mysql.so.0.0.0* >>-rwxr-xr-x 1 root root 74376 2006-01-05 01:29 gb.db.mysql.so.0.0.0* >>-rwxr-xr-x 1 root root 879 2006-01-05 01:29 gb.db.postgresql.la* >>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so -> >>gb.db.postgresql.so.0.0.0* >>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so.0 -> >>gb.db.postgresql.so.0.0.0* >>-rwxr-xr-x 1 root root 73938 2006-01-05 01:29 gb.db.postgresql.so.0.0.0* >> >>I have logged on to that database using the same credentials as in the >>project using the CLI program psql. >> >>Does anyone have a suggestion as to what I'm doing wrong? >> >>Thanks in advance, >>Karl. > > > I'm not sure but can you create a small project on the new computer and make > sure the db property is checked - then check for access? > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > This fairly minimal project behaves in the same way: PUBLIC SUB Form_Open() DIM conn AS NEW connection DIM connected AS Boolean WITH conn .Type = "postgresql" .Host = "localhost" .Login = "karl" .Name = "growl" '.Password = "karl" END WITH TRY conn.Open IF ERROR THEN Message("Failed to open DB connection." & Error.Text) connected = FALSE ELSE connected = TRUE END IF END From jfabiani at ...1109... Thu Jan 5 06:20:16 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 4 Jan 2006 21:20:16 -0800 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <43BCA6F1.1080106@...1303...> References: <43BA750D.26074.103E042@...40...> <200601042034.43021.jfabiani@...1109...> <43BCA6F1.1080106@...1303...> Message-ID: <200601042120.16268.jfabiani@...1109...> On Wednesday 04 January 2006 20:56, Karl Martindale wrote: > johnf wrote: > > On Wednesday 04 January 2006 18:16, Karl Martindale wrote: > >>Hi Guys, > >> > >>I've compiled and installed gambas v1.9.23 on a Slackware Linux 10.0 box. > >>A project that runs on another machine fails with the error: Cannot find > >>driver for database: postgresql > >> > >>When I compiled gambas the postgresql driver was compiled and wasn't > >> listed as 'disabled' after ./configure > >> > >>This install will successfully talk to a MySQL host running on the same > >>machine. The postgres driver appears to be in the lib directory: > >> > >>root at ...56...:/usr/local/lib/gambas2# ls -l gb.db.*sql* > >>-rwxr-xr-x 1 root root 905 2006-01-05 01:29 gb.db.mysql.la* > >>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so -> > >>gb.db.mysql.so.0.0.0* > >>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so.0 -> > >>gb.db.mysql.so.0.0.0* > >>-rwxr-xr-x 1 root root 74376 2006-01-05 01:29 gb.db.mysql.so.0.0.0* > >>-rwxr-xr-x 1 root root 879 2006-01-05 01:29 gb.db.postgresql.la* > >>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so -> > >>gb.db.postgresql.so.0.0.0* > >>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so.0 -> > >>gb.db.postgresql.so.0.0.0* > >>-rwxr-xr-x 1 root root 73938 2006-01-05 01:29 gb.db.postgresql.so.0.0.0* > >> > >>I have logged on to that database using the same credentials as in the > >>project using the CLI program psql. > >> > >>Does anyone have a suggestion as to what I'm doing wrong? > >> > >>Thanks in advance, > >>Karl. > > > > I'm not sure but can you create a small project on the new computer and > > make sure the db property is checked - then check for access? > > John > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > This fairly minimal project behaves in the same way: > > PUBLIC SUB Form_Open() > DIM conn AS NEW connection > DIM connected AS Boolean > > WITH conn > .Type = "postgresql" > .Host = "localhost" > .Login = "karl" > .Name = "growl" > '.Password = "karl" > END WITH > > TRY conn.Open > IF ERROR THEN > Message("Failed to open DB connection." & Error.Text) > connected = FALSE > ELSE > connected = TRUE > END IF > END OK just to be sure you enabled the 'DB' property - right? Does the message fire in your example? "Failed to open DB connection" ? Do you have pgAdminIII on the system? You could use it to insure that you have a running postmaster and you are allowed access to the localmachine. Also try "ps -efa | grep postmaster" to see if your postgres is running as root. What happens from the example database? Can you get a connection and run a simple SQL statement from the example? John From jfabiani at ...1109... Thu Jan 5 06:23:42 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 4 Jan 2006 21:23:42 -0800 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601042120.16268.jfabiani@...1109...> References: <43BA750D.26074.103E042@...40...> <43BCA6F1.1080106@...1303...> <200601042120.16268.jfabiani@...1109...> Message-ID: <200601042123.42383.jfabiani@...1109...> On Wednesday 04 January 2006 21:20, johnf wrote: > On Wednesday 04 January 2006 20:56, Karl Martindale wrote: > > johnf wrote: > > > On Wednesday 04 January 2006 18:16, Karl Martindale wrote: > > >>Hi Guys, > > >> > > >>I've compiled and installed gambas v1.9.23 on a Slackware Linux 10.0 > > >> box. A project that runs on another machine fails with the error: > > >> Cannot find driver for database: postgresql > > >> > > >>When I compiled gambas the postgresql driver was compiled and wasn't > > >> listed as 'disabled' after ./configure > > >> > > >>This install will successfully talk to a MySQL host running on the same > > >>machine. The postgres driver appears to be in the lib directory: > > >> > > >>root at ...56...:/usr/local/lib/gambas2# ls -l gb.db.*sql* > > >>-rwxr-xr-x 1 root root 905 2006-01-05 01:29 gb.db.mysql.la* > > >>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so -> > > >>gb.db.mysql.so.0.0.0* > > >>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so.0 -> > > >>gb.db.mysql.so.0.0.0* > > >>-rwxr-xr-x 1 root root 74376 2006-01-05 01:29 gb.db.mysql.so.0.0.0* > > >>-rwxr-xr-x 1 root root 879 2006-01-05 01:29 gb.db.postgresql.la* > > >>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so -> > > >>gb.db.postgresql.so.0.0.0* > > >>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so.0 -> > > >>gb.db.postgresql.so.0.0.0* > > >>-rwxr-xr-x 1 root root 73938 2006-01-05 01:29 > > >> gb.db.postgresql.so.0.0.0* > > >> > > >>I have logged on to that database using the same credentials as in the > > >>project using the CLI program psql. > > >> > > >>Does anyone have a suggestion as to what I'm doing wrong? > > >> > > >>Thanks in advance, > > >>Karl. > > > > > > I'm not sure but can you create a small project on the new computer and > > > make sure the db property is checked - then check for access? > > > John > > > > This fairly minimal project behaves in the same way: > > > > PUBLIC SUB Form_Open() > > DIM conn AS NEW connection > > DIM connected AS Boolean > > > > WITH conn > > .Type = "postgresql" > > .Host = "localhost" > > .Login = "karl" > > .Name = "growl" > > '.Password = "karl" > > END WITH > > > > TRY conn.Open > > IF ERROR THEN > > Message("Failed to open DB connection." & Error.Text) > > connected = FALSE > > ELSE > > connected = TRUE > > END IF > > END > > OK just to be sure you enabled the 'DB' property - right? > > Does the message fire in your example? "Failed to open DB connection" ? > > Do you have pgAdminIII on the system? You could use it to insure that you > have a running postmaster and you are allowed access to the localmachine. > Also try "ps -efa | grep postmaster" to see if your postgres is running as > root. > > What happens from the example database? Can you get a connection and run a > simple SQL statement from the example? > John You did install the postgres development package on the new computer? John From karl at ...1303... Thu Jan 5 06:42:23 2006 From: karl at ...1303... (Karl Martindale) Date: Thu, 05 Jan 2006 16:42:23 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601042120.16268.jfabiani@...1109...> References: <43BA750D.26074.103E042@...40...> <200601042034.43021.jfabiani@...1109...> <43BCA6F1.1080106@...1303...> <200601042120.16268.jfabiani@...1109...> Message-ID: <43BCB1BF.2030400@...1303...> johnf wrote: > On Wednesday 04 January 2006 20:56, Karl Martindale wrote: > >>johnf wrote: >> >>>On Wednesday 04 January 2006 18:16, Karl Martindale wrote: >>> >>>>Hi Guys, >>>> >>>>I've compiled and installed gambas v1.9.23 on a Slackware Linux 10.0 box. >>>>A project that runs on another machine fails with the error: Cannot find >>>>driver for database: postgresql >>>> >>>>When I compiled gambas the postgresql driver was compiled and wasn't >>>>listed as 'disabled' after ./configure >>>> >>>>This install will successfully talk to a MySQL host running on the same >>>>machine. The postgres driver appears to be in the lib directory: >>>> >>>>root at ...56...:/usr/local/lib/gambas2# ls -l gb.db.*sql* >>>>-rwxr-xr-x 1 root root 905 2006-01-05 01:29 gb.db.mysql.la* >>>>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so -> >>>>gb.db.mysql.so.0.0.0* >>>>lrwxrwxrwx 1 root root 20 2006-01-05 01:29 gb.db.mysql.so.0 -> >>>>gb.db.mysql.so.0.0.0* >>>>-rwxr-xr-x 1 root root 74376 2006-01-05 01:29 gb.db.mysql.so.0.0.0* >>>>-rwxr-xr-x 1 root root 879 2006-01-05 01:29 gb.db.postgresql.la* >>>>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so -> >>>>gb.db.postgresql.so.0.0.0* >>>>lrwxrwxrwx 1 root root 25 2006-01-05 01:29 gb.db.postgresql.so.0 -> >>>>gb.db.postgresql.so.0.0.0* >>>>-rwxr-xr-x 1 root root 73938 2006-01-05 01:29 gb.db.postgresql.so.0.0.0* >>>> >>>>I have logged on to that database using the same credentials as in the >>>>project using the CLI program psql. >>>> >>>>Does anyone have a suggestion as to what I'm doing wrong? >>>> >>>>Thanks in advance, >>>>Karl. >>> >>>I'm not sure but can you create a small project on the new computer and >>>make sure the db property is checked - then check for access? >>>John >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>>files for problems? Stop! Download the new AJAX search engine that >>>makes searching your log files as easy as surfing the web. DOWNLOAD >>>SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>>_______________________________________________ >>>Gambas-user mailing list >>>Gambas-user at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>This fairly minimal project behaves in the same way: >> >>PUBLIC SUB Form_Open() >>DIM conn AS NEW connection >>DIM connected AS Boolean >> >>WITH conn >> .Type = "postgresql" >> .Host = "localhost" >> .Login = "karl" >> .Name = "growl" >> '.Password = "karl" >> END WITH >> >> TRY conn.Open >> IF ERROR THEN >> Message("Failed to open DB connection." & Error.Text) >> connected = FALSE >> ELSE >> connected = TRUE >> END IF >>END > > > OK just to be sure you enabled the 'DB' property - right? > > Does the message fire in your example? "Failed to open DB connection" ? > > Do you have pgAdminIII on the system? You could use it to insure that you > have a running postmaster and you are allowed access to the localmachine. > Also try "ps -efa | grep postmaster" to see if your postgres is running as > root. > > What happens from the example database? Can you get a connection and run a > simple SQL statement from the example? > John The message "Failed to open DB connection" does fire, it prepends the "Cannot find driver for database: postgresql" message. This box had a postgres that was compiled from source and I pointed the gambas configure at the include directory in the postgres tree. ps -efa | grep postmaster postgres 1852 1 0 Jan02 ? 00:00:00 /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data The DB property is checked in project properties. I also get the same message from the gambas database manager when trying to connect. I have pgAdminIII installed on another box on the same network and it successfully makes a connection. The postgres server has been in use for a little over a year now (involved in a PHP project). Karl. From jfabiani at ...1109... Thu Jan 5 06:56:52 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 4 Jan 2006 21:56:52 -0800 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <43BCB1BF.2030400@...1303...> References: <43BA750D.26074.103E042@...40...> <200601042120.16268.jfabiani@...1109...> <43BCB1BF.2030400@...1303...> Message-ID: <200601042156.52450.jfabiani@...1109...> On Wednesday 04 January 2006 21:42, Karl Martindale wrote: > > The message "Failed to open DB connection" does fire, it prepends the > "Cannot find driver for database: postgresql" message. > > This box had a postgres that was compiled from source and I pointed the > gambas configure at the include directory in the postgres tree. > > ps -efa | grep postmaster > postgres 1852 1 0 Jan02 ? 00:00:00 > /usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data > > The DB property is checked in project properties. > > I also get the same message from the gambas database manager when trying to > connect. > > I have pgAdminIII installed on another box on the same network and it > successfully makes a connection. The postgres server has been in use for a > little over a year now (involved in a PHP project). > > Karl. Any chance the localhost has been turned off in the pg.conf? I use postgres daily with Gambas for the last two weeks (when I really started programming in Gambas) and it works perfectly. Just to insure I have it right you are attempting to connect to a postgres database on the same computer that postgres is running (and this is 'THE' new computer). You might want to try using the IP address of the postgres server. I once saw a box that did not accept 'localhost' but accepted the IP address (never did figure that out). When I compiled gambas 1.9.23 I did not have adjust anything (SUSE 10.0, worked with 9.3 too) to get postgres working. John From karl at ...1303... Thu Jan 5 07:56:41 2006 From: karl at ...1303... (Karl Martindale) Date: Thu, 05 Jan 2006 17:56:41 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601042156.52450.jfabiani@...1109...> References: <43BA750D.26074.103E042@...40...> <200601042120.16268.jfabiani@...1109...> <43BCB1BF.2030400@...1303...> <200601042156.52450.jfabiani@...1109...> Message-ID: <43BCC329.8030007@...1303...> johnf wrote: > On Wednesday 04 January 2006 21:42, Karl Martindale wrote: > > >>The message "Failed to open DB connection" does fire, it prepends the >>"Cannot find driver for database: postgresql" message. >> >>This box had a postgres that was compiled from source and I pointed the >>gambas configure at the include directory in the postgres tree. >> >> ps -efa | grep postmaster >>postgres 1852 1 0 Jan02 ? 00:00:00 >>/usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data >> >>The DB property is checked in project properties. >> >>I also get the same message from the gambas database manager when trying to >>connect. >> >>I have pgAdminIII installed on another box on the same network and it >>successfully makes a connection. The postgres server has been in use for a >>little over a year now (involved in a PHP project). >> >>Karl. > > Any chance the localhost has been turned off in the pg.conf? I use postgres > daily with Gambas for the last two weeks (when I really started programming > in Gambas) and it works perfectly. > > Just to insure I have it right you are attempting to connect to a postgres > database on the same computer that postgres is running (and this is 'THE' new > computer). You might want to try using the IP address of the postgres > server. I once saw a box that did not accept 'localhost' but accepted the IP > address (never did figure that out). > > When I compiled gambas 1.9.23 I did not have adjust anything (SUSE 10.0, > worked with 9.3 too) to get postgres working. > > John > I can make local connections using psql and php. The same computer is running the postmaster, apache, php, gambas and even the MySQL server I used to see if any database connectivity worked from gambas (MySQL did work). I can't see anything in postgresql.conf that would prevent local connections and pg_hba.conf is set up so it'll accept connections from anyone, anywhere. The only thing that I can think of is that maybe the driver didn't find everything it needed in the postgres source tree. Surely it wouldn't have compiled and installed (make install) if this was the case? I'm at a loss here... Karl. From karl at ...1303... Thu Jan 5 07:58:31 2006 From: karl at ...1303... (Karl Martindale) Date: Thu, 05 Jan 2006 17:58:31 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601042156.52450.jfabiani@...1109...> References: <43BA750D.26074.103E042@...40...> <200601042120.16268.jfabiani@...1109...> <43BCB1BF.2030400@...1303...> <200601042156.52450.jfabiani@...1109...> Message-ID: <43BCC397.50109@...1303...> johnf wrote: > On Wednesday 04 January 2006 21:42, Karl Martindale wrote: > > >>The message "Failed to open DB connection" does fire, it prepends the >>"Cannot find driver for database: postgresql" message. >> >>This box had a postgres that was compiled from source and I pointed the >>gambas configure at the include directory in the postgres tree. >> >> ps -efa | grep postmaster >>postgres 1852 1 0 Jan02 ? 00:00:00 >>/usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data >> >>The DB property is checked in project properties. >> >>I also get the same message from the gambas database manager when trying to >>connect. >> >>I have pgAdminIII installed on another box on the same network and it >>successfully makes a connection. The postgres server has been in use for a >>little over a year now (involved in a PHP project). >> >>Karl. > > Any chance the localhost has been turned off in the pg.conf? I use postgres > daily with Gambas for the last two weeks (when I really started programming > in Gambas) and it works perfectly. > > Just to insure I have it right you are attempting to connect to a postgres > database on the same computer that postgres is running (and this is 'THE' new > computer). You might want to try using the IP address of the postgres > server. I once saw a box that did not accept 'localhost' but accepted the IP > address (never did figure that out). > > When I compiled gambas 1.9.23 I did not have adjust anything (SUSE 10.0, > worked with 9.3 too) to get postgres working. > > John One other thing I've noticed is that the gambas database manager will pick up both the MySQL and postgres servers when you do a "Scan database servers" from the menu. It just won't connect. Karl. From gambas at ...1... Thu Jan 5 07:58:58 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 5 Jan 2006 07:58:58 +0100 Subject: [Gambas-user] Editor class error In-Reply-To: <200601041737.41914.jfabiani@...1109...> References: <200601021449.32923.jfabiani@...1109...> <200601050121.31847.gambas@...1...> <200601041737.41914.jfabiani@...1109...> Message-ID: <200601050758.58446.gambas@...1...> On Thursday 05 January 2006 02:37, johnf wrote: > On Wednesday 04 January 2006 16:21, Benoit Minisini wrote: > > On Wednesday 04 January 2006 16:42, johnf wrote: > > > Hi, > > > I lost a day on my gambas project - but better late than not at all. > > > Anyway you may not find it necessary to open the attached project. All > > > I did was add two textboxes and a editor control to a form. In the > > > first box. Add keypress code for the tab that has Editor1.Text = > > > "hello World". That is what the attached project does. It gives a > > > signal 11 on my computer. SUSE 10.0 gambas 1.9.23 > > > John > > > > If fixed the bug! Here are the patches... Put them in the > > ./src/gb.qt/src/ext source directory. > > > > Regards, > > thanks for the quick response. Are these patches in the current 1.9.23 > download? > > John > Yes. -- Benoit Minisini From gambas at ...1... Thu Jan 5 08:05:59 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 5 Jan 2006 08:05:59 +0100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <43BCA6F1.1080106@...1303...> References: <43BA750D.26074.103E042@...40...> <200601042034.43021.jfabiani@...1109...> <43BCA6F1.1080106@...1303...> Message-ID: <200601050805.59266.gambas@...1...> On Thursday 05 January 2006 05:56, Karl Martindale wrote: > > This fairly minimal project behaves in the same way: > > PUBLIC SUB Form_Open() > DIM conn AS NEW connection > DIM connected AS Boolean > > WITH conn > .Type = "postgresql" > .Host = "localhost" > .Login = "karl" > .Name = "growl" > '.Password = "karl" > END WITH > > TRY conn.Open > IF ERROR THEN > Message("Failed to open DB connection." & Error.Text) > connected = FALSE > ELSE > connected = TRUE > END IF > END > > Do you have only one installation of gambas2 on your machine? Can you send me the result of 'strace gbx2' when running this minimal project? -- Benoit Minisini From ronstk at ...239... Thu Jan 5 08:15:28 2006 From: ronstk at ...239... (ron) Date: Thu, 5 Jan 2006 08:15:28 +0100 Subject: [Gambas-user] libqt3-mt or libqt3c102-mt In-Reply-To: <6e3a096b0601041546g489af974sb13a1af94b51ec89@...627...> References: <6e3a096b0601041546g489af974sb13a1af94b51ec89@...627...> Message-ID: <200601050815.29614.ronstk@...239...> On Thursday 05 January 2006 00:46, john hedge wrote: > Hi, > > I'm trying to install Gambas but I get the following message: > > gambas-gb-qt: Depends: libqt3c102-mt (>= 3:3.3.3) but it is not installable > > Having Googled I find that libqt3c102-mt has been renamed libqt3-mt. > > Q. Is there a way to install Gambas with libqt3-mt? > > TIA > > John > Maybe a softlink named 'libqt3c102-mt' pointing to 'libqt3-mt' can help. Had same problem with /user/lib/qt/* <> /user/lib/qt3/* on suse 8.2 and this resolved the problem I had. Ron From garretthylltun at ...626... Thu Jan 5 10:26:43 2006 From: garretthylltun at ...626... (Garrett Hylltun) Date: Thu, 5 Jan 2006 01:26:43 -0800 Subject: [Gambas-user] Any OSX distro ready yet? Message-ID: Love Gambas so much from using it on Linux, wondered if anyone has succeeded in compiling it on OSX yet, and if so, is there a download link available yet? Thanks in advance, -Garrett From mandrakeron at ...43... Thu Jan 5 13:08:23 2006 From: mandrakeron at ...43... (Ron Gottstein) Date: Thu, 5 Jan 2006 04:08:23 -0800 (PST) Subject: [Gambas-user] Database error Message-ID: <20060105120823.41509.qmail@...1306...> Hello All, I amd using sqlite and sqlite3. I've been trying to write some code to do simple database operations. I can create the database and its table, however, i cant seem to insert any data into the table. I keep getting and error "Cannot Create Record: Abort Due To Constraint Violation". Please advise. Below is the code to insert the data. Thank you, Ron Gottstein ' Gambas class file PUBLIC $hConn AS Connection PUBLIC hTable AS Table PUBLIC SUB btnCancel_Click() DIM rTest AS Result DIM sQuery AS String DIM iParam AS Integer iParam = 0 sQuery = "select * from Addresses where id = " INC Application.Busy $hConn = NEW Connection WITH $hConn .Type = "sqlite" .Host = user.Home & "/gbAddressBook" ' END WITH $hConn.Name = "AddressBook" $hConn.Open $hConn.Begin rTest = $hConn.Create("Addresses") rTest!First_Name = tbFirstName.Text rTest Last_Name = tbLastName.Text rTest Street = tbStreet.Text rTest City = tbCity.Text rTest State = tbState.Text rTest Zip_Code = tbZipCode.Text rTest Home_Phone = tbHomePhone.Text rTest Work_Phone = tbWorkPhone.Text rTest Cell_Phone = tbCellPhone.Text rTest Email = tbEmail.Text rTest Birthday = tbBirthday.Text rTest.Update $hConn.Commit END __________________________________________ Yahoo! DSL ? Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com From liutauras at ...1236... Thu Jan 5 13:19:29 2006 From: liutauras at ...1236... (Liutauras Adomaitis) Date: Thu, 5 Jan 2006 14:19:29 +0200 Subject: [Gambas-user] mandriva 2006 packages of 1.0.13 and 1.9.23 In-Reply-To: <200601030227.25080.sourceforge-raindog2@...94...> References: <200601030227.25080.sourceforge-raindog2@...94...> Message-ID: <200601051419.29581.liutauras@...1236...> On Tuesday 03 January 2006 09:27, Rob Kudla wrote: > OK, I finally got current packages built. I haven't made a blog > entry yet, but pick them up here: > > http://www.kudla.org/rpm/2006.0/ > Yesterday I installed these RPMS, but starting Gambas2 shows me that gb.xml.libxml are missing. What should I install more? Liutauras From jfabiani at ...1109... Thu Jan 5 16:57:06 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 5 Jan 2006 07:57:06 -0800 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <43BCC397.50109@...1303...> References: <43BA750D.26074.103E042@...40...> <200601042156.52450.jfabiani@...1109...> <43BCC397.50109@...1303...> Message-ID: <200601050757.06826.jfabiani@...1109...> On Wednesday 04 January 2006 22:58, Karl Martindale wrote: > johnf wrote: > > On Wednesday 04 January 2006 21:42, Karl Martindale wrote: > >>The message "Failed to open DB connection" does fire, it prepends the > >>"Cannot find driver for database: postgresql" message. > >> > >>This box had a postgres that was compiled from source and I pointed the > >>gambas configure at the include directory in the postgres tree. > >> > >> ps -efa | grep postmaster > >>postgres 1852 1 0 Jan02 ? 00:00:00 > >>/usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data > >> > >>The DB property is checked in project properties. > >> > >>I also get the same message from the gambas database manager when trying > >> to connect. > >> > >>I have pgAdminIII installed on another box on the same network and it > >>successfully makes a connection. The postgres server has been in use for > >> a little over a year now (involved in a PHP project). > >> > >>Karl. > > > > Any chance the localhost has been turned off in the pg.conf? I use > > postgres daily with Gambas for the last two weeks (when I really started > > programming in Gambas) and it works perfectly. > > > > Just to insure I have it right you are attempting to connect to a > > postgres database on the same computer that postgres is running (and this > > is 'THE' new computer). You might want to try using the IP address of > > the postgres server. I once saw a box that did not accept 'localhost' > > but accepted the IP address (never did figure that out). > > > > When I compiled gambas 1.9.23 I did not have adjust anything (SUSE 10.0, > > worked with 9.3 too) to get postgres working. > > > > John > > One other thing I've noticed is that the gambas database manager will pick > up both the MySQL and postgres servers when you do a "Scan database > servers" from the menu. It just won't connect. > > Karl. Hey Karl I think we forgot to ask the obivious - what version of Postgres are you running? I think 1.9.23 needs 7.4 or better - not sure about that. Maybe that version limitation has something to with a different lang. John John From gambasfr at ...11... Thu Jan 5 19:32:56 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Thu, 5 Jan 2006 19:32:56 +0100 Subject: [Gambas-user] Database error In-Reply-To: <20060105120823.41509.qmail@...1306...> References: <20060105120823.41509.qmail@...1306...> Message-ID: <200601051932.56452.gambasfr@...11...> Le Jeudi 5 Janvier 2006 13:08, Ron Gottstein a ?crit?: > Hello All, > > I amd using sqlite and sqlite3. > I've been trying to write some code to do simple > database operations. I can create the database and > its table, however, i cant seem to insert any data > into the table. I keep getting and error "Cannot > Create Record: Abort Due To Constraint Violation". > Please advise. Below is the code to insert the data. > > Thank you, > Ron Gottstein > > > ' Gambas class file > PUBLIC $hConn AS Connection > PUBLIC hTable AS Table > PUBLIC SUB btnCancel_Click() > > DIM rTest AS Result > DIM sQuery AS String > DIM iParam AS Integer > iParam = 0 > sQuery = "select * from Addresses where id = " > INC Application.Busy > $hConn = NEW Connection > > WITH $hConn > .Type = "sqlite" > .Host = user.Home & "/gbAddressBook" > ' > END WITH > $hConn.Name = "AddressBook" > $hConn.Open > $hConn.Begin > > rTest = $hConn.Create("Addresses") > rTest!First_Name = tbFirstName.Text > rTest Last_Name = tbLastName.Text > rTest Street = tbStreet.Text > rTest City = tbCity.Text > rTest State = tbState.Text > rTest Zip_Code = tbZipCode.Text > rTest Home_Phone = tbHomePhone.Text > rTest Work_Phone = tbWorkPhone.Text > rTest Cell_Phone = tbCellPhone.Text > rTest Email = tbEmail.Text > rTest Birthday = tbBirthday.Text > rTest.Update > $hConn.Commit > END > > > > try to remove commit... From ronstk at ...239... Thu Jan 5 19:46:58 2006 From: ronstk at ...239... (ron) Date: Thu, 5 Jan 2006 19:46:58 +0100 Subject: [Gambas-user] Database error In-Reply-To: <200601051932.56452.gambasfr@...11...> References: <20060105120823.41509.qmail@...1306...> <200601051932.56452.gambasfr@...11...> Message-ID: <200601051946.59674.ronstk@...239...> On Thursday 05 January 2006 19:32, Fabien Bodard wrote: > Le Jeudi 5 Janvier 2006 13:08, Ron Gottstein a ?crit?: > > Hello All, > > > > I amd using sqlite and sqlite3. > > I've been trying to write some code to do simple > > database operations. I can create the database and > > its table, however, i cant seem to insert any data > > into the table. I keep getting and error "Cannot > > Create Record: Abort Due To Constraint Violation". > > Please advise. Below is the code to insert the data. > > > > Thank you, > > Ron Gottstein ---8<--- > > $hConn.Open > > $hConn.Begin > > > > rTest = $hConn.Create("Addresses") > > rTest!First_Name = tbFirstName.Text > > rTest Last_Name = tbLastName.Text > > rTest Street = tbStreet.Text > > rTest City = tbCity.Text > > rTest State = tbState.Text > > rTest Zip_Code = tbZipCode.Text > > rTest Home_Phone = tbHomePhone.Text > > rTest Work_Phone = tbWorkPhone.Text > > rTest Cell_Phone = tbCellPhone.Text > > rTest Email = tbEmail.Text > > rTest Birthday = tbBirthday.Text > > rTest.Update > > $hConn.Commit > > END > > > > > > > > > > try to remove commit... > When I Create a table I need to set the field types, her you are direct putting data in undefinied field if you do: rTest = $hConn.Create("Addresses") Create table does not have any field to put data in. Or does sqllite auto-create fields with the wanted field names and types ? From sourceforge-raindog2 at ...94... Thu Jan 5 22:26:56 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 5 Jan 2006 16:26:56 -0500 Subject: [Gambas-user] mandriva 2006 packages of 1.0.13 and 1.9.23 In-Reply-To: <200601051419.29581.liutauras@...1236...> References: <200601030227.25080.sourceforge-raindog2@...94...> <200601051419.29581.liutauras@...1236...> Message-ID: <200601051626.56200.sourceforge-raindog2@...94...> On Thu January 5 2006 07:19, Liutauras Adomaitis wrote: > > http://www.kudla.org/rpm/2006.0/ > > Yesterday I installed these RPMS, but starting Gambas2 shows > me that gb.xml.libxml are missing. What should I install more? It must be that my spec file doesn't include gb.xml.libxml. I'll try to rebuild with libxml support and repost, but today I'm busy with work. Rob From Karl.Reinl at ...9... Thu Jan 5 22:52:15 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 5 Jan 2006 22:52:15 +0100 Subject: [Gambas-user] Whats that ? Message-ID: <200601052252.15794.Karl.Reinl@...9...> Salut Benoit, comming up with a strange thing. Please see the screenshot. For changing a Public Sub, I made a copy off the existing, by renaming the original SaveTV to SaveTV_OLD. when Iooked for it, to find in File (left mousclick/goTo) I found 2 'SaveTV', one with a sub entry OLD . ???????????? Not normal...OR? Sorry had to make a hole screen to show it. If you need more infos, then it was in gambas-1.0.13 let me know. I hope it pass by size. Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: WhatsThat_01.png Type: image/png Size: 136062 bytes Desc: not available URL: From dcamposf at ...626... Thu Jan 5 23:12:16 2006 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 5 Jan 2006 23:12:16 +0100 Subject: [Gambas-user] Whats that ? In-Reply-To: <200601052252.15794.Karl.Reinl@...9...> References: <200601052252.15794.Karl.Reinl@...9...> Message-ID: <7259b5ae0601051412j61c1f463g@...627...> This is normal, this is the way the Gambas IDE recognizes the events, that always have the name "class_event" Regards, D. Campos 2006/1/5, Charlie Reinl : > > Salut Benoit, > > comming up with a strange thing. > > Please see the screenshot. > > For changing a Public Sub, I made a copy off the existing, by renaming the > original SaveTV to SaveTV_OLD. > when Iooked for it, to find in File (left mousclick/goTo) I found 2 > 'SaveTV', > one with a sub entry OLD . ???????????? > > Not normal...OR? > > Sorry had to make a hole screen to show it. > > If you need more infos, then it was in gambas-1.0.13 let me know. > I hope it pass by size. > > Amicalment > Charlie > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Jan 5 23:13:34 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 5 Jan 2006 23:13:34 +0100 Subject: [Gambas-user] Whats that ? In-Reply-To: <200601052252.15794.Karl.Reinl@...9...> References: <200601052252.15794.Karl.Reinl@...9...> Message-ID: <200601052313.35051.gambas@...1...> On Thursday 05 January 2006 22:52, Charlie Reinl wrote: > Salut Benoit, > > comming up with a strange thing. > > Please see the screenshot. > > For changing a Public Sub, I made a copy off the existing, by renaming the > original SaveTV to SaveTV_OLD. > when Iooked for it, to find in File (left mousclick/goTo) I found 2 > 'SaveTV', one with a sub entry OLD . ???????????? > > Not normal...OR? > > Sorry had to make a hole screen to show it. > > If you need more infos, then it was in gambas-1.0.13 let me know. > I hope it pass by size. > > Amicalment > Charlie '_' is the character the IDE uses for detecting event handlers. That's all! Of course you can use this character in any function name, but it is better using it only in event handlers. Regards, -- Benoit Minisini From johnhedge at ...626... Fri Jan 6 00:00:25 2006 From: johnhedge at ...626... (john hedge) Date: Fri, 6 Jan 2006 10:00:25 +1100 Subject: [Gambas-user] libqt3-mt or libqt3c102-mt In-Reply-To: <200601050815.29614.ronstk@...239...> References: <6e3a096b0601041546g489af974sb13a1af94b51ec89@...627...> <200601050815.29614.ronstk@...239...> Message-ID: <6e3a096b0601051500m24628c88jc890d1ed1503cf05@...627...> Nice idea Ron if I could find/locate libqt3-mt after I've installed it but no luck. On 1/5/06, ron wrote: > > On Thursday 05 January 2006 00:46, john hedge wrote: > > Hi, > > > > I'm trying to install Gambas but I get the following message: > > > > gambas-gb-qt: Depends: libqt3c102-mt (>= 3:3.3.3) but it is not > installable > > > > Having Googled I find that libqt3c102-mt has been renamed libqt3-mt. > > > > Q. Is there a way to install Gambas with libqt3-mt? > > > > TIA > > > > John > > > > Maybe a softlink named 'libqt3c102-mt' pointing to 'libqt3-mt' can help. > > Had same problem with /user/lib/qt/* <> /user/lib/qt3/* on suse 8.2 > and this resolved the problem I had. > > Ron > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at ...1303... Fri Jan 6 00:06:50 2006 From: karl at ...1303... (Karl Martindale) Date: Fri, 06 Jan 2006 10:06:50 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601050757.06826.jfabiani@...1109...> References: <43BA750D.26074.103E042@...40...> <200601042156.52450.jfabiani@...1109...> <43BCC397.50109@...1303...> <200601050757.06826.jfabiani@...1109...> Message-ID: <43BDA68A.4080204@...1303...> Hi John, Benoit, everybody, I apologise if this is a double post, but I sent another message, much like this one with the trace attached as a gzip archive but it hasn't appeared. So here it is, uncompressed. Yes, there's only one installation of gambas2 on this machine. The version of postgres that's running is 7.4.6 Find attached what I think is the trace you're after, I ran: strace gbx2 &> DBTest.trace in the project directory. The program ran and behaved 'normally'. -Karl. johnf wrote: > On Wednesday 04 January 2006 22:58, Karl Martindale wrote: > >>johnf wrote: >> >>>On Wednesday 04 January 2006 21:42, Karl Martindale wrote: >>> >>>>The message "Failed to open DB connection" does fire, it prepends the >>>>"Cannot find driver for database: postgresql" message. >>>> >>>>This box had a postgres that was compiled from source and I pointed the >>>>gambas configure at the include directory in the postgres tree. >>>> >>>> ps -efa | grep postmaster >>>>postgres 1852 1 0 Jan02 ? 00:00:00 >>>>/usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data >>>> >>>>The DB property is checked in project properties. >>>> >>>>I also get the same message from the gambas database manager when trying >>>>to connect. >>>> >>>>I have pgAdminIII installed on another box on the same network and it >>>>successfully makes a connection. The postgres server has been in use for >>>>a little over a year now (involved in a PHP project). >>>> >>>>Karl. >>> >>>Any chance the localhost has been turned off in the pg.conf? I use >>>postgres daily with Gambas for the last two weeks (when I really started >>>programming in Gambas) and it works perfectly. >>> >>>Just to insure I have it right you are attempting to connect to a >>>postgres database on the same computer that postgres is running (and this >>>is 'THE' new computer). You might want to try using the IP address of >>>the postgres server. I once saw a box that did not accept 'localhost' >>>but accepted the IP address (never did figure that out). >>> >>>When I compiled gambas 1.9.23 I did not have adjust anything (SUSE 10.0, >>>worked with 9.3 too) to get postgres working. >>> >>>John >> >>One other thing I've noticed is that the gambas database manager will pick >>up both the MySQL and postgres servers when you do a "Scan database >>servers" from the menu. It just won't connect. >> >>Karl. > > > Hey Karl I think we forgot to ask the obivious - what version of Postgres are > you running? I think 1.9.23 needs 7.4 or better - not sure about that. > Maybe that version limitation has something to with a different lang. > John > > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: DBTest.trace URL: From na2492 at ...9... Fri Jan 6 00:24:44 2006 From: na2492 at ...9... (Charlie Reinl) Date: Fri, 06 Jan 2006 00:24:44 +0100 Subject: [Gambas-user] Whats that ? In-Reply-To: <200601052313.35051.gambas@...1...> References: <200601052252.15794.Karl.Reinl@...9...> <200601052313.35051.gambas@...1...> Message-ID: <1136503485.12785.3.camel@...37...> Am Donnerstag, den 05.01.2006, 23:13 +0100 schrieb Benoit Minisini: > On Thursday 05 January 2006 22:52, Charlie Reinl wrote: > > Salut Benoit, > > > > comming up with a strange thing. > > > > Please see the screenshot. > > > > For changing a Public Sub, I made a copy off the existing, by renaming the > > original SaveTV to SaveTV_OLD. > > when Iooked for it, to find in File (left mousclick/goTo) I found 2 > > 'SaveTV', one with a sub entry OLD . ???????????? > > > > Not normal...OR? > > > > Sorry had to make a hole screen to show it. > > > > If you need more infos, then it was in gambas-1.0.13 let me know. > > I hope it pass by size. > > > > Amicalment > > Charlie > > '_' is the character the IDE uses for detecting event handlers. That's all! > > Of course you can use this character in any function name, but it is better > using it only in event handlers. > > Regards, Salut, OK , I understood. Amicalment Charlie From gambas at ...1... Fri Jan 6 00:25:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jan 2006 00:25:41 +0100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <43BDA68A.4080204@...1303...> References: <43BA750D.26074.103E042@...40...> <200601050757.06826.jfabiani@...1109...> <43BDA68A.4080204@...1303...> Message-ID: <200601060025.41600.gambas@...1...> On Friday 06 January 2006 00:06, Karl Martindale wrote: > Hi John, Benoit, everybody, > > I apologise if this is a double post, but I sent another message, much like > this one with the trace attached as a gzip archive but it hasn't appeared. > So here it is, uncompressed. > > Yes, there's only one installation of gambas2 on this machine. > The version of postgres that's running is 7.4.6 > > Find attached what I think is the trace you're after, I ran: > strace gbx2 &> DBTest.trace > in the project directory. The program ran and behaved 'normally'. > > -Karl. > So it works? -- Benoit Minisini From karl at ...1303... Fri Jan 6 00:32:17 2006 From: karl at ...1303... (Karl Martindale) Date: Fri, 06 Jan 2006 10:32:17 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601060025.41600.gambas@...1...> References: <43BA750D.26074.103E042@...40...> <200601050757.06826.jfabiani@...1109...> <43BDA68A.4080204@...1303...> <200601060025.41600.gambas@...1...> Message-ID: <43BDAC81.2000301@...1303...> No it failed in the 'normal' way on this machine Benoit Minisini wrote: > On Friday 06 January 2006 00:06, Karl Martindale wrote: > >>Hi John, Benoit, everybody, >> >>I apologise if this is a double post, but I sent another message, much like >>this one with the trace attached as a gzip archive but it hasn't appeared. >>So here it is, uncompressed. >> >>Yes, there's only one installation of gambas2 on this machine. >>The version of postgres that's running is 7.4.6 >> >>Find attached what I think is the trace you're after, I ran: >>strace gbx2 &> DBTest.trace >>in the project directory. The program ran and behaved 'normally'. >> >>-Karl. >> > > > So it works? > From karl at ...1303... Thu Jan 5 22:33:35 2006 From: karl at ...1303... (Karl Martindale) Date: Fri, 06 Jan 2006 08:33:35 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <200601050805.59266.gambas@...1...> References: <43BA750D.26074.103E042@...40...> <200601042034.43021.jfabiani@...1109...> <43BCA6F1.1080106@...1303...> <200601050805.59266.gambas@...1...> Message-ID: <43BD90AF.3040704@...1303...> Hi John, Benoit, everybody, Yes, there's only one installation of gambas2 on this machine. The version of postgres that's running is 7.4.6 Find attached what I think is the trace you're after, I ran: strace gbx2 &> DBTest.trace in the project directory. The program ran and behaved 'normally'. -Karl. Benoit Minisini wrote: > On Thursday 05 January 2006 05:56, Karl Martindale wrote: > >>This fairly minimal project behaves in the same way: >> >>PUBLIC SUB Form_Open() >>DIM conn AS NEW connection >>DIM connected AS Boolean >> >>WITH conn >> .Type = "postgresql" >> .Host = "localhost" >> .Login = "karl" >> .Name = "growl" >> '.Password = "karl" >> END WITH >> >> TRY conn.Open >> IF ERROR THEN >> Message("Failed to open DB connection." & Error.Text) >> connected = FALSE >> ELSE >> connected = TRUE >> END IF >>END >> >> > > > Do you have only one installation of gambas2 on your machine? > > Can you send me the result of 'strace gbx2' when running this minimal project? > -------------- next part -------------- A non-text attachment was scrubbed... Name: DBTest.trace.gz Type: application/x-tgz Size: 20654 bytes Desc: not available URL: From ronstk at ...239... Fri Jan 6 07:12:17 2006 From: ronstk at ...239... (ron) Date: Fri, 6 Jan 2006 07:12:17 +0100 Subject: [Gambas-user] libqt3-mt or libqt3c102-mt In-Reply-To: <6e3a096b0601051500m24628c88jc890d1ed1503cf05@...627...> References: <6e3a096b0601041546g489af974sb13a1af94b51ec89@...627...> <200601050815.29614.ronstk@...239...> <6e3a096b0601051500m24628c88jc890d1ed1503cf05@...627...> Message-ID: <200601060712.18282.ronstk@...239...> On Friday 06 January 2006 00:00, john hedge wrote: > Nice idea Ron if I could find/locate libqt3-mt after I've installed it but > no luck. > Is the install without errors? 1) To find the file after install you can use 'locate libqt3-mt' or 'locate libqt-mt' or to find basic plath(s) 'locate libqt3' or 'locate libqt' . Note for 'locate': This uses a database for locations and is, on SuSE, with 'updatedb' refreshed. At my system a cron job every night at 4:15 done. So direct after install you need to do it by hand. 2) I do it mostly another way. Go to the plase where the rpm is located. start Midnightcomander and open the rpm by pressing the enter key. In the 'CONTENTS.cpio' (file) you can see the locations where the files wil be stored. in qt3-3.3.5-22.i586.rpm - the 'CONTENTS.cpio' file in /usr/lib/ - a link as libqt-mt.so.3->qt3/lib/libqt-mt.so.3 in /usr/lib/qt3/lib - several links towards and the real file 3) Also rpm itself has a options to show something but use 'man rpm' to see them. The basic start paths where qt libraries can be to my knowledge ATM are: /user/lib/qt , /user/lib/qt3 , /user/include /user/local/lib/qt , /user/local/lib/qt3 , /user/local/include /opt/qt (I have actually seen this once) My box SuSE 9.2 ron at ...1311...:~> locate libqt-mt /opt/MainActor_V5/libraries/libqt-mt.so /opt/MainActor_V5/libraries/libqt-mt.so.3 /opt/MainActor_V5/libraries/libqt-mt.so.3.3 /opt/MainActor_V5/libraries/libqt-mt.so.3.3.2 /usr/lib/libqt-mt.so.3 (link->/usr/lib/qt3/lib/libqt-mt.so.3) <---- date 19-dec-2005 /usr/lib/qt3/lib/libqt-mt.la /usr/lib/qt3/lib/libqt-mt.prlc /usr/lib/qt3/lib/libqt-mt.so (link->/usr/lib/qt3/lib/libqt-mt.so.3.3.5) /usr/lib/qt3/lib/libqt-mt.so.3 (link->/usr/lib/qt3/lib/libqt-mt.so.3.3.5) /usr/lib/qt3/lib/libqt-mt.so.3.3(link->/usr/lib/qt3/lib/libqt-mt.so.3.3.5) /usr/lib/qt3/lib/libqt-mt.so.3.3.5 The _/usr/lib/libqt-mt.so.3_ is from the upgrade to KDE 3.5 done by SuSE Yast (packet manager). The trick I did was on SuSE 8.2 and this is fresh install. Maybe you must look to 'libqt-mt.*' instead of 'libqt3-mt.*' Ron From johnhedge at ...626... Fri Jan 6 07:17:50 2006 From: johnhedge at ...626... (john hedge) Date: Fri, 6 Jan 2006 17:17:50 +1100 Subject: [Gambas-user] libqt3-mt or libqt3c102-mt In-Reply-To: <200601060712.18282.ronstk@...239...> References: <6e3a096b0601041546g489af974sb13a1af94b51ec89@...627...> <200601050815.29614.ronstk@...239...> <6e3a096b0601051500m24628c88jc890d1ed1503cf05@...627...> <200601060712.18282.ronstk@...239...> Message-ID: <6e3a096b0601052217y1399fcdax328ea3485b083dd0@...627...> I'm not going to have time to see if your ideas work as I'm off on holiday for 10 days. I'll check it out on my return and let you know how I go. Thanks. John On 1/6/06, ron wrote: > > On Friday 06 January 2006 00:00, john hedge wrote: > > Nice idea Ron if I could find/locate libqt3-mt after I've installed it > but > > no luck. > > > > Is the install without errors? > > 1) > To find the file after install you can use 'locate libqt3-mt' or 'locate > libqt-mt' > or to find basic plath(s) 'locate libqt3' or 'locate libqt' . > > Note for 'locate': > This uses a database for locations and is, on SuSE, with 'updatedb' > refreshed. > At my system a cron job every night at 4:15 done. > So direct after install you need to do it by hand. > > 2) > I do it mostly another way. Go to the plase where the rpm is located. > start Midnightcomander and open the rpm by pressing the enter key. > In the 'CONTENTS.cpio' (file) you can see the locations where the files > wil be stored. > > in qt3-3.3.5-22.i586.rpm - the 'CONTENTS.cpio' file > in /usr/lib/ - a link as libqt-mt.so.3->qt3/lib/libqt-mt.so.3 > in /usr/lib/qt3/lib - several links towards and the real file > > 3) > Also rpm itself has a options to show something but use 'man rpm' to > see them. > > > The basic start paths where qt libraries can be to my knowledge ATM are: > /user/lib/qt , /user/lib/qt3 , /user/include > /user/local/lib/qt , /user/local/lib/qt3 , /user/local/include > /opt/qt (I have actually seen this once) > > My box SuSE 9.2 > ron at ...1311...:~> locate libqt-mt > > /opt/MainActor_V5/libraries/libqt-mt.so > /opt/MainActor_V5/libraries/libqt-mt.so.3 > /opt/MainActor_V5/libraries/libqt-mt.so.3.3 > /opt/MainActor_V5/libraries/libqt-mt.so.3.3.2 > /usr/lib/libqt-mt.so.3 (link->/usr/lib/qt3/lib/libqt-mt.so.3) <---- date > 19-dec-2005 > /usr/lib/qt3/lib/libqt-mt.la > /usr/lib/qt3/lib/libqt-mt.prlc > /usr/lib/qt3/lib/libqt-mt.so (link->/usr/lib/qt3/lib/libqt-mt.so.3.3.5) > /usr/lib/qt3/lib/libqt-mt.so.3 (link->/usr/lib/qt3/lib/libqt-mt.so.3.3.5) > /usr/lib/qt3/lib/libqt-mt.so.3.3(link->/usr/lib/qt3/lib/libqt-mt.so.3.3.5) > /usr/lib/qt3/lib/libqt-mt.so.3.3.5 > > The _/usr/lib/libqt-mt.so.3_ is from the upgrade to KDE 3.5 done > by SuSE Yast (packet manager). > The trick I did was on SuSE 8.2 and this is fresh install. > > Maybe you must look to 'libqt-mt.*' instead of 'libqt3-mt.*' > > Ron > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfabiani at ...1109... Fri Jan 6 08:10:34 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 5 Jan 2006 23:10:34 -0800 Subject: [Gambas-user] Lost system.User 1.9.23 Message-ID: <200601052310.35023.jfabiani@...1109...> Is there no longer "system.user" in 1.9.23. If so what takes it place? John From gambas at ...1... Fri Jan 6 12:00:00 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jan 2006 12:00:00 +0100 Subject: [Gambas-user] Lost system.User 1.9.23 In-Reply-To: <200601052310.35023.jfabiani@...1109...> References: <200601052310.35023.jfabiani@...1109...> Message-ID: <200601061200.00586.gambas@...1...> On Friday 06 January 2006 08:10, johnf wrote: > Is there no longer "system.user" in 1.9.23. If so what takes it place? > > John > I replaced it by User.Home. Regards, -- Benoit Minisini From vinians at ...927... Fri Jan 6 14:11:45 2006 From: vinians at ...927... (vinians) Date: Fri, 6 Jan 2006 10:11:45 -0300 Subject: [Gambas-user] Please I WANT TO UNSUBSCIBE! Message-ID: I dont know to UNSUBSCRIBE from this list please my email is flooded by this list all day! why dont put how to unsubscribe on the site? From sourceforge-raindog2 at ...94... Fri Jan 6 15:20:18 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 6 Jan 2006 09:20:18 -0500 Subject: [Gambas-user] Please I WANT TO UNSUBSCIBE! In-Reply-To: References: Message-ID: <200601060920.19832.sourceforge-raindog2@...94...> On Fri January 6 2006 08:11, vinians wrote: > I dont know to UNSUBSCRIBE from this list please my email is > flooded by this list all day! why dont put how to unsubscribe > on the site? The page where you go to unsubscribe is listed at the bottom of every email you receive. > https://lists.sourceforge.net/lists/listinfo/gambas-user At the bottom there's a "manage your subscription" section where you can put in your email address and unsubscribe. Rob From jfabiani at ...1109... Fri Jan 6 16:49:45 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 6 Jan 2006 07:49:45 -0800 Subject: [Gambas-user] Lost system.User 1.9.23 In-Reply-To: <200601061200.00586.gambas@...1...> References: <200601052310.35023.jfabiani@...1109...> <200601061200.00586.gambas@...1...> Message-ID: <200601060749.45457.jfabiani@...1109...> On Friday 06 January 2006 03:00, Benoit Minisini wrote: > On Friday 06 January 2006 08:10, johnf wrote: > > Is there no longer "system.user" in 1.9.23. If so what takes it place? > > > > John > > I replaced it by User.Home. > > Regards, Thanks but I think you mean "User.Name" - but what you provided allowed me to find the 'User" stuff. John From jfabiani at ...1109... Fri Jan 6 17:07:33 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 6 Jan 2006 08:07:33 -0800 Subject: [Gambas-user] newbie-dumb ? how do I inherit Message-ID: <200601060807.33943.jfabiani@...1109...> Hi, I'm sure everyone knows how to do this but I don't see it? How do I create a new class that can inherit from a form (subclass from a form)? Also how can I use the super-class methods? If the information is available on the web just point me. John From sourceforge-raindog2 at ...94... Fri Jan 6 21:19:32 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 6 Jan 2006 15:19:32 -0500 Subject: [Gambas-user] newbie-dumb ? how do I inherit In-Reply-To: <200601060807.33943.jfabiani@...1109...> References: <200601060807.33943.jfabiani@...1109...> Message-ID: <200601061519.34083.sourceforge-raindog2@...94...> On Fri January 6 2006 11:07, johnf wrote: > How do I create a new class that can inherit from a form > (subclass from a form)? Also how can I use the super-class > methods? If the information is available on the web just point > me. The Inheritance page in the documentation does show how to do the first part of that.... just put INHERITS FFormName at the beginning of your new class file. As for SUPER, so far that's only documented on gambasdoc.org: http://gambasdoc.org/help/lang/super But it works the way I expected a "super" implementation to work, at least. Here's a project that demonstrates both concepts. Rob -------------- next part -------------- A non-text attachment was scrubbed... Name: InheritDemo-0.0.1.tar.gz Type: application/x-tgz Size: 1141 bytes Desc: not available URL: From ronan at ...384... Fri Jan 6 15:10:05 2006 From: ronan at ...384... (Ronan Chilvers) Date: Fri, 6 Jan 2006 14:10:05 +0000 Subject: [Gambas-user] Please I WANT TO UNSUBSCIBE! In-Reply-To: References: Message-ID: <20060106141005.39a15162@...1179...> On Fri, 6 Jan 2006 10:11:45 -0300 "vinians" wrote: > I dont know to UNSUBSCRIBE from this list please my email is flooded > by this list all day! why dont put how to unsubscribe on the site? Read the footers of any list email and there's a link to the mailing list admin pages. Click on it, fill in your email address in the box right at the bottom, click the button and then follow the instructions. Its not hard! It also tells you how to unsubscribe in the introductory email you got when you joined... :-) -- Ronan e: ronan at ...384... t: 01903 739 997 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jfabiani at ...1109... Fri Jan 6 21:41:00 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 6 Jan 2006 12:41:00 -0800 Subject: [Gambas-user] newbie-dumb ? how do I inherit In-Reply-To: <200601061519.34083.sourceforge-raindog2@...94...> References: <200601060807.33943.jfabiani@...1109...> <200601061519.34083.sourceforge-raindog2@...94...> Message-ID: <200601061241.00670.jfabiani@...1109...> On Friday 06 January 2006 12:19, Rob Kudla wrote: > On Fri January 6 2006 11:07, johnf wrote: > > How do I create a new class that can inherit from a form > > (subclass from a form)? Also how can I use the super-class > > methods? If the information is available on the web just point > > me. > > The Inheritance page in the documentation does show how to do the > first part of that.... just put INHERITS FFormName at the > beginning of your new class file. > > As for SUPER, so far that's only documented on gambasdoc.org: > > http://gambasdoc.org/help/lang/super > > But it works the way I expected a "super" implementation to work, > at least. > > Here's a project that demonstrates both concepts. > > Rob Thank you very much - I guess I did not realize the doc's covered the inherit. I kept reading things about classes - but did not see the inherit information. Thanks again - from a newbie. John From gambas at ...1... Fri Jan 6 21:50:29 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 6 Jan 2006 21:50:29 +0100 Subject: [Gambas-user] Please I WANT TO UNSUBSCIBE! In-Reply-To: <200601060920.19832.sourceforge-raindog2@...94...> References: <200601060920.19832.sourceforge-raindog2@...94...> Message-ID: <200601062150.29894.gambas@...1...> On Friday 06 January 2006 15:20, Rob Kudla wrote: > On Fri January 6 2006 08:11, vinians wrote: > > I dont know to UNSUBSCRIBE from this list please my email is > > flooded by this list all day! why dont put how to unsubscribe > > on the site? > > The page where you go to unsubscribe is listed at the bottom of > every email you receive. > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > At the bottom there's a "manage your subscription" section where > you can put in your email address and unsubscribe. > > Rob > I will put this explanation on the web site... -- Benoit Minisini From rohnny at ...1248... Sat Jan 7 10:08:46 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 07 Jan 2006 10:08:46 +0100 Subject: [Gambas-user] keycode Message-ID: <43BF851E.7020701@...1248...> Hi group. I'm try to find the keycode and key. values in gambas2 1.9.23. Have they changed name or been put someplace else? Regards Rohnny From tetsuo at ...756... Sat Jan 7 11:03:23 2006 From: tetsuo at ...756... (tetsuo) Date: Sat, 07 Jan 2006 11:03:23 +0100 Subject: [Gambas-user] question about SVG Message-ID: <43BF91EB.8000707@...756...> Could i load and manage SVG files with gambas? If the answer is yes.. how? I don't understand if it is possible... (I'm using gambas-1.9.23) Thanks. From gambasfr at ...11... Fri Jan 6 20:49:10 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Fri, 6 Jan 2006 20:49:10 +0100 Subject: [Gambas-user] newbie-dumb ? how do I inherit In-Reply-To: <200601060807.33943.jfabiani@...1109...> References: <200601060807.33943.jfabiani@...1109...> Message-ID: <200601062049.11026.gambasfr@...11...> Le Vendredi 6 Janvier 2006 17:07, johnf a ?crit?: > Hi, > > I'm sure everyone knows how to do this but I don't see it? > > How do I create a new class that can inherit from a form (subclass from a > form)? Also how can I use the super-class methods? If the information is > available on the web just point me. At the top of your new class : INHERITS Form To use the super-class method : SUPER.Method... http://gambasdoc.org/help/lang/inherits http://gambasdoc.org/help/lang/super Fabien > John > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rohnny at ...1248... Sat Jan 7 15:22:43 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 07 Jan 2006 15:22:43 +0100 Subject: [Gambas-user] re:keycode (solved) Message-ID: <43BFCEB3.9000704@...1248...> Hi My mistake. Had a variable named key so therefor I did not find it. (:blush) Rohnny From rohnny at ...1248... Sat Jan 7 15:30:13 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 07 Jan 2006 15:30:13 +0100 Subject: [Gambas-user] Return variable from dialog Message-ID: <43BFD075.7040904@...1248...> Hi group. How can I return a value from a dialog or modal form. Form1 call form2, when form2 close it do return a value. Tried this but not allowed. STATIC PUBLIC FUNCTION Run() AS Long DIM hForm AS FpopupVarer hForm = NEW FpopupVarer hForm.ShowModal() RETURN varenr END and after study, it seems like this does not going to work. After Showmodal has ended the variable varenr are dead. Regards Rohnny From ronstk at ...239... Sat Jan 7 20:33:21 2006 From: ronstk at ...239... (ron) Date: Sat, 7 Jan 2006 20:33:21 +0100 Subject: [Gambas-user] Return variable from dialog In-Reply-To: <43BFD075.7040904@...1248...> References: <43BFD075.7040904@...1248...> Message-ID: <200601072033.21537.ronstk@...239...> On Saturday 07 January 2006 15:30, Rohnny Stormo wrote: > Hi group. > > How can I return a value from a dialog or modal form. > Form1 call form2, when form2 close it do return a value. > > Tried this but not allowed. > > STATIC PUBLIC FUNCTION Run() AS Long > DIM hForm AS FpopupVarer > > hForm = NEW FpopupVarer > hForm.ShowModal() > RETURN varenr > END > > and after study, it seems like this does not going to work. After > Showmodal has ended > the variable varenr are dead. > > > Regards Rohnny > > Where was varenr was alive ? No Dim and asign a value to it in this code. Beside of that, I believe the .Showmodal() keep running until close of the form. The Return varenr is done after the close. If varenr is declared and fill inside the form you don't have it anymore. Ron > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Sat Jan 7 20:47:06 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 7 Jan 2006 14:47:06 -0500 Subject: [Gambas-user] question about SVG In-Reply-To: <43BF91EB.8000707@...756...> References: <43BF91EB.8000707@...756...> Message-ID: <200601071447.07452.sourceforge-raindog2@...94...> On Sat January 7 2006 05:03, tetsuo wrote: > Could i load and manage SVG files with gambas? Well, you can definitely load them, but it depends on what you mean by "manage". If you want to deal with them from a data perspective, you can load them using gb.xml's XmlReader class. If you want to just use them as a graphic, gb.qt's Drawing class is supposed to let you load, draw to, and save them, but I wouldn't call it complete support yet. > If the answer is yes.. how? The following code (in a project with gb.xml selected) will iterate through a SVG (or any other XML) file, listing its top level elements: DIM x AS NEW XmlReader x.Open("/usr/share/xine/skins/Bambino-Purple/helpyourself.svg") DO WHILE NOT x.Eof x.Read IF NOT x.eof THEN PRINT "Found node " & x.Node.Name ENDIF LOOP From m.moeller at ...1299... Sat Jan 7 17:12:52 2006 From: m.moeller at ...1299... (Marcus Moeller) Date: Sat, 7 Jan 2006 17:12:52 +0100 Subject: [Gambas-user] Split Strings Message-ID: <200601071712.53010.m.moeller@...1299...> Hi Gambas Users, I have got an array containing some string in the following format: IPADDR[0]="192.168.1.10" NETMASK[0]="255.255.255.0" IPADDR[1]="192.168.10.16" NETMASK[1]="255.255.255.248" ... I need to isolete the number within [] and transform it to an integer variable. Can I use the split command or do I have do use regexp Best Regards Marcus From sourceforge-raindog2 at ...94... Sat Jan 7 21:00:20 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 7 Jan 2006 15:00:20 -0500 Subject: [Gambas-user] Split Strings In-Reply-To: <200601071712.53010.m.moeller@...1299...> References: <200601071712.53010.m.moeller@...1299...> Message-ID: <200601071500.21075.sourceforge-raindog2@...94...> On Sat January 7 2006 11:12, Marcus Moeller wrote: > IPADDR[0]="192.168.1.10" > NETMASK[0]="255.255.255.0" > IPADDR[1]="192.168.10.16" > NETMASK[1]="255.255.255.248" > I need to isolete the number within [] and transform it to an > integer variable. Can I use the split command or do I have do > use regexp You can do it all with split, but it's so involved that I think a regexp would be easier. dim a as array dim b as array dim c as array dim t as string dim thedesiredvalue as integer t = "IPADDR[1]=\"192.168.1.10\"" a = split(t, "=") ' a[0] = IPADDR[1], a[1] = "192.168.1.10" b = split(a[0], "[") ' b[0] = IPADDR, b[1] = 1] c = split(b[1], "]") ' c[0] = 1, there shouldn't be a c[1] thedesiredvalue = val(c[0]) Rob From mm at ...1313... Sat Jan 7 18:37:28 2006 From: mm at ...1313... (mm at ...1313...) Date: Sat, 7 Jan 2006 18:37:28 +0100 Subject: [Gambas-user] Split Strings Message-ID: <200601071837.28856.mm@...1313...> Hi Gambas Users, I have got an array containing some string in the following format: IPADDR[0]="192.168.1.10" NETMASK[0]="255.255.255.0" IPADDR[1]="192.168.10.16" NETMASK[1]="255.255.255.248" ... I need to isolete the number within [] and transform it to an integer variable. Can I use the split command or do I have do use regexp Best Regards Marcus From mm at ...1313... Sat Jan 7 19:25:08 2006 From: mm at ...1313... (mm at ...1313...) Date: Sat, 7 Jan 2006 19:25:08 +0100 Subject: [Gambas-user] Transform String Message-ID: <200601071925.09167.mm@...1313...> Hi Gambas Users, I have got an array containing some string in the following format: IPADDR[0]="192.168.1.10" NETMASK[0]="255.255.255.0" IPADDR[1]="192.168.10.16" NETMASK[1]="255.255.255.248" ... I need to isolete the number within [] and transform it to an integer variable. Can I use the split command or do I have do use regexp Best Regards Marcus From jfabiani at ...1109... Sat Jan 7 19:41:16 2006 From: jfabiani at ...1109... (johnf) Date: Sat, 7 Jan 2006 10:41:16 -0800 Subject: [Gambas-user] keycode In-Reply-To: <43BF851E.7020701@...1248...> References: <43BF851E.7020701@...1248...> Message-ID: <200601071041.16813.jfabiani@...1109...> On Saturday 07 January 2006 01:08, Rohnny Stormo wrote: > Hi group. > > > I'm try to find the keycode and key. values in gambas2 1.9.23. Have they > changed name or been put > someplace else? > > > Regards Rohnny > I'm a newbie so take what I say with a grain of salt. I'm using the following and it works: 'In the keypress event if key.code =key.tab then Dosomething end if if key.code =key.F4 then Dosomething end if Is there a specific key you are interested in? Maybe "asc(key.code)" could work? John From jfabiani at ...1109... Sat Jan 7 22:54:28 2006 From: jfabiani at ...1109... (johnf) Date: Sat, 7 Jan 2006 13:54:28 -0800 Subject: [Gambas-user] Return variable from dialog In-Reply-To: <200601072033.21537.ronstk@...239...> References: <43BFD075.7040904@...1248...> <200601072033.21537.ronstk@...239...> Message-ID: <200601071354.28257.jfabiani@...1109...> On Saturday 07 January 2006 11:33, ron wrote: > On Saturday 07 January 2006 15:30, Rohnny Stormo wrote: > > Hi group. > > > > How can I return a value from a dialog or modal form. > > Form1 call form2, when form2 close it do return a value. > > > > Tried this but not allowed. > > > > STATIC PUBLIC FUNCTION Run() AS Long > > DIM hForm AS FpopupVarer > > > > hForm = NEW FpopupVarer > > hForm.ShowModal() > > RETURN varenr > > END > > > > and after study, it seems like this does not going to work. After > > Showmodal has ended > > the variable varenr are dead. > > > > > > Regards Rohnny > > Where was varenr was alive ? > No Dim and asign a value to it in this code. > > Beside of that, I believe the .Showmodal() keep running until > close of the form. The Return varenr is done after the close. > If varenr is declared and fill inside the form you don't have it anymore. > > Ron > > > ------------------------------------------------------- one way Set a Public var in the calling Form. Public passstr as String Then in the modal form just before you close callingForm.passstr = someString from the modal form..... me.close() John From rohnny at ...1248... Sat Jan 7 23:21:36 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 07 Jan 2006 23:21:36 +0100 Subject: [Gambas-user] RE: Return variable from dialog Message-ID: <43C03EF0.6080708@...1248...> Hi. Yes varenr is/was declared within the form. Lets say we make a dialogform, with a textbox inside. Whats written in the textbox should be returned to the caller form. The form must be shown as modal. Yes I know I can declare a public variable from a module but that is not what I want if I dont have to. Regards Rohnny From rohnny at ...1248... Sat Jan 7 23:31:11 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 07 Jan 2006 23:31:11 +0100 Subject: [Gambas-user] RE: Transform String Message-ID: <43C0412F.8060603@...1248...> Hi. What about: dim s as string ="IPADDR[0]='192.168.1.10' " dim i,j as integer dim result as integer 'look for first ocurence of [ i = instr(s,"[") 'If exist, should be 6 if i>0 then 'Look for first ocurence of ] after position where [ where found j = instr(s,"]",i) 'if found and position are higher, should be 8 if j>i then 'Get the result from pos(i) to pos(j) Substract pos(i) -1 'should get 8-6-1=1 result = Mid(s,i,j-i-1) end if end if Should result in 0 Rohnny From jfabiani at ...1109... Sun Jan 8 02:44:57 2006 From: jfabiani at ...1109... (johnf) Date: Sat, 7 Jan 2006 17:44:57 -0800 Subject: [Gambas-user] RE: Return variable from dialog In-Reply-To: <43C03EF0.6080708@...1248...> References: <43C03EF0.6080708@...1248...> Message-ID: <200601071744.57575.jfabiani@...1109...> On Saturday 07 January 2006 14:21, Rohnny Stormo wrote: > Hi. > > Yes varenr is/was declared within the form. > Lets say we make a dialogform, with a textbox inside. Whats written > in the textbox should be returned to the caller form. The form must be > shown > as modal. > Yes I know I can declare a public variable from a module but that is not > what I want > if I dont have to. > > Regards Rohnny > > the only way I know of is either a public variable in the calling form or a varible in a module. John From maddox.the.god at ...626... Sun Jan 8 03:00:20 2006 From: maddox.the.god at ...626... (Sasa Ranisavljevic) Date: Sun, 8 Jan 2006 03:00:20 +0100 Subject: [Gambas-user] Change propertis of selected text in TextArea Message-ID: <73a2ceff0601071800w75b266d6w9125f6f7a95bb48c@...627...> Hello. I have one simple question: I want to change propertis ( Bold, Italic ) of selected text in TextArea. My idea is like this: I want to select text, cilick on one button ( for example Bold ), and then I want to selected text becom bold. I think that I have to use .TextBoxSelection but I can't find example enywhere. Thank you in advance. From tetsuo at ...756... Sun Jan 8 12:29:10 2006 From: tetsuo at ...756... (tetsuo) Date: Sun, 08 Jan 2006 12:29:10 +0100 Subject: [Gambas-user] question about SVG In-Reply-To: <200601071447.07452.sourceforge-raindog2@...94...> References: <43BF91EB.8000707@...756...> <200601071447.07452.sourceforge-raindog2@...94...> Message-ID: <43C0F786.2000805@...756...> Thank you Rob :D From m.moeller at ...1299... Sun Jan 8 10:44:58 2006 From: m.moeller at ...1299... (Marcus Moeller) Date: Sun, 8 Jan 2006 10:44:58 +0100 Subject: [Gambas-user] RE: Transform String In-Reply-To: <43C0412F.8060603@...1248...> References: <43C0412F.8060603@...1248...> Message-ID: <200601081044.58770.m.moeller@...1299...> Am Samstag, 7. Januar 2006 23:31 schrieb Rohnny Stormo: > Hi. Hi, first I want to excuse my multiple post (I sent the frist one using a wrong eMail address and thought that the list did not acceppt that [as it should normally do, I guess]). > What about: > dim s as string ="IPADDR[0]='192.168.1.10' " > dim i,j as integer > dim result as integer > > 'look for first ocurence of [ > i = instr(s,"[") > 'If exist, should be 6 > if i>0 then > 'Look for first ocurence of ] after position where [ where found > j = instr(s,"]",i) > 'if found and position are higher, should be 8 > if j>i then > 'Get the result from pos(i) to pos(j) Substract pos(i) -1 > 'should get 8-6-1=1 > result = Mid(s,i,j-i-1) It works with that little modification: result = Mid(row, i + 1, j - i - 1) > end if > end if > Should result in 0 Thanks for your kind help. Marcus From sclewin at ...1126... Sun Jan 8 15:24:04 2006 From: sclewin at ...1126... (Scott) Date: Sun, 08 Jan 2006 09:24:04 -0500 Subject: [Gambas-user] Loading saved data In-Reply-To: <200512112210.07602.christian.faurebouvard@...357...> References: <20051208113215.10646.qmail@...1268...> <7259b5ae0512080435h4d1f1228l@...627...> <200512112210.07602.christian.faurebouvard@...357...> Message-ID: <43C12084.9040302@...1126...> Hi, a very nice person answered this question for me a while ago, but I lost his response, I apologize. I remember how to save multiple variables in a very easy way. DIM destination AS String Dialog.Title = "Please select a name to save" Dialog.Filter = ["Save Game (*.save)"] IF NOT Dialog.SaveFile() THEN destination = Dialog.Path file.Save(destination, funds & "\n" & rooms & "\n" & status & "\n" & guest) END IF I have simply forgot how to pull the specific information and put them back into their variables on load. If anybody can help me it would be greatly appreciated. -- Your friend, Scott "Do to others as you would have them do to you." Luke 6:31 From kztyrvlq at ...966... Sun Jan 8 23:07:59 2006 From: kztyrvlq at ...966... (A Person) Date: Sun, 08 Jan 2006 18:37:59 -0330 Subject: [Gambas-user] Some Captured, Some Not Message-ID: <43C18D3F.8060404@...966...> Good Day All . . . One of my earlier programs captured KeyPress events such as Home, End, and the arrow keys such as: . . . PUBLIC SUB ???_KeyPress() ' home key IF Key.Code = 4112 then do something END IF END . . . I recompiled it in 1.0.13 and now the Home, End, Delete and the Page buttons do not even get to visit the KeyPress event. A break point on the first line never gets tripped. It is like I pressed nothing. I have tried to capture as Key.Home and 4112 but nothing works. The arrow keys work. The alpha characters work. The numeric characters work. Some do and some don't. What changed? What am I doing wrong? Anyone help? Thanks Paul From garretthylltun at ...626... Sun Jan 8 23:34:03 2006 From: garretthylltun at ...626... (Garrett Hylltun) Date: Sun, 8 Jan 2006 14:34:03 -0800 Subject: [Gambas-user] OSX Version Yet In-Reply-To: <43C12084.9040302@...1126...> References: <20051208113215.10646.qmail@...1268...> <7259b5ae0512080435h4d1f1228l@...627...> <200512112210.07602.christian.faurebouvard@...357...> <43C12084.9040302@...1126...> Message-ID: Does anyone know if anyone has succeeded in getting Gambas working on OSX? Thanks in advance, -Garrett From gambas at ...1... Sun Jan 8 23:34:32 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 8 Jan 2006 23:34:32 +0100 Subject: [Gambas-user] Some Captured, Some Not In-Reply-To: <43C18D3F.8060404@...966...> References: <43C18D3F.8060404@...966...> Message-ID: <200601082334.32746.gambas@...1...> On Sunday 08 January 2006 23:07, A Person wrote: > Good Day All . . . > > One of my earlier programs captured KeyPress events such as Home, End, > and the arrow keys such as: > > . . . > PUBLIC SUB ???_KeyPress() > > ' home key > IF Key.Code = 4112 then > do something > END IF > > END > . . . > > I recompiled it in 1.0.13 and now the Home, End, Delete and the Page > buttons do not even get to visit the KeyPress event. A break point on > the first line never gets tripped. It is like I pressed nothing. I have > tried to capture as Key.Home and 4112 but nothing works. > > The arrow keys work. The alpha characters work. The numeric characters > work. Some do and some don't. > > What changed? What am I doing wrong? > > Anyone help? > > Thanks > > Paul > No idea - Too few information! Can you send your project to me, so that I can see what you did exactly? And always use Key constants, not numeric ones. As the value of key may change without notice... Regards, -- Benoit Minisini From gambas-user at lists.sourceforge.net Mon Jan 9 00:13:33 2006 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Mon, 09 Jan 2006 00:13:33 +0100 Subject: [Gambas-user] Split Strings In-Reply-To: <200601071837.28856.mm@...1313...> References: <200601071837.28856.mm@...1313...> Message-ID: <43C19C9D.1070907@lists.sourceforge.net> mm at ...1313... schrieb: > >Hi Gambas Users, > >I have got an array containing some string in the following format: > >IPADDR[0]="192.168.1.10" >NETMASK[0]="255.255.255.0" >IPADDR[1]="192.168.10.16" >NETMASK[1]="255.255.255.248" >... > > >I need to isolete the number within [] and transform it to an integer >variable. Can I use the split command or do I have do use regexp > >Best Regards >Marcus > > Hi Marcus Split does not work for this sense. Regexp is allways a good solution to extract a part within strings. A simple solution i have see ones somewhere could also be: numb = val( mid( somestring, instr(somestring,"[")+1 ) ), but is maybe more vb like then gambas. Regards, staudi From gambas at ...1... Mon Jan 9 00:41:16 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 Jan 2006 00:41:16 +0100 Subject: [Gambas-user] Split Strings In-Reply-To: <43C19C9D.1070907@lists.sourceforge.net> References: <200601071837.28856.mm@...1313...> <43C19C9D.1070907@lists.sourceforge.net> Message-ID: <200601090041.17330.gambas@...1...> On Monday 09 January 2006 00:13, Werner Staudacher wrote: > mm at ...1313... schrieb: > >Hi Gambas Users, > > > >I have got an array containing some string in the following format: > > > >IPADDR[0]="192.168.1.10" > >NETMASK[0]="255.255.255.0" > >IPADDR[1]="192.168.10.16" > >NETMASK[1]="255.255.255.248" > >... > > > > > >I need to isolete the number within [] and transform it to an integer > >variable. Can I use the split command or do I have do use regexp > > > >Best Regards > >Marcus > > Hi Marcus > > Split does not work for this sense. > Regexp is allways a good solution to extract a part within strings. > A simple solution i have see ones somewhere could also be: numb = val( > mid( somestring, instr(somestring,"[")+1 ) ), but is maybe more vb like > then gambas. > > Regards, staudi > Split(IPADDR[0], ".") works. And, in the development version, you can use the Scan() routine too, which manage the same basic regexp than LIKE: Scan(IPADDR[0], "*.*.*.*") will return [ "192", "168", "1", "10" ] Regards, -- Benoit Minisini From kztyrvlq at ...966... Mon Jan 9 01:47:25 2006 From: kztyrvlq at ...966... (A Person) Date: Sun, 08 Jan 2006 21:17:25 -0330 Subject: [Gambas-user] Re: Some Captured, Some Not Message-ID: <43C1B29D.90507@...966...> Sorry, cannot send project but can send the applicable sub. Hope this helps somewhat. This code was written before I knew about the constants such as Key.Home (today!). Specifically, IF #1 (HOME), ELSE IF #2 (END), ELSE IF #5 (PAGE UP) and ELSE IF #6 (PAGE DOWN) bypass this event. I checked the values and all are OK but this is a red herring since no entry into the subroutine exists. . . . PUBLIC SUB lblWords_Keypress() ' home key 'IF Key.Code = 4112 THEN IF Key.Code = Key.Home THEN IF iLineNumWords <> 0 THEN iLineNumWords = 0 srTagLine lblWords.Refresh END IF ' end key ELSE IF Key.Code = 4113 THEN IF iLineNumWords <> iNumTagLine - 1 THEN iLineNumWords = iNumTagLine - 1 srTagLine lblWords.Refresh END IF ' left arrow key and up arrow key ELSE IF Key.Code = 4114 OR Key.Code = 4115 THEN IF iLineNumWords - 1 >= 0 THEN iLineNumWords = iLineNumWords - 1 srTagLine lblWords.Refresh END IF ' right arrow key and down arrow key ELSE IF Key.Code = 4116 OR Key.Code = 4117 THEN IF iLineNumWords + 1 <= iNumTagLine - 1 THEN iLineNumWords = iLineNumWords + 1 srTagLine lblWords.Refresh END IF ' page up key ELSE IF Key.Code = 4118 THEN IF iLineNumWords - Abs(iNumTagLine / 100) >= 0 THEN iLineNumWords = iLineNumWords - Abs(iNumTagLine / 100) srTagLine lblWords.Refresh END IF ' page down key ELSE IF Key.Code = 4119 THEN IF iLineNumWords + Abs(iNumTagLine / 100) <= iNumTagLine - 1 THEN iLineNumWords = iLineNumWords + Abs(iNumTagLine / 100) srTagLine lblWords.Refresh END IF END IF END . . . Thanks Paul From marco.colnaghi at ...69... Mon Jan 9 10:07:13 2006 From: marco.colnaghi at ...69... (Marco Colnaghi) Date: Mon, 9 Jan 2006 10:07:13 +0100 Subject: [Gambas-user] Creating a fading effect between 2 images Message-ID: <019501c614fc$14ce0d00$3400a8c0@...1314...> Hi everybody in the list, working on a graphical project (http://slcreator.sourceforge.net) with gambas 1.0.13 I' m trying to simulate a fading effect between two images with dimensions 720x576 (pal DVD size) but I cant' find a good way to draw with reduced opacity to drawing area... At the moment I'm simulating it wit a tiled transition effect but it's not the perfect solution Do someone of you have a good idea? thanks in advance, bye, Marco. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sclewin at ...1126... Mon Jan 9 19:12:03 2006 From: sclewin at ...1126... (Scott) Date: Mon, 09 Jan 2006 13:12:03 -0500 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <43C12084.9040302@...1126...> References: <20051208113215.10646.qmail@...1268...> <7259b5ae0512080435h4d1f1228l@...627...> <200512112210.07602.christian.faurebouvard@...357...> <43C12084.9040302@...1126...> Message-ID: <43C2A773.7050909@...1126...> Hi again, I found a walk around my problem with saving and loading multiple variables. It is simple to save and load a single variable, so I simply saved each variable to a different file. It is a little messy, but it works; and in the end that is what really matters :) If anyone can still tell me how to save multiple variables into a single file, that would be nice. I have placed the code down I used in a test program that works just in case other people are having the same problem and don't mind my quick fix to this problem. I even added a bit in to save the files to a specific folder and to create that folder if it does not exist. PUBLIC SUB Save_Click() DIM a AS String DIM b AS String DIM c AS String DIM d AS String DIM fe AS Boolean fe = Exist ( system.Home &/"savetest" ) IF fe = FALSE THEN MKDIR system.Home &/"savetest" a = textbox1.Text b = textbox2.Text c = textbox3.Text d = textbox4.Text File.Save(system.Home &/"savetest/testa.txt", a) File.Save(system.Home &/"savetest/testb.txt", b) File.Save(system.Home &/"savetest/testc.txt", c) File.Save(system.Home &/"savetest/testd.txt", d) END PUBLIC SUB Load_Click() DIM a AS String DIM b AS String DIM c AS String DIM d AS String a = File.Load(system.Home &/"savetest/testa.txt") b = File.Load(system.Home &/"savetest/testb.txt") c = File.Load(system.Home &/"savetest/testc.txt") d = File.Load(system.Home &/"savetest/testd.txt") textbox5.Text = a textbox6.Text = b textbox7.Text = c textbox8.Text = d END -- Your friend, Scott "Do to others as you would have them do to you." Luke 6:31 From gambas at ...1... Mon Jan 9 20:01:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 Jan 2006 20:01:19 +0100 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <43C2A773.7050909@...1126...> References: <20051208113215.10646.qmail@...1268...> <43C12084.9040302@...1126...> <43C2A773.7050909@...1126...> Message-ID: <200601092001.19753.gambas@...1...> On Monday 09 January 2006 19:12, Scott wrote: > Hi again, > > I found a walk around my problem with saving and loading multiple > variables. It is simple to save and load a single variable, so I simply > saved each variable to a different file. It is a little messy, but it > works; and in the end that is what really matters :) If anyone can > still tell me how to save multiple variables into a single file, that > would be nice. > > I have placed the code down I used in a test program that works just > in case other people are having the same problem and don't mind my quick > fix to this problem. I even added a bit in to save the files to a > specific folder and to create that folder if it does not exist. > > PUBLIC SUB Save_Click() > > DIM a AS String > DIM b AS String > DIM c AS String > DIM d AS String > DIM fe AS Boolean > > fe = Exist ( system.Home &/"savetest" ) > IF fe = FALSE THEN MKDIR system.Home &/"savetest" > > a = textbox1.Text > b = textbox2.Text > c = textbox3.Text > d = textbox4.Text > > File.Save(system.Home &/"savetest/testa.txt", a) > File.Save(system.Home &/"savetest/testb.txt", b) > File.Save(system.Home &/"savetest/testc.txt", c) > File.Save(system.Home &/"savetest/testd.txt", d) > > END > > PUBLIC SUB Load_Click() > > DIM a AS String > DIM b AS String > DIM c AS String > DIM d AS String > > a = File.Load(system.Home &/"savetest/testa.txt") > b = File.Load(system.Home &/"savetest/testb.txt") > c = File.Load(system.Home &/"savetest/testc.txt") > d = File.Load(system.Home &/"savetest/testd.txt") > > textbox5.Text = a > textbox6.Text = b > textbox7.Text = c > textbox8.Text = d > > END My God! You can use the Settings class, if you need to save some settings of your application. Anyway, look at the file management functions to see how to open a file, read or write as much information you need, in binary or text format, and close it when you have finished with the file. Regards, -- Benoit Minisini From Karl.Reinl at ...9... Mon Jan 9 19:57:28 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 9 Jan 2006 19:57:28 +0100 Subject: [Gambas-user] Question about settings in gambas2.1.9.23 Message-ID: <200601091957.28823.Karl.Reinl@...9...> Salut Benoit, can you or anybody else, explain me what should happen while executing the following SUB Main. SUB Main() DIM hSettings AS Settings hSettings = NEW Settings("/home/charlie/.myProject.conf") PRINT hSettings["PROJECTLANG", "EN"] END I thougth, it is looking at '/home/charlie/.myProject.conf' to find "PROJECTLANG" If found "PROJECTLANG", the value is returned. If not '/home/charlie/.myProject.conf' will be created if not exists, and "PROJECTLANG" is written in with the value "EN" t o the file. "EN" is returned as value If my thought are right, settings have a problem, if not explain me what I have todo. But at last, even that dont work. SUB Main() DIM hSettings AS Settings hSettings = NEW Settings("/home/charlie/.myProject.conf") PRINT hSettings["PROJECTLANG", "EN"] hSettings.Save() PRINT hSettings["PROJECTLANG", "EN"] END Amicalment Charlie From gambas at ...1... Mon Jan 9 20:24:15 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 Jan 2006 20:24:15 +0100 Subject: [Gambas-user] Question about settings in gambas2.1.9.23 In-Reply-To: <200601091957.28823.Karl.Reinl@...9...> References: <200601091957.28823.Karl.Reinl@...9...> Message-ID: <200601092024.15236.gambas@...1...> On Monday 09 January 2006 19:57, Charlie Reinl wrote: > Salut Benoit, > > can you or anybody else, explain me what should happen while executing > the following SUB Main. > > SUB Main() > DIM hSettings AS Settings > hSettings = NEW Settings("/home/charlie/.myProject.conf") > PRINT hSettings["PROJECTLANG", "EN"] > END > > I thougth, it is looking at '/home/charlie/.myProject.conf' to find > "PROJECTLANG" > > If found "PROJECTLANG", the value is returned. > > If not '/home/charlie/.myProject.conf' will be created if not exists, and > "PROJECTLANG" is written in with the value "EN" t o the file. No. You must explicitely assigned something to hSettings["PROJECTLANG"], otherwise, as nothing is modified in the settings file, nothing is save. Regards, -- Benoit Minisini From gambas-user at lists.sourceforge.net Mon Jan 9 20:39:58 2006 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Mon, 09 Jan 2006 20:39:58 +0100 Subject: [Gambas-user] Split Strings In-Reply-To: <200601090041.17330.gambas@...1...> References: <200601071837.28856.mm@...1313...> <43C19C9D.1070907@lists.sourceforge.net> <200601090041.17330.gambas@...1...> Message-ID: <43C2BC0E.1080704@lists.sourceforge.net> Benoit Minisini schrieb: >On Monday 09 January 2006 00:13, Werner Staudacher wrote: > > >>mm at ...1313... schrieb: >> >> >>>Hi Gambas Users, >>> >>>I have got an array containing some string in the following format: >>> >>>IPADDR[0]="192.168.1.10" >>>NETMASK[0]="255.255.255.0" >>>IPADDR[1]="192.168.10.16" >>>NETMASK[1]="255.255.255.248" >>>... >>> >>> >>>I need to isolete the number within [] and transform it to an integer >>>variable. Can I use the split command or do I have do use regexp >>> >>>Best Regards >>>Marcus >>> >>> >>Hi Marcus >> >>Split does not work for this sense. >>Regexp is allways a good solution to extract a part within strings. >>A simple solution i have see ones somewhere could also be: numb = val( >>mid( somestring, instr(somestring,"[")+1 ) ), but is maybe more vb like >>then gambas. >> >>Regards, staudi >> >> >> > >Split(IPADDR[0], ".") works. > >And, in the development version, you can use the Scan() routine too, which >manage the same basic regexp than LIKE: > >Scan(IPADDR[0], "*.*.*.*") will return [ "192", "168", "1", "10" ] > >Regards, > > > I think he asked to get the number between the brackets "IPADDR [ 0 ] ="192.168.1.10"" wich would be the index of same kind of entries. Regards, staudi From mike_keehan at ...679... Mon Jan 9 21:04:04 2006 From: mike_keehan at ...679... (Mike Keehan) Date: Mon, 09 Jan 2006 20:04:04 +0000 Subject: [Gambas-user] Split Strings In-Reply-To: <200601090041.17330.gambas@...1...> References: <200601071837.28856.mm@...1313...> <43C19C9D.1070907@lists.sourceforge.net> <200601090041.17330.gambas@...1...> Message-ID: <43C2C1B4.4060001@...679...> Hi Marcus, >> mm at ...1313... Wrote >>> Hi Gambas Users, >>> >>> I have got an array containing some string in the following format: >>> >>> IPADDR[0]="192.168.1.10" >>> NETMASK[0]="255.255.255.0" >>> IPADDR[1]="192.168.10.16" >>> NETMASK[1]="255.255.255.248" >>> ... >>> >>> >>> I need to isolete the number within [] and transform it to an integer >>> variable. Can I use the split command or do I have do use regexp >>> >>> Best Regards >>> Marcus Split can take multiple separators. Try something like this:- DIM s1 AS String DIM Bits AS String[] DIM s AS String s1 = "name[0]=Marcus" Bits = Split(s1, "[]=") FOR EACH s IN Bits Message("Bit = " & s) NEXT This produces four Message boxes on Gambas 1.0.13, 1 -> "name" 2 -> "0" 3 -> "" 4 -> "Marcus" Maybe Benoit can tell us why the 3rd. one is blank :) Mike. From sourceforge-raindog2 at ...94... Mon Jan 9 21:30:27 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 9 Jan 2006 15:30:27 -0500 Subject: [Gambas-user] Split Strings In-Reply-To: <43C2C1B4.4060001@...679...> References: <200601071837.28856.mm@...1313...> <200601090041.17330.gambas@...1...> <43C2C1B4.4060001@...679...> Message-ID: <200601091530.28583.sourceforge-raindog2@...94...> On Mon January 9 2006 15:04, Mike Keehan wrote: > >>> IPADDR[0]="192.168.1.10" > Split can take multiple separators. Try something like this:- > Bits = Split(s1, "[]=") > This produces four Message boxes on Gambas 1.0.13, > Maybe Benoit can tell us why the 3rd. one is blank :) It should be blank. Here are where the splits occur (sorry to people who don't use a fixed width font): IPADDR[0]="192.168.1.10" ^ ^^ As you can see, there's nothing but an empty string between the second and third delimiters, so it puts an empty string in the array. Otherwise, it'd make parsing CSV files where there may or may not be a value for every field almost impossible, since you wouldn't know which field had been eliminated. Rob From gambas at ...1... Mon Jan 9 22:28:10 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 9 Jan 2006 22:28:10 +0100 Subject: [Gambas-user] Split Strings In-Reply-To: <200601091530.28583.sourceforge-raindog2@...94...> References: <200601071837.28856.mm@...1313...> <43C2C1B4.4060001@...679...> <200601091530.28583.sourceforge-raindog2@...94...> Message-ID: <200601092228.11190.gambas@...1...> On Monday 09 January 2006 21:30, Rob Kudla wrote: > On Mon January 9 2006 15:04, Mike Keehan wrote: > > >>> IPADDR[0]="192.168.1.10" > > > > Split can take multiple separators. Try something like this:- > > Bits = Split(s1, "[]=") > > This produces four Message boxes on Gambas 1.0.13, > > Maybe Benoit can tell us why the 3rd. one is blank :) > > It should be blank. Here are where the splits occur (sorry to > people who don't use a fixed width font): > > IPADDR[0]="192.168.1.10" > ^ ^^ > > As you can see, there's nothing but an empty string between the > second and third delimiters, so it puts an empty string in the > array. Otherwise, it'd make parsing CSV files where there may > or may not be a value for every field almost impossible, since > you wouldn't know which field had been eliminated. > > Rob > Split(), in the development version, takes an extra boolean parameter that tells him to remove void entries. You can use also Scan(), this way: PRINT Scan("IPADDR[0]=\"192.168.1.10\"", "IPADDR[*]=\"*\"").Join(";") --> 0;192.168.1.10 Regards, -- Benoit Minisini From sclewin at ...1126... Tue Jan 10 00:48:45 2006 From: sclewin at ...1126... (Scott) Date: Mon, 09 Jan 2006 18:48:45 -0500 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <200601092001.19753.gambas@...1...> References: <20051208113215.10646.qmail@...1268...> <43C12084.9040302@...1126...> <43C2A773.7050909@...1126...> <200601092001.19753.gambas@...1...> Message-ID: <43C2F65D.3060800@...1126...> Benoit Minisini wrote: > Anyway, look at the file management functions to see how to open a file, read > or write as much information you need, in binary or text format, and close it > when you have finished with the file. > I tried using the open, read, and write file before without success, but now, thanks to you, it worked. I did not use the close before and now I did and I was able to save and load three separate variables in a test program. Thank you. -- Your friend, Scott "Do to others as you would have them do to you." Luke 6:31 From jfabiani at ...1109... Tue Jan 10 04:11:23 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 9 Jan 2006 19:11:23 -0800 Subject: [Gambas-user] Anybody have an example using DCOP? Message-ID: <200601091911.23117.jfabiani@...1109...> Hi, I did not find an example of using DCOP anywhere (or am I just missing it). I'd like to run kword. Thanks John From jfabiani at ...1109... Tue Jan 10 04:22:11 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 9 Jan 2006 19:22:11 -0800 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601091911.23117.jfabiani@...1109...> References: <200601091911.23117.jfabiani@...1109...> Message-ID: <200601091922.11990.jfabiani@...1109...> On Monday 09 January 2006 19:11, johnf wrote: > Hi, > I did not find an example of using DCOP anywhere (or am I just missing it). > I'd like to run kword. > > Thanks > John Ok I just found kate (I did not know what kate was until now because I didn't notice it was on the list of demo's). But where can I find out about the functions for kword - like the functions found in the kate demo? John From ronstk at ...239... Tue Jan 10 10:29:12 2006 From: ronstk at ...239... (ron) Date: Tue, 10 Jan 2006 10:29:12 +0100 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601091922.11990.jfabiani@...1109...> References: <200601091911.23117.jfabiani@...1109...> <200601091922.11990.jfabiani@...1109...> Message-ID: <200601101029.13025.ronstk@...239...> On Tuesday 10 January 2006 04:22, johnf wrote: > On Monday 09 January 2006 19:11, johnf wrote: > > Hi, > > I did not find an example of using DCOP anywhere (or am I just missing it). > > I'd like to run kword. > > > > Thanks > > John > Ok I just found kate (I did not know what kate was until now because I didn't > notice it was on the list of demo's). But where can I find out about the > functions for kword - like the functions found in the kate demo? > > John > You can use 'kdcop' to see something, but how exactly to use and then with gambas is not pretty to find. For dcop main info you must go to developer.kde.org is my best guess Ron From gambas at ...1... Tue Jan 10 10:29:54 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jan 2006 10:29:54 +0100 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601091922.11990.jfabiani@...1109...> References: <200601091911.23117.jfabiani@...1109...> <200601091922.11990.jfabiani@...1109...> Message-ID: <200601101029.54210.gambas@...1...> On Tuesday 10 January 2006 04:22, johnf wrote: > On Monday 09 January 2006 19:11, johnf wrote: > > Hi, > > I did not find an example of using DCOP anywhere (or am I just missing > > it). I'd like to run kword. > > > > Thanks > > John > > Ok I just found kate (I did not know what kate was until now because I > didn't notice it was on the list of demo's). But where can I find out > about the functions for kword - like the functions found in the kate demo? > > John > I didn't found any doc about DCOP functions, so I think you must guess them. You can use the 'kdcop' program that lists all DCOP methods and objects of a running KDE application. This way, you can try and test things, like I did with Kate! Regards, -- Benoit Minisini From dcamposf at ...626... Tue Jan 10 11:26:09 2006 From: dcamposf at ...626... (Daniel Campos) Date: Tue, 10 Jan 2006 11:26:09 +0100 Subject: [Gambas-user] OSX Version Yet In-Reply-To: References: <20051208113215.10646.qmail@...1268...> <7259b5ae0512080435h4d1f1228l@...627...> <200512112210.07602.christian.faurebouvard@...357...> <43C12084.9040302@...1126...> Message-ID: <7259b5ae0601100226s47a3190bs@...627...> Not yet, there are problems due to the different endianess between i386, ppc and i64/amd64 architectures. Regards, D. Campos 2006/1/8, Garrett Hylltun : > > Does anyone know if anyone has succeeded in getting Gambas working on > OSX? > > Thanks in advance, > -Garrett > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abidoo.too at ...11... Tue Jan 10 18:22:09 2006 From: abidoo.too at ...11... (Muriel Bodard) Date: Tue, 10 Jan 2006 18:22:09 +0100 Subject: [Gambas-user] Split Strings In-Reply-To: <200601092228.11190.gambas@...1...> References: <200601071837.28856.mm@...1313...> <200601091530.28583.sourceforge-raindog2@...94...> <200601092228.11190.gambas@...1...> Message-ID: <200601101822.09487.abidoo.too@...11...> Le Lundi 09 Janvier 2006 22:28, Benoit Minisini a ?crit?: > On Monday 09 January 2006 21:30, Rob Kudla wrote: > > On Mon January 9 2006 15:04, Mike Keehan wrote: > > > >>> IPADDR[0]="192.168.1.10" > > > > > > Split can take multiple separators. Try something like this:- > > > Bits = Split(s1, "[]=") > > > This produces four Message boxes on Gambas 1.0.13, > > > Maybe Benoit can tell us why the 3rd. one is blank :) > > > > It should be blank. Here are where the splits occur (sorry to > > people who don't use a fixed width font): > > > > IPADDR[0]="192.168.1.10" > > ^ ^^ > > > > As you can see, there's nothing but an empty string between the > > second and third delimiters, so it puts an empty string in the > > array. Otherwise, it'd make parsing CSV files where there may > > or may not be a value for every field almost impossible, since > > you wouldn't know which field had been eliminated. > > > > Rob > > Split(), in the development version, takes an extra boolean parameter that > tells him to remove void entries. > > You can use also Scan(), this way: > > PRINT Scan("IPADDR[0]=\"192.168.1.10\"", "IPADDR[*]=\"*\"").Join(";") > --> 0;192.168.1.10 > > Regards, i think he need soemthing like : dim ars as string[] ars = Scan("IPADDR[0]=\"192.168.1.10\"", "*[*]=\"*\"") ars.remove(0) print ars.join(";") so it's valuable for each of he's line with a for each for exemple regards, Fabien From abidoo.too at ...11... Tue Jan 10 18:44:27 2006 From: abidoo.too at ...11... (Muriel Bodard) Date: Tue, 10 Jan 2006 18:44:27 +0100 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <43C2A773.7050909@...1126...> References: <20051208113215.10646.qmail@...1268...> <43C12084.9040302@...1126...> <43C2A773.7050909@...1126...> Message-ID: <200601101844.27201.abidoo.too@...11...> Le Lundi 09 Janvier 2006 19:12, Scott a ?crit?: > Hi again, > > I found a walk around my problem with saving and loading multiple > variables. It is simple to save and load a single variable, so I simply > saved each variable to a different file. It is a little messy, but it > works; and in the end that is what really matters :) If anyone can > still tell me how to save multiple variables into a single file, that > would be nice. > > I have placed the code down I used in a test program that works just > in case other people are having the same problem and don't mind my quick > fix to this problem. I even added a bit in to save the files to a > specific folder and to create that folder if it does not exist. > > PUBLIC SUB Save_Click() > > DIM a AS String > DIM b AS String > DIM c AS String > DIM d AS String > DIM fe AS Boolean > > fe = Exist ( system.Home &/"savetest" ) > IF fe = FALSE THEN MKDIR system.Home &/"savetest" > > a = textbox1.Text > b = textbox2.Text > c = textbox3.Text > d = textbox4.Text > > File.Save(system.Home &/"savetest/testa.txt", a) > File.Save(system.Home &/"savetest/testb.txt", b) > File.Save(system.Home &/"savetest/testc.txt", c) > File.Save(system.Home &/"savetest/testd.txt", d) > > END > > PUBLIC SUB Load_Click() > > DIM a AS String > DIM b AS String > DIM c AS String > DIM d AS String > > a = File.Load(system.Home &/"savetest/testa.txt") > b = File.Load(system.Home &/"savetest/testb.txt") > c = File.Load(system.Home &/"savetest/testc.txt") > d = File.Load(system.Home &/"savetest/testd.txt") > > textbox5.Text = a > textbox6.Text = b > textbox7.Text = c > textbox8.Text = d > > END ARRRRRGH ! 8?O What is that ? Look : Private arsValues as String[] Public sub Main() Dim s as string arsValue = New String[] arsValue.Add("Val1") arsValue.Add("Val2") arsValue.Add("Val3") arsValue.Add("Val4") Save arsValue.Clear Load For each s in arsValue Print s Next End Public Sub Save() File.Save(system.Home &/"savetest/testd.txt", arsValue.Join("\n")) End Public Sub Load() arsValue =Split( File.Load(system.Home &/"savetest/testd.txt"), "\n") End Never The less gambas have a setting system Use it ! Private MySetting as Setting in a sub... MySetting = New Setting(system.Home &/"savetest/testd.txt") Setting["Val1"] = Val1 Setting["Val2"] = Val2 etc... Setting.Save To LoadSetting: Val1 = Setting["Val1"] etc to remove a setting if i remember good... Setting["Val1"] = Null Regards, Fabien Bodard From jfabiani at ...1109... Tue Jan 10 18:10:48 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 10 Jan 2006 09:10:48 -0800 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601101029.13025.ronstk@...239...> References: <200601091911.23117.jfabiani@...1109...> <200601091922.11990.jfabiani@...1109...> <200601101029.13025.ronstk@...239...> Message-ID: <200601100910.48601.jfabiani@...1109...> On Tuesday 10 January 2006 01:29, ron wrote: > On Tuesday 10 January 2006 04:22, johnf wrote: > > On Monday 09 January 2006 19:11, johnf wrote: > > > Hi, > > > I did not find an example of using DCOP anywhere (or am I just missing > > > it). I'd like to run kword. > > > > > > Thanks > > > John > > > > Ok I just found kate (I did not know what kate was until now because I > > didn't notice it was on the list of demo's). But where can I find out > > about the functions for kword - like the functions found in the kate > > demo? > > > > John > > You can use 'kdcop' to see something, but how exactly to use and > then with gambas is not pretty to find. > > For dcop main info you must go to developer.kde.org is my best guess I have discovered that kdcop does not display anything with respect to "kword". But I did find an old article describing how to use the dcop at the command line. Later I'll provide a few commands for dcop. But here is the basic issue. I need some sort of report writer that will provide an invoice, and general reports. It has to work (or made to work) with a result object. So I decided I would first check into the word processors for Linux (OpenOffice and Kword). In the windows world working with word processors is easy and I thought I could do the same with Linux. But what I'm discovering is a real mess. Kword uses "dcop" and looks like it might work. But kword has at least two issues: 1. It is not the current leader - OpenOffice is. 2. It is based on frames and not the standard text as other word processors. 3. (not sure this is right) It appears that dcop will be replaced with dbus. OpenOffice also has several ways to be automated. 1. Use UNO - something I don't understand and find it hard to follow the programming examples (mostly the C++ stuff). 2. Star basic - but again find little information - but it still looks like I need to at least use some sort of UNO call to start the process. 3. There is something called URE that is a compiled and a run time version of UNO. Again almost no information. The problem that worries me the most is the issue of getting a wrapper into Gambas for either UNO or URE. So what do I do? That is the question! Anyone have a suggestion? How to explore a dcop aware program: The program you want to examine has to be running. I.e. kword. Then from the command line: #dcop The above will list all the running dcop aware programs. You should see something like kword-23456 in the list of programs. Then you can: #dcop kword-23456 Which will provide a list of objects (objects might not be the best word) within kword. Next you can try something like the following from the list of items returned with above command. #dcop kword-23456 qt That appears to list more objects. #dcop kword-23456 qt objects That will provide a list of the 'QT-DCOP-Bridged' objects. These appear to be the functions/procedures. How to use them is different question and I don't know. My guess is you have to experiment (hit and miss) the hard way. John From gambas at ...1... Tue Jan 10 18:22:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 10 Jan 2006 18:22:28 +0100 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601100910.48601.jfabiani@...1109...> References: <200601091911.23117.jfabiani@...1109...> <200601101029.13025.ronstk@...239...> <200601100910.48601.jfabiani@...1109...> Message-ID: <200601101822.29044.gambas@...1...> On Tuesday 10 January 2006 18:10, johnf wrote: > On Tuesday 10 January 2006 01:29, ron wrote: > > On Tuesday 10 January 2006 04:22, johnf wrote: > > > On Monday 09 January 2006 19:11, johnf wrote: > > > > Hi, > > > > I did not find an example of using DCOP anywhere (or am I just > > > > missing it). I'd like to run kword. > > > > > > > > Thanks > > > > John > > > > > > Ok I just found kate (I did not know what kate was until now because I > > > didn't notice it was on the list of demo's). But where can I find out > > > about the functions for kword - like the functions found in the kate > > > demo? > > > > > > John > > > > You can use 'kdcop' to see something, but how exactly to use and > > then with gambas is not pretty to find. > > > > For dcop main info you must go to developer.kde.org is my best guess > > I have discovered that kdcop does not display anything with respect to > "kword". You must launch kword so that it is displayed in the kdcop list. > But I did find an old article describing how to use the dcop at > the command line. Later I'll provide a few commands for dcop. > > But here is the basic issue. I need some sort of report writer that will > provide an invoice, and general reports. It has to work (or made to work) > with a result object. So I decided I would first check into the word > processors for Linux (OpenOffice and Kword). In the windows world working > with word processors is easy and I thought I could do the same with Linux. > But what I'm discovering is a real mess. Kword uses "dcop" and looks like > it might work. But kword has at least two issues: > 1. It is not the current leader - OpenOffice is. > 2. It is based on frames and not the standard text as other word > processors. 3. (not sure this is right) It appears that dcop will be > replaced with dbus. > > OpenOffice also has several ways to be automated. > 1. Use UNO - something I don't understand and find it hard to follow the > programming examples (mostly the C++ stuff). > > 2. Star basic - but again find little information - but it still looks like > I need to at least use some sort of UNO call to start the process. > > 3. There is something called URE that is a compiled and a run time version > of UNO. Again almost no information. > > The problem that worries me the most is the issue of getting a wrapper into > Gambas for either UNO or URE. > > So what do I do? That is the question! Anyone have a suggestion? Yes :-) The simpler for me (and I would do that if I had to make a report) is to make an OpenOffice document that you will use as a template, by putting some markups inside where you want to put your data. Then you save your document, you take the resulting file, you unzip it, and you find the xml file that contain your markups. Then you replace the markups by your data (you will have of course to duplicate some xml structures, if you have to replace for example one line of markups by several lines of data). Then you zip back the file, and you should get the result in OpenOffice. Don't forget that xml is encoded in UTF-8. Finally, it is "just" a matter of dealing with 'zip', 'unzip' and text file manipulation in Gambas. And you have to understand the xml OpenOffice format file, but just the part where you have to put your data. Otherwise, this format is documented, so you have to read the doc to understand what you can do. Try it and tell me if it really works :-) Regards, -- Benoit Minisini From fidojones at ...805... Tue Jan 10 19:09:57 2006 From: fidojones at ...805... (Lorenzo Tejera) Date: Tue, 10 Jan 2006 19:09:57 +0100 (CET) Subject: [Gambas-user] Wanted String got Blob Instead gambas 1.9.23 Message-ID: <53283.85.155.40.83.1136916597.squirrel@...1316...> Errrrrr.... Probing the last version, some software who works fine, now said: Wanted String got Blob Instead and my Field is a Mediumtext!!! Mysql server version: 5.0.18-Debian_1-log Any idea Benoit? From jfabiani at ...1109... Tue Jan 10 19:18:25 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 10 Jan 2006 10:18:25 -0800 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601101822.29044.gambas@...1...> References: <200601091911.23117.jfabiani@...1109...> <200601100910.48601.jfabiani@...1109...> <200601101822.29044.gambas@...1...> Message-ID: <200601101018.25436.jfabiani@...1109...> On Tuesday 10 January 2006 09:22, Benoit Minisini wrote: > On Tuesday 10 January 2006 18:10, johnf wrote: > > On Tuesday 10 January 2006 01:29, ron wrote: > > > On Tuesday 10 January 2006 04:22, johnf wrote: > > > > On Monday 09 January 2006 19:11, johnf wrote: > > > > > Hi, > > > > > I did not find an example of using DCOP anywhere (or am I just > > > > > missing it). I'd like to run kword. > > > > > > > > > > Thanks > > > > > John > > > > > > > > Ok I just found kate (I did not know what kate was until now because > > > > I didn't notice it was on the list of demo's). But where can I find > > > > out about the functions for kword - like the functions found in the > > > > kate demo? > > > > > > > > John > > > > > > You can use 'kdcop' to see something, but how exactly to use and > > > then with gambas is not pretty to find. > > > > > > For dcop main info you must go to developer.kde.org is my best guess > > > > I have discovered that kdcop does not display anything with respect to > > "kword". > > You must launch kword so that it is displayed in the kdcop list. > > > But I did find an old article describing how to use the dcop at > > the command line. Later I'll provide a few commands for dcop. > > > > But here is the basic issue. I need some sort of report writer that will > > provide an invoice, and general reports. It has to work (or made to > > work) with a result object. So I decided I would first check into the > > word processors for Linux (OpenOffice and Kword). In the windows world > > working with word processors is easy and I thought I could do the same > > with Linux. But what I'm discovering is a real mess. Kword uses "dcop" > > and looks like it might work. But kword has at least two issues: > > 1. It is not the current leader - OpenOffice is. > > 2. It is based on frames and not the standard text as other word > > processors. 3. (not sure this is right) It appears that dcop will be > > replaced with dbus. > > > > OpenOffice also has several ways to be automated. > > 1. Use UNO - something I don't understand and find it hard to follow the > > programming examples (mostly the C++ stuff). > > > > 2. Star basic - but again find little information - but it still looks > > like I need to at least use some sort of UNO call to start the process. > > > > 3. There is something called URE that is a compiled and a run time > > version of UNO. Again almost no information. > > > > The problem that worries me the most is the issue of getting a wrapper > > into Gambas for either UNO or URE. > > > > So what do I do? That is the question! Anyone have a suggestion? > > Yes :-) > > The simpler for me (and I would do that if I had to make a report) is to > make an OpenOffice document that you will use as a template, by putting > some markups inside where you want to put your data. > > Then you save your document, you take the resulting file, you unzip it, and > you find the xml file that contain your markups. Then you replace the > markups by your data (you will have of course to duplicate some xml > structures, if you have to replace for example one line of markups by > several lines of data). Then you zip back the file, and you should get the > result in OpenOffice. > > Don't forget that xml is encoded in UTF-8. > > Finally, it is "just" a matter of dealing with 'zip', 'unzip' and text file > manipulation in Gambas. And you have to understand the xml OpenOffice > format file, but just the part where you have to put your data. Otherwise, > this format is documented, so you have to read the doc to understand what > you can do. > > Try it and tell me if it really works :-) > > Regards, My kdcop does not display information on kword. On other stuff yes like kate but not kword. I had to use dcop from the command line. SUSE 10.0. Your suggestion on the editing of the saved XML (btw it is a jar with different sub-levels) can be done and is what I was going to attempt. But how do I control OpenOffice so that the printing of the invoice is transparent to the user. I want the user to click and have the document print. I do this sort of thing from windows often (mostly for mail merge type of things). So I think I still need a way to control openoffice. Or I could attempt to program the printer directly by creating a postscript file and then just printing it. CUPS will handle the conversion to the printer. But this sounds very difficult! Maybe I could use a word processor to create the postscript document and then edit that?????? I saw that someone had started on a report writer but I did not see that anything was really done. Thanks for the suggestion. John From nando_f at ...951... Tue Jan 10 20:10:45 2006 From: nando_f at ...951... (nando) Date: Tue, 10 Jan 2006 14:10:45 -0500 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <200601101844.27201.abidoo.too@...11...> References: <20051208113215.10646.qmail@...1268...> <43C12084.9040302@...1126...> <43C2A773.7050909@...1126...> <200601101844.27201.abidoo.too@...11...> Message-ID: <20060110190407.M33657@...951...> Here's how I do multiple variables into 1 file (v 1.0.6) DIM i AS INTEGER DIM s AS STRING DIM q as SHORT DIM hfile AS FILE OPEN "/home/folder1/my_vars/" FOR WRITE AS #hfile WRITE #hfile, i WRITE #hfile, s, 3 WRITE #hfile, q CLOSE hfile ............ The 9 byte data file is of the following format: Offset +0 +1 +2 +3 --> contains a 4 byte integer Offset +4 +5 +6 --> contains 3 bytes corresponding to 's' 3 chars long Offset +7 +8 --> contains a 2 byte integer -Fernando ---------- Original Message ----------- From: Muriel Bodard To: gambas-user at lists.sourceforge.net Sent: Tue, 10 Jan 2006 18:44:27 +0100 Subject: Re: [Gambas-user] Saving & Loading multible Variables > Le Lundi 09 Janvier 2006 19:12, Scott a ?crit : > > Hi again, > > > > I found a walk around my problem with saving and loading multiple > > variables. It is simple to save and load a single variable, so I simply > > saved each variable to a different file. It is a little messy, but it > > works; and in the end that is what really matters :) If anyone can > > still tell me how to save multiple variables into a single file, that > > would be nice. > > > > I have placed the code down I used in a test program that works just > > in case other people are having the same problem and don't mind my quick > > fix to this problem. I even added a bit in to save the files to a > > specific folder and to create that folder if it does not exist. > > > > PUBLIC SUB Save_Click() > > > > DIM a AS String > > DIM b AS String > > DIM c AS String > > DIM d AS String > > DIM fe AS Boolean > > > > fe = Exist ( system.Home &/"savetest" ) > > IF fe = FALSE THEN MKDIR system.Home &/"savetest" > > > > a = textbox1.Text > > b = textbox2.Text > > c = textbox3.Text > > d = textbox4.Text > > > > File.Save(system.Home &/"savetest/testa.txt", a) > > File.Save(system.Home &/"savetest/testb.txt", b) > > File.Save(system.Home &/"savetest/testc.txt", c) > > File.Save(system.Home &/"savetest/testd.txt", d) > > > > END > > > > PUBLIC SUB Load_Click() > > > > DIM a AS String > > DIM b AS String > > DIM c AS String > > DIM d AS String > > > > a = File.Load(system.Home &/"savetest/testa.txt") > > b = File.Load(system.Home &/"savetest/testb.txt") > > c = File.Load(system.Home &/"savetest/testc.txt") > > d = File.Load(system.Home &/"savetest/testd.txt") > > > > textbox5.Text = a > > textbox6.Text = b > > textbox7.Text = c > > textbox8.Text = d > > > > END > > ARRRRRGH ! > > 8?O What is that ? > > Look : > Private arsValues as String[] > > Public sub Main() > Dim s as string > > arsValue = New String[] > > arsValue.Add("Val1") > arsValue.Add("Val2") > arsValue.Add("Val3") > arsValue.Add("Val4") > > Save > > arsValue.Clear > > Load > > For each s in arsValue > Print s > Next > > End > > Public Sub Save() > File.Save(system.Home &/"savetest/testd.txt", arsValue.Join("\n")) > End > > Public Sub Load() > arsValue =Split( File.Load(system.Home &/"savetest/testd.txt"), "\n") > End > > Never The less gambas have a setting system > > Use it ! > > Private MySetting as Setting > > in a sub... > > MySetting = New Setting(system.Home &/"savetest/testd.txt") > > Setting["Val1"] = Val1 > Setting["Val2"] = Val2 > etc... > Setting.Save > > To LoadSetting: > > Val1 = Setting["Val1"] > etc > > to remove a setting if i remember good... > > Setting["Val1"] = Null > > Regards, > Fabien Bodard > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > [UTF-8?]http://ads.osdn.com/?ad_idv37&alloc_id865&op?k > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From sourceforge-raindog2 at ...94... Tue Jan 10 20:23:23 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 10 Jan 2006 14:23:23 -0500 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601101018.25436.jfabiani@...1109...> References: <200601091911.23117.jfabiani@...1109...> <200601101822.29044.gambas@...1...> <200601101018.25436.jfabiani@...1109...> Message-ID: <200601101423.23549.sourceforge-raindog2@...94...> On Tue January 10 2006 13:18, johnf wrote: > Your suggestion on the editing of the saved XML (btw it is a > jar with different sub-levels) can be done and is what I was There's a subdirectory in the zip file (all jar files are zip files), but as of yet, I have never had to edit any of the files in that subdirectory (which is just where they put the manifest of files contained within the zip file, in XML format.) If I wanted to add a graphic, I would have to edit manifest.xml in the subdirectory. > going to attempt. But how do I control OpenOffice so that the > printing of the invoice is transparent to the user. I want > the user to click and have the document print. I do this sort I have done this before using soffice's command line options. I think it's something like soffice -invisible -p document.odt Do "soffice -help" to get more info, including the syntax for specifying a printer. > Maybe I could use a word processor to create the > postscript document and then edit that?????? I've done this too. Postscript files are programs with a syntax that's like a cross between LISP (tons of parentheses) and FORTH (reverse polish notation, i.e. "a b +"). You probably want to avoid trying this if possible, because it's very easy to make postscript files that cause acroread and ghostscript barf. > I saw that someone had started on a report writer but I did > not see that anything was really done. If you were going so far as considering the use of raw postscript, I really think you'll be pleased with the results of using the Draw class to write to a printer object; I have implemented a number of reports this way already. You need to track your X and Y position and write methods to automatically advance the "cursor" and add new pages, etc., but the stuff I have done for my clients has been very sharp-looking. And if you're just doing reports, it seems possible to me that you'd be able to generate reports in Kugar's format (also xml, but I think it uses flat files rather than jars) and then print them just as you would with Openoffice, except that it would be faster. But I really think you ought to look into the "draw to printer object" approach. Rob From jfabiani at ...1109... Tue Jan 10 21:55:44 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 10 Jan 2006 12:55:44 -0800 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601101423.23549.sourceforge-raindog2@...94...> References: <200601091911.23117.jfabiani@...1109...> <200601101018.25436.jfabiani@...1109...> <200601101423.23549.sourceforge-raindog2@...94...> Message-ID: <200601101255.44976.jfabiani@...1109...> On Tuesday 10 January 2006 11:23, Rob Kudla wrote: > On Tue January 10 2006 13:18, johnf wrote: > > Your suggestion on the editing of the saved XML (btw it is a > > jar with different sub-levels) can be done and is what I was > > There's a subdirectory in the zip file (all jar files are zip > files), but as of yet, I have never had to edit any of the files > in that subdirectory (which is just where they put the manifest > of files contained within the zip file, in XML format.) If I > wanted to add a graphic, I would have to edit manifest.xml in > the subdirectory. > > > going to attempt. But how do I control OpenOffice so that the > > printing of the invoice is transparent to the user. I want > > the user to click and have the document print. I do this sort > > I have done this before using soffice's command line options. I > think it's something like > > soffice -invisible -p document.odt > > Do "soffice -help" to get more info, including the syntax for > specifying a printer. > > > Maybe I could use a word processor to create the > > postscript document and then edit that?????? > > I've done this too. Postscript files are programs with a syntax > that's like a cross between LISP (tons of parentheses) and FORTH > (reverse polish notation, i.e. "a b +"). You probably want to > avoid trying this if possible, because it's very easy to make > postscript files that cause acroread and ghostscript barf. > > > I saw that someone had started on a report writer but I did > > not see that anything was really done. > > If you were going so far as considering the use of raw > postscript, I really think you'll be pleased with the results of > using the Draw class to write to a printer object; I have > implemented a number of reports this way already. You need to > track your X and Y position and write methods to automatically > advance the "cursor" and add new pages, etc., but the stuff I > have done for my clients has been very sharp-looking. > > And if you're just doing reports, it seems possible to me that > you'd be able to generate reports in Kugar's format (also xml, > but I think it uses flat files rather than jars) and then print > them just as you would with Openoffice, except that it would be > faster. But I really think you ought to look into the "draw to > printer object" approach. > > Rob The soffice thing looks like it might work. The fact that I'm a newbie with Linux and Gambas is sure evident. I did not even think about some sort of command line interface for OpenOffice. Of course I still have to edit the (or copy and edit) the xml file. I wonder if it would be possible to store the xml in the database? I would think I could using a text field to get that done. But I also like the idea of using the Draw class. Do you have an example of creating a report and then printing. It does not have to work just something I can sort of follow. The datareport demo uses html for output. But I have not found anything on how to print directly to a printer (without using a browser). Are there browers that will allow command line printing of a html document? John From sclewin at ...1126... Tue Jan 10 22:35:17 2006 From: sclewin at ...1126... (Scott) Date: Tue, 10 Jan 2006 16:35:17 -0500 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <20060110190407.M33657@...951...> References: <20051208113215.10646.qmail@...1268...> <43C12084.9040302@...1126...> <43C2A773.7050909@...1126...> <200601101844.27201.abidoo.too@...11...> <20060110190407.M33657@...951...> Message-ID: <43C42895.6020905@...1126...> nando wrote: > Here's how I do multiple variables into 1 file (v 1.0.6) > > > DIM i AS INTEGER > DIM s AS STRING > DIM q as SHORT > DIM hfile AS FILE > > OPEN "/home/folder1/my_vars/" FOR WRITE AS #hfile > WRITE #hfile, i > WRITE #hfile, s, 3 > WRITE #hfile, q > CLOSE hfile > That is how i ended up doing the multiple variables. Do you need to put down the string length ("WRITE #hfile, s, *3*") I did not understand that too well. -- Your friend, Scott "Do to others as you would have them do to you." Luke 6:31 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Wed Jan 11 00:44:41 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jan 2006 00:44:41 +0100 Subject: [Gambas-user] Wanted String got Blob Instead gambas 1.9.23 In-Reply-To: <53283.85.155.40.83.1136916597.squirrel@...1316...> References: <53283.85.155.40.83.1136916597.squirrel@...1316...> Message-ID: <200601110044.41515.gambas@...1...> On Tuesday 10 January 2006 19:09, Lorenzo Tejera wrote: > Errrrrr.... > > Probing the last version, some software who works fine, now said: > > Wanted String got Blob Instead > > and my Field is a Mediumtext!!! > > Mysql server version: 5.0.18-Debian_1-log > > Any idea Benoit? > In mySQL (I dislike him more and more), there is no difference between TEXT fields and BLOB fields. So to implement it in the gambas database driver, I decided to use "LONG TEXT". It is strange that you tell that your field is a "MEDIUM TEXT". Logically, only "LONG TEXT" are recognized as BLOB by the gambas mysql driver... Are you sure that your field is "MEDIUM TEXT" ? I can make a mistake of course, as sometimes mySQL identifies the datatype of a field precisely (TINY, MEDIUM, LONG TEXT/BLOB), and sometimes it just tells you that it is a TEXT field, and I have to check the maximum length of the data to know if it is TINY, MEDIUM, or LONG. Sorry for that! :-) -- Benoit Minisini From christian.faurebouvard at ...357... Mon Jan 9 12:03:27 2006 From: christian.faurebouvard at ...357... (Christian Faure) Date: Mon, 9 Jan 2006 08:03:27 -0300 Subject: [Gambas-user] newbie-dumb ? how do I inherit In-Reply-To: <200601062049.11026.gambasfr@...11...> References: <200601060807.33943.jfabiani@...1109...> <200601062049.11026.gambasfr@...11...> Message-ID: <200601090803.28403.christian.faurebouvard@...357...> El Viernes 06 Enero 2006 16:49, Fabien Bodard escribi?: > Le Vendredi 6 Janvier 2006 17:07, johnf a ?crit?: > > Hi, > > > > I'm sure everyone knows how to do this but I don't see it? > > > > How do I create a new class that can inherit from a form (subclass from a > > form)? Also how can I use the super-class methods? If the information is > > available on the web just point me. > > At the top of your new class : > > INHERITS Form > > > To use the super-class method : > > SUPER.Method... > > http://gambasdoc.org/help/lang/inherits > http://gambasdoc.org/help/lang/super > > > Fabien > > > John > > In http://gambasdoc.org/help/lang/inherits help i've found: ------------- Note that you can't use INHERITS in a form class file, because forms already inherits the Form class! ----------- subclass from a form is possible? From fidojones at ...805... Wed Jan 11 01:14:39 2006 From: fidojones at ...805... (Lorenzo Tejera) Date: Wed, 11 Jan 2006 01:14:39 +0100 (CET) Subject: [Gambas-user] Wanted String got Blob Instead gambas 1.9.23 In-Reply-To: <200601110044.41515.gambas@...1...> References: <53283.85.155.40.83.1136916597.squirrel@...1316...> <200601110044.41515.gambas@...1...> Message-ID: <59957.85.155.40.83.1136938479.squirrel@...1316...> Here is the table definition: CREATE TABLE `tbclientes` ( `ID` int(16) NOT NULL auto_increment, `Nombre` varchar(200) NOT NULL default '', `NIF` varchar(50) NOT NULL default '', `Direccion` mediumtext NOT NULL, `Telefono1` varchar(50) NOT NULL default '', `Telefono2` varchar(50) NOT NULL default '', PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`) ) ENGINE=MyISAM; `Direccion` mediumtext NOT NULL, In Database Manager not appear any data in this field?? Could be a problem with new mysql 5.0 server? On Mie, Enero 11, 2006 00:44, Benoit Minisini wrote: > On Tuesday 10 January 2006 19:09, Lorenzo Tejera wrote: > >> Errrrrr.... >> >> >> Probing the last version, some software who works fine, now said: >> >> >> Wanted String got Blob Instead >> >> >> and my Field is a Mediumtext!!! >> >> Mysql server version: 5.0.18-Debian_1-log >> >> >> Any idea Benoit? >> >> > > In mySQL (I dislike him more and more), there is no difference between > TEXT > fields and BLOB fields. So to implement it in the gambas database driver, > I > decided to use "LONG TEXT". > > It is strange that you tell that your field is a "MEDIUM TEXT". > Logically, > only "LONG TEXT" are recognized as BLOB by the gambas mysql driver... > > Are you sure that your field is "MEDIUM TEXT" ? > > > I can make a mistake of course, as sometimes mySQL identifies the > datatype of a field precisely (TINY, MEDIUM, LONG TEXT/BLOB), and > sometimes it just tells you that it is a TEXT field, and I have to check > the maximum length of the data to know if it is TINY, MEDIUM, or LONG. > > Sorry for that! :-) > > > -- > Benoit Minisini > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sourceforge-raindog2 at ...94... Wed Jan 11 02:31:31 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 10 Jan 2006 20:31:31 -0500 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601101255.44976.jfabiani@...1109...> References: <200601091911.23117.jfabiani@...1109...> <200601101423.23549.sourceforge-raindog2@...94...> <200601101255.44976.jfabiani@...1109...> Message-ID: <200601102031.31562.sourceforge-raindog2@...94...> On Tue January 10 2006 15:55, johnf wrote: > edit) the xml file. I wonder if it would be possible to store > the xml in the database? I would think I could using a text > field to get that done. Yeah, that's exactly what I've done in the past. > But I also like the idea of using the Draw class. Do you have > an example of creating a report and then printing. It does Well, here's a minimal example.... pseudo-code since I don't have Gambas on the machine I'm writing this on.... public PrintYPos as integer public RecCount as integer public sub PrintReport(r as Result) if r.eof then return Draw.Begin(Printer) PrintHeader printypos = 100 do while not r.eof inc RecCount PrintRow(r) loop PrintFooter Draw.End end public sub PrintHeader Draw.Font.Size = 18 Draw.Font.Bold = True Draw.Text("This is my report",10,10) end public sub PrintRow(r as Result) Draw.Font.Size = 10 Draw.Font.Bold = False Draw.Text(r["Name"], 100, PrintYPos) Draw.Text(r["Address"], 300, PrintYPos) Draw.Text(r["Phone"], 500, PrintYPos) PrintYPos = PrintYPos + 15 if PrintYPos > (Printer.Height - 30) then Printer.NewPage ' if we had a page header we'd reprint it here PrintYPos = 100 endif end public sub PrintFooter Draw.Font.Size = 18 Draw.Font.Bold = True Draw.Text("Number of records printed: " & RecCount,10,printer.height - 30) end Rob From karl at ...1303... Wed Jan 11 03:47:58 2006 From: karl at ...1303... (Karl Martindale) Date: Wed, 11 Jan 2006 13:47:58 +1100 Subject: [Gambas-user] Cannot find driver for database: postgresql In-Reply-To: <43BDAC81.2000301@...1303...> References: <43BA750D.26074.103E042@...40...> <200601050757.06826.jfabiani@...1109...> <43BDA68A.4080204@...1303...> <200601060025.41600.gambas@...1...> <43BDAC81.2000301@...1303...> Message-ID: <43C471DE.1050506@...1303...> Hi All, Thanks for pointing out strace Benoit, I'd never used it before but the results it produces are very interesting. I thought there might be a problem in the driver because it appeared the driver file gb.db.postgresql.so was being located successfully: ... cut .... access("/usr/local/lib/gambas2/gb.db.postgresql.so", F_OK) = 0 access("/usr/local/lib/gambas2/gb.db.postgresql.gambas", F_OK) = -1 ENOENT (No such file or directory) access("/usr/local/lib/gambas2/gb.db.postgresql.so", F_OK) = 0 open("/usr/local/lib/gambas2/gb.db.postgresql.so", O_RDONLY) = 7 read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\16\0\000"..., 1024) = ... cut .... What I failed to notice was the fact that another file was being looked for and not found a few lines down: ... cut .... open("/lib/libpq.so.3", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libpq.so.3", O_RDONLY) = -1 ENOENT (No such file or directory) ... cut .... So one symbolic link later: ln -s /usr/local/pgsql/lib/libpq.so.3 /usr/lib/libpq.so.3 and the driver loads successfully. Thanks for reading, Karl. Karl Martindale wrote: > No it failed in the 'normal' way on this machine > > Benoit Minisini wrote: > >> On Friday 06 January 2006 00:06, Karl Martindale wrote: >> >>> Hi John, Benoit, everybody, >>> >>> I apologise if this is a double post, but I sent another message, >>> much like >>> this one with the trace attached as a gzip archive but it hasn't >>> appeared. So here it is, uncompressed. >>> >>> Yes, there's only one installation of gambas2 on this machine. >>> The version of postgres that's running is 7.4.6 >>> >>> Find attached what I think is the trace you're after, I ran: >>> strace gbx2 &> DBTest.trace >>> in the project directory. The program ran and behaved 'normally'. >>> >>> -Karl. >>> >> >> >> So it works? >> > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jfabiani at ...1109... Wed Jan 11 03:56:11 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 10 Jan 2006 18:56:11 -0800 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601102031.31562.sourceforge-raindog2@...94...> References: <200601091911.23117.jfabiani@...1109...> <200601101255.44976.jfabiani@...1109...> <200601102031.31562.sourceforge-raindog2@...94...> Message-ID: <200601101856.11788.jfabiani@...1109...> On Tuesday 10 January 2006 17:31, Rob Kudla wrote: > On Tue January 10 2006 15:55, johnf wrote: > > edit) the xml file. I wonder if it would be possible to store > > the xml in the database? I would think I could using a text > > field to get that done. > > Yeah, that's exactly what I've done in the past. > > > But I also like the idea of using the Draw class. Do you have > > an example of creating a report and then printing. It does > > Well, here's a minimal example.... pseudo-code since I don't have > Gambas on the machine I'm writing this on.... > > public PrintYPos as integer > public RecCount as integer > > public sub PrintReport(r as Result) > if r.eof then return > Draw.Begin(Printer) > PrintHeader > printypos = 100 > do while not r.eof > inc RecCount > PrintRow(r) > loop > PrintFooter > Draw.End > end > > public sub PrintHeader > Draw.Font.Size = 18 > Draw.Font.Bold = True > Draw.Text("This is my report",10,10) > end > > public sub PrintRow(r as Result) > Draw.Font.Size = 10 > Draw.Font.Bold = False > Draw.Text(r["Name"], 100, PrintYPos) > Draw.Text(r["Address"], 300, PrintYPos) > Draw.Text(r["Phone"], 500, PrintYPos) > PrintYPos = PrintYPos + 15 > if PrintYPos > (Printer.Height - 30) then > Printer.NewPage > ' if we had a page header we'd reprint it here > PrintYPos = 100 > endif > end > > public sub PrintFooter > Draw.Font.Size = 18 > Draw.Font.Bold = True > Draw.Text("Number of records printed: " & > RecCount,10,printer.height - 30) > end > > Rob I think the draw class appears the better way to go. thanks for the code... John From sourceforge-raindog2 at ...94... Wed Jan 11 06:19:48 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 11 Jan 2006 00:19:48 -0500 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601101856.11788.jfabiani@...1109...> References: <200601091911.23117.jfabiani@...1109...> <200601102031.31562.sourceforge-raindog2@...94...> <200601101856.11788.jfabiani@...1109...> Message-ID: <200601110019.48641.sourceforge-raindog2@...94...> On Tue January 10 2006 21:56, johnf wrote: > I think the draw class appears the better way to go. thanks > for the code... You're welcome.... Sorry about the infinite DO loop up there btw, you'll need an r.movenext in there somewhere. (Up to my eyeballs in perl DBI programming, where the records are fetched as part of the test for EOF.) Rob From gambas at ...1... Wed Jan 11 07:52:49 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jan 2006 07:52:49 +0100 Subject: [Gambas-user] newbie-dumb ? how do I inherit In-Reply-To: <200601090803.28403.christian.faurebouvard@...357...> References: <200601060807.33943.jfabiani@...1109...> <200601062049.11026.gambasfr@...11...> <200601090803.28403.christian.faurebouvard@...357...> Message-ID: <200601110752.49363.gambas@...1...> On Monday 09 January 2006 12:03, Christian Faure wrote: > El Viernes 06 Enero 2006 16:49, Fabien Bodard escribi?: > > Le Vendredi 6 Janvier 2006 17:07, johnf a ?crit?: > > > Hi, > > > > > > I'm sure everyone knows how to do this but I don't see it? > > > > > > How do I create a new class that can inherit from a form (subclass from > > > a form)? Also how can I use the super-class methods? If the > > > information is available on the web just point me. > > > > At the top of your new class : > > > > INHERITS Form > > > > > > To use the super-class method : > > > > SUPER.Method... > > > > http://gambasdoc.org/help/lang/inherits > > http://gambasdoc.org/help/lang/super > > > > > > Fabien > > > > > John > > In http://gambasdoc.org/help/lang/inherits help i've found: > ------------- > Note that you can't use INHERITS in a form class file, because forms > already inherits the Form class! > ----------- > subclass from a form is possible? > Yes it is. -- Benoit Minisini From gambas at ...1... Wed Jan 11 07:55:37 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jan 2006 07:55:37 +0100 Subject: [Gambas-user] Anybody have an example using DCOP? In-Reply-To: <200601110019.48641.sourceforge-raindog2@...94...> References: <200601091911.23117.jfabiani@...1109...> <200601101856.11788.jfabiani@...1109...> <200601110019.48641.sourceforge-raindog2@...94...> Message-ID: <200601110755.38014.gambas@...1...> On Wednesday 11 January 2006 06:19, Rob Kudla wrote: > On Tue January 10 2006 21:56, johnf wrote: > > I think the draw class appears the better way to go. thanks > > for the code... > > You're welcome.... Sorry about the infinite DO loop up there btw, > you'll need an r.movenext in there somewhere. (Up to my > eyeballs in perl DBI programming, where the records are fetched > as part of the test for EOF.) > > Rob > You have the choice... :-) You can do: WHILE rResult.Available ... rResult.MoveNext WEND Or you can do: IF rResult.Available THEN DO ... WHILE NOT rResult.MoveNext() ENDIF Regards, -- Benoit Minisini From ronstk at ...239... Wed Jan 11 09:10:56 2006 From: ronstk at ...239... (ron) Date: Wed, 11 Jan 2006 09:10:56 +0100 Subject: [Gambas-user] newbie-dumb ? how do I inherit In-Reply-To: <200601110752.49363.gambas@...1...> References: <200601060807.33943.jfabiani@...1109...> <200601090803.28403.christian.faurebouvard@...357...> <200601110752.49363.gambas@...1...> Message-ID: <200601110910.57251.ronstk@...239...> On Wednesday 11 January 2006 07:52, Benoit Minisini wrote: > On Monday 09 January 2006 12:03, Christian Faure wrote: > > El Viernes 06 Enero 2006 16:49, Fabien Bodard escribi?: > > > Le Vendredi 6 Janvier 2006 17:07, johnf a ?crit?: ---8<----- > > In http://gambasdoc.org/help/lang/inherits help i've found: > > ------------- > > Note that you can't use INHERITS in a form class file, because forms > > already inherits the Form class! > > ----------- > > subclass from a form is possible? > > > > Yes it is. > May be ??? You can't INHERIT in a new class/object the class/object has already inherit on. This way a, MyPrivate1Form has already inherit on 'Form' and can not. 'Class MyPrivate1Form 'INHERIT Form <--- can not (is already by own object class type) and 'Class MyPrivate2Form INHERIT MyPrivate1Form <--- can be done. From isy21 at ...1082... Wed Jan 11 11:07:49 2006 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 11 Jan 2006 17:07:49 +0700 Subject: [Gambas-user] KUGAR Message-ID: <200601111707.50047.isy21@...1082...> Hi all, I try to use KUGAR report. the problem is how i put a calculate field in *.kud ? Can anyone, update myrcstrx.kud to include calculated field ? I already put calculate in subtotal and total, i already try to put calculate field in rcstrx.kud, but no luck. I try to search example in kugar with calculate field, result is same...not found I attach my kugar report file. -- Thanks in advance. Regards, Ignatius Syofian -------------- next part -------------- A non-text attachment was scrubbed... Name: rcstrx.kud Type: application/x-kugar Size: 1052 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: rcstrx.kut Type: application/x-kudesigner Size: 6446 bytes Desc: not available URL: From nigel at ...38... Wed Jan 11 14:59:24 2006 From: nigel at ...38... (nigel at ...38...) Date: Wed, 11 Jan 2006 14:59:24 +0100 (CET) Subject: [Gambas-user] Wanted String got Blob Instead gambas 1.9.23 Message-ID: <8989398.1136987964391.JavaMail.www@...1133...> Benoit, From jscops at ...11... Wed Jan 11 16:13:15 2006 From: jscops at ...11... (Jacky) Date: Wed, 11 Jan 2006 16:13:15 +0100 Subject: [Gambas-user] KUGAR In-Reply-To: <200601111707.50047.isy21@...1082...> References: <200601111707.50047.isy21@...1082...> Message-ID: <200601111613.15506.jscops@...11...> Le Mercredi 11 Janvier 2006 11:07, Ignatius Syofian a ?crit?: > Hi all, > > I try to use KUGAR report. > the problem is how i put a calculate field in *.kud ? > Can anyone, update myrcstrx.kud to include calculated field ? > > I already put calculate in subtotal and total, i already try to put > calculate field in rcstrx.kud, but no luck. > > I try to search example in kugar with calculate field, result is same...not > found > > > I attach my kugar report file. In Kugar you use a calculate field for simple calculation, (to numerate your page for ex. for this , use the Kugar item 'calculated field' ) For more complexe calculation use Gambas and put your result in your *.kud as you make with 'cash', 'debit', and 'card'. Is clear now ? ~? Jack ?~ From gambas at ...1... Wed Jan 11 16:49:35 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jan 2006 16:49:35 +0100 Subject: [Gambas-user] newbie-dumb ? how do I inherit In-Reply-To: <200601110910.57251.ronstk@...239...> References: <200601060807.33943.jfabiani@...1109...> <200601110752.49363.gambas@...1...> <200601110910.57251.ronstk@...239...> Message-ID: <200601111649.36357.gambas@...1...> On Wednesday 11 January 2006 09:10, ron wrote: > On Wednesday 11 January 2006 07:52, Benoit Minisini wrote: > > On Monday 09 January 2006 12:03, Christian Faure wrote: > > > El Viernes 06 Enero 2006 16:49, Fabien Bodard escribi?: > > > > Le Vendredi 6 Janvier 2006 17:07, johnf a ?crit?: > > ---8<----- > > > > In http://gambasdoc.org/help/lang/inherits help i've found: > > > ------------- > > > Note that you can't use INHERITS in a form class file, because forms > > > already inherits the Form class! > > > ----------- > > > subclass from a form is possible? > > > > Yes it is. > > May be ??? > You can't INHERIT in a new class/object the class/object has already > inherit on. This way a, MyPrivate1Form has already inherit on 'Form' and > can not. > > 'Class MyPrivate1Form > 'INHERIT Form <--- can not (is already by own object class type) > > and > > 'Class MyPrivate2Form > INHERIT MyPrivate1Form <--- can be done. > I thought you asked if you can inherit Form. So I answered yes. You can create a class that begins with "INHERITS Form", like any form you defined in the IDE. Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 11 16:52:57 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jan 2006 16:52:57 +0100 Subject: [Gambas-user] Wanted String got Blob Instead gambas 1.9.23 In-Reply-To: <8989398.1136987964391.JavaMail.www@...1133...> References: <8989398.1136987964391.JavaMail.www@...1133...> Message-ID: <200601111652.57209.gambas@...1...> On Wednesday 11 January 2006 14:59, nigel at ...38... wrote: > Benoit, > > From my reading of MySQL Reference I would say that there is a difference > (http://dev.mysql.com/doc/refman/5.0/en/blob.html) ; > > TINYBLOB, BLOB, MEDIUMBLOB and LONGBLOB are binary strings whilst TINYTEXT, > TEXT, MEDIUMTEXT, LONGTEXT are more akin to CLOB. > > Nigel > I've never read the mysql 5.0 documentation. Maybe now BLOB and TEXT are really different, but they aren't in older versions. If there changes like that, they should be added to the mysql driver. I've just finished a modification on sqlite drivers: now the sqlite2 driver is named gb.db.sqlite2, and the sqlite3 driver is named gb.db.sqlite. Moreover, if you open a sqlite2 database with gb.db.sqlite, the driver automatically tells the gb.db component to use gb.db.sqlite instead (with a new API named 'DB.TryAnother'). So now there is two possibilities: create a new mysql driver for mysql 5.0, or modify the existing driver by testing the database version. Regards, -- Benoit Minisini From nando_f at ...951... Wed Jan 11 17:27:50 2006 From: nando_f at ...951... (nando) Date: Wed, 11 Jan 2006 11:27:50 -0500 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <43C42895.6020905@...1126...> References: <20051208113215.10646.qmail@...1268...> <43C12084.9040302@...1126...> <43C2A773.7050909@...1126...> <200601101844.27201.abidoo.too@...11...> <20060110190407.M33657@...951...> <43C42895.6020905@...1126...> Message-ID: <20060111162416.M2559@...951...> With strings, there are 2 ways. 1) WRITE #hfile, FirstName, 25 <----writes 25B with padding if needed 2) WRITE #hfile, FirstName <----write 4B (binary) Length of the string, then writes the string..ONLY the bytes it actually is. This method cannot be used for fixed record sizes I Use the first method for my Random File Records. (all this information is listed in Wiki) -Fernando ---------- Original Message ----------- From: Scott To: gambas-user at lists.sourceforge.net Sent: Tue, 10 Jan 2006 16:35:17 -0500 Subject: Re: [Gambas-user] Saving & Loading multible Variables > nando wrote: > > Here's how I do multiple variables into 1 file (v 1.0.6) > > > > > > DIM i AS INTEGER > > DIM s AS STRING > > DIM q as SHORT > > DIM hfile AS FILE > > > > OPEN "/home/folder1/my_vars/" FOR WRITE AS #hfile > > WRITE #hfile, i > > WRITE #hfile, s, 3 > > WRITE #hfile, q > > CLOSE hfile > > > That is how i ended up doing the multiple variables. Do you need to > put down the string length ("WRITE #hfile, s, *3*") I did not > understand that too well. > > -- > Your friend, > Scott > > "Do to others as you would have them do to you." > Luke 6:31 ------- End of Original Message ------- From sharmaq at ...927... Wed Jan 11 18:37:07 2006 From: sharmaq at ...927... (SHARMAQ Sistemas) Date: Wed, 11 Jan 2006 15:37:07 -0200 Subject: [Gambas-user] Send Mail In Gambas Message-ID: <00f201c616d5$be143bc0$2398fea9@...1319...> Hello How to i can send a Relat by email in Gambas? Regards Paulo - From Brazil -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfabiani at ...1109... Wed Jan 11 19:02:22 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 11 Jan 2006 10:02:22 -0800 Subject: [Gambas-user] Send Mail In Gambas In-Reply-To: <00f201c616d5$be143bc0$2398fea9@...1319...> References: <00f201c616d5$be143bc0$2398fea9@...1319...> Message-ID: <200601111002.22866.jfabiani@...1109...> On Wednesday 11 January 2006 09:37, SHARMAQ Sistemas wrote: > Hello > > How to i can send a Relat by email in Gambas? > > Regards > Paulo - From Brazil If you are using a dcop app you might want to take a look at the "kdcop" listing available. Make sure you review the automation of kate demo for a better understanding of how you might call the required functions. I.e my kmail program has the following dcop function available: MailTransportSericeIface.sendMessage(Qstring from, QString to,QString subject, ........,QString body) If you are using some app that does not use dcop then I'm not to sure. There may be some way to use the smtp server. Please make sure you check out all available ways. At the moment I have discovered dcop and that might not be the best way. You know I found a new tool - So I now have a hammer and the whole world looks like a nail. John From sourceforge-raindog2 at ...94... Wed Jan 11 19:05:01 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 11 Jan 2006 13:05:01 -0500 Subject: [Gambas-user] Send Mail In Gambas In-Reply-To: <00f201c616d5$be143bc0$2398fea9@...1319...> References: <00f201c616d5$be143bc0$2398fea9@...1319...> Message-ID: <200601111305.01349.sourceforge-raindog2@...94...> On Wed January 11 2006 12:37, SHARMAQ Sistemas wrote: > How to i can send a Relat by email in Gambas? A couple of ways. You can connect to an SMTP server directly and just send the mail using SMTP commands: dim s as new Socket s.Host = "my.mail.server.com.br" s.Port = 25 s.Connect and in the Socket_Ready sub, something like this: dim s as Socket s = LAST print #s, "HELO myhostname.mydomain.com.br\r\n" print #s, "MAIL FROM:\r\n" print #s, "RCPT TO:\r\n" print #s, "DATA\r\n" print #s, "Subject: Test Mail From Gambas\r\n" print #s, "Date: Wed, 11 Jan 2006 15:37:07 -0200\r\n" print #s, "From: my at ...1320...\r\n" print #s, "To: their at ...1320...\r\n" print #s, "\r\n" print #s, "This is the body of the message.\r\n" print #s, "\r\n" print #s, ".\r\n" close s Or you can check for the existence of the "sendmail" program in your user's path, and shell out to that. That's probably the easier way, but in my experience, a sendmail-compatible program isn't installed by default on most Linux distributions anymore. Rob From sclewin at ...1126... Wed Jan 11 19:11:58 2006 From: sclewin at ...1126... (Scott) Date: Wed, 11 Jan 2006 13:11:58 -0500 Subject: [Gambas-user] Saving & Loading multible Variables In-Reply-To: <20060111162416.M2559@...951...> References: <20051208113215.10646.qmail@...1268...> <43C12084.9040302@...1126...> <43C2A773.7050909@...1126...> <200601101844.27201.abidoo.too@...11...> <20060110190407.M33657@...951...> <43C42895.6020905@...1126...> <20060111162416.M2559@...951...> Message-ID: <43C54A6E.6000102@...1126...> nando wrote: > With strings, there are 2 ways. > > 1) WRITE #hfile, FirstName, 25 <----writes 25B with padding if needed > 2) WRITE #hfile, FirstName <----write 4B (binary) Length of the string, > then writes the string..ONLY the bytes it > actually is. This method cannot be used for fixed record sizes > > I Use the first method for my Random File Records. > > (all this information is listed in Wiki) > Thank you, I will check out the wiki on the webpage. -- Your friend, Scott "Do to others as you would have them do to you." Luke 6:31 From jfabiani at ...1109... Wed Jan 11 19:40:22 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 11 Jan 2006 10:40:22 -0800 Subject: [Gambas-user] Send Mail In Gambas In-Reply-To: <200601111305.01349.sourceforge-raindog2@...94...> References: <00f201c616d5$be143bc0$2398fea9@...1319...> <200601111305.01349.sourceforge-raindog2@...94...> Message-ID: <200601111040.22972.jfabiani@...1109...> On Wednesday 11 January 2006 10:05, Rob Kudla wrote: > On Wed January 11 2006 12:37, SHARMAQ Sistemas wrote: > > How to i can send a Relat by email in Gambas? > > A couple of ways. You can connect to an SMTP server directly and > just send the mail using SMTP commands: > > dim s as new Socket > s.Host = "my.mail.server.com.br" > s.Port = 25 > s.Connect > > and in the Socket_Ready sub, something like this: > dim s as Socket > s = LAST > print #s, "HELO myhostname.mydomain.com.br\r\n" > print #s, "MAIL FROM:\r\n" > print #s, "RCPT TO:\r\n" > print #s, "DATA\r\n" > print #s, "Subject: Test Mail From Gambas\r\n" > print #s, "Date: Wed, 11 Jan 2006 15:37:07 -0200\r\n" > print #s, "From: my at ...1320...\r\n" > print #s, "To: their at ...1320...\r\n" > print #s, "\r\n" > print #s, "This is the body of the message.\r\n" > print #s, "\r\n" > print #s, ".\r\n" > close s > > Or you can check for the existence of the "sendmail" program in > your user's path, and shell out to that. That's probably the > easier way, but in my experience, a sendmail-compatible program > isn't installed by default on most Linux distributions anymore. > > Rob I'm really glad you provided that info because my solution depended on a dcop app running. John From kztyrvlq at ...966... Wed Jan 11 21:15:29 2006 From: kztyrvlq at ...966... (A Person) Date: Wed, 11 Jan 2006 16:45:29 -0330 Subject: [Gambas-user] Re: Some Captured, Some Not Message-ID: <43C56761.7010603@...966...> Good Day Benoit . . . The previous code was part of a much larger project and was not really a stand alone module so I created a sample for your attention. I do not know what is happening but the code that I wrote here for you doesn't work at all. Nothing triggers the Label KeyPress or Label KeyRelease events. MouseDown works. Please try this code and tell me what I am doing wrong? I really appreciate it. . . . ' Gambas class file PUBLIC SUB Form_Open() ' requires a form with a label "Label1" ' with no text Label1.SetFocus END PUBLIC SUB Label1_KeyPress() ' F9 (breakpoint) the next line Label1.Caption = "Down " & Key.Code ' It is never tripped END PUBLIC SUB Label1_KeyRelease() ' F9 (breakpoint) the next line Label1.Caption = "Up " & Key.Code ' It is never tripped END PUBLIC SUB Label1_MouseDown() ' to test for focus Label1.Caption = "MouseDown" END PUBLIC SUB Timer1_Timer() 'set to interval 10 Label1.SetFocus END . . . Thanks Paul From gambas at ...1... Wed Jan 11 23:37:53 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jan 2006 23:37:53 +0100 Subject: [Gambas-user] Send Mail In Gambas In-Reply-To: <200601111002.22866.jfabiani@...1109...> References: <00f201c616d5$be143bc0$2398fea9@...1319...> <200601111002.22866.jfabiani@...1109...> Message-ID: <200601112337.53549.gambas@...1...> On Wednesday 11 January 2006 19:02, johnf wrote: > You know I found a new tool - So I now have a > hammer and the whole world looks like a nail. > Beautiful phrase :-) Anyway, making a SMTPClient class / control for Gambas would be a good idea. -- Benoit Minisini From gambas at ...1... Wed Jan 11 23:39:44 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 11 Jan 2006 23:39:44 +0100 Subject: [Gambas-user] Re: Some Captured, Some Not In-Reply-To: <43C56761.7010603@...966...> References: <43C56761.7010603@...966...> Message-ID: <200601112339.44860.gambas@...1...> On Wednesday 11 January 2006 21:15, A Person wrote: > Good Day Benoit . . . > > The previous code was part of a much larger project and was not really a > stand alone module so I created a sample for your attention. > > I do not know what is happening but the code that I wrote here for you > doesn't work at all. > > Nothing triggers the Label KeyPress or Label KeyRelease events. > MouseDown works. > > Please try this code and tell me what I am doing wrong? > > I really appreciate it. > > . . . > ' Gambas class file > > PUBLIC SUB Form_Open() > > ' requires a form with a label "Label1" > ' with no text > Label1.SetFocus > > END > PUBLIC SUB Label1_KeyPress() > > ' F9 (breakpoint) the next line > Label1.Caption = "Down " & Key.Code > ' It is never tripped > > END > PUBLIC SUB Label1_KeyRelease() > > ' F9 (breakpoint) the next line > Label1.Caption = "Up " & Key.Code > ' It is never tripped > > END > PUBLIC SUB Label1_MouseDown() > > ' to test for focus > Label1.Caption = "MouseDown" > > END > PUBLIC SUB Timer1_Timer() > > 'set to interval 10 > Label1.SetFocus > > END > . . . > > Thanks > > Paul > A Label only displays things, and cannot get focus, and so I think it never raises keyboard events. Regards, -- Benoit Minisini From jfabiani at ...1109... Thu Jan 12 00:27:24 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 11 Jan 2006 15:27:24 -0800 Subject: [Gambas-user] Re: Some Captured, Some Not In-Reply-To: <200601112339.44860.gambas@...1...> References: <43C56761.7010603@...966...> <200601112339.44860.gambas@...1...> Message-ID: <200601111527.24552.jfabiani@...1109...> On Wednesday 11 January 2006 14:39, Benoit Minisini wrote: > On Wednesday 11 January 2006 21:15, A Person wrote: > > Good Day Benoit . . . > > > > The previous code was part of a much larger project and was not really a > > stand alone module so I created a sample for your attention. > > > > I do not know what is happening but the code that I wrote here for you > > doesn't work at all. > > > > Nothing triggers the Label KeyPress or Label KeyRelease events. > > MouseDown works. > > > > Please try this code and tell me what I am doing wrong? > > > > I really appreciate it. > > > > . . . > > ' Gambas class file > > > > PUBLIC SUB Form_Open() > > > > ' requires a form with a label "Label1" > > ' with no text > > Label1.SetFocus > > > > END > > PUBLIC SUB Label1_KeyPress() > > > > ' F9 (breakpoint) the next line > > Label1.Caption = "Down " & Key.Code > > ' It is never tripped > > > > END > > PUBLIC SUB Label1_KeyRelease() > > > > ' F9 (breakpoint) the next line > > Label1.Caption = "Up " & Key.Code > > ' It is never tripped > > > > END > > PUBLIC SUB Label1_MouseDown() > > > > ' to test for focus > > Label1.Caption = "MouseDown" > > > > END > > PUBLIC SUB Timer1_Timer() > > > > 'set to interval 10 > > Label1.SetFocus > > > > END > > . . . > > > > Thanks > > > > Paul > > A Label only displays things, and cannot get focus, and so I think it never > raises keyboard events. > > Regards, I think what you need to do is use a "TextLabel". A textlabel will allow events such as the keypress. In fact you can make it look just like a normal label with background, etc..... I do something like what your doing (clicking on my textlabel causes a form to open) but I make my textlabel with a yellow background to make it stand out. John From isy21 at ...1082... Thu Jan 12 02:29:03 2006 From: isy21 at ...1082... (Ignatius Syofian) Date: Thu, 12 Jan 2006 08:29:03 +0700 Subject: [Gambas-user] KUGAR In-Reply-To: <200601111613.15506.jscops@...11...> References: <200601111707.50047.isy21@...1082...> <200601111613.15506.jscops@...11...> Message-ID: <200601120829.04229.isy21@...1082...> On Wednesday 11 January 2006 22:13, Jacky wrote: It means, i can't put cash field in detail row, then in page footer i use calculate field with sum function in same cash field without any put calc field in gambas?. OR i must put calculate field in detail row, then sum will effect ? can i find any KUGAR example with calculation field? can i do like spreadsheet, if i put value in row, then row in bottom (let say row 10) i put sum command, then everytime i put value in row 1 to 9,row 10 always calc sum (row1 to row9). > Le Mercredi 11 Janvier 2006 11:07, Ignatius Syofian a ?crit?: > > Hi all, > > > > I try to use KUGAR report. > > the problem is how i put a calculate field in *.kud ? > > Can anyone, update myrcstrx.kud to include calculated field ? > > > > I already put calculate in subtotal and total, i already try to put > > calculate field in rcstrx.kud, but no luck. > > > > I try to search example in kugar with calculate field, result is > > same...not found > > > > > > I attach my kugar report file. > > In Kugar you use a calculate field for simple calculation, (to numerate > your page for ex. for this , use the Kugar item 'calculated field' ) > For more complexe calculation use Gambas and put your result in your *.kud > as you make with 'cash', 'debit', and 'card'. > > Is clear now ? > > ~? Jack ?~ > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Thanks in advance. Regards, Ignatius Syofian From kztyrvlq at ...966... Thu Jan 12 03:33:17 2006 From: kztyrvlq at ...966... (A Person) Date: Wed, 11 Jan 2006 23:03:17 -0330 Subject: [Gambas-user] Re: Some Captured, Some Not Message-ID: <43C5BFED.9050805@...966...> Good Day All . . . Thanks for the replies. I really appreciate them. From my own experience creating the sample I tend to agree with you except for the fact that my project originally worked. Both the label and the textlabel have the key and mouse events so I assume that the functionality is there. As per John's suggestion, I substituted a textlabel for the original label. It still does not work. It accepts the mousedown event but does not accept any keyboard entry. I removed the timer then I clicked on the textlabel and the "MouseDown" text was displayed. With the focus already on the textlabel I pressed a key. No activity at the breakpoints. Has something been left out or modified in the Gambas program? Originally my project worked very well. The PageUp, PageDown, Home and End worked. This was originally created in 1.0.2 or 1.0.3. I added code in 1.0.13 to a different component and now it does not compile the key events fully. If I assume that I am coding improperly then can someone point me in the right direction? My second example does not work. With the available options set, it should. Thanks Paul From jfabiani at ...1109... Thu Jan 12 05:35:57 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 11 Jan 2006 20:35:57 -0800 Subject: [Gambas-user] Re: Some Captured, Some Not In-Reply-To: <43C5BFED.9050805@...966...> References: <43C5BFED.9050805@...966...> Message-ID: <200601112035.57620.jfabiani@...1109...> On Wednesday 11 January 2006 18:33, A Person wrote: > Good Day All . . . > > Thanks for the replies. I really appreciate them. > > From my own experience creating the sample I tend to agree with you > except for the fact that my project originally worked. Both the label > and the textlabel have the key and mouse events so I assume that the > functionality is there. > > As per John's suggestion, I substituted a textlabel for the original > label. It still does not work. It accepts the mousedown event but does > not accept any keyboard entry. > > I removed the timer then I clicked on the textlabel and the "MouseDown" > text was displayed. With the focus already on the textlabel I pressed a > key. No activity at the breakpoints. > > Has something been left out or modified in the Gambas program? > > Originally my project worked very well. The PageUp, PageDown, Home and > End worked. This was originally created in 1.0.2 or 1.0.3. I added code > in 1.0.13 to a different component and now it does not compile the key > events fully. > > If I assume that I am coding improperly then can someone point me in the > right direction? My second example does not work. With the available > options set, it should. > > Thanks > > Paul I'm sorry I just tested textlabel with a keyboard and it does not work. I'm actually using the mouse to activate my form. I'm a newbie and thought I was using the keyboard to activate my routine. But I rechecked my code and I am not. So this is what I did. I replaced the TextLabel with a TextBox. I changed the text to match what I wanted and then set the background to match the forms background, then turned off the border and I had something that looked like a label. Hope that helps. John From isy21 at ...1082... Thu Jan 12 05:37:32 2006 From: isy21 at ...1082... (Ignatius Syofian) Date: Thu, 12 Jan 2006 11:37:32 +0700 Subject: [Gambas-user] Kugar Edit Message-ID: <200601121137.32844.isy21@...1082...> Hi, If i edit sample from Kugar (i attach that file here) with Kugar Designer (version 1.4.2) to change in example to change posiiton of total copies coloum to more left position, then i save it (i not change sample3.kud data file). I run KUGAR report viewer sample3.kud then i found total copies not shown anymore....why ??? I only install Koffice-extra 1.4.2 Koffice 1.4.2 koffice-database 1.4.2 I use SUSE 10.0 have i must install something to run KUGAR perfectly ? -- Thanks in advance. Regards, Ignatius Syofian -------------- next part -------------- A non-text attachment was scrubbed... Name: sample3.kud Type: application/x-kugar Size: 1768 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sample3.kut Type: application/x-kudesigner Size: 6105 bytes Desc: not available URL: From picander78 at ...325... Thu Jan 12 09:03:45 2006 From: picander78 at ...325... (Marco Gusy) Date: Thu, 12 Jan 2006 09:03:45 +0100 Subject: [Gambas-user] Event raising Message-ID: <200601120903.45834.picander78@...325...> I tried this sintax dim bres as boolean cancel = raise change(var1,var2) The event is rightly fired (the callback sub is executed), but gambas return a "no return value" error Which is the right syntax? Thanks From picander78 at ...325... Thu Jan 12 09:09:58 2006 From: picander78 at ...325... (Marco Gusy) Date: Thu, 12 Jan 2006 09:09:58 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601120903.45834.picander78@...325...> References: <200601120903.45834.picander78@...325...> Message-ID: <200601120909.58157.picander78@...325...> Alle 09:03, gioved? 12 gennaio 2006, Marco Gusy ha scritto: > I tried this sintax > > dim bres as boolean > cancel = raise change(var1,var2) sorry, i meant bres = raise change(var1,var2) by the way my gambas version is 1.9.23. From dcamposf at ...626... Thu Jan 12 10:08:03 2006 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 12 Jan 2006 10:08:03 +0100 Subject: [Gambas-user] Send Mail In Gambas In-Reply-To: <200601112337.53549.gambas@...1...> References: <00f201c616d5$be143bc0$2398fea9@...1319...> <200601111002.22866.jfabiani@...1109...> <200601112337.53549.gambas@...1...> Message-ID: <7259b5ae0601120108p30ed54dag@...627...> this could help, it is released under LGPL, and provides support for MIME types, as well as support for encryption which would be a pain to implement by hand: http://libsmtp.berlios.de/ Applications that do not use DCOP could use some external apps, like putmail, http://putmail.sourceforge.net/home.html , a little python script that can communicate with external SMTP servers. Quite useful, it helped me sometimes in the past. May be that Python code could be useful if anybody wants to create a Gambas component from scratch. Regards, D. Campos 2006/1/11, Benoit Minisini : > > On Wednesday 11 January 2006 19:02, johnf wrote: > > You know I found a new tool - So I now have a > > hammer and the whole world looks like a nail. > > > > Beautiful phrase :-) > > Anyway, making a SMTPClient class / control for Gambas would be a good > idea. > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Thu Jan 12 10:45:20 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Jan 2006 10:45:20 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601120909.58157.picander78@...325...> References: <200601120903.45834.picander78@...325...> <200601120909.58157.picander78@...325...> Message-ID: <200601121045.20518.gambas@...1...> On Thursday 12 January 2006 09:09, Marco Gusy wrote: > Alle 09:03, gioved? 12 gennaio 2006, Marco Gusy ha scritto: > > I tried this sintax > > > > dim bres as boolean > > cancel = raise change(var1,var2) > > sorry, i meant > bres = raise change(var1,var2) > > by the way my gambas version is 1.9.23. > Did you declare your event as returning a boolean value? -- Benoit Minisini From picander78 at ...325... Thu Jan 12 11:54:34 2006 From: picander78 at ...325... (Marco Gusy) Date: Thu, 12 Jan 2006 11:54:34 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601121045.20518.gambas@...1...> References: <200601120903.45834.picander78@...325...> <200601120909.58157.picander78@...325...> <200601121045.20518.gambas@...1...> Message-ID: <200601121154.34893.picander78@...325...> Alle 10:45, gioved? 12 gennaio 2006, Benoit Minisini ha scritto: > Did you declare your event as returning a boolean value? I did this way: EVENT Change(Col AS Integer, Row AS Integer, NewVal AS String) AS Boolean From picander78 at ...325... Thu Jan 12 12:27:46 2006 From: picander78 at ...325... (Marco Gusy) Date: Thu, 12 Jan 2006 12:27:46 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601121045.20518.gambas@...1...> References: <200601120903.45834.picander78@...325...> <200601120909.58157.picander78@...325...> <200601121045.20518.gambas@...1...> Message-ID: <200601121227.46854.picander78@...325...> Alle 10:45, gioved? 12 gennaio 2006, Benoit Minisini ha scritto: > On Thursday 12 January 2006 09:09, Marco Gusy wrote: > > Alle 09:03, gioved? 12 gennaio 2006, Marco Gusy ha scritto: > > > I tried this sintax > > > > > > dim bres as boolean > > > cancel = raise change(var1,var2) > > > > sorry, i meant > > bres = raise change(var1,var2) > > > > by the way my gambas version is 1.9.23. > > > > Did you declare your event as returning a boolean value? > By the way, this problem doesn't occour if the callback is a function and not a sub. But in gambas controls "stop event" works also with sub callbacks From picander78 at ...325... Thu Jan 12 14:18:30 2006 From: picander78 at ...325... (Marco Gusy) Date: Thu, 12 Jan 2006 14:18:30 +0100 Subject: [Gambas-user] Events and attach Message-ID: <200601121418.31082.picander78@...325...> another events related question :-) I'm embedding a form into another form to use it as a control. I need its events so I object.attach(ctl,me,"control") into the form. The problem is.... the ctl (the embedded form) won't execute the form_resize code anymore. Is there any solution? Thanks Marco From emailvarie at ...1234... Thu Jan 12 17:28:58 2006 From: emailvarie at ...1234... (Angelo Compagnucci o SusePersonalTrainer) Date: Thu, 12 Jan 2006 17:28:58 +0100 Subject: [Gambas-user] X window embedded Message-ID: <200601121728.58558.emailvarie@...1234...> Hi Gambas Users, It's possible to embedd an X window into a gambas form? I'm writing a qemu gui similar to vmware. Vmware has the virtual machines embedded into the main windows. It's possible to make a similar gui with gambas? Thanks! From gambas at ...1... Thu Jan 12 23:55:53 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 12 Jan 2006 23:55:53 +0100 Subject: [Gambas-user] X window embedded In-Reply-To: <200601121728.58558.emailvarie@...1234...> References: <200601121728.58558.emailvarie@...1234...> Message-ID: <200601122355.53998.gambas@...1...> On Thursday 12 January 2006 17:28, Angelo Compagnucci o SusePersonalTrainer wrote: > Hi Gambas Users, > > It's possible to embedd an X window into a gambas form? > > I'm writing a qemu gui similar to vmware. Vmware has the virtual machines > embedded into the main windows. > > It's possible to make a similar gui with gambas? > > Thanks! > Yes it is :-) Look in the wiki the documentation of: - Embedder control - Application.Embedder property. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Jan 13 02:25:55 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 12 Jan 2006 20:25:55 -0500 Subject: [Gambas-user] Kugar Edit In-Reply-To: <200601121137.32844.isy21@...1082...> References: <200601121137.32844.isy21@...1082...> Message-ID: <200601122025.55594.sourceforge-raindog2@...94...> On Wed January 11 2006 23:37, Ignatius Syofian wrote: > If i edit sample from Kugar (i attach that file here) with > Kugar Designer (version 1.4.2) to change in example to change > posiiton of total copies coloum to more left position, then i > save it (i not change sample3.kud data file). I run KUGAR > report viewer sample3.kud then i found total copies not shown > anymore....why ??? I think you should probably ask on the KOffice support list. Kugar is one way of producing printed output with Gambas, but it isn't affiliated with Gambas in any way and most of us have no experience with it. https://mail.kde.org/mailman/listinfo/koffice Rob From ronald_gambas at ...43... Fri Jan 13 11:47:04 2006 From: ronald_gambas at ...43... (Ronald Medina) Date: Fri, 13 Jan 2006 02:47:04 -0800 (PST) Subject: [Gambas-user] help in row height! Message-ID: <20060113104704.62278.qmail@...1321...> hello there! is there a property for seting the height of the row.. in foxpro in cn dao that using rowheight property..thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From gambas at ...1... Fri Jan 13 12:36:11 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jan 2006 12:36:11 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601121227.46854.picander78@...325...> References: <200601120903.45834.picander78@...325...> <200601121045.20518.gambas@...1...> <200601121227.46854.picander78@...325...> Message-ID: <200601131236.11916.gambas@...1...> On Thursday 12 January 2006 12:27, Marco Gusy wrote: > Alle 10:45, gioved? 12 gennaio 2006, Benoit Minisini ha scritto: > > On Thursday 12 January 2006 09:09, Marco Gusy wrote: > > > Alle 09:03, gioved? 12 gennaio 2006, Marco Gusy ha scritto: > > > > I tried this sintax > > > > > > > > dim bres as boolean > > > > cancel = raise change(var1,var2) > > > > > > sorry, i meant > > > bres = raise change(var1,var2) > > > > > > by the way my gambas version is 1.9.23. > > > > Did you declare your event as returning a boolean value? > > By the way, this problem doesn't occour if the callback is a function and > not a sub. But in gambas controls "stop event" works also with sub > callbacks > This is a design error in the interpreter! Can you try with this patch an tell me the result? Thanks in advance. -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_exec_loop.c Type: text/x-csrc Size: 35392 bytes Desc: not available URL: From gambas at ...1... Fri Jan 13 13:01:25 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jan 2006 13:01:25 +0100 Subject: [Gambas-user] Events and attach In-Reply-To: <200601121418.31082.picander78@...325...> References: <200601121418.31082.picander78@...325...> Message-ID: <200601131301.25817.gambas@...1...> On Thursday 12 January 2006 14:18, Marco Gusy wrote: > another events related question :-) > > I'm embedding a form into another form to use it as a control. I need its > events so I object.attach(ctl,me,"control") > into the form. > > The problem is.... the ctl (the embedded form) won't execute the > form_resize code anymore. Is there any solution? > > Thanks > > Marco > All events raised by an object can be processed by only one event observer. So things are not simple. You can create your own control by inheriting UserControl or UserContainer in gambas 1.9.x. Examples are located in the source code of the gb.form component. In gambas 1.9.x, there is a class name "Watcher" that can watch a control, and raise events when something happens on it: Move, Resize, ... Actually, embedding a form is mainly useful just when you want to... embed a form, and not when you want to use it exactly like a control. Having many event observers for the same object is too complicated to do, but maybe I could implement a way to dispatch an event to another object, by having two event observers... I really have no real idea at the moment. Regards, -- Benoit Minisini From picander78 at ...325... Fri Jan 13 13:24:08 2006 From: picander78 at ...325... (Marco Gusy) Date: Fri, 13 Jan 2006 13:24:08 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601131236.11916.gambas@...1...> References: <200601120903.45834.picander78@...325...> <200601121227.46854.picander78@...325...> <200601131236.11916.gambas@...1...> Message-ID: <200601131324.09076.picander78@...325...> "Type mismatch: wanted boolean, got function instead" anyway maybe my syntax is wrong.... this is how I raise event EVENT Change(Col AS Integer, Row AS Integer, NewVal AS String) AS Boolean DIM Cancel AS Boolean cancel = RAISE Change(cc, rr, newval) From gambas at ...1... Fri Jan 13 13:36:22 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jan 2006 13:36:22 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601131324.09076.picander78@...325...> References: <200601120903.45834.picander78@...325...> <200601131236.11916.gambas@...1...> <200601131324.09076.picander78@...325...> Message-ID: <200601131336.23002.gambas@...1...> On Friday 13 January 2006 13:24, Marco Gusy wrote: > "Type mismatch: wanted boolean, got function instead" > > anyway maybe my syntax is wrong.... this is how I raise event > > EVENT Change(Col AS Integer, Row AS Integer, NewVal AS String) AS Boolean > > DIM Cancel AS Boolean > cancel = RAISE Change(cc, rr, newval) > Can you send me your project, or just the part that raises the error? -- Benoit Minisini From picander78 at ...325... Fri Jan 13 15:01:44 2006 From: picander78 at ...325... (Marco Gusy) Date: Fri, 13 Jan 2006 15:01:44 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601131336.23002.gambas@...1...> References: <200601120903.45834.picander78@...325...> <200601131324.09076.picander78@...325...> <200601131336.23002.gambas@...1...> Message-ID: <200601131501.44399.picander78@...325...> Alle 13:36, venerd? 13 gennaio 2006, Benoit Minisini ha scritto: > > Can you send me your project, or just the part that raises the error? > I made a new simple project. Press the button when forms opens. (I tried also to add "as boolean" in the event declaration) -------------- next part -------------- A non-text attachment was scrubbed... Name: Provagam.tar.gz Type: application/x-tgz Size: 2407 bytes Desc: not available URL: From fidojones at ...805... Fri Jan 13 17:54:22 2006 From: fidojones at ...805... (Lorenzo Tejera) Date: Fri, 13 Jan 2006 17:54:22 +0100 (CET) Subject: [Gambas-user] Wanted String got Blob Instead gambas 1.9.23 Message-ID: <55375.85.155.40.83.1137171262.squirrel@...1316...> Err I probe this error, with mysql 4.1 compilated with the same error, so I think it's not a problem with mysql 5.0. I probe previous version of gambas 1.9.22 and works perfect. I think it's any change between gambas 1.9.22 and gambas 1.9.23. Could be this Benoit? >In Database Manager not appear any data in this field?? >Could be a problem with new mysql 5.0 server? On Mie, Enero 11, 2006 00:44, Benoit Minisini wrote: > On Tuesday 10 January 2006 19:09, Lorenzo Tejera wrote: > >> Errrrrr.... >> >> >> Probing the last version, some software who works fine, now said: >> >> >> Wanted String got Blob Instead >> >> >> and my Field is a Mediumtext!!! >> >> Mysql server version: 5.0.18-Debian_1-log >> >> >> Any idea Benoit? >> >> > > In mySQL (I dislike him more and more), there is no difference between > TEXT > fields and BLOB fields. So to implement it in the gambas database driver, > I > decided to use "LONG TEXT". > > It is strange that you tell that your field is a "MEDIUM TEXT". > Logically, > only "LONG TEXT" are recognized as BLOB by the gambas mysql driver... > > Are you sure that your field is "MEDIUM TEXT" ? > > > I can make a mistake of course, as sometimes mySQL identifies the > datatype of a field precisely (TINY, MEDIUM, LONG TEXT/BLOB), and > sometimes it just tells you that it is a TEXT field, and I have to check > the maximum length of the data to know if it is TINY, MEDIUM, or LONG. > > Sorry for that! :-) > > > -- > Benoit Minisini > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jscops at ...11... Fri Jan 13 18:36:04 2006 From: jscops at ...11... (Jacky) Date: Fri, 13 Jan 2006 18:36:04 +0100 Subject: [Gambas-user] Kugar Edit In-Reply-To: <200601121137.32844.isy21@...1082...> References: <200601121137.32844.isy21@...1082...> Message-ID: <200601131836.04483.jscops@...11...> Le Jeudi 12 Janvier 2006 05:37, Ignatius Syofian a ?crit?: > Hi, > > If i edit sample from Kugar (i attach that file here) with Kugar Designer > (version 1.4.2) to change in example to change posiiton of total copies > coloum to more left position, then i save it (i not change sample3.kud data > file). I run KUGAR report viewer sample3.kud then i found total copies not > shown anymore....why ??? > > I only install Koffice-extra 1.4.2 > Koffice 1.4.2 > koffice-database 1.4.2 > I use SUSE 10.0 > > have i must install something to run KUGAR perfectly ? The Kugar samples *.kut you are used are installed in /usr/share/apps/kugar/templates (If Mandrake ou Fedora) or /opt/kde3/share/apps/kugar/templates (If Suse). If you modified a sample in another directorie, maybe you must copy your files *.kut in this directorie ( On root ). ~? Jack ?~ From gambas at ...1... Fri Jan 13 22:52:27 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 13 Jan 2006 22:52:27 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601131501.44399.picander78@...325...> References: <200601120903.45834.picander78@...325...> <200601131336.23002.gambas@...1...> <200601131501.44399.picander78@...325...> Message-ID: <200601132252.28074.gambas@...1...> On Friday 13 January 2006 15:01, Marco Gusy wrote: > Alle 13:36, venerd? 13 gennaio 2006, Benoit Minisini ha scritto: > > Can you send me your project, or just the part that raises the error? > > I made a new simple project. Press the button when forms opens. > (I tried also to add "as boolean" in the event declaration) This time it should be ok :-) -- Benoit Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: gbx_exec_loop.c Type: text/x-csrc Size: 35507 bytes Desc: not available URL: From picander78 at ...325... Sat Jan 14 02:24:09 2006 From: picander78 at ...325... (Marco Gusy) Date: Sat, 14 Jan 2006 02:24:09 +0100 Subject: [Gambas-user] Events and attach In-Reply-To: <200601131301.25817.gambas@...1...> References: <200601121418.31082.picander78@...325...> <200601131301.25817.gambas@...1...> Message-ID: <200601140224.09930.picander78@...325...> Alle 13:01, venerd? 13 gennaio 2006, Benoit Minisini ha scritto: > You can create your own control by inheriting UserControl or UserContainer in > gambas 1.9.x. Examples are located in the source code of the gb.form > component. Ok, I studied it more. If i'm not wrong the best way is to create a class (the class the end user will istantiate into the form) which inherits usercontrol. Inheriting usercontrol is mandatory because includes the drawing area, right? Into this class I add my code and define in it a form (or other object/s). The class would listen to form/objects events, while the end user would receive only the events the class exports. Am I right? Thanks again Marco From picander78 at ...325... Sat Jan 14 02:59:24 2006 From: picander78 at ...325... (Marco Gusy) Date: Sat, 14 Jan 2006 02:59:24 +0100 Subject: [Gambas-user] Event raising In-Reply-To: <200601132252.28074.gambas@...1...> References: <200601120903.45834.picander78@...325...> <200601131501.44399.picander78@...325...> <200601132252.28074.gambas@...1...> Message-ID: <200601140259.24474.picander78@...325...> Alle 22:52, venerd? 13 gennaio 2006, Benoit Minisini ha scritto: > On Friday 13 January 2006 15:01, Marco Gusy wrote: > > Alle 13:36, venerd? 13 gennaio 2006, Benoit Minisini ha scritto: > > > Can you send me your project, or just the part that raises the error? > > > > I made a new simple project. Press the button when forms opens. > > (I tried also to add "as boolean" in the event declaration) > > This time it should be ok :-) > Great! I'm glad I countributed to make Gambas a little better! ;-) From jfabiani at ...1109... Sat Jan 14 03:10:09 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 13 Jan 2006 18:10:09 -0800 Subject: [Gambas-user] casting or changing datatype. Message-ID: <200601131810.09117.jfabiani@...1109...> Hi, I wonder if it is possible to pass a string to a method and have the string used to for the name of a different datatype. dim passStr As String passStr = "custData" myresult(passStr) public sub myResult( thestr as String) as Result dim thestr as Result return Result end John From nando_f at ...951... Sat Jan 14 05:42:59 2006 From: nando_f at ...951... (nando) Date: Fri, 13 Jan 2006 23:42:59 -0500 Subject: [Gambas-user] casting or changing datatype. In-Reply-To: <200601131810.09117.jfabiani@...1109...> References: <200601131810.09117.jfabiani@...1109...> Message-ID: <20060114043747.M90865@...951...> I believe that you are looking for is Variant Public Function myResult (thestr as String) as Variant if thestr = "Hello" then Return 0 'This is a integer if thestr = "Bye" then Return "Daytime" 'This is a String if thestr = "PI" then Return 13.14159 'This is floating END -Fernando ---------- Original Message ----------- From: johnf To: gambas-user at lists.sourceforge.net Sent: Fri, 13 Jan 2006 18:10:09 -0800 Subject: [Gambas-user] casting or changing datatype. > Hi, > I wonder if it is possible to pass a string to a method and have the > string used to for the name of a different datatype. > > dim passStr As String > > passStr = "custData" > myresult(passStr) > > public sub myResult( thestr as String) as Result > > dim thestr as Result > > return Result > end > > John > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jfabiani at ...1109... Sat Jan 14 07:45:41 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 13 Jan 2006 22:45:41 -0800 Subject: [Gambas-user] casting or changing datatype. In-Reply-To: <20060114043747.M90865@...951...> References: <200601131810.09117.jfabiani@...1109...> <20060114043747.M90865@...951...> Message-ID: <200601132245.41171.jfabiani@...1109...> Actually I'm trying to figure a way to write a function that I pass a string to and have it return a result datatype with the name of the string that I passed. John On Friday 13 January 2006 20:42, nando wrote: > I believe that you are looking for is Variant > > Public Function myResult (thestr as String) as Variant > > if thestr = "Hello" then Return 0 'This is a integer > if thestr = "Bye" then Return "Daytime" 'This is a String > if thestr = "PI" then Return 13.14159 'This is floating > > END > > -Fernando > > ---------- Original Message ----------- > From: johnf > To: gambas-user at lists.sourceforge.net > Sent: Fri, 13 Jan 2006 18:10:09 -0800 > Subject: [Gambas-user] casting or changing datatype. > > > Hi, > > I wonder if it is possible to pass a string to a method and have the > > string used to for the name of a different datatype. > > > > dim passStr As String > > > > passStr = "custData" > > myresult(passStr) > > > > public sub myResult( thestr as String) as Result > > > > dim thestr as Result > > > > return Result > > end > > > > John > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Jan 14 08:23:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jan 2006 08:23:28 +0100 Subject: [Gambas-user] casting or changing datatype. In-Reply-To: <200601131810.09117.jfabiani@...1109...> References: <200601131810.09117.jfabiani@...1109...> Message-ID: <200601140823.28608.gambas@...1...> On Saturday 14 January 2006 03:10, johnf wrote: > Hi, > I wonder if it is possible to pass a string to a method and have the string > used to for the name of a different datatype. > > dim passStr As String > > passStr = "custData" > myresult(passStr) > > public sub myResult( thestr as String) as Result > > dim thestr as Result > > return Result > end > > John > This is a nonsense, as the name of the variables disappear once the program is compiled. I think you mix the syntax (what ou write) and the semantic (what is executed). If you compile this code: public sub myResult(...) as Result dim XXXXX as Result return Result end Whatever you use as name for 'XXXXX', you will get the same code. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 14 08:24:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jan 2006 08:24:46 +0100 Subject: [Gambas-user] Events and attach In-Reply-To: <200601140224.09930.picander78@...325...> References: <200601121418.31082.picander78@...325...> <200601131301.25817.gambas@...1...> <200601140224.09930.picander78@...325...> Message-ID: <200601140824.47020.gambas@...1...> On Saturday 14 January 2006 02:24, Marco Gusy wrote: > Alle 13:01, venerd? 13 gennaio 2006, Benoit Minisini ha scritto: > > You can create your own control by inheriting UserControl or > > UserContainer > > in > > > gambas 1.9.x. Examples are located in the source code of the gb.form > > component. > > Ok, I studied it more. If i'm not wrong the best way is to create a class > (the class the end user will istantiate into the form) which inherits > usercontrol. Inheriting usercontrol is mandatory because includes the > drawing area, right? Into this class I add my code and define in it a form > (or other object/s). The class would listen to form/objects events, while > the end user would receive only the events the class exports. > Am I right? > > Thanks again > > Marco > The problem is more complex... UserControl is not a DrawingArea, it is a Container that does not expose Container properties to the IDE. It is a Container, because usually you want to make a new control by mixing already existing one. But if you want it to look like a control, you must only expose control properties, not container ones. Otherwise, you have a UserContainer control. It is exactly the same thing than UserControl, except that: the Container properties are exposed (you want to create a true container in Gambas), and that there is a special property (named... Container) that tells Gambas which control acts as the real container. Maybe I'm not very clear :-) But you can look in gb.form again to see how I used them. Regards, -- Benoit Minisini From rohnny at ...1248... Sat Jan 14 11:36:18 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 14 Jan 2006 11:36:18 +0100 Subject: [Gambas-user] Re: casting or changing datatype. Message-ID: <43C8D422.3090206@...1248...> Hi. Think scripting or javascript has a variant of this if 'm not wrong. Looks like he is thinking of something like this. Public Sub SomeSub(ItemsToUse as string) [ItemsToUse].Text ="Hello" end sub SomeSub("TextBox1") SomeSub("TextBox2") This is a small example, but in larger scale it could be usefull, special when makeing classes. Would be nice thow if it could be done. Regards Rohnny From picander78 at ...325... Sat Jan 14 14:05:52 2006 From: picander78 at ...325... (Marco Gusy) Date: Sat, 14 Jan 2006 14:05:52 +0100 Subject: [Gambas-user] Events and attach In-Reply-To: <200601140824.47020.gambas@...1...> References: <200601121418.31082.picander78@...325...> <200601140224.09930.picander78@...325...> <200601140824.47020.gambas@...1...> Message-ID: <200601141405.53038.picander78@...325...> Alle 08:24, sabato 14 gennaio 2006, Benoit Minisini ha scritto: > Maybe I'm not very clear :-) But you can look in gb.form again to see how I > used them. > > Regards, Well... i didn't fully understand what you're telling me... but I made the control work! Now he sends events, export properties and processes the form resize simultaneoulsy :-) When i'll test it again with this new layout it will be ready. If you like I'm going to send you the project at gambas at ...1323... Thanks Marco From gambas at ...1... Sat Jan 14 15:07:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jan 2006 15:07:50 +0100 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <43C8D422.3090206@...1248...> References: <43C8D422.3090206@...1248...> Message-ID: <200601141507.50283.gambas@...1...> On Saturday 14 January 2006 11:36, Rohnny Stormo wrote: > Hi. > > Think scripting or javascript has a variant of this if 'm not wrong. > Looks like he is thinking of something like this. > > Public Sub SomeSub(ItemsToUse as string) > [ItemsToUse].Text ="Hello" > end sub > > SomeSub("TextBox1") > SomeSub("TextBox2") > > This is a small example, but in larger scale it could be usefull, > special when makeing classes. > > Would be nice thow if it could be done. > > Regards Rohnny > Identifiers do not exist anymore once the program is compiled, except the public symbols of a class. But I think what is wanted is the old request of controls indexed by name, like in Visual Basic? -- Benoit Minisini From ronstk at ...239... Sat Jan 14 15:57:43 2006 From: ronstk at ...239... (ron) Date: Sat, 14 Jan 2006 15:57:43 +0100 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <43C8D422.3090206@...1248...> References: <43C8D422.3090206@...1248...> Message-ID: <200601141557.44100.ronstk@...239...> On Saturday 14 January 2006 11:36, Rohnny Stormo wrote: > Hi. > > Think scripting or javascript has a variant of this if 'm not wrong. > Looks like he is thinking of something like this. > > Public Sub SomeSub(ItemsToUse as string) > [ItemsToUse].Text ="Hello" > end sub > > SomeSub("TextBox1") > SomeSub("TextBox2") > > This is a small example, but in larger scale it could be usefull, > special when makeing classes. > > Would be nice thow if it could be done. > > Regards Rohnny > You are simply setting a global variable named by content of ItemsToUse in the Sub. SomeSub creates here 2 variables "Textbox#" and set value them to "Hello" Global variables is not posible in gambas with good reason by Benoit, but can be emulated to java/vb behaviour by prefix them with a module name. Use i.e. a module named 'Global' for Global.MyGlobalVBvariable :) But that is not the real question. What he is doing in his example looks more as he want to Dim variables with a name passed by string. He is doing with 'dim thestr as Result' is setting a dynamic name for a variable in a Dim, what makes nosense because that variable lives only in runtime inside the Sub code. Or he wants to give a name to the Result, and can not be done for Result here. Or he want a variable with the name passed as string and returning that variable so he can refer to that variable?? myResult("TheNameForTheVariable") print TheNameForTheVariable The Result is a wrong datatype/object here as example. Result is more acting as a Object with a contruction of a DataType. I belive he used the 'Result' as an textual example and not as the real thing and must be seen as , take the one you want. Public Sub myResult(thestr as string) as ' i.e. dim MyXXXX as MyXXXX = new MyXXXX.Name = thestr 'it should have the property Name of course :) Return MyCtrl End This could be more the way, but the 'Name' propertie in gambas is not available as in VB for controls or most other objects. Or returning the datatype of a variable where the name is passed by a string TheDataType = VarTypeOf("TheVarName") instaed of TheDataType = VarTypeOf(TheVarName) BTW public sub myResult( thestr as String) as Result is not posible, only functions return somthing. Subs can only set global available variables for a return value and not as in VB, change the the content of the variable passed By Ref(erence) Gambas passes for 'not object' variable always by (copy of the) value. Code can can change the passed value but orginal stay the same. public sub myResult( thestr as String) as Result dim thestr as Result See for _Dim_ the help again. You should give a name (without quotes) for the variable and / Here _thestr_ IS the name of the variable. How do you want use the content of a string as i.e. "myName" as unqouted name? Dim "thestr" as Result Dim "myName" as String Print thestr Print myName In fact _this_ can be done, no problem if there are quotes around the variable name to interpret it as the variable name without quotes in the rest of the code. But what should do _Print thestr_ if you call the sub with a different name by sting i.e. "NotMyBike" ? Of course then we should/must use: Print "thestr" :) So you did give at least two point you should analize more. Sub returning a value and the way you want to implement the Dim you suggest. You should give a more complete example what you wants with a piece of code that uses it. Special the _Result_ word you use make it more complex, the real _Result_ or a _word-for-something_ and make here more sence. --- My 2 cents Ron From jfabiani at ...1109... Sat Jan 14 17:37:28 2006 From: jfabiani at ...1109... (johnf) Date: Sat, 14 Jan 2006 08:37:28 -0800 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <200601141557.44100.ronstk@...239...> References: <43C8D422.3090206@...1248...> <200601141557.44100.ronstk@...239...> Message-ID: <200601140837.28982.jfabiani@...1109...> On Saturday 14 January 2006 06:57, ron wrote: > On Saturday 14 January 2006 11:36, Rohnny Stormo wrote: > > Hi. > > > > Think scripting or javascript has a variant of this if 'm not wrong. > > Looks like he is thinking of something like this. > > > > Public Sub SomeSub(ItemsToUse as string) > > [ItemsToUse].Text ="Hello" > > end sub > > > > SomeSub("TextBox1") > > SomeSub("TextBox2") > > > > This is a small example, but in larger scale it could be usefull, > > special when makeing classes. > > > > Would be nice thow if it could be done. > > > > Regards Rohnny > > You are simply setting a global variable named by content of ItemsToUse in > the Sub. SomeSub creates here 2 variables "Textbox#" and set value them to > "Hello" > > Global variables is not posible in gambas with good reason by Benoit, but > can be emulated to java/vb behaviour by prefix them with a module name. > Use i.e. a module named 'Global' for Global.MyGlobalVBvariable :) > > But that is not the real question. > > What he is doing in his example looks more as he want to > Dim variables with a name passed by string. > > He is doing with 'dim thestr as Result' is setting a dynamic name for a > variable in a Dim, what makes nosense because that variable lives only in > runtime inside the Sub code. > > Or he wants to give a name to the Result, and can not be done for Result > here. Or he want a variable with the name passed as string and returning > that variable so he can refer to that variable?? > > myResult("TheNameForTheVariable") > print TheNameForTheVariable > > The Result is a wrong datatype/object here as example. > Result is more acting as a Object with a contruction of a DataType. > > I belive he used the 'Result' as an textual example and not as the real > thing and must be seen as , take the one you want. > > > Public Sub myResult(thestr as string) as ' i.e. > dim MyXXXX as > MyXXXX = new > MyXXXX.Name = thestr 'it should have the property Name of course :) > Return MyCtrl > End > > This could be more the way, but the 'Name' propertie in gambas is not > available as in VB for controls or most other objects. > > > Or returning the datatype of a variable where the name is passed by a > string TheDataType = VarTypeOf("TheVarName") > instaed of > TheDataType = VarTypeOf(TheVarName) > > BTW > public sub myResult( thestr as String) as Result > is not posible, only functions return somthing. > > Subs can only set global available variables for a return value and not > as in VB, change the the content of the variable passed By Ref(erence) > > Gambas passes for 'not object' variable always by (copy of the) value. > Code can can change the passed value but orginal stay the same. > > > public sub myResult( thestr as String) as Result > dim thestr as Result > > See for _Dim_ the help again. > You should give a name (without quotes) for the variable and > / Here _thestr_ IS the name of the variable. > How do you want use the content of a string as i.e. "myName" as unqouted > name? > > Dim "thestr" as Result > Dim "myName" as String > > Print thestr > Print myName > > In fact _this_ can be done, no problem if there are quotes around the > variable name to interpret it as the variable name without quotes in the > rest of the code. But what should do _Print thestr_ if you call the sub > with a different name by sting i.e. "NotMyBike" ? > Of course then we should/must use: Print "thestr" :) > > So you did give at least two point you should analize more. > Sub returning a value and the way you want to implement the Dim you > suggest. > > > You should give a more complete example what you wants with a piece of code > that uses it. Special the _Result_ word you use make it more complex, > the real _Result_ or a _word-for-something_ and make here more sence. > > --- > My 2 cents > > Ron I'm sorry my example was not better written. You are right the example is using a sub to return some variable and should have been a function. My only excuse is I program in Foxpro and there is not real difference between a function and a method both can return a variable. All I'm attempting to do is write a class that can accept a string which will create a "result" datatype with a name matching the string. I can do this in Visual Foxpro very easily: mydata = "anyname" Select * from arcust into &mydata. I can do this in RealBasic (I think I can) dim mydata as variant result(mydata) = hconn.exec("select * from arcust;) Actually the sql statement is very different but I want it to simple. The "realbasic" example is called "casting" I believe. So I thought there has to be a way I can pass a string to a class and create a "result" datatype variable for use later in the program. I want to create (what in other languages is called) a framework. I will use the framework to create programs. I will have my data access classes, my business rule classes and my UI classes. The problem of course is I will need tools that will accept strings for naming objects (like a result datatype). Of course if it can't be done then I'll have to find a different way. I'm a newbie to gambas and basic in general. Which means I'm trying to use old thinking with a new langauge. So I'm very open to suggestions on how to create a framework. Actually I open to anything with respect to Gambas. John From ronstk at ...239... Sat Jan 14 17:46:34 2006 From: ronstk at ...239... (ron) Date: Sat, 14 Jan 2006 17:46:34 +0100 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <200601141507.50283.gambas@...1...> References: <43C8D422.3090206@...1248...> <200601141507.50283.gambas@...1...> Message-ID: <200601141746.35172.ronstk@...239...> On Saturday 14 January 2006 15:07, Benoit Minisini wrote: > But I think what is wanted is the old request of controls indexed by name, > like in Visual Basic? I do not think so, but I have seen you had some code for it in the past versions before 1.0 (seen in 0.7x or so). VB does indexing by number but you can refer to the .Name property Iterate the indexed controls by number in a VB control array with for i = 0 to MyForm.MyAccount.Count -1 Print MyForm.MyAccount[i].Name & " = " & MyForm.MyAcount[i].Value next will give the same name for all controls in VB. Making the array is done by using the same name and increment the index. Runtime add of same control to the array does the same name and increment. For VB the array contains always the same control For Gambas the array contains same or different controls, more advanced. What you asume above is using a name as substitute for the index number. Not that bad to have also possible. The .Name in VB for the group is the .Group you add to gambas. There is no need to have the .Name the same as in VB anymore. The old request you mentioned was to be able to use .Name of the control. A TextBox on the Form with name 'txtboxUserName' in design and in code the 'txtboxUserName_event' can provide 'txtboxUserName.Tag' but not the 'txtboxUserName.Name', wich is "txtboxUserName" . Simple the .Name property in runtime available for the control. Using the beatifull Last it could be nice to know the .Name of it to determine what to do. The VB group is done by .Name+.Index and in Gambas by .Group The .Name is used in design and entering the code for reference. Your way of grouping for i.e. account-group properties of different controls working on a what_ever event without consider to the control type. if Last.Index=1 then Last.Value = "MyName" if Last.Index=2 then Last.Value = "YourName" if Last.Index=3 then Last.Value = 1000 Using the .Name property as substitut for .Index you get if 'accountGrp' is the .Group name and Last is a control in that group. Sub accountGrp_event() If Last.Name="txtUser" then Last.Value = "MyName" ' or txtUser.Value = "MyName" If Last.Name="txtOther" then Last.Value = "YourName" If Last.Name="Price" then Last["Price"].Value = 1000 ' or Last[Last.Name].Value = 1000 End Sub In my view more clear, and VB can't do that, the "Price" index. Add and delete controls to the group and changing the index number When using numbers you must constant check for the number in the form design Special when you add 5 more, and have writen the numbers down. Delete the 3'rd and the remaining get another number. With using the Name property, as index, you can refer to the exact control in a array group. I personaly think .Name should be possible in future. Some reasons, 1 for porting VB to Gambas is more easy. 2 reference to myAccount["User"] and myAccount["Address"] is more friendly opposite to myAccount[1] and myAccount[2] where myAccount is a TextBox control Group with index by number. Using tag can be done but the tag gives more comfort for other purpose as storing i.e. the old content for undo or as storage for many other, more complex things instead simply a name. my 2 cents Ron From gambas at ...1... Sat Jan 14 17:55:26 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 14 Jan 2006 17:55:26 +0100 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <200601141746.35172.ronstk@...239...> References: <43C8D422.3090206@...1248...> <200601141507.50283.gambas@...1...> <200601141746.35172.ronstk@...239...> Message-ID: <200601141755.27100.gambas@...1...> On Saturday 14 January 2006 17:46, ron wrote: > On Saturday 14 January 2006 15:07, Benoit Minisini wrote: > > But I think what is wanted is the old request of controls indexed by > > name, like in Visual Basic? > > I do not think so, but I have seen you had some code for it in the past > versions before 1.0 (seen in 0.7x or so). > > VB does indexing by number but you can refer to the .Name property > Iterate the indexed controls by number in a VB control array with > > for i = 0 to MyForm.MyAccount.Count -1 > Print MyForm.MyAccount[i].Name & " = " & MyForm.MyAcount[i].Value > next > > will give the same name for all controls in VB. > Making the array is done by using the same name and increment the index. > Runtime add of same control to the array does the same name and increment. > > For VB the array contains always the same control > For Gambas the array contains same or different controls, more advanced. > > What you asume above is using a name as substitute for the index number. > Not that bad to have also possible. > > The .Name in VB for the group is the .Group you add to gambas. > There is no need to have the .Name the same as in VB anymore. > > > The old request you mentioned was to be able to use .Name of the control. > A TextBox on the Form with name 'txtboxUserName' in design and in code the > 'txtboxUserName_event' can provide 'txtboxUserName.Tag' but not the > 'txtboxUserName.Name', wich is "txtboxUserName" . > Simple the .Name property in runtime available for the control. > > Using the beatifull Last it could be nice to know the .Name of it to > determine what to do. > The VB group is done by .Name+.Index and in Gambas by .Group > The .Name is used in design and entering the code for reference. > > > Your way of grouping for i.e. account-group properties of different > controls working on a what_ever event without consider to the control type. > > if Last.Index=1 then Last.Value = "MyName" > if Last.Index=2 then Last.Value = "YourName" > if Last.Index=3 then Last.Value = 1000 > > > Using the .Name property as substitut for .Index you get if > 'accountGrp' is the .Group name and Last is a control in that group. > > Sub accountGrp_event() > If Last.Name="txtUser" then Last.Value = "MyName" ' or txtUser.Value > = "MyName" If Last.Name="txtOther" then Last.Value = "YourName" > If Last.Name="Price" then Last["Price"].Value = 1000 ' or > Last[Last.Name].Value = 1000 End Sub You can already do that: Sub accountGrp_event() If Last = txtUser then Last.Value = "MyName" If Last = txtOther then Last.Value = "YourName" If Last = Price then Last["Price"].Value = 1000 End Sub Regards, -- Benoit Minisini From rohnny at ...1248... Sat Jan 14 20:08:58 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 14 Jan 2006 20:08:58 +0100 Subject: [Gambas-user] Re: Re: casting or changing datatype. Message-ID: <43C94C4A.6010606@...1248...> Maybee this is what you are looking for Use a DBClass.. Make a variable.... PRIVATE $Conn AS Connection Public Function Open() as connection $Conn.Name = dbname 'open the connection. $Conn.Open return $Conn end function PUBLIC FUNCTION Close() AS Boolean 'Close the database TRY $Conn.Close RETURN TRUE CATCH RETURN FALSE END PUBLIC FUNCTION SQL($sql AS String) AS Result RETURN $Conn.Exec($sql) END To use this from a form it should be done like this. --form1 Private db as new DBClass Private r as result Private OtherR as result sub Form_Open() db.open() r = db.SQL("select from arcust") print r!field1 print r!field2 r = db.SQL("select from arcust2") print r!field1 print r!field2 OtherR = db.SQL("select from arcust4") print OtherR!field1 Print OtherR!field2 Print "This is still the same as it was before "& r!field1 end sub -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From sourceforge-raindog2 at ...94... Sat Jan 14 20:46:06 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 14 Jan 2006 14:46:06 -0500 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <200601140837.28982.jfabiani@...1109...> References: <43C8D422.3090206@...1248...> <200601141557.44100.ronstk@...239...> <200601140837.28982.jfabiani@...1109...> Message-ID: <200601141446.06912.sourceforge-raindog2@...94...> On Sat January 14 2006 11:37, johnf wrote: > have been a function. My only excuse is I program in Foxpro > and there is not real difference between a function and a > method both can return a variable. In Perl, C and most other languages there's no difference between the two either.... it's really a BASIC thing. I do that all the time myself and have to correct it to make it compile. > All I'm attempting to do is write a class that can accept a > string which will create a "result" datatype with a name > matching the string. I think I remember doing what you're trying to do, way back in my dBase IV days. (Foxpro's language was based on dBase.) The difference is, symbols (meaning names of variables, etc.) are discarded in Gambas when you compile the code, just like in Java and C, so you can't create a variable with a specific name at runtime. What you can do, however, is this: ' outside of any subs... PUBLIC MyResults as Collection ' in your Sub Main or Form_Load or whatever... MyResults = NEW Collection ' and then you can write this: DIM s as String s = "anyname" MyResults[s] = db.Execute("select * from arcust") ' then you can go like this: print MyResults["anyname"]["Address1"] ' or print MyResults[s]["City"] ' or even dim r as Result r = MyResults[s] print r["Zip"] ' etc. So, to rewrite that function from your original question, public function myResult(thestr as String) as Result return MyResults[thestr] end But it'd probably be easier to just refer to MyResults[thestr] without writing that function. Let me know if this is what you had in mind. > Actually the sql statement is very different but I want it to > simple. The "realbasic" example is called "casting" I believe. I have about 5 minutes of experience with RealBasic, but "casting" in other languages means "forcing the compiler/interpreter to treat a variable as a different type than it was created as." For example, suppose you have an integer and you want your C compiler to treat it as an unsigned long.... you'd go like this: int i = 1; printf("Look, it's an unsigned long: %d", (ulong) i); While used frequently, casting is pretty dangerous. If for example I had written printf("Look, it's a string: %s", (char *) i); forcing i to be a string pointer, the program would have crashed and dumped core at runtime, as it would have been looking for the string to start at memory location 0x00000001. Anyway, Gambas (like VB and most other BASIC variants, and even most other high level languages like php and python) has no such concept as casting.... types are automatically converted when possible, and there are conversion functions like Val() and CStr() when it's not. And there's a type called Variant which can basically store anything. The keys and values in a Collection are always variants, which is how we can put your Result into one. > I'm a newbie to gambas and basic in general. Which means I'm > trying to use old thinking with a new langauge. So I'm very > open to suggestions on how to create a framework. Actually I > open to anything with respect to Gambas. What I've described is pretty similar to how the IDE, for example, handles the controls we create at runtime. The IDE is probably the best example of a Gambas framework there is, right now. Rob From jfabiani at ...1109... Sat Jan 14 21:21:51 2006 From: jfabiani at ...1109... (johnf) Date: Sat, 14 Jan 2006 12:21:51 -0800 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <200601141446.06912.sourceforge-raindog2@...94...> References: <43C8D422.3090206@...1248...> <200601140837.28982.jfabiani@...1109...> <200601141446.06912.sourceforge-raindog2@...94...> Message-ID: <200601141221.51119.jfabiani@...1109...> On Saturday 14 January 2006 11:46, Rob Kudla wrote: > On Sat January 14 2006 11:37, johnf wrote: > > have been a function. My only excuse is I program in Foxpro > > and there is not real difference between a function and a > > method both can return a variable. > > In Perl, C and most other languages there's no difference between > the two either.... it's really a BASIC thing. I do that all the > time myself and have to correct it to make it compile. > > > All I'm attempting to do is write a class that can accept a > > string which will create a "result" datatype with a name > > matching the string. > > I think I remember doing what you're trying to do, way back in my > dBase IV days. (Foxpro's language was based on dBase.) > > The difference is, symbols (meaning names of variables, etc.) are > discarded in Gambas when you compile the code, just like in Java > and C, so you can't create a variable with a specific name at > runtime. What you can do, however, is this: > > ' outside of any subs... > PUBLIC MyResults as Collection > > ' in your Sub Main or Form_Load or whatever... > MyResults = NEW Collection > > ' and then you can write this: > DIM s as String > s = "anyname" > MyResults[s] = db.Execute("select * from arcust") > ' then you can go like this: > print MyResults["anyname"]["Address1"] > ' or > print MyResults[s]["City"] > ' or even > dim r as Result > r = MyResults[s] > print r["Zip"] > ' etc. > > So, to rewrite that function from your original question, > > public function myResult(thestr as String) as Result > > return MyResults[thestr] > > end > > But it'd probably be easier to just refer to MyResults[thestr] > without writing that function. > > Let me know if this is what you had in mind. > > > Actually the sql statement is very different but I want it to > > simple. The "realbasic" example is called "casting" I believe. > > I have about 5 minutes of experience with RealBasic, but > "casting" in other languages means "forcing the > compiler/interpreter to treat a variable as a different type > than it was created as." For example, suppose you have an > integer and you want your C compiler to treat it as an unsigned > long.... you'd go like this: > > int i = 1; > printf("Look, it's an unsigned long: %d", (ulong) i); > > While used frequently, casting is pretty dangerous. If for > example I had written > > printf("Look, it's a string: %s", (char *) i); > > forcing i to be a string pointer, the program would have crashed > and dumped core at runtime, as it would have been looking for > the string to start at memory location 0x00000001. > > Anyway, Gambas (like VB and most other BASIC variants, and even > most other high level languages like php and python) has no such > concept as casting.... types are automatically converted when > possible, and there are conversion functions like Val() and > CStr() when it's not. And there's a type called Variant which > can basically store anything. The keys and values in a > Collection are always variants, which is how we can put your > Result into one. > > > I'm a newbie to gambas and basic in general. Which means I'm > > trying to use old thinking with a new langauge. So I'm very > > open to suggestions on how to create a framework. Actually I > > open to anything with respect to Gambas. > > What I've described is pretty similar to how the IDE, for > example, handles the controls we create at runtime. The IDE is > probably the best example of a Gambas framework there is, right > now. > > Rob On the surface this looks like the answer. I knew there just had to be a way to create my class. Thanks, let me play with this and figure out how to get the first steps of my framework created. John From ronstk at ...239... Sat Jan 14 18:37:25 2006 From: ronstk at ...239... (ron) Date: Sat, 14 Jan 2006 18:37:25 +0100 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <200601141755.27100.gambas@...1...> References: <43C8D422.3090206@...1248...> <200601141746.35172.ronstk@...239...> <200601141755.27100.gambas@...1...> Message-ID: <200601141837.25185.ronstk@...239...> On Saturday 14 January 2006 17:55, Benoit Minisini wrote: > You can already do that: > > Sub accountGrp_event() > ? If Last = txtUser then Last.Value = "MyName" > ? If Last = txtOther then Last.Value = "YourName" > ? If Last = Price then Last["Price"].Value = 1000 > End Sub > > Regards, Everyday you can learn something :) For this example the .Name is no need to. But how about the iterating the Form.Controls to show the name and value. For many, old VB people, the use of the .Tag as replacement is strange and in my case used for the more advanced things as a simple name. I do not ask/force to implement it but will be happy if done. I use a fork to eat food, not do it with software :) Ron From ronstk at ...239... Sat Jan 14 18:27:50 2006 From: ronstk at ...239... (ron) Date: Sat, 14 Jan 2006 18:27:50 +0100 Subject: [Gambas-user] Re: casting or changing datatype. In-Reply-To: <200601140837.28982.jfabiani@...1109...> References: <43C8D422.3090206@...1248...> <200601141557.44100.ronstk@...239...> <200601140837.28982.jfabiani@...1109...> Message-ID: <200601141827.51027.ronstk@...239...> On Saturday 14 January 2006 17:37, johnf wrote: > All I'm attempting to do is write a class that can accept a string which will > create a "result" datatype with a name matching the string. ?I can do this in > Visual Foxpro very easily: > mydata = "anyname" > Select * from arcust into &mydata. Here mydata is the records collection / RecordSet in MS terms (Access and VB) When you have a function that returns the Result you should get the records For gambas: Function GetRecords(query) as Result Dim rs As Result ... rs=DB.Execute(query) ' use the right code ! ... Return rs End useage: Dim anyname as Result (gambas) ' RecordSet (MS anyname = getrecords(query) In the Foxpro code you can dynamic say into witch recordset the result must go. That is not posible in Gambas or MS Access and VB, as far I know. In VB you can do getrecords(query,rs) as Recordset The code can set the rs variable to the recordset and return it too dim rs as recordset dim tr as recordset tm = getrecords(query,rs) or with getrecords(query,rs) ' here the reason for return of Recordset if .RecordCount>0 then ... endif rs.close ' or .close, they are the same end with Function (query a string, putrs as recordset) as recordset set putrs = hconn.execute(query) return putrs end > I can do this in RealBasic (I think I can) > dim mydata as variant > result(mydata) = hconn.exec("select * from arcust;) Basicly the same in GB, ecept 'variant' must be 'Result' and 'result(mydata)' = .... must be 'mydata' > Actually the sql statement is very different but I want it to simple. > The "realbasic" example is called "casting" I believe. > The only casting I know is in C as: (result)mydata >I'm a newbie to gambas and basic in general. > Which means I'm trying to use old thinking with a new langauge. I'm not a newby in same sence but the gambas basic language has some differences to other and puzzle me also many times. Old thinking is for me the VB/Access way. Stupid me. Your intention can be good but to make the framework you need to be experienced for the basic parts. I think you are to quick to do it now, try first to learn the basic stuff dispite you have more work, you understanding of gambas improves with it. I made some tools in PHP to create complete PHP/HTML pages to work on mysql tables. Now I have to build another project and have lost the close contact to the code to write the basics because I did not do it enouhg but using the tools and they are not usable in this project. Learning again. If you are good in big projects/programs/codeblocks already, switching an programming environment needs slowing down some steps to learn the new things. I made the mistake also by trying to make something big as newbie in the past. Ron From gambasfr at ...11... Sun Jan 15 10:06:24 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Sun, 15 Jan 2006 10:06:24 +0100 Subject: [Gambas-user] Kugar Edit In-Reply-To: <200601131836.04483.jscops@...11...> References: <200601121137.32844.isy21@...1082...> <200601131836.04483.jscops@...11...> Message-ID: <200601151006.24666.gambasfr@...11...> Le Vendredi 13 Janvier 2006 18:36, Jacky a ?crit?: > Le Jeudi 12 Janvier 2006 05:37, Ignatius Syofian a ??crit??: > > Hi, > > > > If i edit sample from Kugar (i attach that file here) with Kugar Designer > > (version 1.4.2) to change in example to change posiiton of total copies > > coloum to more left position, then i save it (i not change sample3.kud > > data file). I run KUGAR report viewer sample3.kud then i found total > > copies not shown anymore....why ??? > > > > I only install Koffice-extra 1.4.2 > > Koffice 1.4.2 > > koffice-database 1.4.2 > > I use SUSE 10.0 > > > > have i must install something to run KUGAR perfectly ? > > The Kugar samples *.kut you are used are installed > in /usr/share/apps/kugar/templates (If Mandrake ou Fedora) > or /opt/kde3/share/apps/kugar/templates (If Suse). If you modified a sample > in another directorie, maybe you must copy your files *.kut in this > directorie ( On root ). > > ~?? Jack ??~ > > > I've not tested this but in kde3 you can mabe save shared data in : /home/yourhome/.kde/share/apps/kugar/templates .. kde use this way to save icons or style in user mode. Fabien Bodard From ronald_gambas at ...43... Sun Jan 15 12:50:28 2006 From: ronald_gambas at ...43... (Ronald Medina) Date: Sun, 15 Jan 2006 03:50:28 -0800 (PST) Subject: [Gambas-user] Tableview help! Message-ID: <20060115115028.65136.qmail@...1324...> Hi guys! can someone help me how to change the height of the row in the tableview. thanks in advance. --------------------------------- Yahoo! Photos ? Showcase holiday pictures in hardcover Photo Books. You design it and we?ll bind it! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronald_gambas at ...43... Sun Jan 15 14:45:02 2006 From: ronald_gambas at ...43... (Ronald Medina) Date: Sun, 15 Jan 2006 05:45:02 -0800 (PST) Subject: [Gambas-user] Tableview help Got it! TABINDEX help. In-Reply-To: <20060115115028.65136.qmail@...1324...> Message-ID: <20060115134502.93105.qmail@...1325...> okey i got it! where can i find tabindex? Ronald Medina wrote: Hi guys! can someone help me how to change the height of the row in the tableview. thanks in advance. --------------------------------- Yahoo! Photos ??? Showcase holiday pictures in hardcover Photo Books. You design it and we???ll bind it! --------------------------------- Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever. -------------- next part -------------- An HTML attachment was scrubbed... URL: From picander78 at ...325... Sun Jan 15 14:45:57 2006 From: picander78 at ...325... (Marco Gusy) Date: Sun, 15 Jan 2006 14:45:57 +0100 Subject: [Gambas-user] TreeView bug Message-ID: <200601151445.57958.picander78@...325...> I noticed a very annoying problem with treeview. Open the gambas Drag 'n Drop example. Add many subitems till both the scrollbars appear. The scrollbars become unusable because each time you try to drag them with the mouse the drag procedure starts. I noticed that the selection shadow width increase each time you add an item, when the shadow goes under the scrollbar the scrollbar go crazy. Marco From jscops at ...11... Sun Jan 15 17:01:53 2006 From: jscops at ...11... (Jacky) Date: Sun, 15 Jan 2006 17:01:53 +0100 Subject: [Gambas-user] Kugar Edit In-Reply-To: <200601151006.24666.gambasfr@...11...> References: <200601121137.32844.isy21@...1082...> <200601131836.04483.jscops@...11...> <200601151006.24666.gambasfr@...11...> Message-ID: <200601151701.53426.jscops@...11...> Le Dimanche 15 Janvier 2006 10:06, Fabien Bodard a ?crit?: > Le Vendredi 13 Janvier 2006 18:36, Jacky a ?crit?: > > Le Jeudi 12 Janvier 2006 05:37, Ignatius Syofian a ??crit??: > > > Hi, > > > > > > If i edit sample from Kugar (i attach that file here) with Kugar > > > Designer (version 1.4.2) to change in example to change posiiton of > > > total copies coloum to more left position, then i save it (i not change > > > sample3.kud data file). I run KUGAR report viewer sample3.kud then i > > > found total copies not shown anymore....why ??? > > > > > > I only install Koffice-extra 1.4.2 > > > Koffice 1.4.2 > > > koffice-database 1.4.2 > > > I use SUSE 10.0 > > > > > > have i must install something to run KUGAR perfectly ? > > > > The Kugar samples *.kut you are used are installed > > in /usr/share/apps/kugar/templates (If Mandrake ou Fedora) > > or /opt/kde3/share/apps/kugar/templates (If Suse). If you modified a > > sample in another directorie, maybe you must copy your files *.kut in > > this directorie ( On root ). > > > > ~?? Jack ??~ > > I've not tested this but > in kde3 you can mabe save shared data in : > /home/yourhome/.kde/share/apps/kugar/templates .. > > kde use this way to save icons or style in user mode. > > Fabien Bodard Yes Fabien, You are right with some Kde applications, but kugar don't use this way. ~? Jack ?~ From rohnny at ...1248... Sun Jan 15 18:02:32 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sun, 15 Jan 2006 18:02:32 +0100 Subject: [Gambas-user] Tableview help Got it! TABINDEX help. Message-ID: <43CA8028.6040509@...1248...> There is no tabindex. I have wanted thisone me self. You need to create the items in the right order. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From nikobordx at ...67... Sun Jan 15 19:35:00 2006 From: nikobordx at ...67... (Niko) Date: Sun, 15 Jan 2006 19:35:00 +0100 Subject: [Gambas-user] RE: FreeBSD 6.0 and Gambas 2 Message-ID: Hello everybody ! Somebody have been successful compiled and running Gambas 2 under FreeBSD 6.0 ??? Thank you in advance. Nicolas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronald_gambas at ...43... Mon Jan 16 01:11:22 2006 From: ronald_gambas at ...43... (Ronald Medina) Date: Sun, 15 Jan 2006 16:11:22 -0800 (PST) Subject: [Gambas-user] Tableview help Got it! TABINDEX help. In-Reply-To: <43CA8028.6040509@...1248...> Message-ID: <20060116001122.56628.qmail@...1324...> really? wow that is a lot of texbox siwtching to do, well i got to switch it now! thanks for the help. Rohnny Stormo wrote: There is no tabindex. I have wanted thisone me self. You need to create the items in the right order. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Yahoo! Photos ? Showcase holiday pictures in hardcover Photo Books. You design it and we?ll bind it! -------------- next part -------------- An HTML attachment was scrubbed... URL: From isy21 at ...1082... Mon Jan 16 11:31:48 2006 From: isy21 at ...1082... (Ignatius Syofian) Date: Mon, 16 Jan 2006 17:31:48 +0700 Subject: [Gambas-user] Report Message-ID: <200601161731.49077.isy21@...1082...> Hi, I just need opinion from gambas user or expert, if you develop a application and needed report, which can viewer first before printing, what a suggest report method you will use ?. I know there a 1. DBReportDesigner or DBReportViewer some of problem is : if i use myappliac.showmodal then i run DBReportViewer.show it will raise error if myapplic.show then i can run DBReportViewer.show 2. Kugar some of problem, i can't use special feature sum/average or else. Learn from Laurus example, i found the subtotal it from gambas application not from Kugar. I try to email to Koffice team, but still no answer until now. 3. DataExample Report this is from Gambas Example. It write html file, it write from gambas application no 3 means, if you change a title or header then you must change gambas source also, am i right ? Maybe some of you are experience with this report application. I need you suggest to solve my problem, which one i must do or there is something else i can try ?...... -- Thanks in advance. Regards, Ignatius Syofian From gambas at ...1... Mon Jan 16 13:38:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jan 2006 13:38:46 +0100 Subject: [Gambas-user] Report In-Reply-To: <200601161731.49077.isy21@...1082...> References: <200601161731.49077.isy21@...1082...> Message-ID: <200601161338.46537.gambas@...1...> On Monday 16 January 2006 11:31, Ignatius Syofian wrote: > Hi, > > I just need opinion from gambas user or expert, if you develop a > application and needed report, which can viewer first before printing, what > a suggest report method you will use ?. > > I know there a > 1. DBReportDesigner or DBReportViewer > some of problem is : if i use myappliac.showmodal then i run > DBReportViewer.show it will raise error > if myapplic.show then i can run DBReportViewer.show > > 2. Kugar > some of problem, i can't use special feature sum/average or else. > Learn from Laurus example, i found the subtotal it from gambas > application not from Kugar. > I try to email to Koffice team, but still no answer until now. > > 3. DataExample Report > this is from Gambas Example. > It write html file, it write from gambas application > > > no 3 means, if you change a title or header then you must change gambas > source also, am i right ? > > Maybe some of you are experience with this report application. I need you > suggest to solve my problem, which one i must do or there is something else > i can try ?...... I studied this problem on Windows with Visual Basic some years ago, and implemented the following solution: Split the reporting process in three parts: the presentation, the data, and the program. The program takes the data, the presentation, and sends the result to the printer. (On KDE, you even have an automatic previewing of the result) The presentation were a bunch of text files with a C-like syntax describing the report. The data was a text file with a specific format generated from the source by the program that calls the report. It can come from everywhere. The presentation were splitted in section, each section having one text file. A section was a hierarchical set of "controls", each control printing a text, an image, a drawing, and "containers", that arrange their contents (vertically, horizontally, in a table...). What data to print, and where printing it, was represented by special markups in the presentation files. There was a special syntax to repeat some presentation controls if the data is actually a list. Because of this repetition feature, a section can print several pages, until all the data is printed. There were almost no absolute coordinates in the presentation files. All the layout is done by the program each time the report is printed, lie a web browser does with HTML pages. This solution is a bit slow (at least in VB), but it allows you to have different reports for the same data, by just modifying some text files. I'd like to have the time to port this reporting program to Gambas, but I don't have the time at the moment... I hope I gave you some ideas :-) Regards, -- Benoit Minisini From jfabiani at ...1109... Mon Jan 16 16:36:43 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 16 Jan 2006 07:36:43 -0800 Subject: [Gambas-user] Report In-Reply-To: <200601161338.46537.gambas@...1...> References: <200601161731.49077.isy21@...1082...> <200601161338.46537.gambas@...1...> Message-ID: <200601160736.43602.jfabiani@...1109...> On Monday 16 January 2006 04:38, Benoit Minisini wrote: > On Monday 16 January 2006 11:31, Ignatius Syofian wrote: > > Hi, > > > > I just need opinion from gambas user or expert, if you develop a > > application and needed report, which can viewer first before printing, > > what a suggest report method you will use ?. > > > > I know there a > > 1. DBReportDesigner or DBReportViewer > > some of problem is : if i use myappliac.showmodal then i run > > DBReportViewer.show it will raise error > > if myapplic.show then i can run DBReportViewer.show > > > > 2. Kugar > > some of problem, i can't use special feature sum/average or else. > > Learn from Laurus example, i found the subtotal it from gambas > > application not from Kugar. > > I try to email to Koffice team, but still no answer until now. > > > > 3. DataExample Report > > this is from Gambas Example. > > It write html file, it write from gambas application > > > > > > no 3 means, if you change a title or header then you must change gambas > > source also, am i right ? > > > > Maybe some of you are experience with this report application. I need you > > suggest to solve my problem, which one i must do or there is something > > else i can try ?...... > > I studied this problem on Windows with Visual Basic some years ago, and > implemented the following solution: > > Split the reporting process in three parts: the presentation, the data, and > the program. > > The program takes the data, the presentation, and sends the result to the > printer. (On KDE, you even have an automatic previewing of the result) > > The presentation were a bunch of text files with a C-like syntax describing > the report. > > The data was a text file with a specific format generated from the source > by the program that calls the report. It can come from everywhere. > > The presentation were splitted in section, each section having one text > file. A section was a hierarchical set of "controls", each control printing > a text, an image, a drawing, and "containers", that arrange their contents > (vertically, horizontally, in a table...). > > What data to print, and where printing it, was represented by special > markups in the presentation files. > > There was a special syntax to repeat some presentation controls if the data > is actually a list. > > Because of this repetition feature, a section can print several pages, > until all the data is printed. > > There were almost no absolute coordinates in the presentation files. All > the layout is done by the program each time the report is printed, lie a > web browser does with HTML pages. > > This solution is a bit slow (at least in VB), but it allows you to have > different reports for the same data, by just modifying some text files. > > I'd like to have the time to port this reporting program to Gambas, but I > don't have the time at the moment... > > I hope I gave you some ideas :-) > > Regards, How about providing the program in VB and let some of us attempt a conversion. I will soon require reports and it would be nice to get a starting point. John From gambas at ...1... Mon Jan 16 16:53:06 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jan 2006 16:53:06 +0100 Subject: [Gambas-user] Report In-Reply-To: <200601160736.43602.jfabiani@...1109...> References: <200601161731.49077.isy21@...1082...> <200601161338.46537.gambas@...1...> <200601160736.43602.jfabiani@...1109...> Message-ID: <200601161653.06271.gambas@...1...> On Monday 16 January 2006 16:36, johnf wrote: > On Monday 16 January 2006 04:38, Benoit Minisini wrote: > > On Monday 16 January 2006 11:31, Ignatius Syofian wrote: > > > Hi, > > > > > > I just need opinion from gambas user or expert, if you develop a > > > application and needed report, which can viewer first before printing, > > > what a suggest report method you will use ?. > > > > > > I know there a > > > 1. DBReportDesigner or DBReportViewer > > > some of problem is : if i use myappliac.showmodal then i run > > > DBReportViewer.show it will raise error > > > if myapplic.show then i can run DBReportViewer.show > > > > > > 2. Kugar > > > some of problem, i can't use special feature sum/average or else. > > > Learn from Laurus example, i found the subtotal it from gambas > > > application not from Kugar. > > > I try to email to Koffice team, but still no answer until now. > > > > > > 3. DataExample Report > > > this is from Gambas Example. > > > It write html file, it write from gambas application > > > > > > > > > no 3 means, if you change a title or header then you must change gambas > > > source also, am i right ? > > > > > > Maybe some of you are experience with this report application. I need > > > you suggest to solve my problem, which one i must do or there is > > > something else i can try ?...... > > > > I studied this problem on Windows with Visual Basic some years ago, and > > implemented the following solution: > > > > Split the reporting process in three parts: the presentation, the data, > > and the program. > > > > The program takes the data, the presentation, and sends the result to the > > printer. (On KDE, you even have an automatic previewing of the result) > > > > The presentation were a bunch of text files with a C-like syntax > > describing the report. > > > > The data was a text file with a specific format generated from the source > > by the program that calls the report. It can come from everywhere. > > > > The presentation were splitted in section, each section having one text > > file. A section was a hierarchical set of "controls", each control > > printing a text, an image, a drawing, and "containers", that arrange > > their contents (vertically, horizontally, in a table...). > > > > What data to print, and where printing it, was represented by special > > markups in the presentation files. > > > > There was a special syntax to repeat some presentation controls if the > > data is actually a list. > > > > Because of this repetition feature, a section can print several pages, > > until all the data is printed. > > > > There were almost no absolute coordinates in the presentation files. All > > the layout is done by the program each time the report is printed, lie a > > web browser does with HTML pages. > > > > This solution is a bit slow (at least in VB), but it allows you to have > > different reports for the same data, by just modifying some text files. > > > > I'd like to have the time to port this reporting program to Gambas, but I > > don't have the time at the moment... > > > > I hope I gave you some ideas :-) > > > > Regards, > > How about providing the program in VB and let some of us attempt a > conversion. > > I will soon require reports and it would be nice to get a starting point. > > John > Alas I don't own it and I don't have it: I made it at my last job, and I don't work in the company anymore. -- Benoit Minisini From jfabiani at ...1109... Mon Jan 16 16:58:05 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 16 Jan 2006 07:58:05 -0800 Subject: [Gambas-user] Report In-Reply-To: <200601161653.06271.gambas@...1...> References: <200601161731.49077.isy21@...1082...> <200601160736.43602.jfabiani@...1109...> <200601161653.06271.gambas@...1...> Message-ID: <200601160758.05443.jfabiani@...1109...> On Monday 16 January 2006 07:53, Benoit Minisini wrote: > On Monday 16 January 2006 16:36, johnf wrote: > > On Monday 16 January 2006 04:38, Benoit Minisini wrote: > > > On Monday 16 January 2006 11:31, Ignatius Syofian wrote: > > > > Hi, > > > > > > > > I just need opinion from gambas user or expert, if you develop a > > > > application and needed report, which can viewer first before > > > > printing, what a suggest report method you will use ?. > > > > > > > > I know there a > > > > 1. DBReportDesigner or DBReportViewer > > > > some of problem is : if i use myappliac.showmodal then i run > > > > DBReportViewer.show it will raise error > > > > if myapplic.show then i can run DBReportViewer.show > > > > > > > > 2. Kugar > > > > some of problem, i can't use special feature sum/average or else. > > > > Learn from Laurus example, i found the subtotal it from gambas > > > > application not from Kugar. > > > > I try to email to Koffice team, but still no answer until now. > > > > > > > > 3. DataExample Report > > > > this is from Gambas Example. > > > > It write html file, it write from gambas application > > > > > > > > > > > > no 3 means, if you change a title or header then you must change > > > > gambas source also, am i right ? > > > > > > > > Maybe some of you are experience with this report application. I need > > > > you suggest to solve my problem, which one i must do or there is > > > > something else i can try ?...... > > > > > > I studied this problem on Windows with Visual Basic some years ago, and > > > implemented the following solution: > > > > > > Split the reporting process in three parts: the presentation, the data, > > > and the program. > > > > > > The program takes the data, the presentation, and sends the result to > > > the printer. (On KDE, you even have an automatic previewing of the > > > result) > > > > > > The presentation were a bunch of text files with a C-like syntax > > > describing the report. > > > > > > The data was a text file with a specific format generated from the > > > source by the program that calls the report. It can come from > > > everywhere. > > > > > > The presentation were splitted in section, each section having one text > > > file. A section was a hierarchical set of "controls", each control > > > printing a text, an image, a drawing, and "containers", that arrange > > > their contents (vertically, horizontally, in a table...). > > > > > > What data to print, and where printing it, was represented by special > > > markups in the presentation files. > > > > > > There was a special syntax to repeat some presentation controls if the > > > data is actually a list. > > > > > > Because of this repetition feature, a section can print several pages, > > > until all the data is printed. > > > > > > There were almost no absolute coordinates in the presentation files. > > > All the layout is done by the program each time the report is printed, > > > lie a web browser does with HTML pages. > > > > > > This solution is a bit slow (at least in VB), but it allows you to have > > > different reports for the same data, by just modifying some text files. > > > > > > I'd like to have the time to port this reporting program to Gambas, but > > > I don't have the time at the moment... > > > > > > I hope I gave you some ideas :-) > > > > > > Regards, > > > > How about providing the program in VB and let some of us attempt a > > conversion. > > > > I will soon require reports and it would be nice to get a starting point. > > > > John > > Alas I don't own it and I don't have it: I made it at my last job, and I > don't work in the company anymore. OK I hope someone makes something available. John From jfabiani at ...1109... Mon Jan 16 17:31:21 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 16 Jan 2006 08:31:21 -0800 Subject: [Gambas-user] a wish list Message-ID: <200601160831.21407.jfabiani@...1109...> A wish list: I realize that gambas 2 hasn't even been released but I thought I'd get my wishes in for the very next version. I also realize that some of what I wish for can be done (sort of) and does not follow VB (who cares). The first wish would be a way to add properties and methods to controls from within the IDE. Right click the control and be presented a sub-menu to add properties or methods. Or select the control and use the menu to add the same. Just a simple way to extend the abilities of a control. This would of course include extending a window. Also the property window in the IDE would list the extended properties along with the methods available for the control. Maybe properties on one tab and methods on a second tab. Maybe clicking in the methods would open the editor to the method. The second wish would be a GRID control that allowed editing from within the IDE and associated with a result set. It, of course, would have lots of events and methods to allow interaction during runtime (add column, add row, etc...) but would also allow editing and extending from within the IDE. A simple report writer that could accept a result set. It should have a header section, detail section, a footer section. Built-in function for totaling, and grouping, and and allow internal variables for processing the data. Something like ?print when variable? for each data item. I know if I want it write some code. I just don't know a lot about C and C++. But I think I have reason to learn. The more I play with Gambas the more I enjoy the idea of Gambas. John From indra at ...1326... Mon Jan 16 05:43:44 2006 From: indra at ...1326... (Indra Tjahjono) Date: Mon, 16 Jan 2006 11:43:44 +0700 Subject: [Gambas-user] Console Message-ID: <200601161143.44884.indra@...1326...> Hi there, First of all, thank you Benoit for the great apps. I have small application that call kugar from my form using this syntax, EXEC ["kugar", "/tmp/filename.kud"] everything work fine, except kugar always spit out the output to console box with this information, !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! datasource not found MPage Collection::~MPageCollection<<<<< MReportEngine::~MReportEngine() my question is, how do I disable the console box? I tried with EXEC ["kugar","/tmp/filename.kud 1> /dev/null"] without success... Anyone know a better solution? Thanks in advance -- Indra PT. Verinux Linux System http://www.verinux.com - "Technology in a smart way" http://www.rtrw.net - "Internet untuk Semua" From mandrakeron at ...43... Mon Jan 16 18:28:54 2006 From: mandrakeron at ...43... (Ron Gottstein) Date: Mon, 16 Jan 2006 09:28:54 -0800 (PST) Subject: [Gambas-user] Drawingarea Message-ID: <20060116172854.82412.qmail@...1327...> Hello to all who read these, I am attempting to develop a paint program using v 1.9.23. I can draw images, and all types of objects and text on the drawingarea. What I need help with is this: 1. How do you select an object (what was drawn, ie text or rect) on the drawing area if you want to change it or delete it? 2. How can you move the objects after they have been drawn? Please, if possible provide simple examples. Thank you Ron G. who enjoys Gambas __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From gambas at ...1... Mon Jan 16 19:52:19 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jan 2006 19:52:19 +0100 Subject: [Gambas-user] TreeView bug In-Reply-To: <200601151445.57958.picander78@...325...> References: <200601151445.57958.picander78@...325...> Message-ID: <200601161952.19567.gambas@...1...> On Sunday 15 January 2006 14:45, Marco Gusy wrote: > I noticed a very annoying problem with treeview. > Open the gambas Drag 'n Drop example. Add many subitems till both the > scrollbars appear. > The scrollbars become unusable because each time you try to drag them with > the mouse the drag procedure starts. > I noticed that the selection shadow width increase each time you add an > item, when the shadow goes under the scrollbar the scrollbar go crazy. > > Marco > I finally fixed this bug. It seems that there is a missing information in the QT doc about how to use drag & drop with listview widget family. You will get the fix in the next version of both stable and development version. Regards, -- Benoit Minisini From jfabiani at ...1109... Mon Jan 16 21:20:38 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 16 Jan 2006 12:20:38 -0800 Subject: [Gambas-user] Console In-Reply-To: <200601161143.44884.indra@...1326...> References: <200601161143.44884.indra@...1326...> Message-ID: <200601161220.38648.jfabiani@...1109...> On Sunday 15 January 2006 20:43, Indra Tjahjono wrote: > EXEC ["kugar","/tmp/filename.kud 1> /dev/null"] without success... Believe me when I say I don't really know but if I recall correctly you need command 2> /dev/null in bash John From gambas at ...1... Mon Jan 16 22:29:06 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 16 Jan 2006 22:29:06 +0100 Subject: [Gambas-user] Console In-Reply-To: <200601161220.38648.jfabiani@...1109...> References: <200601161143.44884.indra@...1326...> <200601161220.38648.jfabiani@...1109...> Message-ID: <200601162229.06471.gambas@...1...> On Monday 16 January 2006 21:20, johnf wrote: > On Sunday 15 January 2006 20:43, Indra Tjahjono wrote: > > EXEC ["kugar","/tmp/filename.kud 1> /dev/null"] without success... > > Believe me when I say I don't really know but if I recall correctly you > need command 2> /dev/null in bash > > John > EXEC does not use any shell. You must use the SHELL command - Look at the documentation for more details... Regards, -- Benoit Minisini From jfabiani at ...1109... Mon Jan 16 22:58:34 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 16 Jan 2006 13:58:34 -0800 Subject: [Gambas-user] Console In-Reply-To: <200601162229.06471.gambas@...1...> References: <200601161143.44884.indra@...1326...> <200601161220.38648.jfabiani@...1109...> <200601162229.06471.gambas@...1...> Message-ID: <200601161358.34884.jfabiani@...1109...> On Monday 16 January 2006 13:29, Benoit Minisini wrote: > On Monday 16 January 2006 21:20, johnf wrote: > > On Sunday 15 January 2006 20:43, Indra Tjahjono wrote: > > > EXEC ["kugar","/tmp/filename.kud 1> /dev/null"] without success... > > > > Believe me when I say I don't really know but if I recall correctly you > > need command 2> /dev/null in bash > > > > John > > EXEC does not use any shell. You must use the SHELL command - Look at the > documentation for more details... > > Regards, I started kugar and it appears to be a dcop aware program. Maybe you could use dcop to configure the program.. Check the "kate" demo for information. Let me know if it works. John From picander78 at ...325... Tue Jan 17 00:36:01 2006 From: picander78 at ...325... (Marco Gusy) Date: Tue, 17 Jan 2006 00:36:01 +0100 Subject: [Gambas-user] TreeView bug In-Reply-To: <200601161952.19567.gambas@...1...> References: <200601151445.57958.picander78@...325...> <200601161952.19567.gambas@...1...> Message-ID: <200601170036.02048.picander78@...325...> Alle 19:52, luned? 16 gennaio 2006, Benoit Minisini ha scritto: > On Sunday 15 January 2006 14:45, Marco Gusy wrote: > > I noticed a very annoying problem with treeview. > > Open the gambas Drag 'n Drop example. Add many subitems till both the > > scrollbars appear. > > The scrollbars become unusable because each time you try to drag them with > > the mouse the drag procedure starts. > > I noticed that the selection shadow width increase each time you add an > > item, when the shadow goes under the scrollbar the scrollbar go crazy. > > > > Marco > > > > I finally fixed this bug. It seems that there is a missing information in the > QT doc about how to use drag & drop with listview widget family. > > You will get the fix in the next version of both stable and development > version. > > Regards, Excellent, you're a very good guy! ;-) By the way, did you find something about the treeview scrolling whan dragging near the border? Marco From picander78 at ...325... Tue Jan 17 01:14:38 2006 From: picander78 at ...325... (Marco Gusy) Date: Tue, 17 Jan 2006 01:14:38 +0100 Subject: [Gambas-user] Report In-Reply-To: <200601161731.49077.isy21@...1082...> References: <200601161731.49077.isy21@...1082...> Message-ID: <200601170114.39106.picander78@...325...> I don't know if this could interest you... once i wrote a class in VB to create postscript files from simple draw instructions. (print, line, newpage) I can convert it to gambas easly From sourceforge-raindog2 at ...94... Tue Jan 17 03:49:29 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 16 Jan 2006 21:49:29 -0500 Subject: [Gambas-user] a wish list In-Reply-To: <200601160831.21407.jfabiani@...1109...> References: <200601160831.21407.jfabiani@...1109...> Message-ID: <200601162149.30849.sourceforge-raindog2@...94...> On Mon January 16 2006 11:31, johnf wrote: > I know if I want it write some code. I just don't know a lot > about C and C++. But I think I have reason to learn. I actually think you could implement all three of your wishes while writing only Gambas code. 1. You could add that property menu to the IDE, which is written in Gambas, and implement it by just prompting the user for a property name/type and inserting "PROPERTY xxx AS yyy", "PRIVATE prop_xxx AS yyy", "FUNCTION xxx_Read as yyy" and "SUB xxx_Write (write_xxx AS yyy)" into the class declaration. Then, in the navigation submenu, you could populate it by looking for PROPERTY statements within the class file, and each property's corresponding Read and Write methods. See http://gambasdoc.org/help/lang/propdecl for more on that. 2. There's no reason you couldn't subclass TableView from gb.qt.ext for your editable grid control. I don't know how the performance would be, and I think someone might already be working on this (or maybe it was just a data-bound grid view), but I think it's possible to do in pure Gambas. I haven't run into the need for this myself, but back in the VB days I got tired of using proprietary add-on controls like Sheridan Datagrid and ended up writing my own control that overlaid a floating text box over the appropriate cell and trapped keypresses and whatnot to handle cursor movement, editing, etc. I think this is pretty much what you or anyone else would have to do for a Gambas control, whether you wrote it in Gambas or C++. 3. As you've heard, a report writer is being written, but I think a lot of us have ideas for how it ought to work and are eager to get code out there. I may just try to write something generalized the next time I have to write a report, and release it if there's no "official" report writer. But this part I'm absolutely sure can be done entirely in Gambas, because I already wrote it years ago in Java and I suck at Java. Rob From sourceforge-raindog2 at ...94... Tue Jan 17 03:56:14 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 16 Jan 2006 21:56:14 -0500 Subject: [Gambas-user] Report In-Reply-To: <200601170114.39106.picander78@...325...> References: <200601161731.49077.isy21@...1082...> <200601170114.39106.picander78@...325...> Message-ID: <200601162156.15035.sourceforge-raindog2@...94...> On Mon January 16 2006 19:14, Marco Gusy wrote: > I don't know if this could interest you... once i wrote a > class in VB to create postscript files from simple draw > instructions. (print, line, newpage) I can convert it to > gambas easly It would be great if you could post this. Maybe we could translate it and use it as the basis for a Postscript drawing object. dim ps as PostscriptFile Draw.Begin(ps) Draw.Text("Postscript Text",100,100) Draw.End Of course, Draw is a gb.qt class so it probably would be more complicated than that, but I'd still love to see that VB code. Thanks Rob From jfabiani at ...1109... Tue Jan 17 07:04:16 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 16 Jan 2006 22:04:16 -0800 Subject: [Gambas-user] Report In-Reply-To: <200601170114.39106.picander78@...325...> References: <200601161731.49077.isy21@...1082...> <200601170114.39106.picander78@...325...> Message-ID: <200601162204.16722.jfabiani@...1109...> On Monday 16 January 2006 16:14, Marco Gusy wrote: > I don't know if this could interest you... once i wrote a class in VB to > create postscript files from simple draw instructions. (print, line, > newpage) I can convert it to gambas easly Are you kidding! Of course we would. I will need a report writer of some sort very soon. John From jfabiani at ...1109... Tue Jan 17 08:40:44 2006 From: jfabiani at ...1109... (johnf) Date: Mon, 16 Jan 2006 23:40:44 -0800 Subject: [Gambas-user] a wish list In-Reply-To: <200601160831.21407.jfabiani@...1109...> References: <200601160831.21407.jfabiani@...1109...> Message-ID: <200601162340.44620.jfabiani@...1109...> On Monday 16 January 2006 08:31, johnf wrote: > A wish list: > > I realize that gambas 2 hasn't even been released but I thought I'd get my > wishes in for the very next version. I also realize that some of what I > wish for can be done (sort of) and does not follow VB (who cares). > > The first wish would be a way to add properties and methods to controls > from within the IDE. Right click the control and be presented a sub-menu > to add properties or methods. Or select the control and use the menu to > add the same. Just a simple way to extend the abilities of a control. > This would of course include extending a window. > > Also the property window in the IDE would list the extended properties > along with the methods available for the control. Maybe properties on one > tab and methods on a second tab. Maybe clicking in the methods would open > the editor to the method. > > The second wish would be a GRID control that allowed editing from within > the IDE and associated with a result set. It, of course, would have lots > of events and methods to allow interaction during runtime (add column, add > row, etc...) but would also allow editing and extending from within the > IDE. > > > A simple report writer that could accept a result set. It should have a > header section, detail section, a footer section. Built-in function for > totaling, and grouping, and and allow internal variables for processing the > data. Something like ?print when variable? for each data item. > > I know if I want it write some code. I just don't know a lot about C and > C++. But I think I have reason to learn. The more I play with Gambas the > more I enjoy the idea of Gambas. > John also improving the editor to reformat the text and show the loop and if -then test pairs. John From michael_wuest_1969 at ...467... Tue Jan 17 09:00:01 2006 From: michael_wuest_1969 at ...467... (Michael Wuest) Date: Tue, 17 Jan 2006 09:00:01 +0100 (CET) Subject: [Gambas-user] Compiled Programm not starting correctly Message-ID: <20060117080002.61394.qmail@...1328...> Hello. I have written a small program to configure my linux machine. I want that program to be started standalone by xinitrc without any gnome-panel or anything like that. so i have the following xinitrc: my-gambas-prg & gnome-session the program needs to fill the whole screen no matter which resolution I am running actually, but the program always only uses the upper left 640 x 480 pixels. also desktop.width and desktop.height tell me 640 x 480. what can I do to let the gambas program use the whole screen? normal methods like maximized or fullscreen or resizing by timer failed. I have debian sarge 3.1 with kernel 2.4.29 and gambas 1.9.20 thanks a lot, best regards, Michael. --------------------------------- Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC! Jetzt Yahoo! Messenger installieren! -------------- next part -------------- An HTML attachment was scrubbed... URL: From picander78 at ...325... Tue Jan 17 09:34:16 2006 From: picander78 at ...325... (Marco Gusy) Date: Tue, 17 Jan 2006 09:34:16 +0100 Subject: [Gambas-user] Report In-Reply-To: <200601162156.15035.sourceforge-raindog2@...94...> References: <200601161731.49077.isy21@...1082...> <200601170114.39106.picander78@...325...> <200601162156.15035.sourceforge-raindog2@...94...> Message-ID: <200601170934.16943.picander78@...325...> wow, soon i'm going to send you the class file. It works exactly as you said, generates a postscript string you can use as you prefer. Marco From picander78 at ...325... Tue Jan 17 13:41:02 2006 From: picander78 at ...325... (Marco Gusy) Date: Tue, 17 Jan 2006 13:41:02 +0100 Subject: [Gambas-user] Postscript class In-Reply-To: <200601162156.15035.sourceforge-raindog2@...94...> References: <200601161731.49077.isy21@...1082...> <200601170114.39106.picander78@...325...> <200601162156.15035.sourceforge-raindog2@...94...> Message-ID: <200601171341.03098.picander78@...325...> This isn't heavyly tested, I just translated it from Visual Basic code... but seems to work Some instructions are in Italian :-) well if you like this i'm going to modify for world use... Add this class to a new project, create a form with one button PUBLIC SUB Button1_Click() DIM sh AS Process DIM f AS File DIM cls AS CPostscript cls = NEW CPostscript cls.InizializzaPS cls.x = 1 cls.y = 2 cls.fontsize = 20 cls.Pr("Ciao! I can postscript with gambas!") cls.Linea(1, 2, cls.mdx, 2) cls.Linea(10, 3, 10, 13) cls.Linea(13, 3, 13, 13) cls.FontSize = 11 cls.x = 10 cls.y = 3 + cls.TH cls.Pr("Left orientation") cls.y = cls.y + cls.th * 2 cls.x = 13 cls.Right("Right orientation") cls.y = cls.y + cls.th * 2 cls.x = 11.5 cls.Center("CENTER!") cls.y = cls.y + cls.th * 2 cls.x = 10 cls.Justify("And of course i wrote a function supporting justified text", 3) cls.Linea(4, 2.9, 5, 5.5) cls.Linea(5, 5.5, 2.8, 3.9) cls.Linea(2.8, 3.9, 5.2, 3.9) cls.Linea(5.2, 3.9, 3.1, 5.5) cls.Linea(3.1, 5.5, 4, 2.9) cls.EndPS OPEN "/tmp/temp.ps" FOR WRITE CREATE AS #f PRINT #f, cls.PSstring; CLOSE #f EXEC ["kghostview", "/tmp/temp.ps"] END -------------- next part -------------- A non-text attachment was scrubbed... Name: CPostscript.class.bz2 Type: application/x-bzip2 Size: 2792 bytes Desc: not available URL: From jdsantos1978 at ...626... Tue Jan 17 14:11:22 2006 From: jdsantos1978 at ...626... (Jose Daniel Santos Delgado) Date: Tue, 17 Jan 2006 14:11:22 +0100 Subject: [Gambas-user] A dude about Gambas Message-ID: <12e18d6c0601170511u5cb0176ek@...627...> Hello Gamberos! :) I was wondering about how could I program an app against a MySQL Server so that it could access a centralized database server in a secure way. I'm thinking about and App with differents kinds of users at differents computers with differents permissions accesing to the same database. The user and the passwd that grant access the database must be stored somewhere at the client machine but I don't want it to be public. And I also don't like the idea of being hardcoded into the application. Under PHP, all that information is stored in the server and the user does not care about it. I'm not sure if I have explained well (sorry for my english). Any idea about how doing it under gambas? Thanks! From pvera at ...729... Tue Jan 17 14:46:08 2006 From: pvera at ...729... (Pablo Vera) Date: Tue, 17 Jan 2006 07:46:08 -0600 Subject: [Gambas-user] Postscript class In-Reply-To: <200601171341.03098.picander78@...325...> References: <200601161731.49077.isy21@...1082...> <200601170114.39106.picander78@...325...> <200601162156.15035.sourceforge-raindog2@...94...> <200601171341.03098.picander78@...325...> Message-ID: <43CCF520.6050303@...729...> Great work Marco! Could you post also the VB code ?, I do lot of VB programming and that class would be really helpful. Saludos, Pablo Vera Marco Gusy wrote: > This isn't heavyly tested, I just translated it from Visual Basic code... but seems to work > Some instructions are in Italian :-) well if you like this i'm going to modify for world use... > > Add this class to a new project, create a form with one button > > > PUBLIC SUB Button1_Click() > DIM sh AS Process > DIM f AS File > DIM cls AS CPostscript > cls = NEW CPostscript > cls.InizializzaPS > cls.x = 1 > cls.y = 2 > cls.fontsize = 20 > cls.Pr("Ciao! I can postscript with gambas!") > cls.Linea(1, 2, cls.mdx, 2) > > > cls.Linea(10, 3, 10, 13) > cls.Linea(13, 3, 13, 13) > > cls.FontSize = 11 > > cls.x = 10 > cls.y = 3 + cls.TH > cls.Pr("Left orientation") > > cls.y = cls.y + cls.th * 2 > cls.x = 13 > cls.Right("Right orientation") > > cls.y = cls.y + cls.th * 2 > cls.x = 11.5 > cls.Center("CENTER!") > > cls.y = cls.y + cls.th * 2 > cls.x = 10 > cls.Justify("And of course i wrote a function supporting justified text", 3) > > > cls.Linea(4, 2.9, 5, 5.5) > cls.Linea(5, 5.5, 2.8, 3.9) > cls.Linea(2.8, 3.9, 5.2, 3.9) > cls.Linea(5.2, 3.9, 3.1, 5.5) > cls.Linea(3.1, 5.5, 4, 2.9) > cls.EndPS > > OPEN "/tmp/temp.ps" FOR WRITE CREATE AS #f > PRINT #f, cls.PSstring; > CLOSE #f > > EXEC ["kghostview", "/tmp/temp.ps"] > END From gambas at ...1... Tue Jan 17 15:53:01 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jan 2006 15:53:01 +0100 Subject: [Gambas-user] TreeView bug In-Reply-To: <200601170036.02048.picander78@...325...> References: <200601151445.57958.picander78@...325...> <200601161952.19567.gambas@...1...> <200601170036.02048.picander78@...325...> Message-ID: <200601171553.02028.gambas@...1...> On Tuesday 17 January 2006 00:36, Marco Gusy wrote: > Alle 19:52, luned? 16 gennaio 2006, Benoit Minisini ha scritto: > > On Sunday 15 January 2006 14:45, Marco Gusy wrote: > > > I noticed a very annoying problem with treeview. > > > Open the gambas Drag 'n Drop example. Add many subitems till both the > > > scrollbars appear. > > > The scrollbars become unusable because each time you try to drag them > > > with the mouse the drag procedure starts. > > > I noticed that the selection shadow width increase each time you add an > > > item, when the shadow goes under the scrollbar the scrollbar go crazy. > > > > > > Marco > > > > I finally fixed this bug. It seems that there is a missing information in > > the QT doc about how to use drag & drop with listview widget family. > > > > You will get the fix in the next version of both stable and development > > version. > > > > Regards, > > Excellent, you're a very good guy! ;-) > By the way, did you find something about the treeview scrolling whan > dragging near the border? > > Marco > Actually, I was talking about this bug. As I don't noticed the first one, I think it could have been fixed too. Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 17 15:55:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jan 2006 15:55:28 +0100 Subject: [Gambas-user] Report In-Reply-To: <200601170114.39106.picander78@...325...> References: <200601161731.49077.isy21@...1082...> <200601170114.39106.picander78@...325...> Message-ID: <200601171555.28503.gambas@...1...> On Tuesday 17 January 2006 01:14, Marco Gusy wrote: > I don't know if this could interest you... once i wrote a class in VB to > create postscript files from simple draw instructions. (print, line, > newpage) I can convert it to gambas easly > The Gambas Printer object already generates postcript files. Look at the Printer.File property. Anyway, all the Linux printing system uses postcript files I think... Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 17 15:57:59 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 17 Jan 2006 15:57:59 +0100 Subject: [Gambas-user] Compiled Programm not starting correctly In-Reply-To: <20060117080002.61394.qmail@...1328...> References: <20060117080002.61394.qmail@...1328...> Message-ID: <200601171557.59888.gambas@...1...> On Tuesday 17 January 2006 09:00, Michael Wuest wrote: > Hello. > > I have written a small program to configure my linux machine. > > I want that program to be started standalone by xinitrc without > any gnome-panel or anything like that. so i have the following > xinitrc: > > my-gambas-prg & > gnome-session > > the program needs to fill the whole screen no matter which > resolution I am running actually, but the program always only > uses the upper left 640 x 480 pixels. also desktop.width and > desktop.height tell me 640 x 480. Strange. Desktop.Width and Desktop.Height should return information from the X Server... You don't use any window manager, do you? -- Benoit Minisini From michael_wuest_1969 at ...467... Tue Jan 17 17:08:03 2006 From: michael_wuest_1969 at ...467... (Michael Wuest) Date: Tue, 17 Jan 2006 17:08:03 +0100 (CET) Subject: [Gambas-user] Compiled Programm not starting correctly In-Reply-To: <200601171557.59888.gambas@...1...> Message-ID: <20060117160803.58217.qmail@...1329...> Hello! No, I do not use window manager... You need to know that I am writing and compiling on a complete debian system where the program is running perfectly in fullscreen mode at 1280x1024. The target system is a MINI-ITX system with debian sarge as well and that one has the problem. Some web researches I did in the meantime showed me that there are different version of the gb-qt library. Maybe I am using an very old one as I made apt-get gambas-runtime on the MINI ITX system and on the main system I installed the complete gambas package... Any more tips and hints will be helpful 4 me! Thanks, Bye, Michael. --- Benoit Minisini schrieb: > On Tuesday 17 January 2006 09:00, Michael Wuest > wrote: > > Hello. > > > > I have written a small program to configure my > linux machine. > > > > I want that program to be started standalone by > xinitrc without > > any gnome-panel or anything like that. so i have > the following > > xinitrc: > > > > my-gambas-prg & > > gnome-session > > > > the program needs to fill the whole screen no > matter which > > resolution I am running actually, but the > program always only > > uses the upper left 640 x 480 pixels. also > desktop.width and > > desktop.height tell me 640 x 480. > > Strange. Desktop.Width and Desktop.Height should > return information from the X > Server... You don't use any window manager, do you? > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > for problems? Stop! Download the new AJAX search > engine that makes > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From jfabiani at ...1109... Tue Jan 17 18:24:20 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 17 Jan 2006 09:24:20 -0800 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <12e18d6c0601170511u5cb0176ek@...627...> References: <12e18d6c0601170511u5cb0176ek@...627...> Message-ID: <200601170924.20860.jfabiani@...1109...> On Tuesday 17 January 2006 05:11, Jose Daniel Santos Delgado wrote: > The user and the passwd that grant access the database must be stored > somewhere at the client machine but I don't want it to be public. And > I also don't like the idea of being hardcoded into the application In general I ask the user to supply a password and use a pref file that contains things like the database, port, host. Or just hard code it. I get the user name from "username.Text". That means a login window must be used. Making it so the login process is transparent would required storing the password somewhere. You might be able to setup some sort of LDAP way of doing it (single signon). John From sourceforge-raindog2 at ...94... Tue Jan 17 18:28:58 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 17 Jan 2006 12:28:58 -0500 Subject: [Gambas-user] Compiled Programm not starting correctly In-Reply-To: <20060117080002.61394.qmail@...1328...> References: <20060117080002.61394.qmail@...1328...> Message-ID: <200601171228.58722.sourceforge-raindog2@...94...> On Tue January 17 2006 03:00, Michael Wuest wrote: > I want that program to be started standalone by xinitrc > without any gnome-panel or anything like that. so i have the > following xinitrc: > > my-gambas-prg & > gnome-session Doesn't that start a whole GNOME session after launching your program? > only uses the upper left 640 x 480 pixels. also desktop.width > and desktop.height tell me 640 x 480. > what can I do to let the gambas program use the whole > screen? normal methods like maximized or fullscreen or > resizing by timer failed. I have debian sarge 3.1 with All those methods you're talking about require a window manager to be loaded first. For a light weight window manager with no panel, try putting this in your xinitrc: sawfish & my-gambas-prg & I dunno whether you need the & after my-gambas-prg.... But, give it a try.... Rob From jdsantos1978 at ...626... Wed Jan 18 08:32:07 2006 From: jdsantos1978 at ...626... (Jose Daniel Santos Delgado) Date: Wed, 18 Jan 2006 08:32:07 +0100 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <200601170924.20860.jfabiani@...1109...> References: <12e18d6c0601170511u5cb0176ek@...627...> <200601170924.20860.jfabiani@...1109...> Message-ID: <12e18d6c0601172332q245bcbe9q@...627...> At the moment I've thought in two possible solutions: - Hard code the user and passwd information. - Use a public file with the user and password, but the application add a prefix to each of them to build the real user and the real password. I'm planing to build a gambas-based Library Control Application for the school I work at. The alumns could view the database and the teachers coud edit it. I don't want that and advance boy (orgirl) guess the user and password of the mysql database and make a 'delete from books' :) and I had thought that there might be other ways of accessing the database. Thanks. 2006/1/17, johnf : > On Tuesday 17 January 2006 05:11, Jose Daniel Santos Delgado wrote: > > The user and the passwd that grant access the database must be stored > > somewhere at the client machine but I don't want it to be public. And > > I also don't like the idea of being hardcoded into the application > > In general I ask the user to supply a password and use a pref file that > contains things like the database, port, host. Or just hard code it. I get > the user name from "username.Text". That means a login window must be used. > Making it so the login process is transparent would required storing the > password somewhere. You might be able to setup some sort of LDAP way of > doing it (single signon). > > John > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jfabiani at ...1109... Wed Jan 18 08:53:36 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 17 Jan 2006 23:53:36 -0800 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <12e18d6c0601172332q245bcbe9q@...627...> References: <12e18d6c0601170511u5cb0176ek@...627...> <200601170924.20860.jfabiani@...1109...> <12e18d6c0601172332q245bcbe9q@...627...> Message-ID: <200601172353.36265.jfabiani@...1109...> Then use OpenLDAP which I have been reading about (haven't used myself - yet). The cool thing is it will use the system password file and then provide the resources that are available - like MySQL access. So if the login password is strong the access to MySQL will be strong. John On Tuesday 17 January 2006 23:32, Jose Daniel Santos Delgado wrote: > At the moment I've thought in two possible solutions: > > - Hard code the user and passwd information. > - Use a public file with the user and password, but the application > add a prefix to each of them to build the real user and the real > password. > > I'm planing to build a gambas-based Library Control Application for > the school I work at. The alumns could view the database and the > teachers coud edit it. > > I don't want that and advance boy (orgirl) guess the user and password > of the mysql database and make a 'delete from books' :) and I had > thought that there might be other ways of accessing the database. > > Thanks. > > 2006/1/17, johnf : > > On Tuesday 17 January 2006 05:11, Jose Daniel Santos Delgado wrote: > > > The user and the passwd that grant access the database must be stored > > > somewhere at the client machine but I don't want it to be public. And > > > I also don't like the idea of being hardcoded into the application > > > > In general I ask the user to supply a password and use a pref file that > > contains things like the database, port, host. Or just hard code it. I > > get the user name from "username.Text". That means a login window must > > be used. Making it so the login process is transparent would required > > storing the password somewhere. You might be able to setup some sort of > > LDAP way of doing it (single signon). > > > > John > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From eilert-sprachen at ...221... Wed Jan 18 10:45:22 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 18 Jan 2006 10:45:22 +0100 Subject: [Gambas-user] Bug in split() ? (1.0.13) Message-ID: <43CE0E32.5000909@...221...> I am not quite sure, folks, but this seems to be a bug in the Split() function. Or didn't I understand how to use it? Anyway: In my program, there are strings from a file indicating where and how certain input elements of an input mask should appear. For example, there is a "list" element (ComboBox) which has to display some items for the user to click on. This is what those strings look like: item= mask:'*rau', opt:nocase, insert:'Frau', display:'weiblich' item= mask:'*err', opt:nocase, insert:'Herr', display:'männlich' This means, if you find "*rau", case-insensitive, display "weiblich". If chosen by the user, insert "Frau" into the field. Now, this function was meant to pick out the "display" command from the string. I inserted a message.info, because it shows what goes wrong: RIVATE FUNCTION MaskeLstDisplay(lst AS String) AS String DIM lOpt AS NEW String[] DIM lCom AS NEW String[] DIM i AS Integer DIM x$ AS String lOpt = Split(lst, ",", "'") 'String nach Optionen aufteilen (Kommas) 'Kommando "display" suchen: FOR i = 0 TO lOpt.Count - 1 lCom = Split(lOpt[i], ":", "'") message.Info(lCom[0] & "--" & lCom[1]) IF String.LCase(Trim$(lCom[0])) = "display" THEN x$ = Trim$(lCom[1]) IF String.Left(x$, 1) = "'" THEN x$ = String.Mid(x$, 2) IF String.Right(x$, 1) = "'" THEN x$ = String.Left(x$, String.Len(x$) - 1) RETURN x$ END IF NEXT RETURN "?display-Angabe fehlt" END The line above the message.info includes "'" as an escape string. This would mean you could use ":" within the strings without getting trouble. If you feed the function with strings like above, you will see that the last "'" will remain, whilest all other "'" are cut. In my program, this function is called about 6 times, and sometimes (not reproduceably) the Split() keeps garbage from previous calls. I've got "display" commands with shorter strings, and sometimes character garbage and some "m nnl ch" or so will remain at the end of the next string. The point is, when you leave the Escape character away, everything runs smoothly, it just leaves the "'" at the strings and doesn't care about them. So, is this a bug or am I making a mistake? Thanks for your hints. Rolf From juanibaz at ...626... Wed Jan 18 12:40:15 2006 From: juanibaz at ...626... (juan) Date: Wed, 18 Jan 2006 12:40:15 +0100 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <12e18d6c0601172332q245bcbe9q@...627...> References: <12e18d6c0601170511u5cb0176ek@...627...> <200601170924.20860.jfabiani@...1109...> <12e18d6c0601172332q245bcbe9q@...627...> Message-ID: <200601181240.15905.juanibaz@...626...> Hello Just a question about your problem. I'm not sure but Is it not better to create a table with user and password in sql and later from gambas check that table and in base to that you can control the access level also?. It's just a suggestion, but it is not a good idea to hard code a password, if a somebody gess it or discover it from a teacher you will have to change it on you code and it is not a good idea. Regards Juan On Wednesday 18 January 2006 08:32, Jose Daniel Santos Delgado wrote: > At the moment I've thought in two possible solutions: > > - Hard code the user and passwd information. > - Use a public file with the user and password, but the application > add a prefix to each of them to build the real user and the real > password. > > I'm planing to build a gambas-based Library Control Application for > the school I work at. The alumns could view the database and the > teachers coud edit it. > > I don't want that and advance boy (orgirl) guess the user and password > of the mysql database and make a 'delete from books' :) and I had > thought that there might be other ways of accessing the database. > > Thanks. > > 2006/1/17, johnf : > > On Tuesday 17 January 2006 05:11, Jose Daniel Santos Delgado wrote: > > > The user and the passwd that grant access the database must be stored > > > somewhere at the client machine but I don't want it to be public. And > > > I also don't like the idea of being hardcoded into the application > > > > In general I ask the user to supply a password and use a pref file that > > contains things like the database, port, host. Or just hard code it. I > > get the user name from "username.Text". That means a login window must > > be used. Making it so the login process is transparent would required > > storing the password somewhere. You might be able to setup some sort of > > LDAP way of doing it (single signon). > > > > John > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- http://juan_pictures.blogspot.com From gambasfr at ...11... Thu Jan 19 13:07:43 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Thu, 19 Jan 2006 13:07:43 +0100 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <200601181240.15905.juanibaz@...626...> References: <12e18d6c0601170511u5cb0176ek@...627...> <12e18d6c0601172332q245bcbe9q@...627...> <200601181240.15905.juanibaz@...626...> Message-ID: <200601191307.43369.gambasfr@...11...> Hi, Jose This is my suggest : You create a mysql account with all right(read, write, edit). And a very complicated user name and password that you hardcode into your program. Then in your database you add a users table with login , password (stored in md5), UserLevel, and otherthing you want. When a user use your program, the program connect the database and query an identification. And in function of the UserLevel your program allow or not the database editing... You need fortunally to be the only to know the database grant psw. (but it's true for many other case . It work like most of cms in php... On fact there is only one password registred on the database... others are stored into the database or into a users database that drive the program permitions. Regards, Fabien Bodard Le Mercredi 18 Janvier 2006 12:40, juan a ?crit?: > Hello > Just a question about your problem. > I'm not sure but Is it not better to create a table with user and password > in sql and later from gambas check that table and in base to that you can > control the access level also?. > It's just a suggestion, but it is not a good idea to hard code a password, > if a somebody gess it or discover it from a teacher you will have to change > it on you code and it is not a good idea. > > Regards > Juan > > On Wednesday 18 January 2006 08:32, Jose Daniel Santos Delgado wrote: > > At the moment I've thought in two possible solutions: > > > > - Hard code the user and passwd information. > > - Use a public file with the user and password, but the application > > add a prefix to each of them to build the real user and the real > > password. > > > > I'm planing to build a gambas-based Library Control Application for > > the school I work at. The alumns could view the database and the > > teachers coud edit it. > > > > I don't want that and advance boy (orgirl) guess the user and password > > of the mysql database and make a 'delete from books' :) and I had > > thought that there might be other ways of accessing the database. > > > > Thanks. > > > > 2006/1/17, johnf : > > > On Tuesday 17 January 2006 05:11, Jose Daniel Santos Delgado wrote: > > > > The user and the passwd that grant access the database must be stored > > > > somewhere at the client machine but I don't want it to be public. And > > > > I also don't like the idea of being hardcoded into the application > > > > > > In general I ask the user to supply a password and use a pref file that > > > contains things like the database, port, host. Or just hard code it. > > > I get the user name from "username.Text". That means a login window > > > must be used. Making it so the login process is transparent would > > > required storing the password somewhere. You might be able to setup > > > some sort of LDAP way of doing it (single signon). > > > > > > John > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > > files for problems? Stop! Download the new AJAX search engine that > > > makes searching your log files as easy as surfing the web. DOWNLOAD > > > SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=12164 > > >2 _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > > makes searching your log files as easy as surfing the web. DOWNLOAD > > SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Jan 18 13:09:25 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Jan 2006 13:09:25 +0100 Subject: [Gambas-user] Bug in split() ? (1.0.13) In-Reply-To: <43CE0E32.5000909@...221...> References: <43CE0E32.5000909@...221...> Message-ID: <200601181309.26035.gambas@...1...> On Wednesday 18 January 2006 10:45, Eilert wrote: > I am not quite sure, folks, but this seems to be a bug in the Split() > function. Or didn't I understand how to use it? Anyway: > > In my program, there are strings from a file indicating where and how > certain input elements of an input mask should appear. For example, > there is a "list" element (ComboBox) which has to display some items for > the user to click on. > > This is what those strings look like: > > item= mask:'*rau', opt:nocase, insert:'Frau', display:'weiblich' > item= mask:'*err', opt:nocase, insert:'Herr', display:'männlich' > > This means, if you find "*rau", case-insensitive, display "weiblich". If > chosen by the user, insert "Frau" into the field. > > Now, this function was meant to pick out the "display" command from the > string. I inserted a message.info, because it shows what goes wrong: > > RIVATE FUNCTION MaskeLstDisplay(lst AS String) AS String > DIM lOpt AS NEW String[] > DIM lCom AS NEW String[] > DIM i AS Integer > DIM x$ AS String > > > lOpt = Split(lst, ",", "'") 'String nach Optionen aufteilen (Kommas) > > > 'Kommando "display" suchen: > FOR i = 0 TO lOpt.Count - 1 > lCom = Split(lOpt[i], ":", "'") > message.Info(lCom[0] & "--" & lCom[1]) > IF String.LCase(Trim$(lCom[0])) = "display" THEN > x$ = Trim$(lCom[1]) > IF String.Left(x$, 1) = "'" THEN x$ = String.Mid(x$, 2) > IF String.Right(x$, 1) = "'" THEN x$ = String.Left(x$, > String.Len(x$) - 1) > RETURN x$ > END IF > NEXT > > > RETURN "?display-Angabe fehlt" > > END > > The line above the message.info includes "'" as an escape string. This > would mean you could use ":" within the strings without getting trouble. The escape character is just checked at the beginning and at the end of a splitted element, i.e., in your case, just before a comma, just after, at the beginning or at the end of string. It allows you to have a comma inside a splitted element. I think this is not what you expected. > If you feed the function with strings like above, you will see that the > last "'" will remain, whilest all other "'" are cut. In my program, this > function is called about 6 times, and sometimes (not reproduceably) the > Split() keeps garbage from previous calls. I've got "display" commands > with shorter strings, and sometimes character garbage and some "m nnl > ch" or so will remain at the end of the next string. > This seems to be a bug. Can you send me a big list of such strings so that I can test your function. Maybe I could get the same bugs as you. > The point is, when you leave the Escape character away, everything runs > smoothly, it just leaves the "'" at the strings and doesn't care about > them. So you don't get the bug if you don't use the escape character? So it will help me to find the bug. I wanted to make a 1.0.14, but I will delay it so that I can fix this bug. > > So, is this a bug or am I making a mistake? Both! :-) > > Thanks for your hints. > > Rolf > Regards, -- Benoit Minisini From eilert-sprachen at ...221... Wed Jan 18 13:25:38 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 18 Jan 2006 13:25:38 +0100 Subject: [Gambas-user] Bug in split() ? (1.0.13) In-Reply-To: <200601181309.26035.gambas@...1...> References: <43CE0E32.5000909@...221...> <200601181309.26035.gambas@...1...> Message-ID: <43CE33C2.5000906@...221...> Benoit Minisini schrieb: >On Wednesday 18 January 2006 10:45, Eilert wrote: > > >>I am not quite sure, folks, but this seems to be a bug in the Split() >>function. Or didn't I understand how to use it? Anyway: >> >>In my program, there are strings from a file indicating where and how >>certain input elements of an input mask should appear. For example, >>there is a "list" element (ComboBox) which has to display some items for >>the user to click on. >> >>This is what those strings look like: >> >> item= mask:'*rau', opt:nocase, insert:'Frau', display:'weiblich' >> item= mask:'*err', opt:nocase, insert:'Herr', display:'männlich' >> >>This means, if you find "*rau", case-insensitive, display "weiblich". If >>chosen by the user, insert "Frau" into the field. >> >>Now, this function was meant to pick out the "display" command from the >>string. I inserted a message.info, because it shows what goes wrong: >> >>RIVATE FUNCTION MaskeLstDisplay(lst AS String) AS String >>DIM lOpt AS NEW String[] >>DIM lCom AS NEW String[] >>DIM i AS Integer >>DIM x$ AS String >> >> >> lOpt = Split(lst, ",", "'") 'String nach Optionen aufteilen (Kommas) >> >> >> 'Kommando "display" suchen: >> FOR i = 0 TO lOpt.Count - 1 >> lCom = Split(lOpt[i], ":", "'") >>message.Info(lCom[0] & "--" & lCom[1]) >> IF String.LCase(Trim$(lCom[0])) = "display" THEN >> x$ = Trim$(lCom[1]) >> IF String.Left(x$, 1) = "'" THEN x$ = String.Mid(x$, 2) >> IF String.Right(x$, 1) = "'" THEN x$ = String.Left(x$, >>String.Len(x$) - 1) >> RETURN x$ >> END IF >> NEXT >> >> >> RETURN "?display-Angabe fehlt" >> >>END >> >>The line above the message.info includes "'" as an escape string. This >>would mean you could use ":" within the strings without getting trouble. >> >> > >The escape character is just checked at the beginning and at the end of a >splitted element, i.e., in your case, just before a comma, just after, at the >beginning or at the end of string. It allows you to have a comma inside a >splitted element. > >I think this is not what you expected. > > > >>If you feed the function with strings like above, you will see that the >>last "'" will remain, whilest all other "'" are cut. In my program, this >>function is called about 6 times, and sometimes (not reproduceably) the >>Split() keeps garbage from previous calls. I've got "display" commands >>with shorter strings, and sometimes character garbage and some "m nnl >>ch" or so will remain at the end of the next string. >> >> >> > >This seems to be a bug. Can you send me a big list of such strings so that I >can test your function. Maybe I could get the same bugs as you. > > > >>The point is, when you leave the Escape character away, everything runs >>smoothly, it just leaves the "'" at the strings and doesn't care about >>them. >> >> > >So you don't get the bug if you don't use the escape character? So it will >help me to find the bug. I wanted to make a 1.0.14, but I will delay it so >that I can fix this bug. > > > >>So, is this a bug or am I making a mistake? >> >> > >Both! :-) > > > >>Thanks for your hints. >> >>Rolf >> >> >> > >Regards, > > > I just include the few lines relevant for this function, the rest will be processed by other functions anyway: item= mask:'*rau', opt:nocase, insert:'Frau', display:'weiblich' item= mask:'*err', opt:nocase, insert:'Herr', display:'männlich' item= mask:'*A05*', opt:nocase, insert:'A05', display:'A 05' item= mask:'*B05*', opt:nocase, insert:'B05', display:'B 05' item= mask:'*C05*', opt:nocase, insert:'C05', display:'C 05' Before you use them, better delete the item= at the beginning of each line, because they aren't there anymore when the function is called. The ä will be replaced by an "?" before this function, too. Thanks for your help! Rolf From jdsantos1978 at ...626... Wed Jan 18 13:34:42 2006 From: jdsantos1978 at ...626... (Jose Daniel Santos Delgado) Date: Wed, 18 Jan 2006 13:34:42 +0100 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <200601191307.43369.gambasfr@...11...> References: <12e18d6c0601170511u5cb0176ek@...627...> <12e18d6c0601172332q245bcbe9q@...627...> <200601181240.15905.juanibaz@...626...> <200601191307.43369.gambasfr@...11...> Message-ID: <12e18d6c0601180434l72c969a1j@...627...> Thank you All. I think that the last solution (Fabien's one) is the most appropiated though I still don't like the idea of harcoding user and passwd in the database because, for instance, let's suposse I give the application to other's schools: every school should have to recompile the application to store its own database user and password. I had already thought about the user table idea, though it would be better that I could authenticate against the LDAP server (each student and teachr has its own ldap account). Regards 2006/1/19, Fabien Bodard : > Hi, Jose > > This is my suggest : > > You create a mysql account with all right(read, write, edit). And a very > complicated user name and password that you hardcode into your program. > > Then in your database you add a users table with login , password (stored in > md5), UserLevel, and otherthing you want. > > When a user use your program, the program connect the database and query an > identification. And in function of the UserLevel your program allow or not > the database editing... > > You need fortunally to be the only to know the database grant psw. (but it's > true for many other case . > > It work like most of cms in php... On fact there is only one password > registred on the database... others are stored into the database or into a > users database that drive the program permitions. > > Regards, Fabien Bodard > > > > > > > Le Mercredi 18 Janvier 2006 12:40, juan a ?crit: > > Hello > > Just a question about your problem. > > I'm not sure but Is it not better to create a table with user and password > > in sql and later from gambas check that table and in base to that you can > > control the access level also?. > > It's just a suggestion, but it is not a good idea to hard code a password, > > if a somebody gess it or discover it from a teacher you will have to change > > it on you code and it is not a good idea. > > > > Regards > > Juan > > > > On Wednesday 18 January 2006 08:32, Jose Daniel Santos Delgado wrote: > > > At the moment I've thought in two possible solutions: > > > > > > - Hard code the user and passwd information. > > > - Use a public file with the user and password, but the application > > > add a prefix to each of them to build the real user and the real > > > password. > > > > > > I'm planing to build a gambas-based Library Control Application for > > > the school I work at. The alumns could view the database and the > > > teachers coud edit it. > > > > > > I don't want that and advance boy (orgirl) guess the user and password > > > of the mysql database and make a 'delete from books' :) and I had > > > thought that there might be other ways of accessing the database. > > > > > > Thanks. > > > > > > 2006/1/17, johnf : > > > > On Tuesday 17 January 2006 05:11, Jose Daniel Santos Delgado wrote: > > > > > The user and the passwd that grant access the database must be stored > > > > > somewhere at the client machine but I don't want it to be public. And > > > > > I also don't like the idea of being hardcoded into the application > > > > > > > > In general I ask the user to supply a password and use a pref file that > > > > contains things like the database, port, host. Or just hard code it. > > > > I get the user name from "username.Text". That means a login window > > > > must be used. Making it so the login process is transparent would > > > > required storing the password somewhere. You might be able to setup > > > > some sort of LDAP way of doing it (single signon). > > > > > > > > John > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > > > files for problems? Stop! Download the new AJAX search engine that > > > > makes searching your log files as easy as surfing the web. DOWNLOAD > > > > SPLUNK! > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=12164 > > > >2 _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > > files for problems? Stop! Download the new AJAX search engine that > > > makes searching your log files as easy as surfing the web. DOWNLOAD > > > SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jdsantos1978 at ...626... Wed Jan 18 15:52:41 2006 From: jdsantos1978 at ...626... (Dani Santos) Date: Wed, 18 Jan 2006 15:52:41 +0100 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <200601181240.15905.juanibaz@...626...> References: <12e18d6c0601170511u5cb0176ek@...627...> <200601170924.20860.jfabiani@...1109...> <12e18d6c0601172332q245bcbe9q@...627...> <200601181240.15905.juanibaz@...626...> Message-ID: <1137595961.5483.3.camel@...1222...> Hello El mi?, 18-01-2006 a las 12:40 +0100, juan escribi?: > Hello > Just a question about your problem. > I'm not sure but Is it not better to create a table with user and password in > sql and later from gambas check that table and in base to that you can > control the access level also?. Yes that's true. I've already considered that. > It's just a suggestion, but it is not a good idea to hard code a password, if > a somebody gess it or discover it from a teacher you will have to change it > on you code and it is not a good idea. That's the problem. It isn't a good idea to do it but... ?how to do it? Let's suppose that the application is named GambasLibrary and it store the host, user and passwd in a ~/.GambasLibrary file. An user can do: $ cat ~/.GambasLibrary DBHost=172.19.243.2 DBUser=jander DBPasswd=clander $ mysql -u jander -p -h 172.19.243.2 Password:clander mysql> delete from books; Oh! I've got a problem and I can assure you that I cannot trust in my users :) > > Regards > Juan > > > On Wednesday 18 January 2006 08:32, Jose Daniel Santos Delgado wrote: > > At the moment I've thought in two possible solutions: > > > > - Hard code the user and passwd information. > > - Use a public file with the user and password, but the application > > add a prefix to each of them to build the real user and the real > > password. > > > > I'm planing to build a gambas-based Library Control Application for > > the school I work at. The alumns could view the database and the > > teachers coud edit it. > > > > I don't want that and advance boy (orgirl) guess the user and password > > of the mysql database and make a 'delete from books' :) and I had > > thought that there might be other ways of accessing the database. > > > > Thanks. > > > > 2006/1/17, johnf : > > > On Tuesday 17 January 2006 05:11, Jose Daniel Santos Delgado wrote: > > > > The user and the passwd that grant access the database must be stored > > > > somewhere at the client machine but I don't want it to be public. And > > > > I also don't like the idea of being hardcoded into the application > > > > > > In general I ask the user to supply a password and use a pref file that > > > contains things like the database, port, host. Or just hard code it. I > > > get the user name from "username.Text". That means a login window must > > > be used. Making it so the login process is transparent would required > > > storing the password somewhere. You might be able to setup some sort of > > > LDAP way of doing it (single signon). > > > > > > John > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > > files for problems? Stop! Download the new AJAX search engine that > > > makes searching your log files as easy as surfing the web. DOWNLOAD > > > SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Dani Santos From gambas at ...1... Wed Jan 18 16:06:06 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 18 Jan 2006 16:06:06 +0100 Subject: [Gambas-user] A dude about Gambas In-Reply-To: <1137595961.5483.3.camel@...1222...> References: <12e18d6c0601170511u5cb0176ek@...627...> <200601181240.15905.juanibaz@...626...> <1137595961.5483.3.camel@...1222...> Message-ID: <200601181606.06686.gambas@...1...> On Wednesday 18 January 2006 15:52, Dani Santos wrote: > Hello > > El mi?, 18-01-2006 a las 12:40 +0100, juan escribi?: > > Hello > > Just a question about your problem. > > I'm not sure but Is it not better to create a table with user and > > password in sql and later from gambas check that table and in base to > > that you can control the access level also?. > > Yes that's true. I've already considered that. > > > It's just a suggestion, but it is not a good idea to hard code a > > password, if a somebody gess it or discover it from a teacher you will > > have to change it on you code and it is not a good idea. > > That's the problem. It isn't a good idea to do it but... ?how to do it? > Let's suppose that the application is named GambasLibrary and it store > the host, user and passwd in a ~/.GambasLibrary file. > > An user can do: > $ cat ~/.GambasLibrary > DBHost=172.19.243.2 > DBUser=jander > DBPasswd=clander > > $ mysql -u jander -p -h 172.19.243.2 > Password:clander > mysql> delete from books; > > > Oh! I've got a problem and I can assure you that I cannot trust in my > users :) > There is no real solution for that problem. If your application can access the database, then the user can too. It just a matter of getting the needed information. By tracing what is sent by the application on any socket, you will get the user and password, whatever you the way you store them. You can just hope: 1) That your users are not very clever. Then you can just store the password in an encrypted format, and decrypt it in your application. Do not choose a too easy algorithm. 2) That your users do not read this mailing-list and won't read the public archive :-) Another solution is making a Gambas front-end server between your application and the database. This front-end will be located on the server, and only this front-end will be allowed to talk to the database. Your application will ask the front-end to send commands to the database, and will receive the result. Then, users will be able to access the database only if they can log on the server. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Wed Jan 18 16:50:14 2006 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 18 Jan 2006 16:50:14 +0100 Subject: [Gambas-user] Bug in split() ? (1.0.13) In-Reply-To: <43CE33C2.5000906@...221...> References: <43CE0E32.5000909@...221...> <200601181309.26035.gambas@...1...> <43CE33C2.5000906@...221...> Message-ID: <43CE63B6.20602@...221...> Benoit, >> >> The escape character is just checked at the beginning and at the end >> of a splitted element, i.e., in your case, just before a comma, just >> after, at the beginning or at the end of string. It allows you to >> have a comma inside a splitted element. >> >> I think this is not what you expected. > Aha :-) so the point is that the escape character has to appear just in front of the character it's supposed to let through? When comma is the separator and % is the escape character, it would be %, to escape the comma? Rolf From michael_wuest_1969 at ...467... Wed Jan 18 23:33:53 2006 From: michael_wuest_1969 at ...467... (Michael Wuest) Date: Wed, 18 Jan 2006 23:33:53 +0100 (CET) Subject: [Gambas-user] Compiled Programm not starting correctly In-Reply-To: <20060117160803.58217.qmail@...1329...> Message-ID: <20060118223353.75159.qmail@...1330...> Hello there, just want to tell everybody that it works now after installing the newest qb-qtk... Thanks, Michael. --- Michael Wuest schrieb: > Hello! > > No, I do not use window manager... > > You need to know that I am writing and compiling > on a complete debian system where the program is > running perfectly in fullscreen mode at 1280x1024. > The target system is a MINI-ITX system with debian > sarge as well and that one has the problem. > > Some web researches I did in the meantime > showed me that there are different version > of the gb-qt library. Maybe I am using an > very old one as I made apt-get gambas-runtime > on the MINI ITX system and on the main system > I installed the complete gambas package... > > Any more tips and hints will be helpful 4 me! > > Thanks, Bye, Michael. > > > > --- Benoit Minisini > schrieb: > > > On Tuesday 17 January 2006 09:00, Michael Wuest > > wrote: > > > Hello. > > > > > > I have written a small program to configure my > > linux machine. > > > > > > I want that program to be started standalone > by > > xinitrc without > > > any gnome-panel or anything like that. so i > have > > the following > > > xinitrc: > > > > > > my-gambas-prg & > > > gnome-session > > > > > > the program needs to fill the whole screen no > > matter which > > > resolution I am running actually, but the > > program always only > > > uses the upper left 640 x 480 pixels. also > > desktop.width and > > > desktop.height tell me 640 x 480. > > > > Strange. Desktop.Width and Desktop.Height should > > return information from the X > > Server... You don't use any window manager, do > you? > > > > -- > > Benoit Minisini > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do > > you grep through log files > > for problems? Stop! Download the new AJAX search > > engine that makes > > searching your log files as easy as surfing the > > web. DOWNLOAD SPLUNK! > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > ___________________________________________________________ > > Telefonate ohne weitere Kosten vom PC zum PC: > http://messenger.yahoo.de > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > for problems? Stop! Download the new AJAX search > engine that makes > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From michael_wuest_1969 at ...467... Wed Jan 18 23:36:19 2006 From: michael_wuest_1969 at ...467... (Michael Wuest) Date: Wed, 18 Jan 2006 23:36:19 +0100 (CET) Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601171228.58722.sourceforge-raindog2@...94...> Message-ID: <20060118223619.79655.qmail@...1331...> Hi there, in VB6 you can access all the controls of a form by doing for i0=0 to form1.controls.count - 1 print form1.controls(i0).name next i0 how can I do similar things in Gambas? I played around with form1.children and for..each but I get an error every time after the fourth or fifth control saying that he is referencing himself... What is the correct method. Thanks, bye, Michael. ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de From jfabiani at ...1109... Wed Jan 18 23:41:53 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 18 Jan 2006 14:41:53 -0800 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <20060118223619.79655.qmail@...1331...> References: <20060118223619.79655.qmail@...1331...> Message-ID: <200601181441.53789.jfabiani@...1109...> On Wednesday 18 January 2006 14:36, Michael Wuest wrote: > Hi there, > > in VB6 you can access all the controls of a form > by doing > > for i0=0 to form1.controls.count - 1 > print form1.controls(i0).name > next i0 > > how can I do similar things in Gambas? I played > around with form1.children and for..each but I get > an error every time after the fourth or fifth > control saying that he is referencing himself... > > What is the correct method. > > Thanks, > bye, > Michael. Below is an example of how I looping thru all the controls on my form. It should provide an idea of how to do it. BTW I got this from the list. Sorry I can't recall who provided the info (I thank person). John PUBLIC SUB ClearFields(formname AS Window) 'a way to loop thru the controls DIM hControl, tabControl AS Control DIM iNumTabs, imynum AS Integer DIM i AS Integer DIM sNames AS String DIM myVariant AS Variant FOR EACH hControl IN formname.Children IF Object.Class(hControl) = "TextBox" OR Object.Class(hControl) = "ComboBox" OR Object.Class(hControl) = "TextArea" THEN SELECT CASE Object.Class(hControl) CASE "TextBox" 'myVariant = Object.GetProperty(hControl, "Text") Object.SetProperty(hControl, "Text", "") CASE "GridView" Object.Call(tabControl, "Clear") CASE "ComboBox" CASE "TextArea" Object.Call(hcontrol, "Clear") END SELECT ENDIF IF Object.Class(hControl) = "TabStrip" THEN iNumTabs = Object.GetProperty(hControl, "Count") FOR i = 0 TO iNumTabs - 1 Object.SetProperty(hControl, "Index", i) FOR EACH tabControl IN hControl[i].Children SELECT CASE Object.Class(tabControl) CASE "TextBox" Object.SetProperty(tabControl, "Text", "") CASE "GridView" Object.Call(tabControl, "Clear") CASE "TextArea" Object.Call(tabControl, "Clear") END SELECT NEXT NEXT Object.SetProperty(hControl, "Index", 0) ENDIF NEXT 'editmode(FALSE) 'custno.Enabled = TRUE END From gambas at ...1... Thu Jan 19 14:20:23 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jan 2006 14:20:23 +0100 Subject: [Gambas-user] Bug in split() ? (1.0.13) In-Reply-To: <43CE63B6.20602@...221...> References: <43CE0E32.5000909@...221...> <43CE33C2.5000906@...221...> <43CE63B6.20602@...221...> Message-ID: <200601191420.24246.gambas@...1...> On Wednesday 18 January 2006 16:50, Eilert wrote: > Benoit, > > >> The escape character is just checked at the beginning and at the end > >> of a splitted element, i.e., in your case, just before a comma, just > >> after, at the beginning or at the end of string. It allows you to > >> have a comma inside a splitted element. > >> > >> I think this is not what you expected. > > Aha :-) so the point is that the escape character has to appear just in > front of the character it's supposed to let through? When comma is the > separator and % is the escape character, it would be %, to escape the > comma? > No. The escape character must be the first and the last character of a splitted element. And I ran your function with your five strings thousand times in a loop and didn't get any problem. I think you have to send your project to me. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 19 15:04:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jan 2006 15:04:51 +0100 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601181441.53789.jfabiani@...1109...> References: <20060118223619.79655.qmail@...1331...> <200601181441.53789.jfabiani@...1109...> Message-ID: <200601191504.51335.gambas@...1...> On Wednesday 18 January 2006 23:41, johnf wrote: > On Wednesday 18 January 2006 14:36, Michael Wuest wrote: > > Hi there, > > > > in VB6 you can access all the controls of a form > > by doing > > > > for i0=0 to form1.controls.count - 1 > > print form1.controls(i0).name > > next i0 > > > > how can I do similar things in Gambas? I played > > around with form1.children and for..each but I get > > an error every time after the fourth or fifth > > control saying that he is referencing himself... > > > > What is the correct method. > > > > Thanks, > > bye, > > Michael. > > Below is an example of how I looping thru all the controls on my form. It > should provide an idea of how to do it. BTW I got this from the list. > Sorry I can't recall who provided the info (I thank person). > > John > > PUBLIC SUB ClearFields(formname AS Window) > 'a way to loop thru the controls > DIM hControl, tabControl AS Control > DIM iNumTabs, imynum AS Integer > DIM i AS Integer > DIM sNames AS String > DIM myVariant AS Variant > > FOR EACH hControl IN formname.Children > IF Object.Class(hControl) = "TextBox" OR Object.Class(hControl) = > "ComboBox" OR Object.Class(hControl) = "TextArea" THEN > SELECT CASE Object.Class(hControl) > > CASE "TextBox" > 'myVariant = Object.GetProperty(hControl, "Text") > Object.SetProperty(hControl, "Text", "") > CASE "GridView" > Object.Call(tabControl, "Clear") > CASE "ComboBox" > > CASE "TextArea" > Object.Call(hcontrol, "Clear") > > END SELECT > ENDIF > > IF Object.Class(hControl) = "TabStrip" THEN > iNumTabs = Object.GetProperty(hControl, "Count") > FOR i = 0 TO iNumTabs - 1 > Object.SetProperty(hControl, "Index", i) > FOR EACH tabControl IN hControl[i].Children > SELECT CASE Object.Class(tabControl) > CASE "TextBox" > Object.SetProperty(tabControl, "Text", "") > CASE "GridView" > Object.Call(tabControl, "Clear") > CASE "TextArea" > Object.Call(tabControl, "Clear") > END SELECT > NEXT > NEXT > Object.SetProperty(hControl, "Index", 0) > ENDIF > NEXT > 'editmode(FALSE) > 'custno.Enabled = TRUE > END > I just finished to implement the pseudo-collection "Window.Controls", that will allow you to recursively enumerate all controls on a form. Your loop will look like: FOR EACH hControl IN formname.Controls ... NEXT You will get it in the next development version release. Regards, -- Benoit Minisini From rohnny at ...1248... Thu Jan 19 16:41:59 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Thu, 19 Jan 2006 16:41:59 +0100 Subject: [Gambas-user] Crypt/Decrypt Message-ID: <43CFB347.5080406@...1248...> How to crypt and decrypt a string with gambas2. I have found md5(password, prefix) as string and des(password, prefix) as string Tried to use it twice but without any luck. If there is not decryption the modules are useless except for MD5 and Check When Encrypt/Decrypt are ok, you may save password to local file more secure The class should include Md5(string) as string CheckMD5(md5String) as boolean EnCrypt(key, string) as string DeCrypt(key, EnCryptString) as string Or if it more crypt types can be used it could be like this EnCrypt(key,string, gb.crypt.???) as string DeCrypt(key,string, gb.crypt.???) as string Example of usage. a1b2c3d4e5f6=Encrypt("MyPassword","Hello",gb.crypt.des) Hello = DeCrypt("MyPassword","a1b2c3d4e5f6",gb.crypt.des) -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From lordheavy at ...512... Thu Jan 19 16:58:15 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 19 Jan 2006 16:58:15 +0100 Subject: [Gambas-user] Crypt/Decrypt In-Reply-To: <43CFB347.5080406@...1248...> References: <43CFB347.5080406@...1248...> Message-ID: <200601191658.15569.lordheavy@...512...> Le Jeudi 19 Janvier 2006 16:41, Rohnny Stormo a ?crit?: > How to crypt and decrypt a string with gambas2. > > I have found md5(password, prefix) as string and des(password, prefix) > as string > Tried to use it twice but without any luck. If there is not decryption > the modules are useless except for MD5 and Check > When Encrypt/Decrypt are ok, you may save password to local file more > secure I guess the main use of this componant is to crypt a password crypt.md5(...) as string and to check if the given password is the good one ( crypt.check(...) as boolean) with the previous returned string. It's main use isn't to decrypt a string. -- jabber : lordheavy at ...943... mail : lordheavym at ...1227... From nando_f at ...951... Thu Jan 19 17:12:45 2006 From: nando_f at ...951... (nando) Date: Thu, 19 Jan 2006 11:12:45 -0500 Subject: [Gambas-user] Crypt/Decrypt In-Reply-To: <43CFB347.5080406@...1248...> References: <43CFB347.5080406@...1248...> Message-ID: <20060119160815.M25066@...951...> MD5 isn't used to decrypt. It's used to encrypt...one way only. For security and passwords: ** Do NOT ** compare decrypted secrets. Always compare encrypted secrets. When you make databases with passwords, you do not want to know passwords...store them encrypted and process with them encrypted. When passwords are forgotten, reset them to something. -Fernando ---------- Original Message ----------- From: Rohnny Stormo To: Gambas Users Listserver Sent: Thu, 19 Jan 2006 16:41:59 +0100 Subject: [Gambas-user] Crypt/Decrypt > How to crypt and decrypt a string with gambas2. > > I have found md5(password, prefix) as string and des(password, prefix) > as string Tried to use it twice but without any luck. If there is not > decryption the modules are useless except for MD5 and Check When > Encrypt/Decrypt are ok, you may save password to local file more secure > > The class should include > Md5(string) as string > CheckMD5(md5String) as boolean > EnCrypt(key, string) as string > DeCrypt(key, EnCryptString) as string > > Or if it more crypt types can be used it could be like this > EnCrypt(key,string, gb.crypt.???) as string > DeCrypt(key,string, gb.crypt.???) as string > > Example of usage. > a1b2c3d4e5f6=Encrypt("MyPassword","Hello",gb.crypt.des) > Hello = DeCrypt("MyPassword","a1b2c3d4e5f6",gb.crypt.des) > > -- > ----------------------------------------- > Gambas brings Basic to Linux. > My Gambas Community http://forum.stormweb.no > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jfabiani at ...1109... Thu Jan 19 17:17:59 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 19 Jan 2006 08:17:59 -0800 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601191504.51335.gambas@...1...> References: <20060118223619.79655.qmail@...1331...> <200601181441.53789.jfabiani@...1109...> <200601191504.51335.gambas@...1...> Message-ID: <200601190817.59348.jfabiani@...1109...> On Thursday 19 January 2006 06:04, Benoit Minisini wrote: > On Wednesday 18 January 2006 23:41, johnf wrote: > > On Wednesday 18 January 2006 14:36, Michael Wuest wrote: > > > Hi there, > > > > > > in VB6 you can access all the controls of a form > > > by doing > > > > > > for i0=0 to form1.controls.count - 1 > > > print form1.controls(i0).name > > > next i0 > > > > > > how can I do similar things in Gambas? I played > > > around with form1.children and for..each but I get > > > an error every time after the fourth or fifth > > > control saying that he is referencing himself... > > > > > > What is the correct method. > > > > > > Thanks, > > > bye, > > > Michael. > > > > Below is an example of how I looping thru all the controls on my form. > > It should provide an idea of how to do it. BTW I got this from the list. > > Sorry I can't recall who provided the info (I thank person). > > > > John > > > > PUBLIC SUB ClearFields(formname AS Window) > > 'a way to loop thru the controls > > DIM hControl, tabControl AS Control > > DIM iNumTabs, imynum AS Integer > > DIM i AS Integer > > DIM sNames AS String > > DIM myVariant AS Variant > > > > FOR EACH hControl IN formname.Children > > IF Object.Class(hControl) = "TextBox" OR Object.Class(hControl) = > > "ComboBox" OR Object.Class(hControl) = "TextArea" THEN > > SELECT CASE Object.Class(hControl) > > > > CASE "TextBox" > > 'myVariant = Object.GetProperty(hControl, "Text") > > Object.SetProperty(hControl, "Text", "") > > CASE "GridView" > > Object.Call(tabControl, "Clear") > > CASE "ComboBox" > > > > CASE "TextArea" > > Object.Call(hcontrol, "Clear") > > > > END SELECT > > ENDIF > > > > IF Object.Class(hControl) = "TabStrip" THEN > > iNumTabs = Object.GetProperty(hControl, "Count") > > FOR i = 0 TO iNumTabs - 1 > > Object.SetProperty(hControl, "Index", i) > > FOR EACH tabControl IN hControl[i].Children > > SELECT CASE Object.Class(tabControl) > > CASE "TextBox" > > Object.SetProperty(tabControl, "Text", "") > > CASE "GridView" > > Object.Call(tabControl, "Clear") > > CASE "TextArea" > > Object.Call(tabControl, "Clear") > > END SELECT > > NEXT > > NEXT > > Object.SetProperty(hControl, "Index", 0) > > ENDIF > > NEXT > > 'editmode(FALSE) > > 'custno.Enabled = TRUE > > END > > I just finished to implement the pseudo-collection "Window.Controls", that > will allow you to recursively enumerate all controls on a form. > > Your loop will look like: > > FOR EACH hControl IN formname.Controls > ... > NEXT > > You will get it in the next development version release. > > Regards, Could you add an extra - tag property. We would have two (2) tag like properties. So not to break older coding maybe you could add the new property with a different name - like tag2. John From ronstk at ...239... Thu Jan 19 17:38:05 2006 From: ronstk at ...239... (ron) Date: Thu, 19 Jan 2006 17:38:05 +0100 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601191504.51335.gambas@...1...> References: <20060118223619.79655.qmail@...1331...> <200601181441.53789.jfabiani@...1109...> <200601191504.51335.gambas@...1...> Message-ID: <200601191738.05572.ronstk@...239...> On Thursday 19 January 2006 15:04, Benoit Minisini wrote: > On Wednesday 18 January 2006 23:41, johnf wrote: --8<-- > > > > John > > > > PUBLIC SUB ClearFields(formname AS Window) > > 'a way to loop thru the controls > > DIM hControl, tabControl AS Control > > DIM iNumTabs, imynum AS Integer > > DIM i AS Integer > > DIM sNames AS String > > DIM myVariant AS Variant > > > > FOR EACH hControl IN formname.Children > > IF Object.Class(hControl) = "TextBox" OR Object.Class(hControl) = --8<-- > > 'editmode(FALSE) > > 'custno.Enabled = TRUE > > END > > > > I just finished to implement the pseudo-collection "Window.Controls", that > will allow you to recursively enumerate all controls on a form. > > Your loop will look like: > > FOR EACH hControl IN formname.Controls > ... > NEXT > > You will get it in the next development version release. > > Regards, > Name collision ??? In the example code a formname as Window ? Iteration the formname.children, here the children are controls. Now you made the pseudo-collection "Window.Controls", nice > Your loop will look like: > > FOR EACH hControl IN formname.Controls or do you mean implement the Form.Controls ? But why is it then new? Is this not the same as Form.Children? The help says for gb.qt.form and gb.qt.window PROPERTY READ Children AS .ContainerChildren Returns a collection of each control included in the container. Maybe a declaration what a form and window means can help. For me the are almost identical, however I can see the form as the real object and window as the presentation by a window using X/QT or X/GTK or kind of textframe using ncurses. Confused Ron :) From ronstk at ...239... Thu Jan 19 17:47:32 2006 From: ronstk at ...239... (ron) Date: Thu, 19 Jan 2006 17:47:32 +0100 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601190817.59348.jfabiani@...1109...> References: <20060118223619.79655.qmail@...1331...> <200601191504.51335.gambas@...1...> <200601190817.59348.jfabiani@...1109...> Message-ID: <200601191747.32505.ronstk@...239...> On Thursday 19 January 2006 17:17, johnf wrote: > Could you add an extra - tag property. We would have two (2) tag like > properties. ?So not to break older coding maybe you could add the new > property with a different name - like tag2. > John ? > Smile :) :) This is almost the same as asking the .Name property. Depends on what you want with Tag2. Only 1 big difference, .Name is String and .Tag is Variant. .Tag2 should be then also Variant. Again the power of gambas against VB :) Instead .Tag2 it can also be named .UserData Ron From ronstk at ...239... Thu Jan 19 18:09:37 2006 From: ronstk at ...239... (ron) Date: Thu, 19 Jan 2006 18:09:37 +0100 Subject: [Gambas-user] Crypt/Decrypt In-Reply-To: <20060119160815.M25066@...951...> References: <43CFB347.5080406@...1248...> <20060119160815.M25066@...951...> Message-ID: <200601191809.37809.ronstk@...239...> On Thursday 19 January 2006 17:12, nando wrote: > MD5 isn't used to decrypt. > It's used to encrypt...one way only. > For security and passwords: ** Do NOT ** compare decrypted secrets. > Always compare encrypted secrets. > When you make databases with passwords, you do not want to know > passwords...store them encrypted and process with them encrypted. > When passwords are forgotten, reset them to something. > -Fernando > > > INSERT Name,LastName,HasAccess INTO Users VALUES("Rohnny","Stormo",true); User logs in and give password For MySQL SELECT users.LastName, users.HasAccess FROM Users WHERE Name='Rohnny' AND passwrd=PASSWORD(thegivenpassword); If record count=1 then he is known and the 'HasAccess' meaning should be clear to understand or SELECT passwrd FROM users WHERE name="Rohnny"; and use this if MD5(thegivenpassword)= RESULT.Passwrd.value and not this if thegivenpassword = decript(RESULT.Passwrd.value) and the best is to execute the query in nect line to get encodedpass encodedpass = mysql_query("SELECT PASSWORD(thegivenpassword);") if encodedpass = RESULT.Passwrd.value This way encoding method of MySQL is almost always correct btw: Apache htpasswrd uses MD5 at Win... and Cript at Linux, MySQL maybe does the same. The 3 example catch this. Ron From jdsantos1978 at ...626... Thu Jan 19 18:28:01 2006 From: jdsantos1978 at ...626... (Dani Santos) Date: Thu, 19 Jan 2006 18:28:01 +0100 Subject: [Gambas-user] Crypt/Decrypt In-Reply-To: <43CFB347.5080406@...1248...> References: <43CFB347.5080406@...1248...> Message-ID: <1137691682.6975.5.camel@...1222...> It depends what do you want the encryption for. If it is for password-check, the functions provided by the gb.crypt components are OK. If you want encrypt / decrypt a text with a given password, there's nothing implemented in the gambas components (so far I know). Anyway, if you want to encrypt/decrypt against a MySQL database, look at the AES_ENCRYPT, AES_DECRYPT functions, or the DES_ENCRYT, DES_DECRYPT functions of MySQL. I've also build a class (based on some VB code I found) that make an encryption / decryption using the Rynjdael Algorithm. I think is AES encryption. After some work, I've got it running with gambas and it's fine for me but it's quite slow. If you want I send it to you. Regards. El jue, 19-01-2006 a las 16:41 +0100, Rohnny Stormo escribi?: > How to crypt and decrypt a string with gambas2. > > I have found md5(password, prefix) as string and des(password, prefix) > as string > Tried to use it twice but without any luck. If there is not decryption > the modules are useless except for MD5 and Check > When Encrypt/Decrypt are ok, you may save password to local file more secure > > The class should include > Md5(string) as string > CheckMD5(md5String) as boolean > EnCrypt(key, string) as string > DeCrypt(key, EnCryptString) as string > > Or if it more crypt types can be used it could be like this > EnCrypt(key,string, gb.crypt.???) as string > DeCrypt(key,string, gb.crypt.???) as string > > Example of usage. > a1b2c3d4e5f6=Encrypt("MyPassword","Hello",gb.crypt.des) > Hello = DeCrypt("MyPassword","a1b2c3d4e5f6",gb.crypt.des) > > -- Dani Santos From picander78 at ...325... Thu Jan 19 18:37:01 2006 From: picander78 at ...325... (Marco Gusy) Date: Thu, 19 Jan 2006 18:37:01 +0100 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601191504.51335.gambas@...1...> References: <20060118223619.79655.qmail@...1331...> <200601181441.53789.jfabiani@...1109...> <200601191504.51335.gambas@...1...> Message-ID: <200601191837.01485.picander78@...325...> Alle 15:04, gioved? 19 gennaio 2006, Benoit Minisini ha scritto: > > FOR EACH hControl IN formname.Controls > ... > NEXT > > You will get it in the next development version release. > > Regards, > Is there any way of doing the same with all loaded forms ? From sourceforge-raindog2 at ...94... Thu Jan 19 19:09:05 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 19 Jan 2006 13:09:05 -0500 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601190817.59348.jfabiani@...1109...> References: <20060118223619.79655.qmail@...1331...> <200601191504.51335.gambas@...1...> <200601190817.59348.jfabiani@...1109...> Message-ID: <200601191309.06377.sourceforge-raindog2@...94...> On Thu January 19 2006 11:17, johnf wrote: > Could you add an extra - tag property. We would have two (2) > tag like properties. So not to break older coding maybe you > could add the new property with a different name - like tag2. You know, the Tag property is a variant. Nothing stopping you from sticking a collection in there.... something I've done in the past. Then you can put as much data as you like into the tag. button1.Tag = NEW Collection button1.Tag["Name"] = "Button1" button1.Tag["Otherinfo"] = "Fhqwhgads" Message.Info(button1.Tag["Otherinfo"]) This was also the case in VB, but since a number of the things we commonly do in Gambas with the tag property (control name, index or other identifier for when we're iterating over the controls on the form) are available through other means in VB, most developers just treat it as a string. Rob From rohnny at ...1248... Thu Jan 19 19:14:02 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Thu, 19 Jan 2006 19:14:02 +0100 Subject: [Gambas-user] Crypt/Decrypt Message-ID: <43CFD6EA.9090500@...1248...> < Re: Crypt/Decrypt <2006-01-19 09:28 < References: <20060118223619.79655.qmail@...1331...> <200601181441.53789.jfabiani@...1109...> <200601191504.51335.gambas@...1...> Message-ID: <200601191314.45740.sourceforge-raindog2@...94...> On Thu January 19 2006 09:04, Benoit Minisini wrote: > I just finished to implement the pseudo-collection > "Window.Controls", that will allow you to recursively > enumerate all controls on a form. Cool, so John, this means you'll be able to put this in your Form_Open: FOR EACH ctrl IN ME.Controls ctrl.Tag = NEW Collection NEXT And then you'll just be able to treat all your controls' Tag properties as collections without thinking about it. Thanks Benoit :) Rob From sourceforge-raindog2 at ...94... Thu Jan 19 19:18:19 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 19 Jan 2006 13:18:19 -0500 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601191309.06377.sourceforge-raindog2@...94...> References: <20060118223619.79655.qmail@...1331...> <200601190817.59348.jfabiani@...1109...> <200601191309.06377.sourceforge-raindog2@...94...> Message-ID: <200601191318.20059.sourceforge-raindog2@...94...> On Thu January 19 2006 13:09, Rob Kudla wrote: > This was also the case in VB, but since a number of the things > we commonly do in Gambas with the tag property (control name, > index or other identifier for when we're iterating over the > controls on the form) are available through other means in VB, > most developers just treat it as a string. I just found out that the reason most developers treat it as a string is that a bug in VB prevented them from assigning an object reference to the Tag property. So in effect, it really was just a string. Gambas for the win once again. Rob From jfabiani at ...1109... Thu Jan 19 19:36:45 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 19 Jan 2006 10:36:45 -0800 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601191318.20059.sourceforge-raindog2@...94...> References: <20060118223619.79655.qmail@...1331...> <200601191309.06377.sourceforge-raindog2@...94...> <200601191318.20059.sourceforge-raindog2@...94...> Message-ID: <200601191036.45631.jfabiani@...1109...> On Thursday 19 January 2006 10:18, Rob Kudla wrote: > On Thu January 19 2006 13:09, Rob Kudla wrote: > > This was also the case in VB, but since a number of the things > > we commonly do in Gambas with the tag property (control name, > > index or other identifier for when we're iterating over the > > controls on the form) are available through other means in VB, > > most developers just treat it as a string. > > I just found out that the reason most developers treat it as a > string is that a bug in VB prevented them from assigning an > object reference to the Tag property. So in effect, it really > was just a string. Gambas for the win once again. > > Rob Yes I understood that I could put a collection in the tag property. But then that requires that I setup the collection. I was considering something like that when I realized that I had to write code for each control and it was much easier to just type something into the tag property at design time. What I did not realize was I was going to need a strange parsing routine to get all the useful info back out. Currently I'm using the spilt routine (which is very fast) and the looping through the array. So would it have been better to use a collection? - maybe! At this point I'm reconsidering the issue. With a collection I could use .Updatestr = "Set custno = editfield1.Text" (or something like that) along with other details that could be made available. Just learning how to use Gambas everyday. John John From jfabiani at ...1109... Thu Jan 19 18:30:33 2006 From: jfabiani at ...1109... (johnf) Date: Thu, 19 Jan 2006 09:30:33 -0800 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601191747.32505.ronstk@...239...> References: <20060118223619.79655.qmail@...1331...> <200601190817.59348.jfabiani@...1109...> <200601191747.32505.ronstk@...239...> Message-ID: <200601190930.33530.jfabiani@...1109...> On Thursday 19 January 2006 08:47, ron wrote: > On Thursday 19 January 2006 17:17, johnf wrote: > > Could you add an extra - tag property. We would have two (2) tag like > > properties. ?So not to break older coding maybe you could add the new > > property with a different name - like tag2. > > John ? > > Smile :) :) > > This is almost the same as asking the .Name property. > Depends on what you want with Tag2. > > Only 1 big difference, .Name is String and .Tag is Variant. > .Tag2 should be then also Variant. > Again the power of gambas against VB :) > > Instead .Tag2 it can also be named .UserData > > Ron I don't care about the name - .UserData sounds great. I just want to store more information (easily) about the control. At the moment I'm storing information in the tag property to help build a "Update" string for SQL Update strings. So I can have a general class that can build the SQL Update string when the user clicks my save button. Pass the routine a "window" and have the routine loop through the control and build the string. I'm not using "edit" or any of the Gambas SQL resultset routines - exec everything. So if I had just one more property I would not have to have a strange parsing routine. John From Wsouzap at ...87... Thu Jan 19 20:55:10 2006 From: Wsouzap at ...87... (Wsouzap at ...87...) Date: Thu, 19 Jan 2006 14:55:10 -0500 Subject: [Gambas-user] To Christian Faure: about DBReportViewer in gambas Message-ID: <6CA6F811.216A4F27.001B903D@...87...> Christian Faure In DBReportViewer by console (command line) is possible set name of xml and the parameters values. ./DBReportViewer test.xml "Christian" test.xml is my clients report and Christian is my parameter to list the report. Because anothe mode is need click in open button and type the parameters in parameters window and OK button to show the report. My english is not very well. I'm brazilian. Reguards, Wellington From sourceforge-raindog2 at ...94... Thu Jan 19 21:06:59 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 19 Jan 2006 15:06:59 -0500 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601190930.33530.jfabiani@...1109...> References: <20060118223619.79655.qmail@...1331...> <200601191747.32505.ronstk@...239...> <200601190930.33530.jfabiani@...1109...> Message-ID: <200601191507.00105.sourceforge-raindog2@...94...> On Thu January 19 2006 12:30, johnf wrote: > the moment I'm storing information in the tag property to help > build a "Update" string for SQL Update strings. So I can have > a general class that can build the SQL Update string when the > user clicks my save button. Pass the routine a "window" and > have the routine loop through the control and build the > string. I'm not using "edit" or any of the Gambas SQL > resultset routines - exec everything. So if I had just one > more property I would not have to have a strange parsing > routine. Well, if you'd rather not set up a collection for each control, why not use the tag as a key for as many different collections as you need? I agree that it would be easier to just be able to type stuff into a bunch of custom properties at design time (though I don't do that myself because I try to keep the presentation and the logic separate, as good coding style dictates) and it would probably be possible with the advent of user-created controls to subclass the controls you need, adding as many custom properties as you need. But maybe what we really need is some capability in the IDE to support storing a collection in the tag, and editing that collection at design time. I don't think it would be hard to do that, though you'd have to generate code to be stored in a .class file and not a .form file (unless we changed the compiler too, and I don't think I'm up to that.) Rob From rohnny at ...1248... Thu Jan 19 21:21:45 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Thu, 19 Jan 2006 21:21:45 +0100 Subject: [Gambas-user] sqlite3/date Message-ID: <43CFF4D9.4070006@...1248...> How to select fields from a chosen month on sqlite3. Tried with WHERE month(dato)=1 but it looks like that function(month) are not aviable -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From christian.faurebouvard at ...357... Thu Jan 19 21:34:43 2006 From: christian.faurebouvard at ...357... (Christian Faure) Date: Thu, 19 Jan 2006 17:34:43 -0300 Subject: [Gambas-user] To Christian Faure: about DBReportViewer in gambas In-Reply-To: <6CA6F811.216A4F27.001B903D@...87...> References: <6CA6F811.216A4F27.001B903D@...87...> Message-ID: <200601191734.43719.christian.faurebouvard@...357...> El Jueves 19 Enero 2006 16:55, Wsouzap at ...87... escribi?: > Christian Faure > > In DBReportViewer by console (command line) is possible set name of xml and > the parameters values. > > ./DBReportViewer test.xml "Christian" Hi, No, not in this version, :-( I add this feature for next version :-) New version use param like ./DBReportViewer [] [=] ... Thanks. > > test.xml is my clients report and Christian is my parameter to list the > report. > > Because anothe mode is need click in open button and type the parameters in > parameters window and OK button to show the report. > > My english is not very well. I'm brazilian. My english is very bad !!! Write me in portuguese, or spanish, if you want. > > Reguards, > > Wellington > From jdsantos1978 at ...626... Thu Jan 19 22:00:07 2006 From: jdsantos1978 at ...626... (Dani Santos) Date: Thu, 19 Jan 2006 22:00:07 +0100 Subject: [Gambas-user] Crypt/Decrypt In-Reply-To: <43CFD6EA.9090500@...1248...> References: <43CFD6EA.9090500@...1248...> Message-ID: <1137704407.9668.2.camel@...1222...> I've build a simple Project to show how it works. Just saying that I've only translated into gambas a VB class I found on the Internet and I've got no idea how and why it works, but it really does :) Regards. El jue, 19-01-2006 a las 19:14 +0100, Rohnny Stormo escribi?: > > < Re: Crypt/Decrypt > <2006-01-19 09:28 > < > < > < > < > < > < > I will be very pleased for the source. Does not matter what enryption > there is as long it's good. > > > To those that suggest I can type it in and check with sql, I don't want > to type it. > I want to save it in my home folder and I don't want to save it in the > clear. > When I start my program it log into database without username and password. > > -- Dani Santos -------------- next part -------------- A non-text attachment was scrubbed... Name: gambasCrypt.tar.gz Type: application/x-compressed-tar Size: 13928 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Thu Jan 19 22:44:10 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 19 Jan 2006 16:44:10 -0500 Subject: [Gambas-user] sqlite3/date In-Reply-To: <43CFF4D9.4070006@...1248...> References: <43CFF4D9.4070006@...1248...> Message-ID: <200601191644.10832.sourceforge-raindog2@...94...> On Thu January 19 2006 15:21, Rohnny Stormo wrote: > How to select fields from a chosen month on sqlite3. > Tried with WHERE month(dato)=1 but it looks like that > function(month) are not aviable Here's the SQLite documentation for their time/date functions.... http://www.sqlite.org/cvstrac/wiki/wiki?p=DateAndTimeFunctions It looks like there is no month(), day(), year(), etc. But you might be able to do "where strftime('%m', mydate) = 0" to get January dates.... give it a try. Rob From sourceforge-raindog2 at ...94... Thu Jan 19 22:48:27 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 19 Jan 2006 16:48:27 -0500 Subject: [Gambas-user] sqlite3/date In-Reply-To: <200601191644.10832.sourceforge-raindog2@...94...> References: <43CFF4D9.4070006@...1248...> <200601191644.10832.sourceforge-raindog2@...94...> Message-ID: <200601191648.28184.sourceforge-raindog2@...94...> On Thu January 19 2006 16:44, Rob Kudla wrote: > you might be able to do "where strftime('%m', mydate) = 0" to Sorry, I should have written "where strftime('%m', mydate) = '01'" because strftime returns a 1-based zero-padded string for %m, not an 0-based integer. Rob From gambas at ...1... Thu Jan 19 22:55:17 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jan 2006 22:55:17 +0100 Subject: [Gambas-user] Parsing through all controls of a form In-Reply-To: <200601190817.59348.jfabiani@...1109...> References: <20060118223619.79655.qmail@...1331...> <200601191504.51335.gambas@...1...> <200601190817.59348.jfabiani@...1109...> Message-ID: <200601192255.17302.gambas@...1...> On Thursday 19 January 2006 17:17, johnf wrote: > > Could you add an extra - tag property. We would have two (2) tag like > properties. So not to break older coding maybe you could add the new > property with a different name - like tag2. > John > As said in the other answers, the tag property is a variant, so you can put whatever you want inside. Another way of doing what you need is creating a component with your own controls inheriting gambas controls, with the needed properties added. For example: --8<------------------------------------------------------------------------ ' MyComboBox.class EXPORT INHERITS ComboBox PROPERTY MyFirstProperty AS String PROPERTY MySecondProperty AS String PUBLIC CONST _Properties AS String = "*,MyFirstProperty,MySecondProperty" [...] --8<------------------------------------------------------------------------ The next version of the IDE will support making components in Gambas more easily than the current one. Regards, -- Benoit Minisini From gambas at ...1... Thu Jan 19 22:56:01 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 19 Jan 2006 22:56:01 +0100 Subject: [Gambas-user] sqlite3/date In-Reply-To: <200601191644.10832.sourceforge-raindog2@...94...> References: <43CFF4D9.4070006@...1248...> <200601191644.10832.sourceforge-raindog2@...94...> Message-ID: <200601192256.01441.gambas@...1...> On Thursday 19 January 2006 22:44, Rob Kudla wrote: > On Thu January 19 2006 15:21, Rohnny Stormo wrote: > > How to select fields from a chosen month on sqlite3. > > Tried with WHERE month(dato)=1 but it looks like that > > function(month) are not aviable > > Here's the SQLite documentation for their time/date functions.... > > http://www.sqlite.org/cvstrac/wiki/wiki?p=DateAndTimeFunctions > > It looks like there is no month(), day(), year(), etc. But you > might be able to do "where strftime('%m', mydate) = 0" to get > January dates.... give it a try. > > Rob > Another proof that SQL is well standardized :-) -- Benoit Minisini From sourceforge-raindog2 at ...94... Thu Jan 19 23:09:16 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 19 Jan 2006 17:09:16 -0500 Subject: [Gambas-user] sqlite3/date In-Reply-To: <200601192256.01441.gambas@...1...> References: <43CFF4D9.4070006@...1248...> <200601191644.10832.sourceforge-raindog2@...94...> <200601192256.01441.gambas@...1...> Message-ID: <200601191709.16804.sourceforge-raindog2@...94...> On Thu January 19 2006 16:56, Benoit Minisini wrote: > > It looks like there is no month(), day(), year(), etc. But > Another proof that SQL is well standardized :-) Well, that's why SQL stands for "Scarcely Qualifies as a Language".... but, imagine how bad implementing the gb.db.* components would have been if you'd had to roll your own query interface to every DBMS ;) Rob From christian.faurebouvard at ...357... Thu Jan 19 23:57:52 2006 From: christian.faurebouvard at ...357... (Christian Faure) Date: Thu, 19 Jan 2006 19:57:52 -0300 Subject: [Gambas-user] DBReportViewer In-Reply-To: <6CA6F811.216A4F27.001B903D@...87...> References: <6CA6F811.216A4F27.001B903D@...87...> Message-ID: <200601191957.53070.christian.faurebouvard@...357...> El Jueves 19 Enero 2006 16:55, Wsouzap at ...87... escribi?: > Christian Faure > > In DBReportViewer by console (command line) is possible set name of xml and > the parameters values. > > ./DBReportViewer test.xml "Christian" > > test.xml is my clients report and Christian is my parameter to list the > report. > > Because anothe mode is need click in open button and type the parameters in > parameters window and OK button to show the report. > > My english is not very well. I'm brazilian. > > Reguards, > > Wellington > New version available for DBReportViewer at: http://cfaure.com/DBReport/DBReportViewer-0.0.5.tar.gz and new viewer for Gambas 2 at: http://cfaure.com/DBReport/DBReportViewer2-0.0.7.tar.gz Change Log: Add command line arguments for viewers DBReportViewer [ [=""] ...] ex: ./DBReportViewer work_x_project_x_department.xml MaxDate=2004-01-01 From mandrakeron at ...43... Fri Jan 20 01:25:46 2006 From: mandrakeron at ...43... (Ron Gottstein) Date: Thu, 19 Jan 2006 16:25:46 -0800 (PST) Subject: [Gambas-user] DrawingArea Questions Message-ID: <20060120002546.62002.qmail@...1332...> Hello, I am designing a paint program and have a few questions. 1. I have a DrawingArea labeled Da1. I created a label to be placed in Da1 as follows. Dim lbDa1text as Label lbDa1text = NEW Label(Da1) as "lbDa1text" I can insert text into the new label and it appears on Da1 as desired. Problem: I want to be able to move the labeel (lbDa1text) with a mouse event. I created this code: Public Sub lbDa1text_MouseMove() lbDa1text.Move(Mouse.X, Mouse.Y) End Nothing happens. Help Please. 2. Is it possible to gain focus of a drawing (draw.line) after it is placed into a drawingarea? If so, help. Ron __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From lordheavy at ...512... Fri Jan 20 22:51:46 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Fri, 20 Jan 2006 22:51:46 +0100 Subject: [Gambas-user] DrawingArea Questions In-Reply-To: <20060120002546.62002.qmail@...1332...> References: <20060120002546.62002.qmail@...1332...> Message-ID: <200601202251.46826.lordheavy@...512...> Le Vendredi 20 Janvier 2006 01:25, Ron Gottstein a ?crit?: > Hello, > > I am designing a paint program and have a few > questions. > > 1. I have a DrawingArea labeled Da1. I created a > label to be placed in Da1 as follows. > > Dim lbDa1text as Label > lbDa1text = NEW Label(Da1) as "lbDa1text" > > I can insert text into the new label and it appears on > Da1 as desired. > > Problem: > > I want to be able to move the labeel (lbDa1text) with > a mouse event. > I created this code: > > Public Sub lbDa1text_MouseMove() > > lbDa1text.Move(Mouse.X, Mouse.Y) > > End > The mouse event will be raised if a mouse button is pressed and the mouse is moved, if not, post a sample of code with the issue. > Nothing happens. Help Please. > > > 2. Is it possible to gain focus of a drawing > (draw.line) after it is placed into a drawingarea? If > so, help. > Give the focus of to the line ? it isn't possible. Otherwise you can give the focus to the drawingArea (or to another widget) with the SetFocus() method. Regards, -- jabber : lordheavy at ...943... mail : lordheavym at ...1227... From kztyrvlq at ...966... Sat Jan 21 02:29:41 2006 From: kztyrvlq at ...966... (A Person) Date: Fri, 20 Jan 2006 21:59:41 -0330 Subject: [Gambas-user] Real basic stuff . . . Message-ID: <43D18E85.6000208@...966...> Good Day All . . . Sorry to bother you again with 1.0.13 questions but I need some real basic help. I can find some documentation on this but not enough. I want a maximised form in the compiled executable. I start with Me.Border = Window.Resizable ' allow resizing Me.State = Window.Maximized ' full screen These are the results with various sized development ME forms. EXPECTED RESULTS 1. IF ME.Height < Screen Height AND ME.Width < Screen Width THEN ME Executable Size = Maximised / Full Screen 2. IF ME.Height >= Screen Height AND ME.Width >= Screen Width THEN ME Executable Size = Maximised / Full Screen UNEXPECTED RESULTS 1. IF ME.Height >= Screen Height AND ME.Width < Screen Width THEN ME Executable Size = Screen Height & ME.Width 2. IF ME.Height < Screen Height AND ME.Width >= Screen Width THEN ME Executable Size = ME.Height & Screen Width The above is lacking some official terms but due to the lack of documentation my choice of descriptors is the best that you are going to get. As always I ask, please tell me what I am doing wrong. Paul From gambas at ...1... Sat Jan 21 08:54:26 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 21 Jan 2006 08:54:26 +0100 Subject: [Gambas-user] Real basic stuff . . . In-Reply-To: <43D18E85.6000208@...966...> References: <43D18E85.6000208@...966...> Message-ID: <200601210854.26476.gambas@...1...> On Saturday 21 January 2006 02:29, A Person wrote: > Good Day All . . . > > Sorry to bother you again with 1.0.13 questions but I need some real > basic help. I can find some documentation on this but not enough. > > I want a maximised form in the compiled executable. I start with > > Me.Border = Window.Resizable ' allow resizing > Me.State = Window.Maximized ' full screen > > These are the results with various sized development ME forms. > > EXPECTED RESULTS > 1. IF ME.Height < Screen Height AND ME.Width < Screen Width THEN > ME Executable Size = Maximised / Full Screen > > 2. IF ME.Height >= Screen Height AND ME.Width >= Screen Width THEN > ME Executable Size = Maximised / Full Screen > > UNEXPECTED RESULTS > 1. IF ME.Height >= Screen Height AND ME.Width < Screen Width THEN > ME Executable Size = Screen Height & ME.Width > > 2. IF ME.Height < Screen Height AND ME.Width >= Screen Width THEN > ME Executable Size = ME.Height & Screen Width > > The above is lacking some official terms but due to the lack of > documentation my choice of descriptors is the best that you are going to > get. > > As always I ask, please tell me what I am doing wrong. > > Paul > The behavior of maximizing operations depends on the window manager. Which one do you use? -- Benoit Minisini From rohnny at ...1248... Sat Jan 21 12:13:17 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sat, 21 Jan 2006 12:13:17 +0100 Subject: [Gambas-user] Re: Crypt/Decrypt Message-ID: <43D2174D.10404@...1248...> Have made a simple cryptionclass and a project to show how to use it. It's laying under codesnippets on http://forum.stormweb.no Shure it could be made better, but I only needed something that was not in the clear. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From gambas at ...1... Sat Jan 21 17:59:06 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 21 Jan 2006 17:59:06 +0100 Subject: [Gambas-user] Release of Gambas 1.0.14 Message-ID: <200601211759.06420.gambas@...1...> Here is a new release of the stable version. Many old bugs were fixed in this release: * The EXEC and SHELL instructions now should never freeze anymore. * The position of the current line in the debugger should be always accurate now. * The Drag & Drop was fixed in the ListView, TreeView, ScrollView, ColumnView and IconView controls. Here is the complete ChangeLog: --8<--------------------------------------------------------------------------- DEVELOPMENT ENVIRONMENT * BUG: The translation is automatically saved if you close the translation dialog with the window close button. * NEW: Translation of the tips of the day in swedish. INTERPRETER * BUG: Many fixes in the support of classes and archives compiled on big-endian CPUs. * BUG: Object.GetProperty and Object.SetProperty were fixed. * BUG: Up to 4096 string constants in the same class are supported now. * BUG: You can call SHELL and EXEC several times without freezing the interpreter anymore. COMPILER * BUG: An error is raised now if you try to use something that is not an identifier as local variable name. * BUG: You cannot use the same local variable in several imbricated loops anymore. * BUG: Instructions or expressions written on several lines do not disturb the debugger anymore. DATABASE COMPONENT * BUG: 8 bytes integer fields are now interpreted as Float in the PostgreSQL driver. QT COMPONENT * BUG: The dialog size grip ignores the arrangement property of its window. * BUG: The Clear method of the cell of a GridView now works correctly. * BUG: Drag & Drop of TreeView, ListView, ColumnView, IconView and ScrollView controls was fixed, and should work as expected. * BUG: You can rename a TreeView item with the Rename method now. GAMBAS EDITOR COMPONENT * NEW: The editor now handles correctly the middle mouse button for pasting selected text. SDL COMPONENT: * BUG: An interpreter crash does not wake up the SDL crash handler anymore. --8<--------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From kztyrvlq at ...966... Sat Jan 21 18:25:14 2006 From: kztyrvlq at ...966... (A Person) Date: Sat, 21 Jan 2006 13:55:14 -0330 Subject: [Gambas-user] Re: Real basic stuff . . . Message-ID: <43D26E7A.7010502@...966...> Good Day Benoit . . . Thanks for the reply. These inconsistencies with different flavours of whatever are a pain in the butt. I am running KDE 3.5 on boxed Suse 10.0. Paul From naveenagrawal at ...43... Sun Jan 22 14:55:28 2006 From: naveenagrawal at ...43... (Naveen Agarawal) Date: Sun, 22 Jan 2006 05:55:28 -0800 (PST) Subject: [Gambas-user] Release of Gambas 1.0.14 In-Reply-To: <200601211759.06420.gambas@...1...> Message-ID: <20060122135528.83667.qmail@...1333...> Hi! Couldn't install gambas 1.0.14 on Fedora Core 4. Returns an error that libstdc++.la is missing or corrupt. Tried yum to install but it had 1.0.13 in the repository. Any help? Regards! Naveen Benoit Minisini wrote: Here is a new release of the stable version. Many old bugs were fixed in this release: * The EXEC and SHELL instructions now should never freeze anymore. * The position of the current line in the debugger should be always accurate now. * The Drag & Drop was fixed in the ListView, TreeView, ScrollView, ColumnView and IconView controls. Here is the complete ChangeLog: --8<--------------------------------------------------------------------------- DEVELOPMENT ENVIRONMENT * BUG: The translation is automatically saved if you close the translation dialog with the window close button. * NEW: Translation of the tips of the day in swedish. INTERPRETER * BUG: Many fixes in the support of classes and archives compiled on big-endian CPUs. * BUG: Object.GetProperty and Object.SetProperty were fixed. * BUG: Up to 4096 string constants in the same class are supported now. * BUG: You can call SHELL and EXEC several times without freezing the interpreter anymore. COMPILER * BUG: An error is raised now if you try to use something that is not an identifier as local variable name. * BUG: You cannot use the same local variable in several imbricated loops anymore. * BUG: Instructions or expressions written on several lines do not disturb the debugger anymore. DATABASE COMPONENT * BUG: 8 bytes integer fields are now interpreted as Float in the PostgreSQL driver. QT COMPONENT * BUG: The dialog size grip ignores the arrangement property of its window. * BUG: The Clear method of the cell of a GridView now works correctly. * BUG: Drag & Drop of TreeView, ListView, ColumnView, IconView and ScrollView controls was fixed, and should work as expected. * BUG: You can rename a TreeView item with the Rename method now. GAMBAS EDITOR COMPONENT * NEW: The editor now handles correctly the middle mouse button for pasting selected text. SDL COMPONENT: * BUG: An interpreter crash does not wake up the SDL crash handler anymore. --8<--------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Every body has his shares of ups and downs but one should never say no to life. --------------------------------- Yahoo! Photos Got holiday prints? See all the ways to get quality prints in your hands ASAP. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Sun Jan 22 21:48:24 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 22 Jan 2006 15:48:24 -0500 Subject: [Gambas-user] Real basic stuff . . . In-Reply-To: <43D18E85.6000208@...966...> References: <43D18E85.6000208@...966...> Message-ID: <200601221548.25003.sourceforge-raindog2@...94...> On Fri January 20 2006 20:29, A Person wrote: > The above is lacking some official terms but due to the lack > of documentation my choice of descriptors is the best that you > are going to get. I'm not sure I understand correctly, but if I do, you're saying something like this (given a 1024x768 screen): Size of window before Size of window after 900x500 1024x768 1300x1100 1024x768 450x800 450x768 1100x600 1024x600 I have recreated each of these four scenarios, and what's happening for the last two (under KDE 3.4, Mandriva 2006) is that KDE is simply ignoring the request to maximize the window because it thinks the window's already maximized. It works as expected if you click the Maximize button, which leads me to believe there's a possibility that it's a Gambas bug, but it seems more likely to be a KDE or Qt bug. I don't have any other window managers installed so I can't say whether it has the same effect under them. If it does the same thing under, for example, IceWM, then I would say it's a Gambas bug. Anyone want to try that? What I also notice is that when my form initially opens, no matter how much wider or taller it is than the screen, it's cut down to screen height/width minus the height/width of any KDE toolbars at the edges of the screen. So that leads me to point the finger at KDE, not Gambas. Rob From brian at ...1334... Sun Jan 22 22:21:26 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 13:21:26 -0800 (PST) Subject: [Gambas-user] Drawing Area Issues Message-ID: <20060122130740.F25348@...1337...> I believe I have discoverd an off-by-one problem with the DrawingArea control. It's easy enough to reproduce: 1. Create a form with a DrawingArea control 640x480 pixels 2. In the form create a private picture variable 3. In the form startup a) instantiate the picture variable with a 640x480 image b) draw some thin lines Draw.Begin(thePicture) Draw.LineWidth=1 Draw.ForeColor=&H000000& Draw.FillColor=&H000000& Draw.FillStyle=Fill.solid Draw.Rect(0,0,640,480) Draw.FillStyle=Fill.none Draw.ForeColor=&Hffff00& Draw.Rect(0,0,640,480) Draw.End 4. Draw the image in the DrawingArea it will not show the extreme right and lower edges. Draw.Begin(theDrawingArea) ' Rectangle has no right or bottom edges Draw.Picture(thePicture,0,0,0,0,640,480) ' Rectangle will show right+bottom but left and top are gone Draw.Picture(thePicture,0,0,1,1,640,480) Draw.End Workaround: * Make the DrawingArea exactly 1 pixel wider and 1 pixel higher. ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... From a.grandi at ...626... Sun Jan 22 22:21:29 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Sun, 22 Jan 2006 22:21:29 +0100 Subject: [Gambas-user] Bug in Gambas TableView Message-ID: <9cf0f07b0601221321x7bc3cf24w@...627...> Hi, please try this thing. - open the sample project "Database" and add this Sub to the FRequest form: PUBLIC SUB tbvData_DblClick() $rData.MoveTo(tbvData.Row) Message("ID Cliente: " & $rData["id"]) Message("FirstName: " & $rData["firstname"]) Message("Name: " & $rData["name"]) END As you can understand this sub should show three message dialog with the ID, then firstname, then name of the selected row. The problem is that for example, if you double-click row number 23, you see the correct ID of the row 23, then you see the firstname and the name of the row 24. Try as many time as you want. Every time, after you read a value in the selected row, the current row is set to the next row available. How is it possible? Thanks for your support! p.s: I'm using Gambas 1.9.23 From brian at ...1334... Sun Jan 22 22:25:01 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 13:25:01 -0800 (PST) Subject: [Gambas-user] Re: Drawing Area Issues In-Reply-To: <20060122130740.F25348@...1337...> References: <20060122130740.F25348@...1337...> Message-ID: <20060122132205.E25348@...1337...> PS: Gambas Version 1.9.20 under Debian Sarge2 ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... On Sun, 22 Jan 2006, Christopher Brian Jack wrote: > Date: Sun, 22 Jan 2006 13:21:26 -0800 (PST) > From: Christopher Brian Jack > To: Gambas-Users List > Subject: Drawing Area Issues > > > I believe I have discoverd an off-by-one problem with the DrawingArea > control. > > It's easy enough to reproduce: > > 1. Create a form with a DrawingArea control 640x480 pixels > 2. In the form create a private picture variable > 3. In the form startup > a) instantiate the picture variable with a 640x480 image > b) draw some thin lines > > Draw.Begin(thePicture) > Draw.LineWidth=1 > Draw.ForeColor=&H000000& > Draw.FillColor=&H000000& > Draw.FillStyle=Fill.solid > Draw.Rect(0,0,640,480) > Draw.FillStyle=Fill.none > Draw.ForeColor=&Hffff00& > Draw.Rect(0,0,640,480) > Draw.End > > 4. Draw the image in the DrawingArea it will not show the extreme right > and lower edges. > > Draw.Begin(theDrawingArea) > ' Rectangle has no right or bottom edges > Draw.Picture(thePicture,0,0,0,0,640,480) > ' Rectangle will show right+bottom but left and top are gone > Draw.Picture(thePicture,0,0,1,1,640,480) > Draw.End > > Workaround: > > * Make the DrawingArea exactly 1 pixel wider and 1 pixel higher. > > ================================================== > Christopher BRIAN Jack aka "Gau of the Veldt" > ================================================== > brian at ...1334... > brian at ...1335... > brian at ...1336... > brian at ...1337... > gau_veldt at ...67... > ================================================== > > -- Hi Spambots, my email address is sputnik at ...1334... > From gambas at ...1... Sun Jan 22 22:34:37 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 22 Jan 2006 22:34:37 +0100 Subject: [Gambas-user] Drawing Area Issues In-Reply-To: <20060122130740.F25348@...1337...> References: <20060122130740.F25348@...1337...> Message-ID: <200601222234.37269.gambas@...1...> On Sunday 22 January 2006 22:21, Christopher Brian Jack wrote: > I believe I have discoverd an off-by-one problem with the DrawingArea > control. > > It's easy enough to reproduce: > > 1. Create a form with a DrawingArea control 640x480 pixels > 2. In the form create a private picture variable > 3. In the form startup > a) instantiate the picture variable with a 640x480 image > b) draw some thin lines > > Draw.Begin(thePicture) > Draw.LineWidth=1 > Draw.ForeColor=&H000000& > Draw.FillColor=&H000000& > Draw.FillStyle=Fill.solid > Draw.Rect(0,0,640,480) > Draw.FillStyle=Fill.none > Draw.ForeColor=&Hffff00& > Draw.Rect(0,0,640,480) > Draw.End > > 4. Draw the image in the DrawingArea it will not show the extreme right > and lower edges. > > Draw.Begin(theDrawingArea) > ' Rectangle has no right or bottom edges > Draw.Picture(thePicture,0,0,0,0,640,480) > ' Rectangle will show right+bottom but left and top are gone > Draw.Picture(thePicture,0,0,1,1,640,480) > Draw.End > > Workaround: > > * Make the DrawingArea exactly 1 pixel wider and 1 pixel higher. > Did you set the border of the drawing area to None ? -- Benoit Minisini From gambas at ...1... Sun Jan 22 22:38:52 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 22 Jan 2006 22:38:52 +0100 Subject: [Gambas-user] Bug in Gambas TableView In-Reply-To: <9cf0f07b0601221321x7bc3cf24w@...627...> References: <9cf0f07b0601221321x7bc3cf24w@...627...> Message-ID: <200601222238.52720.gambas@...1...> On Sunday 22 January 2006 22:21, Andrea Grandi wrote: > Hi, > > please try this thing. > > - open the sample project "Database" and add this Sub to the FRequest form: > > PUBLIC SUB tbvData_DblClick() > $rData.MoveTo(tbvData.Row) > > Message("ID Cliente: " & $rData["id"]) > Message("FirstName: " & $rData["firstname"]) > Message("Name: " & $rData["name"]) > END > > As you can understand this sub should show three message dialog with > the ID, then firstname, then name of the selected row. > > The problem is that for example, if you double-click row number 23, > you see the correct ID of the row 23, then you see the firstname and > the name of the row 24. > > Try as many time as you want. Every time, after you read a value in > the selected row, the current row is set to the next row available. > > How is it possible? > > Thanks for your support! > > p.s: I'm using Gambas 1.9.23 > This is not a bug :-) It is possible because the Data event is raised when the TableView is redrawn. As you display message boxes, the TableView is redrawn whan a message box is hidden, just before the other is shown, and so some Data events are raised, and so the Result object is moved after each Message() call. Use the PRINT instruction instead of Message boxes, and the problem disappears. Regards, -- Benoit Minisini From brian at ...1334... Sun Jan 22 22:40:45 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 13:40:45 -0800 (PST) Subject: [Gambas-user] Drawing Area Issues In-Reply-To: <200601222234.37269.gambas@...1...> References: <20060122130740.F25348@...1337...> <200601222234.37269.gambas@...1...> Message-ID: <20060122133619.J25422@...1337...> On Sun, 22 Jan 2006, Benoit Minisini wrote: > Date: Sun, 22 Jan 2006 22:34:37 +0100 > From: Benoit Minisini > Reply-To: gambas-user at lists.sourceforge.net > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Drawing Area Issues > > On Sunday 22 January 2006 22:21, Christopher Brian Jack wrote: > > I believe I have discoverd an off-by-one problem with the DrawingArea > > control. > > > > It's easy enough to reproduce: > > > > 1. Create a form with a DrawingArea control 640x480 pixels > > 2. In the form create a private picture variable > > 3. In the form startup > > a) instantiate the picture variable with a 640x480 image > > b) draw some thin lines > > > > Draw.Begin(thePicture) > > Draw.LineWidth=1 > > Draw.ForeColor=&H000000& > > Draw.FillColor=&H000000& > > Draw.FillStyle=Fill.solid > > Draw.Rect(0,0,640,480) > > Draw.FillStyle=Fill.none > > Draw.ForeColor=&Hffff00& > > Draw.Rect(0,0,640,480) > > Draw.End > > > > 4. Draw the image in the DrawingArea it will not show the extreme right > > and lower edges. > > > > Draw.Begin(theDrawingArea) > > ' Rectangle has no right or bottom edges > > Draw.Picture(thePicture,0,0,0,0,640,480) > > ' Rectangle will show right+bottom but left and top are gone > > Draw.Picture(thePicture,0,0,1,1,640,480) > > Draw.End > > > > Workaround: > > > > * Make the DrawingArea exactly 1 pixel wider and 1 pixel higher. > > > > Did you set the border of the drawing area to None ? > > -- > Benoit Minisini It is a borderless DrawingArea (ie: the border property is set to FALSE) ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Sun Jan 22 22:51:45 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 13:51:45 -0800 (PST) Subject: [Gambas-user] Drawing Area Issues In-Reply-To: <20060122133619.J25422@...1337...> References: <20060122130740.F25348@...1337...> <200601222234.37269.gambas@...1...> <20060122133619.J25422@...1337...> Message-ID: <20060122135045.N25422@...1337...> Also the stable version in Suse 9.2 using Gambas 1.0.6 does not show this issue. ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... On Sun, 22 Jan 2006, Christopher Brian Jack wrote: > Date: Sun, 22 Jan 2006 13:40:45 -0800 (PST) > From: Christopher Brian Jack > Reply-To: gambas-user at lists.sourceforge.net > To: Gambas-Users List > Subject: Re: [Gambas-user] Drawing Area Issues > > > On Sun, 22 Jan 2006, Benoit Minisini wrote: > > > Date: Sun, 22 Jan 2006 22:34:37 +0100 > > From: Benoit Minisini > > Reply-To: gambas-user at lists.sourceforge.net > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] Drawing Area Issues > > > > On Sunday 22 January 2006 22:21, Christopher Brian Jack wrote: > > > I believe I have discoverd an off-by-one problem with the DrawingArea > > > control. > > > > > > It's easy enough to reproduce: > > > > > > 1. Create a form with a DrawingArea control 640x480 pixels > > > 2. In the form create a private picture variable > > > 3. In the form startup > > > a) instantiate the picture variable with a 640x480 image > > > b) draw some thin lines > > > > > > Draw.Begin(thePicture) > > > Draw.LineWidth=1 > > > Draw.ForeColor=&H000000& > > > Draw.FillColor=&H000000& > > > Draw.FillStyle=Fill.solid > > > Draw.Rect(0,0,640,480) > > > Draw.FillStyle=Fill.none > > > Draw.ForeColor=&Hffff00& > > > Draw.Rect(0,0,640,480) > > > Draw.End > > > > > > 4. Draw the image in the DrawingArea it will not show the extreme right > > > and lower edges. > > > > > > Draw.Begin(theDrawingArea) > > > ' Rectangle has no right or bottom edges > > > Draw.Picture(thePicture,0,0,0,0,640,480) > > > ' Rectangle will show right+bottom but left and top are gone > > > Draw.Picture(thePicture,0,0,1,1,640,480) > > > Draw.End > > > > > > Workaround: > > > > > > * Make the DrawingArea exactly 1 pixel wider and 1 pixel higher. > > > > > > > Did you set the border of the drawing area to None ? > > > > -- > > Benoit Minisini > > It is a borderless DrawingArea (ie: the border property is set to FALSE) > > ================================================== > Christopher BRIAN Jack aka "Gau of the Veldt" > ================================================== > brian at ...1334... > brian at ...1335... > brian at ...1336... > brian at ...1337... > gau_veldt at ...67... > ================================================== > > -- Hi Spambots, my email address is sputnik at ...1334... > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Jan 22 23:13:10 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 22 Jan 2006 23:13:10 +0100 Subject: [Gambas-user] Drawing Area Issues In-Reply-To: <20060122135045.N25422@...1337...> References: <20060122130740.F25348@...1337...> <20060122133619.J25422@...1337...> <20060122135045.N25422@...1337...> Message-ID: <200601222313.10583.gambas@...1...> On Sunday 22 January 2006 22:51, Christopher Brian Jack wrote: > Also the stable version in Suse 9.2 using Gambas 1.0.6 does not show this > issue. > > ================================================== > Christopher BRIAN Jack aka "Gau of the Veldt" > ================================================== > brian at ...1334... > brian at ...1335... > brian at ...1336... > brian at ...1337... > gau_veldt at ...67... > ================================================== > > -- Hi Spambots, my email address is sputnik at ...1334... > I tried your code, and everything is displayec correctly: a black rectangle with a one-pixel wide yellow border. I checked with a magnifier, and all pixels are there... -- Benoit Minisini From brian at ...1334... Sun Jan 22 23:23:42 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 14:23:42 -0800 (PST) Subject: [Gambas-user] Drawing Area Issues In-Reply-To: <200601222313.10583.gambas@...1...> References: <20060122130740.F25348@...1337...> <20060122133619.J25422@...1337...> <20060122135045.N25422@...1337...> <200601222313.10583.gambas@...1...> Message-ID: <20060122141759.T25594@...1337...> I wrote a test program. Something I noticed is that when I saved the program the designer had dropped the width and height from 640x480 to 639x479 when I reloaded the project. So problem also goes away if I put the line DrawingArea1.Move(18,18,640,480) In the From_Load for my form. Somewhere there is an off-by-one going on. I'm going to try repeated save/load cycles and see if dimensions are being altered. ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... On Sun, 22 Jan 2006, Benoit Minisini wrote: > Date: Sun, 22 Jan 2006 23:13:10 +0100 > From: Benoit Minisini > Reply-To: gambas-user at lists.sourceforge.net > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Drawing Area Issues > > On Sunday 22 January 2006 22:51, Christopher Brian Jack wrote: > > Also the stable version in Suse 9.2 using Gambas 1.0.6 does not show this > > issue. > > > > ================================================== > > Christopher BRIAN Jack aka "Gau of the Veldt" > > ================================================== > > brian at ...1334... > > brian at ...1335... > > brian at ...1336... > > brian at ...1337... > > gau_veldt at ...67... > > ================================================== > > > > -- Hi Spambots, my email address is sputnik at ...1334... > > > > I tried your code, and everything is displayec correctly: a black rectangle > with a one-pixel wide yellow border. I checked with a magnifier, and all > pixels are there... > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From brian at ...1334... Sun Jan 22 23:54:39 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 14:54:39 -0800 (PST) Subject: [Gambas-user] Drawing Area Issues In-Reply-To: <20060122141759.T25594@...1337...> References: <20060122130740.F25348@...1337...> <20060122133619.J25422@...1337...> <20060122135045.N25422@...1337...> <200601222313.10583.gambas@...1...> <20060122141759.T25594@...1337...> Message-ID: <20060122144532.C25705@...1337...> It seems resizing stuff in the designer may throw other objects off-dimension that are on the form. Including the form itself losing size over the course of edits. The behavior is tricky to catch but it is easer if you have forms padded to match the grid. Save and reload. Some controls may have been resized. Resize the control(s). Now the form size is off. (Save and load each time you edit). Workaround: Explicity set the dimension of controls sensitive to dimension changes caused by the designer at runtime in the form's From_Load sub. To this point it appears only widths and heights get snaffooed by the designer in 1.9.20. So a line like SomeControl.Move(SomeControl.X, SomeControl.Y, expected_width, expected_height) Should work. ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... On Sun, 22 Jan 2006, Christopher Brian Jack wrote: > Date: Sun, 22 Jan 2006 14:23:42 -0800 (PST) > From: Christopher Brian Jack > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Drawing Area Issues > > > I wrote a test program. > > Something I noticed is that when I saved the program the designer had > dropped the width and height from 640x480 to 639x479 when I reloaded the > project. > > So problem also goes away if I put the line > > DrawingArea1.Move(18,18,640,480) > > In the From_Load for my form. > > Somewhere there is an off-by-one going on. > > I'm going to try repeated save/load cycles and see if dimensions are being > altered. > > ================================================== > Christopher BRIAN Jack aka "Gau of the Veldt" > ================================================== > brian at ...1334... > brian at ...1335... > brian at ...1336... > brian at ...1337... > gau_veldt at ...67... > ================================================== > > -- Hi Spambots, my email address is sputnik at ...1334... > > On Sun, 22 Jan 2006, Benoit Minisini wrote: > > > Date: Sun, 22 Jan 2006 23:13:10 +0100 > > From: Benoit Minisini > > Reply-To: gambas-user at lists.sourceforge.net > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] Drawing Area Issues > > > > On Sunday 22 January 2006 22:51, Christopher Brian Jack wrote: > > > Also the stable version in Suse 9.2 using Gambas 1.0.6 does not show this > > > issue. > > > > > > ================================================== > > > Christopher BRIAN Jack aka "Gau of the Veldt" > > > ================================================== > > > brian at ...1334... > > > brian at ...1335... > > > brian at ...1336... > > > brian at ...1337... > > > gau_veldt at ...67... > > > ================================================== > > > > > > -- Hi Spambots, my email address is sputnik at ...1334... > > > > > > > I tried your code, and everything is displayec correctly: a black rectangle > > with a one-pixel wide yellow border. I checked with a magnifier, and all > > pixels are there... > > > > -- > > Benoit Minisini > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From brian at ...1334... Mon Jan 23 00:29:34 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 15:29:34 -0800 (PST) Subject: [Gambas-user] The Gambas Mascot/IDE Message-ID: <20060122151327.H25901@...1337...> Other than flail his claws about while compiling/running. Does the mascot perform any other functions? On the same note is there a way to give the little sea-faring critter some things to do? It has been pointed out many times that the IDE was itself a Gambas project. How does one extend this with just Gambas programs? Same goes for the mascot? The mascot immediately makes me think of the "paper clip" in M$ Office (Ugh) but I think we could do better than that. :) ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... From sourceforge-raindog2 at ...94... Mon Jan 23 00:36:54 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 22 Jan 2006 18:36:54 -0500 Subject: [Gambas-user] The Gambas Mascot/IDE In-Reply-To: <20060122151327.H25901@...1337...> References: <20060122151327.H25901@...1337...> Message-ID: <200601221836.55204.sourceforge-raindog2@...94...> On Sun January 22 2006 18:29, Christopher Brian Jack wrote: > It has been pointed out many times that the IDE was itself a > Gambas project. How does one extend this with just Gambas > programs? Same goes for the mascot? Well, in the Gambas source distribution, the IDE is in the app/ subfolder. Extract that, open it in Gambas, and go to town. If you do something interesting (and stable), and it works in the development releases of Gambas, please share it with us. Rob From a.grandi at ...626... Mon Jan 23 01:21:16 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Mon, 23 Jan 2006 01:21:16 +0100 Subject: [Gambas-user] Controls Documentation and Samples Message-ID: <9cf0f07b0601221621u2640cbf4n@...627...> Hi, where can I find some control documentation and other samples than the one distributed with Gambas? Are these (qt and gtk) widgets the same as Qt or Gtk? (same properties, same methods ecc...) Thanks for your help! p.s: I'm using Gambas 1.9.23 From brian at ...1334... Mon Jan 23 01:48:51 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 22 Jan 2006 16:48:51 -0800 (PST) Subject: [Gambas-user] The Gambas Mascot/IDE In-Reply-To: <200601221836.55204.sourceforge-raindog2@...94...> References: <20060122151327.H25901@...1337...> <200601221836.55204.sourceforge-raindog2@...94...> Message-ID: <20060122164257.S26235@...1337...> On Sun, 22 Jan 2006, Rob Kudla wrote: > On Sun January 22 2006 18:29, Christopher Brian Jack wrote: > > It has been pointed out many times that the IDE was itself a > > Gambas project. How does one extend this with just Gambas > > programs? Same goes for the mascot? > > Well, in the Gambas source distribution, the IDE is in the app/ > subfolder. Extract that, open it in Gambas, and go to town. If > you do something interesting (and stable), and it works in the > development releases of Gambas, please share it with us. > > Rob Does the mascot live there too? I'm using 1.9.20 becuase there does not seem to be debian binary (yet) for 1.9.23 (or later) yet. Hopefully that's bleeding-edge enough for this purpose until another debian binary package with the latest development version comes along. ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... From jfabiani at ...1109... Mon Jan 23 04:25:49 2006 From: jfabiani at ...1109... (johnf) Date: Sun, 22 Jan 2006 19:25:49 -0800 Subject: [Gambas-user] Controls Documentation and Samples In-Reply-To: <9cf0f07b0601221621u2640cbf4n@...627...> References: <9cf0f07b0601221621u2640cbf4n@...627...> Message-ID: <200601221925.49518.jfabiani@...1109...> On Sunday 22 January 2006 16:21, Andrea Grandi wrote: > Hi, > > where can I find some control documentation and other samples than the > one distributed with Gambas? > > Are these (qt and gtk) widgets the same as Qt or Gtk? (same > properties, same methods ecc...) > > Thanks for your help! > > p.s: I'm using Gambas 1.9.23 http://www.gambasdoc.org/help/ John From sourceforge-raindog2 at ...94... Mon Jan 23 05:31:59 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 22 Jan 2006 23:31:59 -0500 Subject: [Gambas-user] The Gambas Mascot/IDE In-Reply-To: <20060122164257.S26235@...1337...> References: <20060122151327.H25901@...1337...> <200601221836.55204.sourceforge-raindog2@...94...> <20060122164257.S26235@...1337...> Message-ID: <200601222332.00275.sourceforge-raindog2@...94...> On Sun January 22 2006 19:48, Christopher Brian Jack wrote: > Does the mascot live there too? Yeah, it's just one of the forms in the IDE.... it's actually called FGambas. Rob From a.grandi at ...626... Mon Jan 23 12:15:55 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Mon, 23 Jan 2006 12:15:55 +0100 Subject: [Gambas-user] Controls Documentation and Samples In-Reply-To: <200601221925.49518.jfabiani@...1109...> References: <9cf0f07b0601221621u2640cbf4n@...627...> <200601221925.49518.jfabiani@...1109...> Message-ID: <9cf0f07b0601230315u68b32d47r@...627...> Hi, > http://www.gambasdoc.org/help/ thanks, but I already know this website, it's the one I use to read docs. I asked if more docs is available. In particular... Gambas Widget are written from scratch or are they based on QT widget? If so, I could read QT widgets documentarion to learn about properties, methods ecc... Thanks again! From indra at ...1326... Wed Jan 18 19:47:24 2006 From: indra at ...1326... (Indra Tjahjono) Date: Thu, 19 Jan 2006 01:47:24 +0700 Subject: [Gambas-user] Console In-Reply-To: <200601161358.34884.jfabiani@...1109...> References: <200601161143.44884.indra@...1326...> <200601162229.06471.gambas@...1...> <200601161358.34884.jfabiani@...1109...> Message-ID: <200601190147.24925.indra@...1326...> On Tuesday 17 January 2006 04:58, johnf wrote: > On Monday 16 January 2006 13:29, Benoit Minisini wrote: > > On Monday 16 January 2006 21:20, johnf wrote: > > > On Sunday 15 January 2006 20:43, Indra Tjahjono wrote: > > > > EXEC ["kugar","/tmp/filename.kud 1> /dev/null"] without success... > > > > > > Believe me when I say I don't really know but if I recall correctly you > > > need command 2> /dev/null in bash Thank you John, I executed with SHELL Command as Benoit suggested and works like a charm... > > EXEC does not use any shell. You must use the SHELL command - Look at the > > documentation for more details... > > > > Regards, > > I started kugar and it appears to be a dcop aware program. Maybe you could > use dcop to configure the program.. > Check the "kate" demo for information. Let me know if it works. Yes, kugar is dcop aware program, But unfortunately, I dont know how to use that feature in gambas, even after I read the "kate" demo program. thank you -- Indra PT. Verinux Linux System http://www.verinux.com - "Technology in a smart way" http://www.rtrw.net - "Internet untuk Semua" From gambasfr at ...11... Tue Jan 24 13:38:06 2006 From: gambasfr at ...11... (Fabien Bodard) Date: Tue, 24 Jan 2006 13:38:06 +0100 Subject: [Gambas-user] Controls Documentation and Samples In-Reply-To: <9cf0f07b0601230315u68b32d47r@...627...> References: <9cf0f07b0601221621u2640cbf4n@...627...> <200601221925.49518.jfabiani@...1109...> <9cf0f07b0601230315u68b32d47r@...627...> Message-ID: <200601241338.06476.gambasfr@...11...> Le Lundi 23 Janvier 2006 12:15, Andrea Grandi a ?crit?: > Hi, > > > http://www.gambasdoc.org/help/ > > thanks, but I already know this website, it's the one I use to read > docs. I asked if more docs is available. > > In particular... Gambas Widget are written from scratch or are they > based on QT widget? If so, I could read QT widgets documentarion to > learn about properties, methods ecc... They are not writted from scratch but gambas use it own interface. That implie, the mtehod and properties are quite different from the qt one . But it work sutch a layer as gb.gtk and gb.qt have the same interface. so you can build an appli that work with the both without modifiate your sources, just change the lib :) Fabien Bodard > Thanks again! > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Mon Jan 23 21:18:53 2006 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Mon, 23 Jan 2006 21:18:53 +0100 Subject: [Gambas-user] Question about translation Message-ID: <200601232118.54104.Karl.Reinl@...9...> Salut, once I made my project translateable , just for testing the gambas possibilliy to handle that. This was in 08/2005. I translateted some Item , changed my LANG (or so) to 'DE_de', and it worked. So far , so good. After, while I was not interested in that. I switched back to not translateable. But these Item still translateted, even in the executable, but I didn't switch back LANG (or so). ?? Is that a bug or feature ?? using gambas-1.0.14. (but that was also before like this) Amicalment Charlie From gambas at ...1... Mon Jan 23 21:32:46 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 23 Jan 2006 21:32:46 +0100 Subject: [Gambas-user] Question about translation In-Reply-To: <200601232118.54104.Karl.Reinl@...9...> References: <200601232118.54104.Karl.Reinl@...9...> Message-ID: <200601232132.46716.gambas@...1...> On Monday 23 January 2006 21:18, Charlie Reinl wrote: > Salut, > > once I made my project translateable , just for testing the gambas > possibilliy to handle that. This was in 08/2005. > I translateted some Item , changed my LANG (or so) to 'DE_de', and it > worked. So far , so good. > After, while I was not interested in that. > I switched back to not translateable. > But these Item still translateted, even in the executable, but I didn't > switch back LANG (or so). > > ?? Is that a bug or feature ?? > > using gambas-1.0.14. (but that was also before like this) > > Amicalment > Charlie > Actually the "not translatable" is useless and so it is like a bug. Check the translatable box again, and remove all the translations, then uncheck it. Regards, -- Benoit Minisini From a.grandi at ...626... Mon Jan 23 23:32:58 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Mon, 23 Jan 2006 23:32:58 +0100 Subject: [Gambas-user] ControlAula: anyone of you uses this app? Message-ID: <9cf0f07b0601231432n5f7dc37ds@...627...> Hello, does anyone of you use ControlAula? It's a tool that allow a teacher to control classroom pc's from its own pc. It's written in Gambas. I wrote to the author but he didn't reply yet. Is anyone of you interested in continuing development? Please let me know, so we can contact him! Thanks! From picander78 at ...325... Tue Jan 24 01:11:42 2006 From: picander78 at ...325... (Marco Gusy) Date: Tue, 24 Jan 2006 01:11:42 +0100 Subject: [Gambas-user] Readonly combobox Message-ID: <200601240111.43079.picander78@...325...> I didn't get how to set the combobox selected item by code... How do I? From eilert-sprachen at ...221... Tue Jan 24 08:39:24 2006 From: eilert-sprachen at ...221... (Eilert) Date: Tue, 24 Jan 2006 08:39:24 +0100 Subject: [Gambas-user] Readonly combobox In-Reply-To: <200601240111.43079.picander78@...325...> References: <200601240111.43079.picander78@...325...> Message-ID: <43D5D9AC.9060703@...221...> Marco Gusy schrieb: >I didn't get how to set the combobox selected item by code... >How do I? > > > Use .Index: myCombo.Index = 2 for example will show the third(!) item. Rolf From gambas at ...1... Tue Jan 24 11:45:50 2006 From: gambas at ...1... (Benoit Minisini) Date: Tue, 24 Jan 2006 11:45:50 +0100 Subject: [Gambas-user] Readonly combobox In-Reply-To: <43D5D9AC.9060703@...221...> References: <200601240111.43079.picander78@...325...> <43D5D9AC.9060703@...221...> Message-ID: <200601241145.51001.gambas@...1...> On Tuesday 24 January 2006 08:39, Eilert wrote: > Marco Gusy schrieb: > >I didn't get how to set the combobox selected item by code... > >How do I? > > Use .Index: > > myCombo.Index = 2 > > for example will show the third(!) item. > > Rolf > Computers start counting at zero :-) -- Benoit Minisini From marcoguz at ...412... Tue Jan 24 12:51:08 2006 From: marcoguz at ...412... (Marco Gusy) Date: Tue, 24 Jan 2006 12:51:08 +0100 Subject: [Gambas-user] Readonly combobox In-Reply-To: <43D5D9AC.9060703@...221...> References: <200601240111.43079.picander78@...325...> <43D5D9AC.9060703@...221...> Message-ID: <200601241251.09110.marcoguz@...412...> neat and simple.... maybe yesterday I was too tired to find it out :#) From mtbc at ...1340... Tue Jan 24 23:06:22 2006 From: mtbc at ...1340... (Clarke Pelz) Date: Tue, 24 Jan 2006 13:06:22 -0900 Subject: [Gambas-user] Programming references Message-ID: <200601241306.23121.mtbc@...1340...> Hi all- I'm interested in using Gambas to create some database forms and have had some very rudimentary success so far. (Which I find very encouraging as I never made it *that* far with rekall, oo.org or php.) At one time I could code in basic, though I never really grasped oop. While I find gambas' help, tutorials and wiki useful they're not really basic enough to get me up to speed. Are gambas and VB similar enough that an introductory VB textbook would be helpful? I realize I'd need to be aware of their differences. Thanks. -- -Clarke From jfabiani at ...1109... Wed Jan 25 00:37:49 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 24 Jan 2006 15:37:49 -0800 Subject: [Gambas-user] Programming references In-Reply-To: <200601241306.23121.mtbc@...1340...> References: <200601241306.23121.mtbc@...1340...> Message-ID: <200601241537.49891.jfabiani@...1109...> On Tuesday 24 January 2006 14:06, Clarke Pelz wrote: > Hi all- > > I'm interested in using Gambas to create some database forms and have had > some very rudimentary success so far. (Which I find very encouraging as I > never made it *that* far with rekall, oo.org or php.) > > At one time I could code in basic, though I never really grasped oop. > While I find gambas' help, tutorials and wiki useful they're not really > basic enough to get me up to speed. > > Are gambas and VB similar enough that an introductory VB textbook would be > helpful? I realize I'd need to be aware of their differences. > > Thanks. I'm a newbie to basic too. I found the VB books to be of little help. Although, I at first considered them to be helpful. I did much better reviewing the examples. But I have to say that the understanding of how the object hierarchy works still eludes me. But everyone on the list has also been very helpful. If you can create a form that saves, edits, creates data then you are beyond the what the VB books can provide. Understanding OOP does not come from VB books (VB6 was not OOP). I suggest that you review what is available on the web (google OOP). I'm sure you find several tutorials on OOP. Ask questions here. As a newbie myself I know I'll help. I find just playing with the code often teaches and Gambas makes that easy to do. John From jfabiani at ...1109... Wed Jan 25 00:57:32 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 24 Jan 2006 15:57:32 -0800 Subject: [Gambas-user] this is vague but Message-ID: <200601241557.32830.jfabiani@...1109...> Hi, I have only started getting a few hundred lines of code into one form class. So what I'm about to say is not completely tested nor can I repeat it for the moment. While editing one of my form classes I created a coding error. I some how forgot a "End If". But the class compiled without error. So I thought that the compiler found the required "end if" or something. So I added the "end if" and it compiled and worked. Then I made another coding with a "Endif" (that's right I typed "Endif"). And the compiler again compiled without error. But, it did not run correctly and of course debugging did not work correctly either. I did not find it for a hour. But like I said it did compile and did not provided any error messages. Is there a question? Not really, just wondering aloud. John From framedownunder at ...626... Wed Jan 25 01:06:24 2006 From: framedownunder at ...626... (frame down under) Date: Wed, 25 Jan 2006 01:06:24 +0100 Subject: [Gambas-user] Programming references Message-ID: <82b5035a0601241606u680751fcj@...627...> Hi List, I could recommend the book by john w rittinghouse who has written a beginners guide. A quick google search found it available for download at linspire: http://www.linspire.com/download_package_source.php?filename=gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz&url=http://10.0.0.84:80/cnrPackageServer.php?fileLocation=/linspire/pkgsrv/pool-src%2Fg%2Fgambas-beginner-guide/gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz In my view OOP is just a way to organise your code, all be it a special way "-) in OOP's case i like to see them as ordinary functions organised in a tree like structure. Most of them are programmed or interfaced by benoit himself (not trivial) to ease of use in a development environment. You basically just point and click, creating objects. To program functionallity for those objects one must go back to programming sequentially inside the function, thas is, interpreted line by line. Thats all there is to OOP really. Getting to know the built in functions is a better way to learn a language then breaking one's mind over jargon. Bottom liners: -Everything is fair if you predeclare (variables) -There are always 2 programmers on your project. You, and you in 6 months for maintenance. Good Learning, framedownunder using gambas .13 for a POS From framedownunder at ...626... Wed Jan 25 01:20:54 2006 From: framedownunder at ...626... (frame down under) Date: Wed, 25 Jan 2006 01:20:54 +0100 Subject: [Gambas-user] tBeginners Guide To Gambas by JW Rittinghouse Message-ID: <82b5035a0601241620k62ef222dt@...627...> Available for download at http://www.linspire.com/download_package_source.php?filename=gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz&url=http://10.0.0.84:80/cnrPackageServer.php?fileLocation=/linspire/pkgsrv/pool-src%2Fg%2Fgambas-beginner-guide/gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz From jfabiani at ...1109... Wed Jan 25 02:05:19 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 24 Jan 2006 17:05:19 -0800 Subject: [Gambas-user] Programming references In-Reply-To: <82b5035a0601241606u680751fcj@...627...> References: <82b5035a0601241606u680751fcj@...627...> Message-ID: <200601241705.19644.jfabiani@...1109...> On Tuesday 24 January 2006 16:06, frame down under wrote: > Thats all there is to OOP really. Getting to know the built in > functions is a better way to learn a language then breaking one's mind > over jargon I could not disagree more. The structure of programs is as important as learning the langauge syntax, or functions. Understanding OOP is very important for beginers and pro's alike. In fact not understanding OOP and attempting to create a straight line program within Gambas would not be easy. At least for any program beyond the simplest. John From gambas at ...1... Wed Jan 25 09:50:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 25 Jan 2006 09:50:51 +0100 Subject: [Gambas-user] this is vague but In-Reply-To: <200601241557.32830.jfabiani@...1109...> References: <200601241557.32830.jfabiani@...1109...> Message-ID: <200601250950.51207.gambas@...1...> On Wednesday 25 January 2006 00:57, johnf wrote: > Hi, > > I have only started getting a few hundred lines of code into one form > class. So what I'm about to say is not completely tested nor can I repeat > it for the moment. > > While editing one of my form classes I created a coding error. I some how > forgot a "End If". But the class compiled without error. So I thought > that the compiler found the required "end if" or something. So I added the > "end if" and it compiled and worked. Then I made another coding with a > "Endif" (that's right I typed "Endif"). And the compiler again compiled > without error. But, it did not run correctly and of course debugging did > not work correctly either. I did not find it for a hour. But like I said > it did compile and did not provided any error messages. > > Is there a question? Not really, just wondering aloud. > > John > If you don't send your project, how can I fix the problem? :-) -- Benoit Minisini From ronstk at ...239... Wed Jan 25 10:35:17 2006 From: ronstk at ...239... (ron) Date: Wed, 25 Jan 2006 10:35:17 +0100 Subject: [Gambas-user] this is vague but In-Reply-To: <200601250950.51207.gambas@...1...> References: <200601241557.32830.jfabiani@...1109...> <200601250950.51207.gambas@...1...> Message-ID: <200601251035.18365.ronstk@...239...> On Wednesday 25 January 2006 09:50, Benoit Minisini wrote: > > "end if" and it compiled and worked. ?Then I made another coding with a > > "Endif" (that's right I typed "Endif"). ?And the compiler again compiled ---8<--- > > > > If you don't send your project, how can I fix the problem? :-) > > -- > Benoit Minisini > @Benoit I have in the very past about the difference between the 'End If' and 'Endif' already made a comment. I found it at that time also with the 'End with'. You had fixed the problem as far I know but it seams to be back in that case, or it was not fixed. It was also in effect with pretty printer from charlie at that time. Ron From ottaviomacino at ...412... Wed Jan 25 10:42:43 2006 From: ottaviomacino at ...412... (pretore60) Date: Wed, 25 Jan 2006 10:42:43 +0100 Subject: [Gambas-user] tBeginners Guide To Gambas by JW Rittinghouse In-Reply-To: <82b5035a0601241620k62ef222dt@...627...> References: <82b5035a0601241620k62ef222dt@...627...> Message-ID: <43D74813.4060206@...412...> frame down under wrote: > Available for download at > > http://www.linspire.com/download_package_source.php?filename=gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz&url=http://10.0.0.84:80/cnrPackageServer.php?fileLocation=/linspire/pkgsrv/pool-src%2Fg%2Fgambas-beginner-guide/gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I'm an italian newbie-gambas. Exists an italian translation of this guide? Thank's. Ottavio -- "Amicizia e coraggio..." From a.grandi at ...626... Wed Jan 25 11:12:56 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Wed, 25 Jan 2006 11:12:56 +0100 Subject: [Gambas-user] tBeginners Guide To Gambas by JW Rittinghouse In-Reply-To: <82b5035a0601241620k62ef222dt@...627...> References: <82b5035a0601241620k62ef222dt@...627...> Message-ID: <9cf0f07b0601250212i56509577g@...627...> Hi 2006/1/25, frame down under : > Available for download at > > http://www.linspire.com/download_package_source.php?filename=gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz&url=http://10.0.0.84:80/cnrPackageServer.php?fileLocation=/linspire/pkgsrv/pool-src%2Fg%2Fgambas-beginner-guide/gambas-beginner-guide_1.0-0.0.0.50.linspire0.1.tar.gz I tried to open the PDF inside the archive but it's damaged! I'm trying to open it with Acrobat Reader 5. Please let me know, thanks! From gambas at ...1... Wed Jan 25 12:53:05 2006 From: gambas at ...1... (Benoit Minisini) Date: Wed, 25 Jan 2006 12:53:05 +0100 Subject: [Gambas-user] The Gambas Mascot/IDE In-Reply-To: <20060122164257.S26235@...1337...> References: <20060122151327.H25901@...1337...> <200601221836.55204.sourceforge-raindog2@...94...> <20060122164257.S26235@...1337...> Message-ID: <200601251253.05759.gambas@...1...> This mail is for Christian Brian Jack. I sent it there because I can't answer you directly, as all my mails are rejected. My provider is black-listed by http://www.nl.sorbs.net. Just to tell you that I created your account on the wiki. Your login is 'c.jack', and your password is the one you wanted. Regards, -- Benoit Minisini From brian at ...1334... Wed Jan 25 13:56:30 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Wed, 25 Jan 2006 04:56:30 -0800 (PST) Subject: [Gambas-user] The Gambas Mascot/IDE In-Reply-To: <200601251253.05759.gambas@...1...> References: <20060122151327.H25901@...1337...> <200601221836.55204.sourceforge-raindog2@...94...> <20060122164257.S26235@...1337...> <200601251253.05759.gambas@...1...> Message-ID: <20060125042423.M40819@...1337...> On Wed, 25 Jan 2006, Benoit Minisini wrote: > This mail is for Christian Brian Jack. > > I sent it there because I can't answer you directly, as all my mails are > rejected. My provider is black-listed by http://www.nl.sorbs.net. > > Just to tell you that I created your account on the wiki. Your login is > 'c.jack', and your password is the one you wanted. > > Regards, > > -- > Benoit Minisini You may have to use my hotmail address for any future correspondance. It is gau_veldt at ...1341... My junk filter is exclusive so adding something that sticks out like putting GAMBAS in the subject (all caps makes it stands out from words like v1agra, l0an, c1al1s and pr3scr1pt10n among the mail that usually lives there) will make it visible so I can redirect it for normal inbox delivery. I wonder if your provider knows they are on a spam blacklist or does your provider believe spam to be the best thing that happened to the internet (and thus won't deal with the issue)? I had similar problems with sending mail from my own machine. Using my ISP's outgoing email server as a superhost in my MTA configuration fixed the problem. ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian at ...1334... brian at ...1335... brian at ...1336... brian at ...1337... gau_veldt at ...67... ================================================== -- Hi Spambots, my email address is sputnik at ...1334... From sourceforge-raindog2 at ...94... Wed Jan 25 15:29:10 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 25 Jan 2006 09:29:10 -0500 Subject: [Gambas-user] The Gambas Mascot/IDE In-Reply-To: <20060125042423.M40819@...1337...> References: <20060122151327.H25901@...1337...> <200601251253.05759.gambas@...1...> <20060125042423.M40819@...1337...> Message-ID: <200601250929.11194.sourceforge-raindog2@...94...> On Wed January 25 2006 07:56, Christopher Brian Jack wrote: > I wonder if your provider knows they are on a spam blacklist > or does your provider believe spam to be the best thing that > happened to the internet (and thus won't deal with the issue)? Spam blacklists haven't been about actually blocking spam for a long time; they're about net politics and power now. One of your customers misconfigures his mail server and leaves it open for spammers, whether or not it ever actually gets used for spam, or a bunch of your users get the latest Windows worm of the week and turn into spam zombies.... they blacklist your entire netblock and you have to donate to the legal defense fund of a guy getting sued by a spammer (which they refer to as "a charity") in order to have it removed.... eventually. The only reason it's not extortion is that ISP's who use the blacklists are doing so voluntarily. My company used to use blacklists to control spam in combination with Spamassassin, but there were so many false positives resulting in rejected good mail that we ended up outsourcing it to a local guy who maintains his own, more selective blacklists and does heuristic scanning and other stuff (also in addition to SA.) Just having filters set up to block mail automatically for 24 hours when you get spam originating from a particular IP will block the vast majority of spam that the blacklists would have caught, while greatly reducing the false positives. But there are a lot of people running email servers nowadays whose administration experience consists of "Exchange for Dummies", and they don't know any better. Those admins, plus the ones who care more about not getting spam than about getting real email through to their users, are who keep the blacklists in business. Rob From jfabiani at ...1109... Wed Jan 25 16:54:06 2006 From: jfabiani at ...1109... (johnf) Date: Wed, 25 Jan 2006 07:54:06 -0800 Subject: [Gambas-user] this is vague but In-Reply-To: <200601250950.51207.gambas@...1...> References: <200601241557.32830.jfabiani@...1109...> <200601250950.51207.gambas@...1...> Message-ID: <200601250754.06218.jfabiani@...1109...> On Wednesday 25 January 2006 00:50, Benoit Minisini wrote: > On Wednesday 25 January 2006 00:57, johnf wrote: > > Hi, > > > > I have only started getting a few hundred lines of code into one form > > class. So what I'm about to say is not completely tested nor can I repeat > > it for the moment. > > > > While editing one of my form classes I created a coding error. I some > > how forgot a "End If". But the class compiled without error. So I > > thought that the compiler found the required "end if" or something. So I > > added the "end if" and it compiled and worked. Then I made another > > coding with a "Endif" (that's right I typed "Endif"). And the compiler > > again compiled without error. But, it did not run correctly and of > > course debugging did not work correctly either. I did not find it for a > > hour. But like I said it did compile and did not provided any error > > messages. > > > > Is there a question? Not really, just wondering aloud. > > > > John > > If you don't send your project, how can I fix the problem? :-) I would send the project but it is working and at the time of the problem I just fixed it. Like I said this was vague at best and at the time did not realize what was wrong. Of course as the programmer I blamed myself and only later thought it best if I reported the issue. Example of why I say it was vague: 1. Did I always have that "Endif" statement in the code? 2. Does the compiler assume a missing "End If" if the "End If" only contains one "then" statement as in if something then do something 3. Was the error somewhere else - I ended up replacing code from a backup. John John From mconfortino at ...1153... Wed Jan 25 18:58:15 2006 From: mconfortino at ...1153... (Marcelo Confortino) Date: Wed, 25 Jan 2006 14:58:15 -0300 Subject: [Gambas-user] MySQL version Message-ID: <43D7BC37.9090800@...1153...> Hi. I was using Gambas 1.0.13 on Mepis 3.3, installed from a Debian pkg. I used MySQL 4.1 and all worked fine. Now I installed MySQL 5, and my applications say: "Cannot open database: Client does not support authentication protocol requested by server; consider upgrading MySQL client" Is there a way to change the client that Gambas uses, without recompiling the whole thing? I don't have all the headers required for a source installation. Thanks. Marcelo Confortino From rohnny at ...1248... Wed Jan 25 20:39:31 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Wed, 25 Jan 2006 20:39:31 +0100 Subject: [Gambas-user] Q: draw to screen. Message-ID: <43D7D3F3.3050503@...1248...> My Question is, how to draw text to screen using draw command. I have a printing class, shortet in like this. PUBLIC FUNCTION Print(txt as string , prn AS Object) AS Boolean draw.Begin(prn) draw.Font.Name = "Courier" draw.Font.Size = 16 draw.Font.Bold = TRUE draw.Text(txt, 300, 300) Finally draw.End RETURN TRUE CATCH 'Some error with the printer RETURN FALSE end function In main program I use it like this. Dim p as new printclass p.Print("My Text",Printer) That works like a sharm. Now to my problem. How to output this to a form or a picturebox or a scrollview. My thinking is to use the same routine only change the prn to ex. PictureBox1 but that does not work. An example would be nice. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From mtbc at ...1340... Wed Jan 25 21:07:34 2006 From: mtbc at ...1340... (Clarke Pelz) Date: Wed, 25 Jan 2006 11:07:34 -0900 Subject: [Gambas-user] tBeginners Guide To Gambas by JW Rittinghouse In-Reply-To: <9cf0f07b0601250212i56509577g@...627...> References: <82b5035a0601241620k62ef222dt@...627...> <9cf0f07b0601250212i56509577g@...627...> Message-ID: <200601251107.34460.mtbc@...1340...> On Wednesday 25 January 2006 1:12 am, Andrea Grandi wrote: > I tried to open the PDF inside the archive but it's damaged! I'm > trying to open it with Acrobat Reader 5. I had similar difficulties finding a working copy. I found this: http://snipurl.com/lxl6 tar.gz file that included the pdf file and examples. (this shortened link points right to the tar file.) This is the page the tar file is from: http://www.linspire.com/lindows_products_details.php?product_id=23553&pg=specs Hope this helps. I looked over the guide a bit last night and it seems quite comprehensive and exactly what *I* need to get going. The pdf file doesn't allow printing though, so studying it will be a headache. Thanks for the help all. -- -Clarke Pelz Head Brewer, Moose's Tooth Brewing Co. Local beer is fresh beer and fresh beer tastes best! From sourceforge-raindog2 at ...94... Thu Jan 26 01:16:05 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 25 Jan 2006 19:16:05 -0500 Subject: [Gambas-user] MySQL version In-Reply-To: <43D7BC37.9090800@...1153...> References: <43D7BC37.9090800@...1153...> Message-ID: <200601251916.06419.sourceforge-raindog2@...94...> On Wed January 25 2006 12:58, Marcelo Confortino wrote: > "Cannot open database: Client does not support authentication > protocol requested by server; consider upgrading MySQL client" > Is there a way to change the client that Gambas uses, without > recompiling the whole thing? I don't have all the headers > required for a source installation. Like any other MySQL client program, Gambas (or rather, the gb.db.mysql component) is linked against a particular version of libmysqlclient.so. There is no way to change which version of a library a program is linked against without recompiling, or at least relinking, which still requires a source tree if I'm not mistaken. If whoever built Gambas for you (the Debian maintainers, sounds like) was using MySQL 4.1, then you need to either convince them to rebuild it for MySQL 5.0 or install all the headers and stuff you need to rebuild Gambas yourself. Or drop back down to MySQL 4.1 if those are really impossible for you to do. You may be able to use gb.db.odbc to avoid this sort of problem in the future, but I couldn't tell you how. I expect other people will have this problem too, so maybe it's time to figure out a way to build a gb.db.mysql and gb.db.mysql5 as we did with gb.db.sqlite2 and gb.db.sqlite3. Rob From mconfortino at ...1153... Thu Jan 26 01:25:59 2006 From: mconfortino at ...1153... (Marcelo Confortino) Date: Wed, 25 Jan 2006 21:25:59 -0300 Subject: [Gambas-user] MySQL version In-Reply-To: <200601251916.06419.sourceforge-raindog2@...94...> References: <43D7BC37.9090800@...1153...> <200601251916.06419.sourceforge-raindog2@...94...> Message-ID: <43D81717.7070001@...1153...> Rob Kudla wrote: > On Wed January 25 2006 12:58, Marcelo Confortino wrote: > >> "Cannot open database: Client does not support authentication >> protocol requested by server; consider upgrading MySQL client" >> Is there a way to change the client that Gambas uses, without >> recompiling the whole thing? I don't have all the headers >> required for a source installation. >> > > Like any other MySQL client program, Gambas (or rather, the > gb.db.mysql component) is linked against a particular version of > libmysqlclient.so. > > There is no way to change which version of a library a program is > linked against without recompiling, or at least relinking, which > still requires a source tree if I'm not mistaken. If whoever > built Gambas for you (the Debian maintainers, sounds like) was > using MySQL 4.1, then you need to either convince them to > rebuild it for MySQL 5.0 or install all the headers and stuff > you need to rebuild Gambas yourself. Or drop back down to MySQL > 4.1 if those are really impossible for you to do. > > You may be able to use gb.db.odbc to avoid this sort of problem > in the future, but I couldn't tell you how. I expect other > people will have this problem too, so maybe it's time to figure > out a way to build a gb.db.mysql and gb.db.mysql5 as we did with > gb.db.sqlite2 and gb.db.sqlite3. > > Rob > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thank you very much. I think I'll make the effort and try the source build approach. Thanks gain. From sourceforge-raindog2 at ...94... Thu Jan 26 01:55:20 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 25 Jan 2006 19:55:20 -0500 Subject: [Gambas-user] tBeginners Guide To Gambas by JW Rittinghouse In-Reply-To: <200601251107.34460.mtbc@...1340...> References: <82b5035a0601241620k62ef222dt@...627...> <9cf0f07b0601250212i56509577g@...627...> <200601251107.34460.mtbc@...1340...> Message-ID: <200601251955.21279.sourceforge-raindog2@...94...> On Wed January 25 2006 15:07, Clarke Pelz wrote: > going. The pdf file doesn't allow printing though, so > studying it will be a headache. While I support John's endeavor to write a Gambas book, and look forward to buying it when it's published, I don't support DRM in any form. I encourage you to look into Ghostscript for printing encrypted PDF files; google Ghostscript encrypted PDF and you should be all set. You can also use this fairly short Perl script: http://www.cs.cmu.edu/~dst/Adobe/Gallery/pdfdecrypt.pl Since John has licensed his book under the OpenContent license (it says so on every single page of the e-book), it appears to my never-took-a-law-class eyes to be perfectly within your rights to decrypt and print whatever you like. PDF printing restrictions are kind of risible anyway, when the price of paper and ink to print an e-book locally makes buying the actual book seem cheap in comparison. Rob From sourceforge-raindog2 at ...94... Thu Jan 26 02:15:20 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 25 Jan 2006 20:15:20 -0500 Subject: [Gambas-user] Beginner's Guide to Gambas coming January 30 In-Reply-To: <200601251955.21279.sourceforge-raindog2@...94...> References: <82b5035a0601241620k62ef222dt@...627...> <200601251107.34460.mtbc@...1340...> <200601251955.21279.sourceforge-raindog2@...94...> Message-ID: <200601252015.20270.sourceforge-raindog2@...94...> On Wed January 25 2006 19:55, Rob Kudla wrote: > John's endeavor to write a Gambas book, and look forward > to buying it when it's published, Turns out Amazon shows John's book with a release date of January 30, as in next Monday, so get ready to order :) http://www.amazon.com/gp/product/0741429489/qid=1138237654/sr=1-7/ref=sr_1_7/102-3463375-5974530?s=books&v=glance&n=283155 or http://xrl.us/jqgb 26 bucks and change. Free shipping (well, in the US, I suppose.) Get 'em while they're hot.... I did. Rob From gambas at ...1... Thu Jan 26 09:22:33 2006 From: gambas at ...1... (Benoit Minisini) Date: Thu, 26 Jan 2006 09:22:33 +0100 Subject: [Gambas-user] MySQL version In-Reply-To: <200601251916.06419.sourceforge-raindog2@...94...> References: <43D7BC37.9090800@...1153...> <200601251916.06419.sourceforge-raindog2@...94...> Message-ID: <200601260922.33661.gambas@...1...> On Thursday 26 January 2006 01:16, Rob Kudla wrote: > On Wed January 25 2006 12:58, Marcelo Confortino wrote: > > "Cannot open database: Client does not support authentication > > protocol requested by server; consider upgrading MySQL client" > > Is there a way to change the client that Gambas uses, without > > recompiling the whole thing? I don't have all the headers > > required for a source installation. > > Like any other MySQL client program, Gambas (or rather, the > gb.db.mysql component) is linked against a particular version of > libmysqlclient.so. > > There is no way to change which version of a library a program is > linked against without recompiling, or at least relinking, which > still requires a source tree if I'm not mistaken. If whoever > built Gambas for you (the Debian maintainers, sounds like) was > using MySQL 4.1, then you need to either convince them to > rebuild it for MySQL 5.0 or install all the headers and stuff > you need to rebuild Gambas yourself. Or drop back down to MySQL > 4.1 if those are really impossible for you to do. > > You may be able to use gb.db.odbc to avoid this sort of problem > in the future, but I couldn't tell you how. I expect other > people will have this problem too, so maybe it's time to figure > out a way to build a gb.db.mysql and gb.db.mysql5 as we did with > gb.db.sqlite2 and gb.db.sqlite3. > > Rob > Maybe the MySQL 5 client library is compatible with MySQL 4? If so, it will just a matter of adapting and recompiling the current gb.db.mysql driver. Otherwise, something like gb.db.sqlite* must be done. Regards, -- Benoit Minisini From jriolexp at ...43... Fri Jan 27 05:48:49 2006 From: jriolexp at ...43... (j. riolex pinuela) Date: Thu, 26 Jan 2006 20:48:49 -0800 (PST) Subject: [Gambas-user] Message Box Default Button Message-ID: <20060127044849.48489.qmail@...1342...> Hi, I've been wondering, how can I set the default button in a Message box without rearranging the button. For example, in a message box, buttons are arrange such as [YES] [NO], in such case the default is [YES]. If I want NO to be the default I have to arrange it as such {NO] {YES] which will be inconsistent (also confusing) with othe message box. Any enlightenment regarding this issue is much appreciated. Thanks, jriolexp --------------------------------- What are the most popular cars? Find out at Yahoo! Autos -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohnny at ...1248... Fri Jan 27 08:30:35 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Fri, 27 Jan 2006 08:30:35 +0100 Subject: [Gambas-user] Re:Message Box Default Button Message-ID: <43D9CC1B.5090905@...1248...> You should use default. Button1.Text ="Hello" Button1.Enabled = True Button1.Default = True But if your looking for tabindex there is'nt any. You need to delete the items and then create them allover :[ Hopefully it will come in a later version. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From gambas at ...1... Fri Jan 27 08:31:31 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Jan 2006 08:31:31 +0100 Subject: [Gambas-user] Message Box Default Button In-Reply-To: <20060127044849.48489.qmail@...1342...> References: <20060127044849.48489.qmail@...1342...> Message-ID: <200601270831.31710.gambas@...1...> On Friday 27 January 2006 05:48, j. riolex pinuela wrote: > Hi, > > I've been wondering, how can I set the default button in a Message box > without rearranging the button. For example, in a message box, buttons are > arrange such as [YES] [NO], in such case the default is [YES]. If I want NO > to be the default I have to arrange it as such {NO] {YES] which will be > inconsistent (also confusing) with othe message box. Any enlightenment > regarding this issue is much appreciated. > > Thanks, > jriolexp > You are not the first person that complains about that :-) I think I should find something for letting the user choose the default button... Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Jan 27 08:34:00 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 27 Jan 2006 02:34:00 -0500 Subject: [Gambas-user] Re:Message Box Default Button In-Reply-To: <43D9CC1B.5090905@...1248...> References: <43D9CC1B.5090905@...1248...> Message-ID: <200601270234.01249.sourceforge-raindog2@...94...> On Fri January 27 2006 02:30, Rohnny Stormo wrote: > But if your looking for tabindex there is'nt any. You need to > delete the items and then create them allover :[ He was actually talking about the buttons in the Message class, but you don't need to delete controls on a form to change their tab order.... right click and Arrange/Send to Back (or Front), or use the Home and End keys to adjust their z-order. (The only bummer is that you can't test the tab order without compiling and running the program.) I wrote a program that converts my Gambas forms to HTML/CSS forms, and would have been lost without the ability to fix the tab order. Rob From jfabiani at ...1109... Fri Jan 27 09:41:36 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 27 Jan 2006 00:41:36 -0800 Subject: [Gambas-user] Trouble connecting to postgres 8.0 Message-ID: <200601270041.37030.jfabiani@...1109...> Hi, Just wondering if anyone is using postgres 8.0 with 1.9.23. I'm having trouble connecting. I'm able to connect with other versions but can't for some reason connect to version 8.0. I don't think it has anything to do with permissions because I can connect using psql as the same user. I only have the issue with gambas as far as I can tell. John From rohnny at ...1248... Fri Jan 27 12:30:10 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Fri, 27 Jan 2006 12:30:10 +0100 Subject: [Gambas-user] Re:Message Box Default Button Message-ID: <43DA0442.2020002@...1248...> But if your looking for tabindex there is'nt any. You need to <> delete the items and then create them allover :[ References: <43DA0442.2020002@...1248...> Message-ID: <20060127043528.H51395@...1337...> On Fri, 27 Jan 2006, Rohnny Stormo wrote: > > <2006-01-26 23:44 > < > <> But if your looking for tabindex there is'nt any. You need to > <> delete the items and then create them allover :[ > > < > > Thanks for Clearing that one out. It's did actually work ;) > > Would be nice to have it as a property So it can be set without > compiling. Then it > would be easy to change it on the run if that should be needed. An actual Z-position property might be something to consider as well with 0 being rearmost and higher numbers being more to the front. The form instanciation logic then just needs to sort the controls in either a descending or ascending ordered list (based on whether the first control created in the underlying GUIlib is frontmost or rearmost) and then instantiate the controls in appropriate order. This would be more than VB or even VC++ (Visual Studio 6 I used at one point) offered for Z-control. From jriolexp at ...43... Fri Jan 27 15:07:32 2006 From: jriolexp at ...43... (j. riolex pinuela) Date: Fri, 27 Jan 2006 06:07:32 -0800 (PST) Subject: [Gambas-user] Re:Message Box Default Button In-Reply-To: <43D9CC1B.5090905@...1248...> Message-ID: <20060127140732.48100.qmail@...1344...> Rohnny Stormo wrote: You should use default. Button1.Text ="Hello" Button1.Enabled = True Button1.Default = True But if your looking for tabindex there is'nt any. You need to delete the items and then create them allover :[ Hopefully it will come in a later version. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no Thanks everybody for such a prompt reply. Anyway to clarify things, I am refering to Message class, that is, for example, Message.Delete. I have to rearrange the button so that it will be [NO] [YES] while on Message.Question it would be [YES] [NO] arrangement. Let face it, user sometimes get the nasty habit of pressing enter key, while others just clicking mouse button at the location they are used to without even reading the label on a message box. I am currently working on a simple work around this issue: In Module1 PUBLIC iMsgBoxValue as Integer In Message Form button event PUBLIC Sub Buttin1_Click() ' yes button Module1.iMsgBoxValue=1 Me.Close END PUBLIC Sub Buttin2_Click() ' no button - default Module1.iMsgBoxValue=2 Me.Close END In main form: ... frmMessage.Showmodal IF iMsgBoxValue=1 then dothis ELSEIF iMsgBoxValue=2 then dothat ENDIF This is a crude work around but it can work. Hope this can help. Things could be simpler though. One more thing: DateAdd does not seem to work on version 1.0.13. I get "Unknown Identifier: DateAdd" error. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- What are the most popular cars? Find out at Yahoo! Autos -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Fri Jan 27 17:02:12 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 27 Jan 2006 11:02:12 -0500 Subject: [Gambas-user] Re:Message Box Default Button In-Reply-To: <43DA0442.2020002@...1248...> References: <43DA0442.2020002@...1248...> Message-ID: <200601271102.12541.sourceforge-raindog2@...94...> On Fri January 27 2006 06:30, Rohnny Stormo wrote: > Would be nice to have it as a property So it can be set > without compiling. Then it > would be easy to change it on the run if that should be > needed. Well, while it's not as helpful, all controls in Gambas do have Raise and Lower methods. So you can't know what their z-order is, but you can change it ;) Rob From jfabiani at ...1109... Fri Jan 27 18:01:21 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 27 Jan 2006 09:01:21 -0800 Subject: [Gambas-user] Trouble connecting to postgres 8.0 In-Reply-To: <200601270041.37030.jfabiani@...1109...> References: <200601270041.37030.jfabiani@...1109...> Message-ID: <200601270901.21445.jfabiani@...1109...> On Friday 27 January 2006 00:41, johnf wrote: > Hi, > Just wondering if anyone is using postgres 8.0 with 1.9.23. I'm having > trouble connecting. I'm able to connect with other versions but can't for > some reason connect to version 8.0. I don't think it has anything to do > with permissions because I can connect using psql as the same user. I only > have the issue with gambas as far as I can tell. > > John I have mis spoke. Gambas is connecting. The issue is it loses the connection. I traced this down and discovered I could make an exec call on the connection several times in a row and then suddenly lose the connection. I'm guessing there is some sort of trouble with postgres and NOT gambas. I'll re-install sometime today. The funny thing is pgadminIII does not lose the connection or so I think. John From brian at ...1334... Fri Jan 27 18:58:06 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 09:58:06 -0800 (PST) Subject: [Gambas-user] Trouble connecting to postgres 8.0 In-Reply-To: <200601270901.21445.jfabiani@...1109...> References: <200601270041.37030.jfabiani@...1109...> <200601270901.21445.jfabiani@...1109...> Message-ID: <20060127094509.F54033@...1337...> On Fri, 27 Jan 2006, johnf wrote: > Date: Fri, 27 Jan 2006 09:01:21 -0800 > From: johnf > Reply-To: gambas-user at lists.sourceforge.net > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Trouble connecting to postgres 8.0 > > On Friday 27 January 2006 00:41, johnf wrote: > > Hi, > > Just wondering if anyone is using postgres 8.0 with 1.9.23. I'm having > > trouble connecting. I'm able to connect with other versions but can't for > > some reason connect to version 8.0. I don't think it has anything to do > > with permissions because I can connect using psql as the same user. I only > > have the issue with gambas as far as I can tell. > > > > John > I have mis spoke. Gambas is connecting. The issue is it loses the > connection. I traced this down and discovered I could make an exec call on > the connection several times in a row and then suddenly lose the connection. > I'm guessing there is some sort of trouble with postgres and NOT gambas. > I'll re-install sometime today. The funny thing is pgadminIII does not lose > the connection or so I think. > > John I'm wondering if maybe the connection is timing out? Try running a concurrent form with a timer in it that beats in tenths of seconds (set TimerObject.Delay=100) and display the value in a label. Make a public method ResetElapsed() (sets beatcount to zero and enables timerobject) you can call immediately once connection is established and make another public method StopTimer (that just sets timerobject disabled) and have it called when you lose the connection. If the connection dies at around the same elapsed beat count (within a few tenths or so [of a second]) then chances are good the connection has a maximum lifetime or there is a keepalive signal the native library is not issuing to renew the database connection. ================================================== Christopher BRIAN Jack aka "Gau of the Veldt" ================================================== brian _AT_ brians-anime _DOT_ com brian _AT_ animemayhem _DOT_ com brian _AT_ nall _DOT brians-anime _DOT_ com brian _AT_ ruby _DOT brians-anime _DOT_ com gau_veldt _AT_ hotmail _DOT_ com ================================================== -- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Fri Jan 27 19:26:59 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 10:26:59 -0800 (PST) Subject: [Gambas-user] (no subject) Message-ID: <20060127100503.D54308@...1337...> I was just on the subject of timer controls on another response and a situation that may be of importance to me is how well code can keep up with the timer. I know slow stuff like graphics rendering is going to play havoc with timing so I know that I need to decouple the beat counter from the scheduling code. I believe the easiest way is for the scheduling to figure out the next beat index it needs notification on and have the high-speed beatcounter only raise a schedule event when the target beat is reached. To get true concurrency would the schedule event need to be in a separate class. The best I can glean out of the documentation is that an event declaration of one class cannot be triggered by a separate class (mind you a LOT of documentation is incomplete). What is the best way to go about this? I also need another level of separation. The game dynamics update runs at a fixed rate but again is decoupled with rendering capacity. This means the game logic runs at a constant rate despite a weak link in potential rednering (eg: operations on Pictures/Images like alpha blends -- thinking on either unacellerated or systems which do not support acelleration available on the installed hardware, a constant problem under Linux -- which is another missing image/picture operation -- it's supported but only if the format is PNG or GIF and told to enable transparency and images don't do it at all AFAIK - so if I was fading graphics in and out I would need prerendered "alpha"ized slices of each image and draw them in sequence to do fade ins or fade outs -- umm, but what if I want to PictureObject.Grab, and fade the image in the DrawingArea out?) Any suggestions here? Maybe a gb.imageops.lib is needed? But DrawPictureWithAlpha(alpha,imageobject,x,y,imgx,imgy,imgw,imgh) DrawImageWithAlpha(alpha,imageobject,x,y,imgx,imgy,imgw,imgh) Would need to be added to the current Image and Picture objects so that you can use blending levels in order to execute "fade" type effects (it can also do higlighting type effects as well). .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Fri Jan 27 19:31:53 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 10:31:53 -0800 (PST) Subject: [Gambas-user] Timer controls and other timing-related issues Message-ID: <20060127103038.G54426@...1337...> <<>> I was just on the subject of timer controls on another response and a situation that may be of importance to me is how well code can keep up with the timer. I know slow stuff like graphics rendering is going to play havoc with timing so I know that I need to decouple the beat counter from the scheduling code. I believe the easiest way is for the scheduling to figure out the next beat index it needs notification on and have the high-speed beatcounter only raise a schedule event when the target beat is reached. To get true concurrency would the schedule event need to be in a separate class. The best I can glean out of the documentation is that an event declaration of one class cannot be triggered by a separate class (mind you a LOT of documentation is incomplete). What is the best way to go about this? I also need another level of separation. The game dynamics update runs at a fixed rate but again is decoupled with rendering capacity. This means the game logic runs at a constant rate despite a weak link in potential rednering (eg: operations on Pictures/Images like alpha blends -- thinking on either unacellerated or systems which do not support acelleration available on the installed hardware, a constant problem under Linux -- which is another missing image/picture operation -- it's supported but only if the format is PNG or GIF and told to enable transparency and images don't do it at all AFAIK - so if I was fading graphics in and out I would need prerendered "alpha"ized slices of each image and draw them in sequence to do fade ins or fade outs -- umm, but what if I want to PictureObject.Grab, and fade the image in the DrawingArea out?) Any suggestions here? Maybe a gb.imageops.lib is needed? But DrawPictureWithAlpha(alpha,imageobject,x,y,imgx,imgy,imgw,imgh) DrawImageWithAlpha(alpha,imageobject,x,y,imgx,imgy,imgw,imgh) Would need to be added to the current Image and Picture objects so that you can use blending levels in order to execute "fade" type effects (it can also do higlighting type effects as well). .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From sourceforge-raindog2 at ...94... Fri Jan 27 20:25:53 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 27 Jan 2006 14:25:53 -0500 Subject: [Gambas-user] timer overlaps In-Reply-To: <20060127100503.D54308@...1337...> References: <20060127100503.D54308@...1337...> Message-ID: <200601271425.54258.sourceforge-raindog2@...94...> On Fri January 27 2006 13:26, Christopher Brian Jack wrote: > I was just on the subject of timer controls on another > response and a situation that may be of importance to me is > how well code can keep up with the timer. My solution is just to set a class-wide variable called something like CurrentlyInTimer to true at the start of the timer event handler, and back to false when the handler returns, and an if statement at the very beginning that just returns immediately if CurrentlyInTimer is set. Rob From gambas at ...1... Fri Jan 27 21:36:57 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Jan 2006 21:36:57 +0100 Subject: [Gambas-user] Re:Message Box Default Button In-Reply-To: <200601271102.12541.sourceforge-raindog2@...94...> References: <43DA0442.2020002@...1248...> <200601271102.12541.sourceforge-raindog2@...94...> Message-ID: <200601272136.57882.gambas@...1...> On Friday 27 January 2006 17:02, Rob Kudla wrote: > On Fri January 27 2006 06:30, Rohnny Stormo wrote: > > Would be nice to have it as a property So it can be set > > without compiling. Then it > > would be easy to change it on the run if that should be > > needed. > > Well, while it's not as helpful, all controls in Gambas do have > Raise and Lower methods. So you can't know what their z-order > is, but you can change it ;) > > Rob > I think it's because there is nothing in X-Window to know the Z-order of a window. I can be wrong. -- Benoit Minisini From gambas at ...1... Fri Jan 27 21:41:49 2006 From: gambas at ...1... (Benoit Minisini) Date: Fri, 27 Jan 2006 21:41:49 +0100 Subject: [Gambas-user] Timer controls and other timing-related issues In-Reply-To: <20060127103038.G54426@...1337...> References: <20060127103038.G54426@...1337...> Message-ID: <200601272141.50098.gambas@...1...> On Friday 27 January 2006 19:31, Christopher Brian Jack wrote: > <<>> > > I was just on the subject of timer controls on another response and a > situation that may be of importance to me is how well code can keep up > with the timer. > > I know slow stuff like graphics rendering is going to play havoc with > timing so I know that I need to decouple the beat counter from the > scheduling code. I believe the easiest way is for the scheduling to > figure out the next beat index it needs notification on and have the > high-speed beatcounter only raise a schedule event when the target beat is > reached. To get true concurrency would the schedule event need to be in a > separate class. The best I can glean out of the documentation is that an > event declaration of one class cannot be triggered by a separate class > (mind you a LOT of documentation is incomplete). What is the best way to > go about this? > > I also need another level of separation. The game dynamics update runs at > a fixed rate but again is decoupled with rendering capacity. This means > the game logic runs at a constant rate despite a weak link in potential > rednering (eg: operations on Pictures/Images like alpha blends -- thinking > on either unacellerated or systems which do not support acelleration > available on the installed hardware, a constant problem under Linux -- > which is another missing image/picture operation -- it's supported but > only if the format is PNG or GIF and told to enable transparency and > images don't do it at all AFAIK - so if I was fading graphics in and out I > would need prerendered "alpha"ized slices of each image and draw them in > sequence to do fade ins or fade outs -- umm, but what if I want to > PictureObject.Grab, and fade the image in the DrawingArea out?) > > Any suggestions here? > Maybe a gb.imageops.lib is needed? > > But > DrawPictureWithAlpha(alpha,imageobject,x,y,imgx,imgy,imgw,imgh) > DrawImageWithAlpha(alpha,imageobject,x,y,imgx,imgy,imgw,imgh) > > Would need to be added to the current Image and Picture objects so that > you can use blending levels in order to execute "fade" type effects (it > can also do higlighting type effects as well). > The next step of graphics under Linux and X-Window is not yet reached. By the next step, I mean full support for accelerated alpha-blending in X11 drivers, and stable QT-4 and Cairo libraries. As soon as the QT and GTK+ components will use the new rendering models based on QT-4 and Cairo, you will have all transparent drawings you need. At the moment, I don't have the time to do that, but the support for these new rendering model is not very good (things seems to be very slow most of the time). In a few words, we must be patient... :-) Anyway, a gambas component that can do effects on image stored in memory could be interesting. Is there a good library for that anywhere ? Regards, -- Benoit Minisini From brian at ...1334... Fri Jan 27 22:16:22 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 13:16:22 -0800 (PST) Subject: [Gambas-user] timer overlaps In-Reply-To: <200601271425.54258.sourceforge-raindog2@...94...> References: <20060127100503.D54308@...1337...> <200601271425.54258.sourceforge-raindog2@...94...> Message-ID: <20060127130120.K54927@...1337...> On Fri, 27 Jan 2006, Rob Kudla wrote: > On Fri January 27 2006 13:26, Christopher Brian Jack wrote: > > I was just on the subject of timer controls on another > > response and a situation that may be of importance to me is > > how well code can keep up with the timer. > > My solution is just to set a class-wide variable called something > like CurrentlyInTimer to true at the start of the timer event > handler, and back to false when the handler returns, and an if > statement at the very beginning that just returns immediately if > CurrentlyInTimer is set. So you would be suggestion something like this? Public Sub myTimer_Timer() ' increment master elapsed beat count INC $beatCount ' increment beats since last client call INC $scheduleCount ' call handler if not already in a call IF NOT $handlerActive THEN ' if enough client-reqested beats elapsed ' run his handler IF $scheduleCount >= $scheduleNext THEN ' flag on (avoid recursion) $handlerActive = 1 ' dock the last client-requested count ' this total is running so we don't miss ' client calls (this assumes the client will ' normally keep up/catch up and that the client ' only periodically falls behind) $scheduleCount -= $scheduleNext 'call client handler 'he will return beats to wait 'before calling him again $scheduleNext = Call($client, "Scheduler") ' handler done so flag off $handlerActive = 0 END IF END IF End Sub .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Fri Jan 27 22:23:05 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 13:23:05 -0800 (PST) Subject: [Gambas-user] Keyboard Events: DrawingArea Message-ID: <20060127132044.S54927@...1337...> I've noticed the DrawingArea can handle KeyPress and KeyRelease but I can't find ony documentation on how to determine which key is involved with the event and if it has any modifiers (like CTRL, SHIFT, ALT, etc). How is this done? .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From sourceforge-raindog2 at ...94... Fri Jan 27 23:26:38 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Fri, 27 Jan 2006 17:26:38 -0500 Subject: [Gambas-user] timer overlaps In-Reply-To: <20060127130120.K54927@...1337...> References: <20060127100503.D54308@...1337...> <200601271425.54258.sourceforge-raindog2@...94...> <20060127130120.K54927@...1337...> Message-ID: <200601271726.38621.sourceforge-raindog2@...94...> On Fri January 27 2006 16:16, Christopher Brian Jack wrote: > So you would be suggestion something like this? > Public Sub myTimer_Timer() I personally have only ever delayed redrawing the screen when I ran out of time, but if your client operations may take more than a timer tick to complete too, sure, you can do that. Rob From nando_f at ...951... Fri Jan 27 23:42:58 2006 From: nando_f at ...951... (nando) Date: Fri, 27 Jan 2006 17:42:58 -0500 Subject: [Gambas-user] timer overlaps In-Reply-To: <20060127130120.K54927@...1337...> References: <20060127100503.D54308@...1337...> <200601271425.54258.sourceforge-raindog2@...94...> <20060127130120.K54927@...1337...> Message-ID: <20060127222749.M32842@...951...> In some things I've done, I use the timer this way... Private GlobalTick AS INTEGER 'counts up one every Timer0 tick. Public Sub Timer0_Timer() 'This is the master timer set at 100 ms (10/sec) INC GlobalTick End Sub Public Sub Timer1_Timer() Timer1.Enable = False 'do your code here (graphics, computation, etc) Timer1.Value = 'use the GobalTick to determine how long you want to delay to the next Timer1 tick for repeat of graphics) GlobalTick = 0 Timer1.Enable = True End Sub This way, If I desire 4 renders per second, that means that Timer1.Value has to be (250 - (4 - GlobalTick) * 100) without going below zero. This is the delay to the next Timer1 Event. The 250 above is 1000ms / 4 renders (for each second). You can easily set the processes per second you desire. You can easily find out the max your system can do because the delay will be zero (or negative) -Fernando ---------- Original Message ----------- From: Christopher Brian Jack To: gambas-user at lists.sourceforge.net Sent: Fri, 27 Jan 2006 13:16:22 -0800 (PST) Subject: Re: [Gambas-user] timer overlaps > On Fri, 27 Jan 2006, Rob Kudla wrote: > > > On Fri January 27 2006 13:26, Christopher Brian Jack wrote: > > > I was just on the subject of timer controls on another > > > response and a situation that may be of importance to me is > > > how well code can keep up with the timer. > > > > My solution is just to set a class-wide variable called something > > like CurrentlyInTimer to true at the start of the timer event > > handler, and back to false when the handler returns, and an if > > statement at the very beginning that just returns immediately if > > CurrentlyInTimer is set. > > So you would be suggestion something like this? > > Public Sub myTimer_Timer() > ' increment master elapsed beat count > INC $beatCount > ' increment beats since last client call > INC $scheduleCount > ' call handler if not already in a call > IF NOT $handlerActive THEN > ' if enough client-reqested beats elapsed > ' run his handler > IF $scheduleCount >= $scheduleNext THEN > ' flag on (avoid recursion) > $handlerActive = 1 > ' dock the last client-requested count > ' this total is running so we don't miss > ' client calls (this assumes the client will > ' normally keep up/catch up and that the client > ' only periodically falls behind) > $scheduleCount -= $scheduleNext > 'call client handler > 'he will return beats to wait > 'before calling him again > $scheduleNext = Call($client, "Scheduler") > ' handler done so flag off > $handlerActive = 0 > END IF > END IF > End Sub > > .=================================================. > | Christopher BRIAN Jack aka "Gau of the Veldt" | > +=================================================' > | brian _AT_ brians-anime _DOT_ com > | brian _AT_ animemayhem _DOT_ com > | brian _AT_ nall.brians-anime _DOT_ com > | brian _AT_ ruby.brians-anime _DOT_ com > | gau_veldt _AT_ hotmail _DOT_ com > `=================================================- > Hi Spambots, my email address is sputnik at ...1334... > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From brian at ...1334... Sat Jan 28 01:44:07 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 16:44:07 -0800 (PST) Subject: [Gambas-user] timer overlaps In-Reply-To: <200601271726.38621.sourceforge-raindog2@...94...> References: <20060127100503.D54308@...1337...> <200601271425.54258.sourceforge-raindog2@...94...> <20060127130120.K54927@...1337...> <200601271726.38621.sourceforge-raindog2@...94...> Message-ID: <20060127162923.Q55623@...1337...> On Fri, 27 Jan 2006, Rob Kudla wrote: > On Fri January 27 2006 16:16, Christopher Brian Jack wrote: > > So you would be suggestion something like this? > > Public Sub myTimer_Timer() > > I personally have only ever delayed redrawing the screen when I > ran out of time, but if your client operations may take more > than a timer tick to complete too, sure, you can do that. > > Rob There's nesting in them there hills. The client of the scheduler (done by passing ME to a BeginScheduling() method I wrote called from the class desiring scheduling) has a method "Scheduler" called in the class who passed itself to the argument of BeginScheduling(). It was good to find a way to dynamicall do method calls otherwise a lot more chicanery would have been needed. I think I'll create another timer specifically for rendering attachment. Then I need to think about how the game data is going to cope with asynchronous attempts to render. Sounds like the game logic needs a Snapshot method to make an instant world-state snapshot from existing data but in a copy so that the renderer's copy will not be affected by possibly higher-paced game logic updates. When the renderer starts a pass it will make a snapshot call to get a "frame" of the game logic to display to the screen (actually a DrawingArea). .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Sat Jan 28 01:46:43 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 16:46:43 -0800 (PST) Subject: [Gambas-user] timer overlaps In-Reply-To: <20060127222749.M32842@...951...> References: <20060127100503.D54308@...1337...> <200601271425.54258.sourceforge-raindog2@...94...> <20060127130120.K54927@...1337...> <20060127222749.M32842@...951...> Message-ID: <20060127164544.O55623@...1337...> I live in the complicated... However that's the nice thing about classes... Get it right once and you end up with a reusable solution to the problem. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... On Fri, 27 Jan 2006, nando wrote: > Date: Fri, 27 Jan 2006 17:42:58 -0500 > From: nando > Reply-To: gambas-user at lists.sourceforge.net > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] timer overlaps > > In some things I've done, I use the timer this way... > > Private GlobalTick AS INTEGER 'counts up one every Timer0 tick. > > Public Sub Timer0_Timer() 'This is the master timer set at 100 ms (10/sec) > INC GlobalTick > End Sub > > > Public Sub Timer1_Timer() > > Timer1.Enable = False > > 'do your code here (graphics, computation, etc) > > Timer1.Value = 'use the GobalTick to determine how long you want > to delay to the next Timer1 tick for repeat of graphics) > GlobalTick = 0 > Timer1.Enable = True > End Sub > > This way, If I desire 4 renders per second, that means that Timer1.Value > has to be (250 - (4 - GlobalTick) * 100) without going below zero. > This is the delay to the next Timer1 Event. > The 250 above is 1000ms / 4 renders (for each second). > > You can easily set the processes per second you desire. > You can easily find out the max your system can do because > the delay will be zero (or negative) > > -Fernando > > ---------- Original Message ----------- > From: Christopher Brian Jack > To: gambas-user at lists.sourceforge.net > Sent: Fri, 27 Jan 2006 13:16:22 -0800 (PST) > Subject: Re: [Gambas-user] timer overlaps > > > On Fri, 27 Jan 2006, Rob Kudla wrote: > > > > > On Fri January 27 2006 13:26, Christopher Brian Jack wrote: > > > > I was just on the subject of timer controls on another > > > > response and a situation that may be of importance to me is > > > > how well code can keep up with the timer. > > > > > > My solution is just to set a class-wide variable called something > > > like CurrentlyInTimer to true at the start of the timer event > > > handler, and back to false when the handler returns, and an if > > > statement at the very beginning that just returns immediately if > > > CurrentlyInTimer is set. > > > > So you would be suggestion something like this? > > > > Public Sub myTimer_Timer() > > ' increment master elapsed beat count > > INC $beatCount > > ' increment beats since last client call > > INC $scheduleCount > > ' call handler if not already in a call > > IF NOT $handlerActive THEN > > ' if enough client-reqested beats elapsed > > ' run his handler > > IF $scheduleCount >= $scheduleNext THEN > > ' flag on (avoid recursion) > > $handlerActive = 1 > > ' dock the last client-requested count > > ' this total is running so we don't miss > > ' client calls (this assumes the client will > > ' normally keep up/catch up and that the client > > ' only periodically falls behind) > > $scheduleCount -= $scheduleNext > > 'call client handler > > 'he will return beats to wait > > 'before calling him again > > $scheduleNext = Call($client, "Scheduler") > > ' handler done so flag off > > $handlerActive = 0 > > END IF > > END IF > > End Sub > > > > .=================================================. > > | Christopher BRIAN Jack aka "Gau of the Veldt" | > > +=================================================' > > | brian _AT_ brians-anime _DOT_ com > > | brian _AT_ animemayhem _DOT_ com > > | brian _AT_ nall.brians-anime _DOT_ com > > | brian _AT_ ruby.brians-anime _DOT_ com > > | gau_veldt _AT_ hotmail _DOT_ com > > `=================================================- > > Hi Spambots, my email address is sputnik at ...1334... > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as- > > us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From brian at ...1334... Sat Jan 28 03:01:29 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 18:01:29 -0800 (PST) Subject: [Gambas-user] Keypress events: what key??? Message-ID: <20060127180032.V55717@...1337...> The keypress/keyrelease events do not take arguments so how does a control receiving this event figure out which key is involved with the event? .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From mandrakeron at ...43... Sat Jan 28 03:36:16 2006 From: mandrakeron at ...43... (Ron Gottstein) Date: Fri, 27 Jan 2006 18:36:16 -0800 (PST) Subject: [Gambas-user] GTK and printing to printer Message-ID: <20060128023616.37038.qmail@...1345...> I must be overlooking something. If I use GTK components, can I print to a printer? Help please. Ron __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From brian at ...1334... Sat Jan 28 04:04:49 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 19:04:49 -0800 (PST) Subject: [Gambas-user] (no subject) Message-ID: <20060127190054.H56012@...1337...> I found out about the Key class the hard way by grepping all gambas sources for KeyPress and finding one that actually needs to know about the key(s) involved. Perhaps the Key class should be a "See-Also" in the documentation for "KeyPress (Event)"? Or better yet the event description should indicate "Information about the key(s) involved may be obtained using the *Key Class" (where * means Key is a link to its class information which /is/ in the docs but not connected in a way that helps such as in the docs explaining the KeyPress/KeyRelease events) .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From jfabiani at ...1109... Sat Jan 28 05:39:01 2006 From: jfabiani at ...1109... (johnf) Date: Fri, 27 Jan 2006 20:39:01 -0800 Subject: [Gambas-user] Keypress events: what key??? In-Reply-To: <20060127180032.V55717@...1337...> References: <20060127180032.V55717@...1337...> Message-ID: <200601272039.01266.jfabiani@...1109...> On Friday 27 January 2006 18:01, Christopher Brian Jack wrote: > The keypress/keyrelease events do not take arguments so how does a control > receiving this event figure out which key is involved with the event? > I'm not to sure I understand your question so this maybe completely wrong. First the there is a demo of using the keypress event that comes with Gambas. Within the event you use the "key.code" that is available to the code within the event as in IF Key.Code = KEY.Tab THEN do something..... So I guess you can say that the system supplies the parameter that is used within the event. John From brian at ...1334... Sat Jan 28 06:15:38 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Fri, 27 Jan 2006 21:15:38 -0800 (PST) Subject: [Gambas-user] Keypress events: what key??? In-Reply-To: <200601272039.01266.jfabiani@...1109...> References: <20060127180032.V55717@...1337...> <200601272039.01266.jfabiani@...1109...> Message-ID: <20060127211028.O56168@...1337...> > > So I guess you can say that the system supplies the parameter that is used > within the event. > > John It's just not supplied explicitly and the documentation doesn't make the appropriate cross-references between the static Key class and KeyPress events: Event KeyPress() Raised when a control in focus detects a key or key combination pressed. There's no link to the Key section of the manual which is what made it difficult to find the usage. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From gambas at ...1... Sat Jan 28 09:37:34 2006 From: gambas at ...1... (Benoit Minisini) Date: Sat, 28 Jan 2006 09:37:34 +0100 Subject: [Gambas-user] Keypress events: what key??? In-Reply-To: <20060127211028.O56168@...1337...> References: <20060127180032.V55717@...1337...> <200601272039.01266.jfabiani@...1109...> <20060127211028.O56168@...1337...> Message-ID: <200601280937.35018.gambas@...1...> On Saturday 28 January 2006 06:15, Christopher Brian Jack wrote: > > So I guess you can say that the system supplies the parameter that is > > used within the event. > > > > John > > It's just not supplied explicitly and the documentation doesn't make the > appropriate cross-references between the static Key class and KeyPress > events: > > Event KeyPress() > > Raised when a control in focus detects a key or key combination pressed. > > > > There's no link to the Key section of the manual which is what made it > difficult to find the usage. > Fixed :-) -- Benoit Minisini From a.grandi at ...626... Sat Jan 28 16:50:48 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Sat, 28 Jan 2006 16:50:48 +0100 Subject: [Gambas-user] What do I need to distribute with a gambas application? Message-ID: <9cf0f07b0601280750x6a78193h@...627...> Hi, When I create an application with Gambas, then I want to distribute it, what packages do I have to distribute with the application? I tried using Create Installation Package but at the end it gives me an error that says "Cannot create package". Thanks for your help! From sourceforge-raindog2 at ...94... Sat Jan 28 18:34:21 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 28 Jan 2006 12:34:21 -0500 Subject: [Gambas-user] What do I need to distribute with a gambas application? In-Reply-To: <9cf0f07b0601280750x6a78193h@...627...> References: <9cf0f07b0601280750x6a78193h@...627...> Message-ID: <200601281234.21717.sourceforge-raindog2@...94...> On Sat January 28 2006 10:50, Andrea Grandi wrote: > When I create an application with Gambas, then I want to > distribute it, what packages do I have to distribute with the > application? End users need the Gambas interpreter plus all the components your Gambas program uses. On Mandriva (using my packages... dunno about Mandriva's own) they'd need the gambas-runtime package, plus at least gambas-gb-qt if they're graphical apps, etc. > I tried using Create Installation Package but at the end it > gives me an error that says "Cannot create package". The "Create Installation Package" stuff doesn't work under the 1.9 series. I should probably tweak it and post a patch, though I can only do the RPM side of it (and I think making an RPM and using alien on it is the wrong approach for .deb packages anyway.) Rob From a.grandi at ...626... Sat Jan 28 19:01:42 2006 From: a.grandi at ...626... (Andrea Grandi) Date: Sat, 28 Jan 2006 19:01:42 +0100 Subject: [Gambas-user] What do I need to distribute with a gambas application? In-Reply-To: <200601281234.21717.sourceforge-raindog2@...94...> References: <9cf0f07b0601280750x6a78193h@...627...> <200601281234.21717.sourceforge-raindog2@...94...> Message-ID: <9cf0f07b0601281001s4ad1db01y@...627...> Hi, > End users need the Gambas interpreter plus all the components > your Gambas program uses. On Mandriva (using my packages... > dunno about Mandriva's own) they'd need the gambas-runtime > package, plus at least gambas-gb-qt if they're graphical apps, uhm.... the problem is that I use a devel version (I use the 1.9.23 so I can help in testing Gambas too). > The "Create Installation Package" stuff doesn't work under the > 1.9 series. I should probably tweak it and post a patch, though > I can only do the RPM side of it (and I think making an RPM and > using alien on it is the wrong approach for .deb packages > anyway.) yes... it wouldn't be a good idea :) Ok, I'll wait for a fix :) Thanks anyway! From dcamposf at ...626... Sat Jan 28 21:15:54 2006 From: dcamposf at ...626... (Daniel Campos) Date: Sat, 28 Jan 2006 21:15:54 +0100 Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <20060128023616.37038.qmail@...1345...> References: <20060128023616.37038.qmail@...1345...> Message-ID: <7259b5ae0601281215r75c624e1q@...627...> Not yet, I've not implemented the printer class. In fact I'll need a separate component as printers are part of the Gnome libraries, not the GTK libraries. Regards, D. Campos 2006/1/28, Ron Gottstein : > > I must be overlooking something. If I use GTK > components, can I print to a printer? > > Help please. > > Ron > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at ...1334... Sun Jan 29 06:48:09 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sat, 28 Jan 2006 21:48:09 -0800 (PST) Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <7259b5ae0601281215r75c624e1q@...627...> References: <20060128023616.37038.qmail@...1345...> <7259b5ae0601281215r75c624e1q@...627...> Message-ID: <20060128214548.W60942@...1337...> On Sat, 28 Jan 2006, Daniel Campos wrote: > Not yet, I've not implemented the printer class. In fact I'll need a > separate component as printers are part of the Gnome libraries, not the GTK > libraries. > > Regards, > > D. Campos What about using something like CUPS (Common Unix Printing System)? .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From sourceforge-raindog2 at ...94... Sun Jan 29 08:12:08 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 29 Jan 2006 02:12:08 -0500 Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <20060128214548.W60942@...1337...> References: <20060128023616.37038.qmail@...1345...> <7259b5ae0601281215r75c624e1q@...627...> <20060128214548.W60942@...1337...> Message-ID: <200601290212.08777.sourceforge-raindog2@...94...> On Sun January 29 2006 00:48, Christopher Brian Jack wrote: > > Not yet, I've not implemented the printer class. In fact > > I'll need a separate component as printers are part of the > > Gnome libraries, not the GTK libraries. > What about using something like CUPS (Common Unix Printing > System)? GNOME or Qt printing support is to CUPS as Gtk or Qt is to X. They have different purposes, and in the case of high-level application development, both are necessary. I thought gimp-print was part of Gtk now, though. Rob From brian at ...1334... Sun Jan 29 09:42:09 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 29 Jan 2006 00:42:09 -0800 (PST) Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <200601290212.08777.sourceforge-raindog2@...94...> References: <20060128023616.37038.qmail@...1345...> <7259b5ae0601281215r75c624e1q@...627...> <20060128214548.W60942@...1337...> <200601290212.08777.sourceforge-raindog2@...94...> Message-ID: <20060129003847.M62612@...1337...> On Sun, 29 Jan 2006, Rob Kudla wrote: > On Sun January 29 2006 00:48, Christopher Brian Jack wrote: > > > Not yet, I've not implemented the printer class. In fact > > > I'll need a separate component as printers are part of the > > > Gnome libraries, not the GTK libraries. > > What about using something like CUPS (Common Unix Printing > > System)? > > GNOME or Qt printing support is to CUPS as Gtk or Qt is to X. > They have different purposes, and in the case of high-level > application development, both are necessary. > > I thought gimp-print was part of Gtk now, though. If that is true then it should be possible to make a component that uses CUPS directly to implement a printing class independant of Qt and Gtk. .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From brian at ...1334... Sun Jan 29 10:02:05 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 29 Jan 2006 01:02:05 -0800 (PST) Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <20060129003847.M62612@...1337...> References: <20060128023616.37038.qmail@...1345...> <7259b5ae0601281215r75c624e1q@...627...> <20060128214548.W60942@...1337...> <200601290212.08777.sourceforge-raindog2@...94...> <20060129003847.M62612@...1337...> Message-ID: <20060129004506.D62612@...1337...> On Sun, 29 Jan 2006, Christopher Brian Jack wrote: > Date: Sun, 29 Jan 2006 00:42:09 -0800 (PST) > From: Christopher Brian Jack > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] GTK and printing to printer > > On Sun, 29 Jan 2006, Rob Kudla wrote: > > > On Sun January 29 2006 00:48, Christopher Brian Jack wrote: > > > > Not yet, I've not implemented the printer class. In fact > > > > I'll need a separate component as printers are part of the > > > > Gnome libraries, not the GTK libraries. > > > What about using something like CUPS (Common Unix Printing > > > System)? > > > > GNOME or Qt printing support is to CUPS as Gtk or Qt is to X. > > They have different purposes, and in the case of high-level > > application development, both are necessary. > > > > I thought gimp-print was part of Gtk now, though. > > If that is true then it should be possible to make a component that uses > CUPS directly to implement a printing class independant of Qt and Gtk. > Alternatively make a printing class abstraction that outputs as PostScript and use the available component(s) (Qt/Gtk/whatever future interface components) to handle printing from the resulting PostScript. This may not solve the Gtk printing issue but it will make a standardized output hence leaving an abstracted printer class that can make the final printing output interface based on available components and/or Operating System and environment. I guess I'm forward thinking a bit to when there may potentially be Gambas in Windows (or other OSes say like MacOSX). It seems to make sense to abstract printing to a single class the produces an common intermediary that is independant to whichever low level printing driver is ultimately available at runtime. It just seems to be a lot of extra work to reimplement the entire printer class for each new interface component that comes along (say a gb.mingw.gdi for windows and a gb.carbon and/or gb.cocoa are produced by developers who want to see Gambas on Windows and MacOSX) .=================================================. | Christopher BRIAN Jack aka "Gau of the Veldt" | +=================================================' | brian _AT_ brians-anime _DOT_ com | brian _AT_ animemayhem _DOT_ com | brian _AT_ nall.brians-anime _DOT_ com | brian _AT_ ruby.brians-anime _DOT_ com | gau_veldt _AT_ hotmail _DOT_ com `=================================================- Hi Spambots, my email address is sputnik at ...1334... From jriolexp at ...43... Sun Jan 29 13:22:56 2006 From: jriolexp at ...43... (j. riolex pinuela) Date: Sun, 29 Jan 2006 04:22:56 -0800 (PST) Subject: [Gambas-user] fakebas compilation error Message-ID: <20060129122256.70109.qmail@...1346...> Hi, I'm trying to compile Rob Kudla fakebas and I am getting an error "Not enough arguments to Lock() at line 855 in Project.Module" where at line 855 is: IF Lock() THEN RETURN TRUE I've checked that Lock should have an argument as in STATIC SUB Lock ( Object AS Object ) I'm compiling it in Gambas version 1.0.13. Is this a typo or did I miss something. Thanks, jrap --------------------------------- Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rohnny at ...1248... Sun Jan 29 14:27:03 2006 From: rohnny at ...1248... (Rohnny Stormo) Date: Sun, 29 Jan 2006 14:27:03 +0100 Subject: [Gambas-user] gb.serial Message-ID: <43DCC2A7.9090304@...1248...> While we wait on next version of gambas2 could someone please tell me what value the gb.serial should suppose to have. When I try to create tables I need to specify gb.serial in one of the fields. The database manager has this but not inside gambas. To Benoit: What need to be fixed is when start the database manager after creating the tables the database field is still saying integer and does not jump to serial. -- ----------------------------------------- Gambas brings Basic to Linux. My Gambas Community http://forum.stormweb.no From gambas at ...1... Sun Jan 29 16:56:58 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 29 Jan 2006 16:56:58 +0100 Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <20060129004506.D62612@...1337...> References: <20060128023616.37038.qmail@...1345...> <20060129003847.M62612@...1337...> <20060129004506.D62612@...1337...> Message-ID: <200601291656.59045.gambas@...1...> On Sunday 29 January 2006 10:02, Christopher Brian Jack wrote: > On Sun, 29 Jan 2006, Christopher Brian Jack wrote: > > Date: Sun, 29 Jan 2006 00:42:09 -0800 (PST) > > From: Christopher Brian Jack > > To: gambas-user at lists.sourceforge.net > > Subject: Re: [Gambas-user] GTK and printing to printer > > > > On Sun, 29 Jan 2006, Rob Kudla wrote: > > > On Sun January 29 2006 00:48, Christopher Brian Jack wrote: > > > > > Not yet, I've not implemented the printer class. In fact > > > > > I'll need a separate component as printers are part of the > > > > > Gnome libraries, not the GTK libraries. > > > > > > > > What about using something like CUPS (Common Unix Printing > > > > System)? > > > > > > GNOME or Qt printing support is to CUPS as Gtk or Qt is to X. > > > They have different purposes, and in the case of high-level > > > application development, both are necessary. > > > > > > I thought gimp-print was part of Gtk now, though. > > > > If that is true then it should be possible to make a component that uses > > CUPS directly to implement a printing class independant of Qt and Gtk. > > Alternatively make a printing class abstraction that outputs as PostScript > and use the available component(s) (Qt/Gtk/whatever future interface > components) to handle printing from the resulting PostScript. This may > not solve the Gtk printing issue but it will make a standardized output > hence leaving an abstracted printer class that can make the final printing > output interface based on available components and/or Operating System and > environment. I guess I'm forward thinking a bit to when there may > potentially be Gambas in Windows (or other OSes say like MacOSX). It > seems to make sense to abstract printing to a single class the produces an > common intermediary that is independant to whichever low level printing > driver is ultimately available at runtime. > > It just seems to be a lot of extra work to reimplement the entire printer > class for each new interface component that comes along (say a > gb.mingw.gdi for windows and a gb.carbon and/or gb.cocoa are produced by > developers who want to see Gambas on Windows and MacOSX) > > .=================================================. > > | Christopher BRIAN Jack aka "Gau of the Veldt" | > > +=================================================' > > | brian _AT_ brians-anime _DOT_ com > | brian _AT_ animemayhem _DOT_ com > | brian _AT_ nall.brians-anime _DOT_ com > | brian _AT_ ruby.brians-anime _DOT_ com > | gau_veldt _AT_ hotmail _DOT_ com > > `=================================================- > Hi Spambots, my email address is sputnik at ...1334... > To Christopher: It already works like that. Everything that is printed on Linux is printed in Postcript. And so does the QT library. CUPS is just the system that makes the interface between postcript and the printer. P.S.: I think you should reduce your signature. Your name will be sufficient for this mailing-list :-) To Daniel: if the printing support is in the Gnome library, I can put the Printer class of gb.qt inside a new component, gb.qt.print, and so you will be able to make a gb.gtk.print component based on the needed GNOME libraries. What do you think about that? -- Benoit Minisini From gambas at ...1... Sun Jan 29 16:58:28 2006 From: gambas at ...1... (Benoit Minisini) Date: Sun, 29 Jan 2006 16:58:28 +0100 Subject: [Gambas-user] gb.serial In-Reply-To: <43DCC2A7.9090304@...1248...> References: <43DCC2A7.9090304@...1248...> Message-ID: <200601291658.28633.gambas@...1...> On Sunday 29 January 2006 14:27, Rohnny Stormo wrote: > While we wait on next version of gambas2 could someone please tell me > what value > the gb.serial should suppose to have. > > When I try to create tables I need to specify gb.serial in one of the > fields. The database manager > has this but not inside gambas. > > To Benoit: > > What need to be fixed is when start the database manager after creating > the tables the database field > is still saying integer and does not jump to serial. This is bug that will be fixed in the next version. The correct constant is 'db.Serial', not 'gb.Serial'. At the moment, you have to replace it by hand. Sorry for the inconvenience, Regards, -- Benoit Minisini From brian at ...1334... Sun Jan 29 17:18:47 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 29 Jan 2006 08:18:47 -0800 (PST) Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <200601291656.59045.gambas@...1...> References: <20060128023616.37038.qmail@...1345...> <20060129003847.M62612@...1337...> <20060129004506.D62612@...1337...> <200601291656.59045.gambas@...1...> Message-ID: <20060129081741.X65297@...1337...> On Sun, 29 Jan 2006, Benoit Minisini wrote: > P.S.: I think you should reduce your signature. Your name will be sufficient > for this mailing-list :-) Or none at all? Pine doesn't let me keep a list of different .signature files based on recipient. From sourceforge-raindog2 at ...94... Sun Jan 29 20:17:25 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 29 Jan 2006 14:17:25 -0500 Subject: [Gambas-user] GTK and printing to printer In-Reply-To: <20060129004506.D62612@...1337...> References: <20060128023616.37038.qmail@...1345...> <20060129003847.M62612@...1337...> <20060129004506.D62612@...1337...> Message-ID: <200601291417.25321.sourceforge-raindog2@...94...> On Sun January 29 2006 04:02, Christopher Brian Jack wrote: > If that is true then it should be possible to make a > component that uses CUPS directly to implement a printing > class independant of Qt and Gtk. OK, again, CUPS implements a different part of the printing system than Qt and GNOME (not Gtk) do. Qt and GNOME implement the printer as (essentially) a drawing object, and output Postscript to CUPS. CUPS just takes the Postscript and translates it to whatever format the printer needs, along with job handling and all that stuff. They're totally different. > Alternatively make a printing class abstraction that outputs > as PostScript and use the available component(s) > (Qt/Gtk/whatever future interface components) to handle > printing from the resulting PostScript. This may not solve I don't think you understand how big a job this would be. Using Qt or GNOME for printing tasks means we get to use all their font handling and drawing abilities "for free". Writing something higher-level that talks to CUPS directly would mean duplicating a lot of those toolkits' efforts. It'd be possible, but I'm not volunteering to do that right now. > and/or Operating System and environment. I guess I'm forward > thinking a bit to when there may potentially be Gambas in > Windows (or other OSes say like MacOSX). It seems to make > sense to abstract printing to a single class the produces an > common intermediary that is independant to whichever low level > printing driver is ultimately available at runtime. I fully expect that to happen someday. Most form stuff has already been abstracted into gb.form. Probably someday there'll be a gb.printer component too. If nothing else, it will enable the use of a consistent printing API across all toolkits. But gb.form still requires that your project use either gb.gtk or gb.qt, and gb.printer would still require that you use either gb.gtk.gnome or gb.qt or whatever other component provides higher-level print support.... unless someone is ambitious enough to write a gb.printer.native component or something similar that implements a drawing object (hmmm, guess that would require an abstracted gb.drawing component too) and outputs Postscript or PDF. That sounds like a fun challenge, but not one I personally have time for.... can't speak for anyone else. Rob From sourceforge-raindog2 at ...94... Sun Jan 29 20:40:40 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 29 Jan 2006 14:40:40 -0500 Subject: [Gambas-user] old gambas wiki removed Message-ID: <200601291440.40353.sourceforge-raindog2@...94...> Thanks to yet another unannounced TWiki flaw, which allowed someone to start spamming people from our web server, I have finally caved in and removed the old Gambas wiki altogether. The static version is still there, but the main wiki will now redirect you to www.gambasdoc.org. Sorry for any inconvenience. I'm really glad Benoit got his new CMS running before this happened. Rob From sourceforge-raindog2 at ...94... Sun Jan 29 20:35:54 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 29 Jan 2006 14:35:54 -0500 Subject: [Gambas-user] Re: [Gambas-devel] Vector Graphics (needs more versatility!!!) In-Reply-To: <20060129071827.B65241@...1337...> References: <20060129031632.A63726@...1337...> <200601291446.08871.lordheavy@...512...> <20060129071827.B65241@...1337...> Message-ID: <200601291435.55136.sourceforge-raindog2@...94...> On Sun January 29 2006 10:36, Christopher Brian Jack wrote: > For 2D games with animated characters and/or the desire to do > full screen cutscenes without having to render video, it's > certainly the way to go. I feel pretty sure that the SVG support in Qt's drawing control is waaaaaaay too slow to do the kind of games you're thinking of. Even just blitting static bitmaps to it, I was unable to get a simple (2 sprites plus background) game running above 20 frames per second in a 640x480 window. You're gonna need gb.sdl for game programming, I'm afraid. But I think SVG plus Javascript and some kind of SMIL-type audio synchronization will end up being a powerful game platform in web browsers. I moved this thread to gambas-user since it's more of a feature request than a technical discussion. Rob From sourceforge-raindog2 at ...94... Sun Jan 29 20:20:28 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 29 Jan 2006 14:20:28 -0500 Subject: [Gambas-user] fakebas compilation error In-Reply-To: <20060129122256.70109.qmail@...1346...> References: <20060129122256.70109.qmail@...1346...> Message-ID: <200601291420.28835.sourceforge-raindog2@...94...> On Sun January 29 2006 07:22, j. riolex pinuela wrote: > I'm compiling it in Gambas version 1.0.13. > Is this a typo or did I miss something. Fakebas is based on the IDE from Gambas 1.0.3, and I haven't kept it up to date since then. I would be astonished if it worked properly with current releases, but if you can hack it to make it work, be my guest (and please submit a patch if you do.) Thanks Rob From matthias-laur at ...978... Sun Jan 29 22:31:44 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Sun, 29 Jan 2006 22:31:44 +0100 Subject: [Gambas-user] gambas + cgi Message-ID: <200601292231.44460.matthias-laur@...978...> Hello, is there a easy way to create cgi files with gambas? Few weeks ago, I've read that the new gambasdoc was designed with gambas. Can I handle the output of the POST-Method with gambas? Regards, Matthias From brian at ...1334... Mon Jan 30 00:03:58 2006 From: brian at ...1334... (Christopher Brian Jack) Date: Sun, 29 Jan 2006 15:03:58 -0800 (PST) Subject: [Gambas-user] Re: [Gambas-devel] Vector Graphics (needs more versatility!!!) In-Reply-To: <200601291435.55136.sourceforge-raindog2@...94...> References: <20060129031632.A63726@...1337...> <200601291446.08871.lordheavy@...512...> <20060129071827.B65241@...1337...> <200601291435.55136.sourceforge-raindog2@...94...> Message-ID: <20060129145306.R65524@...1337...> On Sun, 29 Jan 2006, Rob Kudla wrote: > I feel pretty sure that the SVG support in Qt's drawing control > is waaaaaaay too slow to do the kind of games you're thinking > of. Even just blitting static bitmaps to it, I was unable to > get a simple (2 sprites plus background) game running above 20 > frames per second in a 640x480 window. > > You're gonna need gb.sdl for game programming, I'm afraid. But I > think SVG plus Javascript and some kind of SMIL-type audio > synchronization will end up being a powerful game platform in > web browsers. Looks like it's back to XVidix-with-colorkey coupled to an MPEG video decoder. If I liked SDL I wouldn't be trying to find a lesser resistance language than C/C++ with which to be doing my game. I have not really been all that impressed with SDL becuase it's lack of functionality and the resulting dependance on libraries (many which break platform independance) is counterproductive to the eventual performance obtained. Also I don't think SDL supports vectorized graphics either. Brian From lordheavy at ...512... Mon Jan 30 00:14:52 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 30 Jan 2006 00:14:52 +0100 Subject: [Gambas-user] Re: [Gambas-devel] Vector Graphics (needs more versatility!!!) In-Reply-To: <20060129145306.R65524@...1337...> References: <20060129031632.A63726@...1337...> <200601291435.55136.sourceforge-raindog2@...94...> <20060129145306.R65524@...1337...> Message-ID: <200601300014.52558.lordheavy@...512...> Le Lundi 30 Janvier 2006 00:03, Christopher Brian Jack a ?crit?: > If I liked SDL I wouldn't be trying to find a lesser resistance language > than C/C++ with which to be doing my game. I have not really been all > that impressed with SDL becuase it's lack of functionality and the > resulting dependance on libraries (many which break platform independance) > is counterproductive to the eventual performance obtained. > > Also I don't think SDL supports vectorized graphics either. > I guess there is an sdl svg lib somewhere regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From dcamposf at ...626... Mon Jan 30 00:14:33 2006 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 30 Jan 2006 00:14:33 +0100 Subject: [Gambas-user] gambas + cgi In-Reply-To: <200601292231.44460.matthias-laur@...978...> References: <200601292231.44460.matthias-laur@...978...> Message-ID: <7259b5ae0601291514n5a6e2ea1i@...627...> It is easy, you can even write CGI's with Bash. The only language not able to do it was VB until the .NET version, I think :-) A quite simple example would be (in a console program, do not forget to remove the gb.qt dependency: PUBLIC SUB Main() PRINT "Content-type: text/html\n" PRINT "Hello World!" END If you need to determine what is the method (GET, POST...) just use the environment variable: REQUEST_METHOD: IF Application.Env["REQUEST_METHOD"]="POST" THEN ... To get the data from the POST method just read the standard input, and parse it: DIM Buf AS STRING DO UNTIL Eof() LINE INPUT Buf ... LOOP Regards, D. Campos 2006/1/29, Matthias Laur : > > Hello, > is there a easy way to create cgi files with gambas? Few weeks ago, I've > read > that the new gambasdoc was designed with gambas. Can I handle the output > of > the POST-Method with gambas? > > Regards, > Matthias > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Mon Jan 30 01:27:00 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sun, 29 Jan 2006 19:27:00 -0500 Subject: [Gambas-user] Re: [Gambas-devel] Vector Graphics (needs more versatility!!!) In-Reply-To: <20060129145306.R65524@...1337...> References: <20060129031632.A63726@...1337...> <200601291435.55136.sourceforge-raindog2@...94...> <20060129145306.R65524@...1337...> Message-ID: <200601291927.00231.sourceforge-raindog2@...94...> On Sun January 29 2006 18:03, Christopher Brian Jack wrote: > I have not really been all that impressed with SDL becuase > it's lack of functionality and the resulting dependance on > libraries (many which break platform independance) is > counterproductive to the eventual performance obtained. It seems to me that Vidix might also be a poor choice, then, since it's not commonly packaged for mainstream distributions, not available at all for OSX or Windows, and hasn't even hit 1.0 yet. And I'm not at all sure how libmpeg would fit into a vector animation concept. With your focus on vectorized graphics, you might just want to go straight for OpenGL. Gambas even has early support for that already in recent development versions. Again, though, it's not documented yet. Rob From jriolexp at ...43... Mon Jan 30 08:01:03 2006 From: jriolexp at ...43... (j. riolex pinuela) Date: Sun, 29 Jan 2006 23:01:03 -0800 (PST) Subject: [Gambas-user] fakebas compilation error In-Reply-To: <200601291420.28835.sourceforge-raindog2@...94...> Message-ID: <20060130070103.2839.qmail@...1347...> Rob Kudla wrote: On Sun January 29 2006 07:22, j. riolex pinuela wrote: > I'm compiling it in Gambas version 1.0.13. > Is this a typo or did I miss something. Fakebas is based on the IDE from Gambas 1.0.3, and I haven't kept it up to date since then. I would be astonished if it worked properly with current releases, but if you can hack it to make it work, be my guest (and please submit a patch if you do.) Thanks Rob Hi Rob, Thanks for the info. I'll try to work on it as soon as I can. But for now I'm in a middle of a project which might take about another month. This is a great resource for those who are learning Gambas. jrap ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --------------------------------- Bring words and photos together (easily) with PhotoMail - it's free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias-laur at ...978... Mon Jan 30 08:36:01 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Mon, 30 Jan 2006 08:36:01 +0100 Subject: AW: [Gambas-user] gambas + cgi In-Reply-To: <7259b5ae0601291514n5a6e2ea1i@...627...> Message-ID: <0ML2ov-1F3TZx1Lpo-0000aY@...979...> Hi Daniel, that looks nice. I will try it soon. One little question: How can I decide the variables? In php by name, but if I reed them together in Buf? Regards, Matthias _____ Von: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] Im Auftrag von Daniel Campos Gesendet: Montag, 30. Januar 2006 00:15 An: gambas-user at lists.sourceforge.net Betreff: Re: [Gambas-user] gambas + cgi It is easy, you can even write CGI's with Bash. The only language not able to do it was VB until the .NET version, I think :-) A quite simple example would be (in a console program, do not forget to remove the gb.qt dependency: PUBLIC SUB Main() PRINT "Content-type: text/html\n" PRINT "Hello World!" END If you need to determine what is the method (GET, POST...) just use the environment variable: REQUEST_METHOD: IF Application.Env["REQUEST_METHOD"]="POST" THEN ... To get the data from the POST method just read the standard input, and parse it: DIM Buf AS STRING DO UNTIL Eof() LINE INPUT Buf ... LOOP Regards, D. Campos 2006/1/29, Matthias Laur : Hello, is there a easy way to create cgi files with gambas? Few weeks ago, I've read that the new gambasdoc was designed with gambas. Can I handle the output of the POST-Method with gambas? Regards, Matthias ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk &kid=103432&bid=230486&dat=121642 _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthias-laur at ...978... Mon Jan 30 09:01:37 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Mon, 30 Jan 2006 09:01:37 +0100 Subject: [Gambas-user] gambas for embedded system Message-ID: <0ML2xA-1F3Tyi21xP-0004Hi@...979...> Hi all, gambas is my favorite programming language for linux;-) I would like to try gambas for my new project with an embedded system on a Votex86 with 166MHZ. The system will runs from a CF - card. The Linux should be Debian Sarge. I only need the gambas-runtime and the sqlite-bindings. The program should watching the serial port for events and interacting with a sqlite database. The system should have a webinterface. Maybe I use gambas for the cgi-scripts too. It would be easier then programming all the stuff in C. Has somebody try to use gambas on small hardware? Should there be problems? Another question is, how can I compile only the gambas runtime with net and sqlite bindings from the source? There will be no X on the system. Regards, Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomaxz.tc at ...626... Mon Jan 30 09:24:02 2006 From: thomaxz.tc at ...626... (T C) Date: Mon, 30 Jan 2006 09:24:02 +0100 Subject: [Gambas-user] problem install gambas, fedora core 3 Message-ID: when i try to install gambas usin the command on http://gambas.sourceforge.net/ yum install gambas* i get the following error
Running Transaction Test
Finished Transaction Test
Transaction Check Error:  file
/usr/share/gambas/examples/Automation/KateBrowser/.gambas/FBROWSER
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Automation/KateBrowser/KateBrowser
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Automation/Scripting/.gambas/FSCRIPT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Automation/Scripting/Scripting
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Blights/.gambas/WIN1 conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Blights/Blights conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Collection/.gambas/CTHING
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Collection/.gambas/FSTART
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Collection/Collection
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/DragNDrop/.gambas/FDRAGNDROP
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/DragNDrop/DragNDrop conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Object/.gambas/CTHING
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Object/.gambas/FSTART
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Object/Object conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Timer/.gambas/FTIMER conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/Timer/Timer conflicts between
attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/TreeView/.gambas/TREEVIEWEXAMPLE
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Basic/TreeView/TreeView conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/DataReportExample/.gambas/FABOUT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/DataReportExample/.gambas/FCONN
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/DataReportExample/.gambas/FMAIN
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/DataReportExample/.gambas/FPREVIEW
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/DataReportExample/.gambas/MGLOBAL
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/DataReportExample/DataReportExample
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/Database/.gambas/FMAIN
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/Database/.gambas/FREQUEST
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Database/Database/Database conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/AnalogWatch/.gambas/FRMCLOCK
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/AnalogWatch/AnalogWatch
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/Clock/.gambas/FCLOCK
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/Clock/Clock conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/ImageViewer/.gambas/FVIEWER
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/ImageViewer/ImageViewer
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/OnScreenDisplay/.gambas/FONSCREENDISPLAY
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Drawing/OnScreenDisplay/OnScreenDisplay
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Exec/Console/.gambas/FCONSOLE
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Exec/Console/Console conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Exec/MoviePlayer/.gambas/FMOVIEPLAYER
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Exec/MoviePlayer/MoviePlayer
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Concent/.gambas/FRMACERCA
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Concent/.gambas/FRMINSTRUCCIONES
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Concent/Concent conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/DeepSpace/.gambas/CBULLET
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/DeepSpace/.gambas/COBJECT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/DeepSpace/.gambas/FABOUT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/DeepSpace/.gambas/FMAIN
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/DeepSpace/.gambas/MMAIN
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/DeepSpace/.gambas/MMATH
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/DeepSpace/DeepSpace conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/RobotFindsKitten/.gambas/FRFK
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/RobotFindsKitten/RobotFindsKitten
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Snake/Snake conflicts between
attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Solitaire/.gambas/CBOARDDESIGN
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Solitaire/.gambas/CMOVE
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Solitaire/.gambas/FBOARDSELECT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Solitaire/.gambas/FGAMEAREA
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Solitaire/.gambas/GLOBAL
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Solitaire/.gambas/MBOARDS
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Games/Solitaire/Solitaire conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Miscellaneous/Evaluator/.gambas/FEVAL
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Miscellaneous/Evaluator/Evaluator
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Miscellaneous/Explorer/.gambas/FEXPLORER
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Miscellaneous/Explorer/Explorer
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Miscellaneous/Notepad/.gambas/FABOUT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Miscellaneous/Notepad/.gambas/FNOTEPAD
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Miscellaneous/Notepad/Notepad
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/ClientSocket/.gambas/FRMMAIN
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/ClientSocket/ClientSocket
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/DnsClient/.gambas/F
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/DnsClient/DnsClient
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/HTTPGet/HTTPGet conflicts
between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/HTTPPost/HTTPPost
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/SerialPort/.gambas/FSERIALPORT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/SerialPort/SerialPort
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/ServerSocket/ServerSocket
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/UDPServerClient/.gambas/FRMCLIENT
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/UDPServerClient/.gambas/FRMSERVER
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/UDPServerClient/UDPServerClient
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/WebBrowser/.gambas/FBROWSER
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Networking/WebBrowser/WebBrowser
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/share/gambas/examples/Sound/MusicPlayer/MusicPlayer
conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
gambas-examples-1.0.11-1.fc3
  file /usr/bin/gambas-database-manager conflicts between attempted
installs of gambas-1.0.11-1.fc3 and gambas-ide-1.0.13-3.fc3
  file /usr/bin/gba conflicts between attempted installs of
gambas-1.0.11-1.fc3 and gambas-ide-1.0.13-3.fc3
  file /usr/bin/gbc conflicts between attempted installs of
gambas-1.0.11-1.fc3 and gambas-ide-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.db.mysql.so.0.0.0 conflicts between
attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-db-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.db.postgresql.so.0.0.0 conflicts between
attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-db-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.db.so.0.0.0 conflicts between attempted
installs of gambas-1.0.11-1.fc3 and gambas-gb-db-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.db.sqlite.so.0.0.0 conflicts between
attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-db-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.eval.so.0.0.0 conflicts between
attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-eval-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.net.so.0.0.0 conflicts between attempted
installs of gambas-1.0.11-1.fc3 and gambas-gb-net-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.qt.kde.html.so.0.0.0 conflicts between
attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-qt-kde-html-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.xml.libxml.rpc.so.0.0.0 conflicts
between attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-xml-libxml-rpc-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.xml.libxml.so.0.0.0 conflicts between
attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-xml-libxml-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.xml.libxml.xslt.so.0.0.0 conflicts
between attempted installs of gambas-1.0.11-1.fc3 and
gambas-gb-xml-libxml-xslt-1.0.13-3.fc3
  file /usr/lib/gambas/lib.gb.compress.bzlib2.so.0.0.0 conflicts
between attempted installs of gambas-gb-compress-1.0.13-3.fc3 and
gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.compress.so.0.0.0 conflicts between
attempted installs of gambas-gb-compress-1.0.13-3.fc3 and
gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.compress.zlib.so.0.0.0 conflicts between
attempted installs of gambas-gb-compress-1.0.13-3.fc3 and
gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.qt.so.0.0.0 conflicts between attempted
installs of gambas-gb-qt-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.qt.ext.so.0.0.0 conflicts between
attempted installs of gambas-gb-qt-ext-1.0.13-3.fc3 and
gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.qt.kde.so.0.0.0 conflicts between
attempted installs of gambas-gb-qt-kde-1.0.13-3.fc3 and
gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.debug.so.0.0.0 conflicts between
attempted installs of gambas-gb-debug-1.0.13-3.fc3 and
gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.vb.so.0.0.0 conflicts between attempted
installs of gambas-gb-vb-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
  file /usr/lib/gambas/lib.gb.qt.editor.so.0.0.0 conflicts between
attempted installs of gambas-gb-qt-editor-1.0.13-3.fc3 and
gambas-1.0.11-1.fc3
  file /usr/bin/gambas conflicts between attempted installs of
gambas-runtime-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
  file /usr/bin/gbi conflicts between attempted installs of
gambas-runtime-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
  file /usr/bin/gbx conflicts between attempted installs of
gambas-runtime-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
i have tried nu er systmet i hvertfald opdateret. n?r jeg pr?ver at yum remove gambas* yum says the packet is'nt installed yum update gambas* yum says the packet is'nt installed and when i try yum install gambas* i get the error above i have also tried yum search gambas* the i get following message
gambas-gb-qt.i386                        1.0.13-2.fc3          extras
Matched from:
gambas-gb-qt
Gambas component package for qt
Gambas component package for qt
http://gambas.sourceforge.net/


gambas-gb-sdl.i386                      1.0.13-2.fc3          extras
Matched from:
gambas-gb-sdl
Gambas component package for sdl
Gambas component package for sdl
http://gambas.sourceforge.net/


gambas-gb-db.i386                        1.0.13-2.fc3          extras
Matched from:
gambas-gb-db
Gambas component package for db
Gambas component package for db
http://gambas.sourceforge.net/


gambas-gb-qt-kde.i386                    1.0.13-3.fc3          extras
Matched from:
gambas-gb-qt-kde
Gambas component package for qt.kde
Gambas component package for qt.kde
http://gambas.sourceforge.net/


gambas-gb-vb.i386                        1.0.13-3.fc3          extras
Matched from:
gambas-gb-vb
Gambas component package for vb
Gambas component package for vb
http://gambas.sourceforge.net/


gambas-help.i386                        1.0.11-1.fc3          extras
Matched from:
gambas-help
Help files for gambas
The gambas-help package contains all the help files for gambas.
http://gambas.sourceforge.net/


gambas-runtime.i386                      1.0.13-2.fc3          extras
Matched from:
gambas-runtime
Runtime environment for gambas
http://gambas.sourceforge.net/


gambas-gb-xml-libxml-rpc.i386            1.0.13-3.fc3          extras
Matched from:
gambas-gb-xml-libxml-rpc
Gambas component package for xml.libxml.rpc
Gambas component package for xml.libxml.rpc
http://gambas.sourceforge.net/


gambas-gb-net.i386                      1.0.13-3.fc3          extras
Matched from:
gambas-gb-net
Gambas component package for net
Gambas component package for net
http://gambas.sourceforge.net/


gambas-runtime.i386                      1.0.13-3.fc3          extras
Matched from:
gambas-runtime
Runtime environment for gambas
Gambas is a free development environment based on a Basic interpreter
with object extensions, like Visual Basic. This package contains the
runtime components necessary to run programs designed in gambas.
http://gambas.sourceforge.net/


gambas-gb-debug.i386                    1.0.13-3.fc3          extras
Matched from:
gambas-gb-debug
Gambas component package for debug
Gambas component package for debug
http://gambas.sourceforge.net/


gambas-devel.i386                        1.0.11-1.fc3          extras
Matched from:
gambas-devel
Development libraries and headers for gambas
The gambas-devel package contains the development libraries and
headers for gambas.
http://gambas.sourceforge.net/


gambas-gb-qt-kde-html.i386              1.0.13-2.fc3          extras
Matched from:
gambas-gb-qt-kde-html
Gambas component package for qt.kde.html
Gambas component package for qt.kde.html
http://gambas.sourceforge.net/


gambas-gb-debug.i386                    1.0.13-2.fc3          extras
Matched from:
gambas-gb-debug
Gambas component package for debug
Gambas component package for debug
http://gambas.sourceforge.net/


gambas.i386                              1.0.9-2.fc3            extras
Matched from:
gambas
http://gambas.sourceforge.net/


gambas-ide.i386                          1.0.13-2.fc3          extras
Matched from:
gambas-ide
Development environment for gambas
http://gambas.sourceforge.net/


gambas-devel.i386                        1.0.9-2.fc3            extras
Matched from:
gambas-devel
Development libraries and headers for gambas
The gambas-devel package contains the development libraries and
headers for gambas.
http://gambas.sourceforge.net/


gambas-ide.i386                          1.0.13-3.fc3          extras
Matched from:
gambas-ide
Development environment for gambas
The gambas-ide package contains the complete Gambas Development
Environment, with the database manager, the help files, and all
components. This is what you want to install if you want to
create new programs with Gambas.
http://gambas.sourceforge.net/


gambas-gb-qt-editor.i386                1.0.13-3.fc3          extras
Matched from:
gambas-gb-qt-editor
Gambas component package for qt.editor
Gambas component package for qt.editor
http://gambas.sourceforge.net/


gambas-gb-xml-libxml.i386                1.0.13-2.fc3          extras
Matched from:
gambas-gb-xml-libxml
Gambas component package for xml.libxml
Gambas component package for xml.libxml
http://gambas.sourceforge.net/


gambas-gb-compress.i386                  1.0.13-3.fc3          extras
Matched from:
gambas-gb-compress
Gambas component package for net
Gambas component package for net
http://gambas.sourceforge.net/


gambas.i386                              1.0.11-1.fc3          extras
Matched from:
gambas
http://gambas.sourceforge.net/


gambas-gb-net-curl.i386                  1.0.13-3.fc3          extras
Matched from:
gambas-gb-net-curl
Gambas component package for net.curl
Gambas component package for net.curl
http://gambas.sourceforge.net/


gambas-gb-qt.i386                        1.0.13-3.fc3          extras
Matched from:
gambas-gb-qt
Gambas component package for qt
Gambas component package for qt
http://gambas.sourceforge.net/


gambas-help.i386                        1.0.9-2.fc3            extras
Matched from:
gambas-help
Help files for gambas
The gambas-help package contains all the help files for gambas.
http://gambas.sourceforge.net/


gambas-gb-net-curl.i386                  1.0.13-2.fc3          extras
Matched from:
gambas-gb-net-curl
Gambas component package for net.curl
Gambas component package for net.curl
http://gambas.sourceforge.net/


gambas-gb-xml-libxml-xslt.i386          1.0.13-2.fc3          extras
Matched from:
gambas-gb-xml-libxml-xslt
Gambas component package for xml.libxml.xslt
Gambas component package for xml.libxml.xslt
http://gambas.sourceforge.net/


gambas-gb-eval.i386                      1.0.13-2.fc3          extras
Matched from:
gambas-gb-eval
Gambas component package for eval
Gambas component package for eval
http://gambas.sourceforge.net/


gambas-gb-qt-kde-html.i386              1.0.13-3.fc3          extras
Matched from:
gambas-gb-qt-kde-html
Gambas component package for qt.kde.html
Gambas component package for qt.kde.html
http://gambas.sourceforge.net/


gambas-gb-xml-libxml-rpc.i386            1.0.13-2.fc3          extras
Matched from:
gambas-gb-xml-libxml-rpc
Gambas component package for xml.libxml.rpc
Gambas component package for xml.libxml.rpc
http://gambas.sourceforge.net/


gambas-gb-sdl.i386                      1.0.13-3.fc3          extras
Matched from:
gambas-gb-sdl
Gambas component package for sdl
Gambas component package for sdl
http://gambas.sourceforge.net/


gambas-gb-xml-libxml-xslt.i386          1.0.13-3.fc3          extras
Matched from:
gambas-gb-xml-libxml-xslt
Gambas component package for xml.libxml.xslt
Gambas component package for xml.libxml.xslt
http://gambas.sourceforge.net/


gambas-gb-qt-kde.i386                    1.0.13-2.fc3          extras
Matched from:
gambas-gb-qt-kde
Gambas component package for qt.kde
Gambas component package for qt.kde
http://gambas.sourceforge.net/


gambas-gb-vb.i386                        1.0.13-2.fc3          extras
Matched from:
gambas-gb-vb
Gambas component package for vb
Gambas component package for vb
http://gambas.sourceforge.net/


gambas-gb-qt-editor.i386                1.0.13-2.fc3          extras
Matched from:
gambas-gb-qt-editor
Gambas component package for qt.editor
Gambas component package for qt.editor
http://gambas.sourceforge.net/


gambas-gb-qt-ext.i386                    1.0.13-2.fc3          extras
Matched from:
gambas-gb-qt-ext
Gambas component package for qt.ext
Gambas component package for qt.ext
http://gambas.sourceforge.net/


gambas-gb-qt-ext.i386                    1.0.13-3.fc3          extras
Matched from:
gambas-gb-qt-ext
Gambas component package for qt.ext
Gambas component package for qt.ext
http://gambas.sourceforge.net/


gambas-gb-compress.i386                  1.0.13-2.fc3          extras
Matched from:
gambas-gb-compress
Gambas component package for net
Gambas component package for net
http://gambas.sourceforge.net/


gambas-examples.i386                    1.0.9-2.fc3            extras
Matched from:
gambas-examples
Examples for gambas
The gambas-examples package contains some examples for gambas.
http://gambas.sourceforge.net/


gambas-gb-eval.i386                      1.0.13-3.fc3          extras
Matched from:
gambas-gb-eval
Gambas component package for eval
Gambas component package for eval
http://gambas.sourceforge.net/


gambas-examples.i386                    1.0.11-1.fc3          extras
Matched from:
gambas-examples
Examples for gambas
The gambas-examples package contains some examples for gambas.
http://gambas.sourceforge.net/


gambas-gb-net.i386                      1.0.13-2.fc3          extras
Matched from:
gambas-gb-net
Gambas component package for net
Gambas component package for net
http://gambas.sourceforge.net/


gambas-gb-db.i386                        1.0.13-3.fc3          extras
Matched from:
gambas-gb-db
Gambas component package for db
Gambas component package for db
http://gambas.sourceforge.net/


gambas-gb-xml-libxml.i386                1.0.13-3.fc3          extras
Matched from:
gambas-gb-xml-libxml
Gambas component package for xml.libxml
Gambas component package for xml.libxml
http://gambas.sourceforge.net/
sow what is the problrem, why will it no install? From gambas at ...1... Mon Jan 30 10:38:42 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 30 Jan 2006 10:38:42 +0100 Subject: [Gambas-user] problem install gambas, fedora core 3 In-Reply-To: References: Message-ID: <200601301038.42889.gambas@...1...> On Monday 30 January 2006 09:24, T C wrote: > when i try to install gambas usin the command on > http://gambas.sourceforge.net/ > > yum install gambas* > > i get the following error > >
> Running Transaction Test
> Finished Transaction Test
> Transaction Check Error:  file
> /usr/share/gambas/examples/Automation/KateBrowser/.gambas/FBROWSER
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Automation/KateBrowser/KateBrowser
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Automation/Scripting/.gambas/FSCRIPT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Automation/Scripting/Scripting
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Blights/.gambas/WIN1 conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Blights/Blights conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Collection/.gambas/CTHING
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Collection/.gambas/FSTART
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Collection/Collection
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/DragNDrop/.gambas/FDRAGNDROP
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/DragNDrop/DragNDrop conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Object/.gambas/CTHING
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Object/.gambas/FSTART
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Object/Object conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Timer/.gambas/FTIMER conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/Timer/Timer conflicts between
> attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/TreeView/.gambas/TREEVIEWEXAMPLE
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Basic/TreeView/TreeView conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Database/DataReportExample/.gambas/FABOUT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Database/DataReportExample/.gambas/FCONN
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Database/DataReportExample/.gambas/FMAIN
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file
> /usr/share/gambas/examples/Database/DataReportExample/.gambas/FPREVIEW
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file
> /usr/share/gambas/examples/Database/DataReportExample/.gambas/MGLOBAL
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file
> /usr/share/gambas/examples/Database/DataReportExample/DataReportExample
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Database/Database/.gambas/FMAIN
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Database/Database/.gambas/FREQUEST
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Database/Database/Database conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Drawing/AnalogWatch/.gambas/FRMCLOCK
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Drawing/AnalogWatch/AnalogWatch
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Drawing/Clock/.gambas/FCLOCK
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Drawing/Clock/Clock conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Drawing/ImageViewer/.gambas/FVIEWER
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Drawing/ImageViewer/ImageViewer
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file
> /usr/share/gambas/examples/Drawing/OnScreenDisplay/.gambas/FONSCREENDISPLAY
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Drawing/OnScreenDisplay/OnScreenDisplay
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Exec/Console/.gambas/FCONSOLE
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Exec/Console/Console conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Exec/MoviePlayer/.gambas/FMOVIEPLAYER
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Exec/MoviePlayer/MoviePlayer
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Concent/.gambas/FRMACERCA
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Concent/.gambas/FRMINSTRUCCIONES
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Concent/Concent conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/DeepSpace/.gambas/CBULLET
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/DeepSpace/.gambas/COBJECT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/DeepSpace/.gambas/FABOUT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/DeepSpace/.gambas/FMAIN
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/DeepSpace/.gambas/MMAIN
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/DeepSpace/.gambas/MMATH
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/DeepSpace/DeepSpace conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/RobotFindsKitten/.gambas/FRFK
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/RobotFindsKitten/RobotFindsKitten
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Snake/Snake conflicts between
> attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Solitaire/.gambas/CBOARDDESIGN
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Solitaire/.gambas/CMOVE
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Solitaire/.gambas/FBOARDSELECT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Solitaire/.gambas/FGAMEAREA
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Solitaire/.gambas/GLOBAL
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Solitaire/.gambas/MBOARDS
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Games/Solitaire/Solitaire conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Miscellaneous/Evaluator/.gambas/FEVAL
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Miscellaneous/Evaluator/Evaluator
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Miscellaneous/Explorer/.gambas/FEXPLORER
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Miscellaneous/Explorer/Explorer
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Miscellaneous/Notepad/.gambas/FABOUT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Miscellaneous/Notepad/.gambas/FNOTEPAD
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Miscellaneous/Notepad/Notepad
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/ClientSocket/.gambas/FRMMAIN
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/ClientSocket/ClientSocket
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/DnsClient/.gambas/F
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/DnsClient/DnsClient
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/HTTPGet/HTTPGet conflicts
> between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/HTTPPost/HTTPPost
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/SerialPort/.gambas/FSERIALPORT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/SerialPort/SerialPort
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/ServerSocket/ServerSocket
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file
> /usr/share/gambas/examples/Networking/UDPServerClient/.gambas/FRMCLIENT
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file
> /usr/share/gambas/examples/Networking/UDPServerClient/.gambas/FRMSERVER
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file
> /usr/share/gambas/examples/Networking/UDPServerClient/UDPServerClient
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/WebBrowser/.gambas/FBROWSER
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Networking/WebBrowser/WebBrowser
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/share/gambas/examples/Sound/MusicPlayer/MusicPlayer
> conflicts between attempted installs of gambas-ide-1.0.13-3.fc3 and
> gambas-examples-1.0.11-1.fc3
>   file /usr/bin/gambas-database-manager conflicts between attempted
> installs of gambas-1.0.11-1.fc3 and gambas-ide-1.0.13-3.fc3
>   file /usr/bin/gba conflicts between attempted installs of
> gambas-1.0.11-1.fc3 and gambas-ide-1.0.13-3.fc3
>   file /usr/bin/gbc conflicts between attempted installs of
> gambas-1.0.11-1.fc3 and gambas-ide-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.db.mysql.so.0.0.0 conflicts between
> attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-db-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.db.postgresql.so.0.0.0 conflicts between
> attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-db-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.db.so.0.0.0 conflicts between attempted
> installs of gambas-1.0.11-1.fc3 and gambas-gb-db-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.db.sqlite.so.0.0.0 conflicts between
> attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-db-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.eval.so.0.0.0 conflicts between
> attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-eval-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.net.so.0.0.0 conflicts between attempted
> installs of gambas-1.0.11-1.fc3 and gambas-gb-net-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.qt.kde.html.so.0.0.0 conflicts between
> attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-qt-kde-html-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.xml.libxml.rpc.so.0.0.0 conflicts
> between attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-xml-libxml-rpc-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.xml.libxml.so.0.0.0 conflicts between
> attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-xml-libxml-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.xml.libxml.xslt.so.0.0.0 conflicts
> between attempted installs of gambas-1.0.11-1.fc3 and
> gambas-gb-xml-libxml-xslt-1.0.13-3.fc3
>   file /usr/lib/gambas/lib.gb.compress.bzlib2.so.0.0.0 conflicts
> between attempted installs of gambas-gb-compress-1.0.13-3.fc3 and
> gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.compress.so.0.0.0 conflicts between
> attempted installs of gambas-gb-compress-1.0.13-3.fc3 and
> gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.compress.zlib.so.0.0.0 conflicts between
> attempted installs of gambas-gb-compress-1.0.13-3.fc3 and
> gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.qt.so.0.0.0 conflicts between attempted
> installs of gambas-gb-qt-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.qt.ext.so.0.0.0 conflicts between
> attempted installs of gambas-gb-qt-ext-1.0.13-3.fc3 and
> gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.qt.kde.so.0.0.0 conflicts between
> attempted installs of gambas-gb-qt-kde-1.0.13-3.fc3 and
> gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.debug.so.0.0.0 conflicts between
> attempted installs of gambas-gb-debug-1.0.13-3.fc3 and
> gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.vb.so.0.0.0 conflicts between attempted
> installs of gambas-gb-vb-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
>   file /usr/lib/gambas/lib.gb.qt.editor.so.0.0.0 conflicts between
> attempted installs of gambas-gb-qt-editor-1.0.13-3.fc3 and
> gambas-1.0.11-1.fc3
>   file /usr/bin/gambas conflicts between attempted installs of
> gambas-runtime-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
>   file /usr/bin/gbi conflicts between attempted installs of
> gambas-runtime-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
>   file /usr/bin/gbx conflicts between attempted installs of
> gambas-runtime-1.0.13-3.fc3 and gambas-1.0.11-1.fc3
> 
> > i have tried > > nu er systmet i hvertfald opdateret. > > n?r jeg pr?ver at > > yum remove gambas* > yum says the packet is'nt installed > > yum update gambas* > yum says the packet is'nt installed > > and when i try > > yum install gambas* > i get the error above > > i have also tried > > yum search gambas* > > the i get following message > >
> gambas-gb-qt.i386                        1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-qt
> Gambas component package for qt
> Gambas component package for qt
> http://gambas.sourceforge.net/
>
>
> gambas-gb-sdl.i386                      1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-sdl
> Gambas component package for sdl
> Gambas component package for sdl
> http://gambas.sourceforge.net/
>
>
> gambas-gb-db.i386                        1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-db
> Gambas component package for db
> Gambas component package for db
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-kde.i386                    1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-qt-kde
> Gambas component package for qt.kde
> Gambas component package for qt.kde
> http://gambas.sourceforge.net/
>
>
> gambas-gb-vb.i386                        1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-vb
> Gambas component package for vb
> Gambas component package for vb
> http://gambas.sourceforge.net/
>
>
> gambas-help.i386                        1.0.11-1.fc3          extras
> Matched from:
> gambas-help
> Help files for gambas
> The gambas-help package contains all the help files for gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-runtime.i386                      1.0.13-2.fc3          extras
> Matched from:
> gambas-runtime
> Runtime environment for gambas
> http://gambas.sourceforge.net/
>
>
> gambas-gb-xml-libxml-rpc.i386            1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-xml-libxml-rpc
> Gambas component package for xml.libxml.rpc
> Gambas component package for xml.libxml.rpc
> http://gambas.sourceforge.net/
>
>
> gambas-gb-net.i386                      1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-net
> Gambas component package for net
> Gambas component package for net
> http://gambas.sourceforge.net/
>
>
> gambas-runtime.i386                      1.0.13-3.fc3          extras
> Matched from:
> gambas-runtime
> Runtime environment for gambas
> Gambas is a free development environment based on a Basic interpreter
> with object extensions, like Visual Basic. This package contains the
> runtime components necessary to run programs designed in gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-gb-debug.i386                    1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-debug
> Gambas component package for debug
> Gambas component package for debug
> http://gambas.sourceforge.net/
>
>
> gambas-devel.i386                        1.0.11-1.fc3          extras
> Matched from:
> gambas-devel
> Development libraries and headers for gambas
> The gambas-devel package contains the development libraries and
> headers for gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-kde-html.i386              1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-qt-kde-html
> Gambas component package for qt.kde.html
> Gambas component package for qt.kde.html
> http://gambas.sourceforge.net/
>
>
> gambas-gb-debug.i386                    1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-debug
> Gambas component package for debug
> Gambas component package for debug
> http://gambas.sourceforge.net/
>
>
> gambas.i386                              1.0.9-2.fc3            extras
> Matched from:
> gambas
> http://gambas.sourceforge.net/
>
>
> gambas-ide.i386                          1.0.13-2.fc3          extras
> Matched from:
> gambas-ide
> Development environment for gambas
> http://gambas.sourceforge.net/
>
>
> gambas-devel.i386                        1.0.9-2.fc3            extras
> Matched from:
> gambas-devel
> Development libraries and headers for gambas
> The gambas-devel package contains the development libraries and
> headers for gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-ide.i386                          1.0.13-3.fc3          extras
> Matched from:
> gambas-ide
> Development environment for gambas
> The gambas-ide package contains the complete Gambas Development
> Environment, with the database manager, the help files, and all
> components. This is what you want to install if you want to
> create new programs with Gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-editor.i386                1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-qt-editor
> Gambas component package for qt.editor
> Gambas component package for qt.editor
> http://gambas.sourceforge.net/
>
>
> gambas-gb-xml-libxml.i386                1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-xml-libxml
> Gambas component package for xml.libxml
> Gambas component package for xml.libxml
> http://gambas.sourceforge.net/
>
>
> gambas-gb-compress.i386                  1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-compress
> Gambas component package for net
> Gambas component package for net
> http://gambas.sourceforge.net/
>
>
> gambas.i386                              1.0.11-1.fc3          extras
> Matched from:
> gambas
> http://gambas.sourceforge.net/
>
>
> gambas-gb-net-curl.i386                  1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-net-curl
> Gambas component package for net.curl
> Gambas component package for net.curl
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt.i386                        1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-qt
> Gambas component package for qt
> Gambas component package for qt
> http://gambas.sourceforge.net/
>
>
> gambas-help.i386                        1.0.9-2.fc3            extras
> Matched from:
> gambas-help
> Help files for gambas
> The gambas-help package contains all the help files for gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-gb-net-curl.i386                  1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-net-curl
> Gambas component package for net.curl
> Gambas component package for net.curl
> http://gambas.sourceforge.net/
>
>
> gambas-gb-xml-libxml-xslt.i386          1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-xml-libxml-xslt
> Gambas component package for xml.libxml.xslt
> Gambas component package for xml.libxml.xslt
> http://gambas.sourceforge.net/
>
>
> gambas-gb-eval.i386                      1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-eval
> Gambas component package for eval
> Gambas component package for eval
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-kde-html.i386              1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-qt-kde-html
> Gambas component package for qt.kde.html
> Gambas component package for qt.kde.html
> http://gambas.sourceforge.net/
>
>
> gambas-gb-xml-libxml-rpc.i386            1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-xml-libxml-rpc
> Gambas component package for xml.libxml.rpc
> Gambas component package for xml.libxml.rpc
> http://gambas.sourceforge.net/
>
>
> gambas-gb-sdl.i386                      1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-sdl
> Gambas component package for sdl
> Gambas component package for sdl
> http://gambas.sourceforge.net/
>
>
> gambas-gb-xml-libxml-xslt.i386          1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-xml-libxml-xslt
> Gambas component package for xml.libxml.xslt
> Gambas component package for xml.libxml.xslt
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-kde.i386                    1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-qt-kde
> Gambas component package for qt.kde
> Gambas component package for qt.kde
> http://gambas.sourceforge.net/
>
>
> gambas-gb-vb.i386                        1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-vb
> Gambas component package for vb
> Gambas component package for vb
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-editor.i386                1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-qt-editor
> Gambas component package for qt.editor
> Gambas component package for qt.editor
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-ext.i386                    1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-qt-ext
> Gambas component package for qt.ext
> Gambas component package for qt.ext
> http://gambas.sourceforge.net/
>
>
> gambas-gb-qt-ext.i386                    1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-qt-ext
> Gambas component package for qt.ext
> Gambas component package for qt.ext
> http://gambas.sourceforge.net/
>
>
> gambas-gb-compress.i386                  1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-compress
> Gambas component package for net
> Gambas component package for net
> http://gambas.sourceforge.net/
>
>
> gambas-examples.i386                    1.0.9-2.fc3            extras
> Matched from:
> gambas-examples
> Examples for gambas
> The gambas-examples package contains some examples for gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-gb-eval.i386                      1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-eval
> Gambas component package for eval
> Gambas component package for eval
> http://gambas.sourceforge.net/
>
>
> gambas-examples.i386                    1.0.11-1.fc3          extras
> Matched from:
> gambas-examples
> Examples for gambas
> The gambas-examples package contains some examples for gambas.
> http://gambas.sourceforge.net/
>
>
> gambas-gb-net.i386                      1.0.13-2.fc3          extras
> Matched from:
> gambas-gb-net
> Gambas component package for net
> Gambas component package for net
> http://gambas.sourceforge.net/
>
>
> gambas-gb-db.i386                        1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-db
> Gambas component package for db
> Gambas component package for db
> http://gambas.sourceforge.net/
>
>
> gambas-gb-xml-libxml.i386                1.0.13-3.fc3          extras
> Matched from:
> gambas-gb-xml-libxml
> Gambas component package for xml.libxml
> Gambas component package for xml.libxml
> http://gambas.sourceforge.net/
> 
> > sow what is the problrem, why will it no install? > The instruction on the website is wrong, as you must only install the 1.0.13 packages only. But I don't know how to do that in one command line... If you know, please tell me, I will write it on the web site. Regards, -- Benoit Minisini From gambas at ...1... Mon Jan 30 12:25:52 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 30 Jan 2006 12:25:52 +0100 Subject: [Gambas-user] MySQL version In-Reply-To: <43D7BC37.9090800@...1153...> References: <43D7BC37.9090800@...1153...> Message-ID: <200601301225.52665.gambas@...1...> On Wednesday 25 January 2006 18:58, Marcelo Confortino wrote: > Hi. I was using Gambas 1.0.13 on Mepis 3.3, installed from a Debian pkg. > I used MySQL 4.1 and all worked fine. Now I installed MySQL 5, and my > applications say: > > "Cannot open database: Client does not support authentication protocol > requested by server; consider upgrading MySQL client" > > Is there a way to change the client that Gambas uses, without > recompiling the whole thing? I don't have all the headers required for a > source installation. > > Thanks. > > Marcelo Confortino > I recompiled the development version of mysql driver against client library version 5, and everything seems correct. I mean, I can access my MySQL 4 databases without any problem. As I don't have MySQL 5 databases under the hood, I will suppose it is good for it too :-) So the next stable and development version will be compiled against MySQL 5 client libraries. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Mon Jan 30 14:45:50 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 30 Jan 2006 08:45:50 -0500 Subject: [Gambas-user] gambas + cgi In-Reply-To: <0ML2ov-1F3TZx1Lpo-0000aY@...979...> References: <0ML2ov-1F3TZx1Lpo-0000aY@...979...> Message-ID: <200601300845.50944.sourceforge-raindog2@...94...> On Mon January 30 2006 02:36, Matthias Laur wrote: > Hi Daniel, > > that looks nice. I will try it soon. One little question: How > can I decide the variables? In php by name, but if I reed them > together in Buf? The following two functions are what Benoit uses to do that in the documentation system: PRIVATE FUNCTION DecodeURL(sUrl AS String) AS String DIM sRes AS String DIM iPos AS Integer DIM sCar AS String FOR iPos = 1 TO Len(sUrl) sCar = Mid$(sUrl, iPos, 1) IF sCar = "+" THEN sCar = " " ELSE IF sCar = "%" THEN sCar = Chr$(Val("&H" & Mid$(sUrl, iPos + 1, 2))) iPos = iPos + 2 ENDIF sRes = sRes & sCar NEXT sRes = Replace(sRes, "\r", "") RETURN sRes END PRIVATE FUNCTION GetForm() AS Collection DIM sLine AS String DIM iPos AS Integer DIM sVal AS String DIM sName AS String DIM cForm AS NEW Collection DIM sForm AS String READ #File.In, sForm, Val(Application.Env["CONTENT_LENGTH"]) FOR EACH sLine IN Split(sForm, "&") iPos = InStr(sLine, "=") IF iPos = 0 THEN CONTINUE sVal = DecodeURL(Mid$(sLine, iPos + 1)) sName = Left$(sLine, iPos - 1) cForm[sName] = sVal NEXT RETURN cForm END Rob From sourceforge-raindog2 at ...94... Mon Jan 30 16:00:12 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 30 Jan 2006 10:00:12 -0500 Subject: [Gambas-user] problem install gambas, fedora core 3 In-Reply-To: References: Message-ID: <200601301000.13496.sourceforge-raindog2@...94...> On Mon January 30 2006 03:24, T C wrote: > when i try to install gambas usin the command on > http://gambas.sourceforge.net/ > yum install gambas* Try yum install gambas*1.0.13* maybe? Sorry if that doesn't work.... I haven't used yum. The instructions on the website assumed that only the current version of Gambas would be in the repository at any given time, and I guess someone forgot to clean the old ones out this time. Rob From sourceforge-raindog2 at ...94... Mon Jan 30 16:58:44 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 30 Jan 2006 10:58:44 -0500 Subject: [Gambas-user] gambas for embedded system In-Reply-To: <0ML2xA-1F3Tyi21xP-0004Hi@...979...> References: <0ML2xA-1F3Tyi21xP-0004Hi@...979...> Message-ID: <200601301058.45394.sourceforge-raindog2@...94...> On Mon January 30 2006 03:01, Matthias Laur wrote: > Has somebody try to use gambas on small hardware? Should there > be problems? I got some pre-1.0 versions to run on a machine with a P166 and 32MB of RAM, but since it was painful to even run IceWM on that machine, let alone a Qt application, I wouldn't recommend it. Never tried going smaller for non-graphical apps. > Another question is, how can I compile only the gambas runtime > with net and sqlite bindings from the source? There will be no > X on the system. In the root of the Gambas source tree, type this: ./configure --help At the end you'll have a big list of --enable-this and --enable that. When you're ready to build Gambas, add those to your ./configure command line but change enable to disable, like this: ./configure --disable-qt --disable-kde ... etc. Then do a make as usual, and it should go a lot faster and you should end up with just the components you need. I just did this, and while it did go a lot faster, it seems like almost all the components' .so files were still built. However, "ldd main/gbc/gbc2" and "ldd main/gbx/gbx2" don't show any troublesome dependencies. Rob From matthias-laur at ...978... Mon Jan 30 17:33:40 2006 From: matthias-laur at ...978... (Matthias Laur) Date: Mon, 30 Jan 2006 17:33:40 +0100 Subject: AW: [Gambas-user] gambas for embedded system In-Reply-To: <200601301058.45394.sourceforge-raindog2@...94...> Message-ID: <0MKwtQ-1F3byL2qiU-0004j4@...979...> Hi Rob, I only want the interpreter with the sqlite and the net bindings. So I should disable everything without -net and -sqlite? What do you think: is gambas faster then python/php/perl? So it should be better to use gambas for an embedded system. Another advantage is that the runtime of gambas is very small. Python-Interpreter for example is much bigger. Regards, Matthias From sourceforge-raindog2 at ...94... Mon Jan 30 19:23:27 2006 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 30 Jan 2006 13:23:27 -0500 Subject: [Gambas-user] gambas for embedded system In-Reply-To: <0MKwtQ-1F3byL2qiU-0004j4@...979...> References: <0MKwtQ-1F3byL2qiU-0004j4@...979...> Message-ID: <200601301323.27827.sourceforge-raindog2@...94...> On Mon January 30 2006 11:33, Matthias Laur wrote: > I only want the interpreter with the sqlite and the net > bindings. So I should disable everything without -net and > -sqlite? That's what I did, yeah. When it's done building, don't forget that in addition to gb.db.sqlite3.so.* and gb.net.so.* you need gb.so.* and gb.db.so.*. > What do you think: is gambas faster then python/php/perl? So > it should be better to use gambas for an embedded system. > Another advantage is that the runtime of gambas is very small. > Python-Interpreter for example is much bigger. The answer is really "it depends", but they are comparable. I've never tried any benchmarks, but maybe I should. For certain things (like opening a process for both read and write) it's certainly easier to code in Gambas than in Perl. (For others, especially the closer you get to a standard "filter" type of application, Perl's a lot easier.) I'm not that familiar with Python so I don't know what the case is there. And yeah, all the files I mentioned above plus the interpreter are less than the size of either libpython2.4.so or libperl.so by itself. Rob From gambas at ...1... Mon Jan 30 20:49:51 2006 From: gambas at ...1... (Benoit Minisini) Date: Mon, 30 Jan 2006 20:49:51 +0100 Subject: [Gambas-user] gambas for embedded system In-Reply-To: <200601301323.27827.sourceforge-raindog2@...94...> References: <0MKwtQ-1F3byL2qiU-0004j4@...979...> <200601301323.27827.sourceforge-raindog2@...94...> Message-ID: <200601302049.51740.gambas@...1...> On Monday 30 January 2006 19:23, Rob Kudla wrote: > On Mon January 30 2006 11:33, Matthias Laur wrote: > > I only want the interpreter with the sqlite and the net > > bindings. So I should disable everything without -net and > > -sqlite? > > That's what I did, yeah. When it's done building, don't forget > that in addition to gb.db.sqlite3.so.* and gb.net.so.* you need > gb.so.* and gb.db.so.*. gb.so.* is just needed during the compilation of gambas. It is useless to keep it in the installation. Regards, -- Benoit Minisini From nigel at ...38... Tue Jan 31 11:32:56 2006 From: nigel at ...38... (nigel at ...38...) Date: Tue, 31 Jan 2006 11:32:56 +0100 (CET) Subject: [Gambas-user] MySQL version Message-ID: <4893723.1138703576046.JavaMail.www@...834...> As stated in http://dev.mysql.com/doc/refman/5.0/en/old-client.html :-) Nigel > Message Received: Jan 30 2006, 11:27 AM > From: "Benoit Minisini" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] MySQL version > > On Wednesday 25 January 2006 18:58, Marcelo Confortino wrote: > > Hi. I was using Gambas 1.0.13 on Mepis 3.3, installed from a Debian pkg. > > I used MySQL 4.1 and all worked fine. Now I installed MySQL 5, and my > > applications say: > > > > "Cannot open database: Client does not support authentication protocol > > requested by server; consider upgrading MySQL client" > > > > Is there a way to change the client that Gambas uses, without > > recompiling the whole thing? I don't have all the headers required for a > > source installation. > > > > Thanks. > > > > Marcelo Confortino > > > > I recompiled the development version of mysql driver against client library > version 5, and everything seems correct. I mean, I can access my MySQL 4 > databases without any problem. As I don't have MySQL 5 databases under the > hood, I will suppose it is good for it too :-) > > So the next stable and development version will be compiled against MySQL 5 > client libraries. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From jfabiani at ...1109... Tue Jan 31 19:06:04 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 31 Jan 2006 10:06:04 -0800 Subject: [Gambas-user] newbie question virtual classes Message-ID: <200601311006.05037.jfabiani@...1109...> Hi, could someone point me to a website or something I can read. I don't understand the ".treeview" is a virtual class documentation. I don't understand Doc's when is states ListView.Item property is .ListViewItem. Where .ListViewItem is a virtual class. Thanks From lordheavy at ...512... Tue Jan 31 19:23:55 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Tue, 31 Jan 2006 19:23:55 +0100 Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200601311006.05037.jfabiani@...1109...> References: <200601311006.05037.jfabiani@...1109...> Message-ID: <200601311923.55962.lordheavy@...512...> Le Mardi 31 Janvier 2006 19:06, johnf a ?crit?: > Hi, > could someone point me to a website or something I can read. I don't > understand the ".treeview" is a virtual class documentation. I don't > understand Doc's when is states > > ListView.Item property is .ListViewItem. Where .ListViewItem is a virtual > class. > > Thanks > Virtual class is a way to have access to sub object of a class (ie internal object not instanciable) like you can have in treeview (or listview) ------------ DIM hTreeView AS TreeView ' DIM hTreeViewItem AS .TreeViewItem hTreeView = NEW TreeView (ME) .... ' want to access an item of the treeview theKey = hTreeView.Item.Key ' is the same (but not allowed) ' hTreeViewItem = hTreeView.Item ' theKey = hTreeViewItem.Key ------------ In fact, virtual class is only for internal use and can be use for other purpose :-) it's only useful for making component in C/C++ (actually). Regards, -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626... From jfabiani at ...1109... Tue Jan 31 19:36:00 2006 From: jfabiani at ...1109... (johnf) Date: Tue, 31 Jan 2006 10:36:00 -0800 Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200601311923.55962.lordheavy@...512...> References: <200601311006.05037.jfabiani@...1109...> <200601311923.55962.lordheavy@...512...> Message-ID: <200601311036.00253.jfabiani@...1109...> On Tuesday 31 January 2006 10:23, Laurent Carlier wrote: > Le Mardi 31 Janvier 2006 19:06, johnf a ?crit?: > > Hi, > > could someone point me to a website or something I can read. I don't > > understand the ".treeview" is a virtual class documentation. I don't > > understand Doc's when is states > > > > ListView.Item property is .ListViewItem. Where .ListViewItem is a > > virtual class. > > > > Thanks > > Virtual class is a way to have access to sub object of a class (ie internal > object not instanciable) like you can have in treeview (or listview) > > ------------ > DIM hTreeView AS TreeView > ' DIM hTreeViewItem AS .TreeViewItem > > hTreeView = NEW TreeView (ME) > .... > ' want to access an item of the treeview > theKey = hTreeView.Item.Key > ' is the same (but not allowed) > ' hTreeViewItem = hTreeView.Item > ' theKey = hTreeViewItem.Key > ------------ > > In fact, virtual class is only for internal use and can be use for other > purpose :-) it's only useful for making component in C/C++ (actually). > > Regards, So if I understand you correctly I can NOT use ".TreeViewItem" ? John From lordheavy at ...512... Tue Jan 31 19:45:50 2006 From: lordheavy at ...512... (Laurent Carlier) Date: Tue, 31 Jan 2006 19:45:50 +0100 Subject: [Gambas-user] newbie question virtual classes In-Reply-To: <200601311036.00253.jfabiani@...1109...> References: <200601311006.05037.jfabiani@...1109...> <200601311923.55962.lordheavy@...512...> <200601311036.00253.jfabiani@...1109...> Message-ID: <200601311945.50454.lordheavy@...512...> Le Mardi 31 Janvier 2006 19:36, johnf a ?crit?: > > So if I understand you correctly I can NOT use ".TreeViewItem" ? > > John > No, you do not need to use it. Laurent -- jabber : lordheavy at ...943... mail : lordheavymREMOVEME at ...626...